@eka-care/medassist-widget 0.1.51-dev.0 → 0.1.52-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/medassist-widget.css +1 -1
- package/dist/medassist-widget.js +19 -17
- package/package.json +1 -1
package/dist/medassist-widget.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var MedAssistWidget=(function(ou){"use strict";function Yv(A,t){for(var r=0;r<t.length;r++){const i=t[r];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in A)){const l=Object.getOwnPropertyDescriptor(i,s);l&&Object.defineProperty(A,s,l.get?l:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}))}function cu(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}var uu={exports:{}},Fa={};var qg;function Xv(){if(qg)return Fa;qg=1;var A=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(i,s,l){var c=null;if(l!==void 0&&(c=""+l),s.key!==void 0&&(c=""+s.key),"key"in s){l={};for(var u in s)u!=="key"&&(l[u]=s[u])}else l=s;return s=l.ref,{$$typeof:A,type:i,key:c,ref:s!==void 0?s:null,props:l}}return Fa.Fragment=t,Fa.jsx=r,Fa.jsxs=r,Fa}var Jg;function qv(){return Jg||(Jg=1,uu.exports=Xv()),uu.exports}var g=qv(),fu={exports:{}},IA={};var Zg;function Jv(){if(Zg)return IA;Zg=1;var A=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),w=Symbol.iterator;function C(U){return U===null||typeof U!="object"?null:(U=w&&U[w]||U["@@iterator"],typeof U=="function"?U:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,F={};function Q(U,M,S){this.props=U,this.context=M,this.refs=F,this.updater=S||E}Q.prototype.isReactComponent={},Q.prototype.setState=function(U,M){if(typeof U!="object"&&typeof U!="function"&&U!=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,U,M,"setState")},Q.prototype.forceUpdate=function(U){this.updater.enqueueForceUpdate(this,U,"forceUpdate")};function I(){}I.prototype=Q.prototype;function O(U,M,S){this.props=U,this.context=M,this.refs=F,this.updater=S||E}var K=O.prototype=new I;K.constructor=O,v(K,Q.prototype),K.isPureReactComponent=!0;var j=Array.isArray;function T(){}var L={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function _(U,M,S){var aA=S.ref;return{$$typeof:A,type:U,key:M,ref:aA!==void 0?aA:null,props:S}}function X(U,M){return _(U.type,M,U.props)}function nA(U){return typeof U=="object"&&U!==null&&U.$$typeof===A}function z(U){var M={"=":"=0",":":"=2"};return"$"+U.replace(/[=:]/g,function(S){return M[S]})}var lA=/\/+/g;function Z(U,M){return typeof U=="object"&&U!==null&&U.key!=null?z(""+U.key):M.toString(36)}function eA(U){switch(U.status){case"fulfilled":return U.value;case"rejected":throw U.reason;default:switch(typeof U.status=="string"?U.then(T,T):(U.status="pending",U.then(function(M){U.status==="pending"&&(U.status="fulfilled",U.value=M)},function(M){U.status==="pending"&&(U.status="rejected",U.reason=M)})),U.status){case"fulfilled":return U.value;case"rejected":throw U.reason}}throw U}function D(U,M,S,aA,uA){var fA=typeof U;(fA==="undefined"||fA==="boolean")&&(U=null);var pA=!1;if(U===null)pA=!0;else switch(fA){case"bigint":case"string":case"number":pA=!0;break;case"object":switch(U.$$typeof){case A:case t:pA=!0;break;case m:return pA=U._init,D(pA(U._payload),M,S,aA,uA)}}if(pA)return uA=uA(U),pA=aA===""?"."+Z(U,0):aA,j(uA)?(S="",pA!=null&&(S=pA.replace(lA,"$&/")+"/"),D(uA,M,S,"",function(NA){return NA})):uA!=null&&(nA(uA)&&(uA=X(uA,S+(uA.key==null||U&&U.key===uA.key?"":(""+uA.key).replace(lA,"$&/")+"/")+pA)),M.push(uA)),1;pA=0;var kA=aA===""?".":aA+":";if(j(U))for(var HA=0;HA<U.length;HA++)aA=U[HA],fA=kA+Z(aA,HA),pA+=D(aA,M,S,fA,uA);else if(HA=C(U),typeof HA=="function")for(U=HA.call(U),HA=0;!(aA=U.next()).done;)aA=aA.value,fA=kA+Z(aA,HA++),pA+=D(aA,M,S,fA,uA);else if(fA==="object"){if(typeof U.then=="function")return D(eA(U),M,S,aA,uA);throw M=String(U),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(U).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.")}return pA}function W(U,M,S){if(U==null)return U;var aA=[],uA=0;return D(U,aA,"","",function(fA){return M.call(S,fA,uA++)}),aA}function AA(U){if(U._status===-1){var M=U._result;M=M(),M.then(function(S){(U._status===0||U._status===-1)&&(U._status=1,U._result=S)},function(S){(U._status===0||U._status===-1)&&(U._status=2,U._result=S)}),U._status===-1&&(U._status=0,U._result=M)}if(U._status===1)return U._result.default;throw U._result}var gA=typeof reportError=="function"?reportError:function(U){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var M=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof U=="object"&&U!==null&&typeof U.message=="string"?String(U.message):String(U),error:U});if(!window.dispatchEvent(M))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",U);return}},N={map:W,forEach:function(U,M,S){W(U,function(){M.apply(this,arguments)},S)},count:function(U){var M=0;return W(U,function(){M++}),M},toArray:function(U){return W(U,function(M){return M})||[]},only:function(U){if(!nA(U))throw Error("React.Children.only expected to receive a single React element child.");return U}};return IA.Activity=B,IA.Children=N,IA.Component=Q,IA.Fragment=r,IA.Profiler=s,IA.PureComponent=O,IA.StrictMode=i,IA.Suspense=f,IA.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,IA.__COMPILER_RUNTIME={__proto__:null,c:function(U){return L.H.useMemoCache(U)}},IA.cache=function(U){return function(){return U.apply(null,arguments)}},IA.cacheSignal=function(){return null},IA.cloneElement=function(U,M,S){if(U==null)throw Error("The argument must be a React element, but you passed "+U+".");var aA=v({},U.props),uA=U.key;if(M!=null)for(fA in M.key!==void 0&&(uA=""+M.key),M)!R.call(M,fA)||fA==="key"||fA==="__self"||fA==="__source"||fA==="ref"&&M.ref===void 0||(aA[fA]=M[fA]);var fA=arguments.length-2;if(fA===1)aA.children=S;else if(1<fA){for(var pA=Array(fA),kA=0;kA<fA;kA++)pA[kA]=arguments[kA+2];aA.children=pA}return _(U.type,uA,aA)},IA.createContext=function(U){return U={$$typeof:c,_currentValue:U,_currentValue2:U,_threadCount:0,Provider:null,Consumer:null},U.Provider=U,U.Consumer={$$typeof:l,_context:U},U},IA.createElement=function(U,M,S){var aA,uA={},fA=null;if(M!=null)for(aA in M.key!==void 0&&(fA=""+M.key),M)R.call(M,aA)&&aA!=="key"&&aA!=="__self"&&aA!=="__source"&&(uA[aA]=M[aA]);var pA=arguments.length-2;if(pA===1)uA.children=S;else if(1<pA){for(var kA=Array(pA),HA=0;HA<pA;HA++)kA[HA]=arguments[HA+2];uA.children=kA}if(U&&U.defaultProps)for(aA in pA=U.defaultProps,pA)uA[aA]===void 0&&(uA[aA]=pA[aA]);return _(U,fA,uA)},IA.createRef=function(){return{current:null}},IA.forwardRef=function(U){return{$$typeof:u,render:U}},IA.isValidElement=nA,IA.lazy=function(U){return{$$typeof:m,_payload:{_status:-1,_result:U},_init:AA}},IA.memo=function(U,M){return{$$typeof:h,type:U,compare:M===void 0?null:M}},IA.startTransition=function(U){var M=L.T,S={};L.T=S;try{var aA=U(),uA=L.S;uA!==null&&uA(S,aA),typeof aA=="object"&&aA!==null&&typeof aA.then=="function"&&aA.then(T,gA)}catch(fA){gA(fA)}finally{M!==null&&S.types!==null&&(M.types=S.types),L.T=M}},IA.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},IA.use=function(U){return L.H.use(U)},IA.useActionState=function(U,M,S){return L.H.useActionState(U,M,S)},IA.useCallback=function(U,M){return L.H.useCallback(U,M)},IA.useContext=function(U){return L.H.useContext(U)},IA.useDebugValue=function(){},IA.useDeferredValue=function(U,M){return L.H.useDeferredValue(U,M)},IA.useEffect=function(U,M){return L.H.useEffect(U,M)},IA.useEffectEvent=function(U){return L.H.useEffectEvent(U)},IA.useId=function(){return L.H.useId()},IA.useImperativeHandle=function(U,M,S){return L.H.useImperativeHandle(U,M,S)},IA.useInsertionEffect=function(U,M){return L.H.useInsertionEffect(U,M)},IA.useLayoutEffect=function(U,M){return L.H.useLayoutEffect(U,M)},IA.useMemo=function(U,M){return L.H.useMemo(U,M)},IA.useOptimistic=function(U,M){return L.H.useOptimistic(U,M)},IA.useReducer=function(U,M,S){return L.H.useReducer(U,M,S)},IA.useRef=function(U){return L.H.useRef(U)},IA.useState=function(U){return L.H.useState(U)},IA.useSyncExternalStore=function(U,M,S){return L.H.useSyncExternalStore(U,M,S)},IA.useTransition=function(){return L.H.useTransition()},IA.version="19.2.0",IA}var Wg;function xl(){return Wg||(Wg=1,fu.exports=Jv()),fu.exports}var b=xl();const Ta=cu(b),$g=Yv({__proto__:null,default:Ta},[b]);var du={exports:{}},Na={},hu={exports:{}},gu={};var A0;function Zv(){return A0||(A0=1,(function(A){function t(D,W){var AA=D.length;D.push(W);A:for(;0<AA;){var gA=AA-1>>>1,N=D[gA];if(0<s(N,W))D[gA]=W,D[AA]=N,AA=gA;else break A}}function r(D){return D.length===0?null:D[0]}function i(D){if(D.length===0)return null;var W=D[0],AA=D.pop();if(AA!==W){D[0]=AA;A:for(var gA=0,N=D.length,U=N>>>1;gA<U;){var M=2*(gA+1)-1,S=D[M],aA=M+1,uA=D[aA];if(0>s(S,AA))aA<N&&0>s(uA,S)?(D[gA]=uA,D[aA]=AA,gA=aA):(D[gA]=S,D[M]=AA,gA=M);else if(aA<N&&0>s(uA,AA))D[gA]=uA,D[aA]=AA,gA=aA;else break A}}return W}function s(D,W){var AA=D.sortIndex-W.sortIndex;return AA!==0?AA:D.id-W.id}if(A.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;A.unstable_now=function(){return l.now()}}else{var c=Date,u=c.now();A.unstable_now=function(){return c.now()-u}}var f=[],h=[],m=1,B=null,w=3,C=!1,E=!1,v=!1,F=!1,Q=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function K(D){for(var W=r(h);W!==null;){if(W.callback===null)i(h);else if(W.startTime<=D)i(h),W.sortIndex=W.expirationTime,t(f,W);else break;W=r(h)}}function j(D){if(v=!1,K(D),!E)if(r(f)!==null)E=!0,T||(T=!0,z());else{var W=r(h);W!==null&&eA(j,W.startTime-D)}}var T=!1,L=-1,R=5,_=-1;function X(){return F?!0:!(A.unstable_now()-_<R)}function nA(){if(F=!1,T){var D=A.unstable_now();_=D;var W=!0;try{A:{E=!1,v&&(v=!1,I(L),L=-1),C=!0;var AA=w;try{e:{for(K(D),B=r(f);B!==null&&!(B.expirationTime>D&&X());){var gA=B.callback;if(typeof gA=="function"){B.callback=null,w=B.priorityLevel;var N=gA(B.expirationTime<=D);if(D=A.unstable_now(),typeof N=="function"){B.callback=N,K(D),W=!0;break e}B===r(f)&&i(f),K(D)}else i(f);B=r(f)}if(B!==null)W=!0;else{var U=r(h);U!==null&&eA(j,U.startTime-D),W=!1}}break A}finally{B=null,w=AA,C=!1}W=void 0}}finally{W?z():T=!1}}}var z;if(typeof O=="function")z=function(){O(nA)};else if(typeof MessageChannel<"u"){var lA=new MessageChannel,Z=lA.port2;lA.port1.onmessage=nA,z=function(){Z.postMessage(null)}}else z=function(){Q(nA,0)};function eA(D,W){L=Q(function(){D(A.unstable_now())},W)}A.unstable_IdlePriority=5,A.unstable_ImmediatePriority=1,A.unstable_LowPriority=4,A.unstable_NormalPriority=3,A.unstable_Profiling=null,A.unstable_UserBlockingPriority=2,A.unstable_cancelCallback=function(D){D.callback=null},A.unstable_forceFrameRate=function(D){0>D||125<D||(R=0<D?Math.floor(1e3/D):5)},A.unstable_getCurrentPriorityLevel=function(){return w},A.unstable_next=function(D){switch(w){case 1:case 2:case 3:var W=3;break;default:W=w}var AA=w;w=W;try{return D()}finally{w=AA}},A.unstable_requestPaint=function(){F=!0},A.unstable_runWithPriority=function(D,W){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var AA=w;w=D;try{return W()}finally{w=AA}},A.unstable_scheduleCallback=function(D,W,AA){var gA=A.unstable_now();switch(typeof AA=="object"&&AA!==null?(AA=AA.delay,AA=typeof AA=="number"&&0<AA?gA+AA:gA):AA=gA,D){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=AA+N,D={id:m++,callback:W,priorityLevel:D,startTime:AA,expirationTime:N,sortIndex:-1},AA>gA?(D.sortIndex=AA,t(h,D),r(f)===null&&D===r(h)&&(v?(I(L),L=-1):v=!0,eA(j,AA-gA))):(D.sortIndex=N,t(f,D),E||C||(E=!0,T||(T=!0,z()))),D},A.unstable_shouldYield=X,A.unstable_wrapCallback=function(D){var W=w;return function(){var AA=w;w=W;try{return D.apply(this,arguments)}finally{w=AA}}}})(gu)),gu}var e0;function Wv(){return e0||(e0=1,hu.exports=Zv()),hu.exports}var pu={exports:{}},rt={};var t0;function $v(){if(t0)return rt;t0=1;var A=xl();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function l(f,h,m){var B=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:B==null?null:""+B,children:f,containerInfo:h,implementation:m}}var c=A.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,rt.createPortal=function(f,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return l(f,h,null,m)},rt.flushSync=function(f){var h=c.T,m=i.p;try{if(c.T=null,i.p=2,f)return f()}finally{c.T=h,i.p=m,i.d.f()}},rt.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(f,h))},rt.prefetchDNS=function(f){typeof f=="string"&&i.d.D(f)},rt.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var m=h.as,B=u(m,h.crossOrigin),w=typeof h.integrity=="string"?h.integrity:void 0,C=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?i.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:B,integrity:w,fetchPriority:C}):m==="script"&&i.d.X(f,{crossOrigin:B,integrity:w,fetchPriority:C,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},rt.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=u(h.as,h.crossOrigin);i.d.M(f,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(f)},rt.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,B=u(m,h.crossOrigin);i.d.L(f,m,{crossOrigin:B,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},rt.preloadModule=function(f,h){if(typeof f=="string")if(h){var m=u(h.as,h.crossOrigin);i.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(f)},rt.requestFormReset=function(f){i.d.r(f)},rt.unstable_batchedUpdates=function(f,h){return f(h)},rt.useFormState=function(f,h,m){return c.H.useFormState(f,h,m)},rt.useFormStatus=function(){return c.H.useHostTransitionStatus()},rt.version="19.2.0",rt}var n0;function A2(){if(n0)return pu.exports;n0=1;function A(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(A)}catch{}}return A(),pu.exports=$v(),pu.exports}var r0;function e2(){if(r0)return Na;r0=1;var A=Wv(),t=xl(),r=A2();function i(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 s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function l(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 c(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 u(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 f(e){if(l(e)!==e)throw Error(i(188))}function h(e){var n=e.alternate;if(!n){if(n=l(e),n===null)throw Error(i(188));return n!==e?null:e}for(var a=e,o=n;;){var d=a.return;if(d===null)break;var p=d.alternate;if(p===null){if(o=d.return,o!==null){a=o;continue}break}if(d.child===p.child){for(p=d.child;p;){if(p===a)return f(d),e;if(p===o)return f(d),n;p=p.sibling}throw Error(i(188))}if(a.return!==o.return)a=d,o=p;else{for(var y=!1,x=d.child;x;){if(x===a){y=!0,a=d,o=p;break}if(x===o){y=!0,o=d,a=p;break}x=x.sibling}if(!y){for(x=p.child;x;){if(x===a){y=!0,a=p,o=d;break}if(x===o){y=!0,o=p,a=d;break}x=x.sibling}if(!y)throw Error(i(189))}}if(a.alternate!==o)throw Error(i(190))}if(a.tag!==3)throw Error(i(188));return a.stateNode.current===a?e:n}function m(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=m(e),n!==null)return n;e=e.sibling}return null}var B=Object.assign,w=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),O=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),X=Symbol.for("react.memo_cache_sentinel"),nA=Symbol.iterator;function z(e){return e===null||typeof e!="object"?null:(e=nA&&e[nA]||e["@@iterator"],typeof e=="function"?e:null)}var lA=Symbol.for("react.client.reference");function Z(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===lA?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case v:return"Fragment";case Q:return"Profiler";case F:return"StrictMode";case j:return"Suspense";case T:return"SuspenseList";case _:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case O:return e.displayName||"Context";case I: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:Z(e.type)||"Memo";case R:n=e._payload,e=e._init;try{return Z(e(n))}catch{}}return null}var eA=Array.isArray,D=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,AA={pending:!1,data:null,method:null,action:null},gA=[],N=-1;function U(e){return{current:e}}function M(e){0>N||(e.current=gA[N],gA[N]=null,N--)}function S(e,n){N++,gA[N]=e.current,e.current=n}var aA=U(null),uA=U(null),fA=U(null),pA=U(null);function kA(e,n){switch(S(fA,n),S(uA,e),S(aA,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?pv(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=pv(n),e=mv(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}M(aA),S(aA,e)}function HA(){M(aA),M(uA),M(fA)}function NA(e){e.memoizedState!==null&&S(pA,e);var n=aA.current,a=mv(n,e.type);n!==a&&(S(uA,e),S(aA,a))}function de(e){uA.current===e&&(M(aA),M(uA)),pA.current===e&&(M(pA),yl._currentValue=AA)}var he,oe;function Te(e){if(he===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);he=n&&n[1]||"",oe=-1<a.stack.indexOf(`
|
|
1
|
+
var MedAssistWidget=(function(su){"use strict";function Pv(A,t){for(var r=0;r<t.length;r++){const i=t[r];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in A)){const l=Object.getOwnPropertyDescriptor(i,s);l&&Object.defineProperty(A,s,l.get?l:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}))}function lu(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}var ou={exports:{}},Fa={};var Yg;function Yv(){if(Yg)return Fa;Yg=1;var A=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(i,s,l){var c=null;if(l!==void 0&&(c=""+l),s.key!==void 0&&(c=""+s.key),"key"in s){l={};for(var u in s)u!=="key"&&(l[u]=s[u])}else l=s;return s=l.ref,{$$typeof:A,type:i,key:c,ref:s!==void 0?s:null,props:l}}return Fa.Fragment=t,Fa.jsx=r,Fa.jsxs=r,Fa}var Xg;function Xv(){return Xg||(Xg=1,ou.exports=Yv()),ou.exports}var g=Xv(),cu={exports:{}},TA={};var qg;function qv(){if(qg)return TA;qg=1;var A=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),w=Symbol.iterator;function C(U){return U===null||typeof U!="object"?null:(U=w&&U[w]||U["@@iterator"],typeof U=="function"?U:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,F={};function Q(U,M,S){this.props=U,this.context=M,this.refs=F,this.updater=S||E}Q.prototype.isReactComponent={},Q.prototype.setState=function(U,M){if(typeof U!="object"&&typeof U!="function"&&U!=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,U,M,"setState")},Q.prototype.forceUpdate=function(U){this.updater.enqueueForceUpdate(this,U,"forceUpdate")};function N(){}N.prototype=Q.prototype;function O(U,M,S){this.props=U,this.context=M,this.refs=F,this.updater=S||E}var j=O.prototype=new N;j.constructor=O,v(j,Q.prototype),j.isPureReactComponent=!0;var K=Array.isArray;function T(){}var L={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function _(U,M,S){var aA=S.ref;return{$$typeof:A,type:U,key:M,ref:aA!==void 0?aA:null,props:S}}function X(U,M){return _(U.type,M,U.props)}function nA(U){return typeof U=="object"&&U!==null&&U.$$typeof===A}function z(U){var M={"=":"=0",":":"=2"};return"$"+U.replace(/[=:]/g,function(S){return M[S]})}var lA=/\/+/g;function Z(U,M){return typeof U=="object"&&U!==null&&U.key!=null?z(""+U.key):M.toString(36)}function eA(U){switch(U.status){case"fulfilled":return U.value;case"rejected":throw U.reason;default:switch(typeof U.status=="string"?U.then(T,T):(U.status="pending",U.then(function(M){U.status==="pending"&&(U.status="fulfilled",U.value=M)},function(M){U.status==="pending"&&(U.status="rejected",U.reason=M)})),U.status){case"fulfilled":return U.value;case"rejected":throw U.reason}}throw U}function D(U,M,S,aA,uA){var fA=typeof U;(fA==="undefined"||fA==="boolean")&&(U=null);var pA=!1;if(U===null)pA=!0;else switch(fA){case"bigint":case"string":case"number":pA=!0;break;case"object":switch(U.$$typeof){case A:case t:pA=!0;break;case m:return pA=U._init,D(pA(U._payload),M,S,aA,uA)}}if(pA)return uA=uA(U),pA=aA===""?"."+Z(U,0):aA,K(uA)?(S="",pA!=null&&(S=pA.replace(lA,"$&/")+"/"),D(uA,M,S,"",function(FA){return FA})):uA!=null&&(nA(uA)&&(uA=X(uA,S+(uA.key==null||U&&U.key===uA.key?"":(""+uA.key).replace(lA,"$&/")+"/")+pA)),M.push(uA)),1;pA=0;var LA=aA===""?".":aA+":";if(K(U))for(var IA=0;IA<U.length;IA++)aA=U[IA],fA=LA+Z(aA,IA),pA+=D(aA,M,S,fA,uA);else if(IA=C(U),typeof IA=="function")for(U=IA.call(U),IA=0;!(aA=U.next()).done;)aA=aA.value,fA=LA+Z(aA,IA++),pA+=D(aA,M,S,fA,uA);else if(fA==="object"){if(typeof U.then=="function")return D(eA(U),M,S,aA,uA);throw M=String(U),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(U).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.")}return pA}function W(U,M,S){if(U==null)return U;var aA=[],uA=0;return D(U,aA,"","",function(fA){return M.call(S,fA,uA++)}),aA}function AA(U){if(U._status===-1){var M=U._result;M=M(),M.then(function(S){(U._status===0||U._status===-1)&&(U._status=1,U._result=S)},function(S){(U._status===0||U._status===-1)&&(U._status=2,U._result=S)}),U._status===-1&&(U._status=0,U._result=M)}if(U._status===1)return U._result.default;throw U._result}var gA=typeof reportError=="function"?reportError:function(U){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var M=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof U=="object"&&U!==null&&typeof U.message=="string"?String(U.message):String(U),error:U});if(!window.dispatchEvent(M))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",U);return}},I={map:W,forEach:function(U,M,S){W(U,function(){M.apply(this,arguments)},S)},count:function(U){var M=0;return W(U,function(){M++}),M},toArray:function(U){return W(U,function(M){return M})||[]},only:function(U){if(!nA(U))throw Error("React.Children.only expected to receive a single React element child.");return U}};return TA.Activity=B,TA.Children=I,TA.Component=Q,TA.Fragment=r,TA.Profiler=s,TA.PureComponent=O,TA.StrictMode=i,TA.Suspense=f,TA.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,TA.__COMPILER_RUNTIME={__proto__:null,c:function(U){return L.H.useMemoCache(U)}},TA.cache=function(U){return function(){return U.apply(null,arguments)}},TA.cacheSignal=function(){return null},TA.cloneElement=function(U,M,S){if(U==null)throw Error("The argument must be a React element, but you passed "+U+".");var aA=v({},U.props),uA=U.key;if(M!=null)for(fA in M.key!==void 0&&(uA=""+M.key),M)!R.call(M,fA)||fA==="key"||fA==="__self"||fA==="__source"||fA==="ref"&&M.ref===void 0||(aA[fA]=M[fA]);var fA=arguments.length-2;if(fA===1)aA.children=S;else if(1<fA){for(var pA=Array(fA),LA=0;LA<fA;LA++)pA[LA]=arguments[LA+2];aA.children=pA}return _(U.type,uA,aA)},TA.createContext=function(U){return U={$$typeof:c,_currentValue:U,_currentValue2:U,_threadCount:0,Provider:null,Consumer:null},U.Provider=U,U.Consumer={$$typeof:l,_context:U},U},TA.createElement=function(U,M,S){var aA,uA={},fA=null;if(M!=null)for(aA in M.key!==void 0&&(fA=""+M.key),M)R.call(M,aA)&&aA!=="key"&&aA!=="__self"&&aA!=="__source"&&(uA[aA]=M[aA]);var pA=arguments.length-2;if(pA===1)uA.children=S;else if(1<pA){for(var LA=Array(pA),IA=0;IA<pA;IA++)LA[IA]=arguments[IA+2];uA.children=LA}if(U&&U.defaultProps)for(aA in pA=U.defaultProps,pA)uA[aA]===void 0&&(uA[aA]=pA[aA]);return _(U,fA,uA)},TA.createRef=function(){return{current:null}},TA.forwardRef=function(U){return{$$typeof:u,render:U}},TA.isValidElement=nA,TA.lazy=function(U){return{$$typeof:m,_payload:{_status:-1,_result:U},_init:AA}},TA.memo=function(U,M){return{$$typeof:h,type:U,compare:M===void 0?null:M}},TA.startTransition=function(U){var M=L.T,S={};L.T=S;try{var aA=U(),uA=L.S;uA!==null&&uA(S,aA),typeof aA=="object"&&aA!==null&&typeof aA.then=="function"&&aA.then(T,gA)}catch(fA){gA(fA)}finally{M!==null&&S.types!==null&&(M.types=S.types),L.T=M}},TA.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},TA.use=function(U){return L.H.use(U)},TA.useActionState=function(U,M,S){return L.H.useActionState(U,M,S)},TA.useCallback=function(U,M){return L.H.useCallback(U,M)},TA.useContext=function(U){return L.H.useContext(U)},TA.useDebugValue=function(){},TA.useDeferredValue=function(U,M){return L.H.useDeferredValue(U,M)},TA.useEffect=function(U,M){return L.H.useEffect(U,M)},TA.useEffectEvent=function(U){return L.H.useEffectEvent(U)},TA.useId=function(){return L.H.useId()},TA.useImperativeHandle=function(U,M,S){return L.H.useImperativeHandle(U,M,S)},TA.useInsertionEffect=function(U,M){return L.H.useInsertionEffect(U,M)},TA.useLayoutEffect=function(U,M){return L.H.useLayoutEffect(U,M)},TA.useMemo=function(U,M){return L.H.useMemo(U,M)},TA.useOptimistic=function(U,M){return L.H.useOptimistic(U,M)},TA.useReducer=function(U,M,S){return L.H.useReducer(U,M,S)},TA.useRef=function(U){return L.H.useRef(U)},TA.useState=function(U){return L.H.useState(U)},TA.useSyncExternalStore=function(U,M,S){return L.H.useSyncExternalStore(U,M,S)},TA.useTransition=function(){return L.H.useTransition()},TA.version="19.2.0",TA}var Jg;function xl(){return Jg||(Jg=1,cu.exports=qv()),cu.exports}var b=xl();const Ta=lu(b),Zg=Pv({__proto__:null,default:Ta},[b]);var uu={exports:{}},Ia={},fu={exports:{}},du={};var Wg;function Jv(){return Wg||(Wg=1,(function(A){function t(D,W){var AA=D.length;D.push(W);A:for(;0<AA;){var gA=AA-1>>>1,I=D[gA];if(0<s(I,W))D[gA]=W,D[AA]=I,AA=gA;else break A}}function r(D){return D.length===0?null:D[0]}function i(D){if(D.length===0)return null;var W=D[0],AA=D.pop();if(AA!==W){D[0]=AA;A:for(var gA=0,I=D.length,U=I>>>1;gA<U;){var M=2*(gA+1)-1,S=D[M],aA=M+1,uA=D[aA];if(0>s(S,AA))aA<I&&0>s(uA,S)?(D[gA]=uA,D[aA]=AA,gA=aA):(D[gA]=S,D[M]=AA,gA=M);else if(aA<I&&0>s(uA,AA))D[gA]=uA,D[aA]=AA,gA=aA;else break A}}return W}function s(D,W){var AA=D.sortIndex-W.sortIndex;return AA!==0?AA:D.id-W.id}if(A.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;A.unstable_now=function(){return l.now()}}else{var c=Date,u=c.now();A.unstable_now=function(){return c.now()-u}}var f=[],h=[],m=1,B=null,w=3,C=!1,E=!1,v=!1,F=!1,Q=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function j(D){for(var W=r(h);W!==null;){if(W.callback===null)i(h);else if(W.startTime<=D)i(h),W.sortIndex=W.expirationTime,t(f,W);else break;W=r(h)}}function K(D){if(v=!1,j(D),!E)if(r(f)!==null)E=!0,T||(T=!0,z());else{var W=r(h);W!==null&&eA(K,W.startTime-D)}}var T=!1,L=-1,R=5,_=-1;function X(){return F?!0:!(A.unstable_now()-_<R)}function nA(){if(F=!1,T){var D=A.unstable_now();_=D;var W=!0;try{A:{E=!1,v&&(v=!1,N(L),L=-1),C=!0;var AA=w;try{e:{for(j(D),B=r(f);B!==null&&!(B.expirationTime>D&&X());){var gA=B.callback;if(typeof gA=="function"){B.callback=null,w=B.priorityLevel;var I=gA(B.expirationTime<=D);if(D=A.unstable_now(),typeof I=="function"){B.callback=I,j(D),W=!0;break e}B===r(f)&&i(f),j(D)}else i(f);B=r(f)}if(B!==null)W=!0;else{var U=r(h);U!==null&&eA(K,U.startTime-D),W=!1}}break A}finally{B=null,w=AA,C=!1}W=void 0}}finally{W?z():T=!1}}}var z;if(typeof O=="function")z=function(){O(nA)};else if(typeof MessageChannel<"u"){var lA=new MessageChannel,Z=lA.port2;lA.port1.onmessage=nA,z=function(){Z.postMessage(null)}}else z=function(){Q(nA,0)};function eA(D,W){L=Q(function(){D(A.unstable_now())},W)}A.unstable_IdlePriority=5,A.unstable_ImmediatePriority=1,A.unstable_LowPriority=4,A.unstable_NormalPriority=3,A.unstable_Profiling=null,A.unstable_UserBlockingPriority=2,A.unstable_cancelCallback=function(D){D.callback=null},A.unstable_forceFrameRate=function(D){0>D||125<D||(R=0<D?Math.floor(1e3/D):5)},A.unstable_getCurrentPriorityLevel=function(){return w},A.unstable_next=function(D){switch(w){case 1:case 2:case 3:var W=3;break;default:W=w}var AA=w;w=W;try{return D()}finally{w=AA}},A.unstable_requestPaint=function(){F=!0},A.unstable_runWithPriority=function(D,W){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var AA=w;w=D;try{return W()}finally{w=AA}},A.unstable_scheduleCallback=function(D,W,AA){var gA=A.unstable_now();switch(typeof AA=="object"&&AA!==null?(AA=AA.delay,AA=typeof AA=="number"&&0<AA?gA+AA:gA):AA=gA,D){case 1:var I=-1;break;case 2:I=250;break;case 5:I=1073741823;break;case 4:I=1e4;break;default:I=5e3}return I=AA+I,D={id:m++,callback:W,priorityLevel:D,startTime:AA,expirationTime:I,sortIndex:-1},AA>gA?(D.sortIndex=AA,t(h,D),r(f)===null&&D===r(h)&&(v?(N(L),L=-1):v=!0,eA(K,AA-gA))):(D.sortIndex=I,t(f,D),E||C||(E=!0,T||(T=!0,z()))),D},A.unstable_shouldYield=X,A.unstable_wrapCallback=function(D){var W=w;return function(){var AA=w;w=W;try{return D.apply(this,arguments)}finally{w=AA}}}})(du)),du}var $g;function Zv(){return $g||($g=1,fu.exports=Jv()),fu.exports}var hu={exports:{}},rt={};var A0;function Wv(){if(A0)return rt;A0=1;var A=xl();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function l(f,h,m){var B=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:B==null?null:""+B,children:f,containerInfo:h,implementation:m}}var c=A.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,rt.createPortal=function(f,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return l(f,h,null,m)},rt.flushSync=function(f){var h=c.T,m=i.p;try{if(c.T=null,i.p=2,f)return f()}finally{c.T=h,i.p=m,i.d.f()}},rt.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(f,h))},rt.prefetchDNS=function(f){typeof f=="string"&&i.d.D(f)},rt.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var m=h.as,B=u(m,h.crossOrigin),w=typeof h.integrity=="string"?h.integrity:void 0,C=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?i.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:B,integrity:w,fetchPriority:C}):m==="script"&&i.d.X(f,{crossOrigin:B,integrity:w,fetchPriority:C,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},rt.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=u(h.as,h.crossOrigin);i.d.M(f,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(f)},rt.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,B=u(m,h.crossOrigin);i.d.L(f,m,{crossOrigin:B,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},rt.preloadModule=function(f,h){if(typeof f=="string")if(h){var m=u(h.as,h.crossOrigin);i.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(f)},rt.requestFormReset=function(f){i.d.r(f)},rt.unstable_batchedUpdates=function(f,h){return f(h)},rt.useFormState=function(f,h,m){return c.H.useFormState(f,h,m)},rt.useFormStatus=function(){return c.H.useHostTransitionStatus()},rt.version="19.2.0",rt}var e0;function $v(){if(e0)return hu.exports;e0=1;function A(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(A)}catch{}}return A(),hu.exports=Wv(),hu.exports}var t0;function A2(){if(t0)return Ia;t0=1;var A=Zv(),t=xl(),r=$v();function i(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 s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function l(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 c(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 u(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 f(e){if(l(e)!==e)throw Error(i(188))}function h(e){var n=e.alternate;if(!n){if(n=l(e),n===null)throw Error(i(188));return n!==e?null:e}for(var a=e,o=n;;){var d=a.return;if(d===null)break;var p=d.alternate;if(p===null){if(o=d.return,o!==null){a=o;continue}break}if(d.child===p.child){for(p=d.child;p;){if(p===a)return f(d),e;if(p===o)return f(d),n;p=p.sibling}throw Error(i(188))}if(a.return!==o.return)a=d,o=p;else{for(var y=!1,x=d.child;x;){if(x===a){y=!0,a=d,o=p;break}if(x===o){y=!0,o=d,a=p;break}x=x.sibling}if(!y){for(x=p.child;x;){if(x===a){y=!0,a=p,o=d;break}if(x===o){y=!0,o=p,a=d;break}x=x.sibling}if(!y)throw Error(i(189))}}if(a.alternate!==o)throw Error(i(190))}if(a.tag!==3)throw Error(i(188));return a.stateNode.current===a?e:n}function m(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=m(e),n!==null)return n;e=e.sibling}return null}var B=Object.assign,w=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),O=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),X=Symbol.for("react.memo_cache_sentinel"),nA=Symbol.iterator;function z(e){return e===null||typeof e!="object"?null:(e=nA&&e[nA]||e["@@iterator"],typeof e=="function"?e:null)}var lA=Symbol.for("react.client.reference");function Z(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===lA?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case v:return"Fragment";case Q:return"Profiler";case F:return"StrictMode";case K:return"Suspense";case T:return"SuspenseList";case _:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case O:return e.displayName||"Context";case N:return(e._context.displayName||"Context")+".Consumer";case j: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:Z(e.type)||"Memo";case R:n=e._payload,e=e._init;try{return Z(e(n))}catch{}}return null}var eA=Array.isArray,D=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,AA={pending:!1,data:null,method:null,action:null},gA=[],I=-1;function U(e){return{current:e}}function M(e){0>I||(e.current=gA[I],gA[I]=null,I--)}function S(e,n){I++,gA[I]=e.current,e.current=n}var aA=U(null),uA=U(null),fA=U(null),pA=U(null);function LA(e,n){switch(S(fA,n),S(uA,e),S(aA,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?gv(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=gv(n),e=pv(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}M(aA),S(aA,e)}function IA(){M(aA),M(uA),M(fA)}function FA(e){e.memoizedState!==null&&S(pA,e);var n=aA.current,a=pv(n,e.type);n!==a&&(S(uA,e),S(aA,a))}function fe(e){uA.current===e&&(M(aA),M(uA)),pA.current===e&&(M(pA),yl._currentValue=AA)}var de,le;function Te(e){if(de===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);de=n&&n[1]||"",le=-1<a.stack.indexOf(`
|
|
2
2
|
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+
|
|
3
|
+
`+de+e+le}var $e=!1;function Ut(e,n){if(!e||$e)return"";$e=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(n){var sA=function(){throw Error()};if(Object.defineProperty(sA.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(sA,[])}catch($){var J=$}Reflect.construct(e,[],sA)}else{try{sA.call()}catch($){J=$}e.call(sA.prototype)}}else{try{throw Error()}catch($){J=$}(sA=e())&&typeof sA.catch=="function"&&sA.catch(function(){})}}catch($){if($&&J&&typeof $.stack=="string")return[$.stack,J.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=o.DetermineComponentFrameRoot(),y=p[0],x=p[1];if(y&&x){var H=y.split(`
|
|
4
4
|
`),Y=x.split(`
|
|
5
5
|
`);for(d=o=0;o<H.length&&!H[o].includes("DetermineComponentFrameRoot");)o++;for(;d<Y.length&&!Y[d].includes("DetermineComponentFrameRoot");)d++;if(o===H.length||d===Y.length)for(o=H.length-1,d=Y.length-1;1<=o&&0<=d&&H[o]!==Y[d];)d--;for(;1<=o&&0<=d;o--,d--)if(H[o]!==Y[d]){if(o!==1||d!==1)do if(o--,d--,0>d||H[o]!==Y[d]){var tA=`
|
|
6
6
|
`+H[o].replace(" at new "," at ");return e.displayName&&tA.includes("<anonymous>")&&(tA=tA.replace("<anonymous>",e.displayName)),tA}while(1<=o&&0<=d);break}}}finally{$e=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Te(a):""}function gt(e,n){switch(e.tag){case 26:case 27:case 5:return Te(e.type);case 16:return Te("Lazy");case 13:return e.child!==n&&n!==null?Te("Suspense Fallback"):Te("Suspense");case 19:return Te("SuspenseList");case 0:case 15:return Ut(e.type,!1);case 11:return Ut(e.type.render,!1);case 1:return Ut(e.type,!0);case 31:return Te("Activity");default:return""}}function an(e){try{var n="",a=null;do n+=gt(e,a),a=e,e=e.return;while(e);return n}catch(o){return`
|
|
7
7
|
Error generating stack: `+o.message+`
|
|
8
|
-
`+o.stack}}var ot=Object.prototype.hasOwnProperty,Nn=A.unstable_scheduleCallback,Cn=A.unstable_cancelCallback,$r=A.unstable_shouldYield,pr=A.unstable_requestPaint,ze=A.unstable_now,Vi=A.unstable_getCurrentPriorityLevel,rA=A.unstable_ImmediatePriority,V=A.unstable_UserBlockingPriority,q=A.unstable_NormalPriority,oA=A.unstable_LowPriority,hA=A.unstable_IdlePriority,SA=A.log,FA=A.unstable_setDisableYieldValue,jA=null,LA=null;function YA(e){if(typeof SA=="function"&&FA(e),LA&&typeof LA.setStrictMode=="function")try{LA.setStrictMode(jA,e)}catch{}}var TA=Math.clz32?Math.clz32:te,pt=Math.log,bA=Math.LN2;function te(e){return e>>>=0,e===0?32:31-(pt(e)/bA|0)|0}var Ne=256,mt=262144,sn=4194304;function xe(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 In(e,n,a){var o=e.pendingLanes;if(o===0)return 0;var d=0,p=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var x=o&134217727;return x!==0?(o=x&~p,o!==0?d=xe(o):(y&=x,y!==0?d=xe(y):a||(a=x&~e,a!==0&&(d=xe(a))))):(x=o&~p,x!==0?d=xe(x):y!==0?d=xe(y):a||(a=o&~e,a!==0&&(d=xe(a)))),d===0?0:n!==0&&n!==d&&(n&p)===0&&(p=d&-d,a=n&-n,p>=a||p===32&&(a&4194048)!==0)?n:d}function ve(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function KA(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 Gi(){var e=sn;return sn<<=1,(sn&62914560)===0&&(sn=4194304),e}function ln(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function Gt(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Dd(e,n,a,o,d,p){var y=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 x=e.entanglements,H=e.expirationTimes,Y=e.hiddenUpdates;for(a=y&~a;0<a;){var tA=31-TA(a),sA=1<<tA;x[tA]=0,H[tA]=-1;var J=Y[tA];if(J!==null)for(Y[tA]=null,tA=0;tA<J.length;tA++){var $=J[tA];$!==null&&($.lane&=-536870913)}a&=~sA}o!==0&&Ai(e,o,0),p!==0&&d===0&&e.tag!==0&&(e.suspendedLanes|=p&~(y&~n))}function Ai(e,n,a){e.pendingLanes|=n,e.suspendedLanes&=~n;var o=31-TA(n);e.entangledLanes|=n,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function Pe(e,n){var a=e.entangledLanes|=n;for(e=e.entanglements;a;){var o=31-TA(a),d=1<<o;d&n|e[o]&n&&(e[o]|=n),a&=~d}}function Ft(e,n){var a=n&-n;return a=(a&42)!==0?1:mr(a),(a&(e.suspendedLanes|n))!==0?0:a}function mr(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 Ms(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function qo(){var e=W.p;return e!==0?e:(e=window.event,e===void 0?32:kv(e.type))}function zi(e,n){var a=W.p;try{return W.p=e,n()}finally{W.p=a}}var ne=Math.random().toString(36).slice(2),_A="__reactFiber$"+ne,Oe="__reactProps$"+ne,Hn="__reactContainer$"+ne,Jo="__reactEvents$"+ne,Q7="__reactListeners$"+ne,U7="__reactHandles$"+ne,nw="__reactResources$"+ne,Os="__reactMarker$"+ne;function kd(e){delete e[_A],delete e[Oe],delete e[Jo],delete e[Q7],delete e[U7]}function Pi(e){var n=e[_A];if(n)return n;for(var a=e.parentNode;a;){if(n=a[Hn]||a[_A]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(e=bv(e);e!==null;){if(a=e[_A])return a;e=bv(e)}return n}e=a,a=e.parentNode}return null}function Yi(e){if(e=e[_A]||e[Hn]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Rs(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(i(33))}function Xi(e){var n=e[nw];return n||(n=e[nw]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function Ye(e){e[Os]=!0}var rw=new Set,iw={};function ei(e,n){qi(e,n),qi(e+"Capture",n)}function qi(e,n){for(iw[e]=n,e=0;e<n.length;e++)rw.add(n[e])}var F7=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]*$"),aw={},sw={};function T7(e){return ot.call(sw,e)?!0:ot.call(aw,e)?!1:F7.test(e)?sw[e]=!0:(aw[e]=!0,!1)}function Zo(e,n,a){if(T7(n))if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var o=n.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+a)}}function Wo(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 _n(e,n,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(n,a,""+o)}}function zt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lw(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function N7(e,n,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,p=o.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return d.call(this)},set:function(y){a=""+y,p.call(this,y)}}),Object.defineProperty(e,n,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(y){a=""+y},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function jd(e){if(!e._valueTracker){var n=lw(e)?"checked":"value";e._valueTracker=N7(e,n,""+e[n])}}function ow(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),o="";return e&&(o=lw(e)?e.checked?"true":"false":e.value),e=o,e!==a?(n.setValue(e),!0):!1}function $o(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 I7=/[\n"\\]/g;function Pt(e){return e.replace(I7,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Kd(e,n,a,o,d,p,y,x){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),n!=null?y==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+zt(n)):e.value!==""+zt(n)&&(e.value=""+zt(n)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),n!=null?Vd(e,y,zt(n)):a!=null?Vd(e,y,zt(a)):o!=null&&e.removeAttribute("value"),d==null&&p!=null&&(e.defaultChecked=!!p),d!=null&&(e.checked=d&&typeof d!="function"&&typeof d!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+zt(x):e.removeAttribute("name")}function cw(e,n,a,o,d,p,y,x){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.type=p),n!=null||a!=null){if(!(p!=="submit"&&p!=="reset"||n!=null)){jd(e);return}a=a!=null?""+zt(a):"",n=n!=null?""+zt(n):a,x||n===e.value||(e.value=n),e.defaultValue=n}o=o??d,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=x?e.checked:!!o,e.defaultChecked=!!o,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),jd(e)}function Vd(e,n,a){n==="number"&&$o(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ji(e,n,a,o){if(e=e.options,n){n={};for(var d=0;d<a.length;d++)n["$"+a[d]]=!0;for(a=0;a<e.length;a++)d=n.hasOwnProperty("$"+e[a].value),e[a].selected!==d&&(e[a].selected=d),d&&o&&(e[a].defaultSelected=!0)}else{for(a=""+zt(a),n=null,d=0;d<e.length;d++){if(e[d].value===a){e[d].selected=!0,o&&(e[d].defaultSelected=!0);return}n!==null||e[d].disabled||(n=e[d])}n!==null&&(n.selected=!0)}}function uw(e,n,a){if(n!=null&&(n=""+zt(n),n!==e.value&&(e.value=n),a==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=a!=null?""+zt(a):""}function fw(e,n,a,o){if(n==null){if(o!=null){if(a!=null)throw Error(i(92));if(eA(o)){if(1<o.length)throw Error(i(93));o=o[0]}a=o}a==null&&(a=""),n=a}a=zt(n),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),jd(e)}function Zi(e,n){if(n){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=n;return}}e.textContent=n}var H7=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 dw(e,n,a){var o=n.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?o?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":o?e.setProperty(n,a):typeof a!="number"||a===0||H7.has(n)?n==="float"?e.cssFloat=a:e[n]=(""+a).trim():e[n]=a+"px"}function hw(e,n,a){if(n!=null&&typeof n!="object")throw Error(i(62));if(e=e.style,a!=null){for(var o in a)!a.hasOwnProperty(o)||n!=null&&n.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var d in n)o=n[d],n.hasOwnProperty(d)&&a[d]!==o&&dw(e,d,o)}else for(var p in n)n.hasOwnProperty(p)&&dw(e,p,n[p])}function Gd(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 _7=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"]]),M7=/^[\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 Ac(e){return M7.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Mn(){}var zd=null;function Pd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wi=null,$i=null;function gw(e){var n=Yi(e);if(n&&(e=n.stateNode)){var a=e[Oe]||null;A:switch(e=n.stateNode,n.type){case"input":if(Kd(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="'+Pt(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var o=a[n];if(o!==e&&o.form===e.form){var d=o[Oe]||null;if(!d)throw Error(i(90));Kd(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(n=0;n<a.length;n++)o=a[n],o.form===e.form&&ow(o)}break A;case"textarea":uw(e,a.value,a.defaultValue);break A;case"select":n=a.value,n!=null&&Ji(e,!!a.multiple,n,!1)}}}var Yd=!1;function pw(e,n,a){if(Yd)return e(n,a);Yd=!0;try{var o=e(n);return o}finally{if(Yd=!1,(Wi!==null||$i!==null)&&(jc(),Wi&&(n=Wi,e=$i,$i=Wi=null,gw(n),e)))for(n=0;n<e.length;n++)gw(e[n])}}function Ls(e,n){var a=e.stateNode;if(a===null)return null;var o=a[Oe]||null;if(o===null)return null;a=o[n];A:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break A;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(i(231,n,typeof a));return a}var On=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xd=!1;if(On)try{var Ds={};Object.defineProperty(Ds,"passive",{get:function(){Xd=!0}}),window.addEventListener("test",Ds,Ds),window.removeEventListener("test",Ds,Ds)}catch{Xd=!1}var Br=null,qd=null,ec=null;function mw(){if(ec)return ec;var e,n=qd,a=n.length,o,d="value"in Br?Br.value:Br.textContent,p=d.length;for(e=0;e<a&&n[e]===d[e];e++);var y=a-e;for(o=1;o<=y&&n[a-o]===d[p-o];o++);return ec=d.slice(e,1<o?1-o:void 0)}function tc(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 nc(){return!0}function Bw(){return!1}function Bt(e){function n(a,o,d,p,y){this._reactName=a,this._targetInst=d,this.type=o,this.nativeEvent=p,this.target=y,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(a=e[x],this[x]=a?a(p):p[x]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?nc:Bw,this.isPropagationStopped=Bw,this}return B(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=nc)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=nc)},persist:function(){},isPersistent:nc}),n}var ti={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rc=Bt(ti),ks=B({},ti,{view:0,detail:0}),O7=Bt(ks),Jd,Zd,js,ic=B({},ks,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$d,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!==js&&(js&&e.type==="mousemove"?(Jd=e.screenX-js.screenX,Zd=e.screenY-js.screenY):Zd=Jd=0,js=e),Jd)},movementY:function(e){return"movementY"in e?e.movementY:Zd}}),Cw=Bt(ic),R7=B({},ic,{dataTransfer:0}),L7=Bt(R7),D7=B({},ks,{relatedTarget:0}),Wd=Bt(D7),k7=B({},ti,{animationName:0,elapsedTime:0,pseudoElement:0}),j7=Bt(k7),K7=B({},ti,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),V7=Bt(K7),G7=B({},ti,{data:0}),ww=Bt(G7),z7={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},P7={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"},Y7={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function X7(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Y7[e])?!!n[e]:!1}function $d(){return X7}var q7=B({},ks,{key:function(e){if(e.key){var n=z7[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=tc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?P7[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$d,charCode:function(e){return e.type==="keypress"?tc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),J7=Bt(q7),Z7=B({},ic,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yw=Bt(Z7),W7=B({},ks,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$d}),$7=Bt(W7),AN=B({},ti,{propertyName:0,elapsedTime:0,pseudoElement:0}),eN=Bt(AN),tN=B({},ic,{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}),nN=Bt(tN),rN=B({},ti,{newState:0,oldState:0}),iN=Bt(rN),aN=[9,13,27,32],Ah=On&&"CompositionEvent"in window,Ks=null;On&&"documentMode"in document&&(Ks=document.documentMode);var sN=On&&"TextEvent"in window&&!Ks,Ew=On&&(!Ah||Ks&&8<Ks&&11>=Ks),vw=" ",bw=!1;function xw(e,n){switch(e){case"keyup":return aN.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Aa=!1;function lN(e,n){switch(e){case"compositionend":return Sw(n);case"keypress":return n.which!==32?null:(bw=!0,vw);case"textInput":return e=n.data,e===vw&&bw?null:e;default:return null}}function oN(e,n){if(Aa)return e==="compositionend"||!Ah&&xw(e,n)?(e=mw(),ec=qd=Br=null,Aa=!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 Ew&&n.locale!=="ko"?null:n.data;default:return null}}var cN={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 Qw(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!cN[e.type]:n==="textarea"}function Uw(e,n,a,o){Wi?$i?$i.push(o):$i=[o]:Wi=o,n=Xc(n,"onChange"),0<n.length&&(a=new rc("onChange","change",null,a,o),e.push({event:a,listeners:n}))}var Vs=null,Gs=null;function uN(e){cv(e,0)}function ac(e){var n=Rs(e);if(ow(n))return e}function Fw(e,n){if(e==="change")return n}var Tw=!1;if(On){var eh;if(On){var th="oninput"in document;if(!th){var Nw=document.createElement("div");Nw.setAttribute("oninput","return;"),th=typeof Nw.oninput=="function"}eh=th}else eh=!1;Tw=eh&&(!document.documentMode||9<document.documentMode)}function Iw(){Vs&&(Vs.detachEvent("onpropertychange",Hw),Gs=Vs=null)}function Hw(e){if(e.propertyName==="value"&&ac(Gs)){var n=[];Uw(n,Gs,e,Pd(e)),pw(uN,n)}}function fN(e,n,a){e==="focusin"?(Iw(),Vs=n,Gs=a,Vs.attachEvent("onpropertychange",Hw)):e==="focusout"&&Iw()}function dN(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ac(Gs)}function hN(e,n){if(e==="click")return ac(n)}function gN(e,n){if(e==="input"||e==="change")return ac(n)}function pN(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Tt=typeof Object.is=="function"?Object.is:pN;function zs(e,n){if(Tt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var a=Object.keys(e),o=Object.keys(n);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var d=a[o];if(!ot.call(n,d)||!Tt(e[d],n[d]))return!1}return!0}function _w(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mw(e,n){var a=_w(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=n&&o>=n)return{node:a,offset:n-e};e=o}A:{for(;a;){if(a.nextSibling){a=a.nextSibling;break A}a=a.parentNode}a=void 0}a=_w(a)}}function Ow(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Ow(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Rw(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=$o(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=$o(e.document)}return n}function nh(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 mN=On&&"documentMode"in document&&11>=document.documentMode,ea=null,rh=null,Ps=null,ih=!1;function Lw(e,n,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ih||ea==null||ea!==$o(o)||(o=ea,"selectionStart"in o&&nh(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Ps&&zs(Ps,o)||(Ps=o,o=Xc(rh,"onSelect"),0<o.length&&(n=new rc("onSelect","select",null,n,a),e.push({event:n,listeners:o}),n.target=ea)))}function ni(e,n){var a={};return a[e.toLowerCase()]=n.toLowerCase(),a["Webkit"+e]="webkit"+n,a["Moz"+e]="moz"+n,a}var ta={animationend:ni("Animation","AnimationEnd"),animationiteration:ni("Animation","AnimationIteration"),animationstart:ni("Animation","AnimationStart"),transitionrun:ni("Transition","TransitionRun"),transitionstart:ni("Transition","TransitionStart"),transitioncancel:ni("Transition","TransitionCancel"),transitionend:ni("Transition","TransitionEnd")},ah={},Dw={};On&&(Dw=document.createElement("div").style,"AnimationEvent"in window||(delete ta.animationend.animation,delete ta.animationiteration.animation,delete ta.animationstart.animation),"TransitionEvent"in window||delete ta.transitionend.transition);function ri(e){if(ah[e])return ah[e];if(!ta[e])return e;var n=ta[e],a;for(a in n)if(n.hasOwnProperty(a)&&a in Dw)return ah[e]=n[a];return e}var kw=ri("animationend"),jw=ri("animationiteration"),Kw=ri("animationstart"),BN=ri("transitionrun"),CN=ri("transitionstart"),wN=ri("transitioncancel"),Vw=ri("transitionend"),Gw=new Map,sh="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(" ");sh.push("scrollEnd");function on(e,n){Gw.set(e,n),ei(n,[e])}var sc=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}},Yt=[],na=0,lh=0;function lc(){for(var e=na,n=lh=na=0;n<e;){var a=Yt[n];Yt[n++]=null;var o=Yt[n];Yt[n++]=null;var d=Yt[n];Yt[n++]=null;var p=Yt[n];if(Yt[n++]=null,o!==null&&d!==null){var y=o.pending;y===null?d.next=d:(d.next=y.next,y.next=d),o.pending=d}p!==0&&zw(a,d,p)}}function oc(e,n,a,o){Yt[na++]=e,Yt[na++]=n,Yt[na++]=a,Yt[na++]=o,lh|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function oh(e,n,a,o){return oc(e,n,a,o),cc(e)}function ii(e,n){return oc(e,null,null,n),cc(e)}function zw(e,n,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var d=!1,p=e.return;p!==null;)p.childLanes|=a,o=p.alternate,o!==null&&(o.childLanes|=a),p.tag===22&&(e=p.stateNode,e===null||e._visibility&1||(d=!0)),e=p,p=p.return;return e.tag===3?(p=e.stateNode,d&&n!==null&&(d=31-TA(a),e=p.hiddenUpdates,o=e[d],o===null?e[d]=[n]:o.push(n),n.lane=a|536870912),p):null}function cc(e){if(50<hl)throw hl=0,Bg=null,Error(i(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var ra={};function yN(e,n,a,o){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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nt(e,n,a,o){return new yN(e,n,a,o)}function ch(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Rn(e,n){var a=e.alternate;return a===null?(a=Nt(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 Pw(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 uc(e,n,a,o,d,p){var y=0;if(o=e,typeof e=="function")ch(e)&&(y=1);else if(typeof e=="string")y=SI(e,a,aA.current)?26:e==="html"||e==="head"||e==="body"?27:5;else A:switch(e){case _:return e=Nt(31,a,n,d),e.elementType=_,e.lanes=p,e;case v:return ai(a.children,d,p,n);case F:y=8,d|=24;break;case Q:return e=Nt(12,a,n,d|2),e.elementType=Q,e.lanes=p,e;case j:return e=Nt(13,a,n,d),e.elementType=j,e.lanes=p,e;case T:return e=Nt(19,a,n,d),e.elementType=T,e.lanes=p,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O:y=10;break A;case I:y=9;break A;case K:y=11;break A;case L:y=14;break A;case R:y=16,o=null;break A}y=29,a=Error(i(130,e===null?"null":typeof e,"")),o=null}return n=Nt(y,a,n,d),n.elementType=e,n.type=o,n.lanes=p,n}function ai(e,n,a,o){return e=Nt(7,e,o,n),e.lanes=a,e}function uh(e,n,a){return e=Nt(6,e,null,n),e.lanes=a,e}function Yw(e){var n=Nt(18,null,null,0);return n.stateNode=e,n}function fh(e,n,a){return n=Nt(4,e.children!==null?e.children:[],e.key,n),n.lanes=a,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var Xw=new WeakMap;function Xt(e,n){if(typeof e=="object"&&e!==null){var a=Xw.get(e);return a!==void 0?a:(n={value:e,source:n,stack:an(n)},Xw.set(e,n),n)}return{value:e,source:n,stack:an(n)}}var ia=[],aa=0,fc=null,Ys=0,qt=[],Jt=0,Cr=null,wn=1,yn="";function Ln(e,n){ia[aa++]=Ys,ia[aa++]=fc,fc=e,Ys=n}function qw(e,n,a){qt[Jt++]=wn,qt[Jt++]=yn,qt[Jt++]=Cr,Cr=e;var o=wn;e=yn;var d=32-TA(o)-1;o&=~(1<<d),a+=1;var p=32-TA(n)+d;if(30<p){var y=d-d%5;p=(o&(1<<y)-1).toString(32),o>>=y,d-=y,wn=1<<32-TA(n)+d|a<<d|o,yn=p+e}else wn=1<<p|a<<d|o,yn=e}function dh(e){e.return!==null&&(Ln(e,1),qw(e,1,0))}function hh(e){for(;e===fc;)fc=ia[--aa],ia[aa]=null,Ys=ia[--aa],ia[aa]=null;for(;e===Cr;)Cr=qt[--Jt],qt[Jt]=null,yn=qt[--Jt],qt[Jt]=null,wn=qt[--Jt],qt[Jt]=null}function Jw(e,n){qt[Jt++]=wn,qt[Jt++]=yn,qt[Jt++]=Cr,wn=n.id,yn=n.overflow,Cr=e}var At=null,we=null,JA=!1,wr=null,Zt=!1,gh=Error(i(519));function yr(e){var n=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Xs(Xt(n,e)),gh}function Zw(e){var n=e.stateNode,a=e.type,o=e.memoizedProps;switch(n[_A]=e,n[Oe]=o,a){case"dialog":zA("cancel",n),zA("close",n);break;case"iframe":case"object":case"embed":zA("load",n);break;case"video":case"audio":for(a=0;a<pl.length;a++)zA(pl[a],n);break;case"source":zA("error",n);break;case"img":case"image":case"link":zA("error",n),zA("load",n);break;case"details":zA("toggle",n);break;case"input":zA("invalid",n),cw(n,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":zA("invalid",n);break;case"textarea":zA("invalid",n),fw(n,o.value,o.defaultValue,o.children)}a=o.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||o.suppressHydrationWarning===!0||hv(n.textContent,a)?(o.popover!=null&&(zA("beforetoggle",n),zA("toggle",n)),o.onScroll!=null&&zA("scroll",n),o.onScrollEnd!=null&&zA("scrollend",n),o.onClick!=null&&(n.onclick=Mn),n=!0):n=!1,n||yr(e,!0)}function Ww(e){for(At=e.return;At;)switch(At.tag){case 5:case 31:case 13:Zt=!1;return;case 27:case 3:Zt=!0;return;default:At=At.return}}function sa(e){if(e!==At)return!1;if(!JA)return Ww(e),JA=!0,!1;var n=e.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Hg(e.type,e.memoizedProps)),a=!a),a&&we&&yr(e),Ww(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));we=vv(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));we=vv(e)}else n===27?(n=we,Mr(e.type)?(e=Lg,Lg=null,we=e):we=n):we=At?$t(e.stateNode.nextSibling):null;return!0}function si(){we=At=null,JA=!1}function ph(){var e=wr;return e!==null&&(Et===null?Et=e:Et.push.apply(Et,e),wr=null),e}function Xs(e){wr===null?wr=[e]:wr.push(e)}var mh=U(null),li=null,Dn=null;function Er(e,n,a){S(mh,n._currentValue),n._currentValue=a}function kn(e){e._currentValue=mh.current,M(mh)}function Bh(e,n,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,o!==null&&(o.childLanes|=n)):o!==null&&(o.childLanes&n)!==n&&(o.childLanes|=n),e===a)break;e=e.return}}function Ch(e,n,a,o){var d=e.child;for(d!==null&&(d.return=e);d!==null;){var p=d.dependencies;if(p!==null){var y=d.child;p=p.firstContext;A:for(;p!==null;){var x=p;p=d;for(var H=0;H<n.length;H++)if(x.context===n[H]){p.lanes|=a,x=p.alternate,x!==null&&(x.lanes|=a),Bh(p.return,a,e),o||(y=null);break A}p=x.next}}else if(d.tag===18){if(y=d.return,y===null)throw Error(i(341));y.lanes|=a,p=y.alternate,p!==null&&(p.lanes|=a),Bh(y,a,e),y=null}else y=d.child;if(y!==null)y.return=d;else for(y=d;y!==null;){if(y===e){y=null;break}if(d=y.sibling,d!==null){d.return=y.return,y=d;break}y=y.return}d=y}}function la(e,n,a,o){e=null;for(var d=n,p=!1;d!==null;){if(!p){if((d.flags&524288)!==0)p=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var y=d.alternate;if(y===null)throw Error(i(387));if(y=y.memoizedProps,y!==null){var x=d.type;Tt(d.pendingProps.value,y.value)||(e!==null?e.push(x):e=[x])}}else if(d===pA.current){if(y=d.alternate,y===null)throw Error(i(387));y.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(e!==null?e.push(yl):e=[yl])}d=d.return}e!==null&&Ch(n,e,a,o),n.flags|=262144}function dc(e){for(e=e.firstContext;e!==null;){if(!Tt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function oi(e){li=e,Dn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function et(e){return $w(li,e)}function hc(e,n){return li===null&&oi(e),$w(e,n)}function $w(e,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},Dn===null){if(e===null)throw Error(i(308));Dn=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else Dn=Dn.next=n;return a}var EN=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){n.aborted=!0,e.forEach(function(a){return a()})}},vN=A.unstable_scheduleCallback,bN=A.unstable_NormalPriority,Re={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function wh(){return{controller:new EN,data:new Map,refCount:0}}function qs(e){e.refCount--,e.refCount===0&&vN(bN,function(){e.controller.abort()})}var Js=null,yh=0,oa=0,ca=null;function xN(e,n){if(Js===null){var a=Js=[];yh=0,oa=bg(),ca={status:"pending",value:void 0,then:function(o){a.push(o)}}}return yh++,n.then(Ay,Ay),n}function Ay(){if(--yh===0&&Js!==null){ca!==null&&(ca.status="fulfilled");var e=Js;Js=null,oa=0,ca=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function SN(e,n){var a=[],o={status:"pending",value:null,reason:null,then:function(d){a.push(d)}};return e.then(function(){o.status="fulfilled",o.value=n;for(var d=0;d<a.length;d++)(0,a[d])(n)},function(d){for(o.status="rejected",o.reason=d,d=0;d<a.length;d++)(0,a[d])(void 0)}),o}var ey=D.S;D.S=function(e,n){LE=ze(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&xN(e,n),ey!==null&&ey(e,n)};var ci=U(null);function Eh(){var e=ci.current;return e!==null?e:ge.pooledCache}function gc(e,n){n===null?S(ci,ci.current):S(ci,n.pool)}function ty(){var e=Eh();return e===null?null:{parent:Re._currentValue,pool:e}}var ua=Error(i(460)),vh=Error(i(474)),pc=Error(i(542)),mc={then:function(){}};function ny(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ry(e,n,a){switch(a=e[a],a===void 0?e.push(n):a!==n&&(n.then(Mn,Mn),n=a),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,ay(e),e;default:if(typeof n.status=="string")n.then(Mn,Mn);else{if(e=ge,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=n,e.status="pending",e.then(function(o){if(n.status==="pending"){var d=n;d.status="fulfilled",d.value=o}},function(o){if(n.status==="pending"){var d=n;d.status="rejected",d.reason=o}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,ay(e),e}throw fi=n,ua}}function ui(e){try{var n=e._init;return n(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(fi=a,ua):a}}var fi=null;function iy(){if(fi===null)throw Error(i(459));var e=fi;return fi=null,e}function ay(e){if(e===ua||e===pc)throw Error(i(483))}var fa=null,Zs=0;function Bc(e){var n=Zs;return Zs+=1,fa===null&&(fa=[]),ry(fa,e,n)}function Ws(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function Cc(e,n){throw n.$$typeof===w?Error(i(525)):(e=Object.prototype.toString.call(n),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function sy(e){function n(G,k){if(e){var P=G.deletions;P===null?(G.deletions=[k],G.flags|=16):P.push(k)}}function a(G,k){if(!e)return null;for(;k!==null;)n(G,k),k=k.sibling;return null}function o(G){for(var k=new Map;G!==null;)G.key!==null?k.set(G.key,G):k.set(G.index,G),G=G.sibling;return k}function d(G,k){return G=Rn(G,k),G.index=0,G.sibling=null,G}function p(G,k,P){return G.index=P,e?(P=G.alternate,P!==null?(P=P.index,P<k?(G.flags|=67108866,k):P):(G.flags|=67108866,k)):(G.flags|=1048576,k)}function y(G){return e&&G.alternate===null&&(G.flags|=67108866),G}function x(G,k,P,iA){return k===null||k.tag!==6?(k=uh(P,G.mode,iA),k.return=G,k):(k=d(k,P),k.return=G,k)}function H(G,k,P,iA){var xA=P.type;return xA===v?tA(G,k,P.props.children,iA,P.key):k!==null&&(k.elementType===xA||typeof xA=="object"&&xA!==null&&xA.$$typeof===R&&ui(xA)===k.type)?(k=d(k,P.props),Ws(k,P),k.return=G,k):(k=uc(P.type,P.key,P.props,null,G.mode,iA),Ws(k,P),k.return=G,k)}function Y(G,k,P,iA){return k===null||k.tag!==4||k.stateNode.containerInfo!==P.containerInfo||k.stateNode.implementation!==P.implementation?(k=fh(P,G.mode,iA),k.return=G,k):(k=d(k,P.children||[]),k.return=G,k)}function tA(G,k,P,iA,xA){return k===null||k.tag!==7?(k=ai(P,G.mode,iA,xA),k.return=G,k):(k=d(k,P),k.return=G,k)}function sA(G,k,P){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return k=uh(""+k,G.mode,P),k.return=G,k;if(typeof k=="object"&&k!==null){switch(k.$$typeof){case C:return P=uc(k.type,k.key,k.props,null,G.mode,P),Ws(P,k),P.return=G,P;case E:return k=fh(k,G.mode,P),k.return=G,k;case R:return k=ui(k),sA(G,k,P)}if(eA(k)||z(k))return k=ai(k,G.mode,P,null),k.return=G,k;if(typeof k.then=="function")return sA(G,Bc(k),P);if(k.$$typeof===O)return sA(G,hc(G,k),P);Cc(G,k)}return null}function J(G,k,P,iA){var xA=k!==null?k.key:null;if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return xA!==null?null:x(G,k,""+P,iA);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case C:return P.key===xA?H(G,k,P,iA):null;case E:return P.key===xA?Y(G,k,P,iA):null;case R:return P=ui(P),J(G,k,P,iA)}if(eA(P)||z(P))return xA!==null?null:tA(G,k,P,iA,null);if(typeof P.then=="function")return J(G,k,Bc(P),iA);if(P.$$typeof===O)return J(G,k,hc(G,P),iA);Cc(G,P)}return null}function $(G,k,P,iA,xA){if(typeof iA=="string"&&iA!==""||typeof iA=="number"||typeof iA=="bigint")return G=G.get(P)||null,x(k,G,""+iA,xA);if(typeof iA=="object"&&iA!==null){switch(iA.$$typeof){case C:return G=G.get(iA.key===null?P:iA.key)||null,H(k,G,iA,xA);case E:return G=G.get(iA.key===null?P:iA.key)||null,Y(k,G,iA,xA);case R:return iA=ui(iA),$(G,k,P,iA,xA)}if(eA(iA)||z(iA))return G=G.get(P)||null,tA(k,G,iA,xA,null);if(typeof iA.then=="function")return $(G,k,P,Bc(iA),xA);if(iA.$$typeof===O)return $(G,k,P,hc(k,iA),xA);Cc(k,iA)}return null}function wA(G,k,P,iA){for(var xA=null,$A=null,vA=k,RA=k=0,qA=null;vA!==null&&RA<P.length;RA++){vA.index>RA?(qA=vA,vA=null):qA=vA.sibling;var Ae=J(G,vA,P[RA],iA);if(Ae===null){vA===null&&(vA=qA);break}e&&vA&&Ae.alternate===null&&n(G,vA),k=p(Ae,k,RA),$A===null?xA=Ae:$A.sibling=Ae,$A=Ae,vA=qA}if(RA===P.length)return a(G,vA),JA&&Ln(G,RA),xA;if(vA===null){for(;RA<P.length;RA++)vA=sA(G,P[RA],iA),vA!==null&&(k=p(vA,k,RA),$A===null?xA=vA:$A.sibling=vA,$A=vA);return JA&&Ln(G,RA),xA}for(vA=o(vA);RA<P.length;RA++)qA=$(vA,G,RA,P[RA],iA),qA!==null&&(e&&qA.alternate!==null&&vA.delete(qA.key===null?RA:qA.key),k=p(qA,k,RA),$A===null?xA=qA:$A.sibling=qA,$A=qA);return e&&vA.forEach(function(kr){return n(G,kr)}),JA&&Ln(G,RA),xA}function QA(G,k,P,iA){if(P==null)throw Error(i(151));for(var xA=null,$A=null,vA=k,RA=k=0,qA=null,Ae=P.next();vA!==null&&!Ae.done;RA++,Ae=P.next()){vA.index>RA?(qA=vA,vA=null):qA=vA.sibling;var kr=J(G,vA,Ae.value,iA);if(kr===null){vA===null&&(vA=qA);break}e&&vA&&kr.alternate===null&&n(G,vA),k=p(kr,k,RA),$A===null?xA=kr:$A.sibling=kr,$A=kr,vA=qA}if(Ae.done)return a(G,vA),JA&&Ln(G,RA),xA;if(vA===null){for(;!Ae.done;RA++,Ae=P.next())Ae=sA(G,Ae.value,iA),Ae!==null&&(k=p(Ae,k,RA),$A===null?xA=Ae:$A.sibling=Ae,$A=Ae);return JA&&Ln(G,RA),xA}for(vA=o(vA);!Ae.done;RA++,Ae=P.next())Ae=$(vA,G,RA,Ae.value,iA),Ae!==null&&(e&&Ae.alternate!==null&&vA.delete(Ae.key===null?RA:Ae.key),k=p(Ae,k,RA),$A===null?xA=Ae:$A.sibling=Ae,$A=Ae);return e&&vA.forEach(function(RI){return n(G,RI)}),JA&&Ln(G,RA),xA}function fe(G,k,P,iA){if(typeof P=="object"&&P!==null&&P.type===v&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case C:A:{for(var xA=P.key;k!==null;){if(k.key===xA){if(xA=P.type,xA===v){if(k.tag===7){a(G,k.sibling),iA=d(k,P.props.children),iA.return=G,G=iA;break A}}else if(k.elementType===xA||typeof xA=="object"&&xA!==null&&xA.$$typeof===R&&ui(xA)===k.type){a(G,k.sibling),iA=d(k,P.props),Ws(iA,P),iA.return=G,G=iA;break A}a(G,k);break}else n(G,k);k=k.sibling}P.type===v?(iA=ai(P.props.children,G.mode,iA,P.key),iA.return=G,G=iA):(iA=uc(P.type,P.key,P.props,null,G.mode,iA),Ws(iA,P),iA.return=G,G=iA)}return y(G);case E:A:{for(xA=P.key;k!==null;){if(k.key===xA)if(k.tag===4&&k.stateNode.containerInfo===P.containerInfo&&k.stateNode.implementation===P.implementation){a(G,k.sibling),iA=d(k,P.children||[]),iA.return=G,G=iA;break A}else{a(G,k);break}else n(G,k);k=k.sibling}iA=fh(P,G.mode,iA),iA.return=G,G=iA}return y(G);case R:return P=ui(P),fe(G,k,P,iA)}if(eA(P))return wA(G,k,P,iA);if(z(P)){if(xA=z(P),typeof xA!="function")throw Error(i(150));return P=xA.call(P),QA(G,k,P,iA)}if(typeof P.then=="function")return fe(G,k,Bc(P),iA);if(P.$$typeof===O)return fe(G,k,hc(G,P),iA);Cc(G,P)}return typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint"?(P=""+P,k!==null&&k.tag===6?(a(G,k.sibling),iA=d(k,P),iA.return=G,G=iA):(a(G,k),iA=uh(P,G.mode,iA),iA.return=G,G=iA),y(G)):a(G,k)}return function(G,k,P,iA){try{Zs=0;var xA=fe(G,k,P,iA);return fa=null,xA}catch(vA){if(vA===ua||vA===pc)throw vA;var $A=Nt(29,vA,null,G.mode);return $A.lanes=iA,$A.return=G,$A}finally{}}}var di=sy(!0),ly=sy(!1),vr=!1;function bh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xh(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 br(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function xr(e,n,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(re&2)!==0){var d=o.pending;return d===null?n.next=n:(n.next=d.next,d.next=n),o.pending=n,n=cc(e),zw(e,null,a),n}return oc(e,o,n,a),cc(e)}function $s(e,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var o=n.lanes;o&=e.pendingLanes,a|=o,n.lanes=a,Pe(e,a)}}function Sh(e,n){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var d=null,p=null;if(a=a.firstBaseUpdate,a!==null){do{var y={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};p===null?d=p=y:p=p.next=y,a=a.next}while(a!==null);p===null?d=p=n:p=p.next=n}else d=p=n;a={baseState:o.baseState,firstBaseUpdate:d,lastBaseUpdate:p,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=n:e.next=n,a.lastBaseUpdate=n}var Qh=!1;function Al(){if(Qh){var e=ca;if(e!==null)throw e}}function el(e,n,a,o){Qh=!1;var d=e.updateQueue;vr=!1;var p=d.firstBaseUpdate,y=d.lastBaseUpdate,x=d.shared.pending;if(x!==null){d.shared.pending=null;var H=x,Y=H.next;H.next=null,y===null?p=Y:y.next=Y,y=H;var tA=e.alternate;tA!==null&&(tA=tA.updateQueue,x=tA.lastBaseUpdate,x!==y&&(x===null?tA.firstBaseUpdate=Y:x.next=Y,tA.lastBaseUpdate=H))}if(p!==null){var sA=d.baseState;y=0,tA=Y=H=null,x=p;do{var J=x.lane&-536870913,$=J!==x.lane;if($?(XA&J)===J:(o&J)===J){J!==0&&J===oa&&(Qh=!0),tA!==null&&(tA=tA.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});A:{var wA=e,QA=x;J=n;var fe=a;switch(QA.tag){case 1:if(wA=QA.payload,typeof wA=="function"){sA=wA.call(fe,sA,J);break A}sA=wA;break A;case 3:wA.flags=wA.flags&-65537|128;case 0:if(wA=QA.payload,J=typeof wA=="function"?wA.call(fe,sA,J):wA,J==null)break A;sA=B({},sA,J);break A;case 2:vr=!0}}J=x.callback,J!==null&&(e.flags|=64,$&&(e.flags|=8192),$=d.callbacks,$===null?d.callbacks=[J]:$.push(J))}else $={lane:J,tag:x.tag,payload:x.payload,callback:x.callback,next:null},tA===null?(Y=tA=$,H=sA):tA=tA.next=$,y|=J;if(x=x.next,x===null){if(x=d.shared.pending,x===null)break;$=x,x=$.next,$.next=null,d.lastBaseUpdate=$,d.shared.pending=null}}while(!0);tA===null&&(H=sA),d.baseState=H,d.firstBaseUpdate=Y,d.lastBaseUpdate=tA,p===null&&(d.shared.lanes=0),Tr|=y,e.lanes=y,e.memoizedState=sA}}function oy(e,n){if(typeof e!="function")throw Error(i(191,e));e.call(n)}function cy(e,n){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)oy(a[e],n)}var da=U(null),wc=U(0);function uy(e,n){e=qn,S(wc,e),S(da,n),qn=e|n.baseLanes}function Uh(){S(wc,qn),S(da,da.current)}function Fh(){qn=wc.current,M(da),M(wc)}var It=U(null),Wt=null;function Sr(e){var n=e.alternate;S(Ie,Ie.current&1),S(It,e),Wt===null&&(n===null||da.current!==null||n.memoizedState!==null)&&(Wt=e)}function Th(e){S(Ie,Ie.current),S(It,e),Wt===null&&(Wt=e)}function fy(e){e.tag===22?(S(Ie,Ie.current),S(It,e),Wt===null&&(Wt=e)):Qr()}function Qr(){S(Ie,Ie.current),S(It,It.current)}function Ht(e){M(It),Wt===e&&(Wt=null),M(Ie)}var Ie=U(0);function yc(e){for(var n=e;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Og(a)||Rg(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 jn=0,MA=null,ce=null,Le=null,Ec=!1,ha=!1,hi=!1,vc=0,tl=0,ga=null,QN=0;function Se(){throw Error(i(321))}function Nh(e,n){if(n===null)return!1;for(var a=0;a<n.length&&a<e.length;a++)if(!Tt(e[a],n[a]))return!1;return!0}function Ih(e,n,a,o,d,p){return jn=p,MA=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,D.H=e===null||e.memoizedState===null?qy:Yh,hi=!1,p=a(o,d),hi=!1,ha&&(p=hy(n,a,o,d)),dy(e),p}function dy(e){D.H=il;var n=ce!==null&&ce.next!==null;if(jn=0,Le=ce=MA=null,Ec=!1,tl=0,ga=null,n)throw Error(i(300));e===null||De||(e=e.dependencies,e!==null&&dc(e)&&(De=!0))}function hy(e,n,a,o){MA=e;var d=0;do{if(ha&&(ga=null),tl=0,ha=!1,25<=d)throw Error(i(301));if(d+=1,Le=ce=null,e.updateQueue!=null){var p=e.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}D.H=Jy,p=n(a,o)}while(ha);return p}function UN(){var e=D.H,n=e.useState()[0];return n=typeof n.then=="function"?nl(n):n,e=e.useState()[0],(ce!==null?ce.memoizedState:null)!==e&&(MA.flags|=1024),n}function Hh(){var e=vc!==0;return vc=0,e}function _h(e,n,a){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a}function Mh(e){if(Ec){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Ec=!1}jn=0,Le=ce=MA=null,ha=!1,tl=vc=0,ga=null}function ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Le===null?MA.memoizedState=Le=e:Le=Le.next=e,Le}function He(){if(ce===null){var e=MA.alternate;e=e!==null?e.memoizedState:null}else e=ce.next;var n=Le===null?MA.memoizedState:Le.next;if(n!==null)Le=n,ce=e;else{if(e===null)throw MA.alternate===null?Error(i(467)):Error(i(310));ce=e,e={memoizedState:ce.memoizedState,baseState:ce.baseState,baseQueue:ce.baseQueue,queue:ce.queue,next:null},Le===null?MA.memoizedState=Le=e:Le=Le.next=e}return Le}function bc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function nl(e){var n=tl;return tl+=1,ga===null&&(ga=[]),e=ry(ga,e,n),n=MA,(Le===null?n.memoizedState:Le.next)===null&&(n=n.alternate,D.H=n===null||n.memoizedState===null?qy:Yh),e}function xc(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return nl(e);if(e.$$typeof===O)return et(e)}throw Error(i(438,String(e)))}function Oh(e){var n=null,a=MA.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var o=MA.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(n={data:o.data.map(function(d){return d.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),a===null&&(a=bc(),MA.updateQueue=a),a.memoCache=n,a=n.data[n.index],a===void 0)for(a=n.data[n.index]=Array(e),o=0;o<e;o++)a[o]=X;return n.index++,a}function Kn(e,n){return typeof n=="function"?n(e):n}function Sc(e){var n=He();return Rh(n,ce,e)}function Rh(e,n,a){var o=e.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=a;var d=e.baseQueue,p=o.pending;if(p!==null){if(d!==null){var y=d.next;d.next=p.next,p.next=y}n.baseQueue=d=p,o.pending=null}if(p=e.baseState,d===null)e.memoizedState=p;else{n=d.next;var x=y=null,H=null,Y=n,tA=!1;do{var sA=Y.lane&-536870913;if(sA!==Y.lane?(XA&sA)===sA:(jn&sA)===sA){var J=Y.revertLane;if(J===0)H!==null&&(H=H.next={lane:0,revertLane:0,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),sA===oa&&(tA=!0);else if((jn&J)===J){Y=Y.next,J===oa&&(tA=!0);continue}else sA={lane:0,revertLane:Y.revertLane,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},H===null?(x=H=sA,y=p):H=H.next=sA,MA.lanes|=J,Tr|=J;sA=Y.action,hi&&a(p,sA),p=Y.hasEagerState?Y.eagerState:a(p,sA)}else J={lane:sA,revertLane:Y.revertLane,gesture:Y.gesture,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},H===null?(x=H=J,y=p):H=H.next=J,MA.lanes|=sA,Tr|=sA;Y=Y.next}while(Y!==null&&Y!==n);if(H===null?y=p:H.next=x,!Tt(p,e.memoizedState)&&(De=!0,tA&&(a=ca,a!==null)))throw a;e.memoizedState=p,e.baseState=y,e.baseQueue=H,o.lastRenderedState=p}return d===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Lh(e){var n=He(),a=n.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=e;var o=a.dispatch,d=a.pending,p=n.memoizedState;if(d!==null){a.pending=null;var y=d=d.next;do p=e(p,y.action),y=y.next;while(y!==d);Tt(p,n.memoizedState)||(De=!0),n.memoizedState=p,n.baseQueue===null&&(n.baseState=p),a.lastRenderedState=p}return[p,o]}function gy(e,n,a){var o=MA,d=He(),p=JA;if(p){if(a===void 0)throw Error(i(407));a=a()}else a=n();var y=!Tt((ce||d).memoizedState,a);if(y&&(d.memoizedState=a,De=!0),d=d.queue,jh(By.bind(null,o,d,e),[e]),d.getSnapshot!==n||y||Le!==null&&Le.memoizedState.tag&1){if(o.flags|=2048,pa(9,{destroy:void 0},my.bind(null,o,d,a,n),null),ge===null)throw Error(i(349));p||(jn&127)!==0||py(o,n,a)}return a}function py(e,n,a){e.flags|=16384,e={getSnapshot:n,value:a},n=MA.updateQueue,n===null?(n=bc(),MA.updateQueue=n,n.stores=[e]):(a=n.stores,a===null?n.stores=[e]:a.push(e))}function my(e,n,a,o){n.value=a,n.getSnapshot=o,Cy(n)&&wy(e)}function By(e,n,a){return a(function(){Cy(n)&&wy(e)})}function Cy(e){var n=e.getSnapshot;e=e.value;try{var a=n();return!Tt(e,a)}catch{return!0}}function wy(e){var n=ii(e,2);n!==null&&vt(n,e,2)}function Dh(e){var n=ct();if(typeof e=="function"){var a=e;if(e=a(),hi){YA(!0);try{a()}finally{YA(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kn,lastRenderedState:e},n}function yy(e,n,a,o){return e.baseState=a,Rh(e,ce,typeof o=="function"?o:Kn)}function FN(e,n,a,o,d){if(Fc(e))throw Error(i(485));if(e=n.action,e!==null){var p={payload:d,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){p.listeners.push(y)}};D.T!==null?a(!0):p.isTransition=!1,o(p),a=n.pending,a===null?(p.next=n.pending=p,Ey(n,p)):(p.next=a.next,n.pending=a.next=p)}}function Ey(e,n){var a=n.action,o=n.payload,d=e.state;if(n.isTransition){var p=D.T,y={};D.T=y;try{var x=a(d,o),H=D.S;H!==null&&H(y,x),vy(e,n,x)}catch(Y){kh(e,n,Y)}finally{p!==null&&y.types!==null&&(p.types=y.types),D.T=p}}else try{p=a(d,o),vy(e,n,p)}catch(Y){kh(e,n,Y)}}function vy(e,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(o){by(e,n,o)},function(o){return kh(e,n,o)}):by(e,n,a)}function by(e,n,a){n.status="fulfilled",n.value=a,xy(n),e.state=a,n=e.pending,n!==null&&(a=n.next,a===n?e.pending=null:(a=a.next,n.next=a,Ey(e,a)))}function kh(e,n,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do n.status="rejected",n.reason=a,xy(n),n=n.next;while(n!==o)}e.action=null}function xy(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Sy(e,n){return n}function Qy(e,n){if(JA){var a=ge.formState;if(a!==null){A:{var o=MA;if(JA){if(we){e:{for(var d=we,p=Zt;d.nodeType!==8;){if(!p){d=null;break e}if(d=$t(d.nextSibling),d===null){d=null;break e}}p=d.data,d=p==="F!"||p==="F"?d:null}if(d){we=$t(d.nextSibling),o=d.data==="F!";break A}}yr(o)}o=!1}o&&(n=a[0])}}return a=ct(),a.memoizedState=a.baseState=n,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sy,lastRenderedState:n},a.queue=o,a=Py.bind(null,MA,o),o.dispatch=a,o=Dh(!1),p=Ph.bind(null,MA,!1,o.queue),o=ct(),d={state:n,dispatch:null,action:e,pending:null},o.queue=d,a=FN.bind(null,MA,d,p,a),d.dispatch=a,o.memoizedState=e,[n,a,!1]}function Uy(e){var n=He();return Fy(n,ce,e)}function Fy(e,n,a){if(n=Rh(e,n,Sy)[0],e=Sc(Kn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var o=nl(n)}catch(y){throw y===ua?pc:y}else o=n;n=He();var d=n.queue,p=d.dispatch;return a!==n.memoizedState&&(MA.flags|=2048,pa(9,{destroy:void 0},TN.bind(null,d,a),null)),[o,p,e]}function TN(e,n){e.action=n}function Ty(e){var n=He(),a=ce;if(a!==null)return Fy(n,a,e);He(),n=n.memoizedState,a=He();var o=a.queue.dispatch;return a.memoizedState=e,[n,o,!1]}function pa(e,n,a,o){return e={tag:e,create:a,deps:o,inst:n,next:null},n=MA.updateQueue,n===null&&(n=bc(),MA.updateQueue=n),a=n.lastEffect,a===null?n.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,n.lastEffect=e),e}function Ny(){return He().memoizedState}function Qc(e,n,a,o){var d=ct();MA.flags|=e,d.memoizedState=pa(1|n,{destroy:void 0},a,o===void 0?null:o)}function Uc(e,n,a,o){var d=He();o=o===void 0?null:o;var p=d.memoizedState.inst;ce!==null&&o!==null&&Nh(o,ce.memoizedState.deps)?d.memoizedState=pa(n,p,a,o):(MA.flags|=e,d.memoizedState=pa(1|n,p,a,o))}function Iy(e,n){Qc(8390656,8,e,n)}function jh(e,n){Uc(2048,8,e,n)}function NN(e){MA.flags|=4;var n=MA.updateQueue;if(n===null)n=bc(),MA.updateQueue=n,n.events=[e];else{var a=n.events;a===null?n.events=[e]:a.push(e)}}function Hy(e){var n=He().memoizedState;return NN({ref:n,nextImpl:e}),function(){if((re&2)!==0)throw Error(i(440));return n.impl.apply(void 0,arguments)}}function _y(e,n){return Uc(4,2,e,n)}function My(e,n){return Uc(4,4,e,n)}function Oy(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 Ry(e,n,a){a=a!=null?a.concat([e]):null,Uc(4,4,Oy.bind(null,n,e),a)}function Kh(){}function Ly(e,n){var a=He();n=n===void 0?null:n;var o=a.memoizedState;return n!==null&&Nh(n,o[1])?o[0]:(a.memoizedState=[e,n],e)}function Dy(e,n){var a=He();n=n===void 0?null:n;var o=a.memoizedState;if(n!==null&&Nh(n,o[1]))return o[0];if(o=e(),hi){YA(!0);try{e()}finally{YA(!1)}}return a.memoizedState=[o,n],o}function Vh(e,n,a){return a===void 0||(jn&1073741824)!==0&&(XA&261930)===0?e.memoizedState=n:(e.memoizedState=a,e=kE(),MA.lanes|=e,Tr|=e,a)}function ky(e,n,a,o){return Tt(a,n)?a:da.current!==null?(e=Vh(e,a,o),Tt(e,n)||(De=!0),e):(jn&42)===0||(jn&1073741824)!==0&&(XA&261930)===0?(De=!0,e.memoizedState=a):(e=kE(),MA.lanes|=e,Tr|=e,n)}function jy(e,n,a,o,d){var p=W.p;W.p=p!==0&&8>p?p:8;var y=D.T,x={};D.T=x,Ph(e,!1,n,a);try{var H=d(),Y=D.S;if(Y!==null&&Y(x,H),H!==null&&typeof H=="object"&&typeof H.then=="function"){var tA=SN(H,o);rl(e,n,tA,Ot())}else rl(e,n,o,Ot())}catch(sA){rl(e,n,{then:function(){},status:"rejected",reason:sA},Ot())}finally{W.p=p,y!==null&&x.types!==null&&(y.types=x.types),D.T=y}}function IN(){}function Gh(e,n,a,o){if(e.tag!==5)throw Error(i(476));var d=Ky(e).queue;jy(e,d,n,AA,a===null?IN:function(){return Vy(e),a(o)})}function Ky(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:AA,baseState:AA,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kn,lastRenderedState:AA},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kn,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function Vy(e){var n=Ky(e);n.next===null&&(n=e.alternate.memoizedState),rl(e,n.next.queue,{},Ot())}function zh(){return et(yl)}function Gy(){return He().memoizedState}function zy(){return He().memoizedState}function HN(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=Ot();e=br(a);var o=xr(n,e,a);o!==null&&(vt(o,n,a),$s(o,n,a)),n={cache:wh()},e.payload=n;return}n=n.return}}function _N(e,n,a){var o=Ot();a={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Fc(e)?Yy(n,a):(a=oh(e,n,a,o),a!==null&&(vt(a,e,o),Xy(a,n,o)))}function Py(e,n,a){var o=Ot();rl(e,n,a,o)}function rl(e,n,a,o){var d={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Fc(e))Yy(n,d);else{var p=e.alternate;if(e.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null))try{var y=n.lastRenderedState,x=p(y,a);if(d.hasEagerState=!0,d.eagerState=x,Tt(x,y))return oc(e,n,d,0),ge===null&&lc(),!1}catch{}finally{}if(a=oh(e,n,d,o),a!==null)return vt(a,e,o),Xy(a,n,o),!0}return!1}function Ph(e,n,a,o){if(o={lane:2,revertLane:bg(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Fc(e)){if(n)throw Error(i(479))}else n=oh(e,a,o,2),n!==null&&vt(n,e,2)}function Fc(e){var n=e.alternate;return e===MA||n!==null&&n===MA}function Yy(e,n){ha=Ec=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function Xy(e,n,a){if((a&4194048)!==0){var o=n.lanes;o&=e.pendingLanes,a|=o,n.lanes=a,Pe(e,a)}}var il={readContext:et,use:xc,useCallback:Se,useContext:Se,useEffect:Se,useImperativeHandle:Se,useLayoutEffect:Se,useInsertionEffect:Se,useMemo:Se,useReducer:Se,useRef:Se,useState:Se,useDebugValue:Se,useDeferredValue:Se,useTransition:Se,useSyncExternalStore:Se,useId:Se,useHostTransitionStatus:Se,useFormState:Se,useActionState:Se,useOptimistic:Se,useMemoCache:Se,useCacheRefresh:Se};il.useEffectEvent=Se;var qy={readContext:et,use:xc,useCallback:function(e,n){return ct().memoizedState=[e,n===void 0?null:n],e},useContext:et,useEffect:Iy,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,Qc(4194308,4,Oy.bind(null,n,e),a)},useLayoutEffect:function(e,n){return Qc(4194308,4,e,n)},useInsertionEffect:function(e,n){Qc(4,2,e,n)},useMemo:function(e,n){var a=ct();n=n===void 0?null:n;var o=e();if(hi){YA(!0);try{e()}finally{YA(!1)}}return a.memoizedState=[o,n],o},useReducer:function(e,n,a){var o=ct();if(a!==void 0){var d=a(n);if(hi){YA(!0);try{a(n)}finally{YA(!1)}}}else d=n;return o.memoizedState=o.baseState=d,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:d},o.queue=e,e=e.dispatch=_N.bind(null,MA,e),[o.memoizedState,e]},useRef:function(e){var n=ct();return e={current:e},n.memoizedState=e},useState:function(e){e=Dh(e);var n=e.queue,a=Py.bind(null,MA,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:Kh,useDeferredValue:function(e,n){var a=ct();return Vh(a,e,n)},useTransition:function(){var e=Dh(!1);return e=jy.bind(null,MA,e.queue,!0,!1),ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var o=MA,d=ct();if(JA){if(a===void 0)throw Error(i(407));a=a()}else{if(a=n(),ge===null)throw Error(i(349));(XA&127)!==0||py(o,n,a)}d.memoizedState=a;var p={value:a,getSnapshot:n};return d.queue=p,Iy(By.bind(null,o,p,e),[e]),o.flags|=2048,pa(9,{destroy:void 0},my.bind(null,o,p,a,n),null),a},useId:function(){var e=ct(),n=ge.identifierPrefix;if(JA){var a=yn,o=wn;a=(o&~(1<<32-TA(o)-1)).toString(32)+a,n="_"+n+"R_"+a,a=vc++,0<a&&(n+="H"+a.toString(32)),n+="_"}else a=QN++,n="_"+n+"r_"+a.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:zh,useFormState:Qy,useActionState:Qy,useOptimistic:function(e){var n=ct();n.memoizedState=n.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=Ph.bind(null,MA,!0,a),a.dispatch=n,[e,n]},useMemoCache:Oh,useCacheRefresh:function(){return ct().memoizedState=HN.bind(null,MA)},useEffectEvent:function(e){var n=ct(),a={impl:e};return n.memoizedState=a,function(){if((re&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}},Yh={readContext:et,use:xc,useCallback:Ly,useContext:et,useEffect:jh,useImperativeHandle:Ry,useInsertionEffect:_y,useLayoutEffect:My,useMemo:Dy,useReducer:Sc,useRef:Ny,useState:function(){return Sc(Kn)},useDebugValue:Kh,useDeferredValue:function(e,n){var a=He();return ky(a,ce.memoizedState,e,n)},useTransition:function(){var e=Sc(Kn)[0],n=He().memoizedState;return[typeof e=="boolean"?e:nl(e),n]},useSyncExternalStore:gy,useId:Gy,useHostTransitionStatus:zh,useFormState:Uy,useActionState:Uy,useOptimistic:function(e,n){var a=He();return yy(a,ce,e,n)},useMemoCache:Oh,useCacheRefresh:zy};Yh.useEffectEvent=Hy;var Jy={readContext:et,use:xc,useCallback:Ly,useContext:et,useEffect:jh,useImperativeHandle:Ry,useInsertionEffect:_y,useLayoutEffect:My,useMemo:Dy,useReducer:Lh,useRef:Ny,useState:function(){return Lh(Kn)},useDebugValue:Kh,useDeferredValue:function(e,n){var a=He();return ce===null?Vh(a,e,n):ky(a,ce.memoizedState,e,n)},useTransition:function(){var e=Lh(Kn)[0],n=He().memoizedState;return[typeof e=="boolean"?e:nl(e),n]},useSyncExternalStore:gy,useId:Gy,useHostTransitionStatus:zh,useFormState:Ty,useActionState:Ty,useOptimistic:function(e,n){var a=He();return ce!==null?yy(a,ce,e,n):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Oh,useCacheRefresh:zy};Jy.useEffectEvent=Hy;function Xh(e,n,a,o){n=e.memoizedState,a=a(o,n),a=a==null?n:B({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var qh={enqueueSetState:function(e,n,a){e=e._reactInternals;var o=Ot(),d=br(o);d.payload=n,a!=null&&(d.callback=a),n=xr(e,d,o),n!==null&&(vt(n,e,o),$s(n,e,o))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var o=Ot(),d=br(o);d.tag=1,d.payload=n,a!=null&&(d.callback=a),n=xr(e,d,o),n!==null&&(vt(n,e,o),$s(n,e,o))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=Ot(),o=br(a);o.tag=2,n!=null&&(o.callback=n),n=xr(e,o,a),n!==null&&(vt(n,e,a),$s(n,e,a))}};function Zy(e,n,a,o,d,p,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,p,y):n.prototype&&n.prototype.isPureReactComponent?!zs(a,o)||!zs(d,p):!0}function Wy(e,n,a,o){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,o),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,o),n.state!==e&&qh.enqueueReplaceState(n,n.state,null)}function gi(e,n){var a=n;if("ref"in n){a={};for(var o in n)o!=="ref"&&(a[o]=n[o])}if(e=e.defaultProps){a===n&&(a=B({},a));for(var d in e)a[d]===void 0&&(a[d]=e[d])}return a}function $y(e){sc(e)}function AE(e){}function eE(e){sc(e)}function Tc(e,n){try{var a=e.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(o){setTimeout(function(){throw o})}}function tE(e,n,a){try{var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Jh(e,n,a){return a=br(a),a.tag=3,a.payload={element:null},a.callback=function(){Tc(e,n)},a}function nE(e){return e=br(e),e.tag=3,e}function rE(e,n,a,o){var d=a.type.getDerivedStateFromError;if(typeof d=="function"){var p=o.value;e.payload=function(){return d(p)},e.callback=function(){tE(n,a,o)}}var y=a.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){tE(n,a,o),typeof d!="function"&&(Nr===null?Nr=new Set([this]):Nr.add(this));var x=o.stack;this.componentDidCatch(o.value,{componentStack:x!==null?x:""})})}function MN(e,n,a,o,d){if(a.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(n=a.alternate,n!==null&&la(n,a,d,!0),a=It.current,a!==null){switch(a.tag){case 31:case 13:return Wt===null?Kc():a.alternate===null&&Qe===0&&(Qe=3),a.flags&=-257,a.flags|=65536,a.lanes=d,o===mc?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([o]):n.add(o),yg(e,o,d)),!1;case 22:return a.flags|=65536,o===mc?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([o]):a.add(o)),yg(e,o,d)),!1}throw Error(i(435,a.tag))}return yg(e,o,d),Kc(),!1}if(JA)return n=It.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=d,o!==gh&&(e=Error(i(422),{cause:o}),Xs(Xt(e,a)))):(o!==gh&&(n=Error(i(423),{cause:o}),Xs(Xt(n,a))),e=e.current.alternate,e.flags|=65536,d&=-d,e.lanes|=d,o=Xt(o,a),d=Jh(e.stateNode,o,d),Sh(e,d),Qe!==4&&(Qe=2)),!1;var p=Error(i(520),{cause:o});if(p=Xt(p,a),dl===null?dl=[p]:dl.push(p),Qe!==4&&(Qe=2),n===null)return!0;o=Xt(o,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=d&-d,a.lanes|=e,e=Jh(a.stateNode,o,e),Sh(a,e),!1;case 1:if(n=a.type,p=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Nr===null||!Nr.has(p))))return a.flags|=65536,d&=-d,a.lanes|=d,d=nE(d),rE(d,e,a,o),Sh(a,d),!1}a=a.return}while(a!==null);return!1}var Zh=Error(i(461)),De=!1;function tt(e,n,a,o){n.child=e===null?ly(n,null,a,o):di(n,e.child,a,o)}function iE(e,n,a,o,d){a=a.render;var p=n.ref;if("ref"in o){var y={};for(var x in o)x!=="ref"&&(y[x]=o[x])}else y=o;return oi(n),o=Ih(e,n,a,y,p,d),x=Hh(),e!==null&&!De?(_h(e,n,d),Vn(e,n,d)):(JA&&x&&dh(n),n.flags|=1,tt(e,n,o,d),n.child)}function aE(e,n,a,o,d){if(e===null){var p=a.type;return typeof p=="function"&&!ch(p)&&p.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=p,sE(e,n,p,o,d)):(e=uc(a.type,null,o,n,n.mode,d),e.ref=n.ref,e.return=n,n.child=e)}if(p=e.child,!ig(e,d)){var y=p.memoizedProps;if(a=a.compare,a=a!==null?a:zs,a(y,o)&&e.ref===n.ref)return Vn(e,n,d)}return n.flags|=1,e=Rn(p,o),e.ref=n.ref,e.return=n,n.child=e}function sE(e,n,a,o,d){if(e!==null){var p=e.memoizedProps;if(zs(p,o)&&e.ref===n.ref)if(De=!1,n.pendingProps=o=p,ig(e,d))(e.flags&131072)!==0&&(De=!0);else return n.lanes=e.lanes,Vn(e,n,d)}return Wh(e,n,a,o,d)}function lE(e,n,a,o){var d=o.children,p=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((n.flags&128)!==0){if(p=p!==null?p.baseLanes|a:a,e!==null){for(o=n.child=e.child,d=0;o!==null;)d=d|o.lanes|o.childLanes,o=o.sibling;o=d&~p}else o=0,n.child=null;return oE(e,n,p,a,o)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&gc(n,p!==null?p.cachePool:null),p!==null?uy(n,p):Uh(),fy(n);else return o=n.lanes=536870912,oE(e,n,p!==null?p.baseLanes|a:a,a,o)}else p!==null?(gc(n,p.cachePool),uy(n,p),Qr(),n.memoizedState=null):(e!==null&&gc(n,null),Uh(),Qr());return tt(e,n,d,a),n.child}function al(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function oE(e,n,a,o,d){var p=Eh();return p=p===null?null:{parent:Re._currentValue,pool:p},n.memoizedState={baseLanes:a,cachePool:p},e!==null&&gc(n,null),Uh(),fy(n),e!==null&&la(e,n,o,!0),n.childLanes=d,null}function Nc(e,n){return n=Hc({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function cE(e,n,a){return di(n,e.child,null,a),e=Nc(n,n.pendingProps),e.flags|=2,Ht(n),n.memoizedState=null,e}function ON(e,n,a){var o=n.pendingProps,d=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(JA){if(o.mode==="hidden")return e=Nc(n,o),n.lanes=536870912,al(null,e);if(Th(n),(e=we)?(e=Ev(e,Zt),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Cr!==null?{id:wn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},a=Yw(e),a.return=n,n.child=a,At=n,we=null)):e=null,e===null)throw yr(n);return n.lanes=536870912,null}return Nc(n,o)}var p=e.memoizedState;if(p!==null){var y=p.dehydrated;if(Th(n),d)if(n.flags&256)n.flags&=-257,n=cE(e,n,a);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(i(558));else if(De||la(e,n,a,!1),d=(a&e.childLanes)!==0,De||d){if(o=ge,o!==null&&(y=Ft(o,a),y!==0&&y!==p.retryLane))throw p.retryLane=y,ii(e,y),vt(o,e,y),Zh;Kc(),n=cE(e,n,a)}else e=p.treeContext,we=$t(y.nextSibling),At=n,JA=!0,wr=null,Zt=!1,e!==null&&Jw(n,e),n=Nc(n,o),n.flags|=4096;return n}return e=Rn(e.child,{mode:o.mode,children:o.children}),e.ref=n.ref,n.child=e,e.return=n,e}function Ic(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(i(284));(e===null||e.ref!==a)&&(n.flags|=4194816)}}function Wh(e,n,a,o,d){return oi(n),a=Ih(e,n,a,o,void 0,d),o=Hh(),e!==null&&!De?(_h(e,n,d),Vn(e,n,d)):(JA&&o&&dh(n),n.flags|=1,tt(e,n,a,d),n.child)}function uE(e,n,a,o,d,p){return oi(n),n.updateQueue=null,a=hy(n,o,a,d),dy(e),o=Hh(),e!==null&&!De?(_h(e,n,p),Vn(e,n,p)):(JA&&o&&dh(n),n.flags|=1,tt(e,n,a,p),n.child)}function fE(e,n,a,o,d){if(oi(n),n.stateNode===null){var p=ra,y=a.contextType;typeof y=="object"&&y!==null&&(p=et(y)),p=new a(o,p),n.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=qh,n.stateNode=p,p._reactInternals=n,p=n.stateNode,p.props=o,p.state=n.memoizedState,p.refs={},bh(n),y=a.contextType,p.context=typeof y=="object"&&y!==null?et(y):ra,p.state=n.memoizedState,y=a.getDerivedStateFromProps,typeof y=="function"&&(Xh(n,a,y,o),p.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(y=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),y!==p.state&&qh.enqueueReplaceState(p,p.state,null),el(n,o,p,d),Al(),p.state=n.memoizedState),typeof p.componentDidMount=="function"&&(n.flags|=4194308),o=!0}else if(e===null){p=n.stateNode;var x=n.memoizedProps,H=gi(a,x);p.props=H;var Y=p.context,tA=a.contextType;y=ra,typeof tA=="object"&&tA!==null&&(y=et(tA));var sA=a.getDerivedStateFromProps;tA=typeof sA=="function"||typeof p.getSnapshotBeforeUpdate=="function",x=n.pendingProps!==x,tA||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(x||Y!==y)&&Wy(n,p,o,y),vr=!1;var J=n.memoizedState;p.state=J,el(n,o,p,d),Al(),Y=n.memoizedState,x||J!==Y||vr?(typeof sA=="function"&&(Xh(n,a,sA,o),Y=n.memoizedState),(H=vr||Zy(n,a,H,o,J,Y,y))?(tA||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(n.flags|=4194308)):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=o,n.memoizedState=Y),p.props=o,p.state=Y,p.context=y,o=H):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),o=!1)}else{p=n.stateNode,xh(e,n),y=n.memoizedProps,tA=gi(a,y),p.props=tA,sA=n.pendingProps,J=p.context,Y=a.contextType,H=ra,typeof Y=="object"&&Y!==null&&(H=et(Y)),x=a.getDerivedStateFromProps,(Y=typeof x=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(y!==sA||J!==H)&&Wy(n,p,o,H),vr=!1,J=n.memoizedState,p.state=J,el(n,o,p,d),Al();var $=n.memoizedState;y!==sA||J!==$||vr||e!==null&&e.dependencies!==null&&dc(e.dependencies)?(typeof x=="function"&&(Xh(n,a,x,o),$=n.memoizedState),(tA=vr||Zy(n,a,tA,o,J,$,H)||e!==null&&e.dependencies!==null&&dc(e.dependencies))?(Y||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(o,$,H),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(o,$,H)),typeof p.componentDidUpdate=="function"&&(n.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof p.componentDidUpdate!="function"||y===e.memoizedProps&&J===e.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&J===e.memoizedState||(n.flags|=1024),n.memoizedProps=o,n.memoizedState=$),p.props=o,p.state=$,p.context=H,o=tA):(typeof p.componentDidUpdate!="function"||y===e.memoizedProps&&J===e.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&J===e.memoizedState||(n.flags|=1024),o=!1)}return p=o,Ic(e,n),o=(n.flags&128)!==0,p||o?(p=n.stateNode,a=o&&typeof a.getDerivedStateFromError!="function"?null:p.render(),n.flags|=1,e!==null&&o?(n.child=di(n,e.child,null,d),n.child=di(n,null,a,d)):tt(e,n,a,d),n.memoizedState=p.state,e=n.child):e=Vn(e,n,d),e}function dE(e,n,a,o){return si(),n.flags|=256,tt(e,n,a,o),n.child}var $h={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ag(e){return{baseLanes:e,cachePool:ty()}}function eg(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=Mt),e}function hE(e,n,a){var o=n.pendingProps,d=!1,p=(n.flags&128)!==0,y;if((y=p)||(y=e!==null&&e.memoizedState===null?!1:(Ie.current&2)!==0),y&&(d=!0,n.flags&=-129),y=(n.flags&32)!==0,n.flags&=-33,e===null){if(JA){if(d?Sr(n):Qr(),(e=we)?(e=Ev(e,Zt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Cr!==null?{id:wn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},a=Yw(e),a.return=n,n.child=a,At=n,we=null)):e=null,e===null)throw yr(n);return Rg(e)?n.lanes=32:n.lanes=536870912,null}var x=o.children;return o=o.fallback,d?(Qr(),d=n.mode,x=Hc({mode:"hidden",children:x},d),o=ai(o,d,a,null),x.return=n,o.return=n,x.sibling=o,n.child=x,o=n.child,o.memoizedState=Ag(a),o.childLanes=eg(e,y,a),n.memoizedState=$h,al(null,o)):(Sr(n),tg(n,x))}var H=e.memoizedState;if(H!==null&&(x=H.dehydrated,x!==null)){if(p)n.flags&256?(Sr(n),n.flags&=-257,n=ng(e,n,a)):n.memoizedState!==null?(Qr(),n.child=e.child,n.flags|=128,n=null):(Qr(),x=o.fallback,d=n.mode,o=Hc({mode:"visible",children:o.children},d),x=ai(x,d,a,null),x.flags|=2,o.return=n,x.return=n,o.sibling=x,n.child=o,di(n,e.child,null,a),o=n.child,o.memoizedState=Ag(a),o.childLanes=eg(e,y,a),n.memoizedState=$h,n=al(null,o));else if(Sr(n),Rg(x)){if(y=x.nextSibling&&x.nextSibling.dataset,y)var Y=y.dgst;y=Y,o=Error(i(419)),o.stack="",o.digest=y,Xs({value:o,source:null,stack:null}),n=ng(e,n,a)}else if(De||la(e,n,a,!1),y=(a&e.childLanes)!==0,De||y){if(y=ge,y!==null&&(o=Ft(y,a),o!==0&&o!==H.retryLane))throw H.retryLane=o,ii(e,o),vt(y,e,o),Zh;Og(x)||Kc(),n=ng(e,n,a)}else Og(x)?(n.flags|=192,n.child=e.child,n=null):(e=H.treeContext,we=$t(x.nextSibling),At=n,JA=!0,wr=null,Zt=!1,e!==null&&Jw(n,e),n=tg(n,o.children),n.flags|=4096);return n}return d?(Qr(),x=o.fallback,d=n.mode,H=e.child,Y=H.sibling,o=Rn(H,{mode:"hidden",children:o.children}),o.subtreeFlags=H.subtreeFlags&65011712,Y!==null?x=Rn(Y,x):(x=ai(x,d,a,null),x.flags|=2),x.return=n,o.return=n,o.sibling=x,n.child=o,al(null,o),o=n.child,x=e.child.memoizedState,x===null?x=Ag(a):(d=x.cachePool,d!==null?(H=Re._currentValue,d=d.parent!==H?{parent:H,pool:H}:d):d=ty(),x={baseLanes:x.baseLanes|a,cachePool:d}),o.memoizedState=x,o.childLanes=eg(e,y,a),n.memoizedState=$h,al(e.child,o)):(Sr(n),a=e.child,e=a.sibling,a=Rn(a,{mode:"visible",children:o.children}),a.return=n,a.sibling=null,e!==null&&(y=n.deletions,y===null?(n.deletions=[e],n.flags|=16):y.push(e)),n.child=a,n.memoizedState=null,a)}function tg(e,n){return n=Hc({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Hc(e,n){return e=Nt(22,e,null,n),e.lanes=0,e}function ng(e,n,a){return di(n,e.child,null,a),e=tg(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function gE(e,n,a){e.lanes|=n;var o=e.alternate;o!==null&&(o.lanes|=n),Bh(e.return,n,a)}function rg(e,n,a,o,d,p){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:d,treeForkCount:p}:(y.isBackwards=n,y.rendering=null,y.renderingStartTime=0,y.last=o,y.tail=a,y.tailMode=d,y.treeForkCount=p)}function pE(e,n,a){var o=n.pendingProps,d=o.revealOrder,p=o.tail;o=o.children;var y=Ie.current,x=(y&2)!==0;if(x?(y=y&1|2,n.flags|=128):y&=1,S(Ie,y),tt(e,n,o,a),o=JA?Ys:0,!x&&e!==null&&(e.flags&128)!==0)A:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&gE(e,a,n);else if(e.tag===19)gE(e,a,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break A;for(;e.sibling===null;){if(e.return===null||e.return===n)break A;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(d){case"forwards":for(a=n.child,d=null;a!==null;)e=a.alternate,e!==null&&yc(e)===null&&(d=a),a=a.sibling;a=d,a===null?(d=n.child,n.child=null):(d=a.sibling,a.sibling=null),rg(n,!1,d,a,p,o);break;case"backwards":case"unstable_legacy-backwards":for(a=null,d=n.child,n.child=null;d!==null;){if(e=d.alternate,e!==null&&yc(e)===null){n.child=d;break}e=d.sibling,d.sibling=a,a=d,d=e}rg(n,!0,a,null,p,o);break;case"together":rg(n,!1,null,null,void 0,o);break;default:n.memoizedState=null}return n.child}function Vn(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),Tr|=n.lanes,(a&n.childLanes)===0)if(e!==null){if(la(e,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(i(153));if(n.child!==null){for(e=n.child,a=Rn(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=Rn(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function ig(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&dc(e)))}function RN(e,n,a){switch(n.tag){case 3:kA(n,n.stateNode.containerInfo),Er(n,Re,e.memoizedState.cache),si();break;case 27:case 5:NA(n);break;case 4:kA(n,n.stateNode.containerInfo);break;case 10:Er(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,Th(n),null;break;case 13:var o=n.memoizedState;if(o!==null)return o.dehydrated!==null?(Sr(n),n.flags|=128,null):(a&n.child.childLanes)!==0?hE(e,n,a):(Sr(n),e=Vn(e,n,a),e!==null?e.sibling:null);Sr(n);break;case 19:var d=(e.flags&128)!==0;if(o=(a&n.childLanes)!==0,o||(la(e,n,a,!1),o=(a&n.childLanes)!==0),d){if(o)return pE(e,n,a);n.flags|=128}if(d=n.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),S(Ie,Ie.current),o)break;return null;case 22:return n.lanes=0,lE(e,n,a,n.pendingProps);case 24:Er(n,Re,e.memoizedState.cache)}return Vn(e,n,a)}function mE(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps)De=!0;else{if(!ig(e,a)&&(n.flags&128)===0)return De=!1,RN(e,n,a);De=(e.flags&131072)!==0}else De=!1,JA&&(n.flags&1048576)!==0&&qw(n,Ys,n.index);switch(n.lanes=0,n.tag){case 16:A:{var o=n.pendingProps;if(e=ui(n.elementType),n.type=e,typeof e=="function")ch(e)?(o=gi(e,o),n.tag=1,n=fE(null,n,e,o,a)):(n.tag=0,n=Wh(null,n,e,o,a));else{if(e!=null){var d=e.$$typeof;if(d===K){n.tag=11,n=iE(null,n,e,o,a);break A}else if(d===L){n.tag=14,n=aE(null,n,e,o,a);break A}}throw n=Z(e)||e,Error(i(306,n,""))}}return n;case 0:return Wh(e,n,n.type,n.pendingProps,a);case 1:return o=n.type,d=gi(o,n.pendingProps),fE(e,n,o,d,a);case 3:A:{if(kA(n,n.stateNode.containerInfo),e===null)throw Error(i(387));o=n.pendingProps;var p=n.memoizedState;d=p.element,xh(e,n),el(n,o,null,a);var y=n.memoizedState;if(o=y.cache,Er(n,Re,o),o!==p.cache&&Ch(n,[Re],a,!0),Al(),o=y.element,p.isDehydrated)if(p={element:o,isDehydrated:!1,cache:y.cache},n.updateQueue.baseState=p,n.memoizedState=p,n.flags&256){n=dE(e,n,o,a);break A}else if(o!==d){d=Xt(Error(i(424)),n),Xs(d),n=dE(e,n,o,a);break A}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(we=$t(e.firstChild),At=n,JA=!0,wr=null,Zt=!0,a=ly(n,null,o,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(si(),o===d){n=Vn(e,n,a);break A}tt(e,n,o,a)}n=n.child}return n;case 26:return Ic(e,n),e===null?(a=Uv(n.type,null,n.pendingProps,null))?n.memoizedState=a:JA||(a=n.type,e=n.pendingProps,o=qc(fA.current).createElement(a),o[_A]=n,o[Oe]=e,nt(o,a,e),Ye(o),n.stateNode=o):n.memoizedState=Uv(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return NA(n),e===null&&JA&&(o=n.stateNode=xv(n.type,n.pendingProps,fA.current),At=n,Zt=!0,d=we,Mr(n.type)?(Lg=d,we=$t(o.firstChild)):we=d),tt(e,n,n.pendingProps.children,a),Ic(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&JA&&((d=o=we)&&(o=dI(o,n.type,n.pendingProps,Zt),o!==null?(n.stateNode=o,At=n,we=$t(o.firstChild),Zt=!1,d=!0):d=!1),d||yr(n)),NA(n),d=n.type,p=n.pendingProps,y=e!==null?e.memoizedProps:null,o=p.children,Hg(d,p)?o=null:y!==null&&Hg(d,y)&&(n.flags|=32),n.memoizedState!==null&&(d=Ih(e,n,UN,null,null,a),yl._currentValue=d),Ic(e,n),tt(e,n,o,a),n.child;case 6:return e===null&&JA&&((e=a=we)&&(a=hI(a,n.pendingProps,Zt),a!==null?(n.stateNode=a,At=n,we=null,e=!0):e=!1),e||yr(n)),null;case 13:return hE(e,n,a);case 4:return kA(n,n.stateNode.containerInfo),o=n.pendingProps,e===null?n.child=di(n,null,o,a):tt(e,n,o,a),n.child;case 11:return iE(e,n,n.type,n.pendingProps,a);case 7:return tt(e,n,n.pendingProps,a),n.child;case 8:return tt(e,n,n.pendingProps.children,a),n.child;case 12:return tt(e,n,n.pendingProps.children,a),n.child;case 10:return o=n.pendingProps,Er(n,n.type,o.value),tt(e,n,o.children,a),n.child;case 9:return d=n.type._context,o=n.pendingProps.children,oi(n),d=et(d),o=o(d),n.flags|=1,tt(e,n,o,a),n.child;case 14:return aE(e,n,n.type,n.pendingProps,a);case 15:return sE(e,n,n.type,n.pendingProps,a);case 19:return pE(e,n,a);case 31:return ON(e,n,a);case 22:return lE(e,n,a,n.pendingProps);case 24:return oi(n),o=et(Re),e===null?(d=Eh(),d===null&&(d=ge,p=wh(),d.pooledCache=p,p.refCount++,p!==null&&(d.pooledCacheLanes|=a),d=p),n.memoizedState={parent:o,cache:d},bh(n),Er(n,Re,d)):((e.lanes&a)!==0&&(xh(e,n),el(n,null,null,a),Al()),d=e.memoizedState,p=n.memoizedState,d.parent!==o?(d={parent:o,cache:o},n.memoizedState=d,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=d),Er(n,Re,o)):(o=p.cache,Er(n,Re,o),o!==d.cache&&Ch(n,[Re],a,!0))),tt(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(i(156,n.tag))}function Gn(e){e.flags|=4}function ag(e,n,a,o,d){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(d&335544128)===d)if(e.stateNode.complete)e.flags|=8192;else if(GE())e.flags|=8192;else throw fi=mc,vh}else e.flags&=-16777217}function BE(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Hv(n))if(GE())e.flags|=8192;else throw fi=mc,vh}function _c(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?Gi():536870912,e.lanes|=n,wa|=n)}function sl(e,n){if(!JA)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 o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ye(e){var n=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(n)for(var d=e.child;d!==null;)a|=d.lanes|d.childLanes,o|=d.subtreeFlags&65011712,o|=d.flags&65011712,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)a|=d.lanes|d.childLanes,o|=d.subtreeFlags,o|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=o,e.childLanes=a,n}function LN(e,n,a){var o=n.pendingProps;switch(hh(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ye(n),null;case 1:return ye(n),null;case 3:return a=n.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),kn(Re),HA(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(sa(n)?Gn(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,ph())),ye(n),null;case 26:var d=n.type,p=n.memoizedState;return e===null?(Gn(n),p!==null?(ye(n),BE(n,p)):(ye(n),ag(n,d,null,o,a))):p?p!==e.memoizedState?(Gn(n),ye(n),BE(n,p)):(ye(n),n.flags&=-16777217):(e=e.memoizedProps,e!==o&&Gn(n),ye(n),ag(n,d,e,o,a)),null;case 27:if(de(n),a=fA.current,d=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==o&&Gn(n);else{if(!o){if(n.stateNode===null)throw Error(i(166));return ye(n),null}e=aA.current,sa(n)?Zw(n):(e=xv(d,o,a),n.stateNode=e,Gn(n))}return ye(n),null;case 5:if(de(n),d=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==o&&Gn(n);else{if(!o){if(n.stateNode===null)throw Error(i(166));return ye(n),null}if(p=aA.current,sa(n))Zw(n);else{var y=qc(fA.current);switch(p){case 1:p=y.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:p=y.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":p=y.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":p=y.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":p=y.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof o.is=="string"?y.createElement("select",{is:o.is}):y.createElement("select"),o.multiple?p.multiple=!0:o.size&&(p.size=o.size);break;default:p=typeof o.is=="string"?y.createElement(d,{is:o.is}):y.createElement(d)}}p[_A]=n,p[Oe]=o;A:for(y=n.child;y!==null;){if(y.tag===5||y.tag===6)p.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===n)break A;for(;y.sibling===null;){if(y.return===null||y.return===n)break A;y=y.return}y.sibling.return=y.return,y=y.sibling}n.stateNode=p;A:switch(nt(p,d,o),d){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break A;case"img":o=!0;break A;default:o=!1}o&&Gn(n)}}return ye(n),ag(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,a),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==o&&Gn(n);else{if(typeof o!="string"&&n.stateNode===null)throw Error(i(166));if(e=fA.current,sa(n)){if(e=n.stateNode,a=n.memoizedProps,o=null,d=At,d!==null)switch(d.tag){case 27:case 5:o=d.memoizedProps}e[_A]=n,e=!!(e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||hv(e.nodeValue,a)),e||yr(n,!0)}else e=qc(e).createTextNode(o),e[_A]=n,n.stateNode=e}return ye(n),null;case 31:if(a=n.memoizedState,e===null||e.memoizedState!==null){if(o=sa(n),a!==null){if(e===null){if(!o)throw Error(i(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[_A]=n}else si(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;ye(n),e=!1}else a=ph(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return n.flags&256?(Ht(n),n):(Ht(n),null);if((n.flags&128)!==0)throw Error(i(558))}return ye(n),null;case 13:if(o=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(d=sa(n),o!==null&&o.dehydrated!==null){if(e===null){if(!d)throw Error(i(318));if(d=n.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(i(317));d[_A]=n}else si(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;ye(n),d=!1}else d=ph(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=d),d=!0;if(!d)return n.flags&256?(Ht(n),n):(Ht(n),null)}return Ht(n),(n.flags&128)!==0?(n.lanes=a,n):(a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=n.child,d=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(d=o.alternate.memoizedState.cachePool.pool),p=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(p=o.memoizedState.cachePool.pool),p!==d&&(o.flags|=2048)),a!==e&&a&&(n.child.flags|=8192),_c(n,n.updateQueue),ye(n),null);case 4:return HA(),e===null&&Ug(n.stateNode.containerInfo),ye(n),null;case 10:return kn(n.type),ye(n),null;case 19:if(M(Ie),o=n.memoizedState,o===null)return ye(n),null;if(d=(n.flags&128)!==0,p=o.rendering,p===null)if(d)sl(o,!1);else{if(Qe!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(p=yc(e),p!==null){for(n.flags|=128,sl(o,!1),e=p.updateQueue,n.updateQueue=e,_c(n,e),n.subtreeFlags=0,e=a,a=n.child;a!==null;)Pw(a,e),a=a.sibling;return S(Ie,Ie.current&1|2),JA&&Ln(n,o.treeForkCount),n.child}e=e.sibling}o.tail!==null&&ze()>Dc&&(n.flags|=128,d=!0,sl(o,!1),n.lanes=4194304)}else{if(!d)if(e=yc(p),e!==null){if(n.flags|=128,d=!0,e=e.updateQueue,n.updateQueue=e,_c(n,e),sl(o,!0),o.tail===null&&o.tailMode==="hidden"&&!p.alternate&&!JA)return ye(n),null}else 2*ze()-o.renderingStartTime>Dc&&a!==536870912&&(n.flags|=128,d=!0,sl(o,!1),n.lanes=4194304);o.isBackwards?(p.sibling=n.child,n.child=p):(e=o.last,e!==null?e.sibling=p:n.child=p,o.last=p)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=ze(),e.sibling=null,a=Ie.current,S(Ie,d?a&1|2:a&1),JA&&Ln(n,o.treeForkCount),e):(ye(n),null);case 22:case 23:return Ht(n),Fh(),o=n.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(n.flags|=8192):o&&(n.flags|=8192),o?(a&536870912)!==0&&(n.flags&128)===0&&(ye(n),n.subtreeFlags&6&&(n.flags|=8192)):ye(n),a=n.updateQueue,a!==null&&_c(n,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==a&&(n.flags|=2048),e!==null&&M(ci),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),kn(Re),ye(n),null;case 25:return null;case 30:return null}throw Error(i(156,n.tag))}function DN(e,n){switch(hh(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return kn(Re),HA(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return de(n),null;case 31:if(n.memoizedState!==null){if(Ht(n),n.alternate===null)throw Error(i(340));si()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(Ht(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(i(340));si()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return M(Ie),null;case 4:return HA(),null;case 10:return kn(n.type),null;case 22:case 23:return Ht(n),Fh(),e!==null&&M(ci),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return kn(Re),null;case 25:return null;default:return null}}function CE(e,n){switch(hh(n),n.tag){case 3:kn(Re),HA();break;case 26:case 27:case 5:de(n);break;case 4:HA();break;case 31:n.memoizedState!==null&&Ht(n);break;case 13:Ht(n);break;case 19:M(Ie);break;case 10:kn(n.type);break;case 22:case 23:Ht(n),Fh(),e!==null&&M(ci);break;case 24:kn(Re)}}function ll(e,n){try{var a=n.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var d=o.next;a=d;do{if((a.tag&e)===e){o=void 0;var p=a.create,y=a.inst;o=p(),y.destroy=o}a=a.next}while(a!==d)}}catch(x){se(n,n.return,x)}}function Ur(e,n,a){try{var o=n.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var p=d.next;o=p;do{if((o.tag&e)===e){var y=o.inst,x=y.destroy;if(x!==void 0){y.destroy=void 0,d=n;var H=a,Y=x;try{Y()}catch(tA){se(d,H,tA)}}}o=o.next}while(o!==p)}}catch(tA){se(n,n.return,tA)}}function wE(e){var n=e.updateQueue;if(n!==null){var a=e.stateNode;try{cy(n,a)}catch(o){se(e,e.return,o)}}}function yE(e,n,a){a.props=gi(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(o){se(e,n,o)}}function ol(e,n){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof a=="function"?e.refCleanup=a(o):a.current=o}}catch(d){se(e,n,d)}}function En(e,n){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o=="function")try{o()}catch(d){se(e,n,d)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(d){se(e,n,d)}else a.current=null}function EE(e){var n=e.type,a=e.memoizedProps,o=e.stateNode;try{A:switch(n){case"button":case"input":case"select":case"textarea":a.autoFocus&&o.focus();break A;case"img":a.src?o.src=a.src:a.srcSet&&(o.srcset=a.srcSet)}}catch(d){se(e,e.return,d)}}function sg(e,n,a){try{var o=e.stateNode;sI(o,e.type,a,n),o[Oe]=n}catch(d){se(e,e.return,d)}}function vE(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Mr(e.type)||e.tag===4}function lg(e){A:for(;;){for(;e.sibling===null;){if(e.return===null||vE(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&&Mr(e.type)||e.flags&2||e.child===null||e.tag===4)continue A;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function og(e,n,a){var o=e.tag;if(o===5||o===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=Mn));else if(o!==4&&(o===27&&Mr(e.type)&&(a=e.stateNode,n=null),e=e.child,e!==null))for(og(e,n,a),e=e.sibling;e!==null;)og(e,n,a),e=e.sibling}function Mc(e,n,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,n?a.insertBefore(e,n):a.appendChild(e);else if(o!==4&&(o===27&&Mr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Mc(e,n,a),e=e.sibling;e!==null;)Mc(e,n,a),e=e.sibling}function bE(e){var n=e.stateNode,a=e.memoizedProps;try{for(var o=e.type,d=n.attributes;d.length;)n.removeAttributeNode(d[0]);nt(n,o,a),n[_A]=e,n[Oe]=a}catch(p){se(e,e.return,p)}}var zn=!1,ke=!1,cg=!1,xE=typeof WeakSet=="function"?WeakSet:Set,Xe=null;function kN(e,n){if(e=e.containerInfo,Ng=tu,e=Rw(e),nh(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else{a=(a=e.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var d=o.anchorOffset,p=o.focusNode;o=o.focusOffset;var y=0,x=-1,H=-1,Y=0,tA=0,sA=e,J=null;A:for(;;){for(var $;sA!==a||d!==0&&sA.nodeType!==3||(x=y+d),sA!==p||o!==0&&sA.nodeType!==3||(H=y+o),sA.nodeType===3&&(y+=sA.nodeValue.length),($=sA.firstChild)!==null;)J=sA,sA=$;for(;;){if(sA===e)break A;if(J===a&&++Y===d&&(x=y),J===p&&++tA===o&&(H=y),($=sA.nextSibling)!==null)break;sA=J,J=sA.parentNode}sA=$}a=x===-1||H===-1?null:{start:x,end:H}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ig={focusedElem:e,selectionRange:a},tu=!1,Xe=n;Xe!==null;)if(n=Xe,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,Xe=e;else for(;Xe!==null;){switch(n=Xe,p=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++)d=e[a],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&p!==null){e=void 0,a=n,d=p.memoizedProps,p=p.memoizedState,o=a.stateNode;try{var wA=gi(a.type,d);e=o.getSnapshotBeforeUpdate(wA,p),o.__reactInternalSnapshotBeforeUpdate=e}catch(QA){se(a,a.return,QA)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,a=e.nodeType,a===9)Mg(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Mg(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(i(163))}if(e=n.sibling,e!==null){e.return=n.return,Xe=e;break}Xe=n.return}}function SE(e,n,a){var o=a.flags;switch(a.tag){case 0:case 11:case 15:Yn(e,a),o&4&&ll(5,a);break;case 1:if(Yn(e,a),o&4)if(e=a.stateNode,n===null)try{e.componentDidMount()}catch(y){se(a,a.return,y)}else{var d=gi(a.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(d,n,e.__reactInternalSnapshotBeforeUpdate)}catch(y){se(a,a.return,y)}}o&64&&wE(a),o&512&&ol(a,a.return);break;case 3:if(Yn(e,a),o&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{cy(e,n)}catch(y){se(a,a.return,y)}}break;case 27:n===null&&o&4&&bE(a);case 26:case 5:Yn(e,a),n===null&&o&4&&EE(a),o&512&&ol(a,a.return);break;case 12:Yn(e,a);break;case 31:Yn(e,a),o&4&&FE(e,a);break;case 13:Yn(e,a),o&4&&TE(e,a),o&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=qN.bind(null,a),gI(e,a))));break;case 22:if(o=a.memoizedState!==null||zn,!o){n=n!==null&&n.memoizedState!==null||ke,d=zn;var p=ke;zn=o,(ke=n)&&!p?Xn(e,a,(a.subtreeFlags&8772)!==0):Yn(e,a),zn=d,ke=p}break;case 30:break;default:Yn(e,a)}}function QE(e){var n=e.alternate;n!==null&&(e.alternate=null,QE(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&kd(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 be=null,Ct=!1;function Pn(e,n,a){for(a=a.child;a!==null;)UE(e,n,a),a=a.sibling}function UE(e,n,a){if(LA&&typeof LA.onCommitFiberUnmount=="function")try{LA.onCommitFiberUnmount(jA,a)}catch{}switch(a.tag){case 26:ke||En(a,n),Pn(e,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ke||En(a,n);var o=be,d=Ct;Mr(a.type)&&(be=a.stateNode,Ct=!1),Pn(e,n,a),Bl(a.stateNode),be=o,Ct=d;break;case 5:ke||En(a,n);case 6:if(o=be,d=Ct,be=null,Pn(e,n,a),be=o,Ct=d,be!==null)if(Ct)try{(be.nodeType===9?be.body:be.nodeName==="HTML"?be.ownerDocument.body:be).removeChild(a.stateNode)}catch(p){se(a,n,p)}else try{be.removeChild(a.stateNode)}catch(p){se(a,n,p)}break;case 18:be!==null&&(Ct?(e=be,wv(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ua(e)):wv(be,a.stateNode));break;case 4:o=be,d=Ct,be=a.stateNode.containerInfo,Ct=!0,Pn(e,n,a),be=o,Ct=d;break;case 0:case 11:case 14:case 15:Ur(2,a,n),ke||Ur(4,a,n),Pn(e,n,a);break;case 1:ke||(En(a,n),o=a.stateNode,typeof o.componentWillUnmount=="function"&&yE(a,n,o)),Pn(e,n,a);break;case 21:Pn(e,n,a);break;case 22:ke=(o=ke)||a.memoizedState!==null,Pn(e,n,a),ke=o;break;default:Pn(e,n,a)}}function FE(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ua(e)}catch(a){se(n,n.return,a)}}}function TE(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ua(e)}catch(a){se(n,n.return,a)}}function jN(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new xE),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new xE),n;default:throw Error(i(435,e.tag))}}function Oc(e,n){var a=jN(e);n.forEach(function(o){if(!a.has(o)){a.add(o);var d=JN.bind(null,e,o);o.then(d,d)}})}function wt(e,n){var a=n.deletions;if(a!==null)for(var o=0;o<a.length;o++){var d=a[o],p=e,y=n,x=y;A:for(;x!==null;){switch(x.tag){case 27:if(Mr(x.type)){be=x.stateNode,Ct=!1;break A}break;case 5:be=x.stateNode,Ct=!1;break A;case 3:case 4:be=x.stateNode.containerInfo,Ct=!0;break A}x=x.return}if(be===null)throw Error(i(160));UE(p,y,d),be=null,Ct=!1,p=d.alternate,p!==null&&(p.return=null),d.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)NE(n,e),n=n.sibling}var cn=null;function NE(e,n){var a=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:wt(n,e),yt(e),o&4&&(Ur(3,e,e.return),ll(3,e),Ur(5,e,e.return));break;case 1:wt(n,e),yt(e),o&512&&(ke||a===null||En(a,a.return)),o&64&&zn&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?o:a.concat(o))));break;case 26:var d=cn;if(wt(n,e),yt(e),o&512&&(ke||a===null||En(a,a.return)),o&4){var p=a!==null?a.memoizedState:null;if(o=e.memoizedState,a===null)if(o===null)if(e.stateNode===null){A:{o=e.type,a=e.memoizedProps,d=d.ownerDocument||d;e:switch(o){case"title":p=d.getElementsByTagName("title")[0],(!p||p[Os]||p[_A]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=d.createElement(o),d.head.insertBefore(p,d.querySelector("head > title"))),nt(p,o,a),p[_A]=e,Ye(p),o=p;break A;case"link":var y=Nv("link","href",d).get(o+(a.href||""));if(y){for(var x=0;x<y.length;x++)if(p=y[x],p.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&p.getAttribute("rel")===(a.rel==null?null:a.rel)&&p.getAttribute("title")===(a.title==null?null:a.title)&&p.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){y.splice(x,1);break e}}p=d.createElement(o),nt(p,o,a),d.head.appendChild(p);break;case"meta":if(y=Nv("meta","content",d).get(o+(a.content||""))){for(x=0;x<y.length;x++)if(p=y[x],p.getAttribute("content")===(a.content==null?null:""+a.content)&&p.getAttribute("name")===(a.name==null?null:a.name)&&p.getAttribute("property")===(a.property==null?null:a.property)&&p.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&p.getAttribute("charset")===(a.charSet==null?null:a.charSet)){y.splice(x,1);break e}}p=d.createElement(o),nt(p,o,a),d.head.appendChild(p);break;default:throw Error(i(468,o))}p[_A]=e,Ye(p),o=p}e.stateNode=o}else Iv(d,e.type,e.stateNode);else e.stateNode=Tv(d,o,e.memoizedProps);else p!==o?(p===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):p.count--,o===null?Iv(d,e.type,e.stateNode):Tv(d,o,e.memoizedProps)):o===null&&e.stateNode!==null&&sg(e,e.memoizedProps,a.memoizedProps)}break;case 27:wt(n,e),yt(e),o&512&&(ke||a===null||En(a,a.return)),a!==null&&o&4&&sg(e,e.memoizedProps,a.memoizedProps);break;case 5:if(wt(n,e),yt(e),o&512&&(ke||a===null||En(a,a.return)),e.flags&32){d=e.stateNode;try{Zi(d,"")}catch(wA){se(e,e.return,wA)}}o&4&&e.stateNode!=null&&(d=e.memoizedProps,sg(e,d,a!==null?a.memoizedProps:d)),o&1024&&(cg=!0);break;case 6:if(wt(n,e),yt(e),o&4){if(e.stateNode===null)throw Error(i(162));o=e.memoizedProps,a=e.stateNode;try{a.nodeValue=o}catch(wA){se(e,e.return,wA)}}break;case 3:if(Wc=null,d=cn,cn=Jc(n.containerInfo),wt(n,e),cn=d,yt(e),o&4&&a!==null&&a.memoizedState.isDehydrated)try{Ua(n.containerInfo)}catch(wA){se(e,e.return,wA)}cg&&(cg=!1,IE(e));break;case 4:o=cn,cn=Jc(e.stateNode.containerInfo),wt(n,e),yt(e),cn=o;break;case 12:wt(n,e),yt(e);break;case 31:wt(n,e),yt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Oc(e,o)));break;case 13:wt(n,e),yt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Lc=ze()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Oc(e,o)));break;case 22:d=e.memoizedState!==null;var H=a!==null&&a.memoizedState!==null,Y=zn,tA=ke;if(zn=Y||d,ke=tA||H,wt(n,e),ke=tA,zn=Y,yt(e),o&8192)A:for(n=e.stateNode,n._visibility=d?n._visibility&-2:n._visibility|1,d&&(a===null||H||zn||ke||pi(e)),a=null,n=e;;){if(n.tag===5||n.tag===26){if(a===null){H=a=n;try{if(p=H.stateNode,d)y=p.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{x=H.stateNode;var sA=H.memoizedProps.style,J=sA!=null&&sA.hasOwnProperty("display")?sA.display:null;x.style.display=J==null||typeof J=="boolean"?"":(""+J).trim()}}catch(wA){se(H,H.return,wA)}}}else if(n.tag===6){if(a===null){H=n;try{H.stateNode.nodeValue=d?"":H.memoizedProps}catch(wA){se(H,H.return,wA)}}}else if(n.tag===18){if(a===null){H=n;try{var $=H.stateNode;d?yv($,!0):yv(H.stateNode,!1)}catch(wA){se(H,H.return,wA)}}}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 A;for(;n.sibling===null;){if(n.return===null||n.return===e)break A;a===n&&(a=null),n=n.return}a===n&&(a=null),n.sibling.return=n.return,n=n.sibling}o&4&&(o=e.updateQueue,o!==null&&(a=o.retryQueue,a!==null&&(o.retryQueue=null,Oc(e,a))));break;case 19:wt(n,e),yt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Oc(e,o)));break;case 30:break;case 21:break;default:wt(n,e),yt(e)}}function yt(e){var n=e.flags;if(n&2){try{for(var a,o=e.return;o!==null;){if(vE(o)){a=o;break}o=o.return}if(a==null)throw Error(i(160));switch(a.tag){case 27:var d=a.stateNode,p=lg(e);Mc(e,p,d);break;case 5:var y=a.stateNode;a.flags&32&&(Zi(y,""),a.flags&=-33);var x=lg(e);Mc(e,x,y);break;case 3:case 4:var H=a.stateNode.containerInfo,Y=lg(e);og(e,Y,H);break;default:throw Error(i(161))}}catch(tA){se(e,e.return,tA)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function IE(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;IE(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Yn(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)SE(e,n.alternate,n),n=n.sibling}function pi(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Ur(4,n,n.return),pi(n);break;case 1:En(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&yE(n,n.return,a),pi(n);break;case 27:Bl(n.stateNode);case 26:case 5:En(n,n.return),pi(n);break;case 22:n.memoizedState===null&&pi(n);break;case 30:pi(n);break;default:pi(n)}e=e.sibling}}function Xn(e,n,a){for(a=a&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var o=n.alternate,d=e,p=n,y=p.flags;switch(p.tag){case 0:case 11:case 15:Xn(d,p,a),ll(4,p);break;case 1:if(Xn(d,p,a),o=p,d=o.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(Y){se(o,o.return,Y)}if(o=p,d=o.updateQueue,d!==null){var x=o.stateNode;try{var H=d.shared.hiddenCallbacks;if(H!==null)for(d.shared.hiddenCallbacks=null,d=0;d<H.length;d++)oy(H[d],x)}catch(Y){se(o,o.return,Y)}}a&&y&64&&wE(p),ol(p,p.return);break;case 27:bE(p);case 26:case 5:Xn(d,p,a),a&&o===null&&y&4&&EE(p),ol(p,p.return);break;case 12:Xn(d,p,a);break;case 31:Xn(d,p,a),a&&y&4&&FE(d,p);break;case 13:Xn(d,p,a),a&&y&4&&TE(d,p);break;case 22:p.memoizedState===null&&Xn(d,p,a),ol(p,p.return);break;case 30:break;default:Xn(d,p,a)}n=n.sibling}}function ug(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&&qs(a))}function fg(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&qs(e))}function un(e,n,a,o){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)HE(e,n,a,o),n=n.sibling}function HE(e,n,a,o){var d=n.flags;switch(n.tag){case 0:case 11:case 15:un(e,n,a,o),d&2048&&ll(9,n);break;case 1:un(e,n,a,o);break;case 3:un(e,n,a,o),d&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&qs(e)));break;case 12:if(d&2048){un(e,n,a,o),e=n.stateNode;try{var p=n.memoizedProps,y=p.id,x=p.onPostCommit;typeof x=="function"&&x(y,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(H){se(n,n.return,H)}}else un(e,n,a,o);break;case 31:un(e,n,a,o);break;case 13:un(e,n,a,o);break;case 23:break;case 22:p=n.stateNode,y=n.alternate,n.memoizedState!==null?p._visibility&2?un(e,n,a,o):cl(e,n):p._visibility&2?un(e,n,a,o):(p._visibility|=2,ma(e,n,a,o,(n.subtreeFlags&10256)!==0||!1)),d&2048&&ug(y,n);break;case 24:un(e,n,a,o),d&2048&&fg(n.alternate,n);break;default:un(e,n,a,o)}}function ma(e,n,a,o,d){for(d=d&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var p=e,y=n,x=a,H=o,Y=y.flags;switch(y.tag){case 0:case 11:case 15:ma(p,y,x,H,d),ll(8,y);break;case 23:break;case 22:var tA=y.stateNode;y.memoizedState!==null?tA._visibility&2?ma(p,y,x,H,d):cl(p,y):(tA._visibility|=2,ma(p,y,x,H,d)),d&&Y&2048&&ug(y.alternate,y);break;case 24:ma(p,y,x,H,d),d&&Y&2048&&fg(y.alternate,y);break;default:ma(p,y,x,H,d)}n=n.sibling}}function cl(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var a=e,o=n,d=o.flags;switch(o.tag){case 22:cl(a,o),d&2048&&ug(o.alternate,o);break;case 24:cl(a,o),d&2048&&fg(o.alternate,o);break;default:cl(a,o)}n=n.sibling}}var ul=8192;function Ba(e,n,a){if(e.subtreeFlags&ul)for(e=e.child;e!==null;)_E(e,n,a),e=e.sibling}function _E(e,n,a){switch(e.tag){case 26:Ba(e,n,a),e.flags&ul&&e.memoizedState!==null&&QI(a,cn,e.memoizedState,e.memoizedProps);break;case 5:Ba(e,n,a);break;case 3:case 4:var o=cn;cn=Jc(e.stateNode.containerInfo),Ba(e,n,a),cn=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=ul,ul=16777216,Ba(e,n,a),ul=o):Ba(e,n,a));break;default:Ba(e,n,a)}}function ME(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 fl(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var o=n[a];Xe=o,RE(o,e)}ME(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)OE(e),e=e.sibling}function OE(e){switch(e.tag){case 0:case 11:case 15:fl(e),e.flags&2048&&Ur(9,e,e.return);break;case 3:fl(e);break;case 12:fl(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Rc(e)):fl(e);break;default:fl(e)}}function Rc(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var o=n[a];Xe=o,RE(o,e)}ME(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Ur(8,n,n.return),Rc(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,Rc(n));break;default:Rc(n)}e=e.sibling}}function RE(e,n){for(;Xe!==null;){var a=Xe;switch(a.tag){case 0:case 11:case 15:Ur(8,a,n);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var o=a.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:qs(a.memoizedState.cache)}if(o=a.child,o!==null)o.return=a,Xe=o;else A:for(a=e;Xe!==null;){o=Xe;var d=o.sibling,p=o.return;if(QE(o),o===a){Xe=null;break A}if(d!==null){d.return=p,Xe=d;break A}Xe=p}}}var KN={getCacheForType:function(e){var n=et(Re),a=n.data.get(e);return a===void 0&&(a=e(),n.data.set(e,a)),a},cacheSignal:function(){return et(Re).controller.signal}},VN=typeof WeakMap=="function"?WeakMap:Map,re=0,ge=null,GA=null,XA=0,ae=0,_t=null,Fr=!1,Ca=!1,dg=!1,qn=0,Qe=0,Tr=0,mi=0,hg=0,Mt=0,wa=0,dl=null,Et=null,gg=!1,Lc=0,LE=0,Dc=1/0,kc=null,Nr=null,Ve=0,Ir=null,ya=null,Jn=0,pg=0,mg=null,DE=null,hl=0,Bg=null;function Ot(){return(re&2)!==0&&XA!==0?XA&-XA:D.T!==null?bg():qo()}function kE(){if(Mt===0)if((XA&536870912)===0||JA){var e=mt;mt<<=1,(mt&3932160)===0&&(mt=262144),Mt=e}else Mt=536870912;return e=It.current,e!==null&&(e.flags|=32),Mt}function vt(e,n,a){(e===ge&&(ae===2||ae===9)||e.cancelPendingCommit!==null)&&(Ea(e,0),Hr(e,XA,Mt,!1)),Gt(e,a),((re&2)===0||e!==ge)&&(e===ge&&((re&2)===0&&(mi|=a),Qe===4&&Hr(e,XA,Mt,!1)),vn(e))}function jE(e,n,a){if((re&6)!==0)throw Error(i(327));var o=!a&&(n&127)===0&&(n&e.expiredLanes)===0||ve(e,n),d=o?PN(e,n):wg(e,n,!0),p=o;do{if(d===0){Ca&&!o&&Hr(e,n,0,!1);break}else{if(a=e.current.alternate,p&&!GN(a)){d=wg(e,n,!1),p=!1;continue}if(d===2){if(p=n,e.errorRecoveryDisabledLanes&p)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){n=y;A:{var x=e;d=dl;var H=x.current.memoizedState.isDehydrated;if(H&&(Ea(x,y).flags|=256),y=wg(x,y,!1),y!==2){if(dg&&!H){x.errorRecoveryDisabledLanes|=p,mi|=p,d=4;break A}p=Et,Et=d,p!==null&&(Et===null?Et=p:Et.push.apply(Et,p))}d=y}if(p=!1,d!==2)continue}}if(d===1){Ea(e,0),Hr(e,n,0,!0);break}A:{switch(o=e,p=d,p){case 0:case 1:throw Error(i(345));case 4:if((n&4194048)!==n)break;case 6:Hr(o,n,Mt,!Fr);break A;case 2:Et=null;break;case 3:case 5:break;default:throw Error(i(329))}if((n&62914560)===n&&(d=Lc+300-ze(),10<d)){if(Hr(o,n,Mt,!Fr),In(o,0,!0)!==0)break A;Jn=n,o.timeoutHandle=Bv(KE.bind(null,o,a,Et,kc,gg,n,Mt,mi,wa,Fr,p,"Throttled",-0,0),d);break A}KE(o,a,Et,kc,gg,n,Mt,mi,wa,Fr,p,null,-0,0)}}break}while(!0);vn(e)}function KE(e,n,a,o,d,p,y,x,H,Y,tA,sA,J,$){if(e.timeoutHandle=-1,sA=n.subtreeFlags,sA&8192||(sA&16785408)===16785408){sA={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Mn},_E(n,p,sA);var wA=(p&62914560)===p?Lc-ze():(p&4194048)===p?LE-ze():0;if(wA=UI(sA,wA),wA!==null){Jn=p,e.cancelPendingCommit=wA(JE.bind(null,e,n,p,a,o,d,y,x,H,tA,sA,null,J,$)),Hr(e,p,y,!Y);return}}JE(e,n,p,a,o,d,y,x,H)}function GN(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 o=0;o<a.length;o++){var d=a[o],p=d.getSnapshot;d=d.value;try{if(!Tt(p(),d))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 Hr(e,n,a,o){n&=~hg,n&=~mi,e.suspendedLanes|=n,e.pingedLanes&=~n,o&&(e.warmLanes|=n),o=e.expirationTimes;for(var d=n;0<d;){var p=31-TA(d),y=1<<p;o[p]=-1,d&=~y}a!==0&&Ai(e,a,n)}function jc(){return(re&6)===0?(gl(0),!1):!0}function Cg(){if(GA!==null){if(ae===0)var e=GA.return;else e=GA,Dn=li=null,Mh(e),fa=null,Zs=0,e=GA;for(;e!==null;)CE(e.alternate,e),e=e.return;GA=null}}function Ea(e,n){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,cI(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Jn=0,Cg(),ge=e,GA=a=Rn(e.current,null),XA=n,ae=0,_t=null,Fr=!1,Ca=ve(e,n),dg=!1,wa=Mt=hg=mi=Tr=Qe=0,Et=dl=null,gg=!1,(n&8)!==0&&(n|=n&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=n;0<o;){var d=31-TA(o),p=1<<d;n|=e[d],o&=~p}return qn=n,lc(),a}function VE(e,n){MA=null,D.H=il,n===ua||n===pc?(n=iy(),ae=3):n===vh?(n=iy(),ae=4):ae=n===Zh?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,_t=n,GA===null&&(Qe=1,Tc(e,Xt(n,e.current)))}function GE(){var e=It.current;return e===null?!0:(XA&4194048)===XA?Wt===null:(XA&62914560)===XA||(XA&536870912)!==0?e===Wt:!1}function zE(){var e=D.H;return D.H=il,e===null?il:e}function PE(){var e=D.A;return D.A=KN,e}function Kc(){Qe=4,Fr||(XA&4194048)!==XA&&It.current!==null||(Ca=!0),(Tr&134217727)===0&&(mi&134217727)===0||ge===null||Hr(ge,XA,Mt,!1)}function wg(e,n,a){var o=re;re|=2;var d=zE(),p=PE();(ge!==e||XA!==n)&&(kc=null,Ea(e,n)),n=!1;var y=Qe;A:do try{if(ae!==0&&GA!==null){var x=GA,H=_t;switch(ae){case 8:Cg(),y=6;break A;case 3:case 2:case 9:case 6:It.current===null&&(n=!0);var Y=ae;if(ae=0,_t=null,va(e,x,H,Y),a&&Ca){y=0;break A}break;default:Y=ae,ae=0,_t=null,va(e,x,H,Y)}}zN(),y=Qe;break}catch(tA){VE(e,tA)}while(!0);return n&&e.shellSuspendCounter++,Dn=li=null,re=o,D.H=d,D.A=p,GA===null&&(ge=null,XA=0,lc()),y}function zN(){for(;GA!==null;)YE(GA)}function PN(e,n){var a=re;re|=2;var o=zE(),d=PE();ge!==e||XA!==n?(kc=null,Dc=ze()+500,Ea(e,n)):Ca=ve(e,n);A:do try{if(ae!==0&&GA!==null){n=GA;var p=_t;e:switch(ae){case 1:ae=0,_t=null,va(e,n,p,1);break;case 2:case 9:if(ny(p)){ae=0,_t=null,XE(n);break}n=function(){ae!==2&&ae!==9||ge!==e||(ae=7),vn(e)},p.then(n,n);break A;case 3:ae=7;break A;case 4:ae=5;break A;case 7:ny(p)?(ae=0,_t=null,XE(n)):(ae=0,_t=null,va(e,n,p,7));break;case 5:var y=null;switch(GA.tag){case 26:y=GA.memoizedState;case 5:case 27:var x=GA;if(y?Hv(y):x.stateNode.complete){ae=0,_t=null;var H=x.sibling;if(H!==null)GA=H;else{var Y=x.return;Y!==null?(GA=Y,Vc(Y)):GA=null}break e}}ae=0,_t=null,va(e,n,p,5);break;case 6:ae=0,_t=null,va(e,n,p,6);break;case 8:Cg(),Qe=6;break A;default:throw Error(i(462))}}YN();break}catch(tA){VE(e,tA)}while(!0);return Dn=li=null,D.H=o,D.A=d,re=a,GA!==null?0:(ge=null,XA=0,lc(),Qe)}function YN(){for(;GA!==null&&!$r();)YE(GA)}function YE(e){var n=mE(e.alternate,e,qn);e.memoizedProps=e.pendingProps,n===null?Vc(e):GA=n}function XE(e){var n=e,a=n.alternate;switch(n.tag){case 15:case 0:n=uE(a,n,n.pendingProps,n.type,void 0,XA);break;case 11:n=uE(a,n,n.pendingProps,n.type.render,n.ref,XA);break;case 5:Mh(n);default:CE(a,n),n=GA=Pw(n,qn),n=mE(a,n,qn)}e.memoizedProps=e.pendingProps,n===null?Vc(e):GA=n}function va(e,n,a,o){Dn=li=null,Mh(n),fa=null,Zs=0;var d=n.return;try{if(MN(e,d,n,a,XA)){Qe=1,Tc(e,Xt(a,e.current)),GA=null;return}}catch(p){if(d!==null)throw GA=d,p;Qe=1,Tc(e,Xt(a,e.current)),GA=null;return}n.flags&32768?(JA||o===1?e=!0:Ca||(XA&536870912)!==0?e=!1:(Fr=e=!0,(o===2||o===9||o===3||o===6)&&(o=It.current,o!==null&&o.tag===13&&(o.flags|=16384))),qE(n,e)):Vc(n)}function Vc(e){var n=e;do{if((n.flags&32768)!==0){qE(n,Fr);return}e=n.return;var a=LN(n.alternate,n,qn);if(a!==null){GA=a;return}if(n=n.sibling,n!==null){GA=n;return}GA=n=e}while(n!==null);Qe===0&&(Qe=5)}function qE(e,n){do{var a=DN(e.alternate,e);if(a!==null){a.flags&=32767,GA=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!n&&(e=e.sibling,e!==null)){GA=e;return}GA=e=a}while(e!==null);Qe=6,GA=null}function JE(e,n,a,o,d,p,y,x,H){e.cancelPendingCommit=null;do Gc();while(Ve!==0);if((re&6)!==0)throw Error(i(327));if(n!==null){if(n===e.current)throw Error(i(177));if(p=n.lanes|n.childLanes,p|=lh,Dd(e,a,p,y,x,H),e===ge&&(GA=ge=null,XA=0),ya=n,Ir=e,Jn=a,pg=p,mg=d,DE=o,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ZN(q,function(){return ev(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||o){o=D.T,D.T=null,d=W.p,W.p=2,y=re,re|=4;try{kN(e,n)}finally{re=y,W.p=d,D.T=o}}Ve=1,ZE(),WE(),$E()}}function ZE(){if(Ve===1){Ve=0;var e=Ir,n=ya,a=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var o=W.p;W.p=2;var d=re;re|=4;try{NE(n,e);var p=Ig,y=Rw(e.containerInfo),x=p.focusedElem,H=p.selectionRange;if(y!==x&&x&&x.ownerDocument&&Ow(x.ownerDocument.documentElement,x)){if(H!==null&&nh(x)){var Y=H.start,tA=H.end;if(tA===void 0&&(tA=Y),"selectionStart"in x)x.selectionStart=Y,x.selectionEnd=Math.min(tA,x.value.length);else{var sA=x.ownerDocument||document,J=sA&&sA.defaultView||window;if(J.getSelection){var $=J.getSelection(),wA=x.textContent.length,QA=Math.min(H.start,wA),fe=H.end===void 0?QA:Math.min(H.end,wA);!$.extend&&QA>fe&&(y=fe,fe=QA,QA=y);var G=Mw(x,QA),k=Mw(x,fe);if(G&&k&&($.rangeCount!==1||$.anchorNode!==G.node||$.anchorOffset!==G.offset||$.focusNode!==k.node||$.focusOffset!==k.offset)){var P=sA.createRange();P.setStart(G.node,G.offset),$.removeAllRanges(),QA>fe?($.addRange(P),$.extend(k.node,k.offset)):(P.setEnd(k.node,k.offset),$.addRange(P))}}}}for(sA=[],$=x;$=$.parentNode;)$.nodeType===1&&sA.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<sA.length;x++){var iA=sA[x];iA.element.scrollLeft=iA.left,iA.element.scrollTop=iA.top}}tu=!!Ng,Ig=Ng=null}finally{re=d,W.p=o,D.T=a}}e.current=n,Ve=2}}function WE(){if(Ve===2){Ve=0;var e=Ir,n=ya,a=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var o=W.p;W.p=2;var d=re;re|=4;try{SE(e,n.alternate,n)}finally{re=d,W.p=o,D.T=a}}Ve=3}}function $E(){if(Ve===4||Ve===3){Ve=0,pr();var e=Ir,n=ya,a=Jn,o=DE;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?Ve=5:(Ve=0,ya=Ir=null,Av(e,e.pendingLanes));var d=e.pendingLanes;if(d===0&&(Nr=null),Ms(a),n=n.stateNode,LA&&typeof LA.onCommitFiberRoot=="function")try{LA.onCommitFiberRoot(jA,n,void 0,(n.current.flags&128)===128)}catch{}if(o!==null){n=D.T,d=W.p,W.p=2,D.T=null;try{for(var p=e.onRecoverableError,y=0;y<o.length;y++){var x=o[y];p(x.value,{componentStack:x.stack})}}finally{D.T=n,W.p=d}}(Jn&3)!==0&&Gc(),vn(e),d=e.pendingLanes,(a&261930)!==0&&(d&42)!==0?e===Bg?hl++:(hl=0,Bg=e):hl=0,gl(0)}}function Av(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,qs(n)))}function Gc(){return ZE(),WE(),$E(),ev()}function ev(){if(Ve!==5)return!1;var e=Ir,n=pg;pg=0;var a=Ms(Jn),o=D.T,d=W.p;try{W.p=32>a?32:a,D.T=null,a=mg,mg=null;var p=Ir,y=Jn;if(Ve=0,ya=Ir=null,Jn=0,(re&6)!==0)throw Error(i(331));var x=re;if(re|=4,OE(p.current),HE(p,p.current,y,a),re=x,gl(0),LA&&typeof LA.onPostCommitFiberRoot=="function")try{LA.onPostCommitFiberRoot(jA,p)}catch{}return!0}finally{W.p=d,D.T=o,Av(e,n)}}function tv(e,n,a){n=Xt(a,n),n=Jh(e.stateNode,n,2),e=xr(e,n,2),e!==null&&(Gt(e,2),vn(e))}function se(e,n,a){if(e.tag===3)tv(e,e,a);else for(;n!==null;){if(n.tag===3){tv(n,e,a);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Nr===null||!Nr.has(o))){e=Xt(a,e),a=nE(2),o=xr(n,a,2),o!==null&&(rE(a,o,n,e),Gt(o,2),vn(o));break}}n=n.return}}function yg(e,n,a){var o=e.pingCache;if(o===null){o=e.pingCache=new VN;var d=new Set;o.set(n,d)}else d=o.get(n),d===void 0&&(d=new Set,o.set(n,d));d.has(a)||(dg=!0,d.add(a),e=XN.bind(null,e,n,a),n.then(e,e))}function XN(e,n,a){var o=e.pingCache;o!==null&&o.delete(n),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,ge===e&&(XA&a)===a&&(Qe===4||Qe===3&&(XA&62914560)===XA&&300>ze()-Lc?(re&2)===0&&Ea(e,0):hg|=a,wa===XA&&(wa=0)),vn(e)}function nv(e,n){n===0&&(n=Gi()),e=ii(e,n),e!==null&&(Gt(e,n),vn(e))}function qN(e){var n=e.memoizedState,a=0;n!==null&&(a=n.retryLane),nv(e,a)}function JN(e,n){var a=0;switch(e.tag){case 31:case 13:var o=e.stateNode,d=e.memoizedState;d!==null&&(a=d.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(i(314))}o!==null&&o.delete(n),nv(e,a)}function ZN(e,n){return Nn(e,n)}var zc=null,ba=null,Eg=!1,Pc=!1,vg=!1,_r=0;function vn(e){e!==ba&&e.next===null&&(ba===null?zc=ba=e:ba=ba.next=e),Pc=!0,Eg||(Eg=!0,$N())}function gl(e,n){if(!vg&&Pc){vg=!0;do for(var a=!1,o=zc;o!==null;){if(e!==0){var d=o.pendingLanes;if(d===0)var p=0;else{var y=o.suspendedLanes,x=o.pingedLanes;p=(1<<31-TA(42|e)+1)-1,p&=d&~(y&~x),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(a=!0,sv(o,p))}else p=XA,p=In(o,o===ge?p:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(p&3)===0||ve(o,p)||(a=!0,sv(o,p));o=o.next}while(a);vg=!1}}function WN(){rv()}function rv(){Pc=Eg=!1;var e=0;_r!==0&&oI()&&(e=_r);for(var n=ze(),a=null,o=zc;o!==null;){var d=o.next,p=iv(o,n);p===0?(o.next=null,a===null?zc=d:a.next=d,d===null&&(ba=a)):(a=o,(e!==0||(p&3)!==0)&&(Pc=!0)),o=d}Ve!==0&&Ve!==5||gl(e),_r!==0&&(_r=0)}function iv(e,n){for(var a=e.suspendedLanes,o=e.pingedLanes,d=e.expirationTimes,p=e.pendingLanes&-62914561;0<p;){var y=31-TA(p),x=1<<y,H=d[y];H===-1?((x&a)===0||(x&o)!==0)&&(d[y]=KA(x,n)):H<=n&&(e.expiredLanes|=x),p&=~x}if(n=ge,a=XA,a=In(e,e===n?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,a===0||e===n&&(ae===2||ae===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&Cn(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||ve(e,a)){if(n=a&-a,n===e.callbackPriority)return n;switch(o!==null&&Cn(o),Ms(a)){case 2:case 8:a=V;break;case 32:a=q;break;case 268435456:a=hA;break;default:a=q}return o=av.bind(null,e),a=Nn(a,o),e.callbackPriority=n,e.callbackNode=a,n}return o!==null&&o!==null&&Cn(o),e.callbackPriority=2,e.callbackNode=null,2}function av(e,n){if(Ve!==0&&Ve!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Gc()&&e.callbackNode!==a)return null;var o=XA;return o=In(e,e===ge?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(jE(e,o,n),iv(e,ze()),e.callbackNode!=null&&e.callbackNode===a?av.bind(null,e):null)}function sv(e,n){if(Gc())return null;jE(e,n,!0)}function $N(){uI(function(){(re&6)!==0?Nn(rA,WN):rv()})}function bg(){if(_r===0){var e=oa;e===0&&(e=Ne,Ne<<=1,(Ne&261888)===0&&(Ne=256)),_r=e}return _r}function lv(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ac(""+e)}function ov(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 AI(e,n,a,o,d){if(n==="submit"&&a&&a.stateNode===d){var p=lv((d[Oe]||null).action),y=o.submitter;y&&(n=(n=y[Oe]||null)?lv(n.formAction):y.getAttribute("formAction"),n!==null&&(p=n,y=null));var x=new rc("action","action",null,o,d);e.push({event:x,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(_r!==0){var H=y?ov(d,y):new FormData(d);Gh(a,{pending:!0,data:H,method:d.method,action:p},null,H)}}else typeof p=="function"&&(x.preventDefault(),H=y?ov(d,y):new FormData(d),Gh(a,{pending:!0,data:H,method:d.method,action:p},p,H))},currentTarget:d}]})}}for(var xg=0;xg<sh.length;xg++){var Sg=sh[xg],eI=Sg.toLowerCase(),tI=Sg[0].toUpperCase()+Sg.slice(1);on(eI,"on"+tI)}on(kw,"onAnimationEnd"),on(jw,"onAnimationIteration"),on(Kw,"onAnimationStart"),on("dblclick","onDoubleClick"),on("focusin","onFocus"),on("focusout","onBlur"),on(BN,"onTransitionRun"),on(CN,"onTransitionStart"),on(wN,"onTransitionCancel"),on(Vw,"onTransitionEnd"),qi("onMouseEnter",["mouseout","mouseover"]),qi("onMouseLeave",["mouseout","mouseover"]),qi("onPointerEnter",["pointerout","pointerover"]),qi("onPointerLeave",["pointerout","pointerover"]),ei("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ei("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ei("onBeforeInput",["compositionend","keypress","textInput","paste"]),ei("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ei("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ei("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pl="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(" "),nI=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pl));function cv(e,n){n=(n&4)!==0;for(var a=0;a<e.length;a++){var o=e[a],d=o.event;o=o.listeners;A:{var p=void 0;if(n)for(var y=o.length-1;0<=y;y--){var x=o[y],H=x.instance,Y=x.currentTarget;if(x=x.listener,H!==p&&d.isPropagationStopped())break A;p=x,d.currentTarget=Y;try{p(d)}catch(tA){sc(tA)}d.currentTarget=null,p=H}else for(y=0;y<o.length;y++){if(x=o[y],H=x.instance,Y=x.currentTarget,x=x.listener,H!==p&&d.isPropagationStopped())break A;p=x,d.currentTarget=Y;try{p(d)}catch(tA){sc(tA)}d.currentTarget=null,p=H}}}}function zA(e,n){var a=n[Jo];a===void 0&&(a=n[Jo]=new Set);var o=e+"__bubble";a.has(o)||(uv(n,e,2,!1),a.add(o))}function Qg(e,n,a){var o=0;n&&(o|=4),uv(a,e,o,n)}var Yc="_reactListening"+Math.random().toString(36).slice(2);function Ug(e){if(!e[Yc]){e[Yc]=!0,rw.forEach(function(a){a!=="selectionchange"&&(nI.has(a)||Qg(a,!1,e),Qg(a,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Yc]||(n[Yc]=!0,Qg("selectionchange",!1,n))}}function uv(e,n,a,o){switch(kv(n)){case 2:var d=NI;break;case 8:d=II;break;default:d=Vg}a=d.bind(null,n,a,e),d=void 0,!Xd||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(d=!0),o?d!==void 0?e.addEventListener(n,a,{capture:!0,passive:d}):e.addEventListener(n,a,!0):d!==void 0?e.addEventListener(n,a,{passive:d}):e.addEventListener(n,a,!1)}function Fg(e,n,a,o,d){var p=o;if((n&1)===0&&(n&2)===0&&o!==null)A:for(;;){if(o===null)return;var y=o.tag;if(y===3||y===4){var x=o.stateNode.containerInfo;if(x===d)break;if(y===4)for(y=o.return;y!==null;){var H=y.tag;if((H===3||H===4)&&y.stateNode.containerInfo===d)return;y=y.return}for(;x!==null;){if(y=Pi(x),y===null)return;if(H=y.tag,H===5||H===6||H===26||H===27){o=p=y;continue A}x=x.parentNode}}o=o.return}pw(function(){var Y=p,tA=Pd(a),sA=[];A:{var J=Gw.get(e);if(J!==void 0){var $=rc,wA=e;switch(e){case"keypress":if(tc(a)===0)break A;case"keydown":case"keyup":$=J7;break;case"focusin":wA="focus",$=Wd;break;case"focusout":wA="blur",$=Wd;break;case"beforeblur":case"afterblur":$=Wd;break;case"click":if(a.button===2)break A;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$=Cw;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=L7;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=$7;break;case kw:case jw:case Kw:$=j7;break;case Vw:$=eN;break;case"scroll":case"scrollend":$=O7;break;case"wheel":$=nN;break;case"copy":case"cut":case"paste":$=V7;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=yw;break;case"toggle":case"beforetoggle":$=iN}var QA=(n&4)!==0,fe=!QA&&(e==="scroll"||e==="scrollend"),G=QA?J!==null?J+"Capture":null:J;QA=[];for(var k=Y,P;k!==null;){var iA=k;if(P=iA.stateNode,iA=iA.tag,iA!==5&&iA!==26&&iA!==27||P===null||G===null||(iA=Ls(k,G),iA!=null&&QA.push(ml(k,iA,P))),fe)break;k=k.return}0<QA.length&&(J=new $(J,wA,null,a,tA),sA.push({event:J,listeners:QA}))}}if((n&7)===0){A:{if(J=e==="mouseover"||e==="pointerover",$=e==="mouseout"||e==="pointerout",J&&a!==zd&&(wA=a.relatedTarget||a.fromElement)&&(Pi(wA)||wA[Hn]))break A;if(($||J)&&(J=tA.window===tA?tA:(J=tA.ownerDocument)?J.defaultView||J.parentWindow:window,$?(wA=a.relatedTarget||a.toElement,$=Y,wA=wA?Pi(wA):null,wA!==null&&(fe=l(wA),QA=wA.tag,wA!==fe||QA!==5&&QA!==27&&QA!==6)&&(wA=null)):($=null,wA=Y),$!==wA)){if(QA=Cw,iA="onMouseLeave",G="onMouseEnter",k="mouse",(e==="pointerout"||e==="pointerover")&&(QA=yw,iA="onPointerLeave",G="onPointerEnter",k="pointer"),fe=$==null?J:Rs($),P=wA==null?J:Rs(wA),J=new QA(iA,k+"leave",$,a,tA),J.target=fe,J.relatedTarget=P,iA=null,Pi(tA)===Y&&(QA=new QA(G,k+"enter",wA,a,tA),QA.target=P,QA.relatedTarget=fe,iA=QA),fe=iA,$&&wA)e:{for(QA=rI,G=$,k=wA,P=0,iA=G;iA;iA=QA(iA))P++;iA=0;for(var xA=k;xA;xA=QA(xA))iA++;for(;0<P-iA;)G=QA(G),P--;for(;0<iA-P;)k=QA(k),iA--;for(;P--;){if(G===k||k!==null&&G===k.alternate){QA=G;break e}G=QA(G),k=QA(k)}QA=null}else QA=null;$!==null&&fv(sA,J,$,QA,!1),wA!==null&&fe!==null&&fv(sA,fe,wA,QA,!0)}}A:{if(J=Y?Rs(Y):window,$=J.nodeName&&J.nodeName.toLowerCase(),$==="select"||$==="input"&&J.type==="file")var $A=Fw;else if(Qw(J))if(Tw)$A=gN;else{$A=dN;var vA=fN}else $=J.nodeName,!$||$.toLowerCase()!=="input"||J.type!=="checkbox"&&J.type!=="radio"?Y&&Gd(Y.elementType)&&($A=Fw):$A=hN;if($A&&($A=$A(e,Y))){Uw(sA,$A,a,tA);break A}vA&&vA(e,J,Y),e==="focusout"&&Y&&J.type==="number"&&Y.memoizedProps.value!=null&&Vd(J,"number",J.value)}switch(vA=Y?Rs(Y):window,e){case"focusin":(Qw(vA)||vA.contentEditable==="true")&&(ea=vA,rh=Y,Ps=null);break;case"focusout":Ps=rh=ea=null;break;case"mousedown":ih=!0;break;case"contextmenu":case"mouseup":case"dragend":ih=!1,Lw(sA,a,tA);break;case"selectionchange":if(mN)break;case"keydown":case"keyup":Lw(sA,a,tA)}var RA;if(Ah)A:{switch(e){case"compositionstart":var qA="onCompositionStart";break A;case"compositionend":qA="onCompositionEnd";break A;case"compositionupdate":qA="onCompositionUpdate";break A}qA=void 0}else Aa?xw(e,a)&&(qA="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(qA="onCompositionStart");qA&&(Ew&&a.locale!=="ko"&&(Aa||qA!=="onCompositionStart"?qA==="onCompositionEnd"&&Aa&&(RA=mw()):(Br=tA,qd="value"in Br?Br.value:Br.textContent,Aa=!0)),vA=Xc(Y,qA),0<vA.length&&(qA=new ww(qA,e,null,a,tA),sA.push({event:qA,listeners:vA}),RA?qA.data=RA:(RA=Sw(a),RA!==null&&(qA.data=RA)))),(RA=sN?lN(e,a):oN(e,a))&&(qA=Xc(Y,"onBeforeInput"),0<qA.length&&(vA=new ww("onBeforeInput","beforeinput",null,a,tA),sA.push({event:vA,listeners:qA}),vA.data=RA)),AI(sA,e,Y,a,tA)}cv(sA,n)})}function ml(e,n,a){return{instance:e,listener:n,currentTarget:a}}function Xc(e,n){for(var a=n+"Capture",o=[];e!==null;){var d=e,p=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||p===null||(d=Ls(e,a),d!=null&&o.unshift(ml(e,d,p)),d=Ls(e,n),d!=null&&o.push(ml(e,d,p))),e.tag===3)return o;e=e.return}return[]}function rI(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function fv(e,n,a,o,d){for(var p=n._reactName,y=[];a!==null&&a!==o;){var x=a,H=x.alternate,Y=x.stateNode;if(x=x.tag,H!==null&&H===o)break;x!==5&&x!==26&&x!==27||Y===null||(H=Y,d?(Y=Ls(a,p),Y!=null&&y.unshift(ml(a,Y,H))):d||(Y=Ls(a,p),Y!=null&&y.push(ml(a,Y,H)))),a=a.return}y.length!==0&&e.push({event:n,listeners:y})}var iI=/\r\n?/g,aI=/\u0000|\uFFFD/g;function dv(e){return(typeof e=="string"?e:""+e).replace(iI,`
|
|
9
|
-
`).replace(aI,"")}function hv(e,n){return n=dv(n),dv(e)===n}function ue(e,n,a,o,d,p){switch(a){case"children":typeof o=="string"?n==="body"||n==="textarea"&&o===""||Zi(e,o):(typeof o=="number"||typeof o=="bigint")&&n!=="body"&&Zi(e,""+o);break;case"className":Wo(e,"class",o);break;case"tabIndex":Wo(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Wo(e,a,o);break;case"style":hw(e,o,p);break;case"data":if(n!=="object"){Wo(e,"data",o);break}case"src":case"href":if(o===""&&(n!=="a"||a!=="href")){e.removeAttribute(a);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=Ac(""+o),e.setAttribute(a,o);break;case"action":case"formAction":if(typeof o=="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 p=="function"&&(a==="formAction"?(n!=="input"&&ue(e,n,"name",d.name,d,null),ue(e,n,"formEncType",d.formEncType,d,null),ue(e,n,"formMethod",d.formMethod,d,null),ue(e,n,"formTarget",d.formTarget,d,null)):(ue(e,n,"encType",d.encType,d,null),ue(e,n,"method",d.method,d,null),ue(e,n,"target",d.target,d,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=Ac(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(e.onclick=Mn);break;case"onScroll":o!=null&&zA("scroll",e);break;case"onScrollEnd":o!=null&&zA("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(a=o.__html,a!=null){if(d.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}a=Ac(""+o),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":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,""+o):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":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,o):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(a,o):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(a):e.setAttribute(a,o);break;case"popover":zA("beforetoggle",e),zA("toggle",e),Zo(e,"popover",o);break;case"xlinkActuate":_n(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":_n(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":_n(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":_n(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":_n(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":_n(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":_n(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":_n(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":_n(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Zo(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=_7.get(a)||a,Zo(e,a,o))}}function Tg(e,n,a,o,d,p){switch(a){case"style":hw(e,o,p);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(a=o.__html,a!=null){if(d.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"children":typeof o=="string"?Zi(e,o):(typeof o=="number"||typeof o=="bigint")&&Zi(e,""+o);break;case"onScroll":o!=null&&zA("scroll",e);break;case"onScrollEnd":o!=null&&zA("scrollend",e);break;case"onClick":o!=null&&(e.onclick=Mn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!iw.hasOwnProperty(a))A:{if(a[0]==="o"&&a[1]==="n"&&(d=a.endsWith("Capture"),n=a.slice(2,d?a.length-7:void 0),p=e[Oe]||null,p=p!=null?p[a]:null,typeof p=="function"&&e.removeEventListener(n,p,d),typeof o=="function")){typeof p!="function"&&p!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(n,o,d);break A}a in e?e[a]=o:o===!0?e.setAttribute(a,""):Zo(e,a,o)}}}function nt(e,n,a){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":zA("error",e),zA("load",e);var o=!1,d=!1,p;for(p in a)if(a.hasOwnProperty(p)){var y=a[p];if(y!=null)switch(p){case"src":o=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:ue(e,n,p,y,a,null)}}d&&ue(e,n,"srcSet",a.srcSet,a,null),o&&ue(e,n,"src",a.src,a,null);return;case"input":zA("invalid",e);var x=p=y=d=null,H=null,Y=null;for(o in a)if(a.hasOwnProperty(o)){var tA=a[o];if(tA!=null)switch(o){case"name":d=tA;break;case"type":y=tA;break;case"checked":H=tA;break;case"defaultChecked":Y=tA;break;case"value":p=tA;break;case"defaultValue":x=tA;break;case"children":case"dangerouslySetInnerHTML":if(tA!=null)throw Error(i(137,n));break;default:ue(e,n,o,tA,a,null)}}cw(e,p,x,H,Y,y,d,!1);return;case"select":zA("invalid",e),o=y=p=null;for(d in a)if(a.hasOwnProperty(d)&&(x=a[d],x!=null))switch(d){case"value":p=x;break;case"defaultValue":y=x;break;case"multiple":o=x;default:ue(e,n,d,x,a,null)}n=p,a=y,e.multiple=!!o,n!=null?Ji(e,!!o,n,!1):a!=null&&Ji(e,!!o,a,!0);return;case"textarea":zA("invalid",e),p=d=o=null;for(y in a)if(a.hasOwnProperty(y)&&(x=a[y],x!=null))switch(y){case"value":o=x;break;case"defaultValue":d=x;break;case"children":p=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(i(91));break;default:ue(e,n,y,x,a,null)}fw(e,o,d,p);return;case"option":for(H in a)if(a.hasOwnProperty(H)&&(o=a[H],o!=null))switch(H){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:ue(e,n,H,o,a,null)}return;case"dialog":zA("beforetoggle",e),zA("toggle",e),zA("cancel",e),zA("close",e);break;case"iframe":case"object":zA("load",e);break;case"video":case"audio":for(o=0;o<pl.length;o++)zA(pl[o],e);break;case"image":zA("error",e),zA("load",e);break;case"details":zA("toggle",e);break;case"embed":case"source":case"link":zA("error",e),zA("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(Y in a)if(a.hasOwnProperty(Y)&&(o=a[Y],o!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:ue(e,n,Y,o,a,null)}return;default:if(Gd(n)){for(tA in a)a.hasOwnProperty(tA)&&(o=a[tA],o!==void 0&&Tg(e,n,tA,o,a,void 0));return}}for(x in a)a.hasOwnProperty(x)&&(o=a[x],o!=null&&ue(e,n,x,o,a,null))}function sI(e,n,a,o){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,p=null,y=null,x=null,H=null,Y=null,tA=null;for($ in a){var sA=a[$];if(a.hasOwnProperty($)&&sA!=null)switch($){case"checked":break;case"value":break;case"defaultValue":H=sA;default:o.hasOwnProperty($)||ue(e,n,$,null,o,sA)}}for(var J in o){var $=o[J];if(sA=a[J],o.hasOwnProperty(J)&&($!=null||sA!=null))switch(J){case"type":p=$;break;case"name":d=$;break;case"checked":Y=$;break;case"defaultChecked":tA=$;break;case"value":y=$;break;case"defaultValue":x=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(i(137,n));break;default:$!==sA&&ue(e,n,J,$,o,sA)}}Kd(e,y,x,H,Y,tA,p,d);return;case"select":$=y=x=J=null;for(p in a)if(H=a[p],a.hasOwnProperty(p)&&H!=null)switch(p){case"value":break;case"multiple":$=H;default:o.hasOwnProperty(p)||ue(e,n,p,null,o,H)}for(d in o)if(p=o[d],H=a[d],o.hasOwnProperty(d)&&(p!=null||H!=null))switch(d){case"value":J=p;break;case"defaultValue":x=p;break;case"multiple":y=p;default:p!==H&&ue(e,n,d,p,o,H)}n=x,a=y,o=$,J!=null?Ji(e,!!a,J,!1):!!o!=!!a&&(n!=null?Ji(e,!!a,n,!0):Ji(e,!!a,a?[]:"",!1));return;case"textarea":$=J=null;for(x in a)if(d=a[x],a.hasOwnProperty(x)&&d!=null&&!o.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:ue(e,n,x,null,o,d)}for(y in o)if(d=o[y],p=a[y],o.hasOwnProperty(y)&&(d!=null||p!=null))switch(y){case"value":J=d;break;case"defaultValue":$=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(i(91));break;default:d!==p&&ue(e,n,y,d,o,p)}uw(e,J,$);return;case"option":for(var wA in a)if(J=a[wA],a.hasOwnProperty(wA)&&J!=null&&!o.hasOwnProperty(wA))switch(wA){case"selected":e.selected=!1;break;default:ue(e,n,wA,null,o,J)}for(H in o)if(J=o[H],$=a[H],o.hasOwnProperty(H)&&J!==$&&(J!=null||$!=null))switch(H){case"selected":e.selected=J&&typeof J!="function"&&typeof J!="symbol";break;default:ue(e,n,H,J,o,$)}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 QA in a)J=a[QA],a.hasOwnProperty(QA)&&J!=null&&!o.hasOwnProperty(QA)&&ue(e,n,QA,null,o,J);for(Y in o)if(J=o[Y],$=a[Y],o.hasOwnProperty(Y)&&J!==$&&(J!=null||$!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(i(137,n));break;default:ue(e,n,Y,J,o,$)}return;default:if(Gd(n)){for(var fe in a)J=a[fe],a.hasOwnProperty(fe)&&J!==void 0&&!o.hasOwnProperty(fe)&&Tg(e,n,fe,void 0,o,J);for(tA in o)J=o[tA],$=a[tA],!o.hasOwnProperty(tA)||J===$||J===void 0&&$===void 0||Tg(e,n,tA,J,o,$);return}}for(var G in a)J=a[G],a.hasOwnProperty(G)&&J!=null&&!o.hasOwnProperty(G)&&ue(e,n,G,null,o,J);for(sA in o)J=o[sA],$=a[sA],!o.hasOwnProperty(sA)||J===$||J==null&&$==null||ue(e,n,sA,J,o,$)}function gv(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function lI(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var d=a[o],p=d.transferSize,y=d.initiatorType,x=d.duration;if(p&&x&&gv(y)){for(y=0,x=d.responseEnd,o+=1;o<a.length;o++){var H=a[o],Y=H.startTime;if(Y>x)break;var tA=H.transferSize,sA=H.initiatorType;tA&&gv(sA)&&(H=H.responseEnd,y+=tA*(H<x?1:(x-Y)/(H-Y)))}if(--o,n+=8*(p+y)/(d.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 Ng=null,Ig=null;function qc(e){return e.nodeType===9?e:e.ownerDocument}function pv(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 mv(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 Hg(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 _g=null;function oI(){var e=window.event;return e&&e.type==="popstate"?e===_g?!1:(_g=e,!0):(_g=null,!1)}var Bv=typeof setTimeout=="function"?setTimeout:void 0,cI=typeof clearTimeout=="function"?clearTimeout:void 0,Cv=typeof Promise=="function"?Promise:void 0,uI=typeof queueMicrotask=="function"?queueMicrotask:typeof Cv<"u"?function(e){return Cv.resolve(null).then(e).catch(fI)}:Bv;function fI(e){setTimeout(function(){throw e})}function Mr(e){return e==="head"}function wv(e,n){var a=n,o=0;do{var d=a.nextSibling;if(e.removeChild(a),d&&d.nodeType===8)if(a=d.data,a==="/$"||a==="/&"){if(o===0){e.removeChild(d),Ua(n);return}o--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")o++;else if(a==="html")Bl(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Bl(a);for(var p=a.firstChild;p;){var y=p.nextSibling,x=p.nodeName;p[Os]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=y}}else a==="body"&&Bl(e.ownerDocument.body);a=d}while(a);Ua(n)}function yv(e,n){var a=e;e=0;do{var o=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||""),o&&o.nodeType===8)if(a=o.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=o}while(a)}function Mg(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":Mg(a),kd(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function dI(e,n,a,o){for(;e.nodeType===1;){var d=a;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[Os])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(p=e.getAttribute("rel"),p==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(p!==d.rel||e.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||e.getAttribute("title")!==(d.title==null?null:d.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(p=e.getAttribute("src"),(p!==(d.src==null?null:d.src)||e.getAttribute("type")!==(d.type==null?null:d.type)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&p&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var p=d.name==null?null:""+d.name;if(d.type==="hidden"&&e.getAttribute("name")===p)return e}else return e;if(e=$t(e.nextSibling),e===null)break}return null}function hI(e,n,a){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=$t(e.nextSibling),e===null))return null;return e}function Ev(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=$t(e.nextSibling),e===null))return null;return e}function Og(e){return e.data==="$?"||e.data==="$~"}function Rg(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function gI(e,n){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||a.readyState!=="loading")n();else{var o=function(){n(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function $t(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 Lg=null;function vv(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(n===0)return $t(e.nextSibling);n--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||n++}e=e.nextSibling}return null}function bv(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 xv(e,n,a){switch(n=qc(a),e){case"html":if(e=n.documentElement,!e)throw Error(i(452));return e;case"head":if(e=n.head,!e)throw Error(i(453));return e;case"body":if(e=n.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Bl(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);kd(e)}var An=new Map,Sv=new Set;function Jc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Zn=W.d;W.d={f:pI,r:mI,D:BI,C:CI,L:wI,m:yI,X:vI,S:EI,M:bI};function pI(){var e=Zn.f(),n=jc();return e||n}function mI(e){var n=Yi(e);n!==null&&n.tag===5&&n.type==="form"?Vy(n):Zn.r(e)}var xa=typeof document>"u"?null:document;function Qv(e,n,a){var o=xa;if(o&&typeof n=="string"&&n){var d=Pt(n);d='link[rel="'+e+'"][href="'+d+'"]',typeof a=="string"&&(d+='[crossorigin="'+a+'"]'),Sv.has(d)||(Sv.add(d),e={rel:e,crossOrigin:a,href:n},o.querySelector(d)===null&&(n=o.createElement("link"),nt(n,"link",e),Ye(n),o.head.appendChild(n)))}}function BI(e){Zn.D(e),Qv("dns-prefetch",e,null)}function CI(e,n){Zn.C(e,n),Qv("preconnect",e,n)}function wI(e,n,a){Zn.L(e,n,a);var o=xa;if(o&&e&&n){var d='link[rel="preload"][as="'+Pt(n)+'"]';n==="image"&&a&&a.imageSrcSet?(d+='[imagesrcset="'+Pt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(d+='[imagesizes="'+Pt(a.imageSizes)+'"]')):d+='[href="'+Pt(e)+'"]';var p=d;switch(n){case"style":p=Sa(e);break;case"script":p=Qa(e)}An.has(p)||(e=B({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:e,as:n},a),An.set(p,e),o.querySelector(d)!==null||n==="style"&&o.querySelector(Cl(p))||n==="script"&&o.querySelector(wl(p))||(n=o.createElement("link"),nt(n,"link",e),Ye(n),o.head.appendChild(n)))}}function yI(e,n){Zn.m(e,n);var a=xa;if(a&&e){var o=n&&typeof n.as=="string"?n.as:"script",d='link[rel="modulepreload"][as="'+Pt(o)+'"][href="'+Pt(e)+'"]',p=d;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Qa(e)}if(!An.has(p)&&(e=B({rel:"modulepreload",href:e},n),An.set(p,e),a.querySelector(d)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(wl(p)))return}o=a.createElement("link"),nt(o,"link",e),Ye(o),a.head.appendChild(o)}}}function EI(e,n,a){Zn.S(e,n,a);var o=xa;if(o&&e){var d=Xi(o).hoistableStyles,p=Sa(e);n=n||"default";var y=d.get(p);if(!y){var x={loading:0,preload:null};if(y=o.querySelector(Cl(p)))x.loading=5;else{e=B({rel:"stylesheet",href:e,"data-precedence":n},a),(a=An.get(p))&&Dg(e,a);var H=y=o.createElement("link");Ye(H),nt(H,"link",e),H._p=new Promise(function(Y,tA){H.onload=Y,H.onerror=tA}),H.addEventListener("load",function(){x.loading|=1}),H.addEventListener("error",function(){x.loading|=2}),x.loading|=4,Zc(y,n,o)}y={type:"stylesheet",instance:y,count:1,state:x},d.set(p,y)}}}function vI(e,n){Zn.X(e,n);var a=xa;if(a&&e){var o=Xi(a).hoistableScripts,d=Qa(e),p=o.get(d);p||(p=a.querySelector(wl(d)),p||(e=B({src:e,async:!0},n),(n=An.get(d))&&kg(e,n),p=a.createElement("script"),Ye(p),nt(p,"link",e),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(d,p))}}function bI(e,n){Zn.M(e,n);var a=xa;if(a&&e){var o=Xi(a).hoistableScripts,d=Qa(e),p=o.get(d);p||(p=a.querySelector(wl(d)),p||(e=B({src:e,async:!0,type:"module"},n),(n=An.get(d))&&kg(e,n),p=a.createElement("script"),Ye(p),nt(p,"link",e),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(d,p))}}function Uv(e,n,a,o){var d=(d=fA.current)?Jc(d):null;if(!d)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(n=Sa(a.href),a=Xi(d).hoistableStyles,o=a.get(n),o||(o={type:"style",instance:null,count:0,state:null},a.set(n,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Sa(a.href);var p=Xi(d).hoistableStyles,y=p.get(e);if(y||(d=d.ownerDocument||d,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(e,y),(p=d.querySelector(Cl(e)))&&!p._p&&(y.instance=p,y.state.loading=5),An.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},An.set(e,a),p||xI(d,e,a,y.state))),n&&o===null)throw Error(i(528,""));return y}if(n&&o!==null)throw Error(i(529,""));return null;case"script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Qa(a),a=Xi(d).hoistableScripts,o=a.get(n),o||(o={type:"script",instance:null,count:0,state:null},a.set(n,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Sa(e){return'href="'+Pt(e)+'"'}function Cl(e){return'link[rel="stylesheet"]['+e+"]"}function Fv(e){return B({},e,{"data-precedence":e.precedence,precedence:null})}function xI(e,n,a,o){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?o.loading=1:(n=e.createElement("link"),o.preload=n,n.addEventListener("load",function(){return o.loading|=1}),n.addEventListener("error",function(){return o.loading|=2}),nt(n,"link",a),Ye(n),e.head.appendChild(n))}function Qa(e){return'[src="'+Pt(e)+'"]'}function wl(e){return"script[async]"+e}function Tv(e,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var o=e.querySelector('style[data-href~="'+Pt(a.href)+'"]');if(o)return n.instance=o,Ye(o),o;var d=B({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),Ye(o),nt(o,"style",d),Zc(o,a.precedence,e),n.instance=o;case"stylesheet":d=Sa(a.href);var p=e.querySelector(Cl(d));if(p)return n.state.loading|=4,n.instance=p,Ye(p),p;o=Fv(a),(d=An.get(d))&&Dg(o,d),p=(e.ownerDocument||e).createElement("link"),Ye(p);var y=p;return y._p=new Promise(function(x,H){y.onload=x,y.onerror=H}),nt(p,"link",o),n.state.loading|=4,Zc(p,a.precedence,e),n.instance=p;case"script":return p=Qa(a.src),(d=e.querySelector(wl(p)))?(n.instance=d,Ye(d),d):(o=a,(d=An.get(p))&&(o=B({},a),kg(o,d)),e=e.ownerDocument||e,d=e.createElement("script"),Ye(d),nt(d,"link",o),e.head.appendChild(d),n.instance=d);case"void":return null;default:throw Error(i(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(o=n.instance,n.state.loading|=4,Zc(o,a.precedence,e));return n.instance}function Zc(e,n,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=o.length?o[o.length-1]:null,p=d,y=0;y<o.length;y++){var x=o[y];if(x.dataset.precedence===n)p=x;else if(p!==d)break}p?p.parentNode.insertBefore(e,p.nextSibling):(n=a.nodeType===9?a.head:a,n.insertBefore(e,n.firstChild))}function Dg(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function kg(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Wc=null;function Nv(e,n,a){if(Wc===null){var o=new Map,d=Wc=new Map;d.set(a,o)}else d=Wc,o=d.get(a),o||(o=new Map,d.set(a,o));if(o.has(e))return o;for(o.set(e,null),a=a.getElementsByTagName(e),d=0;d<a.length;d++){var p=a[d];if(!(p[Os]||p[_A]||e==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var y=p.getAttribute(n)||"";y=e+y;var x=o.get(y);x?x.push(p):o.set(y,[p])}}return o}function Iv(e,n,a){e=e.ownerDocument||e,e.head.insertBefore(a,n==="title"?e.querySelector("head > title"):null)}function SI(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 Hv(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function QI(e,n,a,o){if(a.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var d=Sa(o.href),p=n.querySelector(Cl(d));if(p){n=p._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=$c.bind(e),n.then(e,e)),a.state.loading|=4,a.instance=p,Ye(p);return}p=n.ownerDocument||n,o=Fv(o),(d=An.get(d))&&Dg(o,d),p=p.createElement("link"),Ye(p);var y=p;y._p=new Promise(function(x,H){y.onload=x,y.onerror=H}),nt(p,"link",o),a.instance=p}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=$c.bind(e),n.addEventListener("load",a),n.addEventListener("error",a))}}var jg=0;function UI(e,n){return e.stylesheets&&e.count===0&&eu(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&eu(e,e.stylesheets),e.unsuspend){var p=e.unsuspend;e.unsuspend=null,p()}},6e4+n);0<e.imgBytes&&jg===0&&(jg=62500*lI());var d=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&eu(e,e.stylesheets),e.unsuspend)){var p=e.unsuspend;e.unsuspend=null,p()}},(e.imgBytes>jg?50:800)+n);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(d)}}:null}function $c(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)eu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Au=null;function eu(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Au=new Map,n.forEach(FI,e),Au=null,$c.call(e))}function FI(e,n){if(!(n.state.loading&4)){var a=Au.get(e);if(a)var o=a.get(null);else{a=new Map,Au.set(e,a);for(var d=e.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<d.length;p++){var y=d[p];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(a.set(y.dataset.precedence,y),o=y)}o&&a.set(null,o)}d=n.instance,y=d.getAttribute("data-precedence"),p=a.get(y)||o,p===o&&a.set(null,d),a.set(y,d),this.count++,o=$c.bind(this),d.addEventListener("load",o),d.addEventListener("error",o),p?p.parentNode.insertBefore(d,p.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(d,e.firstChild)),n.state.loading|=4}}var yl={$$typeof:O,Provider:null,Consumer:null,_currentValue:AA,_currentValue2:AA,_threadCount:0};function TI(e,n,a,o,d,p,y,x,H){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=ln(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ln(0),this.hiddenUpdates=ln(null),this.identifierPrefix=o,this.onUncaughtError=d,this.onCaughtError=p,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=H,this.incompleteTransitions=new Map}function _v(e,n,a,o,d,p,y,x,H,Y,tA,sA){return e=new TI(e,n,a,y,H,Y,tA,sA,x),n=1,p===!0&&(n|=24),p=Nt(3,null,null,n),e.current=p,p.stateNode=e,n=wh(),n.refCount++,e.pooledCache=n,n.refCount++,p.memoizedState={element:o,isDehydrated:a,cache:n},bh(p),e}function Mv(e){return e?(e=ra,e):ra}function Ov(e,n,a,o,d,p){d=Mv(d),o.context===null?o.context=d:o.pendingContext=d,o=br(n),o.payload={element:a},p=p===void 0?null:p,p!==null&&(o.callback=p),a=xr(e,o,n),a!==null&&(vt(a,e,n),$s(a,e,n))}function Rv(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<n?a:n}}function Kg(e,n){Rv(e,n),(e=e.alternate)&&Rv(e,n)}function Lv(e){if(e.tag===13||e.tag===31){var n=ii(e,67108864);n!==null&&vt(n,e,67108864),Kg(e,67108864)}}function Dv(e){if(e.tag===13||e.tag===31){var n=Ot();n=mr(n);var a=ii(e,n);a!==null&&vt(a,e,n),Kg(e,n)}}var tu=!0;function NI(e,n,a,o){var d=D.T;D.T=null;var p=W.p;try{W.p=2,Vg(e,n,a,o)}finally{W.p=p,D.T=d}}function II(e,n,a,o){var d=D.T;D.T=null;var p=W.p;try{W.p=8,Vg(e,n,a,o)}finally{W.p=p,D.T=d}}function Vg(e,n,a,o){if(tu){var d=Gg(o);if(d===null)Fg(e,n,o,nu,a),jv(e,o);else if(_I(d,e,n,a,o))o.stopPropagation();else if(jv(e,o),n&4&&-1<HI.indexOf(e)){for(;d!==null;){var p=Yi(d);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var y=xe(p.pendingLanes);if(y!==0){var x=p;for(x.pendingLanes|=2,x.entangledLanes|=2;y;){var H=1<<31-TA(y);x.entanglements[1]|=H,y&=~H}vn(p),(re&6)===0&&(Dc=ze()+500,gl(0))}}break;case 31:case 13:x=ii(p,2),x!==null&&vt(x,p,2),jc(),Kg(p,2)}if(p=Gg(o),p===null&&Fg(e,n,o,nu,a),p===d)break;d=p}d!==null&&o.stopPropagation()}else Fg(e,n,o,null,a)}}function Gg(e){return e=Pd(e),zg(e)}var nu=null;function zg(e){if(nu=null,e=Pi(e),e!==null){var n=l(e);if(n===null)e=null;else{var a=n.tag;if(a===13){if(e=c(n),e!==null)return e;e=null}else if(a===31){if(e=u(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 nu=e,null}function kv(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(Vi()){case rA:return 2;case V:return 8;case q:case oA:return 32;case hA:return 268435456;default:return 32}default:return 32}}var Pg=!1,Or=null,Rr=null,Lr=null,El=new Map,vl=new Map,Dr=[],HI="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 jv(e,n){switch(e){case"focusin":case"focusout":Or=null;break;case"dragenter":case"dragleave":Rr=null;break;case"mouseover":case"mouseout":Lr=null;break;case"pointerover":case"pointerout":El.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":vl.delete(n.pointerId)}}function bl(e,n,a,o,d,p){return e===null||e.nativeEvent!==p?(e={blockedOn:n,domEventName:a,eventSystemFlags:o,nativeEvent:p,targetContainers:[d]},n!==null&&(n=Yi(n),n!==null&&Lv(n)),e):(e.eventSystemFlags|=o,n=e.targetContainers,d!==null&&n.indexOf(d)===-1&&n.push(d),e)}function _I(e,n,a,o,d){switch(n){case"focusin":return Or=bl(Or,e,n,a,o,d),!0;case"dragenter":return Rr=bl(Rr,e,n,a,o,d),!0;case"mouseover":return Lr=bl(Lr,e,n,a,o,d),!0;case"pointerover":var p=d.pointerId;return El.set(p,bl(El.get(p)||null,e,n,a,o,d)),!0;case"gotpointercapture":return p=d.pointerId,vl.set(p,bl(vl.get(p)||null,e,n,a,o,d)),!0}return!1}function Kv(e){var n=Pi(e.target);if(n!==null){var a=l(n);if(a!==null){if(n=a.tag,n===13){if(n=c(a),n!==null){e.blockedOn=n,zi(e.priority,function(){Dv(a)});return}}else if(n===31){if(n=u(a),n!==null){e.blockedOn=n,zi(e.priority,function(){Dv(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 ru(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var a=Gg(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a);zd=o,a.target.dispatchEvent(o),zd=null}else return n=Yi(a),n!==null&&Lv(n),e.blockedOn=a,!1;n.shift()}return!0}function Vv(e,n,a){ru(e)&&a.delete(n)}function MI(){Pg=!1,Or!==null&&ru(Or)&&(Or=null),Rr!==null&&ru(Rr)&&(Rr=null),Lr!==null&&ru(Lr)&&(Lr=null),El.forEach(Vv),vl.forEach(Vv)}function iu(e,n){e.blockedOn===n&&(e.blockedOn=null,Pg||(Pg=!0,A.unstable_scheduleCallback(A.unstable_NormalPriority,MI)))}var au=null;function Gv(e){au!==e&&(au=e,A.unstable_scheduleCallback(A.unstable_NormalPriority,function(){au===e&&(au=null);for(var n=0;n<e.length;n+=3){var a=e[n],o=e[n+1],d=e[n+2];if(typeof o!="function"){if(zg(o||a)===null)continue;break}var p=Yi(a);p!==null&&(e.splice(n,3),n-=3,Gh(p,{pending:!0,data:d,method:a.method,action:o},o,d))}}))}function Ua(e){function n(H){return iu(H,e)}Or!==null&&iu(Or,e),Rr!==null&&iu(Rr,e),Lr!==null&&iu(Lr,e),El.forEach(n),vl.forEach(n);for(var a=0;a<Dr.length;a++){var o=Dr[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Dr.length&&(a=Dr[0],a.blockedOn===null);)Kv(a),a.blockedOn===null&&Dr.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var d=a[o],p=a[o+1],y=d[Oe]||null;if(typeof p=="function")y||Gv(a);else if(y){var x=null;if(p&&p.hasAttribute("formAction")){if(d=p,y=p[Oe]||null)x=y.formAction;else if(zg(d)!==null)continue}else x=y.action;typeof x=="function"?a[o+1]=x:(a.splice(o,3),o-=3),Gv(a)}}}function zv(){function e(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(y){return d=y})},focusReset:"manual",scroll:"manual"})}function n(){d!==null&&(d(),d=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,d=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),d!==null&&(d(),d=null)}}}function Yg(e){this._internalRoot=e}su.prototype.render=Yg.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(i(409));var a=n.current,o=Ot();Ov(a,o,e,n,null,null)},su.prototype.unmount=Yg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Ov(e.current,2,null,e,null,null),jc(),n[Hn]=null}};function su(e){this._internalRoot=e}su.prototype.unstable_scheduleHydration=function(e){if(e){var n=qo();e={blockedOn:null,target:e,priority:n};for(var a=0;a<Dr.length&&n!==0&&n<Dr[a].priority;a++);Dr.splice(a,0,e),a===0&&Kv(e)}};var Pv=t.version;if(Pv!=="19.2.0")throw Error(i(527,Pv,"19.2.0"));W.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=h(n),e=e!==null?m(e):null,e=e===null?null:e.stateNode,e};var OI={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var lu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lu.isDisabled&&lu.supportsFiber)try{jA=lu.inject(OI),LA=lu}catch{}}return Na.createRoot=function(e,n){if(!s(e))throw Error(i(299));var a=!1,o="",d=$y,p=AE,y=eE;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(d=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError)),n=_v(e,1,!1,null,null,a,o,null,d,p,y,zv),e[Hn]=n.current,Ug(e),new Yg(n)},Na.hydrateRoot=function(e,n,a){if(!s(e))throw Error(i(299));var o=!1,d="",p=$y,y=AE,x=eE,H=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onUncaughtError!==void 0&&(p=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(x=a.onRecoverableError),a.formState!==void 0&&(H=a.formState)),n=_v(e,1,!0,n,a??null,o,d,H,p,y,x,zv),n.context=Mv(null),a=n.current,o=Ot(),o=mr(o),d=br(o),d.callback=null,xr(a,d,o),a=o,n.current.lanes=a,Gt(n,a),vn(n),e[Hn]=n.current,Ug(e),new su(n)},Na.version="19.2.0",Na}var i0;function t2(){if(i0)return du.exports;i0=1;function A(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(A)}catch{}}return A(),du.exports=e2(),du.exports}var n2=t2();function a0(A,t){if(typeof A=="function")return A(t);A!=null&&(A.current=t)}function mu(...A){return t=>{let r=!1;const i=A.map(s=>{const l=a0(s,t);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let s=0;s<i.length;s++){const l=i[s];typeof l=="function"?l():a0(A[s],null)}}}}function bn(...A){return b.useCallback(mu(...A),A)}function r2(A){const t=i2(A),r=b.forwardRef((i,s)=>{const{children:l,...c}=i,u=b.Children.toArray(l),f=u.find(s2);if(f){const h=f.props.children,m=u.map(B=>B===f?b.Children.count(h)>1?b.Children.only(null):b.isValidElement(h)?h.props.children:null:B);return g.jsx(t,{...c,ref:s,children:b.isValidElement(h)?b.cloneElement(h,void 0,m):null})}return g.jsx(t,{...c,ref:s,children:l})});return r.displayName=`${A}.Slot`,r}function i2(A){const t=b.forwardRef((r,i)=>{const{children:s,...l}=r;if(b.isValidElement(s)){const c=o2(s),u=l2(l,s.props);return s.type!==b.Fragment&&(u.ref=i?mu(i,c):c),b.cloneElement(s,u)}return b.Children.count(s)>1?b.Children.only(null):null});return t.displayName=`${A}.SlotClone`,t}var a2=Symbol("radix.slottable");function s2(A){return b.isValidElement(A)&&typeof A.type=="function"&&"__radixId"in A.type&&A.type.__radixId===a2}function l2(A,t){const r={...t};for(const i in t){const s=A[i],l=t[i];/^on[A-Z]/.test(i)?s&&l?r[i]=(...u)=>{const f=l(...u);return s(...u),f}:s&&(r[i]=s):i==="style"?r[i]={...s,...l}:i==="className"&&(r[i]=[s,l].filter(Boolean).join(" "))}return{...A,...r}}function o2(A){let t=Object.getOwnPropertyDescriptor(A.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?A.ref:(t=Object.getOwnPropertyDescriptor(A,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?A.props.ref:A.props.ref||A.ref)}var c2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Wn=c2.reduce((A,t)=>{const r=r2(`Primitive.${t}`),i=b.forwardRef((s,l)=>{const{asChild:c,...u}=s,f=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(f,{...u,ref:l})});return i.displayName=`Primitive.${t}`,{...A,[t]:i}},{}),$n=globalThis?.document?b.useLayoutEffect:()=>{};function u2(A,t){return b.useReducer((r,i)=>t[r][i]??r,A)}var Bi=A=>{const{present:t,children:r}=A,i=f2(t),s=typeof r=="function"?r({present:i.isPresent}):b.Children.only(r),l=bn(i.ref,d2(s));return typeof r=="function"||i.isPresent?b.cloneElement(s,{ref:l}):null};Bi.displayName="Presence";function f2(A){const[t,r]=b.useState(),i=b.useRef(null),s=b.useRef(A),l=b.useRef("none"),c=A?"mounted":"unmounted",[u,f]=u2(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const h=Sl(i.current);l.current=u==="mounted"?h:"none"},[u]),$n(()=>{const h=i.current,m=s.current;if(m!==A){const w=l.current,C=Sl(h);A?f("MOUNT"):C==="none"||h?.display==="none"?f("UNMOUNT"):f(m&&w!==C?"ANIMATION_OUT":"UNMOUNT"),s.current=A}},[A,f]),$n(()=>{if(t){let h;const m=t.ownerDocument.defaultView??window,B=C=>{const v=Sl(i.current).includes(CSS.escape(C.animationName));if(C.target===t&&v&&(f("ANIMATION_END"),!s.current)){const F=t.style.animationFillMode;t.style.animationFillMode="forwards",h=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=F)})}},w=C=>{C.target===t&&(l.current=Sl(i.current))};return t.addEventListener("animationstart",w),t.addEventListener("animationcancel",B),t.addEventListener("animationend",B),()=>{m.clearTimeout(h),t.removeEventListener("animationstart",w),t.removeEventListener("animationcancel",B),t.removeEventListener("animationend",B)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:b.useCallback(h=>{i.current=h?getComputedStyle(h):null,r(h)},[])}}function Sl(A){return A?.animationName||"none"}function d2(A){let t=Object.getOwnPropertyDescriptor(A.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?A.ref:(t=Object.getOwnPropertyDescriptor(A,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?A.props.ref:A.props.ref||A.ref)}function s0(A,t=[]){let r=[];function i(l,c){const u=b.createContext(c),f=r.length;r=[...r,c];const h=B=>{const{scope:w,children:C,...E}=B,v=w?.[A]?.[f]||u,F=b.useMemo(()=>E,Object.values(E));return g.jsx(v.Provider,{value:F,children:C})};h.displayName=l+"Provider";function m(B,w){const C=w?.[A]?.[f]||u,E=b.useContext(C);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${B}\` must be used within \`${l}\``)}return[h,m]}const s=()=>{const l=r.map(c=>b.createContext(c));return function(u){const f=u?.[A]||l;return b.useMemo(()=>({[`__scope${A}`]:{...u,[A]:f}}),[u,f])}};return s.scopeName=A,[i,h2(s,...t)]}function h2(...A){const t=A[0];if(A.length===1)return t;const r=()=>{const i=A.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(l){const c=i.reduce((u,{useScope:f,scopeName:h})=>{const B=f(l)[`__scope${h}`];return{...u,...B}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return r.scopeName=t.scopeName,r}function Ar(A){const t=b.useRef(A);return b.useEffect(()=>{t.current=A}),b.useMemo(()=>(...r)=>t.current?.(...r),[])}var g2=b.createContext(void 0);function p2(A){const t=b.useContext(g2);return A||t||"ltr"}function m2(A,[t,r]){return Math.min(r,Math.max(t,A))}function xn(A,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(A?.(s),r===!1||!s.defaultPrevented)return t?.(s)}}function B2(A,t){return b.useReducer((r,i)=>t[r][i]??r,A)}var Bu="ScrollArea",[l0]=s0(Bu),[C2,Rt]=l0(Bu),o0=b.forwardRef((A,t)=>{const{__scopeScrollArea:r,type:i="hover",dir:s,scrollHideDelay:l=600,...c}=A,[u,f]=b.useState(null),[h,m]=b.useState(null),[B,w]=b.useState(null),[C,E]=b.useState(null),[v,F]=b.useState(null),[Q,I]=b.useState(0),[O,K]=b.useState(0),[j,T]=b.useState(!1),[L,R]=b.useState(!1),_=bn(t,nA=>f(nA)),X=p2(s);return g.jsx(C2,{scope:r,type:i,dir:X,scrollHideDelay:l,scrollArea:u,viewport:h,onViewportChange:m,content:B,onContentChange:w,scrollbarX:C,onScrollbarXChange:E,scrollbarXEnabled:j,onScrollbarXEnabledChange:T,scrollbarY:v,onScrollbarYChange:F,scrollbarYEnabled:L,onScrollbarYEnabledChange:R,onCornerWidthChange:I,onCornerHeightChange:K,children:g.jsx(Wn.div,{dir:X,...c,ref:_,style:{position:"relative","--radix-scroll-area-corner-width":Q+"px","--radix-scroll-area-corner-height":O+"px",...A.style}})})});o0.displayName=Bu;var c0="ScrollAreaViewport",u0=b.forwardRef((A,t)=>{const{__scopeScrollArea:r,children:i,nonce:s,...l}=A,c=Rt(c0,r),u=b.useRef(null),f=bn(t,u,c.onViewportChange);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),g.jsx(Wn.div,{"data-radix-scroll-area-viewport":"",...l,ref:f,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...A.style},children:g.jsx("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});u0.displayName=c0;var fn="ScrollAreaScrollbar",Cu=b.forwardRef((A,t)=>{const{forceMount:r,...i}=A,s=Rt(fn,A.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:c}=s,u=A.orientation==="horizontal";return b.useEffect(()=>(u?l(!0):c(!0),()=>{u?l(!1):c(!1)}),[u,l,c]),s.type==="hover"?g.jsx(w2,{...i,ref:t,forceMount:r}):s.type==="scroll"?g.jsx(y2,{...i,ref:t,forceMount:r}):s.type==="auto"?g.jsx(f0,{...i,ref:t,forceMount:r}):s.type==="always"?g.jsx(wu,{...i,ref:t}):null});Cu.displayName=fn;var w2=b.forwardRef((A,t)=>{const{forceMount:r,...i}=A,s=Rt(fn,A.__scopeScrollArea),[l,c]=b.useState(!1);return b.useEffect(()=>{const u=s.scrollArea;let f=0;if(u){const h=()=>{window.clearTimeout(f),c(!0)},m=()=>{f=window.setTimeout(()=>c(!1),s.scrollHideDelay)};return u.addEventListener("pointerenter",h),u.addEventListener("pointerleave",m),()=>{window.clearTimeout(f),u.removeEventListener("pointerenter",h),u.removeEventListener("pointerleave",m)}}},[s.scrollArea,s.scrollHideDelay]),g.jsx(Bi,{present:r||l,children:g.jsx(f0,{"data-state":l?"visible":"hidden",...i,ref:t})})}),y2=b.forwardRef((A,t)=>{const{forceMount:r,...i}=A,s=Rt(fn,A.__scopeScrollArea),l=A.orientation==="horizontal",c=Tl(()=>f("SCROLL_END"),100),[u,f]=B2("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return b.useEffect(()=>{if(u==="idle"){const h=window.setTimeout(()=>f("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(h)}},[u,s.scrollHideDelay,f]),b.useEffect(()=>{const h=s.viewport,m=l?"scrollLeft":"scrollTop";if(h){let B=h[m];const w=()=>{const C=h[m];B!==C&&(f("SCROLL"),c()),B=C};return h.addEventListener("scroll",w),()=>h.removeEventListener("scroll",w)}},[s.viewport,l,f,c]),g.jsx(Bi,{present:r||u!=="hidden",children:g.jsx(wu,{"data-state":u==="hidden"?"hidden":"visible",...i,ref:t,onPointerEnter:xn(A.onPointerEnter,()=>f("POINTER_ENTER")),onPointerLeave:xn(A.onPointerLeave,()=>f("POINTER_LEAVE"))})})}),f0=b.forwardRef((A,t)=>{const r=Rt(fn,A.__scopeScrollArea),{forceMount:i,...s}=A,[l,c]=b.useState(!1),u=A.orientation==="horizontal",f=Tl(()=>{if(r.viewport){const h=r.viewport.offsetWidth<r.viewport.scrollWidth,m=r.viewport.offsetHeight<r.viewport.scrollHeight;c(u?h:m)}},10);return Ci(r.viewport,f),Ci(r.content,f),g.jsx(Bi,{present:i||l,children:g.jsx(wu,{"data-state":l?"visible":"hidden",...s,ref:t})})}),wu=b.forwardRef((A,t)=>{const{orientation:r="vertical",...i}=A,s=Rt(fn,A.__scopeScrollArea),l=b.useRef(null),c=b.useRef(0),[u,f]=b.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),h=m0(u.viewport,u.content),m={...i,sizes:u,onSizesChange:f,hasThumb:h>0&&h<1,onThumbChange:w=>l.current=w,onThumbPointerUp:()=>c.current=0,onThumbPointerDown:w=>c.current=w};function B(w,C){return Q2(w,c.current,u,C)}return r==="horizontal"?g.jsx(E2,{...m,ref:t,onThumbPositionChange:()=>{if(s.viewport&&l.current){const w=s.viewport.scrollLeft,C=B0(w,u,s.dir);l.current.style.transform=`translate3d(${C}px, 0, 0)`}},onWheelScroll:w=>{s.viewport&&(s.viewport.scrollLeft=w)},onDragScroll:w=>{s.viewport&&(s.viewport.scrollLeft=B(w,s.dir))}}):r==="vertical"?g.jsx(v2,{...m,ref:t,onThumbPositionChange:()=>{if(s.viewport&&l.current){const w=s.viewport.scrollTop,C=B0(w,u);l.current.style.transform=`translate3d(0, ${C}px, 0)`}},onWheelScroll:w=>{s.viewport&&(s.viewport.scrollTop=w)},onDragScroll:w=>{s.viewport&&(s.viewport.scrollTop=B(w))}}):null}),E2=b.forwardRef((A,t)=>{const{sizes:r,onSizesChange:i,...s}=A,l=Rt(fn,A.__scopeScrollArea),[c,u]=b.useState(),f=b.useRef(null),h=bn(t,f,l.onScrollbarXChange);return b.useEffect(()=>{f.current&&u(getComputedStyle(f.current))},[f]),g.jsx(h0,{"data-orientation":"horizontal",...s,ref:h,sizes:r,style:{bottom:0,left:l.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:l.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Fl(r)+"px",...A.style},onThumbPointerDown:m=>A.onThumbPointerDown(m.x),onDragScroll:m=>A.onDragScroll(m.x),onWheelScroll:(m,B)=>{if(l.viewport){const w=l.viewport.scrollLeft+m.deltaX;A.onWheelScroll(w),w0(w,B)&&m.preventDefault()}},onResize:()=>{f.current&&l.viewport&&c&&i({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:f.current.clientWidth,paddingStart:Ul(c.paddingLeft),paddingEnd:Ul(c.paddingRight)}})}})}),v2=b.forwardRef((A,t)=>{const{sizes:r,onSizesChange:i,...s}=A,l=Rt(fn,A.__scopeScrollArea),[c,u]=b.useState(),f=b.useRef(null),h=bn(t,f,l.onScrollbarYChange);return b.useEffect(()=>{f.current&&u(getComputedStyle(f.current))},[f]),g.jsx(h0,{"data-orientation":"vertical",...s,ref:h,sizes:r,style:{top:0,right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Fl(r)+"px",...A.style},onThumbPointerDown:m=>A.onThumbPointerDown(m.y),onDragScroll:m=>A.onDragScroll(m.y),onWheelScroll:(m,B)=>{if(l.viewport){const w=l.viewport.scrollTop+m.deltaY;A.onWheelScroll(w),w0(w,B)&&m.preventDefault()}},onResize:()=>{f.current&&l.viewport&&c&&i({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:f.current.clientHeight,paddingStart:Ul(c.paddingTop),paddingEnd:Ul(c.paddingBottom)}})}})}),[b2,d0]=l0(fn),h0=b.forwardRef((A,t)=>{const{__scopeScrollArea:r,sizes:i,hasThumb:s,onThumbChange:l,onThumbPointerUp:c,onThumbPointerDown:u,onThumbPositionChange:f,onDragScroll:h,onWheelScroll:m,onResize:B,...w}=A,C=Rt(fn,r),[E,v]=b.useState(null),F=bn(t,_=>v(_)),Q=b.useRef(null),I=b.useRef(""),O=C.viewport,K=i.content-i.viewport,j=Ar(m),T=Ar(f),L=Tl(B,10);function R(_){if(Q.current){const X=_.clientX-Q.current.left,nA=_.clientY-Q.current.top;h({x:X,y:nA})}}return b.useEffect(()=>{const _=X=>{const nA=X.target;E?.contains(nA)&&j(X,K)};return document.addEventListener("wheel",_,{passive:!1}),()=>document.removeEventListener("wheel",_,{passive:!1})},[O,E,K,j]),b.useEffect(T,[i,T]),Ci(E,L),Ci(C.content,L),g.jsx(b2,{scope:r,scrollbar:E,hasThumb:s,onThumbChange:Ar(l),onThumbPointerUp:Ar(c),onThumbPositionChange:T,onThumbPointerDown:Ar(u),children:g.jsx(Wn.div,{...w,ref:F,style:{position:"absolute",...w.style},onPointerDown:xn(A.onPointerDown,_=>{_.button===0&&(_.target.setPointerCapture(_.pointerId),Q.current=E.getBoundingClientRect(),I.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",C.viewport&&(C.viewport.style.scrollBehavior="auto"),R(_))}),onPointerMove:xn(A.onPointerMove,R),onPointerUp:xn(A.onPointerUp,_=>{const X=_.target;X.hasPointerCapture(_.pointerId)&&X.releasePointerCapture(_.pointerId),document.body.style.webkitUserSelect=I.current,C.viewport&&(C.viewport.style.scrollBehavior=""),Q.current=null})})})}),Ql="ScrollAreaThumb",g0=b.forwardRef((A,t)=>{const{forceMount:r,...i}=A,s=d0(Ql,A.__scopeScrollArea);return g.jsx(Bi,{present:r||s.hasThumb,children:g.jsx(x2,{ref:t,...i})})}),x2=b.forwardRef((A,t)=>{const{__scopeScrollArea:r,style:i,...s}=A,l=Rt(Ql,r),c=d0(Ql,r),{onThumbPositionChange:u}=c,f=bn(t,B=>c.onThumbChange(B)),h=b.useRef(void 0),m=Tl(()=>{h.current&&(h.current(),h.current=void 0)},100);return b.useEffect(()=>{const B=l.viewport;if(B){const w=()=>{if(m(),!h.current){const C=U2(B,u);h.current=C,u()}};return u(),B.addEventListener("scroll",w),()=>B.removeEventListener("scroll",w)}},[l.viewport,m,u]),g.jsx(Wn.div,{"data-state":c.hasThumb?"visible":"hidden",...s,ref:f,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:xn(A.onPointerDownCapture,B=>{const C=B.target.getBoundingClientRect(),E=B.clientX-C.left,v=B.clientY-C.top;c.onThumbPointerDown({x:E,y:v})}),onPointerUp:xn(A.onPointerUp,c.onThumbPointerUp)})});g0.displayName=Ql;var yu="ScrollAreaCorner",p0=b.forwardRef((A,t)=>{const r=Rt(yu,A.__scopeScrollArea),i=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&i?g.jsx(S2,{...A,ref:t}):null});p0.displayName=yu;var S2=b.forwardRef((A,t)=>{const{__scopeScrollArea:r,...i}=A,s=Rt(yu,r),[l,c]=b.useState(0),[u,f]=b.useState(0),h=!!(l&&u);return Ci(s.scrollbarX,()=>{const m=s.scrollbarX?.offsetHeight||0;s.onCornerHeightChange(m),f(m)}),Ci(s.scrollbarY,()=>{const m=s.scrollbarY?.offsetWidth||0;s.onCornerWidthChange(m),c(m)}),h?g.jsx(Wn.div,{...i,ref:t,style:{width:l,height:u,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...A.style}}):null});function Ul(A){return A?parseInt(A,10):0}function m0(A,t){const r=A/t;return isNaN(r)?0:r}function Fl(A){const t=m0(A.viewport,A.content),r=A.scrollbar.paddingStart+A.scrollbar.paddingEnd,i=(A.scrollbar.size-r)*t;return Math.max(i,18)}function Q2(A,t,r,i="ltr"){const s=Fl(r),l=s/2,c=t||l,u=s-c,f=r.scrollbar.paddingStart+c,h=r.scrollbar.size-r.scrollbar.paddingEnd-u,m=r.content-r.viewport,B=i==="ltr"?[0,m]:[m*-1,0];return C0([f,h],B)(A)}function B0(A,t,r="ltr"){const i=Fl(t),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=t.scrollbar.size-s,c=t.content-t.viewport,u=l-i,f=r==="ltr"?[0,c]:[c*-1,0],h=m2(A,f);return C0([0,c],[0,u])(h)}function C0(A,t){return r=>{if(A[0]===A[1]||t[0]===t[1])return t[0];const i=(t[1]-t[0])/(A[1]-A[0]);return t[0]+i*(r-A[0])}}function w0(A,t){return A>0&&A<t}var U2=(A,t=()=>{})=>{let r={left:A.scrollLeft,top:A.scrollTop},i=0;return(function s(){const l={left:A.scrollLeft,top:A.scrollTop},c=r.left!==l.left,u=r.top!==l.top;(c||u)&&t(),r=l,i=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(i)};function Tl(A,t){const r=Ar(A),i=b.useRef(0);return b.useEffect(()=>()=>window.clearTimeout(i.current),[]),b.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(r,t)},[r,t])}function Ci(A,t){const r=Ar(t);$n(()=>{let i=0;if(A){const s=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return s.observe(A),()=>{window.cancelAnimationFrame(i),s.unobserve(A)}}},[A,r])}var y0=o0,F2=u0,T2=p0,jr={},Ia={},Eu={},Ha={},_a={},Ma={},E0;function vu(){if(E0)return Ma;E0=1,Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.EventEmitter=void 0;let A=class{eventListeners=new Map;on(r,i){const s=this.eventListeners.get(r)||new Set;s.add(i),this.eventListeners.set(r,s)}off(r,i){const s=this.eventListeners.get(r);s&&(s.delete(i),s.size===0&&this.eventListeners.delete(r))}emit(r,...i){const s=this.eventListeners.get(r);s&&s.forEach(l=>l(...i))}removeAllListeners(){this.eventListeners.clear()}};return Ma.EventEmitter=A,Ma}var Kr={},v0;function Oa(){return v0||(v0=1,Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.DisconnectionReason=Kr.ConnectionStatus=void 0,Kr.ConnectionStatus={CONNECTING:"connecting",CONNECTED:"connected",NOT_CONNECTED:"not_connected"},Kr.DisconnectionReason={CLIENT_CLOSED:"client_closed",SERVER_CLOSED:"server_closed",CONNECTION_ERROR:"connection_error",AUTHENTICATION_ERROR:"authentication_error",MAX_RECONNECT_ATTEMPTS:"max_reconnect_attempts",TIMEOUT:"timeout",NETWORK_ERROR:"network_error"}),Kr}var b0;function bu(){if(b0)return _a;b0=1,Object.defineProperty(_a,"__esModule",{value:!0}),_a.BaseConnection=void 0;const A=vu(),t=Oa();let r=class{status=t.ConnectionStatus.CONNECTING;queue=[];eventEmitter=new A.EventEmitter;disconnectionDetails=null;onErrorCallback=null;onDisconnectCallback=null;onMessageCallback=null;onOpenCallback=null;onStatusChangeCallback=null;getStatus(){return this.status}onOpen(s){this.onOpenCallback=s}onMessage(s){if(this.onMessageCallback=s,this.queue.length>0){const l=[...this.queue];this.queue.length=0,queueMicrotask(()=>{l.forEach(c=>{this.onMessageCallback?.(c)})})}}onDisconnect(s){this.onDisconnectCallback=s;const l=this.disconnectionDetails;l&&queueMicrotask(()=>{this.onDisconnectCallback?.(l)})}onError(s){this.onErrorCallback=s}on(s,l){this.eventEmitter.on(s,l)}off(s,l){this.eventEmitter.off(s,l)}emit(s,...l){this.eventEmitter.emit(s,...l)}onStatusChange(s){this.onStatusChangeCallback=s,queueMicrotask(()=>{s(this.status)})}disconnect(s){this.disconnectionDetails||(this.disconnectionDetails=s,this.updateStatus(t.ConnectionStatus.NOT_CONNECTED),this.onDisconnectCallback?.(s))}handleMessage(s){this.onMessageCallback?this.onMessageCallback(s):this.queue.push(s)}updateStatus(s){this.status!==s&&(this.status=s,this.onStatusChangeCallback?.(s))}};return _a.BaseConnection=r,_a}var xu={},x0;function Lt(){return x0||(x0=1,(function(A){Object.defineProperty(A,"__esModule",{value:!0}),A.ValidationError=A.ConfigurationError=A.StoreError=A.MessageError=A.SessionError=A.FileError=A.AuthenticationError=A.RecordingError=A.ConnectionError=A.InternalServerError=A.RateLimitError=A.MethodNotAllowedError=A.NotFoundError=A.PermissionDeniedError=A.UnauthorizedError=A.BadRequestError=A.APIConnectionTimeoutError=A.APIUserAbortError=A.APIError=A.SynapseError=A.SynapseErrorCode=void 0,A.normalizeError=j,A.SynapseErrorCode={API:"API_ERROR",CONNECTION:"CONNECTION_ERROR",RECORDING:"RECORDING_ERROR",FILE:"FILE_ERROR",SESSION:"SESSION_ERROR",MESSAGE:"MESSAGE_ERROR",STORE:"STORE_ERROR",CONFIGURATION:"CONFIGURATION_ERROR",VALIDATION:"VALIDATION_ERROR",AUTH:"AUTH_ERROR",UNKNOWN:"UNKNOWN_ERROR"};class t extends Error{code;timestamp;cause;context;hint;displayMessage;constructor(L,R=A.SynapseErrorCode.UNKNOWN,_={}){super(L),this.name="SynapseError",this.code=R,this.timestamp=new Date,this.cause=_.cause,this.context=_.context,this.hint=_.hint,this.displayMessage=_.displayMessage||_?.hint||L,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}A.SynapseError=t;class r extends t{status;error;headers;constructor(L,R,_,X){const nA=r.makeMessage(R,_,L);super(nA,A.SynapseErrorCode.API,{cause:_,context:{status:R,hasBody:!!_},hint:R&&R>=500?"Retry the request or contact support if the issue persists.":void 0,displayMessage:L||"Something went wrong"}),this.name="APIError",this.status=R,this.error=_,this.headers=X}static makeMessage(L,R,_){const X=R instanceof Error?R.message:_;return L&&X?`HTTP ${L}: ${X}`:L?`${L} status code (no body)`:X||"(no status code or body)"}static generate(L,R,_,X){if(!L)return new i({message:_});const nA=R?.error,z=nA&&typeof nA=="object"&&!Array.isArray(nA)?nA:void 0;switch(L){case 400:return new l(_||"Bad Request",L,z,X);case 401:return new c(_||"Unauthorized",L,z,X);case 403:return new u(_||"Permission Denied",L,z,X);case 404:return new f(_||"Not Found",L,z,X);case 405:return new h(_||"Method Not Allowed",L,z,X);case 429:return new m(_||"Rate Limit Exceeded",L,z,X);case 500:return new B(_||"Internal Server Error",L,z,X);default:return new r(_||"API Error",L,z,X)}}}A.APIError=r;class i extends r{constructor({message:L}={}){super(L||"Request was aborted.",void 0,void 0,void 0),this.name="APIUserAbortError"}}A.APIUserAbortError=i;class s extends r{constructor({message:L}={}){super(L||"Request timed out.",void 0,void 0,void 0),this.name="APIConnectionTimeoutError"}}A.APIConnectionTimeoutError=s;class l extends r{constructor(L,R,_,X){super(L,R,_,X),this.name="BadRequestError"}}A.BadRequestError=l;class c extends r{constructor(L,R,_,X){super(L,R,_,X),this.name="UnauthorizedError"}}A.UnauthorizedError=c;class u extends r{constructor(L,R,_,X){super(L,R,_,X),this.name="PermissionDeniedError"}}A.PermissionDeniedError=u;class f extends r{constructor(L,R,_,X){super(L,R,_,X),this.name="NotFoundError"}}A.NotFoundError=f;class h extends r{constructor(L,R,_,X){super(L,R,_,X),this.name="MethodNotAllowedError"}}A.MethodNotAllowedError=h;class m extends r{constructor(L,R,_,X){super(L,R,_,X),this.name="RateLimitError"}}A.RateLimitError=m;class B extends r{constructor(L,R,_,X){super(L,R,_,X),this.name="InternalServerError"}}A.InternalServerError=B;class w extends t{constructor(L,R={}){super(L,A.SynapseErrorCode.CONNECTION,R),this.name="ConnectionError"}}A.ConnectionError=w;class C extends t{constructor(L,R={}){super(L,A.SynapseErrorCode.RECORDING,R),this.name="RecordingError"}}A.RecordingError=C;class E extends t{constructor(L,R={}){super(L,A.SynapseErrorCode.AUTH,R),this.name="AuthenticationError"}}A.AuthenticationError=E;class v extends t{constructor(L,R={}){super(L,A.SynapseErrorCode.FILE,R),this.name="FileError"}}A.FileError=v;class F extends t{constructor(L,R={}){super(L,A.SynapseErrorCode.SESSION,R),this.name="SessionError"}}A.SessionError=F;class Q extends t{constructor(L,R={}){super(L,A.SynapseErrorCode.MESSAGE,R),this.name="MessageError"}}A.MessageError=Q;class I extends t{constructor(L,R={}){super(L,A.SynapseErrorCode.STORE,R),this.name="StoreError"}}A.StoreError=I;class O extends t{constructor(L,R={}){super(L,A.SynapseErrorCode.CONFIGURATION,R),this.name="ConfigurationError"}}A.ConfigurationError=O;class K extends t{constructor(L,R={}){super(L,A.SynapseErrorCode.VALIDATION,R),this.name="ValidationError"}}A.ValidationError=K;function j(T,L,R,_={}){if(T instanceof L)return T;const X={..._,context:{...T instanceof t?T.context:void 0,..._.context},hint:_.hint??(T instanceof t?T.hint:void 0),cause:_.cause??T};if(T instanceof t)return new L(T.message,X);const nA=T instanceof Error&&T.message?T.message:R;return new L(nA,X)}})(xu)),xu}var S0;function Q0(){if(S0)return Ha;S0=1,Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.WebSocketConnection=void 0;const A=bu(),t=Oa(),r=Lt();class i extends A.BaseConnection{conversationId;socket=null;config;authenticated=!1;constructor(l){super(),this.config={...l,reconnect:l.reconnect||!0,reconnectAttempts:l.reconnectAttempts||3,reconnectDelay:l.reconnectDelay||1e3},this.conversationId=l.auth.sessionId,this.connect()}connect(){try{if(this.socket&&this.socket.readyState===WebSocket.OPEN||this.authenticated)return;this.updateStatus(t.ConnectionStatus.CONNECTING);const l=this.buildConnectionUrl();this.socket=new WebSocket(l),this.socket.onopen=this.handleOpen.bind(this),this.socket.onmessage=this.handleSocketMessage.bind(this),this.socket.onerror=this.handleError.bind(this),this.socket.onclose=this.handleClose.bind(this)}catch(l){const c=(0,r.normalizeError)(l,r.ConnectionError,"Failed to establish WebSocket connection",{context:{stage:"connect"}});this.onErrorCallback?.(c),this.disconnect({code:1001,reason:t.DisconnectionReason.CONNECTION_ERROR,message:c.message,timestamp:new Date})}}buildConnectionUrl(){const l=new URL(this.config.serverUrl);return l.pathname=`/reloaded/ws/med-assist/session/${this.config.auth.sessionId}/`,l.toString()}handleOpen(){this.authenticated||this.socket?.readyState!==WebSocket.OPEN||this.onOpenCallback?.()}handleSocketMessage(l){try{const c=JSON.parse(l.data);this.handleMessage(c)}catch(c){const u=(0,r.normalizeError)(c,r.MessageError,"Failed to parse incoming WebSocket message",{context:{stage:"handleSocketMessage"}});this.onErrorCallback?.(u)}}handleError(l){}handleClose(l){const c=l.wasClean,u=l.code,f=l.reason;let h,m;this.authenticated=!1,!this.isConnected()&&(u===1e3?(h=t.DisconnectionReason.CLIENT_CLOSED,m="Connection closed normally"):u===1001||u===1006?(h=t.DisconnectionReason.NETWORK_ERROR,m=l.reason||"Network connection lost"):u===4001||u===1008?l.reason==="timeout"||l.reason==="Authentication timeout"?(h=t.DisconnectionReason.TIMEOUT,m="Connection timed out"):(h=t.DisconnectionReason.AUTHENTICATION_ERROR,m=l.reason||"Authentication failed"):c?(h=t.DisconnectionReason.SERVER_CLOSED,m=f||"Server closed connection"):(h=t.DisconnectionReason.CONNECTION_ERROR,m=f||"Connection closed unexpectedly"),this.disconnect({reason:h,message:m,code:u,timestamp:new Date}))}sendMessage(l){if(!this.socket||this.socket.readyState!==WebSocket.OPEN)throw new r.ConnectionError("Cannot send message: connection not open",{context:{stage:"sendMessage",readyState:this.socket?.readyState},hint:"Ensure the WebSocket is open before sending messages."});try{this.socket.send(JSON.stringify(l))}catch(c){const u=(0,r.normalizeError)(c,r.ConnectionError,"Failed to send WebSocket message",{context:{stage:"sendMessage"}});throw this.onErrorCallback?.(u),u}}close(){this.authenticated=!1,this.socket&&(this.updateStatus(t.ConnectionStatus.NOT_CONNECTED),this.socket.close(1e3,"Client closed connection"),this.socket=null)}isConnected(){return this.socket?.readyState===WebSocket.OPEN}handleConnected(){this.updateStatus(t.ConnectionStatus.CONNECTED),this.authenticated=!0}}return Ha.WebSocketConnection=i,Ha}var Ra={},U0;function F0(){if(U0)return Ra;U0=1,Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.SSEConnection=void 0;const A=bu(),t=Oa(),r=Lt();class i extends A.BaseConnection{conversationId;config;connected=!1;activeStreamController=null;constructor(l){super(),this.config=l,this.conversationId=l.auth.sessionId,this.connect()}connect(){this.updateStatus(t.ConnectionStatus.CONNECTING),this.connected=!0,setTimeout(()=>{this.onOpenCallback?.()},0)}onOpen(l){this.onOpenCallback=l,this.connected&&setTimeout(()=>l(),0)}buildChatUrl(){const l=new URL(this.config.serverUrl);return l.pathname=`${l.pathname.replace(/\/$/,"")}/med-assist/session/${this.config.auth.sessionId}/chat`,l.toString()}sendMessage(l){if(!this.connected){const u=new r.ConnectionError("SSE connection is not open",{context:{stage:"sendMessage"}});this.onErrorCallback?.(u);return}this.activeStreamController?.abort();const c=new AbortController;this.activeStreamController=c,this.streamChat(l,c)}async streamChat(l,c){const u=this.buildChatUrl();try{const f=await fetch(u,{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream","sess-token":this.config.auth.sessionToken,"x-agent-id":this.config.agentId},body:JSON.stringify(l),signal:c.signal});if(!f.ok||!f.body)throw new r.ConnectionError(`SSE chat request failed with status ${f.status}`,{context:{stage:"streamChat",status:f.status}});const h=f.body.getReader(),m=new TextDecoder;let B="";for(;;){const{done:w,value:C}=await h.read();if(w)break;B+=m.decode(C,{stream:!0}),B=this.extractJsonObjects(B)}B.trim().length>0&&this.extractJsonObjects(B)}catch(f){if(c.signal.aborted)return;const h=(0,r.normalizeError)(f,r.ConnectionError,"SSE chat stream failed",{context:{stage:"streamChat"}});this.onErrorCallback?.(h)}finally{this.activeStreamController===c&&(this.activeStreamController=null)}}extractJsonObjects(l){let c=0;for(;c<l.length;){const u=l.indexOf("{",c);if(u===-1)return"";const f=this.findObjectEnd(l,u);if(f===-1)return l.slice(u);const h=l.slice(u,f+1);try{const m=JSON.parse(h);this.handleMessage(m)}catch(m){const B=(0,r.normalizeError)(m,r.MessageError,"Failed to parse incoming SSE object",{context:{stage:"extractJsonObjects",objStr:h}});this.onErrorCallback?.(B)}c=f+1}return""}findObjectEnd(l,c){let u=0,f=!1,h=!1;for(let m=c;m<l.length;m++){const B=l[m];if(f){h?h=!1:B==="\\"?h=!0:B==='"'&&(f=!1);continue}if(B==='"')f=!0;else if(B==="{")u++;else if(B==="}"&&(u--,u===0))return m}return-1}close(){this.connected=!1,this.activeStreamController?.abort(),this.activeStreamController=null,this.updateStatus(t.ConnectionStatus.NOT_CONNECTED)}isConnected(){return this.connected}handleConnected(){this.updateStatus(t.ConnectionStatus.CONNECTED)}}return Ra.SSEConnection=i,Ra}var T0;function N0(){return T0||(T0=1,(function(A){Object.defineProperty(A,"__esModule",{value:!0}),A.ConnectionFactory=A.ConnectionType=void 0;const t=Q0(),r=F0(),i=Lt();A.ConnectionType={SOCKET:"socket",SSE:"sse"};class s{static async createConnection(c,u){switch(c){case A.ConnectionType.SOCKET:return new t.WebSocketConnection(u);case A.ConnectionType.SSE:return new r.SSEConnection(u);default:throw new i.ConnectionError(`Unsupported connection type: ${c}`,{context:{type:c}})}}}A.ConnectionFactory=s})(Eu)),Eu}var La={},I0;function N2(){if(I0)return La;I0=1,Object.defineProperty(La,"__esModule",{value:!0}),La.getConfig=void 0;const A={WEBSOCKET_URL:"wss://matrix-ws.eka.care/reloaded",BASE_API_URL:"https://matrix.eka.care/reloaded"},t={WEBSOCKET_URL:"wss://matrix-ws.dev.eka.care/reloaded",BASE_API_URL:"https://matrix.dev.eka.care/reloaded"},r={WEBSOCKET_URL:"wss://matrix-ws.dev.eka.care",BASE_API_URL:"https://matrix.dev.eka.care"},i=(s="production")=>s==="development"?t:s==="production"?A:s==="staging"?r:A;return La.getConfig=i,La}var Da={},ka={},H0;function _0(){if(H0)return ka;H0=1,Object.defineProperty(ka,"__esModule",{value:!0}),ka.HttpClient=void 0;const A=Lt();let t=class{baseUrl;headers;timeout;maxRetries;constructor(i){this.baseUrl=i.baseUrl.replace(/\/$/,""),this.timeout=i.timeout||3e4,this.maxRetries=i.maxRetries||3,this.headers={"Content-Type":"application/json",...i.headers},i.authorization&&(this.headers.Authorization=i.authorization)}async request(i,s,l){const c=l?.retries??this.maxRetries;let u;for(let f=0;f<=c;f++)try{const h=this.buildUrl(s,l?.params),m=await fetch(h,{method:i,headers:{...this.headers,...l?.headers},body:l?.body?JSON.stringify(l.body):void 0,signal:AbortSignal.timeout(this.timeout)});return m.ok||await this.handleError(m),m.json()}catch(h){if(u=h,f===c||!(h instanceof TypeError&&h.message==="Failed to fetch"||h instanceof DOMException&&h.name==="AbortError"||h instanceof SyntaxError))break;const B=Math.pow(2,f)*100;await new Promise(w=>setTimeout(w,B))}throw u?u instanceof TypeError&&u.message==="Failed to fetch"?new A.APIError("Network error: Unable to connect to the server. Please check your internet connection.",0,{type:"NETWORK_ERROR",originalError:u.message}):u instanceof DOMException&&u.name==="AbortError"?new A.APIConnectionTimeoutError({message:`Request timed out after ${this.timeout}ms`}):u instanceof SyntaxError?new A.APIError("Invalid response format from server",502,{type:"PARSE_ERROR",originalError:u.message}):u instanceof A.APIError?u:new A.APIError(`Request failed: ${u.message||"Unknown error"}`,500,{type:"UNKNOWN_ERROR",originalError:u}):new A.APIError("Unknown error occurred",500,{type:"UNKNOWN_ERROR"})}async get(i,s,l){return this.request("GET",i,{params:s,...l})}async post(i,s,l){return this.request("POST",i,{body:s,...l})}async put(i,s,l){return this.request("PUT",i,{body:s,...l})}async delete(i,s){return this.request("DELETE",i,{...s})}async patch(i,s,l){return this.request("PATCH",i,{body:s,...l})}buildUrl(i,s){let l=`${this.baseUrl}${i}`;if(s){const c=new URLSearchParams(s).toString();l+=`?${c}`}return l}async handleError(i){let s,l;try{l=await i.json();const c=l,u=c?.error;s=c?.message||c?.msg||u?.msg||u?.message||i.statusText}catch{s=i.statusText}throw A.APIError.generate(i.status,l,s,i.headers)}};return ka.HttpClient=t,ka}var ja={},Ka={},M0;function Nl(){if(M0)return Ka;M0=1,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.BaseResource=void 0;let A=class{client;constructor(r){this.client=r}async get(r,i,s){return this.client.get(r,i,s)}async post(r,i,s){return this.client.post(r,i,s)}async put(r,i,s){return this.client.put(r,i,s)}async delete(r,i){return this.client.delete(r,i)}async patch(r,i,s){return this.client.patch(r,i,s)}buildPath(r,i){let s=r;for(const[l,c]of Object.entries(i))s=s.replace(`:${l}`,encodeURIComponent(c));return s}};return Ka.BaseResource=A,Ka}var O0;function R0(){if(O0)return ja;O0=1,Object.defineProperty(ja,"__esModule",{value:!0}),ja.Session=void 0;const A=Nl();let t=class extends A.BaseResource{basePath="/med-assist/session";async create(i){return this.post(this.basePath,i)}async retrieve(i){return this.get(`${this.basePath}/${i}`)}async refresh(i,s){return this.get(`${this.basePath}/${i}/refresh`,void 0,{headers:{"x-sess-token":s}})}async feedback(i,s,l,c){return this.put(`${this.basePath}/${i}/messages/${s}/feedback`,{feedback:l,feedback_reason:c})}async callTool(i,s,l,c,u){return this.post(`${this.basePath}/${i}/messages/${l}/tools/${s}`,{tool_params:u},{headers:{"x-sess-token":c}})}};return ja.Session=t,ja}var Va={},L0;function I2(){if(L0)return Va;L0=1,Object.defineProperty(Va,"__esModule",{value:!0}),Va.Config=void 0;const A=Nl();let t=class extends A.BaseResource{basePath="/med-assist/agent-config";async retrieve(i){return this.get(`${this.basePath}/${i}`)}};return Va.Config=t,Va}var Ga={},D0;function H2(){if(D0)return Ga;D0=1,Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.VoiceResource=void 0;const A=Nl();let t=class Xg extends A.BaseResource{static ICE_SERVERS_PATH="/med-assist/voice/ice-servers";static OFFER_PATH="/med-assist/voice/offer";async getIceServers(i,s){return this.get(Xg.ICE_SERVERS_PATH,{session_id:i,token:s})}async sendOffer(i){return this.post(Xg.OFFER_PATH,i)}};return Ga.VoiceResource=t,Ga}var k0;function j0(){if(k0)return Da;k0=1,Object.defineProperty(Da,"__esModule",{value:!0}),Da.ResourceManager=void 0;const A=_0(),t=R0(),r=Lt(),i=I2(),s=H2();class l{resourceConfig;httpClient;session;config;voiceResource;constructor(u){this.resourceConfig=u,this.httpClient=new A.HttpClient({baseUrl:this.resourceConfig.serverUrl,headers:{"X-agent-id":this.resourceConfig.agentId,"ngrok-skip-browser-warning":"69420",...this.resourceConfig.authorization&&{Authorization:this.resourceConfig.authorization}}}),this.config=new i.Config(this.httpClient),this.session=new t.Session(this.httpClient),this.voiceResource=new s.VoiceResource(this.httpClient)}async createSession(u,f){try{const{profile:h,intent:m,user_location:B,referer:w,...C}=f||{},E={...u&&{user_id:u},...h&&{user_context:h},...(m||Object.keys(C).length>0)&&{session_context:{...m&&{intent:m},...B&&{user_location:B},...C}},...w&&{referer:w}},v=await this.session.create(E);if(!v?.session_id||!v?.session_token)throw new r.APIError("Failed to start session.",500,void 0,void 0);return v}catch(h){throw h instanceof r.APIError?h:new r.APIError("Failed to start session.",500,void 0,void 0)}}async getAgentConfig(){this.config||(this.config=new i.Config(this.httpClient));try{return await this.config.retrieve(this.resourceConfig.agentId)}catch{throw new r.APIError("Failed to get agent config.",500,void 0,void 0)}}async validateSession(u){try{const f=await this.session.retrieve(u);return f.msg&&f.msg==="Session Active"?{expired:!1,active:!0}:{expired:!0,active:!1}}catch(f){if(f instanceof r.APIError)switch(f.status){case 401:return{expired:!0,active:!1};default:throw f}throw f}}async refreshSession(u,f){return await this.session.refresh(u,f)}async sendFeedback(u,f,h,m){return await this.session.feedback(u,f,h,m)}async callTool(u,f,h,m,B){return await this.session.callTool(u,f,h,m,B)}async getVoiceIceServers(u,f){return await this.voiceResource.getIceServers(u,f)}async sendVoiceOffer(u){return await this.voiceResource.sendOffer(u)}}return Da.ResourceManager=l,Da}var za={},Su={},K0;function Qu(){return K0||(K0=1,(function(A){Object.defineProperty(A,"__esModule",{value:!0}),A.MULTI_SELECT_ADDITIONAL_OPTION=A.SOCKET_EVENTS=A.SOCKET_CONTENT_TYPES=void 0,A.IsValidSocketMesssage=t,A.SOCKET_CONTENT_TYPES={TEXT:"text",AUDIO:"audio",FILE:"file",TOOL_CALL:"tool",TIPS:"tips",AUDIO_TRANSCRIPT:"audio_transcript",TOOL_START:"tool_start",TOOL_END:"tool_end"},A.SOCKET_EVENTS={PING:"ping",PONG:"pong",CHAT:"chat",STREAM:"stream",AUTH:"auth",END_OF_STREAM:"eos",SYNC:"sync",ERROR:"err",CONNECTION_ESTABLISHED:"conn"},A.MULTI_SELECT_ADDITIONAL_OPTION={NOTA:"none_of_the_above",AOTA:"all_of_the_above"};function t(r){return[A.SOCKET_EVENTS.PING,A.SOCKET_EVENTS.PONG,A.SOCKET_EVENTS.ERROR,A.SOCKET_EVENTS.SYNC,A.SOCKET_EVENTS.CONNECTION_ESTABLISHED,A.SOCKET_EVENTS.CHAT,A.SOCKET_EVENTS.STREAM,A.SOCKET_EVENTS.END_OF_STREAM].includes(r.ev)}})(Su)),Su}var Uu={},V0;function _2(){return V0||(V0=1,(function(A){Object.defineProperty(A,"__esModule",{value:!0}),A.Filemanager=A.MAX_FILE_SIZE=void 0;const t=Lt();A.MAX_FILE_SIZE=3145728;class r{pendingFiles=[];pendingMessage="";pendingFormats=[];setFilesForUpload(s,l){this.pendingFiles.length>0&&this.clearPendingFilesState();const c=s.filter(u=>this.validateFile(u));if(c.length===0)throw new t.FileError("File not supported",{context:{stage:"setFilesForUpload"}});this.pendingFiles=c,l&&l.trim()&&(this.pendingMessage=l),this.pendingFormats=c.map(u=>u.type)}getPendingFileState(){return{files:this.pendingFiles,message:this.pendingMessage||"",formats:this.pendingFormats||[]}}async uploadFilesToPresignedUrl(s){let l=[];const c=s.filter(u=>u.url&&u.url.trim());try{if(c.length===0)throw new t.FileError("No valid presigned URLs provided",{context:{stage:"uploadFilesToPresignedUrl"}});if(!this.pendingFiles.length)throw new t.FileError("No files to upload",{context:{stage:"uploadFilesToPresignedUrl"}});for(let u=0;u<c.length;u++){const f=c[u].url,h=await fetch(f,{method:"PUT",body:this.pendingFiles[u],headers:{"Content-Type":this.pendingFiles[u].type,"x-ms-blob-type":"BlockBlob"}});if(!h.ok)throw new t.FileError(`Failed to upload ${this.pendingFiles[u].name} to URL ${u+1}: ${h.status} ${h.statusText}`,{context:{stage:"uploadFilesToPresignedUrl"}});l.push(c[u].id)}return l}catch(u){if(l.length>0)return l;throw(0,t.normalizeError)(u,t.FileError,"Failed to upload files to presigned URL",{context:{stage:"uploadFilesToPresignedUrl"}})}}blobToFile(s,l){return new File([s],l,{type:s.type})}validateFile(s){return["application/pdf","image/jpeg","image/png","image/jpg"].includes(s.type)&&s.size<A.MAX_FILE_SIZE}clearPendingFilesState(){this.pendingFiles=[],this.pendingMessage="",this.pendingFormats=[]}}A.Filemanager=r})(Uu)),Uu}var en={},G0;function Il(){if(G0)return en;G0=1,Object.defineProperty(en,"__esModule",{value:!0}),en.SYNAPSE_REALTIME_RESERVED_EVENTS=en.SYNAPSE_REALTIME_ERROR_CODES=en.SYNAPSE_REALTIME_EVENTS=en.SYNAPSE_MESSAGE_TYPES=void 0;const A=Qu();return en.SYNAPSE_MESSAGE_TYPES=A.SOCKET_CONTENT_TYPES,en.SYNAPSE_REALTIME_EVENTS={CONNECTED:"connected",DISCONNECTED:"disconnected",PROGRESS_MESSAGE:"progress_message",MESSAGE_CHUNK:"message_chunk",TIPS_MESSAGE:"tips_message",END_OF_STREAM:"end_of_stream",ERROR:"error",TOOL_CALL:"tool_call",AUDIO_TRANSCRIPT:"audio_transcript",TOOL_START:"tool_start",TOOL_END:"tool_end"},en.SYNAPSE_REALTIME_ERROR_CODES={SESSION_INACTIVE:"session_not_found",SESSION_EXPIRED:"session_expired",INVALID_EVENT:"invalid_event",INVALID_CONTENT_TYPE:"invalid_content",PARSING_ERROR:"parsing",FILE_UPLOAD_INPROGRESS:"file_upload_inprogress",TIMEOUT:"timeout",SERVER_ERROR:"server_error",SESSION_TOKEN_MISMATCH:"session_token_mismatch",PROMPT_FETCH_ERROR:"prompt_fetch_error",INVALID_FILE_REQUEST:"invalid_file_request"},en.SYNAPSE_REALTIME_RESERVED_EVENTS={SESSION_EXPIRED:"session_expired"},en}var Pa={},z0;function M2(){if(z0)return Pa;z0=1,Object.defineProperty(Pa,"__esModule",{value:!0}),Pa.AudioManager=void 0;const A=Lt();class t{mediaRecorder=null;mediaStream=null;recordingStartTime=0;autoPauseTimer=null;config;onAudioData=null;onAudioError=null;suppressCallbacks=!1;constructor(i={}){this.config={mimeType:"audio/webm;codecs=opus",audioBitsPerSecond:128e3,maxRecordingDuration:9e5,autoPauseEnabled:!0,...i}}async checkCurrentPermissionState(){if(!navigator.permissions||!navigator.permissions.query)return"prompt";try{const i=await navigator.permissions.query({name:"microphone"});if(i.state==="denied")throw new A.RecordingError("Microphone permission denied",{context:{permissionState:i.state},hint:"Ensure the browser has microphone access enabled for this site."});return i.state}catch(i){if(i instanceof Error&&i.name==="NotSupportedError")return"prompt"}return"prompt"}async start(i,s){try{if(!navigator.mediaDevices)throw new A.RecordingError("Media devices API is not available. This usually means the page is not served over HTTPS or there are browser restrictions.",{context:{feature:"mediaDevices"},hint:"Serve the app over HTTPS and verify browser/device microphone support.",displayMessage:"Microphone access is unavailable."});if(!window.MediaRecorder)throw new A.RecordingError("MediaRecorder is not supported in this browser",{context:{feature:"MediaRecorder"},hint:"Use a browser that supports the MediaRecorder API.",displayMessage:"Microphone access is unavailable."});const l=["audio/mp3","audio/ogg;codecs=opus","audio/mp4","audio/ogg","audio/wav"].filter(c=>MediaRecorder.isTypeSupported(c));if(l.length===0)throw new A.RecordingError("No supported audio formats found in this browser",{context:{requestedTypes:l},hint:"Verify codec support or adjust the requested MIME types.",displayMessage:"Microphone access is unavailable."});if(this.config.mimeType=l[0],await this.checkCurrentPermissionState(),this.onAudioData=i,this.onAudioError=s??null,this.suppressCallbacks=!1,this.mediaStream=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!1,noiseSuppression:!1,autoGainControl:!1,sampleRate:44100,channelCount:1}}),this.mediaRecorder=new MediaRecorder(this.mediaStream,{mimeType:this.config.mimeType,audioBitsPerSecond:this.config.audioBitsPerSecond}),this.mediaRecorder.state!=="inactive")throw new A.RecordingError("MediaRecorder is in an invalid state for start()",{context:{recorderState:this.mediaRecorder.state},displayMessage:"Failed to start recording"});this.setupMediaRecorderEvents(),this.mediaRecorder.start(),this.recordingStartTime=Date.now(),this.config.autoPauseEnabled&&this.setupAutoPauseTimer()}catch(l){throw l instanceof Error&&l.name==="NotAllowedError"?new A.RecordingError("Microphone permission denied",{context:{permissionState:"denied"},hint:"Ensure the browser or device has microphone access enabled for this site/app."}):this.toRecordingError(l,"Failed to start audio recording",{stage:"start"})}}async processAudioChunk(i){try{const s=await this.blobToBase64(i),l=Date.now();if(!this.onAudioData)return;const c={audio:s,format:this.config.mimeType,duration:this.recordingStartTime>0?l-this.recordingStartTime:0,timestamp:this.recordingStartTime>0?this.recordingStartTime:l};this.onAudioData(c)}catch(s){this.handleError(s,{stage:"process_audio_chunk"})}}toRecordingError(i,s,l){if(i instanceof A.RecordingError)return i;if(i instanceof A.SynapseError)return new A.RecordingError(i.message,{cause:i,context:{...i.context,...l},hint:i.hint});const c=i instanceof Error&&i.message?i.message:s;return new A.RecordingError(c,{cause:i,context:l})}handleError(i,s){const l=this.toRecordingError(i,"Unexpected recording error",s);if(this.onAudioError)try{this.onAudioError(l)}catch{}}setupAutoPauseTimer(){this.autoPauseTimer&&clearTimeout(this.autoPauseTimer),this.autoPauseTimer=setTimeout(()=>{this.stop()},this.config.maxRecordingDuration)}setupMediaRecorderEvents(){this.mediaRecorder&&(this.mediaRecorder.ondataavailable=i=>{this.suppressCallbacks||i.data.size<=0||this.processAudioChunk(i.data).catch(s=>this.handleError(s,{stage:"media_recorder_ondataavailable",hasData:i.data.size>0}))},this.mediaRecorder.onstop=async()=>{this.recordingStartTime=0},this.mediaRecorder.onerror=i=>{this.handleError(i.error instanceof Error?i.error:new Error("MediaRecorder encountered an unknown error"),{stage:"media_recorder_onerror"})},this.mediaRecorder.onstart=()=>{})}blobToBase64(i){return new Promise((s,l)=>{const c=new FileReader;c.onload=()=>{if(typeof c.result=="string"){const u=c.result.split(",")[1];s(u)}else l(new A.RecordingError("Failed to convert blob to base64",{context:{stage:"blob_to_base64"}}))},c.onerror=()=>l(new A.RecordingError("FileReader error while converting audio chunk to base64",{cause:c.error??void 0,context:{stage:"blob_to_base64"}})),c.readAsDataURL(i)})}stop(){if(this.mediaRecorder)try{this.autoPauseTimer&&(clearTimeout(this.autoPauseTimer),this.autoPauseTimer=null),this.mediaRecorder.state==="recording"&&this.mediaRecorder.stop(),this.mediaStream&&(this.mediaStream.getTracks().forEach(i=>i.stop()),this.mediaStream=null)}catch(i){throw this.toRecordingError(i,"Failed to stop audio recording",{stage:"stop"})}}cancel(){if(this.mediaRecorder)try{this.suppressCallbacks=!0,this.autoPauseTimer&&(clearTimeout(this.autoPauseTimer),this.autoPauseTimer=null),this.mediaRecorder.ondataavailable=null,this.mediaRecorder.state==="recording"&&this.mediaRecorder.stop(),this.mediaStream&&(this.mediaStream.getTracks().forEach(i=>i.stop()),this.mediaStream=null)}catch(i){throw this.toRecordingError(i,"Failed to cancel audio recording",{stage:"cancel"})}}destroy(){try{this.cancel(),this.mediaRecorder&&(this.mediaRecorder=null),this.mediaStream&&(this.mediaStream.getTracks().forEach(i=>i.stop()),this.mediaStream=null)}catch(i){throw this.toRecordingError(i,"Failed to destroy audio resources",{stage:"destroy"})}}}return Pa.AudioManager=t,Pa}var P0;function Y0(){if(P0)return za;P0=1,Object.defineProperty(za,"__esModule",{value:!0}),za.MessageManager=void 0;const A=Qu(),t=_2(),r=Il(),i=M2(),s=Lt();let l=class{connection=null;callbacks=null;fileManager=null;audioManager=null;constructor(u,f){this.connection=u||null,this.callbacks=f||null}handleFileUploadProcess({files:u,message:f,urls:h,tool_declined:m,tool_result:B}){this.fileManager||(this.fileManager=new t.Filemanager);let w;if(u&&u.length>0)this.fileManager.setFilesForUpload(u,f),w={ev:A.SOCKET_EVENTS.CHAT,ct:A.SOCKET_CONTENT_TYPES.FILE,_id:Date.now().toString(),ts:Date.now(),data:{extensions:this.fileManager.getPendingFileState().formats,...m&&{tool_declined:m},...B&&{tool_result:B}}};else if(h&&h.length>0){const C=this.fileManager.getPendingFileState().message;w={ev:A.SOCKET_EVENTS.CHAT,ct:A.SOCKET_CONTENT_TYPES.FILE,_id:Date.now().toString(),ts:Date.now(),data:{urls:h,...C&&{text:C},...m&&{tool_declined:m},...B&&{tool_result:B}}},this.fileManager?.clearPendingFilesState()}return w}sendSocketMessage({message:u,files:f,audio:h,urls:m,tool_declined:B,tool_id:w,tool_result:C,initial_prompts:E}){const v=this.assertConnection("sendSocketChatMessage");let F;if(f&&f.length>0||m&&m.length>0){if(f&&f.length>3){const Q=new s.MessageError("Maximum 3 files are allowed to be sent at a time",{context:{stage:"sendSocketChatMessage"}});throw this.emitError(Q),Q}F=this.handleFileUploadProcess({files:f,message:u,urls:m,tool_declined:B,tool_result:C})}else u?F={ev:A.SOCKET_EVENTS.CHAT,ct:A.SOCKET_CONTENT_TYPES.TEXT,_id:Date.now().toString(),ts:Date.now(),data:{text:u,...B&&{tool_declined:B},...w&&{tool_id:w},...E&&{initial_prompts:E},...C&&{tool_result:C}}}:h&&h?.audio&&h?.format?F={ev:A.SOCKET_EVENTS.CHAT,ct:A.SOCKET_CONTENT_TYPES.AUDIO,_id:Date.now().toString(),ts:Date.now(),data:{audio:h?.audio,format:h?.format,...B&&{tool_declined:B},...C&&{tool_result:C}}}:C&&(F={ev:A.SOCKET_EVENTS.CHAT,ct:A.SOCKET_CONTENT_TYPES.TEXT,_id:Date.now().toString(),ts:Date.now(),data:{text:"",tool_result:C}});if(!F){const Q=new s.MessageError("No message to send",{context:{stage:"sendSocketChatMessage"}});throw this.emitError(Q),Q}v.sendMessage(F)}handleIncomingSocketChatMessage(u){const f=this.assertConnection("handleIncomingSocketChatMessage");switch(u.ct){case A.SOCKET_CONTENT_TYPES.FILE:{u?.data?.urls&&u.data.urls?.length>0&&this.fileManager?.uploadFilesToPresignedUrl(u.data.urls).then(h=>{this.sendSocketMessage({urls:h})}).catch(h=>{const m=this.toFileError(h,"Failed to upload files to presigned URL",{stage:"handleIncomingSocketChatMessage",urls:u.data?.urls?.length});this.emitError(m)});break}case A.SOCKET_CONTENT_TYPES.TEXT:if(u.data.text&&u.data.text.trim()===""&&u._id){const h={data:{text:u.data.text},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.MESSAGE_CHUNK,h)}break;case A.SOCKET_CONTENT_TYPES.TOOL_CALL:if(u?.data?.tool_id&&u._id){const h={data:{...u.data},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.TOOL_CALL,h)}break;case A.SOCKET_CONTENT_TYPES.AUDIO_TRANSCRIPT:if(u?.data?.text){const h={data:{text:u.data.text},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.AUDIO_TRANSCRIPT,h)}break}}handleIncomingSocketStreamMessage(u){const f=this.assertConnection("handleIncomingSocketStreamMessage");switch(u.ct){case A.SOCKET_CONTENT_TYPES.TEXT:if(u?.data?.progress_msg){const w={data:{text:u.data.progress_msg},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.PROGRESS_MESSAGE,w);return}if(u?.data?.text){const w={data:{text:u.data.text},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.MESSAGE_CHUNK,w)}break;case A.SOCKET_CONTENT_TYPES.TIPS:if(u?.data?.tips){const w={data:{tips:u.data.tips},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.TIPS_MESSAGE,w);return}break;case A.SOCKET_CONTENT_TYPES.TOOL_CALL:if(u?.data?.tool_id&&u._id){const w={data:{...u.data},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.TOOL_CALL,w);return}break;case A.SOCKET_CONTENT_TYPES.TOOL_START:const h={data:u?.data,messageId:u._id||Date.now().toString()};f.emit(r.SYNAPSE_REALTIME_EVENTS.TOOL_START,h);break;case A.SOCKET_CONTENT_TYPES.TOOL_END:const m={data:u?.data,messageId:u._id||Date.now().toString()};f.emit(r.SYNAPSE_REALTIME_EVENTS.TOOL_END,m);break;default:const B=new s.MessageError(`Unsupported content type ${u?.ct}`,{context:{stage:"handleIncomingSocketStreamMessage",contentType:u.ct}});throw this.emitError(B),B}}handleDisconnect(u){this.connection?.emit?.(r.SYNAPSE_REALTIME_EVENTS.DISCONNECTED,u)}handleIncomingSocketEndOfStreamMessage(u){this.assertConnection("handleIncomingSocketEndOfStreamMessage").emit(r.SYNAPSE_REALTIME_EVENTS.END_OF_STREAM)}handleIncomingSocketErrorMessage(u){const f=this.assertConnection("handleIncomingSocketErrorMessage");switch(u?.data?.code){case r.SYNAPSE_REALTIME_ERROR_CODES.SESSION_EXPIRED:f.emit(r.SYNAPSE_REALTIME_RESERVED_EVENTS.SESSION_EXPIRED);break;default:const h=new s.MessageError(u?.data?.msg||"Socket error received",{context:{stage:"handleIncomingSocketErrorMessage",errorCode:u?.data?.code},hint:u?.data?.msg,cause:u,displayMessage:u?.data?.msg});f.emit(r.SYNAPSE_REALTIME_EVENTS.ERROR,u)}}sendSocketAuthMessage(u){const f=this.assertConnection("sendSocketAuthMessage"),h={ev:A.SOCKET_EVENTS.AUTH,_id:Date.now().toString(),ts:Date.now(),data:{token:u}};f.sendMessage(h)}sendSocketPingMessage(){const u=this.assertConnection("sendSocketPingMessage"),f={ev:A.SOCKET_EVENTS.PING,_id:Date.now().toString(),ts:Date.now()};u.sendMessage(f)}async startRecording({onChunks:u,onError:f}){if(!u){const h=new s.RecordingError("onChunks is required",{context:{stage:"startRecording"},hint:"onChunks is required"});throw this.emitError(h),h}this.assertConnection("startRecording"),this.audioManager||(this.audioManager=new i.AudioManager);try{await this.audioManager.start(u,h=>{const m=this.toRecordingError(h,"Failed to start audio recording",{stage:"startRecording"});f?.(m),this.emitError(m)})}catch(h){const m=this.toRecordingError(h,"Failed to start audio recording",{stage:"startRecording"});throw f?.(m),this.emitError(m),m}}endRecordingWithSocket(){if(!this.audioManager){const u=new s.RecordingError("Audio manager not set. Call startRecording() first.",{context:{stage:"stopRecording"}});throw this.emitError(u),u}try{this.audioManager.stop()}catch(u){const f=this.toRecordingError(u,"Failed to stop audio recording",{stage:"stopRecording"});throw this.emitError(f),f}}sendSocketPongMessage(){const u=this.assertConnection("sendSocketPongMessage"),f={ev:A.SOCKET_EVENTS.PONG,_id:Date.now().toString(),ts:Date.now()};u.sendMessage(f)}handleConnectionEstablished(){this.connection?.handleConnected(),this.connection?.emit(r.SYNAPSE_REALTIME_EVENTS.CONNECTED)}cleanupMessageServerState(){this.fileManager&&(this.fileManager.clearPendingFilesState(),this.fileManager=null),this.audioManager&&(this.audioManager.destroy(),this.audioManager=null)}emitError(u){this.callbacks?.onError?.(u)}toFileError(u,f,h,m){return(0,s.normalizeError)(u,s.FileError,f,{context:h,hint:m})}toRecordingError(u,f,h,m){return(0,s.normalizeError)(u,s.RecordingError,f,{context:h,hint:m})}assertConnection(u){if(!this.connection){const f=new s.ConnectionError("Connection not set. Please ensure the connection is established before calling this method.",{context:{stage:u}});throw this.emitError(f),f}return this.connection}};return za.MessageManager=l,za}var Ya={},X0;function q0(){if(X0)return Ya;X0=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.ErrorUtils=void 0;const A=Lt();class t{static isAPIError(i){return i instanceof A.APIError}static isNetworkError(i){return i instanceof A.APIError&&(i.status===0||i.status===void 0)}static isTimeoutError(i){return i instanceof A.APIConnectionTimeoutError}static isAuthError(i){return i instanceof A.UnauthorizedError||i instanceof A.PermissionDeniedError}static isClientError(i){return i instanceof A.APIError&&i.status!==void 0&&i.status>=400&&i.status<500}static isServerError(i){return i instanceof A.APIError&&i.status!==void 0&&i.status>=500}static getUserFriendlyMessage(i){return t.isNetworkError(i)?"Unable to connect to the server. Please check your internet connection.":t.isTimeoutError(i)?"Request timed out. Please try again.":t.isAuthError(i)?"Authentication failed. Please log in again.":t.isServerError(i)?"Server error occurred. Please try again later.":t.isAPIError(i)||i instanceof Error?i.message:"An unexpected error occurred."}static getErrorDetails(i){return t.isAPIError(i)?{type:i.name,message:i.message,code:i.code,status:i.status,timestamp:i.timestamp,stack:i.stack,context:i.context,hint:i.hint}:i instanceof A.SynapseError?{type:i.name,message:i.message,code:i.code,timestamp:i.timestamp,stack:i.stack,context:i.context,hint:i.hint}:i instanceof Error?{type:i.name,message:i.message,stack:i.stack}:{type:"Unknown",message:String(i)}}}return Ya.ErrorUtils=t,Ya}var Xa={},qa={},J0;function O2(){if(J0)return qa;J0=1,Object.defineProperty(qa,"__esModule",{value:!0}),qa.VoiceAudioAnalyser=void 0;const A=256;let t=class{audioCtx=null;animFrame=null;start(i,s,l){const c=new AudioContext;this.audioCtx=c;const u=c.createAnalyser();u.fftSize=A,c.createMediaStreamSource(i).connect(u);const f=new Uint8Array(u.frequencyBinCount),h=()=>{if(!this.audioCtx)return;u.getByteFrequencyData(f);const m=f.reduce((B,w)=>B+w,0)/f.length;l(m>s),this.animFrame=requestAnimationFrame(h)};h()}stop(){this.animFrame!==null&&(cancelAnimationFrame(this.animFrame),this.animFrame=null),this.audioCtx&&(this.audioCtx.close().catch(()=>{}),this.audioCtx=null)}};return qa.VoiceAudioAnalyser=t,qa}var Vr={},Z0;function W0(){return Z0||(Z0=1,Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.VOICE_AGENT_EVENTS=Vr.VOICE_AGENT_STATE=void 0,Vr.VOICE_AGENT_STATE={IDLE:"idle",CONNECTING:"connecting",CONNECTED:"connected",LISTENING:"listening",THINKING:"thinking",SPEAKING:"speaking",MUTED:"muted",DISCONNECTING:"disconnecting",ERROR:"error"},Vr.VOICE_AGENT_EVENTS={STATE_CHANGED:"voice:state_changed",ERROR:"voice:error"}),Vr}var $0;function R2(){if($0)return Xa;$0=1,Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.VoiceAgent=void 0;const A=vu(),t=O2(),r=Lt(),i=W0(),s=3e3,l=8,c=3600*1e3,u=600;function f(m,B){return new Promise(w=>{if(m.iceGatheringState==="complete"){w();return}const C=setTimeout(w,B);m.onicegatheringstatechange=()=>{m.iceGatheringState==="complete"&&(clearTimeout(C),w())}})}let h=class{config;resourceManager;getCredentials;emitter=new A.EventEmitter;remoteAnalyser=new t.VoiceAudioAnalyser;localAnalyser=new t.VoiceAudioAnalyser;pc=null;pcId=null;dataChannel=null;localStream=null;remoteAudio=null;_state=i.VOICE_AGENT_STATE.IDLE;_isMuted=!1;manuallyDisconnected=!1;_hasConnectionFailureNotified=!1;_userSpeaking=!1;_silenceTimer=null;_cachedIceServers=null;_iceServersCachedAt=0;constructor(B,w,C){this.config=B,this.resourceManager=w,this.getCredentials=C}get state(){return this._state}get isMuted(){return this._isMuted}on(B,w){this.emitter.on(B,w)}off(B,w){this.emitter.off(B,w)}async connect(){const B=await this.getCredentials();this.setState(i.VOICE_AGENT_STATE.CONNECTING),this._hasConnectionFailureNotified=!1;try{if(!navigator.mediaDevices?.getUserMedia)throw new Error("Microphone access is not available. Please ensure you are using a secure (HTTPS) connection.");const w=await navigator.mediaDevices.getUserMedia({audio:{channelCount:1,echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0,sampleRate:16e3},video:!1});this.localStream=w;const C=await this.fetchIceServers(B),E=new RTCPeerConnection({iceServers:C,iceTransportPolicy:"all"});this.pc=E,this.dataChannel=E.createDataChannel("pipecat-events",{ordered:!0}),this.dataChannel.onopen=()=>{},this.dataChannel.onclose=()=>this.handleConnectionFailure(new Error("Data channel closed"),"Voice connection failed"),this.dataChannel.onerror=()=>this.handleConnectionFailure(new Error("Data channel error"),"Voice connection failed"),w.getAudioTracks().forEach(O=>E.addTrack(O,w)),E.ontrack=O=>this.handleRemoteTrack(O),E.onconnectionstatechange=()=>{E.connectionState==="connected"?(this.setState(i.VOICE_AGENT_STATE.LISTENING),this.startLocalAudioAnalysis(w)):(E.connectionState==="failed"||E.connectionState==="closed")&&(this.releaseResources(),this.setState(i.VOICE_AGENT_STATE.IDLE))},E.oniceconnectionstatechange=()=>{(E.iceConnectionState==="connected"||E.iceConnectionState==="completed")&&this._state===i.VOICE_AGENT_STATE.CONNECTING?(this.setState(i.VOICE_AGENT_STATE.LISTENING),this.startLocalAudioAnalysis(w)):E.iceConnectionState==="failed"&&(this.releaseResources(),this.setState(i.VOICE_AGENT_STATE.IDLE))};const v=await E.createOffer();await E.setLocalDescription(v);const F=this.config.iceGatheringTimeoutMs??s;await f(E,F);const Q=O=>({sdp:E.localDescription.sdp,type:E.localDescription.type,pc_id:this.pcId,request_data:{session_id:O.sessionId,token:O.sessionToken}});let I;try{I=await this.resourceManager.sendVoiceOffer(Q(B))}catch(O){if(O instanceof r.APIError&&O.status===401&&this.config.handleRefresh){await this.config.handleRefresh();const K=await this.getCredentials();I=await this.resourceManager.sendVoiceOffer(Q(K))}else throw O}if(!I)throw new Error("No answer received from voice offer");if(this.pcId=I.pc_id,E.signalingState==="closed")return;await E.setRemoteDescription(new RTCSessionDescription({sdp:I.sdp,type:I.type}))}catch(w){this.handleConnectionFailure(w)}}disconnect(){this.manuallyDisconnected=!0,this.setState(i.VOICE_AGENT_STATE.DISCONNECTING),this.releaseResources(),this.setState(i.VOICE_AGENT_STATE.IDLE)}toggleMute(){if(!this.localStream)return;const B=this.localStream.getAudioTracks()[0];if(!B)return;const w=B.enabled;this.localStream.getAudioTracks().forEach(C=>{C.enabled=!w}),this._isMuted=w,this.clearSilenceTimer(),this._userSpeaking=!1,this.setState(w?i.VOICE_AGENT_STATE.MUTED:i.VOICE_AGENT_STATE.LISTENING)}reset(){this.setState(i.VOICE_AGENT_STATE.IDLE)}destroy(){this.releaseResources(),this.emitter.removeAllListeners(),this._state=i.VOICE_AGENT_STATE.IDLE}async fetchIceServers(B){if(this.config.iceServers)return this.config.iceServers;const w=Date.now();if(this._cachedIceServers&&w-this._iceServersCachedAt<c)return this._cachedIceServers;let C;try{C=await this.resourceManager.getVoiceIceServers(B.sessionId,B.sessionToken)}catch(E){if(E instanceof r.APIError&&E.status===401&&this.config.handleRefresh){await this.config.handleRefresh();const v=await this.getCredentials();C=await this.resourceManager.getVoiceIceServers(v.sessionId,v.sessionToken)}else throw E}if(!Array.isArray(C?.ice_servers)||C.ice_servers.length===0)throw new Error("ICE servers response is empty");return this._cachedIceServers=C.ice_servers,this._iceServersCachedAt=Date.now(),this._cachedIceServers}setState(B){this._state=B,this.emitter.emit(i.VOICE_AGENT_EVENTS.STATE_CHANGED,B)}clearSilenceTimer(){this._silenceTimer!==null&&(clearTimeout(this._silenceTimer),this._silenceTimer=null)}handleConnectionFailure(B,w="Voice connection failed"){if(this._hasConnectionFailureNotified||this._state===i.VOICE_AGENT_STATE.DISCONNECTING||this.manuallyDisconnected)return;this._hasConnectionFailureNotified=!0,this.releaseResources(),this.setState(i.VOICE_AGENT_STATE.ERROR);const C={message:w,cause:B};this.emitter.emit(i.VOICE_AGENT_EVENTS.ERROR,C)}releaseResources(){this.remoteAnalyser.stop(),this.localAnalyser.stop(),this.clearSilenceTimer(),this._userSpeaking=!1,this.localStream&&(this.localStream.getTracks().forEach(B=>B.stop()),this.localStream=null),this.dataChannel&&(this.dataChannel.close(),this.dataChannel=null),this.pc&&(this.pc.onconnectionstatechange=null,this.pc.oniceconnectionstatechange=null,this.pc.ontrack=null,this.pc.onicecandidate=null,this.pc.ondatachannel=null,this.pc.close(),this.pc=null),this.pcId=null,this._isMuted=!1,this.remoteAudio&&(this.remoteAudio.srcObject=null)}startLocalAudioAnalysis(B){const w=this.config.speakingThreshold??l;this.localAnalyser.start(B,w,C=>{this._state!==i.VOICE_AGENT_STATE.LISTENING&&this._state!==i.VOICE_AGENT_STATE.THINKING||(C?(this._userSpeaking=!0,this.clearSilenceTimer(),this._state===i.VOICE_AGENT_STATE.THINKING&&this.setState(i.VOICE_AGENT_STATE.LISTENING)):this._userSpeaking&&this._silenceTimer===null&&(this._silenceTimer=setTimeout(()=>{this._silenceTimer=null,this._userSpeaking&&this._state===i.VOICE_AGENT_STATE.LISTENING&&(this._userSpeaking=!1,this.setState(i.VOICE_AGENT_STATE.THINKING))},u)))})}handleRemoteTrack(B){this.remoteAudio||(this.remoteAudio=new Audio,this.remoteAudio.autoplay=!0);const w=B.streams[0];this.remoteAudio.srcObject=w;const C=this.config.speakingThreshold??l;this.remoteAnalyser.start(w,C,E=>{E?(this.clearSilenceTimer(),this._userSpeaking=!1,this._state!==i.VOICE_AGENT_STATE.SPEAKING&&this.setState(i.VOICE_AGENT_STATE.SPEAKING)):this._state===i.VOICE_AGENT_STATE.SPEAKING&&this.setState(i.VOICE_AGENT_STATE.LISTENING)})}};return Xa.VoiceAgent=h,Xa}var Ap;function L2(){if(Ap)return Ia;Ap=1,Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.SynapseSDK=void 0;const A=N0(),t=Oa(),r=N2(),i=j0(),s=Y0(),l=Il(),c=vu(),u=q0(),f=Lt(),h=Qu(),m=R2();class B{connection=null;messageManager;resourceManager;sessionConfig=null;config;connectionType;isRefreshingSession=!1;connectionAttempts=0;sdkEventEmitter=new c.EventEmitter;_voice=null;constructor(C){this.config={...C,environment:C.environment||"production"},this.connectionType=C.connectionType||A.ConnectionType.SOCKET;const E=(0,r.getConfig)(this.config?.environment).BASE_API_URL;this.resourceManager=new i.ResourceManager({agentId:this.config.agentId,serverUrl:this.config.serverUrl||E,...this.config.auth&&{authorization:this.config.auth}})}async startSession(C){try{const E=await this.manageSession(C);return await this.initializeConnection(E),this.setupEventHandlers(),E}catch(E){const v=u.ErrorUtils.getUserFriendlyMessage(E),F=u.ErrorUtils.getErrorDetails(E);if(E instanceof f.APIError&&(E.status===404||E.status===403))throw E;const Q=this.toSessionError(E,v||"Failed to start session",{stage:"startSession",details:F},"Check network connectivity or recheck credentials before retrying.");throw this.emitError(Q),Q}}async sendMessage({message:C,files:E,audio:v,tool_declined:F,tool_id:Q,initial_prompts:I,tool_result:O}){if(!this.connection){const K=new f.ConnectionError("Connection not established. Session may not be initialized.",{context:{stage:"sendChatMessage"},hint:"Call startSession() and wait for connection before sending messages."});throw this.emitError(K),K}switch(this.connectionType){case A.ConnectionType.SOCKET:case A.ConnectionType.SSE:this.messageManager.sendSocketMessage({message:C,files:E,audio:v,...F&&{tool_declined:F},...Q&&{tool_id:Q},...I?.length&&{initial_prompts:I},...O&&Object.keys(O)?.length&&{tool_result:O}});break;default:const K=new f.ConnectionError("Unsupported connection type",{context:{stage:"sendChatMessage",connectionType:this.connectionType}});throw this.emitError(K),K}}async sendFeedback(C,E,v){if(!this.connection){const F=new f.ConnectionError("Connection not established. Session may not be initialized.",{context:{stage:"sendFeedback"},hint:"Call startSession() before attempting to send feedback."});throw this.emitError(F),F}if(!this.sessionConfig?.session_id){const F=new f.SessionError("Session ID not found",{context:{stage:"sendFeedback"},hint:"Call startSession() before attempting to send feedback."});throw this.emitError(F),F}switch(this.connectionType){case A.ConnectionType.SOCKET:case A.ConnectionType.SSE:await this.resourceManager.sendFeedback(this.sessionConfig.session_id,C,E,v);break}}on(C,E){this.sdkEventEmitter.on(C,E)}off(C,E){this.sdkEventEmitter.off(C,E)}getSessionConfig(){if(!this.sessionConfig?.session_id||!this.sessionConfig?.session_token)throw new f.SessionError("Session ID or token not found",{context:{stage:"getSessionConfig"},hint:"Ensure the session API returns both identifiers."});return this.sessionConfig}async callTool(C,E,v){if(!this.connection){const F=new f.ConnectionError("Connection not established. Session may not be initialized.",{context:{stage:"callTool"},hint:"Call startSession() before attempting to call tool."});throw this.emitError(F),F}if(!this.sessionConfig?.session_id||!this.sessionConfig?.session_token){const F=new f.SessionError("Session ID not found",{context:{stage:"callTool"},hint:"Call startSession() before attempting to call tool."});throw this.emitError(F),F}switch(this.connectionType){case A.ConnectionType.SOCKET:case A.ConnectionType.SSE:try{const Q=await this.resourceManager.callTool(this.sessionConfig.session_id,C,E,this.sessionConfig.session_token,v);if(Q.error)throw new f.APIError(Q.error.msg,500,Q.error);let I={data:{...Q.data},messageId:Q._id,timestamp:Q.ts};this.connection.emit(l.SYNAPSE_REALTIME_EVENTS.TOOL_CALL,I)}catch(Q){if(Q instanceof f.APIError&&Q?.status===401)return await this.handleSessionExpiry(),await this.callTool(C,E,v);throw Q}break;default:const F=new f.ConnectionError("Unsupported connection type",{context:{stage:"callTool",connectionType:this.connectionType}});throw this.emitError(F),F}}async startRecording({onChunks:C,onError:E}){if(!this.connection){const v=new f.ConnectionError("Connection not established. Session may not be initialized.",{context:{stage:"sendAudio"},hint:"Call startSession() before attempting to send audio."});throw this.emitError(v),v}switch(this.connectionType){case A.ConnectionType.SOCKET:try{await this.messageManager.startRecording({onChunks:C,onError:E})}catch(F){throw F}break;default:const v=new f.ConnectionError("Unsupported connection type",{context:{stage:"sendAudio",connectionType:this.connectionType}});throw this.emitError(v),v}}endRecording(){if(!this.connection){const C=new f.ConnectionError("Connection not established. Session may not be initialized.",{context:{stage:"endRecording"},hint:"Call startRecording() before attempting to stop recording."});throw this.emitError(C),C}switch(this.connectionType){case A.ConnectionType.SOCKET:this.messageManager.endRecordingWithSocket();break;default:const C=new f.ConnectionError("Unsupported connection type",{context:{stage:"endRecording",connectionType:this.connectionType}});throw this.emitError(C),C}}async getAgentConfig(){return this.resourceManager.getAgentConfig()}isConnected(){return this.connection?.isConnected()??!1}get voice(){return this._voice||(this._voice=new m.VoiceAgent(this.buildVoiceConfig(),this.resourceManager,async()=>{const C=await this.resourceManager.createSession();return{sessionId:C.session_id,sessionToken:C.session_token}})),this._voice}endSession(){this._voice?.destroy(),this._voice=null,this.closeConnection(),this.cleanup()}buildVoiceConfig(){return{offerUrl:`${this.config.serverUrl||(0,r.getConfig)(this.config.environment).BASE_API_URL}/med-assist/voice/offer`,handleRefresh:async()=>{await this.handleSessionExpiry()}}}toClientError(C){return C instanceof f.APIError?{message:C.error?.msg||C.message,error:C.error,code:C.code,status:C.status,context:C.context}:C instanceof f.SynapseError?{message:C.displayMessage||C.message,code:C.code,context:C.context}:C instanceof Error?{message:C.message}:{message:"An unexpected error occurred"}}emitError(C){this.config.callbacks?.onError?.(this.toClientError(C))}toSessionError(C,E,v,F){return(0,f.normalizeError)(C,f.SessionError,E,{context:v,hint:F})}async initializeConnection(C){if(this.closeConnection(),!C.session_id||!C.session_token)throw new f.SessionError("Session ID or token not found",{context:{stage:"initializeConnection"},hint:"Ensure the session API returns both identifiers."});this.sessionConfig=C;const E=(0,r.getConfig)(this.config?.environment),v=this.connectionType===A.ConnectionType.SSE,F=v?E.BASE_API_URL:E.WEBSOCKET_URL,Q=this.config.serverUrl?v?this.config.serverUrl:`wss://${this.config.serverUrl.split("://")[1]}`:null;this.connection=await A.ConnectionFactory.createConnection(this.connectionType,{serverUrl:Q||F,auth:{sessionId:C.session_id,sessionToken:C.session_token},agentId:this.config.agentId,userId:this.config.userId,overrides:this.config.overrides}),this.connectionAttempts++,this.messageManager=new s.MessageManager(this.connection,this.config?.callbacks);const I=this.connection.emit.bind(this.connection);this.connection.emit=(O,...K)=>{I(O,...K),this.sdkEventEmitter.emit(O,...K)}}async manageSession(C){try{if(!C?.session_id)return this.createNewSession();const E=await this.resourceManager.validateSession(C.session_id);if(E.active)return C;if(E.expired)return this.refreshSession(C.session_id,C.session_token);throw new f.APIError("Failed to create session",500,void 0,void 0)}catch(E){if(E instanceof f.APIError){if(E.status===404||E.status===403)throw E}else if(E instanceof f.NotFoundError&&E.status===404)throw E;throw this.toSessionError(E,"Failed to resolve session",{stage:"resolveSession"})}}async refreshSession(C,E){try{return await this.resourceManager.refreshSession(C,E)}catch(v){throw v instanceof f.APIError&&this.emitError(v),this.toSessionError(v,"Failed to refresh session",{stage:"refreshSession",sessionId:C})}}async createNewSession(){return await this.resourceManager.createSession(this.config.userId,this.config.context)}setupEventHandlers(){if(this.connection){switch(this.connectionType){case A.ConnectionType.SOCKET:this.connection.onOpen(()=>{this.onSocketConnectionOpen()}),this.connection.onMessage(C=>{this.onIncomingSocketMessage(C)}),this.connection.onError(C=>{this.onSocketConnectionError(C)}),this.connection.on(l.SYNAPSE_REALTIME_RESERVED_EVENTS.SESSION_EXPIRED,()=>{this.handleSessionExpiry()});break;case A.ConnectionType.SSE:this.connection.onOpen(()=>{this.messageManager.handleConnectionEstablished()}),this.connection.onMessage(C=>{this.onIncomingSocketMessage(C)}),this.connection.onError(C=>{this.onSocketConnectionError(C)}),this.connection.on(l.SYNAPSE_REALTIME_RESERVED_EVENTS.SESSION_EXPIRED,()=>{this.handleSessionExpiry()});break;default:throw new f.ConnectionError("Unsupported connection type",{context:{stage:"setupEventHandlers",connectionType:this.connectionType},hint:"Use ConnectionType.SOCKET or provide a custom handler."})}this.connection.onDisconnect(async C=>{if(C.reason!==t.DisconnectionReason.CLIENT_CLOSED)if(this.connectionAttempts<3&&this.sessionConfig?.session_id&&this.sessionConfig.session_token)try{await this.startSession({session_id:this.sessionConfig.session_id,session_token:this.sessionConfig.session_token})}catch{this.messageManager.handleDisconnect(C)}else this.messageManager.handleDisconnect(C)})}}onSocketConnectionError(C){this.connection?.emit(l.SYNAPSE_REALTIME_EVENTS.ERROR,C);const E=this.toConnectionError(C,"WebSocket connection error",{stage:"onSocketConnectionError"},"Verify network connectivity or attempt to reconnect.");this.emitError(E)}onSocketConnectionOpen(){if(!this.sessionConfig?.session_token){const C=new f.SessionError("Session token not set. Call startSession() first.",{context:{stage:"onSocketConnectionOpen"},hint:"Ensure startSession() completes successfully before socket opens."});throw this.emitError(C),C}this.messageManager.sendSocketAuthMessage(this.sessionConfig.session_token)}onIncomingSocketMessage(C){switch(C.ev){case h.SOCKET_EVENTS.CHAT:this.messageManager.handleIncomingSocketChatMessage(C);break;case h.SOCKET_EVENTS.CONNECTION_ESTABLISHED:this.messageManager.handleConnectionEstablished();break;case h.SOCKET_EVENTS.STREAM:this.messageManager.handleIncomingSocketStreamMessage(C);break;case h.SOCKET_EVENTS.END_OF_STREAM:this.messageManager.handleIncomingSocketEndOfStreamMessage(C);break;case h.SOCKET_EVENTS.PING:this.messageManager.sendSocketPongMessage();break;case h.SOCKET_EVENTS.PONG:this.messageManager.sendSocketPingMessage();break;case h.SOCKET_EVENTS.SYNC:break;case h.SOCKET_EVENTS.ERROR:this.messageManager.handleIncomingSocketErrorMessage(C);break;default:const E=new f.MessageError("Unsupported message type",{context:{stage:"onIncomingSocketMessage",event:C.ev??"unknown"},hint:"Ensure the server is sending supported socket events."});this.emitError(E);return}}async handleSessionExpiry(){if(!this.isRefreshingSession)try{if(this.closeConnection(),!this.sessionConfig?.session_id||!this.sessionConfig?.session_token){const E=new f.SessionError("Session ID or token not found",{context:{stage:"handleSessionExpiry"}});throw this.emitError(E),E}this.isRefreshingSession=!0;const C=await this.refreshSession(this.sessionConfig.session_id,this.sessionConfig.session_token);if(!C.session_id||!C.session_token)throw new f.SessionError("Session refresh failed",{context:{stage:"handleSessionExpiry"}});this.sessionConfig.session_id=C.session_id,this.sessionConfig.session_token=C.session_token,await this.initializeConnection(C),this.setupEventHandlers(),this.config.callbacks?.onSessionRefreshed?.(C)}catch(C){const E=this.toSessionError(C,"Session expired",{stage:"handleSessionExpiry"});this.emitError(E)}finally{this.isRefreshingSession=!1}}toConnectionError(C,E,v,F){return(0,f.normalizeError)(C,f.ConnectionError,E,{context:v,hint:F})}closeConnection(){this.connection&&(this.connection.close(),this.connection=null)}cleanup(){this.connectionAttempts=0,this.sdkEventEmitter?.removeAllListeners?.(),this.messageManager?.cleanupMessageServerState?.()}}return Ia.SynapseSDK=B,Ia}var Fu={},ep;function D2(){return ep||(ep=1,Object.defineProperty(Fu,"__esModule",{value:!0})),Fu}var Ja={},tp;function k2(){return tp||(tp=1,Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.USER_FEEDBACK=void 0,Ja.USER_FEEDBACK={LIKE:"LIKE",DISLIKE:"DISLIKE",NONE:"NONE"}),Ja}var Za={},np;function j2(){if(np)return Za;np=1,Object.defineProperty(Za,"__esModule",{value:!0}),Za.ToolCall=void 0;const A=Nl();let t=class extends A.BaseResource{basePath="/med-assist/api-call-tool";async callTool(i,s,l){return this.post(`${this.basePath}?session_id=${i}&tool_name=${s}`,{tool_params:l})}};return Za.ToolCall=t,Za}var tn={},rp;function K2(){if(rp)return tn;rp=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.SYNAPSE_EICITATION_STATUS=tn.SYNAPSE_TOOL_CALLBACK_NAME=tn.SYNAPSE_COMPONENTS=tn.SYNAPSE_TOOL_NAME=void 0;var A;(function(s){s.MOBILE_VERIFICATION="mobile_verification",s.AVAILABILITY_DATES="availability_dates",s.AVAILABILITY_SLOTS="availability_slots",s.DOCTOR_AVAILABILITY="doctor_availability",s.DOCTOR_DETAILS="doctor_details",s.GET_LOCATION="get_location"})(A||(tn.SYNAPSE_TOOL_NAME=A={}));var t;(function(s){s.MOBILE="mobile_number",s.OTP="otp",s.EMAIL="email_address",s.PILL="pills",s.MULTI="multi",s.DOCTOR_CARD="doctor_card",s.CARD="card",s.MEDIA_CARD="media_card"})(t||(tn.SYNAPSE_COMPONENTS=t={}));var r;(function(s){s.DOCTOR_AVAILABILITY="get_doctor_availability",s.AVAILABILITY_DATES="get_available_dates",s.AVAILABILITY_SLOTS="get_available_slots",s.MOBILE_VERIFICATION="verify_mobile_number",s.DOCTOR_DETAILS="get_doctor_details"})(r||(tn.SYNAPSE_TOOL_CALLBACK_NAME=r={}));var i;return(function(s){s.PROGRESS="progress",s.SUCCESS="success",s.FAILURE="failure"})(i||(tn.SYNAPSE_EICITATION_STATUS=i={})),tn}var Tu={},ip;function V2(){return ip||(ip=1,Object.defineProperty(Tu,"__esModule",{value:!0})),Tu}var Wa={},ap;function G2(){return ap||(ap=1,Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.ErrorType=void 0,Wa.ErrorType={NETWORK_ERROR:"NETWORK_ERROR",TIMEOUT_ERROR:"TIMEOUT_ERROR",API_ERROR:"API_ERROR",RATE_LIMIT_ERROR:"RATE_LIMIT_ERROR",SERVER_ERROR:"SERVER_ERROR",PARSE_ERROR:"PARSE_ERROR",UNKNOWN_ERROR:"UNKNOWN_ERROR"}),Wa}var Nu={},sp;function z2(){return sp||(sp=1,Object.defineProperty(Nu,"__esModule",{value:!0})),Nu}var $a={},lp;function P2(){if(lp)return $a;lp=1,Object.defineProperty($a,"__esModule",{value:!0}),$a.SYNAPSE_CONVERSATION=void 0;var A;return(function(t){t.TEXT="text",t.FILE="file",t.AUDIO="audio",t.VOICE="voice"})(A||($a.SYNAPSE_CONVERSATION=A={})),$a}var Gr={},op;function Y2(){return op||(op=1,(function(A){var t=Gr&&Gr.__createBinding||(Object.create?(function(i,s,l,c){c===void 0&&(c=l);var u=Object.getOwnPropertyDescriptor(s,l);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return s[l]}}),Object.defineProperty(i,c,u)}):(function(i,s,l,c){c===void 0&&(c=l),i[c]=s[l]})),r=Gr&&Gr.__exportStar||function(i,s){for(var l in i)l!=="default"&&!Object.prototype.hasOwnProperty.call(s,l)&&t(s,i,l)};Object.defineProperty(A,"__esModule",{value:!0}),r(W0(),A)})(Gr)),Gr}var cp;function X2(){return cp||(cp=1,(function(A){var t=jr&&jr.__createBinding||(Object.create?(function(Q,I,O,K){K===void 0&&(K=O);var j=Object.getOwnPropertyDescriptor(I,O);(!j||("get"in j?!I.__esModule:j.writable||j.configurable))&&(j={enumerable:!0,get:function(){return I[O]}}),Object.defineProperty(Q,K,j)}):(function(Q,I,O,K){K===void 0&&(K=O),Q[K]=I[O]})),r=jr&&jr.__exportStar||function(Q,I){for(var O in Q)O!=="default"&&!Object.prototype.hasOwnProperty.call(I,O)&&t(I,Q,O)};Object.defineProperty(A,"__esModule",{value:!0}),A.SYNAPSE_MESSAGE_TYPES=A.ErrorUtils=A.ErrorType=A.SynapseErrorCode=A.InternalServerError=A.RateLimitError=A.MethodNotAllowedError=A.NotFoundError=A.PermissionDeniedError=A.UnauthorizedError=A.BadRequestError=A.APIConnectionTimeoutError=A.APIUserAbortError=A.APIError=A.SynapseError=A.HttpClient=A.MessageManager=A.ToolCall=A.Session=A.ResourceManager=A.ConnectionType=A.ConnectionFactory=A.SSEConnection=A.WebSocketConnection=A.BaseConnection=A.SynapseSDK=void 0;var i=L2();Object.defineProperty(A,"SynapseSDK",{enumerable:!0,get:function(){return i.SynapseSDK}});var s=bu();Object.defineProperty(A,"BaseConnection",{enumerable:!0,get:function(){return s.BaseConnection}});var l=Q0();Object.defineProperty(A,"WebSocketConnection",{enumerable:!0,get:function(){return l.WebSocketConnection}});var c=F0();Object.defineProperty(A,"SSEConnection",{enumerable:!0,get:function(){return c.SSEConnection}});var u=N0();Object.defineProperty(A,"ConnectionFactory",{enumerable:!0,get:function(){return u.ConnectionFactory}}),Object.defineProperty(A,"ConnectionType",{enumerable:!0,get:function(){return u.ConnectionType}}),r(Oa(),A);var f=j0();Object.defineProperty(A,"ResourceManager",{enumerable:!0,get:function(){return f.ResourceManager}}),r(D2(),A);var h=R0();Object.defineProperty(A,"Session",{enumerable:!0,get:function(){return h.Session}}),r(k2(),A);var m=j2();Object.defineProperty(A,"ToolCall",{enumerable:!0,get:function(){return m.ToolCall}}),r(K2(),A);var B=Y0();Object.defineProperty(A,"MessageManager",{enumerable:!0,get:function(){return B.MessageManager}}),r(Il(),A),r(V2(),A);var w=_0();Object.defineProperty(A,"HttpClient",{enumerable:!0,get:function(){return w.HttpClient}});var C=Lt();Object.defineProperty(A,"SynapseError",{enumerable:!0,get:function(){return C.SynapseError}}),Object.defineProperty(A,"APIError",{enumerable:!0,get:function(){return C.APIError}}),Object.defineProperty(A,"APIUserAbortError",{enumerable:!0,get:function(){return C.APIUserAbortError}}),Object.defineProperty(A,"APIConnectionTimeoutError",{enumerable:!0,get:function(){return C.APIConnectionTimeoutError}}),Object.defineProperty(A,"BadRequestError",{enumerable:!0,get:function(){return C.BadRequestError}}),Object.defineProperty(A,"UnauthorizedError",{enumerable:!0,get:function(){return C.UnauthorizedError}}),Object.defineProperty(A,"PermissionDeniedError",{enumerable:!0,get:function(){return C.PermissionDeniedError}}),Object.defineProperty(A,"NotFoundError",{enumerable:!0,get:function(){return C.NotFoundError}}),Object.defineProperty(A,"MethodNotAllowedError",{enumerable:!0,get:function(){return C.MethodNotAllowedError}}),Object.defineProperty(A,"RateLimitError",{enumerable:!0,get:function(){return C.RateLimitError}}),Object.defineProperty(A,"InternalServerError",{enumerable:!0,get:function(){return C.InternalServerError}}),Object.defineProperty(A,"SynapseErrorCode",{enumerable:!0,get:function(){return C.SynapseErrorCode}});var E=G2();Object.defineProperty(A,"ErrorType",{enumerable:!0,get:function(){return E.ErrorType}});var v=q0();Object.defineProperty(A,"ErrorUtils",{enumerable:!0,get:function(){return v.ErrorUtils}}),r(z2(),A);var F=Il();Object.defineProperty(A,"SYNAPSE_MESSAGE_TYPES",{enumerable:!0,get:function(){return F.SYNAPSE_MESSAGE_TYPES}}),r(P2(),A),r(Y2(),A)})(jr)),jr}var dA=X2();function up(A){var t,r,i="";if(typeof A=="string"||typeof A=="number")i+=A;else if(typeof A=="object")if(Array.isArray(A)){var s=A.length;for(t=0;t<s;t++)A[t]&&(r=up(A[t]))&&(i&&(i+=" "),i+=r)}else for(r in A)A[r]&&(i&&(i+=" "),i+=r);return i}function fp(){for(var A,t,r=0,i="",s=arguments.length;r<s;r++)(A=arguments[r])&&(t=up(A))&&(i&&(i+=" "),i+=t);return i}const q2=(A,t)=>{const r=new Array(A.length+t.length);for(let i=0;i<A.length;i++)r[i]=A[i];for(let i=0;i<t.length;i++)r[A.length+i]=t[i];return r},J2=(A,t)=>({classGroupId:A,validator:t}),dp=(A=new Map,t=null,r)=>({nextPart:A,validators:t,classGroupId:r}),Hl="-",hp=[],Z2="arbitrary..",W2=A=>{const t=A4(A),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=A;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return $2(c);const u=c.split(Hl),f=u[0]===""&&u.length>1?1:0;return gp(u,f,t)},getConflictingClassGroupIds:(c,u)=>{if(u){const f=i[c],h=r[c];return f?h?q2(h,f):f:h||hp}return r[c]||hp}}},gp=(A,t,r)=>{if(A.length-t===0)return r.classGroupId;const s=A[t],l=r.nextPart.get(s);if(l){const h=gp(A,t+1,l);if(h)return h}const c=r.validators;if(c===null)return;const u=t===0?A.join(Hl):A.slice(t).join(Hl),f=c.length;for(let h=0;h<f;h++){const m=c[h];if(m.validator(u))return m.classGroupId}},$2=A=>A.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=A.slice(1,-1),r=t.indexOf(":"),i=t.slice(0,r);return i?Z2+i:void 0})(),A4=A=>{const{theme:t,classGroups:r}=A;return e4(r,t)},e4=(A,t)=>{const r=dp();for(const i in A){const s=A[i];Iu(s,r,i,t)}return r},Iu=(A,t,r,i)=>{const s=A.length;for(let l=0;l<s;l++){const c=A[l];t4(c,t,r,i)}},t4=(A,t,r,i)=>{if(typeof A=="string"){n4(A,t,r);return}if(typeof A=="function"){r4(A,t,r,i);return}i4(A,t,r,i)},n4=(A,t,r)=>{const i=A===""?t:pp(t,A);i.classGroupId=r},r4=(A,t,r,i)=>{if(a4(A)){Iu(A(i),t,r,i);return}t.validators===null&&(t.validators=[]),t.validators.push(J2(r,A))},i4=(A,t,r,i)=>{const s=Object.entries(A),l=s.length;for(let c=0;c<l;c++){const[u,f]=s[c];Iu(f,pp(t,u),r,i)}},pp=(A,t)=>{let r=A;const i=t.split(Hl),s=i.length;for(let l=0;l<s;l++){const c=i[l];let u=r.nextPart.get(c);u||(u=dp(),r.nextPart.set(c,u)),r=u}return r},a4=A=>"isThemeGetter"in A&&A.isThemeGetter===!0,s4=A=>{if(A<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),i=Object.create(null);const s=(l,c)=>{r[l]=c,t++,t>A&&(t=0,i=r,r=Object.create(null))};return{get(l){let c=r[l];if(c!==void 0)return c;if((c=i[l])!==void 0)return s(l,c),c},set(l,c){l in r?r[l]=c:s(l,c)}}},Hu="!",mp=":",l4=[],Bp=(A,t,r,i,s)=>({modifiers:A,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:i,isExternal:s}),o4=A=>{const{prefix:t,experimentalParseClassName:r}=A;let i=s=>{const l=[];let c=0,u=0,f=0,h;const m=s.length;for(let v=0;v<m;v++){const F=s[v];if(c===0&&u===0){if(F===mp){l.push(s.slice(f,v)),f=v+1;continue}if(F==="/"){h=v;continue}}F==="["?c++:F==="]"?c--:F==="("?u++:F===")"&&u--}const B=l.length===0?s:s.slice(f);let w=B,C=!1;B.endsWith(Hu)?(w=B.slice(0,-1),C=!0):B.startsWith(Hu)&&(w=B.slice(1),C=!0);const E=h&&h>f?h-f:void 0;return Bp(l,C,w,E)};if(t){const s=t+mp,l=i;i=c=>c.startsWith(s)?l(c.slice(s.length)):Bp(l4,!1,c,void 0,!0)}if(r){const s=i;i=l=>r({className:l,parseClassName:s})}return i},c4=A=>{const t=new Map;return A.orderSensitiveModifiers.forEach((r,i)=>{t.set(r,1e6+i)}),r=>{const i=[];let s=[];for(let l=0;l<r.length;l++){const c=r[l],u=c[0]==="[",f=t.has(c);u||f?(s.length>0&&(s.sort(),i.push(...s),s=[]),i.push(c)):s.push(c)}return s.length>0&&(s.sort(),i.push(...s)),i}},u4=A=>({cache:s4(A.cacheSize),parseClassName:o4(A),sortModifiers:c4(A),...W2(A)}),f4=/\s+/,d4=(A,t)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:l}=t,c=[],u=A.trim().split(f4);let f="";for(let h=u.length-1;h>=0;h-=1){const m=u[h],{isExternal:B,modifiers:w,hasImportantModifier:C,baseClassName:E,maybePostfixModifierPosition:v}=r(m);if(B){f=m+(f.length>0?" "+f:f);continue}let F=!!v,Q=i(F?E.substring(0,v):E);if(!Q){if(!F){f=m+(f.length>0?" "+f:f);continue}if(Q=i(E),!Q){f=m+(f.length>0?" "+f:f);continue}F=!1}const I=w.length===0?"":w.length===1?w[0]:l(w).join(":"),O=C?I+Hu:I,K=O+Q;if(c.indexOf(K)>-1)continue;c.push(K);const j=s(Q,F);for(let T=0;T<j.length;++T){const L=j[T];c.push(O+L)}f=m+(f.length>0?" "+f:f)}return f},h4=(...A)=>{let t=0,r,i,s="";for(;t<A.length;)(r=A[t++])&&(i=Cp(r))&&(s&&(s+=" "),s+=i);return s},Cp=A=>{if(typeof A=="string")return A;let t,r="";for(let i=0;i<A.length;i++)A[i]&&(t=Cp(A[i]))&&(r&&(r+=" "),r+=t);return r},g4=(A,...t)=>{let r,i,s,l;const c=f=>{const h=t.reduce((m,B)=>B(m),A());return r=u4(h),i=r.cache.get,s=r.cache.set,l=u,u(f)},u=f=>{const h=i(f);if(h)return h;const m=d4(f,r);return s(f,m),m};return l=c,(...f)=>l(h4(...f))},p4=[],je=A=>{const t=r=>r[A]||p4;return t.isThemeGetter=!0,t},wp=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,yp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,m4=/^\d+\/\d+$/,B4=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,C4=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,w4=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,y4=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,E4=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wi=A=>m4.test(A),DA=A=>!!A&&!Number.isNaN(Number(A)),er=A=>!!A&&Number.isInteger(Number(A)),_u=A=>A.endsWith("%")&&DA(A.slice(0,-1)),Sn=A=>B4.test(A),v4=()=>!0,b4=A=>C4.test(A)&&!w4.test(A),Ep=()=>!1,x4=A=>y4.test(A),S4=A=>E4.test(A),Q4=A=>!yA(A)&&!EA(A),U4=A=>yi(A,Qp,Ep),yA=A=>wp.test(A),zr=A=>yi(A,Up,b4),Mu=A=>yi(A,H4,DA),vp=A=>yi(A,xp,Ep),F4=A=>yi(A,Sp,S4),_l=A=>yi(A,Fp,x4),EA=A=>yp.test(A),As=A=>Ei(A,Up),T4=A=>Ei(A,_4),bp=A=>Ei(A,xp),N4=A=>Ei(A,Qp),I4=A=>Ei(A,Sp),Ml=A=>Ei(A,Fp,!0),yi=(A,t,r)=>{const i=wp.exec(A);return i?i[1]?t(i[1]):r(i[2]):!1},Ei=(A,t,r=!1)=>{const i=yp.exec(A);return i?i[1]?t(i[1]):r:!1},xp=A=>A==="position"||A==="percentage",Sp=A=>A==="image"||A==="url",Qp=A=>A==="length"||A==="size"||A==="bg-size",Up=A=>A==="length",H4=A=>A==="number",_4=A=>A==="family-name",Fp=A=>A==="shadow",M4=g4(()=>{const A=je("color"),t=je("font"),r=je("text"),i=je("font-weight"),s=je("tracking"),l=je("leading"),c=je("breakpoint"),u=je("container"),f=je("spacing"),h=je("radius"),m=je("shadow"),B=je("inset-shadow"),w=je("text-shadow"),C=je("drop-shadow"),E=je("blur"),v=je("perspective"),F=je("aspect"),Q=je("ease"),I=je("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],j=()=>[...K(),EA,yA],T=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto","contain","none"],R=()=>[EA,yA,f],_=()=>[wi,"full","auto",...R()],X=()=>[er,"none","subgrid",EA,yA],nA=()=>["auto",{span:["full",er,EA,yA]},er,EA,yA],z=()=>[er,"auto",EA,yA],lA=()=>["auto","min","max","fr",EA,yA],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],eA=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...R()],W=()=>[wi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],AA=()=>[A,EA,yA],gA=()=>[...K(),bp,vp,{position:[EA,yA]}],N=()=>["no-repeat",{repeat:["","x","y","space","round"]}],U=()=>["auto","cover","contain",N4,U4,{size:[EA,yA]}],M=()=>[_u,As,zr],S=()=>["","none","full",h,EA,yA],aA=()=>["",DA,As,zr],uA=()=>["solid","dashed","dotted","double"],fA=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pA=()=>[DA,_u,bp,vp],kA=()=>["","none",E,EA,yA],HA=()=>["none",DA,EA,yA],NA=()=>["none",DA,EA,yA],de=()=>[DA,EA,yA],he=()=>[wi,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Sn],breakpoint:[Sn],color:[v4],container:[Sn],"drop-shadow":[Sn],ease:["in","out","in-out"],font:[Q4],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Sn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Sn],shadow:[Sn],spacing:["px",DA],text:[Sn],"text-shadow":[Sn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",wi,yA,EA,F]}],container:["container"],columns:[{columns:[DA,yA,EA,u]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:j()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:_()}],"inset-x":[{"inset-x":_()}],"inset-y":[{"inset-y":_()}],start:[{start:_()}],end:[{end:_()}],top:[{top:_()}],right:[{right:_()}],bottom:[{bottom:_()}],left:[{left:_()}],visibility:["visible","invisible","collapse"],z:[{z:[er,"auto",EA,yA]}],basis:[{basis:[wi,"full","auto",u,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[DA,wi,"auto","initial","none",yA]}],grow:[{grow:["",DA,EA,yA]}],shrink:[{shrink:["",DA,EA,yA]}],order:[{order:[er,"first","last","none",EA,yA]}],"grid-cols":[{"grid-cols":X()}],"col-start-end":[{col:nA()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":X()}],"row-start-end":[{row:nA()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":lA()}],"auto-rows":[{"auto-rows":lA()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...eA(),"normal"]}],"justify-self":[{"justify-self":["auto",...eA()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...eA(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...eA(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...eA(),"baseline"]}],"place-self":[{"place-self":["auto",...eA()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[u,"screen",...W()]}],"min-w":[{"min-w":[u,"screen","none",...W()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[c]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",r,As,zr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,EA,Mu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",_u,yA]}],"font-family":[{font:[T4,yA,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,EA,yA]}],"line-clamp":[{"line-clamp":[DA,"none",EA,Mu]}],leading:[{leading:[l,...R()]}],"list-image":[{"list-image":["none",EA,yA]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",EA,yA]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:AA()}],"text-color":[{text:AA()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...uA(),"wavy"]}],"text-decoration-thickness":[{decoration:[DA,"from-font","auto",EA,zr]}],"text-decoration-color":[{decoration:AA()}],"underline-offset":[{"underline-offset":[DA,"auto",EA,yA]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",EA,yA]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",EA,yA]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:gA()}],"bg-repeat":[{bg:N()}],"bg-size":[{bg:U()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},er,EA,yA],radial:["",EA,yA],conic:[er,EA,yA]},I4,F4]}],"bg-color":[{bg:AA()}],"gradient-from-pos":[{from:M()}],"gradient-via-pos":[{via:M()}],"gradient-to-pos":[{to:M()}],"gradient-from":[{from:AA()}],"gradient-via":[{via:AA()}],"gradient-to":[{to:AA()}],rounded:[{rounded:S()}],"rounded-s":[{"rounded-s":S()}],"rounded-e":[{"rounded-e":S()}],"rounded-t":[{"rounded-t":S()}],"rounded-r":[{"rounded-r":S()}],"rounded-b":[{"rounded-b":S()}],"rounded-l":[{"rounded-l":S()}],"rounded-ss":[{"rounded-ss":S()}],"rounded-se":[{"rounded-se":S()}],"rounded-ee":[{"rounded-ee":S()}],"rounded-es":[{"rounded-es":S()}],"rounded-tl":[{"rounded-tl":S()}],"rounded-tr":[{"rounded-tr":S()}],"rounded-br":[{"rounded-br":S()}],"rounded-bl":[{"rounded-bl":S()}],"border-w":[{border:aA()}],"border-w-x":[{"border-x":aA()}],"border-w-y":[{"border-y":aA()}],"border-w-s":[{"border-s":aA()}],"border-w-e":[{"border-e":aA()}],"border-w-t":[{"border-t":aA()}],"border-w-r":[{"border-r":aA()}],"border-w-b":[{"border-b":aA()}],"border-w-l":[{"border-l":aA()}],"divide-x":[{"divide-x":aA()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":aA()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...uA(),"hidden","none"]}],"divide-style":[{divide:[...uA(),"hidden","none"]}],"border-color":[{border:AA()}],"border-color-x":[{"border-x":AA()}],"border-color-y":[{"border-y":AA()}],"border-color-s":[{"border-s":AA()}],"border-color-e":[{"border-e":AA()}],"border-color-t":[{"border-t":AA()}],"border-color-r":[{"border-r":AA()}],"border-color-b":[{"border-b":AA()}],"border-color-l":[{"border-l":AA()}],"divide-color":[{divide:AA()}],"outline-style":[{outline:[...uA(),"none","hidden"]}],"outline-offset":[{"outline-offset":[DA,EA,yA]}],"outline-w":[{outline:["",DA,As,zr]}],"outline-color":[{outline:AA()}],shadow:[{shadow:["","none",m,Ml,_l]}],"shadow-color":[{shadow:AA()}],"inset-shadow":[{"inset-shadow":["none",B,Ml,_l]}],"inset-shadow-color":[{"inset-shadow":AA()}],"ring-w":[{ring:aA()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:AA()}],"ring-offset-w":[{"ring-offset":[DA,zr]}],"ring-offset-color":[{"ring-offset":AA()}],"inset-ring-w":[{"inset-ring":aA()}],"inset-ring-color":[{"inset-ring":AA()}],"text-shadow":[{"text-shadow":["none",w,Ml,_l]}],"text-shadow-color":[{"text-shadow":AA()}],opacity:[{opacity:[DA,EA,yA]}],"mix-blend":[{"mix-blend":[...fA(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fA()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[DA]}],"mask-image-linear-from-pos":[{"mask-linear-from":pA()}],"mask-image-linear-to-pos":[{"mask-linear-to":pA()}],"mask-image-linear-from-color":[{"mask-linear-from":AA()}],"mask-image-linear-to-color":[{"mask-linear-to":AA()}],"mask-image-t-from-pos":[{"mask-t-from":pA()}],"mask-image-t-to-pos":[{"mask-t-to":pA()}],"mask-image-t-from-color":[{"mask-t-from":AA()}],"mask-image-t-to-color":[{"mask-t-to":AA()}],"mask-image-r-from-pos":[{"mask-r-from":pA()}],"mask-image-r-to-pos":[{"mask-r-to":pA()}],"mask-image-r-from-color":[{"mask-r-from":AA()}],"mask-image-r-to-color":[{"mask-r-to":AA()}],"mask-image-b-from-pos":[{"mask-b-from":pA()}],"mask-image-b-to-pos":[{"mask-b-to":pA()}],"mask-image-b-from-color":[{"mask-b-from":AA()}],"mask-image-b-to-color":[{"mask-b-to":AA()}],"mask-image-l-from-pos":[{"mask-l-from":pA()}],"mask-image-l-to-pos":[{"mask-l-to":pA()}],"mask-image-l-from-color":[{"mask-l-from":AA()}],"mask-image-l-to-color":[{"mask-l-to":AA()}],"mask-image-x-from-pos":[{"mask-x-from":pA()}],"mask-image-x-to-pos":[{"mask-x-to":pA()}],"mask-image-x-from-color":[{"mask-x-from":AA()}],"mask-image-x-to-color":[{"mask-x-to":AA()}],"mask-image-y-from-pos":[{"mask-y-from":pA()}],"mask-image-y-to-pos":[{"mask-y-to":pA()}],"mask-image-y-from-color":[{"mask-y-from":AA()}],"mask-image-y-to-color":[{"mask-y-to":AA()}],"mask-image-radial":[{"mask-radial":[EA,yA]}],"mask-image-radial-from-pos":[{"mask-radial-from":pA()}],"mask-image-radial-to-pos":[{"mask-radial-to":pA()}],"mask-image-radial-from-color":[{"mask-radial-from":AA()}],"mask-image-radial-to-color":[{"mask-radial-to":AA()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":K()}],"mask-image-conic-pos":[{"mask-conic":[DA]}],"mask-image-conic-from-pos":[{"mask-conic-from":pA()}],"mask-image-conic-to-pos":[{"mask-conic-to":pA()}],"mask-image-conic-from-color":[{"mask-conic-from":AA()}],"mask-image-conic-to-color":[{"mask-conic-to":AA()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:gA()}],"mask-repeat":[{mask:N()}],"mask-size":[{mask:U()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",EA,yA]}],filter:[{filter:["","none",EA,yA]}],blur:[{blur:kA()}],brightness:[{brightness:[DA,EA,yA]}],contrast:[{contrast:[DA,EA,yA]}],"drop-shadow":[{"drop-shadow":["","none",C,Ml,_l]}],"drop-shadow-color":[{"drop-shadow":AA()}],grayscale:[{grayscale:["",DA,EA,yA]}],"hue-rotate":[{"hue-rotate":[DA,EA,yA]}],invert:[{invert:["",DA,EA,yA]}],saturate:[{saturate:[DA,EA,yA]}],sepia:[{sepia:["",DA,EA,yA]}],"backdrop-filter":[{"backdrop-filter":["","none",EA,yA]}],"backdrop-blur":[{"backdrop-blur":kA()}],"backdrop-brightness":[{"backdrop-brightness":[DA,EA,yA]}],"backdrop-contrast":[{"backdrop-contrast":[DA,EA,yA]}],"backdrop-grayscale":[{"backdrop-grayscale":["",DA,EA,yA]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[DA,EA,yA]}],"backdrop-invert":[{"backdrop-invert":["",DA,EA,yA]}],"backdrop-opacity":[{"backdrop-opacity":[DA,EA,yA]}],"backdrop-saturate":[{"backdrop-saturate":[DA,EA,yA]}],"backdrop-sepia":[{"backdrop-sepia":["",DA,EA,yA]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",EA,yA]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[DA,"initial",EA,yA]}],ease:[{ease:["linear","initial",Q,EA,yA]}],delay:[{delay:[DA,EA,yA]}],animate:[{animate:["none",I,EA,yA]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,EA,yA]}],"perspective-origin":[{"perspective-origin":j()}],rotate:[{rotate:HA()}],"rotate-x":[{"rotate-x":HA()}],"rotate-y":[{"rotate-y":HA()}],"rotate-z":[{"rotate-z":HA()}],scale:[{scale:NA()}],"scale-x":[{"scale-x":NA()}],"scale-y":[{"scale-y":NA()}],"scale-z":[{"scale-z":NA()}],"scale-3d":["scale-3d"],skew:[{skew:de()}],"skew-x":[{"skew-x":de()}],"skew-y":[{"skew-y":de()}],transform:[{transform:[EA,yA,"","none","gpu","cpu"]}],"transform-origin":[{origin:j()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:he()}],"translate-x":[{"translate-x":he()}],"translate-y":[{"translate-y":he()}],"translate-z":[{"translate-z":he()}],"translate-none":["translate-none"],accent:[{accent:AA()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:AA()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",EA,yA]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",EA,yA]}],fill:[{fill:["none",...AA()]}],"stroke-w":[{stroke:[DA,As,zr,Mu]}],stroke:[{stroke:["none",...AA()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function mA(...A){return M4(fp(A))}function vi(A){if(!A&&A!==0)return"";const t=A instanceof Date?A:new Date(typeof A=="number"?A:Number(A)||A);return Number.isNaN(t.getTime())?"":t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}const O4=A=>{switch(A){case dA.SYNAPSE_COMPONENTS.DOCTOR_CARD:case dA.SYNAPSE_COMPONENTS.CARD:return!0;default:return!1}},R4=A=>new Promise(t=>setTimeout(t,A)),Ol=A=>!A||!A?.length?"":A.filter(t=>t.type==="text").map(t=>t.text).join(" "),L4=(A,t,r="")=>{const i=A?[...A]:[],s=i[i.length-1];return s&&s.type==="text"?i[i.length-1]={...s,text:s.text+r+t}:i.push({type:"text",text:t}),i},D4=(A,t)=>{const r=A?[...A]:[];for(let i=r.length-1;i>=0;i--){const s=r[i];if(s.type==="tool"&&s.toolName===t)return r[i]={...s,status:"done"},r}return r.push({type:"tool",toolName:t,status:"done"}),r},k4=(A,t)=>[...A||[],{type:"tool",toolName:t,status:"loading"}],Tp=b.forwardRef(({className:A,children:t,...r},i)=>g.jsxs(y0,{ref:i,className:mA("relative overflow-hidden",A),...r,children:[g.jsx(F2,{className:"h-full w-full rounded-[inherit] overscroll-contain",children:t}),g.jsx(Np,{}),g.jsx(T2,{})]}));Tp.displayName=y0.displayName;const Np=b.forwardRef(({className:A,orientation:t="vertical",...r},i)=>g.jsx(Cu,{ref:i,orientation:t,className:mA("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",A),...r,children:g.jsx(g0,{className:"relative flex-1 rounded-full bg-border"})}));Np.displayName=Cu.displayName;var j4=Symbol.for("react.lazy"),Rl=$g[" use ".trim().toString()];function K4(A){return typeof A=="object"&&A!==null&&"then"in A}function Ip(A){return A!=null&&typeof A=="object"&&"$$typeof"in A&&A.$$typeof===j4&&"_payload"in A&&K4(A._payload)}function Hp(A){const t=G4(A),r=b.forwardRef((i,s)=>{let{children:l,...c}=i;Ip(l)&&typeof Rl=="function"&&(l=Rl(l._payload));const u=b.Children.toArray(l),f=u.find(P4);if(f){const h=f.props.children,m=u.map(B=>B===f?b.Children.count(h)>1?b.Children.only(null):b.isValidElement(h)?h.props.children:null:B);return g.jsx(t,{...c,ref:s,children:b.isValidElement(h)?b.cloneElement(h,void 0,m):null})}return g.jsx(t,{...c,ref:s,children:l})});return r.displayName=`${A}.Slot`,r}var V4=Hp("Slot");function G4(A){const t=b.forwardRef((r,i)=>{let{children:s,...l}=r;if(Ip(s)&&typeof Rl=="function"&&(s=Rl(s._payload)),b.isValidElement(s)){const c=X4(s),u=Y4(l,s.props);return s.type!==b.Fragment&&(u.ref=i?mu(i,c):c),b.cloneElement(s,u)}return b.Children.count(s)>1?b.Children.only(null):null});return t.displayName=`${A}.SlotClone`,t}var z4=Symbol("radix.slottable");function P4(A){return b.isValidElement(A)&&typeof A.type=="function"&&"__radixId"in A.type&&A.type.__radixId===z4}function Y4(A,t){const r={...t};for(const i in t){const s=A[i],l=t[i];/^on[A-Z]/.test(i)?s&&l?r[i]=(...u)=>{const f=l(...u);return s(...u),f}:s&&(r[i]=s):i==="style"?r[i]={...s,...l}:i==="className"&&(r[i]=[s,l].filter(Boolean).join(" "))}return{...A,...r}}function X4(A){let t=Object.getOwnPropertyDescriptor(A.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?A.ref:(t=Object.getOwnPropertyDescriptor(A,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?A.props.ref:A.props.ref||A.ref)}const _p=A=>typeof A=="boolean"?`${A}`:A===0?"0":A,Mp=fp,q4=((A,t)=>r=>{var i;if(t?.variants==null)return Mp(A,r?.class,r?.className);const{variants:s,defaultVariants:l}=t,c=Object.keys(s).map(h=>{const m=r?.[h],B=l?.[h];if(m===null)return null;const w=_p(m)||_p(B);return s[h][w]}),u=r&&Object.entries(r).reduce((h,m)=>{let[B,w]=m;return w===void 0||(h[B]=w),h},{}),f=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((h,m)=>{let{class:B,className:w,...C}=m;return Object.entries(C).every(E=>{let[v,F]=E;return Array.isArray(F)?F.includes({...l,...u}[v]):{...l,...u}[v]===F})?[...h,B,w]:h},[]);return Mp(A,c,f,r?.class,r?.className)})("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),VA=b.forwardRef(({className:A,variant:t,size:r,asChild:i=!1,...s},l)=>{const c=i?V4:"button";return g.jsx(c,{className:mA(q4({variant:t,size:r,className:A})),ref:l,...s})});VA.displayName="Button";const J4=A=>A.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Z4=A=>A.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,i)=>i?i.toUpperCase():r.toLowerCase()),Op=A=>{const t=Z4(A);return t.charAt(0).toUpperCase()+t.slice(1)},Rp=(...A)=>A.filter((t,r,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===r).join(" ").trim(),W4=A=>{for(const t in A)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var $4={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Ab=b.forwardRef(({color:A="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:l,iconNode:c,...u},f)=>b.createElement("svg",{ref:f,...$4,width:t,height:t,stroke:A,strokeWidth:i?Number(r)*24/Number(t):r,className:Rp("lucide",s),...!l&&!W4(u)&&{"aria-hidden":"true"},...u},[...c.map(([h,m])=>b.createElement(h,m)),...Array.isArray(l)?l:[l]]));const ZA=(A,t)=>{const r=b.forwardRef(({className:i,...s},l)=>b.createElement(Ab,{ref:l,iconNode:t,className:Rp(`lucide-${J4(Op(A))}`,`lucide-${A}`,i),...s}));return r.displayName=Op(A),r};const eb=ZA("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);const Lp=ZA("building-2",[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]]);const tb=ZA("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);const nb=ZA("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);const Ll=ZA("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const es=ZA("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const Dp=ZA("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);const kp=ZA("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const rb=ZA("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const ib=ZA("dollar-sign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);const ab=ZA("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);const sb=ZA("euro",[["path",{d:"M4 10h12",key:"1y6xl8"}],["path",{d:"M4 14h9",key:"1loblj"}],["path",{d:"M19 6a7.7 7.7 0 0 0-5.2-2A7.9 7.9 0 0 0 6 12c0 4.4 3.5 8 7.8 8 2 0 3.8-.8 5.2-2",key:"1j6lzo"}]]);const lb=ZA("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);const ob=ZA("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const cb=ZA("indian-rupee",[["path",{d:"M6 3h12",key:"ggurg9"}],["path",{d:"M6 8h12",key:"6g4wlu"}],["path",{d:"m6 13 8.5 8",key:"u1kupk"}],["path",{d:"M6 13h3",key:"wdp6ag"}],["path",{d:"M9 13c6.667 0 6.667-10 0-10",key:"1nkvk2"}]]);const ub=ZA("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);const fb=ZA("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);const db=ZA("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);const Dl=ZA("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);const hb=ZA("map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);const gb=ZA("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]);const jp=ZA("message-square-plus",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]]);const pb=ZA("mic-off",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]]);const Ou=ZA("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]);const mb=ZA("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]]);const Bb=ZA("phone-off",[["path",{d:"M10.1 13.9a14 14 0 0 0 3.732 2.668 1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 18 18 0 0 1-12.728-5.272",key:"1wngk7"}],["path",{d:"M22 2 2 22",key:"y4kqgn"}],["path",{d:"M4.76 13.582A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 .244.473",key:"10hv5p"}]]);const Cb=ZA("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const wb=ZA("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);const Kp=ZA("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);const Vp=ZA("thumbs-up",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);const Gp=ZA("thumbs-down",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);const yb=ZA("ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]);const Eb=ZA("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const ts=ZA("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),zp=A=>{let t;const r=new Set,i=(h,m)=>{const B=typeof h=="function"?h(t):h;if(!Object.is(B,t)){const w=t;t=m??(typeof B!="object"||B===null)?B:Object.assign({},t,B),r.forEach(C=>C(t,w))}},s=()=>t,u={setState:i,getState:s,getInitialState:()=>f,subscribe:h=>(r.add(h),()=>r.delete(h))},f=t=A(i,s,u);return u},vb=(A=>A?zp(A):zp),bb=A=>A;function xb(A,t=bb){const r=Ta.useSyncExternalStore(A.subscribe,Ta.useCallback(()=>t(A.getState()),[A,t]),Ta.useCallback(()=>t(A.getInitialState()),[A,t]));return Ta.useDebugValue(r),r}const Pp=A=>{const t=vb(A),r=i=>xb(t,i);return Object.assign(r,t),r},Sb=(A=>A?Pp(A):Pp);function Yp(A,t){let r;try{r=A()}catch{return}return{getItem:s=>{var l;const c=f=>f===null?null:JSON.parse(f,void 0),u=(l=r.getItem(s))!=null?l:null;return u instanceof Promise?u.then(c):c(u)},setItem:(s,l)=>r.setItem(s,JSON.stringify(l,void 0)),removeItem:s=>r.removeItem(s)}}const Ru=A=>t=>{try{const r=A(t);return r instanceof Promise?r:{then(i){return Ru(i)(r)},catch(i){return this}}}catch(r){return{then(i){return this},catch(i){return Ru(i)(r)}}}},Qb=(A,t)=>(r,i,s)=>{let l={storage:Yp(()=>localStorage),partialize:v=>v,version:0,merge:(v,F)=>({...F,...v}),...t},c=!1;const u=new Set,f=new Set;let h=l.storage;if(!h)return A((...v)=>{r(...v)},i,s);const m=()=>{const v=l.partialize({...i()});return h.setItem(l.name,{state:v,version:l.version})},B=s.setState;s.setState=(v,F)=>(B(v,F),m());const w=A((...v)=>(r(...v),m()),i,s);s.getInitialState=()=>w;let C;const E=()=>{var v,F;if(!h)return;c=!1,u.forEach(I=>{var O;return I((O=i())!=null?O:w)});const Q=((F=l.onRehydrateStorage)==null?void 0:F.call(l,(v=i())!=null?v:w))||void 0;return Ru(h.getItem.bind(h))(l.name).then(I=>{if(I)if(typeof I.version=="number"&&I.version!==l.version){if(l.migrate){const O=l.migrate(I.state,I.version);return O instanceof Promise?O.then(K=>[!0,K]):[!0,O]}}else return[!1,I.state];return[!1,void 0]}).then(I=>{var O;const[K,j]=I;if(C=l.merge(j,(O=i())!=null?O:w),r(C,!0),K)return m()}).then(()=>{Q?.(C,void 0),C=i(),c=!0,f.forEach(I=>I(C))}).catch(I=>{Q?.(void 0,I)})};return s.persist={setOptions:v=>{l={...l,...v},v.storage&&(h=v.storage)},clearStorage:()=>{h?.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>E(),hasHydrated:()=>c,onHydrate:v=>(u.add(v),()=>{u.delete(v)}),onFinishHydration:v=>(f.add(v),()=>{f.delete(v)})},l.skipHydration||E(),C||w},bt={USER:"user",ASSISTANT:"assistant"};var Ce=(A=>(A.IDLE="idle",A.LISTENING="listening",A.ERROR="error",A.PROCESSING="processing",A.TRANSCRIBING="transcribing",A))(Ce||{}),qe=(A=>(A.CONNECTED="connected",A.NOT_CONNECTED="not_connected",A.CONNECTING="connecting",A))(qe||{});let tr="";const Ub=A=>{tr=`med-assist-store-${A}`},Xp={sessionId:"",sessionToken:"",isStreaming:!1,recordingStatus:Ce.IDLE,isWaitingForResponse:!1,error:null,isTimeoutError:!1,startNewConnection:!1,showRetryButton:!1,chats:{},inlineText:null,isRefreshingSession:!1,ConnectionStatus:qe.CONNECTING,streamingTimeoutId:null,responseTimeoutId:null,lastStreamingActivity:null,progressMessage:null,fileUploadPerSession:0,elicitationState:{},toastMessage:null},WA=Sb()(Qb((A,t)=>({sessionId:"",setSessionId:r=>A({sessionId:r}),sessionToken:"",setSessionToken:r=>A({sessionToken:r}),initialMessage:null,setInitialMessage:r=>A({initialMessage:r}),agentId:"",setAgentId:r=>A({agentId:r}),userId:"",setUserId:r=>A({userId:r}),context:null,setContext:r=>A({context:r}),connectionStatus:qe.CONNECTING,setConnectionStatus:r=>A({connectionStatus:r}),isStreaming:!1,setIsStreaming:r=>A({isStreaming:r}),isWaitingForResponse:!1,setIsWaitingForResponse:r=>A({isWaitingForResponse:r}),progressMessage:null,setProgressMessage:r=>A({progressMessage:r}),recordingStatus:Ce.IDLE,setRecordingStatus:r=>A({recordingStatus:r}),startNewConnection:!1,setStartNewConnection:r=>A({startNewConnection:r}),fileUploadPerSession:0,setFileUploadPerSession:r=>A({fileUploadPerSession:r}),elicitationState:{},setElicitationState:r=>A({elicitationState:r}),upsertElicitationState:(r,i)=>{const s=t().elicitationState;A({elicitationState:{...s,[r]:i}})},toastMessage:null,setToastMessage:r=>A({toastMessage:r}),inlineText:null,setInlineText:r=>A({inlineText:r}),isBotIconAnimating:!1,setIsBotIconAnimating:r=>A({isBotIconAnimating:r}),isMobile:!1,setIsMobile:r=>A({isMobile:r}),displayMode:"widget",setDisplayMode:r=>A({displayMode:r}),toggleDisplayMode:()=>A({displayMode:t().displayMode==="full"?"widget":"full"}),initialDisplayMode:"widget",setInitialDisplayMode:r=>A({initialDisplayMode:r}),chats:{},addMessageToSession:(r,i)=>{A(s=>({chats:{...s.chats,[r]:[...s.chats[r]||[],i]}}))},updateMessageInSession:(r,i,s)=>A(l=>({chats:{...l.chats,[r]:(l.chats[r]||[]).map(c=>c.id===i?{...c,...s}:c)}})),getMessagesForSession:r=>t().chats[r]||[],clearMessagesForSession:r=>A(i=>({chats:{...i.chats,[r]:[]}})),clearAllChats:()=>A({chats:{}}),error:null,setError:r=>A({error:r}),clearError:()=>A({error:null,isTimeoutError:!1,showRetryButton:!1,startNewConnection:!1}),showRetryButton:!1,setShowRetryButton:r=>A({showRetryButton:r}),isTimeoutError:!1,setTimeoutError:r=>A({isTimeoutError:r}),clearSession:async()=>{A(Xp),await sessionStorage.removeItem(tr||`med-assist-store-${t().agentId}`)},streamingTimeoutId:null,setStreamingTimeoutId:r=>A({streamingTimeoutId:r}),clearStreamingTimeout:()=>{const r=t();r.streamingTimeoutId&&(clearTimeout(r.streamingTimeoutId),A({streamingTimeoutId:null}))},responseTimeoutId:null,setResponseTimeoutId:r=>A({responseTimeoutId:r}),clearResponseTimeout:()=>{const r=t();r.responseTimeoutId&&(clearTimeout(r.responseTimeoutId),A({responseTimeoutId:null}))},lastStreamingActivity:null,setLastStreamingActivity:r=>A({lastStreamingActivity:r})}),{name:"med-assist-store",storage:Yp(()=>({getItem:()=>tr?sessionStorage.getItem(tr):null,setItem:(A,t)=>{tr&&sessionStorage.setItem(tr,t)},removeItem:()=>{tr&&sessionStorage.removeItem(tr)}})),partialize:A=>({agentId:A.agentId,userId:A.userId,context:A.context,chats:A.chats,sessionId:A.sessionId,sessionToken:A.sessionToken,initialMessage:A.initialMessage,connectionStatus:A.connectionStatus,elicitationState:A.elicitationState})})),Fb=A=>{const t=`med-assist-store-${A}`;let r=null;try{const i=sessionStorage.getItem(t);if(i){const s=JSON.parse(i);s?.state&&(r=s.state)}}catch{}WA.setState(Xp),r&&WA.setState(r)},Lu=b.createContext(null),Tb=({children:A})=>{const[t,r]=b.useState(null);return g.jsx(Lu.Provider,{value:{synapse:t,setSynapse:r},children:A})},Nb=()=>{const A=b.useContext(Lu);if(!A)throw new Error("useSynapse must be used within a SynapseProvider");return A.synapse},Ib=()=>{const A=b.useContext(Lu);if(!A)throw new Error("useSynapseSetter must be used within a SynapseProvider");return A.setSynapse},Hb=()=>{const[A,t]=b.useState(dA.VOICE_AGENT_STATE.IDLE),[r,i]=b.useState(!1),s=Nb(),{setError:l}=WA();b.useEffect(()=>{if(!s)return;const m=s.voice,B=C=>{t(C)},w=()=>{l({title:"Voice connection failed. Please try again."})};return m.on(dA.VOICE_AGENT_EVENTS.STATE_CHANGED,B),m.on(dA.VOICE_AGENT_EVENTS.ERROR,w),()=>{m.off(dA.VOICE_AGENT_EVENTS.STATE_CHANGED,B),m.off(dA.VOICE_AGENT_EVENTS.ERROR,w)}},[s,l]);const c=b.useCallback(async()=>{if(!s){l({title:"Voice connection failed. Please try again."});return}await s.voice.connect()},[s,l]),u=b.useCallback(()=>{s?.voice.disconnect(),r&&i(!1)},[s]),f=b.useCallback(()=>{s?.voice.reset(),r&&i(!1)},[s]),h=b.useCallback(()=>{i(m=>!m),s?.voice.toggleMute()},[s]);return{state:A,isMuted:r,connect:c,disconnect:u,reset:f,toggleMute:h}},Pr=b.forwardRef(({className:A,...t},r)=>g.jsx("div",{ref:r,className:mA("rounded-xl bg-elicitationBg text-card-foreground shadow",A),...t}));Pr.displayName="Card";const Du=b.forwardRef(({className:A,...t},r)=>g.jsx("div",{ref:r,className:mA("flex flex-col space-y-1.5 p-6",A),...t}));Du.displayName="CardHeader";const qp=b.forwardRef(({className:A,...t},r)=>g.jsx("div",{ref:r,className:mA("font-semibold leading-none tracking-tight",A),...t}));qp.displayName="CardTitle";const _b=b.forwardRef(({className:A,...t},r)=>g.jsx("div",{ref:r,className:mA("text-sm text-muted-foreground",A),...t}));_b.displayName="CardDescription";const kl=b.forwardRef(({className:A,...t},r)=>g.jsx("div",{ref:r,className:mA("p-6 pt-0",A),...t}));kl.displayName="CardContent";const Jp=b.forwardRef(({className:A,...t},r)=>g.jsx("div",{ref:r,className:mA("flex items-center p-6 pt-0",A),...t}));Jp.displayName="CardFooter";function Mb(A,t=[]){let r=[];function i(l,c){const u=b.createContext(c);u.displayName=l+"Context";const f=r.length;r=[...r,c];const h=B=>{const{scope:w,children:C,...E}=B,v=w?.[A]?.[f]||u,F=b.useMemo(()=>E,Object.values(E));return g.jsx(v.Provider,{value:F,children:C})};h.displayName=l+"Provider";function m(B,w){const C=w?.[A]?.[f]||u,E=b.useContext(C);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${B}\` must be used within \`${l}\``)}return[h,m]}const s=()=>{const l=r.map(c=>b.createContext(c));return function(u){const f=u?.[A]||l;return b.useMemo(()=>({[`__scope${A}`]:{...u,[A]:f}}),[u,f])}};return s.scopeName=A,[i,Ob(s,...t)]}function Ob(...A){const t=A[0];if(A.length===1)return t;const r=()=>{const i=A.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(l){const c=i.reduce((u,{useScope:f,scopeName:h})=>{const B=f(l)[`__scope${h}`];return{...u,...B}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return r.scopeName=t.scopeName,r}var Rb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ku=Rb.reduce((A,t)=>{const r=Hp(`Primitive.${t}`),i=b.forwardRef((s,l)=>{const{asChild:c,...u}=s,f=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(f,{...u,ref:l})});return i.displayName=`Primitive.${t}`,{...A,[t]:i}},{}),ju={exports:{}},Ku={};var Zp;function Lb(){if(Zp)return Ku;Zp=1;var A=xl();function t(B,w){return B===w&&(B!==0||1/B===1/w)||B!==B&&w!==w}var r=typeof Object.is=="function"?Object.is:t,i=A.useState,s=A.useEffect,l=A.useLayoutEffect,c=A.useDebugValue;function u(B,w){var C=w(),E=i({inst:{value:C,getSnapshot:w}}),v=E[0].inst,F=E[1];return l(function(){v.value=C,v.getSnapshot=w,f(v)&&F({inst:v})},[B,C,w]),s(function(){return f(v)&&F({inst:v}),B(function(){f(v)&&F({inst:v})})},[B]),c(C),C}function f(B){var w=B.getSnapshot;B=B.value;try{var C=w();return!r(B,C)}catch{return!0}}function h(B,w){return w()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:u;return Ku.useSyncExternalStore=A.useSyncExternalStore!==void 0?A.useSyncExternalStore:m,Ku}var Wp;function Db(){return Wp||(Wp=1,ju.exports=Lb()),ju.exports}var kb=Db();function jb(){return kb.useSyncExternalStore(Kb,()=>!0,()=>!1)}function Kb(){return()=>{}}var Vu="Avatar",[Vb]=Mb(Vu),[Gb,$p]=Vb(Vu),Am=b.forwardRef((A,t)=>{const{__scopeAvatar:r,...i}=A,[s,l]=b.useState("idle");return g.jsx(Gb,{scope:r,imageLoadingStatus:s,onImageLoadingStatusChange:l,children:g.jsx(ku.span,{...i,ref:t})})});Am.displayName=Vu;var em="AvatarImage",tm=b.forwardRef((A,t)=>{const{__scopeAvatar:r,src:i,onLoadingStatusChange:s=()=>{},...l}=A,c=$p(em,r),u=zb(i,l),f=Ar(h=>{s(h),c.onImageLoadingStatusChange(h)});return $n(()=>{u!=="idle"&&f(u)},[u,f]),u==="loaded"?g.jsx(ku.img,{...l,ref:t,src:i}):null});tm.displayName=em;var nm="AvatarFallback",rm=b.forwardRef((A,t)=>{const{__scopeAvatar:r,delayMs:i,...s}=A,l=$p(nm,r),[c,u]=b.useState(i===void 0);return b.useEffect(()=>{if(i!==void 0){const f=window.setTimeout(()=>u(!0),i);return()=>window.clearTimeout(f)}},[i]),c&&l.imageLoadingStatus!=="loaded"?g.jsx(ku.span,{...s,ref:t}):null});rm.displayName=nm;function im(A,t){return A?t?(A.src!==t&&(A.src=t),A.complete&&A.naturalWidth>0?"loaded":"loading"):"error":"idle"}function zb(A,{referrerPolicy:t,crossOrigin:r}){const i=jb(),s=b.useRef(null),l=i?(s.current||(s.current=new window.Image),s.current):null,[c,u]=b.useState(()=>im(l,A));return $n(()=>{u(im(l,A))},[l,A]),$n(()=>{const f=B=>()=>{u(B)};if(!l)return;const h=f("loaded"),m=f("error");return l.addEventListener("load",h),l.addEventListener("error",m),t&&(l.referrerPolicy=t),typeof r=="string"&&(l.crossOrigin=r),()=>{l.removeEventListener("load",h),l.removeEventListener("error",m)}},[l,r,t]),c}var am=Am,sm=tm,lm=rm;const Gu=b.forwardRef(({className:A,...t},r)=>g.jsx(am,{ref:r,className:mA("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",A),...t}));Gu.displayName=am.displayName;const om=b.forwardRef(({className:A,...t},r)=>g.jsx(sm,{ref:r,className:mA("aspect-square h-full w-full",A),...t}));om.displayName=sm.displayName;const zu=b.forwardRef(({className:A,...t},r)=>g.jsx(lm,{ref:r,className:mA("flex h-full w-full items-center justify-center rounded-full bg-muted",A),...t}));zu.displayName=lm.displayName;const cm=b.createContext(!1);function Pb({enabled:A,children:t}){return g.jsx(cm.Provider,{value:A,children:t})}function Yb(){return b.useContext(cm)}const um="(max-width: 768px), (pointer: coarse)",fm=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i;function Xb(){if(typeof window>"u")return!1;const A=window.matchMedia?.(um)?.matches??!1,t=fm.test(navigator?.userAgent??"");return A||t}function dm(){const[A,t]=b.useState(Xb);return b.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(um),i=fm.test(navigator?.userAgent??""),s=()=>t(r.matches||i);return s(),r.addEventListener("change",s),()=>r.removeEventListener("change",s)},[]),A}function qb({onClose:A,showCloseButton:t=!0,title:r,titleImg:i,tagline:s,iconUrl:l,startNewConversation:c,voiceAgentState:u="idle",headerTinted:f=!1,onToggleDisplayMode:h}){const m=dm(),w=Yb()&&!m,C=WA(_=>_.displayMode)==="full",E=WA(_=>_.initialDisplayMode)==="full",F=(C?!1:f)?"text-primary-foreground":"text-foreground",Q=WA(_=>_.connectionStatus),[I,O]=b.useState(!1),K=b.useRef(null),j=b.useMemo(()=>u==="connected"||u==="connecting"||u==="listening"||u==="speaking"||u==="thinking",[u]),T=b.useCallback(()=>{I||(O(!0),K.current&&clearTimeout(K.current),K.current=setTimeout(()=>{K.current=null,O(!1)},3e3),c())},[I,c]);b.useEffect(()=>{Q!==dA.ConnectionStatus.CONNECTED&&(O(!0),K.current&&clearTimeout(K.current),K.current=setTimeout(()=>{K.current=null,O(!1)},3e3))},[Q]);const R=(()=>{switch(Q){case dA.ConnectionStatus.CONNECTED:return{dotColor:"bg-green-500",text:s||"Online",textColor:"text-green-600"};case dA.ConnectionStatus.CONNECTING:return{dotColor:"bg-amber-500",text:"Connecting",textColor:"text-amber-600"};case dA.ConnectionStatus.NOT_CONNECTED:return{dotColor:"bg-red-500",text:"Not Connected",textColor:"text-red-600"};default:return{dotColor:"bg-text-tertiary",text:"Not Connected",textColor:"text-text-secondary"}}})();return g.jsx("div",{className:"px-6 py-3",children:g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsxs("div",{className:"relative flex-shrink-0",children:[g.jsx(Gu,{className:"w-12 h-12 bg-gradient-to-br from-primary to-primary flex-shrink-0 shadow-md ring-0",children:g.jsx(zu,{className:"text-primary-foreground font-bold text-lg bg-transparent",children:l?g.jsx("img",{src:l,alt:"Bot Icon",className:"w-12 h-12 rounded-full object-cover"}):g.jsx("span",{className:"text-primary-foreground font-bold text-lg bg-transparent",children:"MC"})})}),g.jsx("div",{className:mA("absolute bottom-0 right-0 w-3.5 h-3.5 rounded-full border-2 border-white shadow-sm",R.dotColor,Q===dA.ConnectionStatus.CONNECTING&&"animate-pulse")})]}),g.jsxs("div",{className:"flex flex-col",children:[i?g.jsx("img",{src:i,alt:"",className:"h-6 object-contain"}):g.jsx("p",{className:mA("text-lg font-semibold",F),children:r||"Health Assist"}),g.jsx("div",{className:"flex items-center gap-1.5",children:g.jsx("span",{className:"text-xs font-medium",style:{color:"var(--header-tagline)"},children:R.text})})]})]}),g.jsxs("div",{className:mA("flex items-center",!w&&"gap-2"),children:[!j&&g.jsx(VA,{type:"button",variant:"ghost",size:"icon",title:"Start New Chat",onClick:T,disabled:I,className:mA("h-8 w-8 p-1.5 hover:bg-primary hover:text-primary-foreground rounded-full transition-all duration-200 disabled:opacity-60 disabled:pointer-events-none",F),children:g.jsx(jp,{className:"w-5 h-5"})}),w&&g.jsx(VA,{onClick:h,type:"button",variant:"ghost",size:"icon",title:C?"Exit fullscreen":"Enter fullscreen",className:mA("h-8 w-8 hover:bg-primary hover:text-primary-foreground rounded-full transition-all duration-200",F),children:C?g.jsx(mb,{className:"w-8 h-8"}):g.jsx(gb,{className:"w-8 h-8"})}),t&&!E&&g.jsx(VA,{onClick:A,type:"button",variant:"ghost",size:"icon",title:"Close",className:mA("h-8 w-8 hover:bg-primary hover:text-primary-foreground rounded-full transition-all duration-200",F),children:g.jsx(ts,{className:"w-8 h-8"})})]})]})})}const Pu=5,Jb=10*1024*1024,jl={width:384,height:600},Kl=20,Zb=150;function Wb({defaultPosition:A,enabled:t=!0,onDragStart:r,onDragEnd:i}={}){const s=b.useCallback(()=>typeof window>"u"?{x:0,y:0}:{x:window.innerWidth-jl.width-Kl,y:window.innerHeight-jl.height-Kl},[]),[l,c]=b.useState(()=>A??s()),[u,f]=b.useState(!1),h=b.useRef({x:0,y:0}),m=b.useRef(null),B=b.useRef(!1);b.useEffect(()=>{t||(B.current=!1)},[t]),b.useLayoutEffect(()=>{!t||B.current||typeof window>"u"||(c(A||s()),B.current=!0)},[t,A,s]),b.useEffect(()=>{if(!t||typeof window>"u")return;let v=null;const F=()=>{c(I=>{const O=Math.max(0,window.innerWidth-jl.width-Kl),K=Math.max(0,window.innerHeight-jl.height-Kl),j=Math.max(0,Math.min(I.x,O)),T=Math.max(0,Math.min(I.y,K));return j===I.x&&T===I.y?I:{x:j,y:T}})},Q=()=>{v!==null&&clearTimeout(v),v=setTimeout(F,Zb)};return window.addEventListener("resize",Q),()=>{window.removeEventListener("resize",Q),v!==null&&clearTimeout(v)}},[t]);const w=b.useCallback(v=>{if(!t)return;if(!v.target.closest(".synapse-chat-widget-header")){f(!1);return}v.preventDefault(),f(!0);const Q=m.current;if(Q){const I=Q.getBoundingClientRect();h.current={x:v.clientX-I.left,y:v.clientY-I.top}}else h.current={x:v.clientX-l.x,y:v.clientY-l.y};r?.()},[t,l.x,l.y,r]),C=b.useCallback(v=>{if(!t||!u)return;const F=v.clientX-h.current.x,Q=v.clientY-h.current.y,I=window.innerWidth-(m.current?.offsetWidth||0),O=window.innerHeight-(m.current?.offsetHeight||0),K=Math.max(0,Math.min(F,I)),j=Math.max(0,Math.min(Q,O));c({x:K,y:j})},[u,t]),E=b.useCallback(()=>{!t||!u||(f(!1),i?.())},[u,i]);return b.useEffect(()=>{if(!t)return;const v=m.current;if(v)return v.addEventListener("mousedown",w),()=>{v.removeEventListener("mousedown",w)}},[t,w]),b.useEffect(()=>{if(u)return document.addEventListener("mousemove",C),document.addEventListener("mouseup",E),document.body.style.cursor="grabbing",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",E),document.body.style.cursor="",document.body.style.userSelect=""}},[u,C,E]),{position:l,isDragging:u,elementRef:m,setPosition:c}}const Yu="#6B5CE0",Vl={background:"#F0F0F0",backgroundImage:void 0,primary:Yu,textColor:"black"},$b="rgba(0, 0, 0, 0.4)",Ax="24px";function ex(A){if(A==="dark")return"white";if(A==="light")return"black"}function tx(A){const t=A?.primary??A?.primaryColor??Vl.primary,r=A?.textColor??ex(A?.mode);return{background:A?.background??Vl.background,backgroundImage:A?.backgroundImage??Vl.backgroundImage,primary:t,primaryColor:t,textColor:r??Vl.textColor,mode:A?.mode,headerTinted:A?.headerTinted,secondaryColor:A?.secondaryColor,tertiaryColor:A?.tertiaryColor}}function nx(A){A=A.replace("#","");const t=parseInt(A.substring(0,2),16)/255,r=parseInt(A.substring(2,4),16)/255,i=parseInt(A.substring(4,6),16)/255,s=Math.max(t,r,i),l=Math.min(t,r,i);let c=0,u=0;const f=(s+l)/2;if(s!==l){const m=s-l;switch(u=f>.5?m/(2-s-l):m/(s+l),s){case t:c=((r-i)/m+(r<i?6:0))/6;break;case r:c=((i-t)/m+2)/6;break;case i:c=((t-r)/m+4)/6;break}}c=Math.round(c*360),u=Math.round(u*100);const h=Math.round(f*100);return`${c} ${u}% ${h}%`}function rx(A){const t=A.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);if(!t)throw new Error("Invalid RGB format");const r=parseInt(t[1],10)/255,i=parseInt(t[2],10)/255,s=parseInt(t[3],10)/255,l=Math.max(r,i,s),c=Math.min(r,i,s);let u=0,f=0;const h=(l+c)/2;if(l!==c){const B=l-c;switch(f=h>.5?B/(2-l-c):B/(l+c),l){case r:u=((i-s)/B+(i<s?6:0))/6;break;case i:u=((s-r)/B+2)/6;break;case s:u=((r-i)/B+4)/6;break}}u=Math.round(u*360),f=Math.round(f*100);const m=Math.round(h*100);return`${u} ${f}% ${m}%`}function ix(A){const t=A.match(/hsl\((\d+),\s*(\d+)%,\s*(\d+)%\)/);if(!t)throw new Error("Invalid HSL format");return`${t[1]} ${t[2]}% ${t[3]}%`}function Xu(A){if(!A||typeof A!="string")throw new Error("Color must be a non-empty string");const t=A.trim();if(t.startsWith("#"))return nx(t);if(t.startsWith("rgb"))return rx(t);if(t.startsWith("hsl"))return ix(t);if(/^\d+\s+\d+%\s+\d+%$/.test(t))return t;throw new Error(`Unsupported color format: ${A}`)}function hm(A){const t=A.match(/(\d+)\s+(\d+)%\s+(\d+)%/);return t?parseInt(t[3],10)/100:.5}function qu(A){return hm(A)>.5?"0 0% 9%":"0 0% 98%"}function ax(A){const t=A.match(/(\d+)\s+(\d+)%\s+(\d+)%/);if(!t)return"0 0% 96%";const r=t[1],i=Math.max(0,parseInt(t[2],10)-5);return`${r} ${i}% 96%`}function sx(A){const t=A.match(/(\d+)\s+(\d+)%\s+(\d+)%/);if(!t)return{50:"262 83% 98%",100:"262 83% 96%",200:"262 83% 92%",300:"262 83% 85%",400:"262 83% 75%",500:"262 83% 58%",600:"262 83% 50%",700:"262 83% 40%",800:"262 83% 30%",900:"262 83% 20%"};const r=parseInt(t[1],10),i=parseInt(t[2],10),s=parseInt(t[3],10);return{50:`${r} ${Math.max(0,i-20)}% ${Math.min(98,s+40)}%`,100:`${r} ${Math.max(0,i-15)}% ${Math.min(96,s+35)}%`,200:`${r} ${Math.max(0,i-10)}% ${Math.min(92,s+30)}%`,300:`${r} ${Math.max(0,i-5)}% ${Math.min(85,s+20)}%`,400:`${r} ${i}% ${Math.min(75,s+10)}%`,500:`${r} ${i}% ${s}%`,600:`${r} ${Math.min(100,i+5)}% ${Math.max(50,s-10)}%`,700:`${r} ${Math.min(100,i+10)}% ${Math.max(40,s-20)}%`,800:`${r} ${Math.min(100,i+15)}% ${Math.max(30,s-30)}%`,900:`${r} ${Math.min(100,i+20)}% ${Math.max(20,s-40)}%`}}function gm(A,t){const r=t.primary??Yu,i=t.textColor??"black",s=!!t.backgroundImage,l=t.mode==="dark"||i==="white",c=t.headerTinted??!1,u=(C,E)=>{const v=A instanceof ShadowRoot?A.host:A;v instanceof HTMLElement&&v.style.setProperty(C,E)};let f;try{f=Xu(r)}catch{f=Xu(Yu)}u("--primary",f),u("--primary-foreground",qu(f)),u("--ring",f),u("--border-primary",f);const h=sx(f);for(const[C,E]of Object.entries(h))u(`--primary-${C}`,E);const m=qu(f);if(u("--color-on-primary",m),s)u("--background","0 0% 0% / 0"),u("--widget-bg-overlay","transparent");else{const C=l?"#191919":"#F0F0F0";try{u("--background",Xu(C))}catch{u("--background",l?"0 0% 10%":"0 0% 94.1%")}u("--widget-bg-overlay",`hsl(${f} / ${c?.05:.1})`)}if(l?u("--bot-message-bg","var(--black-600)"):u("--bot-message-bg","var(--white-600)"),l?u("--card","0 0% 0% / 0.6"):u("--card","0 0% 100% / 0.6"),u("--bot-message-border",ax(l?"0 0% 100%":"0 0% 9%")),l?(u("--foreground","0 0% 100%"),u("--card-foreground","0 0% 100%"),u("--popover-foreground","0 0% 100%"),u("--muted-foreground","0 0% 70%"),u("--normal-text-color","var(--white-1000)")):(u("--foreground","0 0% 0%"),u("--card-foreground","0 0% 0%"),u("--popover-foreground","0 0% 0%"),u("--muted-foreground","0 0% 30%"),u("--normal-text-color","var(--black-1000)")),s?(u("--header-bg","transparent"),u("--header-stroke",l?"var(--white-200)":"var(--black-200)")):c?(u("--header-bg",`hsl(${f})`),u("--header-stroke",`hsl(${f} / 0.3)`)):(u("--header-bg",l?"var(--black-700)":"var(--white-700)"),u("--header-stroke",`hsl(${f} / 0.3)`)),s?(u("--footer-bg","transparent"),u("--footer-stroke",l?"var(--white-200)":"var(--black-200)")):(u("--footer-bg",l?"var(--black-700)":"var(--white-700)"),u("--footer-stroke",`hsl(${f} / 0.3)`)),c&&!s){const C=hm(m)>.5;u("--header-tagline",C?"var(--white-600)":"var(--black-600)")}else u("--header-tagline",l?"var(--white-600)":"var(--black-600)");u("--elicitation-bg",l?"var(--black-1000)":"var(--white-1000)"),u("--input-box-bg",l?"var(--white-100)":"var(--black-100)");const B=A instanceof ShadowRoot?A.host:A;B instanceof HTMLElement&&(B.setAttribute("data-text-color",i),B.setAttribute("data-header-tinted",String(c))),s?u("--popover",l?"0 0% 0% / 0.5":"0 0% 100% / 0.5"):c?u("--popover",f):u("--popover",l?"0 0% 0% / 0.7":"0 0% 100% / 0.7");const w=l?"white":"black";for(const C of[50,100,200,300,400,500,600,700,800,900,1e3])u(`--popover-${C}`,`var(--${w}-${C})`);u("--secondary",l?"0 0% 15%":"0 0% 96.1%"),u("--surface-secondary",l?"0 0% 15%":"0 0% 96.1%"),u("--secondary-foreground",l?"0 0% 98%":"0 0% 9%"),u("--muted",l?"0 0% 15%":"0 0% 96.1%"),u("--accent",f),u("--accent-foreground",qu(f)),s?u("--surface",l?"0 0% 0% / 0.6":"0 0% 100% / 0.6"):u("--surface",l?"0 0% 10%":"0 0% 94.1%"),u("--surface-tertiary",l?"0 0% 12%":"0 0% 98%"),u("--border-subtle",l?"0 0% 20%":"0 0% 89.8%"),u("--border-medium",l?"0 0% 30%":"0 0% 80%"),u("--text-primary",l?"0 0% 100%":"0 0% 3.9%"),u("--text-secondary",l?"0 0% 70%":"0 0% 45.1%"),u("--text-tertiary",l?"0 0% 60%":"0 0% 63.9%"),u("--text-muted",l?"0 0% 70%":"0 0% 45.1%"),u("--border",l?"0 0% 20%":"0 0% 89.8%"),u("--input",l?"0 0% 20%":"0 0% 89.8%"),s?(u("--theme-background-image",`url(${t.backgroundImage})`),u("--theme-background-blur",Ax),u("--theme-background-overlay",$b),B instanceof HTMLElement&&B.classList.add("theme-with-background")):(u("--theme-background-image","none"),u("--theme-background-blur","0px"),u("--theme-background-overlay","rgba(0, 0, 0, 0)"),B instanceof HTMLElement&&B.classList.remove("theme-with-background"))}const lx=({className:A})=>g.jsxs("svg",{width:"56",height:"16",viewBox:"0 0 56 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:A,children:[g.jsx("path",{d:"M14.1045 10.008C13.9751 9.77059 13.8132 9.55372 13.6245 9.36306L12.6045 8.34303L11.6236 9.32386L12.6316 10.3318C12.9003 10.6003 13.0664 10.9714 13.0664 11.3815C13.0664 11.7915 12.9122 12.1356 12.6603 12.4018L12.6595 12.4026C12.6502 12.4122 12.6409 12.4218 12.6316 12.4314C11.9809 13.0981 11.1831 13.621 10.2908 13.9475C9.61708 14.194 8.88919 14.3285 8.13028 14.3285C7.48701 14.3285 6.86657 14.2321 6.28225 14.0524C5.80337 13.9058 5.34934 13.703 4.92687 13.4526C3.07996 12.357 1.84163 10.3431 1.84163 8.03987C1.84163 5.73663 3.07996 3.72248 4.92687 2.62685C5.35076 2.37557 5.80676 2.17252 6.28734 2.02557C6.87025 1.84677 7.48926 1.75088 8.13057 1.75088C8.88752 1.75088 9.61316 1.88456 10.2852 2.12965C11.1794 2.45594 11.979 2.97907 12.6307 3.64717C12.6394 3.6559 12.6479 3.66467 12.6564 3.67339C12.9105 3.9399 13.0664 4.30059 13.0664 4.69797C13.0664 5.09532 12.9003 5.47885 12.6316 5.74761L12.4034 5.97605L11.3205 7.0587L8.95941 4.69768C8.88188 4.62096 8.8001 4.54877 8.71436 4.4811C8.22617 4.09754 7.61025 3.86856 6.94105 3.86856C6.70359 3.86856 6.4729 3.89732 6.25207 3.95201C6.09497 3.99037 5.94297 4.04197 5.79745 4.10543C5.78617 4.11023 5.7749 4.11532 5.76392 4.12037C4.76472 4.56965 4.06897 5.5739 4.06897 6.74059C4.06897 6.81194 4.07152 6.88274 4.07687 6.95296C4.07687 6.95579 4.07716 6.95859 4.07745 6.96172C4.07857 6.97892 4.08028 6.99612 4.08196 7.01332C4.11807 7.3207 4.30617 7.58186 4.56901 7.71921C4.69592 7.78546 4.84028 7.82299 4.99345 7.82299H4.99483C5.2653 7.8227 5.50868 7.7051 5.67621 7.51841C5.82228 7.35623 5.91112 7.14136 5.91112 6.90557C5.91112 6.8235 5.90039 6.74427 5.88039 6.6687C5.82876 6.4755 5.71567 6.30714 5.56337 6.18645C5.78308 5.64103 6.31694 5.25608 6.94105 5.25608C7.35108 5.25608 7.72221 5.42219 7.99097 5.69096L10.3396 8.03957L9.72963 8.64957L7.97828 10.4009C7.71065 10.6623 7.34461 10.8234 6.94105 10.8234C6.72672 10.8234 6.52279 10.7779 6.33865 10.6962C6.33752 10.6956 6.3361 10.695 6.33472 10.6945C5.98501 10.5377 5.70694 10.2497 5.56337 9.89325C5.71567 9.77226 5.82876 9.60419 5.88039 9.41074C5.90039 9.33543 5.91112 9.2559 5.91112 9.17412C5.91112 8.93834 5.82228 8.72347 5.67621 8.56103C5.50868 8.37459 5.26585 8.25699 4.99541 8.25645H4.99345C4.84028 8.25645 4.69592 8.29394 4.56901 8.36023C4.3053 8.49812 4.11694 8.76041 4.08166 9.06892C4.08141 9.07288 4.08083 9.07656 4.08054 9.08019C4.07941 9.09263 4.07828 9.10474 4.07745 9.11714C4.07745 9.12052 4.07745 9.12365 4.07687 9.12674C4.07152 9.1967 4.06897 9.26747 4.06897 9.33852C4.06897 10.5052 4.76472 11.5098 5.76392 11.959L5.79745 11.974C5.94297 12.0374 6.09497 12.089 6.25207 12.1274C6.4729 12.1821 6.70359 12.2109 6.94105 12.2109C7.61196 12.2109 8.22901 11.981 8.71774 11.5955C8.76428 11.5588 8.80966 11.5205 8.85396 11.4807L8.85508 11.4796L10.9885 9.34616L11.3174 9.01732L12.2982 8.03648L12.5887 7.74627L12.8433 7.49161L13.6093 6.72539C13.8036 6.53107 13.9703 6.30885 14.1028 6.06547C14.3245 5.65794 14.4506 5.19092 14.4506 4.69459C14.4506 4.45881 14.4221 4.22983 14.3685 4.0107C14.2475 3.51517 13.9982 3.07016 13.6575 2.71314C13.6471 2.70212 13.6367 2.69143 13.6257 2.6807C13.6242 2.67928 13.6231 2.67816 13.622 2.67674C13.6133 2.6683 13.6048 2.65954 13.5963 2.6511C13.5944 2.64885 13.5924 2.64714 13.5904 2.64543C12.1989 1.23677 10.2669 0.363647 8.13057 0.363647C7.09388 0.363647 6.10541 0.568956 5.20326 0.941502C4.75232 1.12765 4.32308 1.3555 3.92007 1.62005C1.83232 2.99234 0.454102 5.35507 0.454102 8.03987C0.454102 10.7246 1.83232 13.0874 3.92007 14.4594C4.32167 14.7231 4.74948 14.9504 5.19876 15.1359C6.10203 15.5099 7.09221 15.716 8.13057 15.716C10.2781 15.716 12.2198 14.8339 13.6127 13.4123L13.6192 13.4058C13.6237 13.4012 13.6282 13.3965 13.6327 13.392C13.6414 13.3832 13.6502 13.3742 13.6586 13.3652C13.662 13.362 13.6652 13.3587 13.6682 13.355C14.0038 13.0005 14.2501 12.5603 14.3705 12.0704C14.4252 11.8496 14.454 11.6189 14.454 11.3815C14.454 10.884 14.327 10.4161 14.1045 10.008Z",fill:"currentColor",fillOpacity:"0.9"}),g.jsx("path",{d:"M22.9902 6.98682C22.8703 6.81508 22.7161 6.66046 22.5448 6.52307C22.3734 6.38566 22.2021 6.2826 22.0136 6.19671C21.8251 6.11082 21.6366 6.04213 21.431 5.9906C21.2254 5.93907 21.0198 5.92188 20.8142 5.92188C20.5743 5.92188 20.3173 5.95624 20.0603 6.02493C19.8376 6.09366 19.6148 6.17951 19.4092 6.29977C19.0151 6.54024 18.6724 6.88377 18.4497 7.27882C18.3297 7.48493 18.2441 7.70824 18.1755 7.93155C18.107 8.17202 18.0898 8.41249 18.0898 8.65297C18.0898 8.8934 18.1241 9.13387 18.1927 9.37435C18.2612 9.59766 18.3469 9.82097 18.484 10.0271C18.7238 10.4221 19.0665 10.7657 19.4777 11.0061C19.6833 11.1264 19.9061 11.2294 20.1288 11.281C20.3516 11.3497 20.5914 11.384 20.8313 11.384H20.8485C21.0027 11.384 21.174 11.3669 21.3282 11.3325C21.4824 11.2981 21.6366 11.2638 21.7737 11.2122C21.9108 11.1607 22.0479 11.092 22.1849 11.0061C22.3049 10.9374 22.442 10.8515 22.5448 10.7657C22.5962 10.7141 22.6476 10.6626 22.699 10.6111C22.7504 10.5423 22.7675 10.4737 22.7846 10.3878C22.7846 10.3362 22.7675 10.3019 22.7504 10.2503C22.7332 10.216 22.7161 10.1817 22.699 10.1645L22.6304 10.0786C22.6133 10.0614 22.5962 10.0271 22.579 9.99271C22.5448 9.94118 22.5105 9.88966 22.4591 9.83813C22.4248 9.7866 22.3906 9.75224 22.3392 9.71788C22.2877 9.68355 22.2364 9.66635 22.1849 9.66635H22.1678H22.1507C22.0821 9.66635 22.0136 9.68355 21.9622 9.73507C21.9279 9.75224 21.8937 9.7866 21.8765 9.80377C21.808 9.85529 21.7394 9.92402 21.6538 9.97555C21.5853 10.0271 21.4996 10.0786 21.431 10.113C21.3454 10.1473 21.2597 10.1817 21.1569 10.1988C21.0541 10.216 20.9513 10.2332 20.8313 10.2332H20.8142C20.6429 10.2332 20.4715 10.1988 20.3173 10.1301C20.146 10.0614 20.0089 9.97555 19.8718 9.85529C19.7348 9.73507 19.6148 9.59766 19.512 9.44307C19.4606 9.35718 19.4092 9.27129 19.3749 9.1854H23.1445C23.3672 9.1854 23.5214 9.03082 23.5214 8.80755C23.5385 8.46402 23.4872 8.10329 23.4015 7.77693C23.3329 7.50213 23.1787 7.22729 22.9902 6.98682ZM22.322 8.06893H19.3749C19.4263 7.94871 19.4777 7.84566 19.5634 7.7254C19.6833 7.55366 19.8376 7.39907 20.0089 7.27882C20.1288 7.19293 20.283 7.1414 20.4201 7.10707C20.5572 7.07271 20.7114 7.05555 20.8656 7.05555C21.0541 7.05555 21.2254 7.08987 21.3968 7.1414C21.5681 7.19293 21.7223 7.27882 21.8594 7.39907C21.9965 7.50213 22.1164 7.63955 22.2021 7.79413C22.2535 7.88002 22.2877 7.96587 22.322 8.06893Z",fill:"currentColor",fillOpacity:"0.9"}),g.jsx("path",{d:"M28.0441 10.7312L26.0565 8.36088L27.8042 6.54019C27.8556 6.47146 27.8899 6.36841 27.8899 6.29972C27.8899 6.24819 27.8899 6.21383 27.8727 6.17946C27.8556 6.14514 27.8214 6.11077 27.7871 6.05924C27.7186 6.00772 27.65 5.99055 27.5815 5.99055H27.016C26.9304 5.99055 26.8618 6.00772 26.7933 6.04208C26.7419 6.07641 26.7076 6.11077 26.6562 6.14514L25.0113 7.89714V4.90841C25.0113 4.85688 25.0113 4.80535 24.9771 4.75383C24.9599 4.7023 24.9256 4.65077 24.8914 4.63361C24.8228 4.56488 24.7372 4.53052 24.6344 4.53052H24.2403C24.1889 4.53052 24.1375 4.53052 24.0861 4.54772C24.0347 4.56488 23.9833 4.59925 23.949 4.63361C23.8805 4.7023 23.8462 4.78819 23.8462 4.89125V10.8859C23.8462 10.9374 23.8462 10.9889 23.8633 11.0232C23.8805 11.0748 23.9147 11.1263 23.949 11.1607C23.9833 11.195 24.0347 11.2294 24.0861 11.2466C24.1203 11.2637 24.1546 11.2637 24.206 11.2637C24.2231 11.2637 24.2231 11.2637 24.2403 11.2637H24.6001C24.8228 11.2637 24.9771 11.1091 24.9771 10.8859V9.46019L25.2683 9.16819L26.8276 11.0576C26.8618 11.1091 26.8961 11.1779 26.9646 11.2122C27.0332 11.2466 27.1017 11.2809 27.1702 11.2809H27.8214C27.8899 11.2809 27.9413 11.2809 27.9927 11.2466L28.0098 11.2294C28.0441 11.2122 28.1469 11.1435 28.1469 10.9889C28.1469 10.9546 28.1469 10.9202 28.1298 10.8859C28.1298 10.8343 28.0955 10.7828 28.0441 10.7312Z",fill:"currentColor",fillOpacity:"0.9"}),g.jsx("path",{d:"M32.7923 5.98994H32.4153C32.3639 5.98994 32.3125 5.98994 32.2782 6.00711C32.2268 6.02427 32.1754 6.05863 32.1412 6.093C32.1069 6.12733 32.0726 6.17889 32.0555 6.23042C32.0384 6.28194 32.0384 6.33347 32.0384 6.3678V6.385C31.8841 6.28194 31.7299 6.17889 31.5586 6.11016C31.2331 5.97274 30.8904 5.90405 30.5477 5.90405C30.5305 5.90405 30.5305 5.90405 30.5134 5.90405C30.2735 5.90405 30.0336 5.93842 29.7938 6.00711C29.571 6.0758 29.3483 6.16169 29.1427 6.28194C28.9371 6.40216 28.7486 6.53958 28.5944 6.71136C28.423 6.88311 28.286 7.05489 28.166 7.261C28.0461 7.46711 27.9433 7.69042 27.8919 7.91369C27.7548 8.39463 27.7548 8.89278 27.8919 9.35652C27.9604 9.57983 28.0461 9.80311 28.166 10.0093C28.4059 10.4043 28.7486 10.7478 29.1427 10.9883C29.3483 11.1085 29.571 11.2116 29.7938 11.2631C30.0336 11.3318 30.2735 11.3662 30.5134 11.3662C30.5305 11.3662 30.5305 11.3662 30.5477 11.3662C30.8904 11.3662 31.2331 11.2975 31.5586 11.1601C31.7299 11.0914 31.8841 10.9883 32.0384 10.8853V10.9196C32.0384 10.9711 32.0384 11.0226 32.0726 11.0742C32.0897 11.1257 32.124 11.1601 32.1583 11.1944C32.1925 11.2288 32.244 11.2631 32.2954 11.2803C32.3468 11.2975 32.3982 11.3146 32.4324 11.2975H32.8265C32.9293 11.2975 33.015 11.2631 33.0835 11.1944C33.1178 11.1601 33.1521 11.1085 33.1692 11.057C33.1864 11.0055 33.2035 10.9539 33.1864 10.9196V6.3678C33.1864 6.23042 33.1349 6.14453 33.0835 6.093C33.0321 6.04147 32.9465 5.98994 32.7923 5.98994ZM32.0555 8.61794C32.0555 8.82405 32.0212 9.03016 31.9356 9.23631C31.8499 9.42525 31.7471 9.597 31.5929 9.75158C31.4558 9.90616 31.2844 10.0264 31.096 10.1123C30.9075 10.1982 30.7019 10.2497 30.4963 10.2497C30.2907 10.2497 30.0851 10.1982 29.9137 10.1123C29.7252 10.0264 29.571 9.90616 29.4168 9.75158C29.2797 9.597 29.1598 9.42525 29.0913 9.23631C28.9371 8.84122 28.9371 8.41183 29.0913 8.01674C29.1769 7.82783 29.2797 7.65605 29.4168 7.50147C29.5539 7.34689 29.7252 7.2438 29.9137 7.15794C30.1022 7.07205 30.3078 7.02053 30.4963 7.02053C30.7019 7.02053 30.9075 7.07205 31.096 7.15794C31.2844 7.2438 31.4558 7.36405 31.5929 7.50147C31.7299 7.65605 31.8499 7.82783 31.9356 8.01674C32.0212 8.20569 32.0555 8.41183 32.0555 8.61794Z",fill:"currentColor",fillOpacity:"0.9"}),g.jsx("path",{d:"M40.0553 10.2334C40.0382 10.2162 40.0211 10.1818 40.004 10.1647L39.8327 9.94137C39.8153 9.90701 39.7811 9.87268 39.764 9.83832C39.7298 9.76959 39.6611 9.73526 39.5757 9.7009C39.5069 9.68374 39.4386 9.68374 39.3698 9.7009C39.3186 9.71806 39.2844 9.73526 39.2327 9.76959L39.1815 9.82115C39.1131 9.87268 39.0444 9.94137 38.9586 9.9929C38.8902 10.0444 38.8044 10.096 38.736 10.1303C38.6502 10.1647 38.5647 10.199 38.4618 10.2162C38.3589 10.2334 38.2564 10.2505 38.1364 10.2505H38.1193C37.9306 10.2505 37.7251 10.199 37.5538 10.1303C37.3651 10.0444 37.1938 9.92421 37.0567 9.78679C36.9026 9.63221 36.7997 9.46043 36.7142 9.27148C36.6284 9.08254 36.5942 8.87643 36.5942 8.65312C36.5942 8.44701 36.6455 8.22374 36.7313 8.03479C36.8171 7.84585 36.9367 7.6569 37.0738 7.51948C37.2109 7.3649 37.3826 7.24465 37.5709 7.15879C37.7422 7.0729 37.9477 7.02137 38.1364 7.02137C38.2389 7.02137 38.3247 7.03854 38.4277 7.0557C38.616 7.09006 38.8044 7.17595 38.9586 7.27901C39.0273 7.33054 39.0957 7.38206 39.1644 7.45079C39.2502 7.53665 39.3527 7.58817 39.4557 7.58817C39.524 7.58817 39.6269 7.55385 39.7127 7.43359L40.004 7.0557C40.0553 6.98701 40.0553 6.90112 40.0553 6.83243C40.0553 6.7809 40.0211 6.71217 39.9869 6.66065C39.9524 6.62632 39.9182 6.59195 39.884 6.55759L39.8153 6.50606C39.7127 6.42017 39.5927 6.35148 39.4727 6.28279C39.3357 6.21406 39.2157 6.14537 39.0786 6.09385C38.9415 6.04232 38.7873 6.00795 38.6331 5.97359C38.4789 5.93923 38.3247 5.92206 38.1706 5.93923C37.9306 5.93923 37.6909 5.97359 37.4509 6.04232C37.228 6.11101 37.0055 6.1969 36.7997 6.31712C36.3887 6.55759 36.0629 6.90112 35.8062 7.29617C35.6862 7.50232 35.5833 7.72559 35.5149 7.9489C35.3778 8.42985 35.3778 8.92795 35.5149 9.39174C35.5833 9.61501 35.6691 9.83832 35.8062 10.0444C36.0458 10.4395 36.3887 10.783 36.7997 11.0235C37.0055 11.1437 37.228 11.2468 37.4509 11.2983C37.6909 11.367 37.9135 11.4014 38.1535 11.4014H38.1706C38.3247 11.4014 38.496 11.3842 38.6502 11.3498C38.8044 11.3155 38.9586 11.2812 39.0957 11.2296C39.2327 11.1781 39.3698 11.1094 39.5069 11.0235C39.6269 10.9548 39.7469 10.8689 39.8669 10.783C39.9182 10.7487 39.9698 10.6972 40.004 10.6456C40.0382 10.5941 40.0724 10.5425 40.0895 10.491C40.1066 10.4223 40.1066 10.3536 40.0895 10.3021L40.0553 10.2334Z",fill:"currentColor",fillOpacity:"0.9"}),g.jsx("path",{d:"M45.196 5.98994H44.819C44.7677 5.98994 44.7161 5.98994 44.6819 6.00711C44.6306 6.02427 44.5793 6.05863 44.5448 6.093C44.5106 6.12733 44.4764 6.17889 44.4593 6.23042C44.4422 6.28194 44.4422 6.33347 44.4422 6.3678V6.385C44.2877 6.28194 44.1335 6.17889 43.9622 6.11016C43.6368 5.97274 43.2942 5.90405 42.9342 5.90405C42.6942 5.90405 42.4546 5.93842 42.2146 6.00711C41.9921 6.0758 41.7691 6.16169 41.5637 6.28194C41.3579 6.40216 41.1695 6.53958 41.0153 6.71136C40.8441 6.88311 40.707 7.05489 40.587 7.261C40.467 7.46711 40.3811 7.69042 40.3128 7.91369C40.1757 8.39463 40.1757 8.89278 40.3128 9.35652C40.5011 10.0436 40.9637 10.6276 41.5637 10.9883C41.7691 11.1085 41.9921 11.2116 42.2146 11.2631C42.4546 11.3318 42.6942 11.3662 42.9342 11.3662C42.9513 11.3662 42.9513 11.3662 42.9684 11.3662C43.3113 11.3662 43.6539 11.2975 43.9793 11.1601C44.151 11.0914 44.3051 10.9883 44.4593 10.8853V10.9196C44.4593 10.9711 44.4593 11.0226 44.4935 11.0742C44.5106 11.1257 44.5448 11.1601 44.5793 11.1944C44.6135 11.2288 44.6648 11.2631 44.7161 11.2803C44.7677 11.2975 44.819 11.3146 44.8531 11.2975H45.2473C45.3502 11.2975 45.4357 11.2631 45.5044 11.1944C45.5386 11.1601 45.5728 11.1085 45.5902 11.057C45.6073 11.0055 45.6244 10.9539 45.6244 10.9196V6.3678C45.6244 6.23042 45.5728 6.14453 45.5215 6.093C45.4357 6.04147 45.3502 5.98994 45.196 5.98994ZM44.4764 8.61794C44.4764 8.82405 44.4422 9.03016 44.3564 9.23631C44.2706 9.42525 44.1681 9.61416 44.0139 9.75158C43.8768 9.90616 43.7051 10.0264 43.5168 10.1123C43.3284 10.1982 43.1226 10.2497 42.9171 10.2497C42.7117 10.2497 42.5059 10.1982 42.3346 10.1123C42.1462 10.0264 41.9921 9.90616 41.8375 9.75158C41.7004 9.597 41.5808 9.42525 41.5121 9.23631C41.3579 8.84122 41.3579 8.41183 41.5121 8.01674C41.5979 7.82783 41.7004 7.65605 41.8375 7.50147C41.9746 7.34689 42.1462 7.2438 42.3346 7.15794C42.523 7.07205 42.7288 7.02053 42.9171 7.02053C43.1226 7.02053 43.3284 7.07205 43.5168 7.15794C43.7051 7.2438 43.8768 7.36405 44.0139 7.50147C44.151 7.65605 44.2706 7.82783 44.3564 8.01674C44.4248 8.20569 44.4764 8.41183 44.4764 8.61794Z",fill:"currentColor",fillOpacity:"0.9"}),g.jsx("path",{d:"M49.6675 6.71198C49.6675 6.66046 49.6504 6.60893 49.6333 6.5574C49.6162 6.50587 49.5817 6.47151 49.5475 6.43718C49.5133 6.40282 49.4791 6.36846 49.4275 6.35129C49.325 6.2826 49.2221 6.21387 49.1021 6.14518C48.9992 6.09366 48.8966 6.04213 48.7766 6.00777C48.6566 5.9734 48.5366 5.95624 48.4166 5.93908C48.2795 5.92188 48.1424 5.92188 48.0228 5.92188C47.8682 5.92188 47.7311 5.93907 47.5944 5.9906C47.4744 6.04213 47.3715 6.09366 47.2686 6.16235C47.2515 6.17951 47.2344 6.19671 47.2173 6.19671C47.2002 6.16235 47.1831 6.12798 47.1486 6.09366C47.1144 6.05929 47.0631 6.02493 47.0115 6.00777C46.9602 5.9906 46.909 5.9734 46.8748 5.9906H46.4806C46.429 5.9906 46.3777 5.9906 46.3435 6.02493C46.2919 6.04213 46.2577 6.07646 46.2235 6.09366C46.1893 6.12798 46.1551 6.17951 46.1377 6.23107C46.1206 6.2826 46.1035 6.33413 46.1035 6.36846V10.9202C46.1035 11.1435 46.2577 11.2981 46.4806 11.2981H46.8748C46.8919 11.2981 46.8919 11.2981 46.909 11.2981C46.9432 11.2981 46.9944 11.2981 47.029 11.281C47.0802 11.2638 47.1315 11.2294 47.1661 11.1951C47.2002 11.1607 47.2344 11.1092 47.2515 11.0577C47.2686 11.0061 47.2686 10.9546 47.2686 10.9202V7.91435C47.2686 7.77693 47.2857 7.65671 47.3373 7.53646C47.3715 7.4334 47.4399 7.34755 47.5086 7.26166C47.577 7.19293 47.6628 7.1414 47.7486 7.08987C47.8341 7.05555 47.937 7.03835 48.0399 7.03835C48.177 7.03835 48.3141 7.05555 48.4508 7.10707C48.6053 7.1586 48.7424 7.22729 48.8621 7.31318L48.9137 7.34755C48.965 7.39907 49.0337 7.41624 49.1192 7.41624C49.1704 7.41624 49.2221 7.39908 49.2562 7.36471C49.3075 7.33035 49.3421 7.29598 49.3762 7.26166L49.6162 6.88377C49.6504 6.83224 49.6675 6.78071 49.6675 6.71198Z",fill:"currentColor",fillOpacity:"0.9"}),g.jsx("path",{d:"M54.8767 7.79347C54.7912 7.50147 54.6712 7.20947 54.4829 6.969C54.3458 6.79722 54.2087 6.64263 54.0374 6.50522C53.8658 6.3678 53.6945 6.26474 53.5062 6.17889C53.3178 6.093 53.1291 6.02427 52.9236 5.97274C52.7178 5.92122 52.5123 5.90405 52.3069 5.90405H52.2894C52.0498 5.90405 51.7927 5.93842 51.5527 6.00711C51.3302 6.0758 51.1072 6.16169 50.9018 6.28194C50.696 6.40216 50.5076 6.53958 50.3534 6.71136C50.028 7.05489 49.788 7.46711 49.668 7.91369C49.5996 8.15416 49.5825 8.39463 49.5825 8.63511C49.5825 8.87558 49.6167 9.13322 49.6851 9.35652C49.7538 9.57983 49.8392 9.80311 49.9592 10.0093C50.0792 10.2154 50.2334 10.4043 50.3876 10.5589C50.5589 10.7306 50.7476 10.8681 50.936 10.9883C51.1414 11.1085 51.3643 11.2116 51.5872 11.2631C51.8269 11.3318 52.0498 11.3662 52.2894 11.3662C52.2894 11.3662 52.2894 11.3662 52.3069 11.3662C52.4782 11.3662 52.6323 11.349 52.7865 11.3147C52.9407 11.2803 53.0949 11.2459 53.232 11.1944C53.3691 11.1429 53.5062 11.0742 53.6432 10.9883C53.7632 10.9196 53.8829 10.8337 54.0029 10.7478C54.0545 10.6963 54.1229 10.6448 54.1571 10.5933C54.2087 10.5417 54.2258 10.473 54.2258 10.3699C54.2258 10.3184 54.2087 10.2841 54.1916 10.2325C54.1745 10.1982 54.1571 10.1638 54.14 10.1466L54.0887 10.0779C54.0716 10.0608 54.0545 10.0264 54.02 9.99205L53.9003 9.83747C53.8829 9.80311 53.8487 9.76878 53.8145 9.75158C53.7803 9.71725 53.7287 9.70005 53.6774 9.68289C53.6262 9.66569 53.5745 9.66569 53.5403 9.68289C53.4891 9.70005 53.4545 9.71725 53.4203 9.73442C53.3862 9.75158 53.352 9.78594 53.3349 9.80311C53.2662 9.85463 53.1978 9.92336 53.112 9.97489C53.0436 10.0264 52.9578 10.0779 52.8894 10.1123C52.8036 10.1466 52.7178 10.181 52.6152 10.1982C52.5123 10.2154 52.3923 10.2325 52.2894 10.2325H52.2723C52.1011 10.2325 51.9298 10.1982 51.7756 10.1295C51.6043 10.0608 51.4672 9.97489 51.3302 9.85463C51.1931 9.73442 51.0731 9.597 50.9872 9.44242C50.936 9.35653 50.8847 9.27063 50.8502 9.18478H54.62C54.8425 9.18478 54.9967 9.03016 54.9967 8.80689C55.0138 8.48053 54.9625 8.137 54.8767 7.79347ZM53.7974 8.06831H50.8502C50.9018 7.94805 50.9531 7.845 51.0389 7.72474C51.1589 7.553 51.3131 7.39842 51.4843 7.27816C51.6043 7.19227 51.7414 7.14074 51.8956 7.10642C52.0327 7.07205 52.1869 7.05489 52.3411 7.05489C52.5294 7.05489 52.7007 7.08922 52.872 7.14074C53.0436 7.19227 53.1978 7.27816 53.3349 7.39842C53.472 7.50147 53.5916 7.63889 53.6774 7.79347C53.7116 7.87936 53.7632 7.96522 53.7974 8.06831Z",fill:"currentColor",fillOpacity:"0.9"}),g.jsx("path",{d:"M34.7101 10.0103C34.5901 9.95881 34.453 9.94165 34.3159 9.97601C34.179 10.0103 34.059 10.0619 33.9562 10.165C33.8534 10.268 33.7849 10.3882 33.7677 10.5257C33.7335 10.7146 33.7677 10.8864 33.8705 11.041C33.9733 11.1955 34.1275 11.2986 34.2988 11.333C34.3505 11.3501 34.3846 11.3501 34.4359 11.3501C34.5217 11.3501 34.6072 11.333 34.693 11.2986C34.813 11.2471 34.933 11.1612 35.0014 11.041C35.0701 10.9207 35.1214 10.8005 35.1214 10.6631C35.1214 10.5257 35.0872 10.3882 35.0014 10.2852C34.9501 10.1478 34.8472 10.0619 34.7101 10.0103Z",fill:"currentColor",fillOpacity:"0.9"})]}),ox=b.lazy(()=>Promise.resolve().then(()=>AS));function pm({isOpen:A,onClose:t,showCloseButton:r=!0,iconUrl:i,onStartNewSession:s,showStartNewChatButton:l,children:c,fullScreenEmptyState:u,title:f,titleImg:h,tagline:m,sessionId:B,chatComposer:w,environment:C,mode:E,onToggleDisplayMode:v,isAuthComponent:F,activeElicitation:Q,voiceAgentState:I,theme:O}){const[K,j]=b.useState(!1),[T,L]=b.useState(!1),R=b.useRef(null),_=E,X=_==="full",nA=b.useRef(null),[z,lA]=b.useState("");b.useEffect(()=>{nA.current!==null&&nA.current!==_&&lA(_==="full"?"Switched to fullscreen mode":_==="widget"?"Switched to widget mode":"Switched to mobile layout"),nA.current=_},[_]);const Z=b.useMemo(()=>tx(O),[O]),{setIsMobile:eA}=WA(M=>M),D=!!F,W=async M=>{if(!(!w?.onSend||T)){L(!0);try{await w.onSend(M)}finally{L(!1)}}};b.useEffect(()=>{if(!R.current)return;const M=_==="full"?{...Z,headerTinted:!1}:Z;gm(R.current,M),_==="full"&&!Z.backgroundImage?(R.current.style.setProperty("--background","0 0% 100%"),R.current.style.setProperty("--widget-bg-overlay","transparent")):(R.current.style.removeProperty("--background"),R.current.style.removeProperty("--widget-bg-overlay"),gm(R.current,Z))},[Z,_]),b.useEffect(()=>{const M=()=>{const S=window?.innerWidth??0,aA=navigator?.userAgent?.toLowerCase()??"",uA=S<768||/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(aA);j(uA),eA(uA)};return M(),window.addEventListener("resize",M),()=>window.removeEventListener("resize",M)},[]),b.useLayoutEffect(()=>{if(!A||!K||!R.current)return;const M=R.current;let S=null,aA=null,uA=null,fA=window.visualViewport?.offsetTop??0,pA=0;const kA=2,HA=80;if(window.visualViewport){const NA=()=>{if(M&&window.visualViewport){const oe=window.visualViewport.height,Te=window.visualViewport.offsetTop;S=requestAnimationFrame(()=>{M.style.transition="none",M.style.top=`${Te}px`,M.style.left="0",M.style.right="0",M.style.bottom="auto",M.style.width="100vw",M.style.height=`${oe}px`,M.style.maxHeight=`${oe}px`,M.style.minHeight=`${oe}px`,aA&&clearTimeout(aA),aA=setTimeout(()=>{M.style.transition=""},100)})}},de=()=>{NA()},he=()=>{if(!M||!window.visualViewport)return;const oe=window.visualViewport.offsetTop,Te=Date.now();Math.abs(oe-fA)<kA||Te-pA<HA||(pA=Te,fA=oe,S=requestAnimationFrame(()=>{M.style.transition="none",M.style.top=`${oe}px`,uA&&clearTimeout(uA),uA=setTimeout(()=>{M.style.transition=""},150)}))};return window.visualViewport.addEventListener("resize",de),window.visualViewport.addEventListener("scroll",he),NA(),()=>{S&&cancelAnimationFrame(S),aA&&clearTimeout(aA),uA&&clearTimeout(uA),window.visualViewport?.removeEventListener("resize",de),window.visualViewport?.removeEventListener("scroll",he),M&&(M.style.width="",M.style.height="",M.style.maxHeight="",M.style.minHeight="",M.style.transition="")}}else{const NA=()=>{M&&(M.style.transition="none",M.style.top="0",M.style.left="0",M.style.right="0",M.style.bottom="auto",M.style.width="100vw",M.style.height="100svh",M.style.maxHeight="100svh",setTimeout(()=>{M.style.transition=""},100))};return window.addEventListener("resize",NA),NA(),()=>{window.removeEventListener("resize",NA),M&&(M.style.width="",M.style.height="",M.style.maxHeight="",M.style.transition="")}}},[A,K]),b.useEffect(()=>{if(A){const M=R.current,S=window.scrollY,aA=document.body.style.cssText,uA=document.documentElement.style.overflow,fA=window.innerWidth-document.documentElement.clientWidth;document.body.style.position="fixed",document.body.style.top=`-${S}px`,document.body.style.left="0",document.body.style.right="0",document.body.style.width="100%",document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden",fA>0&&!K&&(document.body.style.paddingRight=`${fA}px`);let pA=0;const kA=NA=>{pA=NA.touches[0].clientY},HA=NA=>{if(NA.touches.length!==1)return;const de=pA-NA.touches[0].clientY;pA=NA.touches[0].clientY;let he=NA.target;for(;he&&he!==M;){const{overflowY:oe}=window.getComputedStyle(he);if((oe==="auto"||oe==="scroll")&&he.scrollHeight>he.clientHeight){const{scrollTop:Te,scrollHeight:$e,clientHeight:Ut}=he,gt=Te<=0&&de<0,an=Te+Ut>=$e-1&&de>0;if(!gt&&!an)return;break}he=he.parentElement}NA.preventDefault()};return M&&(M.addEventListener("touchstart",kA,{passive:!0}),M.addEventListener("touchmove",HA,{passive:!1})),()=>{M&&(M.removeEventListener("touchstart",kA),M.removeEventListener("touchmove",HA)),document.body.style.cssText=aA,document.documentElement.style.overflow=uA,window.scrollTo(0,S)}}},[A,K]);const{position:AA,elementRef:gA}=Wb({enabled:A&&!K&&!X});b.useEffect(()=>{R.current&&(gA.current=R.current)},[gA]);const N=mA("synapse-chat-widget-container","fixed m-0 p-0","box-border",!K&&!X?"transition-all duration-300":"",K?"w-screen h-[100svh]":X?"w-screen h-screen":"w-96 h-[600px]","z-[2147483647]",A?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none scale-95"),U=mA("w-full h-full relative","bg-background","shadow-2xl","flex","overflow-hidden",Z.backgroundImage?"theme-with-background":"",K?"rounded-none border-0 flex-col":X?"rounded-none border-0 flex-row":"rounded-3xl flex-col");return g.jsxs("div",{ref:R,"data-mode":_,className:N,style:{margin:0,padding:0,border:"none",outline:"none",position:"fixed",zIndex:2147483647,fontSize:"16px",lineHeight:"2.5",userSelect:"auto",...X&&A&&{top:0,left:0,right:0,bottom:0,width:"100vw",height:"100vh"},...X&&!A&&{display:"none"},...!K&&!X&&{left:`${AA.x}px`,top:`${AA.y}px`,bottom:"auto",right:"auto"},...K&&{top:0,left:0,right:0,bottom:0,width:"100vw",maxHeight:"100svh",height:"100svh",backgroundColor:Z.backgroundImage?"transparent":"hsl(var(--background))"}},children:[g.jsx("style",{children:`
|
|
8
|
+
`+o.stack}}var ot=Object.prototype.hasOwnProperty,In=A.unstable_scheduleCallback,Cn=A.unstable_cancelCallback,$r=A.unstable_shouldYield,pr=A.unstable_requestPaint,ze=A.unstable_now,Vi=A.unstable_getCurrentPriorityLevel,rA=A.unstable_ImmediatePriority,V=A.unstable_UserBlockingPriority,q=A.unstable_NormalPriority,oA=A.unstable_LowPriority,dA=A.unstable_IdlePriority,SA=A.log,NA=A.unstable_setDisableYieldValue,ZA=null,zA=null;function he(e){if(typeof SA=="function"&&NA(e),zA&&typeof zA.setStrictMode=="function")try{zA.setStrictMode(ZA,e)}catch{}}var DA=Math.clz32?Math.clz32:ee,pt=Math.log,bA=Math.LN2;function ee(e){return e>>>=0,e===0?32:31-(pt(e)/bA|0)|0}var Ie=256,mt=262144,sn=4194304;function xe(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 Nn(e,n,a){var o=e.pendingLanes;if(o===0)return 0;var d=0,p=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var x=o&134217727;return x!==0?(o=x&~p,o!==0?d=xe(o):(y&=x,y!==0?d=xe(y):a||(a=x&~e,a!==0&&(d=xe(a))))):(x=o&~p,x!==0?d=xe(x):y!==0?d=xe(y):a||(a=o&~e,a!==0&&(d=xe(a)))),d===0?0:n!==0&&n!==d&&(n&p)===0&&(p=d&-d,a=n&-n,p>=a||p===32&&(a&4194048)!==0)?n:d}function ve(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function kA(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 Gi(){var e=sn;return sn<<=1,(sn&62914560)===0&&(sn=4194304),e}function ln(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function Gt(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Rd(e,n,a,o,d,p){var y=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 x=e.entanglements,H=e.expirationTimes,Y=e.hiddenUpdates;for(a=y&~a;0<a;){var tA=31-DA(a),sA=1<<tA;x[tA]=0,H[tA]=-1;var J=Y[tA];if(J!==null)for(Y[tA]=null,tA=0;tA<J.length;tA++){var $=J[tA];$!==null&&($.lane&=-536870913)}a&=~sA}o!==0&&Ai(e,o,0),p!==0&&d===0&&e.tag!==0&&(e.suspendedLanes|=p&~(y&~n))}function Ai(e,n,a){e.pendingLanes|=n,e.suspendedLanes&=~n;var o=31-DA(n);e.entangledLanes|=n,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function Pe(e,n){var a=e.entangledLanes|=n;for(e=e.entanglements;a;){var o=31-DA(a),d=1<<o;d&n|e[o]&n&&(e[o]|=n),a&=~d}}function Ft(e,n){var a=n&-n;return a=(a&42)!==0?1:mr(a),(a&(e.suspendedLanes|n))!==0?0:a}function mr(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 Ms(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Yo(){var e=W.p;return e!==0?e:(e=window.event,e===void 0?32:Dv(e.type))}function zi(e,n){var a=W.p;try{return W.p=e,n()}finally{W.p=a}}var te=Math.random().toString(36).slice(2),HA="__reactFiber$"+te,Oe="__reactProps$"+te,Hn="__reactContainer$"+te,Xo="__reactEvents$"+te,w7="__reactListeners$"+te,y7="__reactHandles$"+te,tw="__reactResources$"+te,Os="__reactMarker$"+te;function Ld(e){delete e[HA],delete e[Oe],delete e[Xo],delete e[w7],delete e[y7]}function Pi(e){var n=e[HA];if(n)return n;for(var a=e.parentNode;a;){if(n=a[Hn]||a[HA]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(e=vv(e);e!==null;){if(a=e[HA])return a;e=vv(e)}return n}e=a,a=e.parentNode}return null}function Yi(e){if(e=e[HA]||e[Hn]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Rs(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(i(33))}function Xi(e){var n=e[tw];return n||(n=e[tw]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function Ye(e){e[Os]=!0}var nw=new Set,rw={};function ei(e,n){qi(e,n),qi(e+"Capture",n)}function qi(e,n){for(rw[e]=n,e=0;e<n.length;e++)nw.add(n[e])}var E7=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]*$"),iw={},aw={};function v7(e){return ot.call(aw,e)?!0:ot.call(iw,e)?!1:E7.test(e)?aw[e]=!0:(iw[e]=!0,!1)}function qo(e,n,a){if(v7(n))if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var o=n.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+a)}}function Jo(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 _n(e,n,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(n,a,""+o)}}function zt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sw(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function b7(e,n,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,p=o.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return d.call(this)},set:function(y){a=""+y,p.call(this,y)}}),Object.defineProperty(e,n,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(y){a=""+y},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Dd(e){if(!e._valueTracker){var n=sw(e)?"checked":"value";e._valueTracker=b7(e,n,""+e[n])}}function lw(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),o="";return e&&(o=sw(e)?e.checked?"true":"false":e.value),e=o,e!==a?(n.setValue(e),!0):!1}function Zo(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 x7=/[\n"\\]/g;function Pt(e){return e.replace(x7,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function kd(e,n,a,o,d,p,y,x){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),n!=null?y==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+zt(n)):e.value!==""+zt(n)&&(e.value=""+zt(n)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),n!=null?jd(e,y,zt(n)):a!=null?jd(e,y,zt(a)):o!=null&&e.removeAttribute("value"),d==null&&p!=null&&(e.defaultChecked=!!p),d!=null&&(e.checked=d&&typeof d!="function"&&typeof d!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+zt(x):e.removeAttribute("name")}function ow(e,n,a,o,d,p,y,x){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.type=p),n!=null||a!=null){if(!(p!=="submit"&&p!=="reset"||n!=null)){Dd(e);return}a=a!=null?""+zt(a):"",n=n!=null?""+zt(n):a,x||n===e.value||(e.value=n),e.defaultValue=n}o=o??d,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=x?e.checked:!!o,e.defaultChecked=!!o,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),Dd(e)}function jd(e,n,a){n==="number"&&Zo(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ji(e,n,a,o){if(e=e.options,n){n={};for(var d=0;d<a.length;d++)n["$"+a[d]]=!0;for(a=0;a<e.length;a++)d=n.hasOwnProperty("$"+e[a].value),e[a].selected!==d&&(e[a].selected=d),d&&o&&(e[a].defaultSelected=!0)}else{for(a=""+zt(a),n=null,d=0;d<e.length;d++){if(e[d].value===a){e[d].selected=!0,o&&(e[d].defaultSelected=!0);return}n!==null||e[d].disabled||(n=e[d])}n!==null&&(n.selected=!0)}}function cw(e,n,a){if(n!=null&&(n=""+zt(n),n!==e.value&&(e.value=n),a==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=a!=null?""+zt(a):""}function uw(e,n,a,o){if(n==null){if(o!=null){if(a!=null)throw Error(i(92));if(eA(o)){if(1<o.length)throw Error(i(93));o=o[0]}a=o}a==null&&(a=""),n=a}a=zt(n),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),Dd(e)}function Zi(e,n){if(n){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=n;return}}e.textContent=n}var S7=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 fw(e,n,a){var o=n.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?o?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":o?e.setProperty(n,a):typeof a!="number"||a===0||S7.has(n)?n==="float"?e.cssFloat=a:e[n]=(""+a).trim():e[n]=a+"px"}function dw(e,n,a){if(n!=null&&typeof n!="object")throw Error(i(62));if(e=e.style,a!=null){for(var o in a)!a.hasOwnProperty(o)||n!=null&&n.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var d in n)o=n[d],n.hasOwnProperty(d)&&a[d]!==o&&fw(e,d,o)}else for(var p in n)n.hasOwnProperty(p)&&fw(e,p,n[p])}function Kd(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 Q7=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"]]),U7=/^[\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 Wo(e){return U7.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Mn(){}var Vd=null;function Gd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wi=null,$i=null;function hw(e){var n=Yi(e);if(n&&(e=n.stateNode)){var a=e[Oe]||null;A:switch(e=n.stateNode,n.type){case"input":if(kd(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="'+Pt(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var o=a[n];if(o!==e&&o.form===e.form){var d=o[Oe]||null;if(!d)throw Error(i(90));kd(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(n=0;n<a.length;n++)o=a[n],o.form===e.form&&lw(o)}break A;case"textarea":cw(e,a.value,a.defaultValue);break A;case"select":n=a.value,n!=null&&Ji(e,!!a.multiple,n,!1)}}}var zd=!1;function gw(e,n,a){if(zd)return e(n,a);zd=!0;try{var o=e(n);return o}finally{if(zd=!1,(Wi!==null||$i!==null)&&(Dc(),Wi&&(n=Wi,e=$i,$i=Wi=null,hw(n),e)))for(n=0;n<e.length;n++)hw(e[n])}}function Ls(e,n){var a=e.stateNode;if(a===null)return null;var o=a[Oe]||null;if(o===null)return null;a=o[n];A:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break A;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(i(231,n,typeof a));return a}var On=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pd=!1;if(On)try{var Ds={};Object.defineProperty(Ds,"passive",{get:function(){Pd=!0}}),window.addEventListener("test",Ds,Ds),window.removeEventListener("test",Ds,Ds)}catch{Pd=!1}var Br=null,Yd=null,$o=null;function pw(){if($o)return $o;var e,n=Yd,a=n.length,o,d="value"in Br?Br.value:Br.textContent,p=d.length;for(e=0;e<a&&n[e]===d[e];e++);var y=a-e;for(o=1;o<=y&&n[a-o]===d[p-o];o++);return $o=d.slice(e,1<o?1-o:void 0)}function Ac(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 ec(){return!0}function mw(){return!1}function Bt(e){function n(a,o,d,p,y){this._reactName=a,this._targetInst=d,this.type=o,this.nativeEvent=p,this.target=y,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(a=e[x],this[x]=a?a(p):p[x]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?ec:mw,this.isPropagationStopped=mw,this}return B(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ec)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ec)},persist:function(){},isPersistent:ec}),n}var ti={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tc=Bt(ti),ks=B({},ti,{view:0,detail:0}),F7=Bt(ks),Xd,qd,js,nc=B({},ks,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zd,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!==js&&(js&&e.type==="mousemove"?(Xd=e.screenX-js.screenX,qd=e.screenY-js.screenY):qd=Xd=0,js=e),Xd)},movementY:function(e){return"movementY"in e?e.movementY:qd}}),Bw=Bt(nc),T7=B({},nc,{dataTransfer:0}),I7=Bt(T7),N7=B({},ks,{relatedTarget:0}),Jd=Bt(N7),H7=B({},ti,{animationName:0,elapsedTime:0,pseudoElement:0}),_7=Bt(H7),M7=B({},ti,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),O7=Bt(M7),R7=B({},ti,{data:0}),Cw=Bt(R7),L7={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},D7={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"},k7={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function j7(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=k7[e])?!!n[e]:!1}function Zd(){return j7}var K7=B({},ks,{key:function(e){if(e.key){var n=L7[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Ac(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?D7[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zd,charCode:function(e){return e.type==="keypress"?Ac(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ac(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),V7=Bt(K7),G7=B({},nc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ww=Bt(G7),z7=B({},ks,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zd}),P7=Bt(z7),Y7=B({},ti,{propertyName:0,elapsedTime:0,pseudoElement:0}),X7=Bt(Y7),q7=B({},nc,{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}),J7=Bt(q7),Z7=B({},ti,{newState:0,oldState:0}),W7=Bt(Z7),$7=[9,13,27,32],Wd=On&&"CompositionEvent"in window,Ks=null;On&&"documentMode"in document&&(Ks=document.documentMode);var AI=On&&"TextEvent"in window&&!Ks,yw=On&&(!Wd||Ks&&8<Ks&&11>=Ks),Ew=" ",vw=!1;function bw(e,n){switch(e){case"keyup":return $7.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Aa=!1;function eI(e,n){switch(e){case"compositionend":return xw(n);case"keypress":return n.which!==32?null:(vw=!0,Ew);case"textInput":return e=n.data,e===Ew&&vw?null:e;default:return null}}function tI(e,n){if(Aa)return e==="compositionend"||!Wd&&bw(e,n)?(e=pw(),$o=Yd=Br=null,Aa=!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 yw&&n.locale!=="ko"?null:n.data;default:return null}}var nI={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 Sw(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!nI[e.type]:n==="textarea"}function Qw(e,n,a,o){Wi?$i?$i.push(o):$i=[o]:Wi=o,n=Pc(n,"onChange"),0<n.length&&(a=new tc("onChange","change",null,a,o),e.push({event:a,listeners:n}))}var Vs=null,Gs=null;function rI(e){ov(e,0)}function rc(e){var n=Rs(e);if(lw(n))return e}function Uw(e,n){if(e==="change")return n}var Fw=!1;if(On){var $d;if(On){var Ah="oninput"in document;if(!Ah){var Tw=document.createElement("div");Tw.setAttribute("oninput","return;"),Ah=typeof Tw.oninput=="function"}$d=Ah}else $d=!1;Fw=$d&&(!document.documentMode||9<document.documentMode)}function Iw(){Vs&&(Vs.detachEvent("onpropertychange",Nw),Gs=Vs=null)}function Nw(e){if(e.propertyName==="value"&&rc(Gs)){var n=[];Qw(n,Gs,e,Gd(e)),gw(rI,n)}}function iI(e,n,a){e==="focusin"?(Iw(),Vs=n,Gs=a,Vs.attachEvent("onpropertychange",Nw)):e==="focusout"&&Iw()}function aI(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return rc(Gs)}function sI(e,n){if(e==="click")return rc(n)}function lI(e,n){if(e==="input"||e==="change")return rc(n)}function oI(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Tt=typeof Object.is=="function"?Object.is:oI;function zs(e,n){if(Tt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var a=Object.keys(e),o=Object.keys(n);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var d=a[o];if(!ot.call(n,d)||!Tt(e[d],n[d]))return!1}return!0}function Hw(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _w(e,n){var a=Hw(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=n&&o>=n)return{node:a,offset:n-e};e=o}A:{for(;a;){if(a.nextSibling){a=a.nextSibling;break A}a=a.parentNode}a=void 0}a=Hw(a)}}function Mw(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Mw(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Ow(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Zo(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=Zo(e.document)}return n}function eh(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 cI=On&&"documentMode"in document&&11>=document.documentMode,ea=null,th=null,Ps=null,nh=!1;function Rw(e,n,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;nh||ea==null||ea!==Zo(o)||(o=ea,"selectionStart"in o&&eh(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Ps&&zs(Ps,o)||(Ps=o,o=Pc(th,"onSelect"),0<o.length&&(n=new tc("onSelect","select",null,n,a),e.push({event:n,listeners:o}),n.target=ea)))}function ni(e,n){var a={};return a[e.toLowerCase()]=n.toLowerCase(),a["Webkit"+e]="webkit"+n,a["Moz"+e]="moz"+n,a}var ta={animationend:ni("Animation","AnimationEnd"),animationiteration:ni("Animation","AnimationIteration"),animationstart:ni("Animation","AnimationStart"),transitionrun:ni("Transition","TransitionRun"),transitionstart:ni("Transition","TransitionStart"),transitioncancel:ni("Transition","TransitionCancel"),transitionend:ni("Transition","TransitionEnd")},rh={},Lw={};On&&(Lw=document.createElement("div").style,"AnimationEvent"in window||(delete ta.animationend.animation,delete ta.animationiteration.animation,delete ta.animationstart.animation),"TransitionEvent"in window||delete ta.transitionend.transition);function ri(e){if(rh[e])return rh[e];if(!ta[e])return e;var n=ta[e],a;for(a in n)if(n.hasOwnProperty(a)&&a in Lw)return rh[e]=n[a];return e}var Dw=ri("animationend"),kw=ri("animationiteration"),jw=ri("animationstart"),uI=ri("transitionrun"),fI=ri("transitionstart"),dI=ri("transitioncancel"),Kw=ri("transitionend"),Vw=new Map,ih="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(" ");ih.push("scrollEnd");function on(e,n){Vw.set(e,n),ei(n,[e])}var ic=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}},Yt=[],na=0,ah=0;function ac(){for(var e=na,n=ah=na=0;n<e;){var a=Yt[n];Yt[n++]=null;var o=Yt[n];Yt[n++]=null;var d=Yt[n];Yt[n++]=null;var p=Yt[n];if(Yt[n++]=null,o!==null&&d!==null){var y=o.pending;y===null?d.next=d:(d.next=y.next,y.next=d),o.pending=d}p!==0&&Gw(a,d,p)}}function sc(e,n,a,o){Yt[na++]=e,Yt[na++]=n,Yt[na++]=a,Yt[na++]=o,ah|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function sh(e,n,a,o){return sc(e,n,a,o),lc(e)}function ii(e,n){return sc(e,null,null,n),lc(e)}function Gw(e,n,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var d=!1,p=e.return;p!==null;)p.childLanes|=a,o=p.alternate,o!==null&&(o.childLanes|=a),p.tag===22&&(e=p.stateNode,e===null||e._visibility&1||(d=!0)),e=p,p=p.return;return e.tag===3?(p=e.stateNode,d&&n!==null&&(d=31-DA(a),e=p.hiddenUpdates,o=e[d],o===null?e[d]=[n]:o.push(n),n.lane=a|536870912),p):null}function lc(e){if(50<hl)throw hl=0,pg=null,Error(i(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var ra={};function hI(e,n,a,o){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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function It(e,n,a,o){return new hI(e,n,a,o)}function lh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Rn(e,n){var a=e.alternate;return a===null?(a=It(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 zw(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 oc(e,n,a,o,d,p){var y=0;if(o=e,typeof e=="function")lh(e)&&(y=1);else if(typeof e=="string")y=CN(e,a,aA.current)?26:e==="html"||e==="head"||e==="body"?27:5;else A:switch(e){case _:return e=It(31,a,n,d),e.elementType=_,e.lanes=p,e;case v:return ai(a.children,d,p,n);case F:y=8,d|=24;break;case Q:return e=It(12,a,n,d|2),e.elementType=Q,e.lanes=p,e;case K:return e=It(13,a,n,d),e.elementType=K,e.lanes=p,e;case T:return e=It(19,a,n,d),e.elementType=T,e.lanes=p,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O:y=10;break A;case N:y=9;break A;case j:y=11;break A;case L:y=14;break A;case R:y=16,o=null;break A}y=29,a=Error(i(130,e===null?"null":typeof e,"")),o=null}return n=It(y,a,n,d),n.elementType=e,n.type=o,n.lanes=p,n}function ai(e,n,a,o){return e=It(7,e,o,n),e.lanes=a,e}function oh(e,n,a){return e=It(6,e,null,n),e.lanes=a,e}function Pw(e){var n=It(18,null,null,0);return n.stateNode=e,n}function ch(e,n,a){return n=It(4,e.children!==null?e.children:[],e.key,n),n.lanes=a,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var Yw=new WeakMap;function Xt(e,n){if(typeof e=="object"&&e!==null){var a=Yw.get(e);return a!==void 0?a:(n={value:e,source:n,stack:an(n)},Yw.set(e,n),n)}return{value:e,source:n,stack:an(n)}}var ia=[],aa=0,cc=null,Ys=0,qt=[],Jt=0,Cr=null,wn=1,yn="";function Ln(e,n){ia[aa++]=Ys,ia[aa++]=cc,cc=e,Ys=n}function Xw(e,n,a){qt[Jt++]=wn,qt[Jt++]=yn,qt[Jt++]=Cr,Cr=e;var o=wn;e=yn;var d=32-DA(o)-1;o&=~(1<<d),a+=1;var p=32-DA(n)+d;if(30<p){var y=d-d%5;p=(o&(1<<y)-1).toString(32),o>>=y,d-=y,wn=1<<32-DA(n)+d|a<<d|o,yn=p+e}else wn=1<<p|a<<d|o,yn=e}function uh(e){e.return!==null&&(Ln(e,1),Xw(e,1,0))}function fh(e){for(;e===cc;)cc=ia[--aa],ia[aa]=null,Ys=ia[--aa],ia[aa]=null;for(;e===Cr;)Cr=qt[--Jt],qt[Jt]=null,yn=qt[--Jt],qt[Jt]=null,wn=qt[--Jt],qt[Jt]=null}function qw(e,n){qt[Jt++]=wn,qt[Jt++]=yn,qt[Jt++]=Cr,wn=n.id,yn=n.overflow,Cr=e}var At=null,we=null,XA=!1,wr=null,Zt=!1,dh=Error(i(519));function yr(e){var n=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Xs(Xt(n,e)),dh}function Jw(e){var n=e.stateNode,a=e.type,o=e.memoizedProps;switch(n[HA]=e,n[Oe]=o,a){case"dialog":VA("cancel",n),VA("close",n);break;case"iframe":case"object":case"embed":VA("load",n);break;case"video":case"audio":for(a=0;a<pl.length;a++)VA(pl[a],n);break;case"source":VA("error",n);break;case"img":case"image":case"link":VA("error",n),VA("load",n);break;case"details":VA("toggle",n);break;case"input":VA("invalid",n),ow(n,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":VA("invalid",n);break;case"textarea":VA("invalid",n),uw(n,o.value,o.defaultValue,o.children)}a=o.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||o.suppressHydrationWarning===!0||dv(n.textContent,a)?(o.popover!=null&&(VA("beforetoggle",n),VA("toggle",n)),o.onScroll!=null&&VA("scroll",n),o.onScrollEnd!=null&&VA("scrollend",n),o.onClick!=null&&(n.onclick=Mn),n=!0):n=!1,n||yr(e,!0)}function Zw(e){for(At=e.return;At;)switch(At.tag){case 5:case 31:case 13:Zt=!1;return;case 27:case 3:Zt=!0;return;default:At=At.return}}function sa(e){if(e!==At)return!1;if(!XA)return Zw(e),XA=!0,!1;var n=e.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Ig(e.type,e.memoizedProps)),a=!a),a&&we&&yr(e),Zw(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));we=Ev(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));we=Ev(e)}else n===27?(n=we,Mr(e.type)?(e=Og,Og=null,we=e):we=n):we=At?$t(e.stateNode.nextSibling):null;return!0}function si(){we=At=null,XA=!1}function hh(){var e=wr;return e!==null&&(Et===null?Et=e:Et.push.apply(Et,e),wr=null),e}function Xs(e){wr===null?wr=[e]:wr.push(e)}var gh=U(null),li=null,Dn=null;function Er(e,n,a){S(gh,n._currentValue),n._currentValue=a}function kn(e){e._currentValue=gh.current,M(gh)}function ph(e,n,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,o!==null&&(o.childLanes|=n)):o!==null&&(o.childLanes&n)!==n&&(o.childLanes|=n),e===a)break;e=e.return}}function mh(e,n,a,o){var d=e.child;for(d!==null&&(d.return=e);d!==null;){var p=d.dependencies;if(p!==null){var y=d.child;p=p.firstContext;A:for(;p!==null;){var x=p;p=d;for(var H=0;H<n.length;H++)if(x.context===n[H]){p.lanes|=a,x=p.alternate,x!==null&&(x.lanes|=a),ph(p.return,a,e),o||(y=null);break A}p=x.next}}else if(d.tag===18){if(y=d.return,y===null)throw Error(i(341));y.lanes|=a,p=y.alternate,p!==null&&(p.lanes|=a),ph(y,a,e),y=null}else y=d.child;if(y!==null)y.return=d;else for(y=d;y!==null;){if(y===e){y=null;break}if(d=y.sibling,d!==null){d.return=y.return,y=d;break}y=y.return}d=y}}function la(e,n,a,o){e=null;for(var d=n,p=!1;d!==null;){if(!p){if((d.flags&524288)!==0)p=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var y=d.alternate;if(y===null)throw Error(i(387));if(y=y.memoizedProps,y!==null){var x=d.type;Tt(d.pendingProps.value,y.value)||(e!==null?e.push(x):e=[x])}}else if(d===pA.current){if(y=d.alternate,y===null)throw Error(i(387));y.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(e!==null?e.push(yl):e=[yl])}d=d.return}e!==null&&mh(n,e,a,o),n.flags|=262144}function uc(e){for(e=e.firstContext;e!==null;){if(!Tt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function oi(e){li=e,Dn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function et(e){return Ww(li,e)}function fc(e,n){return li===null&&oi(e),Ww(e,n)}function Ww(e,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},Dn===null){if(e===null)throw Error(i(308));Dn=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else Dn=Dn.next=n;return a}var gI=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){n.aborted=!0,e.forEach(function(a){return a()})}},pI=A.unstable_scheduleCallback,mI=A.unstable_NormalPriority,Re={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Bh(){return{controller:new gI,data:new Map,refCount:0}}function qs(e){e.refCount--,e.refCount===0&&pI(mI,function(){e.controller.abort()})}var Js=null,Ch=0,oa=0,ca=null;function BI(e,n){if(Js===null){var a=Js=[];Ch=0,oa=Eg(),ca={status:"pending",value:void 0,then:function(o){a.push(o)}}}return Ch++,n.then($w,$w),n}function $w(){if(--Ch===0&&Js!==null){ca!==null&&(ca.status="fulfilled");var e=Js;Js=null,oa=0,ca=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function CI(e,n){var a=[],o={status:"pending",value:null,reason:null,then:function(d){a.push(d)}};return e.then(function(){o.status="fulfilled",o.value=n;for(var d=0;d<a.length;d++)(0,a[d])(n)},function(d){for(o.status="rejected",o.reason=d,d=0;d<a.length;d++)(0,a[d])(void 0)}),o}var Ay=D.S;D.S=function(e,n){RE=ze(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&BI(e,n),Ay!==null&&Ay(e,n)};var ci=U(null);function wh(){var e=ci.current;return e!==null?e:ge.pooledCache}function dc(e,n){n===null?S(ci,ci.current):S(ci,n.pool)}function ey(){var e=wh();return e===null?null:{parent:Re._currentValue,pool:e}}var ua=Error(i(460)),yh=Error(i(474)),hc=Error(i(542)),gc={then:function(){}};function ty(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ny(e,n,a){switch(a=e[a],a===void 0?e.push(n):a!==n&&(n.then(Mn,Mn),n=a),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,iy(e),e;default:if(typeof n.status=="string")n.then(Mn,Mn);else{if(e=ge,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=n,e.status="pending",e.then(function(o){if(n.status==="pending"){var d=n;d.status="fulfilled",d.value=o}},function(o){if(n.status==="pending"){var d=n;d.status="rejected",d.reason=o}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,iy(e),e}throw fi=n,ua}}function ui(e){try{var n=e._init;return n(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(fi=a,ua):a}}var fi=null;function ry(){if(fi===null)throw Error(i(459));var e=fi;return fi=null,e}function iy(e){if(e===ua||e===hc)throw Error(i(483))}var fa=null,Zs=0;function pc(e){var n=Zs;return Zs+=1,fa===null&&(fa=[]),ny(fa,e,n)}function Ws(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function mc(e,n){throw n.$$typeof===w?Error(i(525)):(e=Object.prototype.toString.call(n),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function ay(e){function n(G,k){if(e){var P=G.deletions;P===null?(G.deletions=[k],G.flags|=16):P.push(k)}}function a(G,k){if(!e)return null;for(;k!==null;)n(G,k),k=k.sibling;return null}function o(G){for(var k=new Map;G!==null;)G.key!==null?k.set(G.key,G):k.set(G.index,G),G=G.sibling;return k}function d(G,k){return G=Rn(G,k),G.index=0,G.sibling=null,G}function p(G,k,P){return G.index=P,e?(P=G.alternate,P!==null?(P=P.index,P<k?(G.flags|=67108866,k):P):(G.flags|=67108866,k)):(G.flags|=1048576,k)}function y(G){return e&&G.alternate===null&&(G.flags|=67108866),G}function x(G,k,P,iA){return k===null||k.tag!==6?(k=oh(P,G.mode,iA),k.return=G,k):(k=d(k,P),k.return=G,k)}function H(G,k,P,iA){var xA=P.type;return xA===v?tA(G,k,P.props.children,iA,P.key):k!==null&&(k.elementType===xA||typeof xA=="object"&&xA!==null&&xA.$$typeof===R&&ui(xA)===k.type)?(k=d(k,P.props),Ws(k,P),k.return=G,k):(k=oc(P.type,P.key,P.props,null,G.mode,iA),Ws(k,P),k.return=G,k)}function Y(G,k,P,iA){return k===null||k.tag!==4||k.stateNode.containerInfo!==P.containerInfo||k.stateNode.implementation!==P.implementation?(k=ch(P,G.mode,iA),k.return=G,k):(k=d(k,P.children||[]),k.return=G,k)}function tA(G,k,P,iA,xA){return k===null||k.tag!==7?(k=ai(P,G.mode,iA,xA),k.return=G,k):(k=d(k,P),k.return=G,k)}function sA(G,k,P){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return k=oh(""+k,G.mode,P),k.return=G,k;if(typeof k=="object"&&k!==null){switch(k.$$typeof){case C:return P=oc(k.type,k.key,k.props,null,G.mode,P),Ws(P,k),P.return=G,P;case E:return k=ch(k,G.mode,P),k.return=G,k;case R:return k=ui(k),sA(G,k,P)}if(eA(k)||z(k))return k=ai(k,G.mode,P,null),k.return=G,k;if(typeof k.then=="function")return sA(G,pc(k),P);if(k.$$typeof===O)return sA(G,fc(G,k),P);mc(G,k)}return null}function J(G,k,P,iA){var xA=k!==null?k.key:null;if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return xA!==null?null:x(G,k,""+P,iA);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case C:return P.key===xA?H(G,k,P,iA):null;case E:return P.key===xA?Y(G,k,P,iA):null;case R:return P=ui(P),J(G,k,P,iA)}if(eA(P)||z(P))return xA!==null?null:tA(G,k,P,iA,null);if(typeof P.then=="function")return J(G,k,pc(P),iA);if(P.$$typeof===O)return J(G,k,fc(G,P),iA);mc(G,P)}return null}function $(G,k,P,iA,xA){if(typeof iA=="string"&&iA!==""||typeof iA=="number"||typeof iA=="bigint")return G=G.get(P)||null,x(k,G,""+iA,xA);if(typeof iA=="object"&&iA!==null){switch(iA.$$typeof){case C:return G=G.get(iA.key===null?P:iA.key)||null,H(k,G,iA,xA);case E:return G=G.get(iA.key===null?P:iA.key)||null,Y(k,G,iA,xA);case R:return iA=ui(iA),$(G,k,P,iA,xA)}if(eA(iA)||z(iA))return G=G.get(P)||null,tA(k,G,iA,xA,null);if(typeof iA.then=="function")return $(G,k,P,pc(iA),xA);if(iA.$$typeof===O)return $(G,k,P,fc(k,iA),xA);mc(k,iA)}return null}function wA(G,k,P,iA){for(var xA=null,WA=null,vA=k,OA=k=0,YA=null;vA!==null&&OA<P.length;OA++){vA.index>OA?(YA=vA,vA=null):YA=vA.sibling;var $A=J(G,vA,P[OA],iA);if($A===null){vA===null&&(vA=YA);break}e&&vA&&$A.alternate===null&&n(G,vA),k=p($A,k,OA),WA===null?xA=$A:WA.sibling=$A,WA=$A,vA=YA}if(OA===P.length)return a(G,vA),XA&&Ln(G,OA),xA;if(vA===null){for(;OA<P.length;OA++)vA=sA(G,P[OA],iA),vA!==null&&(k=p(vA,k,OA),WA===null?xA=vA:WA.sibling=vA,WA=vA);return XA&&Ln(G,OA),xA}for(vA=o(vA);OA<P.length;OA++)YA=$(vA,G,OA,P[OA],iA),YA!==null&&(e&&YA.alternate!==null&&vA.delete(YA.key===null?OA:YA.key),k=p(YA,k,OA),WA===null?xA=YA:WA.sibling=YA,WA=YA);return e&&vA.forEach(function(kr){return n(G,kr)}),XA&&Ln(G,OA),xA}function QA(G,k,P,iA){if(P==null)throw Error(i(151));for(var xA=null,WA=null,vA=k,OA=k=0,YA=null,$A=P.next();vA!==null&&!$A.done;OA++,$A=P.next()){vA.index>OA?(YA=vA,vA=null):YA=vA.sibling;var kr=J(G,vA,$A.value,iA);if(kr===null){vA===null&&(vA=YA);break}e&&vA&&kr.alternate===null&&n(G,vA),k=p(kr,k,OA),WA===null?xA=kr:WA.sibling=kr,WA=kr,vA=YA}if($A.done)return a(G,vA),XA&&Ln(G,OA),xA;if(vA===null){for(;!$A.done;OA++,$A=P.next())$A=sA(G,$A.value,iA),$A!==null&&(k=p($A,k,OA),WA===null?xA=$A:WA.sibling=$A,WA=$A);return XA&&Ln(G,OA),xA}for(vA=o(vA);!$A.done;OA++,$A=P.next())$A=$(vA,G,OA,$A.value,iA),$A!==null&&(e&&$A.alternate!==null&&vA.delete($A.key===null?OA:$A.key),k=p($A,k,OA),WA===null?xA=$A:WA.sibling=$A,WA=$A);return e&&vA.forEach(function(TN){return n(G,TN)}),XA&&Ln(G,OA),xA}function ue(G,k,P,iA){if(typeof P=="object"&&P!==null&&P.type===v&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case C:A:{for(var xA=P.key;k!==null;){if(k.key===xA){if(xA=P.type,xA===v){if(k.tag===7){a(G,k.sibling),iA=d(k,P.props.children),iA.return=G,G=iA;break A}}else if(k.elementType===xA||typeof xA=="object"&&xA!==null&&xA.$$typeof===R&&ui(xA)===k.type){a(G,k.sibling),iA=d(k,P.props),Ws(iA,P),iA.return=G,G=iA;break A}a(G,k);break}else n(G,k);k=k.sibling}P.type===v?(iA=ai(P.props.children,G.mode,iA,P.key),iA.return=G,G=iA):(iA=oc(P.type,P.key,P.props,null,G.mode,iA),Ws(iA,P),iA.return=G,G=iA)}return y(G);case E:A:{for(xA=P.key;k!==null;){if(k.key===xA)if(k.tag===4&&k.stateNode.containerInfo===P.containerInfo&&k.stateNode.implementation===P.implementation){a(G,k.sibling),iA=d(k,P.children||[]),iA.return=G,G=iA;break A}else{a(G,k);break}else n(G,k);k=k.sibling}iA=ch(P,G.mode,iA),iA.return=G,G=iA}return y(G);case R:return P=ui(P),ue(G,k,P,iA)}if(eA(P))return wA(G,k,P,iA);if(z(P)){if(xA=z(P),typeof xA!="function")throw Error(i(150));return P=xA.call(P),QA(G,k,P,iA)}if(typeof P.then=="function")return ue(G,k,pc(P),iA);if(P.$$typeof===O)return ue(G,k,fc(G,P),iA);mc(G,P)}return typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint"?(P=""+P,k!==null&&k.tag===6?(a(G,k.sibling),iA=d(k,P),iA.return=G,G=iA):(a(G,k),iA=oh(P,G.mode,iA),iA.return=G,G=iA),y(G)):a(G,k)}return function(G,k,P,iA){try{Zs=0;var xA=ue(G,k,P,iA);return fa=null,xA}catch(vA){if(vA===ua||vA===hc)throw vA;var WA=It(29,vA,null,G.mode);return WA.lanes=iA,WA.return=G,WA}finally{}}}var di=ay(!0),sy=ay(!1),vr=!1;function Eh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vh(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 br(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function xr(e,n,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(ne&2)!==0){var d=o.pending;return d===null?n.next=n:(n.next=d.next,d.next=n),o.pending=n,n=lc(e),Gw(e,null,a),n}return sc(e,o,n,a),lc(e)}function $s(e,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var o=n.lanes;o&=e.pendingLanes,a|=o,n.lanes=a,Pe(e,a)}}function bh(e,n){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var d=null,p=null;if(a=a.firstBaseUpdate,a!==null){do{var y={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};p===null?d=p=y:p=p.next=y,a=a.next}while(a!==null);p===null?d=p=n:p=p.next=n}else d=p=n;a={baseState:o.baseState,firstBaseUpdate:d,lastBaseUpdate:p,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=n:e.next=n,a.lastBaseUpdate=n}var xh=!1;function Al(){if(xh){var e=ca;if(e!==null)throw e}}function el(e,n,a,o){xh=!1;var d=e.updateQueue;vr=!1;var p=d.firstBaseUpdate,y=d.lastBaseUpdate,x=d.shared.pending;if(x!==null){d.shared.pending=null;var H=x,Y=H.next;H.next=null,y===null?p=Y:y.next=Y,y=H;var tA=e.alternate;tA!==null&&(tA=tA.updateQueue,x=tA.lastBaseUpdate,x!==y&&(x===null?tA.firstBaseUpdate=Y:x.next=Y,tA.lastBaseUpdate=H))}if(p!==null){var sA=d.baseState;y=0,tA=Y=H=null,x=p;do{var J=x.lane&-536870913,$=J!==x.lane;if($?(PA&J)===J:(o&J)===J){J!==0&&J===oa&&(xh=!0),tA!==null&&(tA=tA.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});A:{var wA=e,QA=x;J=n;var ue=a;switch(QA.tag){case 1:if(wA=QA.payload,typeof wA=="function"){sA=wA.call(ue,sA,J);break A}sA=wA;break A;case 3:wA.flags=wA.flags&-65537|128;case 0:if(wA=QA.payload,J=typeof wA=="function"?wA.call(ue,sA,J):wA,J==null)break A;sA=B({},sA,J);break A;case 2:vr=!0}}J=x.callback,J!==null&&(e.flags|=64,$&&(e.flags|=8192),$=d.callbacks,$===null?d.callbacks=[J]:$.push(J))}else $={lane:J,tag:x.tag,payload:x.payload,callback:x.callback,next:null},tA===null?(Y=tA=$,H=sA):tA=tA.next=$,y|=J;if(x=x.next,x===null){if(x=d.shared.pending,x===null)break;$=x,x=$.next,$.next=null,d.lastBaseUpdate=$,d.shared.pending=null}}while(!0);tA===null&&(H=sA),d.baseState=H,d.firstBaseUpdate=Y,d.lastBaseUpdate=tA,p===null&&(d.shared.lanes=0),Tr|=y,e.lanes=y,e.memoizedState=sA}}function ly(e,n){if(typeof e!="function")throw Error(i(191,e));e.call(n)}function oy(e,n){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)ly(a[e],n)}var da=U(null),Bc=U(0);function cy(e,n){e=qn,S(Bc,e),S(da,n),qn=e|n.baseLanes}function Sh(){S(Bc,qn),S(da,da.current)}function Qh(){qn=Bc.current,M(da),M(Bc)}var Nt=U(null),Wt=null;function Sr(e){var n=e.alternate;S(Ne,Ne.current&1),S(Nt,e),Wt===null&&(n===null||da.current!==null||n.memoizedState!==null)&&(Wt=e)}function Uh(e){S(Ne,Ne.current),S(Nt,e),Wt===null&&(Wt=e)}function uy(e){e.tag===22?(S(Ne,Ne.current),S(Nt,e),Wt===null&&(Wt=e)):Qr()}function Qr(){S(Ne,Ne.current),S(Nt,Nt.current)}function Ht(e){M(Nt),Wt===e&&(Wt=null),M(Ne)}var Ne=U(0);function Cc(e){for(var n=e;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||_g(a)||Mg(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 jn=0,_A=null,oe=null,Le=null,wc=!1,ha=!1,hi=!1,yc=0,tl=0,ga=null,wI=0;function Se(){throw Error(i(321))}function Fh(e,n){if(n===null)return!1;for(var a=0;a<n.length&&a<e.length;a++)if(!Tt(e[a],n[a]))return!1;return!0}function Th(e,n,a,o,d,p){return jn=p,_A=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,D.H=e===null||e.memoizedState===null?Xy:zh,hi=!1,p=a(o,d),hi=!1,ha&&(p=dy(n,a,o,d)),fy(e),p}function fy(e){D.H=il;var n=oe!==null&&oe.next!==null;if(jn=0,Le=oe=_A=null,wc=!1,tl=0,ga=null,n)throw Error(i(300));e===null||De||(e=e.dependencies,e!==null&&uc(e)&&(De=!0))}function dy(e,n,a,o){_A=e;var d=0;do{if(ha&&(ga=null),tl=0,ha=!1,25<=d)throw Error(i(301));if(d+=1,Le=oe=null,e.updateQueue!=null){var p=e.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}D.H=qy,p=n(a,o)}while(ha);return p}function yI(){var e=D.H,n=e.useState()[0];return n=typeof n.then=="function"?nl(n):n,e=e.useState()[0],(oe!==null?oe.memoizedState:null)!==e&&(_A.flags|=1024),n}function Ih(){var e=yc!==0;return yc=0,e}function Nh(e,n,a){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a}function Hh(e){if(wc){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}wc=!1}jn=0,Le=oe=_A=null,ha=!1,tl=yc=0,ga=null}function ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Le===null?_A.memoizedState=Le=e:Le=Le.next=e,Le}function He(){if(oe===null){var e=_A.alternate;e=e!==null?e.memoizedState:null}else e=oe.next;var n=Le===null?_A.memoizedState:Le.next;if(n!==null)Le=n,oe=e;else{if(e===null)throw _A.alternate===null?Error(i(467)):Error(i(310));oe=e,e={memoizedState:oe.memoizedState,baseState:oe.baseState,baseQueue:oe.baseQueue,queue:oe.queue,next:null},Le===null?_A.memoizedState=Le=e:Le=Le.next=e}return Le}function Ec(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function nl(e){var n=tl;return tl+=1,ga===null&&(ga=[]),e=ny(ga,e,n),n=_A,(Le===null?n.memoizedState:Le.next)===null&&(n=n.alternate,D.H=n===null||n.memoizedState===null?Xy:zh),e}function vc(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return nl(e);if(e.$$typeof===O)return et(e)}throw Error(i(438,String(e)))}function _h(e){var n=null,a=_A.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var o=_A.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(n={data:o.data.map(function(d){return d.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),a===null&&(a=Ec(),_A.updateQueue=a),a.memoCache=n,a=n.data[n.index],a===void 0)for(a=n.data[n.index]=Array(e),o=0;o<e;o++)a[o]=X;return n.index++,a}function Kn(e,n){return typeof n=="function"?n(e):n}function bc(e){var n=He();return Mh(n,oe,e)}function Mh(e,n,a){var o=e.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=a;var d=e.baseQueue,p=o.pending;if(p!==null){if(d!==null){var y=d.next;d.next=p.next,p.next=y}n.baseQueue=d=p,o.pending=null}if(p=e.baseState,d===null)e.memoizedState=p;else{n=d.next;var x=y=null,H=null,Y=n,tA=!1;do{var sA=Y.lane&-536870913;if(sA!==Y.lane?(PA&sA)===sA:(jn&sA)===sA){var J=Y.revertLane;if(J===0)H!==null&&(H=H.next={lane:0,revertLane:0,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),sA===oa&&(tA=!0);else if((jn&J)===J){Y=Y.next,J===oa&&(tA=!0);continue}else sA={lane:0,revertLane:Y.revertLane,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},H===null?(x=H=sA,y=p):H=H.next=sA,_A.lanes|=J,Tr|=J;sA=Y.action,hi&&a(p,sA),p=Y.hasEagerState?Y.eagerState:a(p,sA)}else J={lane:sA,revertLane:Y.revertLane,gesture:Y.gesture,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},H===null?(x=H=J,y=p):H=H.next=J,_A.lanes|=sA,Tr|=sA;Y=Y.next}while(Y!==null&&Y!==n);if(H===null?y=p:H.next=x,!Tt(p,e.memoizedState)&&(De=!0,tA&&(a=ca,a!==null)))throw a;e.memoizedState=p,e.baseState=y,e.baseQueue=H,o.lastRenderedState=p}return d===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Oh(e){var n=He(),a=n.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=e;var o=a.dispatch,d=a.pending,p=n.memoizedState;if(d!==null){a.pending=null;var y=d=d.next;do p=e(p,y.action),y=y.next;while(y!==d);Tt(p,n.memoizedState)||(De=!0),n.memoizedState=p,n.baseQueue===null&&(n.baseState=p),a.lastRenderedState=p}return[p,o]}function hy(e,n,a){var o=_A,d=He(),p=XA;if(p){if(a===void 0)throw Error(i(407));a=a()}else a=n();var y=!Tt((oe||d).memoizedState,a);if(y&&(d.memoizedState=a,De=!0),d=d.queue,Dh(my.bind(null,o,d,e),[e]),d.getSnapshot!==n||y||Le!==null&&Le.memoizedState.tag&1){if(o.flags|=2048,pa(9,{destroy:void 0},py.bind(null,o,d,a,n),null),ge===null)throw Error(i(349));p||(jn&127)!==0||gy(o,n,a)}return a}function gy(e,n,a){e.flags|=16384,e={getSnapshot:n,value:a},n=_A.updateQueue,n===null?(n=Ec(),_A.updateQueue=n,n.stores=[e]):(a=n.stores,a===null?n.stores=[e]:a.push(e))}function py(e,n,a,o){n.value=a,n.getSnapshot=o,By(n)&&Cy(e)}function my(e,n,a){return a(function(){By(n)&&Cy(e)})}function By(e){var n=e.getSnapshot;e=e.value;try{var a=n();return!Tt(e,a)}catch{return!0}}function Cy(e){var n=ii(e,2);n!==null&&vt(n,e,2)}function Rh(e){var n=ct();if(typeof e=="function"){var a=e;if(e=a(),hi){he(!0);try{a()}finally{he(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kn,lastRenderedState:e},n}function wy(e,n,a,o){return e.baseState=a,Mh(e,oe,typeof o=="function"?o:Kn)}function EI(e,n,a,o,d){if(Qc(e))throw Error(i(485));if(e=n.action,e!==null){var p={payload:d,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){p.listeners.push(y)}};D.T!==null?a(!0):p.isTransition=!1,o(p),a=n.pending,a===null?(p.next=n.pending=p,yy(n,p)):(p.next=a.next,n.pending=a.next=p)}}function yy(e,n){var a=n.action,o=n.payload,d=e.state;if(n.isTransition){var p=D.T,y={};D.T=y;try{var x=a(d,o),H=D.S;H!==null&&H(y,x),Ey(e,n,x)}catch(Y){Lh(e,n,Y)}finally{p!==null&&y.types!==null&&(p.types=y.types),D.T=p}}else try{p=a(d,o),Ey(e,n,p)}catch(Y){Lh(e,n,Y)}}function Ey(e,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(o){vy(e,n,o)},function(o){return Lh(e,n,o)}):vy(e,n,a)}function vy(e,n,a){n.status="fulfilled",n.value=a,by(n),e.state=a,n=e.pending,n!==null&&(a=n.next,a===n?e.pending=null:(a=a.next,n.next=a,yy(e,a)))}function Lh(e,n,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do n.status="rejected",n.reason=a,by(n),n=n.next;while(n!==o)}e.action=null}function by(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function xy(e,n){return n}function Sy(e,n){if(XA){var a=ge.formState;if(a!==null){A:{var o=_A;if(XA){if(we){e:{for(var d=we,p=Zt;d.nodeType!==8;){if(!p){d=null;break e}if(d=$t(d.nextSibling),d===null){d=null;break e}}p=d.data,d=p==="F!"||p==="F"?d:null}if(d){we=$t(d.nextSibling),o=d.data==="F!";break A}}yr(o)}o=!1}o&&(n=a[0])}}return a=ct(),a.memoizedState=a.baseState=n,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xy,lastRenderedState:n},a.queue=o,a=zy.bind(null,_A,o),o.dispatch=a,o=Rh(!1),p=Gh.bind(null,_A,!1,o.queue),o=ct(),d={state:n,dispatch:null,action:e,pending:null},o.queue=d,a=EI.bind(null,_A,d,p,a),d.dispatch=a,o.memoizedState=e,[n,a,!1]}function Qy(e){var n=He();return Uy(n,oe,e)}function Uy(e,n,a){if(n=Mh(e,n,xy)[0],e=bc(Kn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var o=nl(n)}catch(y){throw y===ua?hc:y}else o=n;n=He();var d=n.queue,p=d.dispatch;return a!==n.memoizedState&&(_A.flags|=2048,pa(9,{destroy:void 0},vI.bind(null,d,a),null)),[o,p,e]}function vI(e,n){e.action=n}function Fy(e){var n=He(),a=oe;if(a!==null)return Uy(n,a,e);He(),n=n.memoizedState,a=He();var o=a.queue.dispatch;return a.memoizedState=e,[n,o,!1]}function pa(e,n,a,o){return e={tag:e,create:a,deps:o,inst:n,next:null},n=_A.updateQueue,n===null&&(n=Ec(),_A.updateQueue=n),a=n.lastEffect,a===null?n.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,n.lastEffect=e),e}function Ty(){return He().memoizedState}function xc(e,n,a,o){var d=ct();_A.flags|=e,d.memoizedState=pa(1|n,{destroy:void 0},a,o===void 0?null:o)}function Sc(e,n,a,o){var d=He();o=o===void 0?null:o;var p=d.memoizedState.inst;oe!==null&&o!==null&&Fh(o,oe.memoizedState.deps)?d.memoizedState=pa(n,p,a,o):(_A.flags|=e,d.memoizedState=pa(1|n,p,a,o))}function Iy(e,n){xc(8390656,8,e,n)}function Dh(e,n){Sc(2048,8,e,n)}function bI(e){_A.flags|=4;var n=_A.updateQueue;if(n===null)n=Ec(),_A.updateQueue=n,n.events=[e];else{var a=n.events;a===null?n.events=[e]:a.push(e)}}function Ny(e){var n=He().memoizedState;return bI({ref:n,nextImpl:e}),function(){if((ne&2)!==0)throw Error(i(440));return n.impl.apply(void 0,arguments)}}function Hy(e,n){return Sc(4,2,e,n)}function _y(e,n){return Sc(4,4,e,n)}function My(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 Oy(e,n,a){a=a!=null?a.concat([e]):null,Sc(4,4,My.bind(null,n,e),a)}function kh(){}function Ry(e,n){var a=He();n=n===void 0?null:n;var o=a.memoizedState;return n!==null&&Fh(n,o[1])?o[0]:(a.memoizedState=[e,n],e)}function Ly(e,n){var a=He();n=n===void 0?null:n;var o=a.memoizedState;if(n!==null&&Fh(n,o[1]))return o[0];if(o=e(),hi){he(!0);try{e()}finally{he(!1)}}return a.memoizedState=[o,n],o}function jh(e,n,a){return a===void 0||(jn&1073741824)!==0&&(PA&261930)===0?e.memoizedState=n:(e.memoizedState=a,e=DE(),_A.lanes|=e,Tr|=e,a)}function Dy(e,n,a,o){return Tt(a,n)?a:da.current!==null?(e=jh(e,a,o),Tt(e,n)||(De=!0),e):(jn&42)===0||(jn&1073741824)!==0&&(PA&261930)===0?(De=!0,e.memoizedState=a):(e=DE(),_A.lanes|=e,Tr|=e,n)}function ky(e,n,a,o,d){var p=W.p;W.p=p!==0&&8>p?p:8;var y=D.T,x={};D.T=x,Gh(e,!1,n,a);try{var H=d(),Y=D.S;if(Y!==null&&Y(x,H),H!==null&&typeof H=="object"&&typeof H.then=="function"){var tA=CI(H,o);rl(e,n,tA,Ot())}else rl(e,n,o,Ot())}catch(sA){rl(e,n,{then:function(){},status:"rejected",reason:sA},Ot())}finally{W.p=p,y!==null&&x.types!==null&&(y.types=x.types),D.T=y}}function xI(){}function Kh(e,n,a,o){if(e.tag!==5)throw Error(i(476));var d=jy(e).queue;ky(e,d,n,AA,a===null?xI:function(){return Ky(e),a(o)})}function jy(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:AA,baseState:AA,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kn,lastRenderedState:AA},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kn,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function Ky(e){var n=jy(e);n.next===null&&(n=e.alternate.memoizedState),rl(e,n.next.queue,{},Ot())}function Vh(){return et(yl)}function Vy(){return He().memoizedState}function Gy(){return He().memoizedState}function SI(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=Ot();e=br(a);var o=xr(n,e,a);o!==null&&(vt(o,n,a),$s(o,n,a)),n={cache:Bh()},e.payload=n;return}n=n.return}}function QI(e,n,a){var o=Ot();a={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Qc(e)?Py(n,a):(a=sh(e,n,a,o),a!==null&&(vt(a,e,o),Yy(a,n,o)))}function zy(e,n,a){var o=Ot();rl(e,n,a,o)}function rl(e,n,a,o){var d={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Qc(e))Py(n,d);else{var p=e.alternate;if(e.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null))try{var y=n.lastRenderedState,x=p(y,a);if(d.hasEagerState=!0,d.eagerState=x,Tt(x,y))return sc(e,n,d,0),ge===null&&ac(),!1}catch{}finally{}if(a=sh(e,n,d,o),a!==null)return vt(a,e,o),Yy(a,n,o),!0}return!1}function Gh(e,n,a,o){if(o={lane:2,revertLane:Eg(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Qc(e)){if(n)throw Error(i(479))}else n=sh(e,a,o,2),n!==null&&vt(n,e,2)}function Qc(e){var n=e.alternate;return e===_A||n!==null&&n===_A}function Py(e,n){ha=wc=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function Yy(e,n,a){if((a&4194048)!==0){var o=n.lanes;o&=e.pendingLanes,a|=o,n.lanes=a,Pe(e,a)}}var il={readContext:et,use:vc,useCallback:Se,useContext:Se,useEffect:Se,useImperativeHandle:Se,useLayoutEffect:Se,useInsertionEffect:Se,useMemo:Se,useReducer:Se,useRef:Se,useState:Se,useDebugValue:Se,useDeferredValue:Se,useTransition:Se,useSyncExternalStore:Se,useId:Se,useHostTransitionStatus:Se,useFormState:Se,useActionState:Se,useOptimistic:Se,useMemoCache:Se,useCacheRefresh:Se};il.useEffectEvent=Se;var Xy={readContext:et,use:vc,useCallback:function(e,n){return ct().memoizedState=[e,n===void 0?null:n],e},useContext:et,useEffect:Iy,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,xc(4194308,4,My.bind(null,n,e),a)},useLayoutEffect:function(e,n){return xc(4194308,4,e,n)},useInsertionEffect:function(e,n){xc(4,2,e,n)},useMemo:function(e,n){var a=ct();n=n===void 0?null:n;var o=e();if(hi){he(!0);try{e()}finally{he(!1)}}return a.memoizedState=[o,n],o},useReducer:function(e,n,a){var o=ct();if(a!==void 0){var d=a(n);if(hi){he(!0);try{a(n)}finally{he(!1)}}}else d=n;return o.memoizedState=o.baseState=d,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:d},o.queue=e,e=e.dispatch=QI.bind(null,_A,e),[o.memoizedState,e]},useRef:function(e){var n=ct();return e={current:e},n.memoizedState=e},useState:function(e){e=Rh(e);var n=e.queue,a=zy.bind(null,_A,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:kh,useDeferredValue:function(e,n){var a=ct();return jh(a,e,n)},useTransition:function(){var e=Rh(!1);return e=ky.bind(null,_A,e.queue,!0,!1),ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var o=_A,d=ct();if(XA){if(a===void 0)throw Error(i(407));a=a()}else{if(a=n(),ge===null)throw Error(i(349));(PA&127)!==0||gy(o,n,a)}d.memoizedState=a;var p={value:a,getSnapshot:n};return d.queue=p,Iy(my.bind(null,o,p,e),[e]),o.flags|=2048,pa(9,{destroy:void 0},py.bind(null,o,p,a,n),null),a},useId:function(){var e=ct(),n=ge.identifierPrefix;if(XA){var a=yn,o=wn;a=(o&~(1<<32-DA(o)-1)).toString(32)+a,n="_"+n+"R_"+a,a=yc++,0<a&&(n+="H"+a.toString(32)),n+="_"}else a=wI++,n="_"+n+"r_"+a.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:Vh,useFormState:Sy,useActionState:Sy,useOptimistic:function(e){var n=ct();n.memoizedState=n.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=Gh.bind(null,_A,!0,a),a.dispatch=n,[e,n]},useMemoCache:_h,useCacheRefresh:function(){return ct().memoizedState=SI.bind(null,_A)},useEffectEvent:function(e){var n=ct(),a={impl:e};return n.memoizedState=a,function(){if((ne&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}},zh={readContext:et,use:vc,useCallback:Ry,useContext:et,useEffect:Dh,useImperativeHandle:Oy,useInsertionEffect:Hy,useLayoutEffect:_y,useMemo:Ly,useReducer:bc,useRef:Ty,useState:function(){return bc(Kn)},useDebugValue:kh,useDeferredValue:function(e,n){var a=He();return Dy(a,oe.memoizedState,e,n)},useTransition:function(){var e=bc(Kn)[0],n=He().memoizedState;return[typeof e=="boolean"?e:nl(e),n]},useSyncExternalStore:hy,useId:Vy,useHostTransitionStatus:Vh,useFormState:Qy,useActionState:Qy,useOptimistic:function(e,n){var a=He();return wy(a,oe,e,n)},useMemoCache:_h,useCacheRefresh:Gy};zh.useEffectEvent=Ny;var qy={readContext:et,use:vc,useCallback:Ry,useContext:et,useEffect:Dh,useImperativeHandle:Oy,useInsertionEffect:Hy,useLayoutEffect:_y,useMemo:Ly,useReducer:Oh,useRef:Ty,useState:function(){return Oh(Kn)},useDebugValue:kh,useDeferredValue:function(e,n){var a=He();return oe===null?jh(a,e,n):Dy(a,oe.memoizedState,e,n)},useTransition:function(){var e=Oh(Kn)[0],n=He().memoizedState;return[typeof e=="boolean"?e:nl(e),n]},useSyncExternalStore:hy,useId:Vy,useHostTransitionStatus:Vh,useFormState:Fy,useActionState:Fy,useOptimistic:function(e,n){var a=He();return oe!==null?wy(a,oe,e,n):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:_h,useCacheRefresh:Gy};qy.useEffectEvent=Ny;function Ph(e,n,a,o){n=e.memoizedState,a=a(o,n),a=a==null?n:B({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Yh={enqueueSetState:function(e,n,a){e=e._reactInternals;var o=Ot(),d=br(o);d.payload=n,a!=null&&(d.callback=a),n=xr(e,d,o),n!==null&&(vt(n,e,o),$s(n,e,o))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var o=Ot(),d=br(o);d.tag=1,d.payload=n,a!=null&&(d.callback=a),n=xr(e,d,o),n!==null&&(vt(n,e,o),$s(n,e,o))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=Ot(),o=br(a);o.tag=2,n!=null&&(o.callback=n),n=xr(e,o,a),n!==null&&(vt(n,e,a),$s(n,e,a))}};function Jy(e,n,a,o,d,p,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,p,y):n.prototype&&n.prototype.isPureReactComponent?!zs(a,o)||!zs(d,p):!0}function Zy(e,n,a,o){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,o),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,o),n.state!==e&&Yh.enqueueReplaceState(n,n.state,null)}function gi(e,n){var a=n;if("ref"in n){a={};for(var o in n)o!=="ref"&&(a[o]=n[o])}if(e=e.defaultProps){a===n&&(a=B({},a));for(var d in e)a[d]===void 0&&(a[d]=e[d])}return a}function Wy(e){ic(e)}function $y(e){}function AE(e){ic(e)}function Uc(e,n){try{var a=e.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(o){setTimeout(function(){throw o})}}function eE(e,n,a){try{var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Xh(e,n,a){return a=br(a),a.tag=3,a.payload={element:null},a.callback=function(){Uc(e,n)},a}function tE(e){return e=br(e),e.tag=3,e}function nE(e,n,a,o){var d=a.type.getDerivedStateFromError;if(typeof d=="function"){var p=o.value;e.payload=function(){return d(p)},e.callback=function(){eE(n,a,o)}}var y=a.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){eE(n,a,o),typeof d!="function"&&(Ir===null?Ir=new Set([this]):Ir.add(this));var x=o.stack;this.componentDidCatch(o.value,{componentStack:x!==null?x:""})})}function UI(e,n,a,o,d){if(a.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(n=a.alternate,n!==null&&la(n,a,d,!0),a=Nt.current,a!==null){switch(a.tag){case 31:case 13:return Wt===null?kc():a.alternate===null&&Qe===0&&(Qe=3),a.flags&=-257,a.flags|=65536,a.lanes=d,o===gc?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([o]):n.add(o),Cg(e,o,d)),!1;case 22:return a.flags|=65536,o===gc?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([o]):a.add(o)),Cg(e,o,d)),!1}throw Error(i(435,a.tag))}return Cg(e,o,d),kc(),!1}if(XA)return n=Nt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=d,o!==dh&&(e=Error(i(422),{cause:o}),Xs(Xt(e,a)))):(o!==dh&&(n=Error(i(423),{cause:o}),Xs(Xt(n,a))),e=e.current.alternate,e.flags|=65536,d&=-d,e.lanes|=d,o=Xt(o,a),d=Xh(e.stateNode,o,d),bh(e,d),Qe!==4&&(Qe=2)),!1;var p=Error(i(520),{cause:o});if(p=Xt(p,a),dl===null?dl=[p]:dl.push(p),Qe!==4&&(Qe=2),n===null)return!0;o=Xt(o,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=d&-d,a.lanes|=e,e=Xh(a.stateNode,o,e),bh(a,e),!1;case 1:if(n=a.type,p=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Ir===null||!Ir.has(p))))return a.flags|=65536,d&=-d,a.lanes|=d,d=tE(d),nE(d,e,a,o),bh(a,d),!1}a=a.return}while(a!==null);return!1}var qh=Error(i(461)),De=!1;function tt(e,n,a,o){n.child=e===null?sy(n,null,a,o):di(n,e.child,a,o)}function rE(e,n,a,o,d){a=a.render;var p=n.ref;if("ref"in o){var y={};for(var x in o)x!=="ref"&&(y[x]=o[x])}else y=o;return oi(n),o=Th(e,n,a,y,p,d),x=Ih(),e!==null&&!De?(Nh(e,n,d),Vn(e,n,d)):(XA&&x&&uh(n),n.flags|=1,tt(e,n,o,d),n.child)}function iE(e,n,a,o,d){if(e===null){var p=a.type;return typeof p=="function"&&!lh(p)&&p.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=p,aE(e,n,p,o,d)):(e=oc(a.type,null,o,n,n.mode,d),e.ref=n.ref,e.return=n,n.child=e)}if(p=e.child,!ng(e,d)){var y=p.memoizedProps;if(a=a.compare,a=a!==null?a:zs,a(y,o)&&e.ref===n.ref)return Vn(e,n,d)}return n.flags|=1,e=Rn(p,o),e.ref=n.ref,e.return=n,n.child=e}function aE(e,n,a,o,d){if(e!==null){var p=e.memoizedProps;if(zs(p,o)&&e.ref===n.ref)if(De=!1,n.pendingProps=o=p,ng(e,d))(e.flags&131072)!==0&&(De=!0);else return n.lanes=e.lanes,Vn(e,n,d)}return Jh(e,n,a,o,d)}function sE(e,n,a,o){var d=o.children,p=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((n.flags&128)!==0){if(p=p!==null?p.baseLanes|a:a,e!==null){for(o=n.child=e.child,d=0;o!==null;)d=d|o.lanes|o.childLanes,o=o.sibling;o=d&~p}else o=0,n.child=null;return lE(e,n,p,a,o)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&dc(n,p!==null?p.cachePool:null),p!==null?cy(n,p):Sh(),uy(n);else return o=n.lanes=536870912,lE(e,n,p!==null?p.baseLanes|a:a,a,o)}else p!==null?(dc(n,p.cachePool),cy(n,p),Qr(),n.memoizedState=null):(e!==null&&dc(n,null),Sh(),Qr());return tt(e,n,d,a),n.child}function al(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function lE(e,n,a,o,d){var p=wh();return p=p===null?null:{parent:Re._currentValue,pool:p},n.memoizedState={baseLanes:a,cachePool:p},e!==null&&dc(n,null),Sh(),uy(n),e!==null&&la(e,n,o,!0),n.childLanes=d,null}function Fc(e,n){return n=Ic({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function oE(e,n,a){return di(n,e.child,null,a),e=Fc(n,n.pendingProps),e.flags|=2,Ht(n),n.memoizedState=null,e}function FI(e,n,a){var o=n.pendingProps,d=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(XA){if(o.mode==="hidden")return e=Fc(n,o),n.lanes=536870912,al(null,e);if(Uh(n),(e=we)?(e=yv(e,Zt),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Cr!==null?{id:wn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},a=Pw(e),a.return=n,n.child=a,At=n,we=null)):e=null,e===null)throw yr(n);return n.lanes=536870912,null}return Fc(n,o)}var p=e.memoizedState;if(p!==null){var y=p.dehydrated;if(Uh(n),d)if(n.flags&256)n.flags&=-257,n=oE(e,n,a);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(i(558));else if(De||la(e,n,a,!1),d=(a&e.childLanes)!==0,De||d){if(o=ge,o!==null&&(y=Ft(o,a),y!==0&&y!==p.retryLane))throw p.retryLane=y,ii(e,y),vt(o,e,y),qh;kc(),n=oE(e,n,a)}else e=p.treeContext,we=$t(y.nextSibling),At=n,XA=!0,wr=null,Zt=!1,e!==null&&qw(n,e),n=Fc(n,o),n.flags|=4096;return n}return e=Rn(e.child,{mode:o.mode,children:o.children}),e.ref=n.ref,n.child=e,e.return=n,e}function Tc(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(i(284));(e===null||e.ref!==a)&&(n.flags|=4194816)}}function Jh(e,n,a,o,d){return oi(n),a=Th(e,n,a,o,void 0,d),o=Ih(),e!==null&&!De?(Nh(e,n,d),Vn(e,n,d)):(XA&&o&&uh(n),n.flags|=1,tt(e,n,a,d),n.child)}function cE(e,n,a,o,d,p){return oi(n),n.updateQueue=null,a=dy(n,o,a,d),fy(e),o=Ih(),e!==null&&!De?(Nh(e,n,p),Vn(e,n,p)):(XA&&o&&uh(n),n.flags|=1,tt(e,n,a,p),n.child)}function uE(e,n,a,o,d){if(oi(n),n.stateNode===null){var p=ra,y=a.contextType;typeof y=="object"&&y!==null&&(p=et(y)),p=new a(o,p),n.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Yh,n.stateNode=p,p._reactInternals=n,p=n.stateNode,p.props=o,p.state=n.memoizedState,p.refs={},Eh(n),y=a.contextType,p.context=typeof y=="object"&&y!==null?et(y):ra,p.state=n.memoizedState,y=a.getDerivedStateFromProps,typeof y=="function"&&(Ph(n,a,y,o),p.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(y=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),y!==p.state&&Yh.enqueueReplaceState(p,p.state,null),el(n,o,p,d),Al(),p.state=n.memoizedState),typeof p.componentDidMount=="function"&&(n.flags|=4194308),o=!0}else if(e===null){p=n.stateNode;var x=n.memoizedProps,H=gi(a,x);p.props=H;var Y=p.context,tA=a.contextType;y=ra,typeof tA=="object"&&tA!==null&&(y=et(tA));var sA=a.getDerivedStateFromProps;tA=typeof sA=="function"||typeof p.getSnapshotBeforeUpdate=="function",x=n.pendingProps!==x,tA||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(x||Y!==y)&&Zy(n,p,o,y),vr=!1;var J=n.memoizedState;p.state=J,el(n,o,p,d),Al(),Y=n.memoizedState,x||J!==Y||vr?(typeof sA=="function"&&(Ph(n,a,sA,o),Y=n.memoizedState),(H=vr||Jy(n,a,H,o,J,Y,y))?(tA||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(n.flags|=4194308)):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=o,n.memoizedState=Y),p.props=o,p.state=Y,p.context=y,o=H):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),o=!1)}else{p=n.stateNode,vh(e,n),y=n.memoizedProps,tA=gi(a,y),p.props=tA,sA=n.pendingProps,J=p.context,Y=a.contextType,H=ra,typeof Y=="object"&&Y!==null&&(H=et(Y)),x=a.getDerivedStateFromProps,(Y=typeof x=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(y!==sA||J!==H)&&Zy(n,p,o,H),vr=!1,J=n.memoizedState,p.state=J,el(n,o,p,d),Al();var $=n.memoizedState;y!==sA||J!==$||vr||e!==null&&e.dependencies!==null&&uc(e.dependencies)?(typeof x=="function"&&(Ph(n,a,x,o),$=n.memoizedState),(tA=vr||Jy(n,a,tA,o,J,$,H)||e!==null&&e.dependencies!==null&&uc(e.dependencies))?(Y||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(o,$,H),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(o,$,H)),typeof p.componentDidUpdate=="function"&&(n.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof p.componentDidUpdate!="function"||y===e.memoizedProps&&J===e.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&J===e.memoizedState||(n.flags|=1024),n.memoizedProps=o,n.memoizedState=$),p.props=o,p.state=$,p.context=H,o=tA):(typeof p.componentDidUpdate!="function"||y===e.memoizedProps&&J===e.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&J===e.memoizedState||(n.flags|=1024),o=!1)}return p=o,Tc(e,n),o=(n.flags&128)!==0,p||o?(p=n.stateNode,a=o&&typeof a.getDerivedStateFromError!="function"?null:p.render(),n.flags|=1,e!==null&&o?(n.child=di(n,e.child,null,d),n.child=di(n,null,a,d)):tt(e,n,a,d),n.memoizedState=p.state,e=n.child):e=Vn(e,n,d),e}function fE(e,n,a,o){return si(),n.flags|=256,tt(e,n,a,o),n.child}var Zh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Wh(e){return{baseLanes:e,cachePool:ey()}}function $h(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=Mt),e}function dE(e,n,a){var o=n.pendingProps,d=!1,p=(n.flags&128)!==0,y;if((y=p)||(y=e!==null&&e.memoizedState===null?!1:(Ne.current&2)!==0),y&&(d=!0,n.flags&=-129),y=(n.flags&32)!==0,n.flags&=-33,e===null){if(XA){if(d?Sr(n):Qr(),(e=we)?(e=yv(e,Zt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Cr!==null?{id:wn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},a=Pw(e),a.return=n,n.child=a,At=n,we=null)):e=null,e===null)throw yr(n);return Mg(e)?n.lanes=32:n.lanes=536870912,null}var x=o.children;return o=o.fallback,d?(Qr(),d=n.mode,x=Ic({mode:"hidden",children:x},d),o=ai(o,d,a,null),x.return=n,o.return=n,x.sibling=o,n.child=x,o=n.child,o.memoizedState=Wh(a),o.childLanes=$h(e,y,a),n.memoizedState=Zh,al(null,o)):(Sr(n),Ag(n,x))}var H=e.memoizedState;if(H!==null&&(x=H.dehydrated,x!==null)){if(p)n.flags&256?(Sr(n),n.flags&=-257,n=eg(e,n,a)):n.memoizedState!==null?(Qr(),n.child=e.child,n.flags|=128,n=null):(Qr(),x=o.fallback,d=n.mode,o=Ic({mode:"visible",children:o.children},d),x=ai(x,d,a,null),x.flags|=2,o.return=n,x.return=n,o.sibling=x,n.child=o,di(n,e.child,null,a),o=n.child,o.memoizedState=Wh(a),o.childLanes=$h(e,y,a),n.memoizedState=Zh,n=al(null,o));else if(Sr(n),Mg(x)){if(y=x.nextSibling&&x.nextSibling.dataset,y)var Y=y.dgst;y=Y,o=Error(i(419)),o.stack="",o.digest=y,Xs({value:o,source:null,stack:null}),n=eg(e,n,a)}else if(De||la(e,n,a,!1),y=(a&e.childLanes)!==0,De||y){if(y=ge,y!==null&&(o=Ft(y,a),o!==0&&o!==H.retryLane))throw H.retryLane=o,ii(e,o),vt(y,e,o),qh;_g(x)||kc(),n=eg(e,n,a)}else _g(x)?(n.flags|=192,n.child=e.child,n=null):(e=H.treeContext,we=$t(x.nextSibling),At=n,XA=!0,wr=null,Zt=!1,e!==null&&qw(n,e),n=Ag(n,o.children),n.flags|=4096);return n}return d?(Qr(),x=o.fallback,d=n.mode,H=e.child,Y=H.sibling,o=Rn(H,{mode:"hidden",children:o.children}),o.subtreeFlags=H.subtreeFlags&65011712,Y!==null?x=Rn(Y,x):(x=ai(x,d,a,null),x.flags|=2),x.return=n,o.return=n,o.sibling=x,n.child=o,al(null,o),o=n.child,x=e.child.memoizedState,x===null?x=Wh(a):(d=x.cachePool,d!==null?(H=Re._currentValue,d=d.parent!==H?{parent:H,pool:H}:d):d=ey(),x={baseLanes:x.baseLanes|a,cachePool:d}),o.memoizedState=x,o.childLanes=$h(e,y,a),n.memoizedState=Zh,al(e.child,o)):(Sr(n),a=e.child,e=a.sibling,a=Rn(a,{mode:"visible",children:o.children}),a.return=n,a.sibling=null,e!==null&&(y=n.deletions,y===null?(n.deletions=[e],n.flags|=16):y.push(e)),n.child=a,n.memoizedState=null,a)}function Ag(e,n){return n=Ic({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Ic(e,n){return e=It(22,e,null,n),e.lanes=0,e}function eg(e,n,a){return di(n,e.child,null,a),e=Ag(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function hE(e,n,a){e.lanes|=n;var o=e.alternate;o!==null&&(o.lanes|=n),ph(e.return,n,a)}function tg(e,n,a,o,d,p){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:d,treeForkCount:p}:(y.isBackwards=n,y.rendering=null,y.renderingStartTime=0,y.last=o,y.tail=a,y.tailMode=d,y.treeForkCount=p)}function gE(e,n,a){var o=n.pendingProps,d=o.revealOrder,p=o.tail;o=o.children;var y=Ne.current,x=(y&2)!==0;if(x?(y=y&1|2,n.flags|=128):y&=1,S(Ne,y),tt(e,n,o,a),o=XA?Ys:0,!x&&e!==null&&(e.flags&128)!==0)A:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&hE(e,a,n);else if(e.tag===19)hE(e,a,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break A;for(;e.sibling===null;){if(e.return===null||e.return===n)break A;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(d){case"forwards":for(a=n.child,d=null;a!==null;)e=a.alternate,e!==null&&Cc(e)===null&&(d=a),a=a.sibling;a=d,a===null?(d=n.child,n.child=null):(d=a.sibling,a.sibling=null),tg(n,!1,d,a,p,o);break;case"backwards":case"unstable_legacy-backwards":for(a=null,d=n.child,n.child=null;d!==null;){if(e=d.alternate,e!==null&&Cc(e)===null){n.child=d;break}e=d.sibling,d.sibling=a,a=d,d=e}tg(n,!0,a,null,p,o);break;case"together":tg(n,!1,null,null,void 0,o);break;default:n.memoizedState=null}return n.child}function Vn(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),Tr|=n.lanes,(a&n.childLanes)===0)if(e!==null){if(la(e,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(i(153));if(n.child!==null){for(e=n.child,a=Rn(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=Rn(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function ng(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&uc(e)))}function TI(e,n,a){switch(n.tag){case 3:LA(n,n.stateNode.containerInfo),Er(n,Re,e.memoizedState.cache),si();break;case 27:case 5:FA(n);break;case 4:LA(n,n.stateNode.containerInfo);break;case 10:Er(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,Uh(n),null;break;case 13:var o=n.memoizedState;if(o!==null)return o.dehydrated!==null?(Sr(n),n.flags|=128,null):(a&n.child.childLanes)!==0?dE(e,n,a):(Sr(n),e=Vn(e,n,a),e!==null?e.sibling:null);Sr(n);break;case 19:var d=(e.flags&128)!==0;if(o=(a&n.childLanes)!==0,o||(la(e,n,a,!1),o=(a&n.childLanes)!==0),d){if(o)return gE(e,n,a);n.flags|=128}if(d=n.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),S(Ne,Ne.current),o)break;return null;case 22:return n.lanes=0,sE(e,n,a,n.pendingProps);case 24:Er(n,Re,e.memoizedState.cache)}return Vn(e,n,a)}function pE(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps)De=!0;else{if(!ng(e,a)&&(n.flags&128)===0)return De=!1,TI(e,n,a);De=(e.flags&131072)!==0}else De=!1,XA&&(n.flags&1048576)!==0&&Xw(n,Ys,n.index);switch(n.lanes=0,n.tag){case 16:A:{var o=n.pendingProps;if(e=ui(n.elementType),n.type=e,typeof e=="function")lh(e)?(o=gi(e,o),n.tag=1,n=uE(null,n,e,o,a)):(n.tag=0,n=Jh(null,n,e,o,a));else{if(e!=null){var d=e.$$typeof;if(d===j){n.tag=11,n=rE(null,n,e,o,a);break A}else if(d===L){n.tag=14,n=iE(null,n,e,o,a);break A}}throw n=Z(e)||e,Error(i(306,n,""))}}return n;case 0:return Jh(e,n,n.type,n.pendingProps,a);case 1:return o=n.type,d=gi(o,n.pendingProps),uE(e,n,o,d,a);case 3:A:{if(LA(n,n.stateNode.containerInfo),e===null)throw Error(i(387));o=n.pendingProps;var p=n.memoizedState;d=p.element,vh(e,n),el(n,o,null,a);var y=n.memoizedState;if(o=y.cache,Er(n,Re,o),o!==p.cache&&mh(n,[Re],a,!0),Al(),o=y.element,p.isDehydrated)if(p={element:o,isDehydrated:!1,cache:y.cache},n.updateQueue.baseState=p,n.memoizedState=p,n.flags&256){n=fE(e,n,o,a);break A}else if(o!==d){d=Xt(Error(i(424)),n),Xs(d),n=fE(e,n,o,a);break A}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(we=$t(e.firstChild),At=n,XA=!0,wr=null,Zt=!0,a=sy(n,null,o,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(si(),o===d){n=Vn(e,n,a);break A}tt(e,n,o,a)}n=n.child}return n;case 26:return Tc(e,n),e===null?(a=Qv(n.type,null,n.pendingProps,null))?n.memoizedState=a:XA||(a=n.type,e=n.pendingProps,o=Yc(fA.current).createElement(a),o[HA]=n,o[Oe]=e,nt(o,a,e),Ye(o),n.stateNode=o):n.memoizedState=Qv(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return FA(n),e===null&&XA&&(o=n.stateNode=bv(n.type,n.pendingProps,fA.current),At=n,Zt=!0,d=we,Mr(n.type)?(Og=d,we=$t(o.firstChild)):we=d),tt(e,n,n.pendingProps.children,a),Tc(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&XA&&((d=o=we)&&(o=aN(o,n.type,n.pendingProps,Zt),o!==null?(n.stateNode=o,At=n,we=$t(o.firstChild),Zt=!1,d=!0):d=!1),d||yr(n)),FA(n),d=n.type,p=n.pendingProps,y=e!==null?e.memoizedProps:null,o=p.children,Ig(d,p)?o=null:y!==null&&Ig(d,y)&&(n.flags|=32),n.memoizedState!==null&&(d=Th(e,n,yI,null,null,a),yl._currentValue=d),Tc(e,n),tt(e,n,o,a),n.child;case 6:return e===null&&XA&&((e=a=we)&&(a=sN(a,n.pendingProps,Zt),a!==null?(n.stateNode=a,At=n,we=null,e=!0):e=!1),e||yr(n)),null;case 13:return dE(e,n,a);case 4:return LA(n,n.stateNode.containerInfo),o=n.pendingProps,e===null?n.child=di(n,null,o,a):tt(e,n,o,a),n.child;case 11:return rE(e,n,n.type,n.pendingProps,a);case 7:return tt(e,n,n.pendingProps,a),n.child;case 8:return tt(e,n,n.pendingProps.children,a),n.child;case 12:return tt(e,n,n.pendingProps.children,a),n.child;case 10:return o=n.pendingProps,Er(n,n.type,o.value),tt(e,n,o.children,a),n.child;case 9:return d=n.type._context,o=n.pendingProps.children,oi(n),d=et(d),o=o(d),n.flags|=1,tt(e,n,o,a),n.child;case 14:return iE(e,n,n.type,n.pendingProps,a);case 15:return aE(e,n,n.type,n.pendingProps,a);case 19:return gE(e,n,a);case 31:return FI(e,n,a);case 22:return sE(e,n,a,n.pendingProps);case 24:return oi(n),o=et(Re),e===null?(d=wh(),d===null&&(d=ge,p=Bh(),d.pooledCache=p,p.refCount++,p!==null&&(d.pooledCacheLanes|=a),d=p),n.memoizedState={parent:o,cache:d},Eh(n),Er(n,Re,d)):((e.lanes&a)!==0&&(vh(e,n),el(n,null,null,a),Al()),d=e.memoizedState,p=n.memoizedState,d.parent!==o?(d={parent:o,cache:o},n.memoizedState=d,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=d),Er(n,Re,o)):(o=p.cache,Er(n,Re,o),o!==d.cache&&mh(n,[Re],a,!0))),tt(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(i(156,n.tag))}function Gn(e){e.flags|=4}function rg(e,n,a,o,d){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(d&335544128)===d)if(e.stateNode.complete)e.flags|=8192;else if(VE())e.flags|=8192;else throw fi=gc,yh}else e.flags&=-16777217}function mE(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Nv(n))if(VE())e.flags|=8192;else throw fi=gc,yh}function Nc(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?Gi():536870912,e.lanes|=n,wa|=n)}function sl(e,n){if(!XA)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 o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ye(e){var n=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(n)for(var d=e.child;d!==null;)a|=d.lanes|d.childLanes,o|=d.subtreeFlags&65011712,o|=d.flags&65011712,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)a|=d.lanes|d.childLanes,o|=d.subtreeFlags,o|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=o,e.childLanes=a,n}function II(e,n,a){var o=n.pendingProps;switch(fh(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ye(n),null;case 1:return ye(n),null;case 3:return a=n.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),kn(Re),IA(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(sa(n)?Gn(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,hh())),ye(n),null;case 26:var d=n.type,p=n.memoizedState;return e===null?(Gn(n),p!==null?(ye(n),mE(n,p)):(ye(n),rg(n,d,null,o,a))):p?p!==e.memoizedState?(Gn(n),ye(n),mE(n,p)):(ye(n),n.flags&=-16777217):(e=e.memoizedProps,e!==o&&Gn(n),ye(n),rg(n,d,e,o,a)),null;case 27:if(fe(n),a=fA.current,d=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==o&&Gn(n);else{if(!o){if(n.stateNode===null)throw Error(i(166));return ye(n),null}e=aA.current,sa(n)?Jw(n):(e=bv(d,o,a),n.stateNode=e,Gn(n))}return ye(n),null;case 5:if(fe(n),d=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==o&&Gn(n);else{if(!o){if(n.stateNode===null)throw Error(i(166));return ye(n),null}if(p=aA.current,sa(n))Jw(n);else{var y=Yc(fA.current);switch(p){case 1:p=y.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:p=y.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":p=y.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":p=y.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":p=y.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof o.is=="string"?y.createElement("select",{is:o.is}):y.createElement("select"),o.multiple?p.multiple=!0:o.size&&(p.size=o.size);break;default:p=typeof o.is=="string"?y.createElement(d,{is:o.is}):y.createElement(d)}}p[HA]=n,p[Oe]=o;A:for(y=n.child;y!==null;){if(y.tag===5||y.tag===6)p.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===n)break A;for(;y.sibling===null;){if(y.return===null||y.return===n)break A;y=y.return}y.sibling.return=y.return,y=y.sibling}n.stateNode=p;A:switch(nt(p,d,o),d){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break A;case"img":o=!0;break A;default:o=!1}o&&Gn(n)}}return ye(n),rg(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,a),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==o&&Gn(n);else{if(typeof o!="string"&&n.stateNode===null)throw Error(i(166));if(e=fA.current,sa(n)){if(e=n.stateNode,a=n.memoizedProps,o=null,d=At,d!==null)switch(d.tag){case 27:case 5:o=d.memoizedProps}e[HA]=n,e=!!(e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||dv(e.nodeValue,a)),e||yr(n,!0)}else e=Yc(e).createTextNode(o),e[HA]=n,n.stateNode=e}return ye(n),null;case 31:if(a=n.memoizedState,e===null||e.memoizedState!==null){if(o=sa(n),a!==null){if(e===null){if(!o)throw Error(i(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[HA]=n}else si(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;ye(n),e=!1}else a=hh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return n.flags&256?(Ht(n),n):(Ht(n),null);if((n.flags&128)!==0)throw Error(i(558))}return ye(n),null;case 13:if(o=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(d=sa(n),o!==null&&o.dehydrated!==null){if(e===null){if(!d)throw Error(i(318));if(d=n.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(i(317));d[HA]=n}else si(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;ye(n),d=!1}else d=hh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=d),d=!0;if(!d)return n.flags&256?(Ht(n),n):(Ht(n),null)}return Ht(n),(n.flags&128)!==0?(n.lanes=a,n):(a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=n.child,d=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(d=o.alternate.memoizedState.cachePool.pool),p=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(p=o.memoizedState.cachePool.pool),p!==d&&(o.flags|=2048)),a!==e&&a&&(n.child.flags|=8192),Nc(n,n.updateQueue),ye(n),null);case 4:return IA(),e===null&&Sg(n.stateNode.containerInfo),ye(n),null;case 10:return kn(n.type),ye(n),null;case 19:if(M(Ne),o=n.memoizedState,o===null)return ye(n),null;if(d=(n.flags&128)!==0,p=o.rendering,p===null)if(d)sl(o,!1);else{if(Qe!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(p=Cc(e),p!==null){for(n.flags|=128,sl(o,!1),e=p.updateQueue,n.updateQueue=e,Nc(n,e),n.subtreeFlags=0,e=a,a=n.child;a!==null;)zw(a,e),a=a.sibling;return S(Ne,Ne.current&1|2),XA&&Ln(n,o.treeForkCount),n.child}e=e.sibling}o.tail!==null&&ze()>Rc&&(n.flags|=128,d=!0,sl(o,!1),n.lanes=4194304)}else{if(!d)if(e=Cc(p),e!==null){if(n.flags|=128,d=!0,e=e.updateQueue,n.updateQueue=e,Nc(n,e),sl(o,!0),o.tail===null&&o.tailMode==="hidden"&&!p.alternate&&!XA)return ye(n),null}else 2*ze()-o.renderingStartTime>Rc&&a!==536870912&&(n.flags|=128,d=!0,sl(o,!1),n.lanes=4194304);o.isBackwards?(p.sibling=n.child,n.child=p):(e=o.last,e!==null?e.sibling=p:n.child=p,o.last=p)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=ze(),e.sibling=null,a=Ne.current,S(Ne,d?a&1|2:a&1),XA&&Ln(n,o.treeForkCount),e):(ye(n),null);case 22:case 23:return Ht(n),Qh(),o=n.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(n.flags|=8192):o&&(n.flags|=8192),o?(a&536870912)!==0&&(n.flags&128)===0&&(ye(n),n.subtreeFlags&6&&(n.flags|=8192)):ye(n),a=n.updateQueue,a!==null&&Nc(n,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==a&&(n.flags|=2048),e!==null&&M(ci),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),kn(Re),ye(n),null;case 25:return null;case 30:return null}throw Error(i(156,n.tag))}function NI(e,n){switch(fh(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return kn(Re),IA(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return fe(n),null;case 31:if(n.memoizedState!==null){if(Ht(n),n.alternate===null)throw Error(i(340));si()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(Ht(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(i(340));si()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return M(Ne),null;case 4:return IA(),null;case 10:return kn(n.type),null;case 22:case 23:return Ht(n),Qh(),e!==null&&M(ci),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return kn(Re),null;case 25:return null;default:return null}}function BE(e,n){switch(fh(n),n.tag){case 3:kn(Re),IA();break;case 26:case 27:case 5:fe(n);break;case 4:IA();break;case 31:n.memoizedState!==null&&Ht(n);break;case 13:Ht(n);break;case 19:M(Ne);break;case 10:kn(n.type);break;case 22:case 23:Ht(n),Qh(),e!==null&&M(ci);break;case 24:kn(Re)}}function ll(e,n){try{var a=n.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var d=o.next;a=d;do{if((a.tag&e)===e){o=void 0;var p=a.create,y=a.inst;o=p(),y.destroy=o}a=a.next}while(a!==d)}}catch(x){ae(n,n.return,x)}}function Ur(e,n,a){try{var o=n.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var p=d.next;o=p;do{if((o.tag&e)===e){var y=o.inst,x=y.destroy;if(x!==void 0){y.destroy=void 0,d=n;var H=a,Y=x;try{Y()}catch(tA){ae(d,H,tA)}}}o=o.next}while(o!==p)}}catch(tA){ae(n,n.return,tA)}}function CE(e){var n=e.updateQueue;if(n!==null){var a=e.stateNode;try{oy(n,a)}catch(o){ae(e,e.return,o)}}}function wE(e,n,a){a.props=gi(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(o){ae(e,n,o)}}function ol(e,n){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof a=="function"?e.refCleanup=a(o):a.current=o}}catch(d){ae(e,n,d)}}function En(e,n){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o=="function")try{o()}catch(d){ae(e,n,d)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(d){ae(e,n,d)}else a.current=null}function yE(e){var n=e.type,a=e.memoizedProps,o=e.stateNode;try{A:switch(n){case"button":case"input":case"select":case"textarea":a.autoFocus&&o.focus();break A;case"img":a.src?o.src=a.src:a.srcSet&&(o.srcset=a.srcSet)}}catch(d){ae(e,e.return,d)}}function ig(e,n,a){try{var o=e.stateNode;AN(o,e.type,a,n),o[Oe]=n}catch(d){ae(e,e.return,d)}}function EE(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Mr(e.type)||e.tag===4}function ag(e){A:for(;;){for(;e.sibling===null;){if(e.return===null||EE(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&&Mr(e.type)||e.flags&2||e.child===null||e.tag===4)continue A;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function sg(e,n,a){var o=e.tag;if(o===5||o===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=Mn));else if(o!==4&&(o===27&&Mr(e.type)&&(a=e.stateNode,n=null),e=e.child,e!==null))for(sg(e,n,a),e=e.sibling;e!==null;)sg(e,n,a),e=e.sibling}function Hc(e,n,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,n?a.insertBefore(e,n):a.appendChild(e);else if(o!==4&&(o===27&&Mr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Hc(e,n,a),e=e.sibling;e!==null;)Hc(e,n,a),e=e.sibling}function vE(e){var n=e.stateNode,a=e.memoizedProps;try{for(var o=e.type,d=n.attributes;d.length;)n.removeAttributeNode(d[0]);nt(n,o,a),n[HA]=e,n[Oe]=a}catch(p){ae(e,e.return,p)}}var zn=!1,ke=!1,lg=!1,bE=typeof WeakSet=="function"?WeakSet:Set,Xe=null;function HI(e,n){if(e=e.containerInfo,Fg=Au,e=Ow(e),eh(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else{a=(a=e.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var d=o.anchorOffset,p=o.focusNode;o=o.focusOffset;var y=0,x=-1,H=-1,Y=0,tA=0,sA=e,J=null;A:for(;;){for(var $;sA!==a||d!==0&&sA.nodeType!==3||(x=y+d),sA!==p||o!==0&&sA.nodeType!==3||(H=y+o),sA.nodeType===3&&(y+=sA.nodeValue.length),($=sA.firstChild)!==null;)J=sA,sA=$;for(;;){if(sA===e)break A;if(J===a&&++Y===d&&(x=y),J===p&&++tA===o&&(H=y),($=sA.nextSibling)!==null)break;sA=J,J=sA.parentNode}sA=$}a=x===-1||H===-1?null:{start:x,end:H}}else a=null}a=a||{start:0,end:0}}else a=null;for(Tg={focusedElem:e,selectionRange:a},Au=!1,Xe=n;Xe!==null;)if(n=Xe,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,Xe=e;else for(;Xe!==null;){switch(n=Xe,p=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++)d=e[a],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&p!==null){e=void 0,a=n,d=p.memoizedProps,p=p.memoizedState,o=a.stateNode;try{var wA=gi(a.type,d);e=o.getSnapshotBeforeUpdate(wA,p),o.__reactInternalSnapshotBeforeUpdate=e}catch(QA){ae(a,a.return,QA)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,a=e.nodeType,a===9)Hg(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Hg(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(i(163))}if(e=n.sibling,e!==null){e.return=n.return,Xe=e;break}Xe=n.return}}function xE(e,n,a){var o=a.flags;switch(a.tag){case 0:case 11:case 15:Yn(e,a),o&4&&ll(5,a);break;case 1:if(Yn(e,a),o&4)if(e=a.stateNode,n===null)try{e.componentDidMount()}catch(y){ae(a,a.return,y)}else{var d=gi(a.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(d,n,e.__reactInternalSnapshotBeforeUpdate)}catch(y){ae(a,a.return,y)}}o&64&&CE(a),o&512&&ol(a,a.return);break;case 3:if(Yn(e,a),o&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{oy(e,n)}catch(y){ae(a,a.return,y)}}break;case 27:n===null&&o&4&&vE(a);case 26:case 5:Yn(e,a),n===null&&o&4&&yE(a),o&512&&ol(a,a.return);break;case 12:Yn(e,a);break;case 31:Yn(e,a),o&4&&UE(e,a);break;case 13:Yn(e,a),o&4&&FE(e,a),o&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=KI.bind(null,a),lN(e,a))));break;case 22:if(o=a.memoizedState!==null||zn,!o){n=n!==null&&n.memoizedState!==null||ke,d=zn;var p=ke;zn=o,(ke=n)&&!p?Xn(e,a,(a.subtreeFlags&8772)!==0):Yn(e,a),zn=d,ke=p}break;case 30:break;default:Yn(e,a)}}function SE(e){var n=e.alternate;n!==null&&(e.alternate=null,SE(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&Ld(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 be=null,Ct=!1;function Pn(e,n,a){for(a=a.child;a!==null;)QE(e,n,a),a=a.sibling}function QE(e,n,a){if(zA&&typeof zA.onCommitFiberUnmount=="function")try{zA.onCommitFiberUnmount(ZA,a)}catch{}switch(a.tag){case 26:ke||En(a,n),Pn(e,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ke||En(a,n);var o=be,d=Ct;Mr(a.type)&&(be=a.stateNode,Ct=!1),Pn(e,n,a),Bl(a.stateNode),be=o,Ct=d;break;case 5:ke||En(a,n);case 6:if(o=be,d=Ct,be=null,Pn(e,n,a),be=o,Ct=d,be!==null)if(Ct)try{(be.nodeType===9?be.body:be.nodeName==="HTML"?be.ownerDocument.body:be).removeChild(a.stateNode)}catch(p){ae(a,n,p)}else try{be.removeChild(a.stateNode)}catch(p){ae(a,n,p)}break;case 18:be!==null&&(Ct?(e=be,Cv(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ua(e)):Cv(be,a.stateNode));break;case 4:o=be,d=Ct,be=a.stateNode.containerInfo,Ct=!0,Pn(e,n,a),be=o,Ct=d;break;case 0:case 11:case 14:case 15:Ur(2,a,n),ke||Ur(4,a,n),Pn(e,n,a);break;case 1:ke||(En(a,n),o=a.stateNode,typeof o.componentWillUnmount=="function"&&wE(a,n,o)),Pn(e,n,a);break;case 21:Pn(e,n,a);break;case 22:ke=(o=ke)||a.memoizedState!==null,Pn(e,n,a),ke=o;break;default:Pn(e,n,a)}}function UE(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ua(e)}catch(a){ae(n,n.return,a)}}}function FE(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ua(e)}catch(a){ae(n,n.return,a)}}function _I(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new bE),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new bE),n;default:throw Error(i(435,e.tag))}}function _c(e,n){var a=_I(e);n.forEach(function(o){if(!a.has(o)){a.add(o);var d=VI.bind(null,e,o);o.then(d,d)}})}function wt(e,n){var a=n.deletions;if(a!==null)for(var o=0;o<a.length;o++){var d=a[o],p=e,y=n,x=y;A:for(;x!==null;){switch(x.tag){case 27:if(Mr(x.type)){be=x.stateNode,Ct=!1;break A}break;case 5:be=x.stateNode,Ct=!1;break A;case 3:case 4:be=x.stateNode.containerInfo,Ct=!0;break A}x=x.return}if(be===null)throw Error(i(160));QE(p,y,d),be=null,Ct=!1,p=d.alternate,p!==null&&(p.return=null),d.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)TE(n,e),n=n.sibling}var cn=null;function TE(e,n){var a=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:wt(n,e),yt(e),o&4&&(Ur(3,e,e.return),ll(3,e),Ur(5,e,e.return));break;case 1:wt(n,e),yt(e),o&512&&(ke||a===null||En(a,a.return)),o&64&&zn&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?o:a.concat(o))));break;case 26:var d=cn;if(wt(n,e),yt(e),o&512&&(ke||a===null||En(a,a.return)),o&4){var p=a!==null?a.memoizedState:null;if(o=e.memoizedState,a===null)if(o===null)if(e.stateNode===null){A:{o=e.type,a=e.memoizedProps,d=d.ownerDocument||d;e:switch(o){case"title":p=d.getElementsByTagName("title")[0],(!p||p[Os]||p[HA]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=d.createElement(o),d.head.insertBefore(p,d.querySelector("head > title"))),nt(p,o,a),p[HA]=e,Ye(p),o=p;break A;case"link":var y=Tv("link","href",d).get(o+(a.href||""));if(y){for(var x=0;x<y.length;x++)if(p=y[x],p.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&p.getAttribute("rel")===(a.rel==null?null:a.rel)&&p.getAttribute("title")===(a.title==null?null:a.title)&&p.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){y.splice(x,1);break e}}p=d.createElement(o),nt(p,o,a),d.head.appendChild(p);break;case"meta":if(y=Tv("meta","content",d).get(o+(a.content||""))){for(x=0;x<y.length;x++)if(p=y[x],p.getAttribute("content")===(a.content==null?null:""+a.content)&&p.getAttribute("name")===(a.name==null?null:a.name)&&p.getAttribute("property")===(a.property==null?null:a.property)&&p.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&p.getAttribute("charset")===(a.charSet==null?null:a.charSet)){y.splice(x,1);break e}}p=d.createElement(o),nt(p,o,a),d.head.appendChild(p);break;default:throw Error(i(468,o))}p[HA]=e,Ye(p),o=p}e.stateNode=o}else Iv(d,e.type,e.stateNode);else e.stateNode=Fv(d,o,e.memoizedProps);else p!==o?(p===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):p.count--,o===null?Iv(d,e.type,e.stateNode):Fv(d,o,e.memoizedProps)):o===null&&e.stateNode!==null&&ig(e,e.memoizedProps,a.memoizedProps)}break;case 27:wt(n,e),yt(e),o&512&&(ke||a===null||En(a,a.return)),a!==null&&o&4&&ig(e,e.memoizedProps,a.memoizedProps);break;case 5:if(wt(n,e),yt(e),o&512&&(ke||a===null||En(a,a.return)),e.flags&32){d=e.stateNode;try{Zi(d,"")}catch(wA){ae(e,e.return,wA)}}o&4&&e.stateNode!=null&&(d=e.memoizedProps,ig(e,d,a!==null?a.memoizedProps:d)),o&1024&&(lg=!0);break;case 6:if(wt(n,e),yt(e),o&4){if(e.stateNode===null)throw Error(i(162));o=e.memoizedProps,a=e.stateNode;try{a.nodeValue=o}catch(wA){ae(e,e.return,wA)}}break;case 3:if(Jc=null,d=cn,cn=Xc(n.containerInfo),wt(n,e),cn=d,yt(e),o&4&&a!==null&&a.memoizedState.isDehydrated)try{Ua(n.containerInfo)}catch(wA){ae(e,e.return,wA)}lg&&(lg=!1,IE(e));break;case 4:o=cn,cn=Xc(e.stateNode.containerInfo),wt(n,e),yt(e),cn=o;break;case 12:wt(n,e),yt(e);break;case 31:wt(n,e),yt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,_c(e,o)));break;case 13:wt(n,e),yt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Oc=ze()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,_c(e,o)));break;case 22:d=e.memoizedState!==null;var H=a!==null&&a.memoizedState!==null,Y=zn,tA=ke;if(zn=Y||d,ke=tA||H,wt(n,e),ke=tA,zn=Y,yt(e),o&8192)A:for(n=e.stateNode,n._visibility=d?n._visibility&-2:n._visibility|1,d&&(a===null||H||zn||ke||pi(e)),a=null,n=e;;){if(n.tag===5||n.tag===26){if(a===null){H=a=n;try{if(p=H.stateNode,d)y=p.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{x=H.stateNode;var sA=H.memoizedProps.style,J=sA!=null&&sA.hasOwnProperty("display")?sA.display:null;x.style.display=J==null||typeof J=="boolean"?"":(""+J).trim()}}catch(wA){ae(H,H.return,wA)}}}else if(n.tag===6){if(a===null){H=n;try{H.stateNode.nodeValue=d?"":H.memoizedProps}catch(wA){ae(H,H.return,wA)}}}else if(n.tag===18){if(a===null){H=n;try{var $=H.stateNode;d?wv($,!0):wv(H.stateNode,!1)}catch(wA){ae(H,H.return,wA)}}}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 A;for(;n.sibling===null;){if(n.return===null||n.return===e)break A;a===n&&(a=null),n=n.return}a===n&&(a=null),n.sibling.return=n.return,n=n.sibling}o&4&&(o=e.updateQueue,o!==null&&(a=o.retryQueue,a!==null&&(o.retryQueue=null,_c(e,a))));break;case 19:wt(n,e),yt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,_c(e,o)));break;case 30:break;case 21:break;default:wt(n,e),yt(e)}}function yt(e){var n=e.flags;if(n&2){try{for(var a,o=e.return;o!==null;){if(EE(o)){a=o;break}o=o.return}if(a==null)throw Error(i(160));switch(a.tag){case 27:var d=a.stateNode,p=ag(e);Hc(e,p,d);break;case 5:var y=a.stateNode;a.flags&32&&(Zi(y,""),a.flags&=-33);var x=ag(e);Hc(e,x,y);break;case 3:case 4:var H=a.stateNode.containerInfo,Y=ag(e);sg(e,Y,H);break;default:throw Error(i(161))}}catch(tA){ae(e,e.return,tA)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function IE(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;IE(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Yn(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)xE(e,n.alternate,n),n=n.sibling}function pi(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Ur(4,n,n.return),pi(n);break;case 1:En(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&wE(n,n.return,a),pi(n);break;case 27:Bl(n.stateNode);case 26:case 5:En(n,n.return),pi(n);break;case 22:n.memoizedState===null&&pi(n);break;case 30:pi(n);break;default:pi(n)}e=e.sibling}}function Xn(e,n,a){for(a=a&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var o=n.alternate,d=e,p=n,y=p.flags;switch(p.tag){case 0:case 11:case 15:Xn(d,p,a),ll(4,p);break;case 1:if(Xn(d,p,a),o=p,d=o.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(Y){ae(o,o.return,Y)}if(o=p,d=o.updateQueue,d!==null){var x=o.stateNode;try{var H=d.shared.hiddenCallbacks;if(H!==null)for(d.shared.hiddenCallbacks=null,d=0;d<H.length;d++)ly(H[d],x)}catch(Y){ae(o,o.return,Y)}}a&&y&64&&CE(p),ol(p,p.return);break;case 27:vE(p);case 26:case 5:Xn(d,p,a),a&&o===null&&y&4&&yE(p),ol(p,p.return);break;case 12:Xn(d,p,a);break;case 31:Xn(d,p,a),a&&y&4&&UE(d,p);break;case 13:Xn(d,p,a),a&&y&4&&FE(d,p);break;case 22:p.memoizedState===null&&Xn(d,p,a),ol(p,p.return);break;case 30:break;default:Xn(d,p,a)}n=n.sibling}}function og(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&&qs(a))}function cg(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&qs(e))}function un(e,n,a,o){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)NE(e,n,a,o),n=n.sibling}function NE(e,n,a,o){var d=n.flags;switch(n.tag){case 0:case 11:case 15:un(e,n,a,o),d&2048&&ll(9,n);break;case 1:un(e,n,a,o);break;case 3:un(e,n,a,o),d&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&qs(e)));break;case 12:if(d&2048){un(e,n,a,o),e=n.stateNode;try{var p=n.memoizedProps,y=p.id,x=p.onPostCommit;typeof x=="function"&&x(y,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(H){ae(n,n.return,H)}}else un(e,n,a,o);break;case 31:un(e,n,a,o);break;case 13:un(e,n,a,o);break;case 23:break;case 22:p=n.stateNode,y=n.alternate,n.memoizedState!==null?p._visibility&2?un(e,n,a,o):cl(e,n):p._visibility&2?un(e,n,a,o):(p._visibility|=2,ma(e,n,a,o,(n.subtreeFlags&10256)!==0||!1)),d&2048&&og(y,n);break;case 24:un(e,n,a,o),d&2048&&cg(n.alternate,n);break;default:un(e,n,a,o)}}function ma(e,n,a,o,d){for(d=d&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var p=e,y=n,x=a,H=o,Y=y.flags;switch(y.tag){case 0:case 11:case 15:ma(p,y,x,H,d),ll(8,y);break;case 23:break;case 22:var tA=y.stateNode;y.memoizedState!==null?tA._visibility&2?ma(p,y,x,H,d):cl(p,y):(tA._visibility|=2,ma(p,y,x,H,d)),d&&Y&2048&&og(y.alternate,y);break;case 24:ma(p,y,x,H,d),d&&Y&2048&&cg(y.alternate,y);break;default:ma(p,y,x,H,d)}n=n.sibling}}function cl(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var a=e,o=n,d=o.flags;switch(o.tag){case 22:cl(a,o),d&2048&&og(o.alternate,o);break;case 24:cl(a,o),d&2048&&cg(o.alternate,o);break;default:cl(a,o)}n=n.sibling}}var ul=8192;function Ba(e,n,a){if(e.subtreeFlags&ul)for(e=e.child;e!==null;)HE(e,n,a),e=e.sibling}function HE(e,n,a){switch(e.tag){case 26:Ba(e,n,a),e.flags&ul&&e.memoizedState!==null&&wN(a,cn,e.memoizedState,e.memoizedProps);break;case 5:Ba(e,n,a);break;case 3:case 4:var o=cn;cn=Xc(e.stateNode.containerInfo),Ba(e,n,a),cn=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=ul,ul=16777216,Ba(e,n,a),ul=o):Ba(e,n,a));break;default:Ba(e,n,a)}}function _E(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 fl(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var o=n[a];Xe=o,OE(o,e)}_E(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ME(e),e=e.sibling}function ME(e){switch(e.tag){case 0:case 11:case 15:fl(e),e.flags&2048&&Ur(9,e,e.return);break;case 3:fl(e);break;case 12:fl(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Mc(e)):fl(e);break;default:fl(e)}}function Mc(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var o=n[a];Xe=o,OE(o,e)}_E(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Ur(8,n,n.return),Mc(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,Mc(n));break;default:Mc(n)}e=e.sibling}}function OE(e,n){for(;Xe!==null;){var a=Xe;switch(a.tag){case 0:case 11:case 15:Ur(8,a,n);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var o=a.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:qs(a.memoizedState.cache)}if(o=a.child,o!==null)o.return=a,Xe=o;else A:for(a=e;Xe!==null;){o=Xe;var d=o.sibling,p=o.return;if(SE(o),o===a){Xe=null;break A}if(d!==null){d.return=p,Xe=d;break A}Xe=p}}}var MI={getCacheForType:function(e){var n=et(Re),a=n.data.get(e);return a===void 0&&(a=e(),n.data.set(e,a)),a},cacheSignal:function(){return et(Re).controller.signal}},OI=typeof WeakMap=="function"?WeakMap:Map,ne=0,ge=null,KA=null,PA=0,ie=0,_t=null,Fr=!1,Ca=!1,ug=!1,qn=0,Qe=0,Tr=0,mi=0,fg=0,Mt=0,wa=0,dl=null,Et=null,dg=!1,Oc=0,RE=0,Rc=1/0,Lc=null,Ir=null,Ve=0,Nr=null,ya=null,Jn=0,hg=0,gg=null,LE=null,hl=0,pg=null;function Ot(){return(ne&2)!==0&&PA!==0?PA&-PA:D.T!==null?Eg():Yo()}function DE(){if(Mt===0)if((PA&536870912)===0||XA){var e=mt;mt<<=1,(mt&3932160)===0&&(mt=262144),Mt=e}else Mt=536870912;return e=Nt.current,e!==null&&(e.flags|=32),Mt}function vt(e,n,a){(e===ge&&(ie===2||ie===9)||e.cancelPendingCommit!==null)&&(Ea(e,0),Hr(e,PA,Mt,!1)),Gt(e,a),((ne&2)===0||e!==ge)&&(e===ge&&((ne&2)===0&&(mi|=a),Qe===4&&Hr(e,PA,Mt,!1)),vn(e))}function kE(e,n,a){if((ne&6)!==0)throw Error(i(327));var o=!a&&(n&127)===0&&(n&e.expiredLanes)===0||ve(e,n),d=o?DI(e,n):Bg(e,n,!0),p=o;do{if(d===0){Ca&&!o&&Hr(e,n,0,!1);break}else{if(a=e.current.alternate,p&&!RI(a)){d=Bg(e,n,!1),p=!1;continue}if(d===2){if(p=n,e.errorRecoveryDisabledLanes&p)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){n=y;A:{var x=e;d=dl;var H=x.current.memoizedState.isDehydrated;if(H&&(Ea(x,y).flags|=256),y=Bg(x,y,!1),y!==2){if(ug&&!H){x.errorRecoveryDisabledLanes|=p,mi|=p,d=4;break A}p=Et,Et=d,p!==null&&(Et===null?Et=p:Et.push.apply(Et,p))}d=y}if(p=!1,d!==2)continue}}if(d===1){Ea(e,0),Hr(e,n,0,!0);break}A:{switch(o=e,p=d,p){case 0:case 1:throw Error(i(345));case 4:if((n&4194048)!==n)break;case 6:Hr(o,n,Mt,!Fr);break A;case 2:Et=null;break;case 3:case 5:break;default:throw Error(i(329))}if((n&62914560)===n&&(d=Oc+300-ze(),10<d)){if(Hr(o,n,Mt,!Fr),Nn(o,0,!0)!==0)break A;Jn=n,o.timeoutHandle=mv(jE.bind(null,o,a,Et,Lc,dg,n,Mt,mi,wa,Fr,p,"Throttled",-0,0),d);break A}jE(o,a,Et,Lc,dg,n,Mt,mi,wa,Fr,p,null,-0,0)}}break}while(!0);vn(e)}function jE(e,n,a,o,d,p,y,x,H,Y,tA,sA,J,$){if(e.timeoutHandle=-1,sA=n.subtreeFlags,sA&8192||(sA&16785408)===16785408){sA={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Mn},HE(n,p,sA);var wA=(p&62914560)===p?Oc-ze():(p&4194048)===p?RE-ze():0;if(wA=yN(sA,wA),wA!==null){Jn=p,e.cancelPendingCommit=wA(qE.bind(null,e,n,p,a,o,d,y,x,H,tA,sA,null,J,$)),Hr(e,p,y,!Y);return}}qE(e,n,p,a,o,d,y,x,H)}function RI(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 o=0;o<a.length;o++){var d=a[o],p=d.getSnapshot;d=d.value;try{if(!Tt(p(),d))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 Hr(e,n,a,o){n&=~fg,n&=~mi,e.suspendedLanes|=n,e.pingedLanes&=~n,o&&(e.warmLanes|=n),o=e.expirationTimes;for(var d=n;0<d;){var p=31-DA(d),y=1<<p;o[p]=-1,d&=~y}a!==0&&Ai(e,a,n)}function Dc(){return(ne&6)===0?(gl(0),!1):!0}function mg(){if(KA!==null){if(ie===0)var e=KA.return;else e=KA,Dn=li=null,Hh(e),fa=null,Zs=0,e=KA;for(;e!==null;)BE(e.alternate,e),e=e.return;KA=null}}function Ea(e,n){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,nN(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Jn=0,mg(),ge=e,KA=a=Rn(e.current,null),PA=n,ie=0,_t=null,Fr=!1,Ca=ve(e,n),ug=!1,wa=Mt=fg=mi=Tr=Qe=0,Et=dl=null,dg=!1,(n&8)!==0&&(n|=n&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=n;0<o;){var d=31-DA(o),p=1<<d;n|=e[d],o&=~p}return qn=n,ac(),a}function KE(e,n){_A=null,D.H=il,n===ua||n===hc?(n=ry(),ie=3):n===yh?(n=ry(),ie=4):ie=n===qh?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,_t=n,KA===null&&(Qe=1,Uc(e,Xt(n,e.current)))}function VE(){var e=Nt.current;return e===null?!0:(PA&4194048)===PA?Wt===null:(PA&62914560)===PA||(PA&536870912)!==0?e===Wt:!1}function GE(){var e=D.H;return D.H=il,e===null?il:e}function zE(){var e=D.A;return D.A=MI,e}function kc(){Qe=4,Fr||(PA&4194048)!==PA&&Nt.current!==null||(Ca=!0),(Tr&134217727)===0&&(mi&134217727)===0||ge===null||Hr(ge,PA,Mt,!1)}function Bg(e,n,a){var o=ne;ne|=2;var d=GE(),p=zE();(ge!==e||PA!==n)&&(Lc=null,Ea(e,n)),n=!1;var y=Qe;A:do try{if(ie!==0&&KA!==null){var x=KA,H=_t;switch(ie){case 8:mg(),y=6;break A;case 3:case 2:case 9:case 6:Nt.current===null&&(n=!0);var Y=ie;if(ie=0,_t=null,va(e,x,H,Y),a&&Ca){y=0;break A}break;default:Y=ie,ie=0,_t=null,va(e,x,H,Y)}}LI(),y=Qe;break}catch(tA){KE(e,tA)}while(!0);return n&&e.shellSuspendCounter++,Dn=li=null,ne=o,D.H=d,D.A=p,KA===null&&(ge=null,PA=0,ac()),y}function LI(){for(;KA!==null;)PE(KA)}function DI(e,n){var a=ne;ne|=2;var o=GE(),d=zE();ge!==e||PA!==n?(Lc=null,Rc=ze()+500,Ea(e,n)):Ca=ve(e,n);A:do try{if(ie!==0&&KA!==null){n=KA;var p=_t;e:switch(ie){case 1:ie=0,_t=null,va(e,n,p,1);break;case 2:case 9:if(ty(p)){ie=0,_t=null,YE(n);break}n=function(){ie!==2&&ie!==9||ge!==e||(ie=7),vn(e)},p.then(n,n);break A;case 3:ie=7;break A;case 4:ie=5;break A;case 7:ty(p)?(ie=0,_t=null,YE(n)):(ie=0,_t=null,va(e,n,p,7));break;case 5:var y=null;switch(KA.tag){case 26:y=KA.memoizedState;case 5:case 27:var x=KA;if(y?Nv(y):x.stateNode.complete){ie=0,_t=null;var H=x.sibling;if(H!==null)KA=H;else{var Y=x.return;Y!==null?(KA=Y,jc(Y)):KA=null}break e}}ie=0,_t=null,va(e,n,p,5);break;case 6:ie=0,_t=null,va(e,n,p,6);break;case 8:mg(),Qe=6;break A;default:throw Error(i(462))}}kI();break}catch(tA){KE(e,tA)}while(!0);return Dn=li=null,D.H=o,D.A=d,ne=a,KA!==null?0:(ge=null,PA=0,ac(),Qe)}function kI(){for(;KA!==null&&!$r();)PE(KA)}function PE(e){var n=pE(e.alternate,e,qn);e.memoizedProps=e.pendingProps,n===null?jc(e):KA=n}function YE(e){var n=e,a=n.alternate;switch(n.tag){case 15:case 0:n=cE(a,n,n.pendingProps,n.type,void 0,PA);break;case 11:n=cE(a,n,n.pendingProps,n.type.render,n.ref,PA);break;case 5:Hh(n);default:BE(a,n),n=KA=zw(n,qn),n=pE(a,n,qn)}e.memoizedProps=e.pendingProps,n===null?jc(e):KA=n}function va(e,n,a,o){Dn=li=null,Hh(n),fa=null,Zs=0;var d=n.return;try{if(UI(e,d,n,a,PA)){Qe=1,Uc(e,Xt(a,e.current)),KA=null;return}}catch(p){if(d!==null)throw KA=d,p;Qe=1,Uc(e,Xt(a,e.current)),KA=null;return}n.flags&32768?(XA||o===1?e=!0:Ca||(PA&536870912)!==0?e=!1:(Fr=e=!0,(o===2||o===9||o===3||o===6)&&(o=Nt.current,o!==null&&o.tag===13&&(o.flags|=16384))),XE(n,e)):jc(n)}function jc(e){var n=e;do{if((n.flags&32768)!==0){XE(n,Fr);return}e=n.return;var a=II(n.alternate,n,qn);if(a!==null){KA=a;return}if(n=n.sibling,n!==null){KA=n;return}KA=n=e}while(n!==null);Qe===0&&(Qe=5)}function XE(e,n){do{var a=NI(e.alternate,e);if(a!==null){a.flags&=32767,KA=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!n&&(e=e.sibling,e!==null)){KA=e;return}KA=e=a}while(e!==null);Qe=6,KA=null}function qE(e,n,a,o,d,p,y,x,H){e.cancelPendingCommit=null;do Kc();while(Ve!==0);if((ne&6)!==0)throw Error(i(327));if(n!==null){if(n===e.current)throw Error(i(177));if(p=n.lanes|n.childLanes,p|=ah,Rd(e,a,p,y,x,H),e===ge&&(KA=ge=null,PA=0),ya=n,Nr=e,Jn=a,hg=p,gg=d,LE=o,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,GI(q,function(){return Av(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||o){o=D.T,D.T=null,d=W.p,W.p=2,y=ne,ne|=4;try{HI(e,n)}finally{ne=y,W.p=d,D.T=o}}Ve=1,JE(),ZE(),WE()}}function JE(){if(Ve===1){Ve=0;var e=Nr,n=ya,a=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var o=W.p;W.p=2;var d=ne;ne|=4;try{TE(n,e);var p=Tg,y=Ow(e.containerInfo),x=p.focusedElem,H=p.selectionRange;if(y!==x&&x&&x.ownerDocument&&Mw(x.ownerDocument.documentElement,x)){if(H!==null&&eh(x)){var Y=H.start,tA=H.end;if(tA===void 0&&(tA=Y),"selectionStart"in x)x.selectionStart=Y,x.selectionEnd=Math.min(tA,x.value.length);else{var sA=x.ownerDocument||document,J=sA&&sA.defaultView||window;if(J.getSelection){var $=J.getSelection(),wA=x.textContent.length,QA=Math.min(H.start,wA),ue=H.end===void 0?QA:Math.min(H.end,wA);!$.extend&&QA>ue&&(y=ue,ue=QA,QA=y);var G=_w(x,QA),k=_w(x,ue);if(G&&k&&($.rangeCount!==1||$.anchorNode!==G.node||$.anchorOffset!==G.offset||$.focusNode!==k.node||$.focusOffset!==k.offset)){var P=sA.createRange();P.setStart(G.node,G.offset),$.removeAllRanges(),QA>ue?($.addRange(P),$.extend(k.node,k.offset)):(P.setEnd(k.node,k.offset),$.addRange(P))}}}}for(sA=[],$=x;$=$.parentNode;)$.nodeType===1&&sA.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<sA.length;x++){var iA=sA[x];iA.element.scrollLeft=iA.left,iA.element.scrollTop=iA.top}}Au=!!Fg,Tg=Fg=null}finally{ne=d,W.p=o,D.T=a}}e.current=n,Ve=2}}function ZE(){if(Ve===2){Ve=0;var e=Nr,n=ya,a=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var o=W.p;W.p=2;var d=ne;ne|=4;try{xE(e,n.alternate,n)}finally{ne=d,W.p=o,D.T=a}}Ve=3}}function WE(){if(Ve===4||Ve===3){Ve=0,pr();var e=Nr,n=ya,a=Jn,o=LE;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?Ve=5:(Ve=0,ya=Nr=null,$E(e,e.pendingLanes));var d=e.pendingLanes;if(d===0&&(Ir=null),Ms(a),n=n.stateNode,zA&&typeof zA.onCommitFiberRoot=="function")try{zA.onCommitFiberRoot(ZA,n,void 0,(n.current.flags&128)===128)}catch{}if(o!==null){n=D.T,d=W.p,W.p=2,D.T=null;try{for(var p=e.onRecoverableError,y=0;y<o.length;y++){var x=o[y];p(x.value,{componentStack:x.stack})}}finally{D.T=n,W.p=d}}(Jn&3)!==0&&Kc(),vn(e),d=e.pendingLanes,(a&261930)!==0&&(d&42)!==0?e===pg?hl++:(hl=0,pg=e):hl=0,gl(0)}}function $E(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,qs(n)))}function Kc(){return JE(),ZE(),WE(),Av()}function Av(){if(Ve!==5)return!1;var e=Nr,n=hg;hg=0;var a=Ms(Jn),o=D.T,d=W.p;try{W.p=32>a?32:a,D.T=null,a=gg,gg=null;var p=Nr,y=Jn;if(Ve=0,ya=Nr=null,Jn=0,(ne&6)!==0)throw Error(i(331));var x=ne;if(ne|=4,ME(p.current),NE(p,p.current,y,a),ne=x,gl(0),zA&&typeof zA.onPostCommitFiberRoot=="function")try{zA.onPostCommitFiberRoot(ZA,p)}catch{}return!0}finally{W.p=d,D.T=o,$E(e,n)}}function ev(e,n,a){n=Xt(a,n),n=Xh(e.stateNode,n,2),e=xr(e,n,2),e!==null&&(Gt(e,2),vn(e))}function ae(e,n,a){if(e.tag===3)ev(e,e,a);else for(;n!==null;){if(n.tag===3){ev(n,e,a);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Ir===null||!Ir.has(o))){e=Xt(a,e),a=tE(2),o=xr(n,a,2),o!==null&&(nE(a,o,n,e),Gt(o,2),vn(o));break}}n=n.return}}function Cg(e,n,a){var o=e.pingCache;if(o===null){o=e.pingCache=new OI;var d=new Set;o.set(n,d)}else d=o.get(n),d===void 0&&(d=new Set,o.set(n,d));d.has(a)||(ug=!0,d.add(a),e=jI.bind(null,e,n,a),n.then(e,e))}function jI(e,n,a){var o=e.pingCache;o!==null&&o.delete(n),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,ge===e&&(PA&a)===a&&(Qe===4||Qe===3&&(PA&62914560)===PA&&300>ze()-Oc?(ne&2)===0&&Ea(e,0):fg|=a,wa===PA&&(wa=0)),vn(e)}function tv(e,n){n===0&&(n=Gi()),e=ii(e,n),e!==null&&(Gt(e,n),vn(e))}function KI(e){var n=e.memoizedState,a=0;n!==null&&(a=n.retryLane),tv(e,a)}function VI(e,n){var a=0;switch(e.tag){case 31:case 13:var o=e.stateNode,d=e.memoizedState;d!==null&&(a=d.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(i(314))}o!==null&&o.delete(n),tv(e,a)}function GI(e,n){return In(e,n)}var Vc=null,ba=null,wg=!1,Gc=!1,yg=!1,_r=0;function vn(e){e!==ba&&e.next===null&&(ba===null?Vc=ba=e:ba=ba.next=e),Gc=!0,wg||(wg=!0,PI())}function gl(e,n){if(!yg&&Gc){yg=!0;do for(var a=!1,o=Vc;o!==null;){if(e!==0){var d=o.pendingLanes;if(d===0)var p=0;else{var y=o.suspendedLanes,x=o.pingedLanes;p=(1<<31-DA(42|e)+1)-1,p&=d&~(y&~x),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(a=!0,av(o,p))}else p=PA,p=Nn(o,o===ge?p:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(p&3)===0||ve(o,p)||(a=!0,av(o,p));o=o.next}while(a);yg=!1}}function zI(){nv()}function nv(){Gc=wg=!1;var e=0;_r!==0&&tN()&&(e=_r);for(var n=ze(),a=null,o=Vc;o!==null;){var d=o.next,p=rv(o,n);p===0?(o.next=null,a===null?Vc=d:a.next=d,d===null&&(ba=a)):(a=o,(e!==0||(p&3)!==0)&&(Gc=!0)),o=d}Ve!==0&&Ve!==5||gl(e),_r!==0&&(_r=0)}function rv(e,n){for(var a=e.suspendedLanes,o=e.pingedLanes,d=e.expirationTimes,p=e.pendingLanes&-62914561;0<p;){var y=31-DA(p),x=1<<y,H=d[y];H===-1?((x&a)===0||(x&o)!==0)&&(d[y]=kA(x,n)):H<=n&&(e.expiredLanes|=x),p&=~x}if(n=ge,a=PA,a=Nn(e,e===n?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,a===0||e===n&&(ie===2||ie===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&Cn(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||ve(e,a)){if(n=a&-a,n===e.callbackPriority)return n;switch(o!==null&&Cn(o),Ms(a)){case 2:case 8:a=V;break;case 32:a=q;break;case 268435456:a=dA;break;default:a=q}return o=iv.bind(null,e),a=In(a,o),e.callbackPriority=n,e.callbackNode=a,n}return o!==null&&o!==null&&Cn(o),e.callbackPriority=2,e.callbackNode=null,2}function iv(e,n){if(Ve!==0&&Ve!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Kc()&&e.callbackNode!==a)return null;var o=PA;return o=Nn(e,e===ge?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(kE(e,o,n),rv(e,ze()),e.callbackNode!=null&&e.callbackNode===a?iv.bind(null,e):null)}function av(e,n){if(Kc())return null;kE(e,n,!0)}function PI(){rN(function(){(ne&6)!==0?In(rA,zI):nv()})}function Eg(){if(_r===0){var e=oa;e===0&&(e=Ie,Ie<<=1,(Ie&261888)===0&&(Ie=256)),_r=e}return _r}function sv(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Wo(""+e)}function lv(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 YI(e,n,a,o,d){if(n==="submit"&&a&&a.stateNode===d){var p=sv((d[Oe]||null).action),y=o.submitter;y&&(n=(n=y[Oe]||null)?sv(n.formAction):y.getAttribute("formAction"),n!==null&&(p=n,y=null));var x=new tc("action","action",null,o,d);e.push({event:x,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(_r!==0){var H=y?lv(d,y):new FormData(d);Kh(a,{pending:!0,data:H,method:d.method,action:p},null,H)}}else typeof p=="function"&&(x.preventDefault(),H=y?lv(d,y):new FormData(d),Kh(a,{pending:!0,data:H,method:d.method,action:p},p,H))},currentTarget:d}]})}}for(var vg=0;vg<ih.length;vg++){var bg=ih[vg],XI=bg.toLowerCase(),qI=bg[0].toUpperCase()+bg.slice(1);on(XI,"on"+qI)}on(Dw,"onAnimationEnd"),on(kw,"onAnimationIteration"),on(jw,"onAnimationStart"),on("dblclick","onDoubleClick"),on("focusin","onFocus"),on("focusout","onBlur"),on(uI,"onTransitionRun"),on(fI,"onTransitionStart"),on(dI,"onTransitionCancel"),on(Kw,"onTransitionEnd"),qi("onMouseEnter",["mouseout","mouseover"]),qi("onMouseLeave",["mouseout","mouseover"]),qi("onPointerEnter",["pointerout","pointerover"]),qi("onPointerLeave",["pointerout","pointerover"]),ei("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ei("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ei("onBeforeInput",["compositionend","keypress","textInput","paste"]),ei("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ei("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ei("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pl="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(" "),JI=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pl));function ov(e,n){n=(n&4)!==0;for(var a=0;a<e.length;a++){var o=e[a],d=o.event;o=o.listeners;A:{var p=void 0;if(n)for(var y=o.length-1;0<=y;y--){var x=o[y],H=x.instance,Y=x.currentTarget;if(x=x.listener,H!==p&&d.isPropagationStopped())break A;p=x,d.currentTarget=Y;try{p(d)}catch(tA){ic(tA)}d.currentTarget=null,p=H}else for(y=0;y<o.length;y++){if(x=o[y],H=x.instance,Y=x.currentTarget,x=x.listener,H!==p&&d.isPropagationStopped())break A;p=x,d.currentTarget=Y;try{p(d)}catch(tA){ic(tA)}d.currentTarget=null,p=H}}}}function VA(e,n){var a=n[Xo];a===void 0&&(a=n[Xo]=new Set);var o=e+"__bubble";a.has(o)||(cv(n,e,2,!1),a.add(o))}function xg(e,n,a){var o=0;n&&(o|=4),cv(a,e,o,n)}var zc="_reactListening"+Math.random().toString(36).slice(2);function Sg(e){if(!e[zc]){e[zc]=!0,nw.forEach(function(a){a!=="selectionchange"&&(JI.has(a)||xg(a,!1,e),xg(a,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[zc]||(n[zc]=!0,xg("selectionchange",!1,n))}}function cv(e,n,a,o){switch(Dv(n)){case 2:var d=bN;break;case 8:d=xN;break;default:d=jg}a=d.bind(null,n,a,e),d=void 0,!Pd||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(d=!0),o?d!==void 0?e.addEventListener(n,a,{capture:!0,passive:d}):e.addEventListener(n,a,!0):d!==void 0?e.addEventListener(n,a,{passive:d}):e.addEventListener(n,a,!1)}function Qg(e,n,a,o,d){var p=o;if((n&1)===0&&(n&2)===0&&o!==null)A:for(;;){if(o===null)return;var y=o.tag;if(y===3||y===4){var x=o.stateNode.containerInfo;if(x===d)break;if(y===4)for(y=o.return;y!==null;){var H=y.tag;if((H===3||H===4)&&y.stateNode.containerInfo===d)return;y=y.return}for(;x!==null;){if(y=Pi(x),y===null)return;if(H=y.tag,H===5||H===6||H===26||H===27){o=p=y;continue A}x=x.parentNode}}o=o.return}gw(function(){var Y=p,tA=Gd(a),sA=[];A:{var J=Vw.get(e);if(J!==void 0){var $=tc,wA=e;switch(e){case"keypress":if(Ac(a)===0)break A;case"keydown":case"keyup":$=V7;break;case"focusin":wA="focus",$=Jd;break;case"focusout":wA="blur",$=Jd;break;case"beforeblur":case"afterblur":$=Jd;break;case"click":if(a.button===2)break A;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$=Bw;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=I7;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=P7;break;case Dw:case kw:case jw:$=_7;break;case Kw:$=X7;break;case"scroll":case"scrollend":$=F7;break;case"wheel":$=J7;break;case"copy":case"cut":case"paste":$=O7;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=ww;break;case"toggle":case"beforetoggle":$=W7}var QA=(n&4)!==0,ue=!QA&&(e==="scroll"||e==="scrollend"),G=QA?J!==null?J+"Capture":null:J;QA=[];for(var k=Y,P;k!==null;){var iA=k;if(P=iA.stateNode,iA=iA.tag,iA!==5&&iA!==26&&iA!==27||P===null||G===null||(iA=Ls(k,G),iA!=null&&QA.push(ml(k,iA,P))),ue)break;k=k.return}0<QA.length&&(J=new $(J,wA,null,a,tA),sA.push({event:J,listeners:QA}))}}if((n&7)===0){A:{if(J=e==="mouseover"||e==="pointerover",$=e==="mouseout"||e==="pointerout",J&&a!==Vd&&(wA=a.relatedTarget||a.fromElement)&&(Pi(wA)||wA[Hn]))break A;if(($||J)&&(J=tA.window===tA?tA:(J=tA.ownerDocument)?J.defaultView||J.parentWindow:window,$?(wA=a.relatedTarget||a.toElement,$=Y,wA=wA?Pi(wA):null,wA!==null&&(ue=l(wA),QA=wA.tag,wA!==ue||QA!==5&&QA!==27&&QA!==6)&&(wA=null)):($=null,wA=Y),$!==wA)){if(QA=Bw,iA="onMouseLeave",G="onMouseEnter",k="mouse",(e==="pointerout"||e==="pointerover")&&(QA=ww,iA="onPointerLeave",G="onPointerEnter",k="pointer"),ue=$==null?J:Rs($),P=wA==null?J:Rs(wA),J=new QA(iA,k+"leave",$,a,tA),J.target=ue,J.relatedTarget=P,iA=null,Pi(tA)===Y&&(QA=new QA(G,k+"enter",wA,a,tA),QA.target=P,QA.relatedTarget=ue,iA=QA),ue=iA,$&&wA)e:{for(QA=ZI,G=$,k=wA,P=0,iA=G;iA;iA=QA(iA))P++;iA=0;for(var xA=k;xA;xA=QA(xA))iA++;for(;0<P-iA;)G=QA(G),P--;for(;0<iA-P;)k=QA(k),iA--;for(;P--;){if(G===k||k!==null&&G===k.alternate){QA=G;break e}G=QA(G),k=QA(k)}QA=null}else QA=null;$!==null&&uv(sA,J,$,QA,!1),wA!==null&&ue!==null&&uv(sA,ue,wA,QA,!0)}}A:{if(J=Y?Rs(Y):window,$=J.nodeName&&J.nodeName.toLowerCase(),$==="select"||$==="input"&&J.type==="file")var WA=Uw;else if(Sw(J))if(Fw)WA=lI;else{WA=aI;var vA=iI}else $=J.nodeName,!$||$.toLowerCase()!=="input"||J.type!=="checkbox"&&J.type!=="radio"?Y&&Kd(Y.elementType)&&(WA=Uw):WA=sI;if(WA&&(WA=WA(e,Y))){Qw(sA,WA,a,tA);break A}vA&&vA(e,J,Y),e==="focusout"&&Y&&J.type==="number"&&Y.memoizedProps.value!=null&&jd(J,"number",J.value)}switch(vA=Y?Rs(Y):window,e){case"focusin":(Sw(vA)||vA.contentEditable==="true")&&(ea=vA,th=Y,Ps=null);break;case"focusout":Ps=th=ea=null;break;case"mousedown":nh=!0;break;case"contextmenu":case"mouseup":case"dragend":nh=!1,Rw(sA,a,tA);break;case"selectionchange":if(cI)break;case"keydown":case"keyup":Rw(sA,a,tA)}var OA;if(Wd)A:{switch(e){case"compositionstart":var YA="onCompositionStart";break A;case"compositionend":YA="onCompositionEnd";break A;case"compositionupdate":YA="onCompositionUpdate";break A}YA=void 0}else Aa?bw(e,a)&&(YA="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(YA="onCompositionStart");YA&&(yw&&a.locale!=="ko"&&(Aa||YA!=="onCompositionStart"?YA==="onCompositionEnd"&&Aa&&(OA=pw()):(Br=tA,Yd="value"in Br?Br.value:Br.textContent,Aa=!0)),vA=Pc(Y,YA),0<vA.length&&(YA=new Cw(YA,e,null,a,tA),sA.push({event:YA,listeners:vA}),OA?YA.data=OA:(OA=xw(a),OA!==null&&(YA.data=OA)))),(OA=AI?eI(e,a):tI(e,a))&&(YA=Pc(Y,"onBeforeInput"),0<YA.length&&(vA=new Cw("onBeforeInput","beforeinput",null,a,tA),sA.push({event:vA,listeners:YA}),vA.data=OA)),YI(sA,e,Y,a,tA)}ov(sA,n)})}function ml(e,n,a){return{instance:e,listener:n,currentTarget:a}}function Pc(e,n){for(var a=n+"Capture",o=[];e!==null;){var d=e,p=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||p===null||(d=Ls(e,a),d!=null&&o.unshift(ml(e,d,p)),d=Ls(e,n),d!=null&&o.push(ml(e,d,p))),e.tag===3)return o;e=e.return}return[]}function ZI(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function uv(e,n,a,o,d){for(var p=n._reactName,y=[];a!==null&&a!==o;){var x=a,H=x.alternate,Y=x.stateNode;if(x=x.tag,H!==null&&H===o)break;x!==5&&x!==26&&x!==27||Y===null||(H=Y,d?(Y=Ls(a,p),Y!=null&&y.unshift(ml(a,Y,H))):d||(Y=Ls(a,p),Y!=null&&y.push(ml(a,Y,H)))),a=a.return}y.length!==0&&e.push({event:n,listeners:y})}var WI=/\r\n?/g,$I=/\u0000|\uFFFD/g;function fv(e){return(typeof e=="string"?e:""+e).replace(WI,`
|
|
9
|
+
`).replace($I,"")}function dv(e,n){return n=fv(n),fv(e)===n}function ce(e,n,a,o,d,p){switch(a){case"children":typeof o=="string"?n==="body"||n==="textarea"&&o===""||Zi(e,o):(typeof o=="number"||typeof o=="bigint")&&n!=="body"&&Zi(e,""+o);break;case"className":Jo(e,"class",o);break;case"tabIndex":Jo(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Jo(e,a,o);break;case"style":dw(e,o,p);break;case"data":if(n!=="object"){Jo(e,"data",o);break}case"src":case"href":if(o===""&&(n!=="a"||a!=="href")){e.removeAttribute(a);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=Wo(""+o),e.setAttribute(a,o);break;case"action":case"formAction":if(typeof o=="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 p=="function"&&(a==="formAction"?(n!=="input"&&ce(e,n,"name",d.name,d,null),ce(e,n,"formEncType",d.formEncType,d,null),ce(e,n,"formMethod",d.formMethod,d,null),ce(e,n,"formTarget",d.formTarget,d,null)):(ce(e,n,"encType",d.encType,d,null),ce(e,n,"method",d.method,d,null),ce(e,n,"target",d.target,d,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=Wo(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(e.onclick=Mn);break;case"onScroll":o!=null&&VA("scroll",e);break;case"onScrollEnd":o!=null&&VA("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(a=o.__html,a!=null){if(d.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}a=Wo(""+o),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":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,""+o):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":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,o):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(a,o):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(a):e.setAttribute(a,o);break;case"popover":VA("beforetoggle",e),VA("toggle",e),qo(e,"popover",o);break;case"xlinkActuate":_n(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":_n(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":_n(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":_n(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":_n(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":_n(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":_n(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":_n(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":_n(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":qo(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Q7.get(a)||a,qo(e,a,o))}}function Ug(e,n,a,o,d,p){switch(a){case"style":dw(e,o,p);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(a=o.__html,a!=null){if(d.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"children":typeof o=="string"?Zi(e,o):(typeof o=="number"||typeof o=="bigint")&&Zi(e,""+o);break;case"onScroll":o!=null&&VA("scroll",e);break;case"onScrollEnd":o!=null&&VA("scrollend",e);break;case"onClick":o!=null&&(e.onclick=Mn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!rw.hasOwnProperty(a))A:{if(a[0]==="o"&&a[1]==="n"&&(d=a.endsWith("Capture"),n=a.slice(2,d?a.length-7:void 0),p=e[Oe]||null,p=p!=null?p[a]:null,typeof p=="function"&&e.removeEventListener(n,p,d),typeof o=="function")){typeof p!="function"&&p!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(n,o,d);break A}a in e?e[a]=o:o===!0?e.setAttribute(a,""):qo(e,a,o)}}}function nt(e,n,a){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":VA("error",e),VA("load",e);var o=!1,d=!1,p;for(p in a)if(a.hasOwnProperty(p)){var y=a[p];if(y!=null)switch(p){case"src":o=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:ce(e,n,p,y,a,null)}}d&&ce(e,n,"srcSet",a.srcSet,a,null),o&&ce(e,n,"src",a.src,a,null);return;case"input":VA("invalid",e);var x=p=y=d=null,H=null,Y=null;for(o in a)if(a.hasOwnProperty(o)){var tA=a[o];if(tA!=null)switch(o){case"name":d=tA;break;case"type":y=tA;break;case"checked":H=tA;break;case"defaultChecked":Y=tA;break;case"value":p=tA;break;case"defaultValue":x=tA;break;case"children":case"dangerouslySetInnerHTML":if(tA!=null)throw Error(i(137,n));break;default:ce(e,n,o,tA,a,null)}}ow(e,p,x,H,Y,y,d,!1);return;case"select":VA("invalid",e),o=y=p=null;for(d in a)if(a.hasOwnProperty(d)&&(x=a[d],x!=null))switch(d){case"value":p=x;break;case"defaultValue":y=x;break;case"multiple":o=x;default:ce(e,n,d,x,a,null)}n=p,a=y,e.multiple=!!o,n!=null?Ji(e,!!o,n,!1):a!=null&&Ji(e,!!o,a,!0);return;case"textarea":VA("invalid",e),p=d=o=null;for(y in a)if(a.hasOwnProperty(y)&&(x=a[y],x!=null))switch(y){case"value":o=x;break;case"defaultValue":d=x;break;case"children":p=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(i(91));break;default:ce(e,n,y,x,a,null)}uw(e,o,d,p);return;case"option":for(H in a)if(a.hasOwnProperty(H)&&(o=a[H],o!=null))switch(H){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:ce(e,n,H,o,a,null)}return;case"dialog":VA("beforetoggle",e),VA("toggle",e),VA("cancel",e),VA("close",e);break;case"iframe":case"object":VA("load",e);break;case"video":case"audio":for(o=0;o<pl.length;o++)VA(pl[o],e);break;case"image":VA("error",e),VA("load",e);break;case"details":VA("toggle",e);break;case"embed":case"source":case"link":VA("error",e),VA("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(Y in a)if(a.hasOwnProperty(Y)&&(o=a[Y],o!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:ce(e,n,Y,o,a,null)}return;default:if(Kd(n)){for(tA in a)a.hasOwnProperty(tA)&&(o=a[tA],o!==void 0&&Ug(e,n,tA,o,a,void 0));return}}for(x in a)a.hasOwnProperty(x)&&(o=a[x],o!=null&&ce(e,n,x,o,a,null))}function AN(e,n,a,o){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,p=null,y=null,x=null,H=null,Y=null,tA=null;for($ in a){var sA=a[$];if(a.hasOwnProperty($)&&sA!=null)switch($){case"checked":break;case"value":break;case"defaultValue":H=sA;default:o.hasOwnProperty($)||ce(e,n,$,null,o,sA)}}for(var J in o){var $=o[J];if(sA=a[J],o.hasOwnProperty(J)&&($!=null||sA!=null))switch(J){case"type":p=$;break;case"name":d=$;break;case"checked":Y=$;break;case"defaultChecked":tA=$;break;case"value":y=$;break;case"defaultValue":x=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(i(137,n));break;default:$!==sA&&ce(e,n,J,$,o,sA)}}kd(e,y,x,H,Y,tA,p,d);return;case"select":$=y=x=J=null;for(p in a)if(H=a[p],a.hasOwnProperty(p)&&H!=null)switch(p){case"value":break;case"multiple":$=H;default:o.hasOwnProperty(p)||ce(e,n,p,null,o,H)}for(d in o)if(p=o[d],H=a[d],o.hasOwnProperty(d)&&(p!=null||H!=null))switch(d){case"value":J=p;break;case"defaultValue":x=p;break;case"multiple":y=p;default:p!==H&&ce(e,n,d,p,o,H)}n=x,a=y,o=$,J!=null?Ji(e,!!a,J,!1):!!o!=!!a&&(n!=null?Ji(e,!!a,n,!0):Ji(e,!!a,a?[]:"",!1));return;case"textarea":$=J=null;for(x in a)if(d=a[x],a.hasOwnProperty(x)&&d!=null&&!o.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:ce(e,n,x,null,o,d)}for(y in o)if(d=o[y],p=a[y],o.hasOwnProperty(y)&&(d!=null||p!=null))switch(y){case"value":J=d;break;case"defaultValue":$=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(i(91));break;default:d!==p&&ce(e,n,y,d,o,p)}cw(e,J,$);return;case"option":for(var wA in a)if(J=a[wA],a.hasOwnProperty(wA)&&J!=null&&!o.hasOwnProperty(wA))switch(wA){case"selected":e.selected=!1;break;default:ce(e,n,wA,null,o,J)}for(H in o)if(J=o[H],$=a[H],o.hasOwnProperty(H)&&J!==$&&(J!=null||$!=null))switch(H){case"selected":e.selected=J&&typeof J!="function"&&typeof J!="symbol";break;default:ce(e,n,H,J,o,$)}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 QA in a)J=a[QA],a.hasOwnProperty(QA)&&J!=null&&!o.hasOwnProperty(QA)&&ce(e,n,QA,null,o,J);for(Y in o)if(J=o[Y],$=a[Y],o.hasOwnProperty(Y)&&J!==$&&(J!=null||$!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(i(137,n));break;default:ce(e,n,Y,J,o,$)}return;default:if(Kd(n)){for(var ue in a)J=a[ue],a.hasOwnProperty(ue)&&J!==void 0&&!o.hasOwnProperty(ue)&&Ug(e,n,ue,void 0,o,J);for(tA in o)J=o[tA],$=a[tA],!o.hasOwnProperty(tA)||J===$||J===void 0&&$===void 0||Ug(e,n,tA,J,o,$);return}}for(var G in a)J=a[G],a.hasOwnProperty(G)&&J!=null&&!o.hasOwnProperty(G)&&ce(e,n,G,null,o,J);for(sA in o)J=o[sA],$=a[sA],!o.hasOwnProperty(sA)||J===$||J==null&&$==null||ce(e,n,sA,J,o,$)}function hv(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function eN(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var d=a[o],p=d.transferSize,y=d.initiatorType,x=d.duration;if(p&&x&&hv(y)){for(y=0,x=d.responseEnd,o+=1;o<a.length;o++){var H=a[o],Y=H.startTime;if(Y>x)break;var tA=H.transferSize,sA=H.initiatorType;tA&&hv(sA)&&(H=H.responseEnd,y+=tA*(H<x?1:(x-Y)/(H-Y)))}if(--o,n+=8*(p+y)/(d.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 Fg=null,Tg=null;function Yc(e){return e.nodeType===9?e:e.ownerDocument}function gv(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 pv(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 Ig(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 Ng=null;function tN(){var e=window.event;return e&&e.type==="popstate"?e===Ng?!1:(Ng=e,!0):(Ng=null,!1)}var mv=typeof setTimeout=="function"?setTimeout:void 0,nN=typeof clearTimeout=="function"?clearTimeout:void 0,Bv=typeof Promise=="function"?Promise:void 0,rN=typeof queueMicrotask=="function"?queueMicrotask:typeof Bv<"u"?function(e){return Bv.resolve(null).then(e).catch(iN)}:mv;function iN(e){setTimeout(function(){throw e})}function Mr(e){return e==="head"}function Cv(e,n){var a=n,o=0;do{var d=a.nextSibling;if(e.removeChild(a),d&&d.nodeType===8)if(a=d.data,a==="/$"||a==="/&"){if(o===0){e.removeChild(d),Ua(n);return}o--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")o++;else if(a==="html")Bl(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Bl(a);for(var p=a.firstChild;p;){var y=p.nextSibling,x=p.nodeName;p[Os]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=y}}else a==="body"&&Bl(e.ownerDocument.body);a=d}while(a);Ua(n)}function wv(e,n){var a=e;e=0;do{var o=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||""),o&&o.nodeType===8)if(a=o.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=o}while(a)}function Hg(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":Hg(a),Ld(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function aN(e,n,a,o){for(;e.nodeType===1;){var d=a;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[Os])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(p=e.getAttribute("rel"),p==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(p!==d.rel||e.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||e.getAttribute("title")!==(d.title==null?null:d.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(p=e.getAttribute("src"),(p!==(d.src==null?null:d.src)||e.getAttribute("type")!==(d.type==null?null:d.type)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&p&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var p=d.name==null?null:""+d.name;if(d.type==="hidden"&&e.getAttribute("name")===p)return e}else return e;if(e=$t(e.nextSibling),e===null)break}return null}function sN(e,n,a){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=$t(e.nextSibling),e===null))return null;return e}function yv(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=$t(e.nextSibling),e===null))return null;return e}function _g(e){return e.data==="$?"||e.data==="$~"}function Mg(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function lN(e,n){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||a.readyState!=="loading")n();else{var o=function(){n(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function $t(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 Og=null;function Ev(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(n===0)return $t(e.nextSibling);n--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||n++}e=e.nextSibling}return null}function vv(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 bv(e,n,a){switch(n=Yc(a),e){case"html":if(e=n.documentElement,!e)throw Error(i(452));return e;case"head":if(e=n.head,!e)throw Error(i(453));return e;case"body":if(e=n.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Bl(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Ld(e)}var An=new Map,xv=new Set;function Xc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Zn=W.d;W.d={f:oN,r:cN,D:uN,C:fN,L:dN,m:hN,X:pN,S:gN,M:mN};function oN(){var e=Zn.f(),n=Dc();return e||n}function cN(e){var n=Yi(e);n!==null&&n.tag===5&&n.type==="form"?Ky(n):Zn.r(e)}var xa=typeof document>"u"?null:document;function Sv(e,n,a){var o=xa;if(o&&typeof n=="string"&&n){var d=Pt(n);d='link[rel="'+e+'"][href="'+d+'"]',typeof a=="string"&&(d+='[crossorigin="'+a+'"]'),xv.has(d)||(xv.add(d),e={rel:e,crossOrigin:a,href:n},o.querySelector(d)===null&&(n=o.createElement("link"),nt(n,"link",e),Ye(n),o.head.appendChild(n)))}}function uN(e){Zn.D(e),Sv("dns-prefetch",e,null)}function fN(e,n){Zn.C(e,n),Sv("preconnect",e,n)}function dN(e,n,a){Zn.L(e,n,a);var o=xa;if(o&&e&&n){var d='link[rel="preload"][as="'+Pt(n)+'"]';n==="image"&&a&&a.imageSrcSet?(d+='[imagesrcset="'+Pt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(d+='[imagesizes="'+Pt(a.imageSizes)+'"]')):d+='[href="'+Pt(e)+'"]';var p=d;switch(n){case"style":p=Sa(e);break;case"script":p=Qa(e)}An.has(p)||(e=B({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:e,as:n},a),An.set(p,e),o.querySelector(d)!==null||n==="style"&&o.querySelector(Cl(p))||n==="script"&&o.querySelector(wl(p))||(n=o.createElement("link"),nt(n,"link",e),Ye(n),o.head.appendChild(n)))}}function hN(e,n){Zn.m(e,n);var a=xa;if(a&&e){var o=n&&typeof n.as=="string"?n.as:"script",d='link[rel="modulepreload"][as="'+Pt(o)+'"][href="'+Pt(e)+'"]',p=d;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Qa(e)}if(!An.has(p)&&(e=B({rel:"modulepreload",href:e},n),An.set(p,e),a.querySelector(d)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(wl(p)))return}o=a.createElement("link"),nt(o,"link",e),Ye(o),a.head.appendChild(o)}}}function gN(e,n,a){Zn.S(e,n,a);var o=xa;if(o&&e){var d=Xi(o).hoistableStyles,p=Sa(e);n=n||"default";var y=d.get(p);if(!y){var x={loading:0,preload:null};if(y=o.querySelector(Cl(p)))x.loading=5;else{e=B({rel:"stylesheet",href:e,"data-precedence":n},a),(a=An.get(p))&&Rg(e,a);var H=y=o.createElement("link");Ye(H),nt(H,"link",e),H._p=new Promise(function(Y,tA){H.onload=Y,H.onerror=tA}),H.addEventListener("load",function(){x.loading|=1}),H.addEventListener("error",function(){x.loading|=2}),x.loading|=4,qc(y,n,o)}y={type:"stylesheet",instance:y,count:1,state:x},d.set(p,y)}}}function pN(e,n){Zn.X(e,n);var a=xa;if(a&&e){var o=Xi(a).hoistableScripts,d=Qa(e),p=o.get(d);p||(p=a.querySelector(wl(d)),p||(e=B({src:e,async:!0},n),(n=An.get(d))&&Lg(e,n),p=a.createElement("script"),Ye(p),nt(p,"link",e),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(d,p))}}function mN(e,n){Zn.M(e,n);var a=xa;if(a&&e){var o=Xi(a).hoistableScripts,d=Qa(e),p=o.get(d);p||(p=a.querySelector(wl(d)),p||(e=B({src:e,async:!0,type:"module"},n),(n=An.get(d))&&Lg(e,n),p=a.createElement("script"),Ye(p),nt(p,"link",e),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(d,p))}}function Qv(e,n,a,o){var d=(d=fA.current)?Xc(d):null;if(!d)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(n=Sa(a.href),a=Xi(d).hoistableStyles,o=a.get(n),o||(o={type:"style",instance:null,count:0,state:null},a.set(n,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Sa(a.href);var p=Xi(d).hoistableStyles,y=p.get(e);if(y||(d=d.ownerDocument||d,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(e,y),(p=d.querySelector(Cl(e)))&&!p._p&&(y.instance=p,y.state.loading=5),An.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},An.set(e,a),p||BN(d,e,a,y.state))),n&&o===null)throw Error(i(528,""));return y}if(n&&o!==null)throw Error(i(529,""));return null;case"script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Qa(a),a=Xi(d).hoistableScripts,o=a.get(n),o||(o={type:"script",instance:null,count:0,state:null},a.set(n,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Sa(e){return'href="'+Pt(e)+'"'}function Cl(e){return'link[rel="stylesheet"]['+e+"]"}function Uv(e){return B({},e,{"data-precedence":e.precedence,precedence:null})}function BN(e,n,a,o){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?o.loading=1:(n=e.createElement("link"),o.preload=n,n.addEventListener("load",function(){return o.loading|=1}),n.addEventListener("error",function(){return o.loading|=2}),nt(n,"link",a),Ye(n),e.head.appendChild(n))}function Qa(e){return'[src="'+Pt(e)+'"]'}function wl(e){return"script[async]"+e}function Fv(e,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var o=e.querySelector('style[data-href~="'+Pt(a.href)+'"]');if(o)return n.instance=o,Ye(o),o;var d=B({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),Ye(o),nt(o,"style",d),qc(o,a.precedence,e),n.instance=o;case"stylesheet":d=Sa(a.href);var p=e.querySelector(Cl(d));if(p)return n.state.loading|=4,n.instance=p,Ye(p),p;o=Uv(a),(d=An.get(d))&&Rg(o,d),p=(e.ownerDocument||e).createElement("link"),Ye(p);var y=p;return y._p=new Promise(function(x,H){y.onload=x,y.onerror=H}),nt(p,"link",o),n.state.loading|=4,qc(p,a.precedence,e),n.instance=p;case"script":return p=Qa(a.src),(d=e.querySelector(wl(p)))?(n.instance=d,Ye(d),d):(o=a,(d=An.get(p))&&(o=B({},a),Lg(o,d)),e=e.ownerDocument||e,d=e.createElement("script"),Ye(d),nt(d,"link",o),e.head.appendChild(d),n.instance=d);case"void":return null;default:throw Error(i(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(o=n.instance,n.state.loading|=4,qc(o,a.precedence,e));return n.instance}function qc(e,n,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=o.length?o[o.length-1]:null,p=d,y=0;y<o.length;y++){var x=o[y];if(x.dataset.precedence===n)p=x;else if(p!==d)break}p?p.parentNode.insertBefore(e,p.nextSibling):(n=a.nodeType===9?a.head:a,n.insertBefore(e,n.firstChild))}function Rg(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function Lg(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Jc=null;function Tv(e,n,a){if(Jc===null){var o=new Map,d=Jc=new Map;d.set(a,o)}else d=Jc,o=d.get(a),o||(o=new Map,d.set(a,o));if(o.has(e))return o;for(o.set(e,null),a=a.getElementsByTagName(e),d=0;d<a.length;d++){var p=a[d];if(!(p[Os]||p[HA]||e==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var y=p.getAttribute(n)||"";y=e+y;var x=o.get(y);x?x.push(p):o.set(y,[p])}}return o}function Iv(e,n,a){e=e.ownerDocument||e,e.head.insertBefore(a,n==="title"?e.querySelector("head > title"):null)}function CN(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 Nv(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function wN(e,n,a,o){if(a.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var d=Sa(o.href),p=n.querySelector(Cl(d));if(p){n=p._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Zc.bind(e),n.then(e,e)),a.state.loading|=4,a.instance=p,Ye(p);return}p=n.ownerDocument||n,o=Uv(o),(d=An.get(d))&&Rg(o,d),p=p.createElement("link"),Ye(p);var y=p;y._p=new Promise(function(x,H){y.onload=x,y.onerror=H}),nt(p,"link",o),a.instance=p}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Zc.bind(e),n.addEventListener("load",a),n.addEventListener("error",a))}}var Dg=0;function yN(e,n){return e.stylesheets&&e.count===0&&$c(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&$c(e,e.stylesheets),e.unsuspend){var p=e.unsuspend;e.unsuspend=null,p()}},6e4+n);0<e.imgBytes&&Dg===0&&(Dg=62500*eN());var d=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&$c(e,e.stylesheets),e.unsuspend)){var p=e.unsuspend;e.unsuspend=null,p()}},(e.imgBytes>Dg?50:800)+n);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(d)}}:null}function Zc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)$c(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Wc=null;function $c(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Wc=new Map,n.forEach(EN,e),Wc=null,Zc.call(e))}function EN(e,n){if(!(n.state.loading&4)){var a=Wc.get(e);if(a)var o=a.get(null);else{a=new Map,Wc.set(e,a);for(var d=e.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<d.length;p++){var y=d[p];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(a.set(y.dataset.precedence,y),o=y)}o&&a.set(null,o)}d=n.instance,y=d.getAttribute("data-precedence"),p=a.get(y)||o,p===o&&a.set(null,d),a.set(y,d),this.count++,o=Zc.bind(this),d.addEventListener("load",o),d.addEventListener("error",o),p?p.parentNode.insertBefore(d,p.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(d,e.firstChild)),n.state.loading|=4}}var yl={$$typeof:O,Provider:null,Consumer:null,_currentValue:AA,_currentValue2:AA,_threadCount:0};function vN(e,n,a,o,d,p,y,x,H){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=ln(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ln(0),this.hiddenUpdates=ln(null),this.identifierPrefix=o,this.onUncaughtError=d,this.onCaughtError=p,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=H,this.incompleteTransitions=new Map}function Hv(e,n,a,o,d,p,y,x,H,Y,tA,sA){return e=new vN(e,n,a,y,H,Y,tA,sA,x),n=1,p===!0&&(n|=24),p=It(3,null,null,n),e.current=p,p.stateNode=e,n=Bh(),n.refCount++,e.pooledCache=n,n.refCount++,p.memoizedState={element:o,isDehydrated:a,cache:n},Eh(p),e}function _v(e){return e?(e=ra,e):ra}function Mv(e,n,a,o,d,p){d=_v(d),o.context===null?o.context=d:o.pendingContext=d,o=br(n),o.payload={element:a},p=p===void 0?null:p,p!==null&&(o.callback=p),a=xr(e,o,n),a!==null&&(vt(a,e,n),$s(a,e,n))}function Ov(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<n?a:n}}function kg(e,n){Ov(e,n),(e=e.alternate)&&Ov(e,n)}function Rv(e){if(e.tag===13||e.tag===31){var n=ii(e,67108864);n!==null&&vt(n,e,67108864),kg(e,67108864)}}function Lv(e){if(e.tag===13||e.tag===31){var n=Ot();n=mr(n);var a=ii(e,n);a!==null&&vt(a,e,n),kg(e,n)}}var Au=!0;function bN(e,n,a,o){var d=D.T;D.T=null;var p=W.p;try{W.p=2,jg(e,n,a,o)}finally{W.p=p,D.T=d}}function xN(e,n,a,o){var d=D.T;D.T=null;var p=W.p;try{W.p=8,jg(e,n,a,o)}finally{W.p=p,D.T=d}}function jg(e,n,a,o){if(Au){var d=Kg(o);if(d===null)Qg(e,n,o,eu,a),kv(e,o);else if(QN(d,e,n,a,o))o.stopPropagation();else if(kv(e,o),n&4&&-1<SN.indexOf(e)){for(;d!==null;){var p=Yi(d);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var y=xe(p.pendingLanes);if(y!==0){var x=p;for(x.pendingLanes|=2,x.entangledLanes|=2;y;){var H=1<<31-DA(y);x.entanglements[1]|=H,y&=~H}vn(p),(ne&6)===0&&(Rc=ze()+500,gl(0))}}break;case 31:case 13:x=ii(p,2),x!==null&&vt(x,p,2),Dc(),kg(p,2)}if(p=Kg(o),p===null&&Qg(e,n,o,eu,a),p===d)break;d=p}d!==null&&o.stopPropagation()}else Qg(e,n,o,null,a)}}function Kg(e){return e=Gd(e),Vg(e)}var eu=null;function Vg(e){if(eu=null,e=Pi(e),e!==null){var n=l(e);if(n===null)e=null;else{var a=n.tag;if(a===13){if(e=c(n),e!==null)return e;e=null}else if(a===31){if(e=u(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 eu=e,null}function Dv(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(Vi()){case rA:return 2;case V:return 8;case q:case oA:return 32;case dA:return 268435456;default:return 32}default:return 32}}var Gg=!1,Or=null,Rr=null,Lr=null,El=new Map,vl=new Map,Dr=[],SN="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 kv(e,n){switch(e){case"focusin":case"focusout":Or=null;break;case"dragenter":case"dragleave":Rr=null;break;case"mouseover":case"mouseout":Lr=null;break;case"pointerover":case"pointerout":El.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":vl.delete(n.pointerId)}}function bl(e,n,a,o,d,p){return e===null||e.nativeEvent!==p?(e={blockedOn:n,domEventName:a,eventSystemFlags:o,nativeEvent:p,targetContainers:[d]},n!==null&&(n=Yi(n),n!==null&&Rv(n)),e):(e.eventSystemFlags|=o,n=e.targetContainers,d!==null&&n.indexOf(d)===-1&&n.push(d),e)}function QN(e,n,a,o,d){switch(n){case"focusin":return Or=bl(Or,e,n,a,o,d),!0;case"dragenter":return Rr=bl(Rr,e,n,a,o,d),!0;case"mouseover":return Lr=bl(Lr,e,n,a,o,d),!0;case"pointerover":var p=d.pointerId;return El.set(p,bl(El.get(p)||null,e,n,a,o,d)),!0;case"gotpointercapture":return p=d.pointerId,vl.set(p,bl(vl.get(p)||null,e,n,a,o,d)),!0}return!1}function jv(e){var n=Pi(e.target);if(n!==null){var a=l(n);if(a!==null){if(n=a.tag,n===13){if(n=c(a),n!==null){e.blockedOn=n,zi(e.priority,function(){Lv(a)});return}}else if(n===31){if(n=u(a),n!==null){e.blockedOn=n,zi(e.priority,function(){Lv(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 tu(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var a=Kg(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a);Vd=o,a.target.dispatchEvent(o),Vd=null}else return n=Yi(a),n!==null&&Rv(n),e.blockedOn=a,!1;n.shift()}return!0}function Kv(e,n,a){tu(e)&&a.delete(n)}function UN(){Gg=!1,Or!==null&&tu(Or)&&(Or=null),Rr!==null&&tu(Rr)&&(Rr=null),Lr!==null&&tu(Lr)&&(Lr=null),El.forEach(Kv),vl.forEach(Kv)}function nu(e,n){e.blockedOn===n&&(e.blockedOn=null,Gg||(Gg=!0,A.unstable_scheduleCallback(A.unstable_NormalPriority,UN)))}var ru=null;function Vv(e){ru!==e&&(ru=e,A.unstable_scheduleCallback(A.unstable_NormalPriority,function(){ru===e&&(ru=null);for(var n=0;n<e.length;n+=3){var a=e[n],o=e[n+1],d=e[n+2];if(typeof o!="function"){if(Vg(o||a)===null)continue;break}var p=Yi(a);p!==null&&(e.splice(n,3),n-=3,Kh(p,{pending:!0,data:d,method:a.method,action:o},o,d))}}))}function Ua(e){function n(H){return nu(H,e)}Or!==null&&nu(Or,e),Rr!==null&&nu(Rr,e),Lr!==null&&nu(Lr,e),El.forEach(n),vl.forEach(n);for(var a=0;a<Dr.length;a++){var o=Dr[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Dr.length&&(a=Dr[0],a.blockedOn===null);)jv(a),a.blockedOn===null&&Dr.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var d=a[o],p=a[o+1],y=d[Oe]||null;if(typeof p=="function")y||Vv(a);else if(y){var x=null;if(p&&p.hasAttribute("formAction")){if(d=p,y=p[Oe]||null)x=y.formAction;else if(Vg(d)!==null)continue}else x=y.action;typeof x=="function"?a[o+1]=x:(a.splice(o,3),o-=3),Vv(a)}}}function Gv(){function e(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(y){return d=y})},focusReset:"manual",scroll:"manual"})}function n(){d!==null&&(d(),d=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,d=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),d!==null&&(d(),d=null)}}}function zg(e){this._internalRoot=e}iu.prototype.render=zg.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(i(409));var a=n.current,o=Ot();Mv(a,o,e,n,null,null)},iu.prototype.unmount=zg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Mv(e.current,2,null,e,null,null),Dc(),n[Hn]=null}};function iu(e){this._internalRoot=e}iu.prototype.unstable_scheduleHydration=function(e){if(e){var n=Yo();e={blockedOn:null,target:e,priority:n};for(var a=0;a<Dr.length&&n!==0&&n<Dr[a].priority;a++);Dr.splice(a,0,e),a===0&&jv(e)}};var zv=t.version;if(zv!=="19.2.0")throw Error(i(527,zv,"19.2.0"));W.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=h(n),e=e!==null?m(e):null,e=e===null?null:e.stateNode,e};var FN={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!au.isDisabled&&au.supportsFiber)try{ZA=au.inject(FN),zA=au}catch{}}return Ia.createRoot=function(e,n){if(!s(e))throw Error(i(299));var a=!1,o="",d=Wy,p=$y,y=AE;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(d=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError)),n=Hv(e,1,!1,null,null,a,o,null,d,p,y,Gv),e[Hn]=n.current,Sg(e),new zg(n)},Ia.hydrateRoot=function(e,n,a){if(!s(e))throw Error(i(299));var o=!1,d="",p=Wy,y=$y,x=AE,H=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onUncaughtError!==void 0&&(p=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(x=a.onRecoverableError),a.formState!==void 0&&(H=a.formState)),n=Hv(e,1,!0,n,a??null,o,d,H,p,y,x,Gv),n.context=_v(null),a=n.current,o=Ot(),o=mr(o),d=br(o),d.callback=null,xr(a,d,o),a=o,n.current.lanes=a,Gt(n,a),vn(n),e[Hn]=n.current,Sg(e),new iu(n)},Ia.version="19.2.0",Ia}var n0;function e2(){if(n0)return uu.exports;n0=1;function A(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(A)}catch{}}return A(),uu.exports=A2(),uu.exports}var t2=e2();function r0(A,t){if(typeof A=="function")return A(t);A!=null&&(A.current=t)}function gu(...A){return t=>{let r=!1;const i=A.map(s=>{const l=r0(s,t);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let s=0;s<i.length;s++){const l=i[s];typeof l=="function"?l():r0(A[s],null)}}}}function bn(...A){return b.useCallback(gu(...A),A)}function n2(A){const t=r2(A),r=b.forwardRef((i,s)=>{const{children:l,...c}=i,u=b.Children.toArray(l),f=u.find(a2);if(f){const h=f.props.children,m=u.map(B=>B===f?b.Children.count(h)>1?b.Children.only(null):b.isValidElement(h)?h.props.children:null:B);return g.jsx(t,{...c,ref:s,children:b.isValidElement(h)?b.cloneElement(h,void 0,m):null})}return g.jsx(t,{...c,ref:s,children:l})});return r.displayName=`${A}.Slot`,r}function r2(A){const t=b.forwardRef((r,i)=>{const{children:s,...l}=r;if(b.isValidElement(s)){const c=l2(s),u=s2(l,s.props);return s.type!==b.Fragment&&(u.ref=i?gu(i,c):c),b.cloneElement(s,u)}return b.Children.count(s)>1?b.Children.only(null):null});return t.displayName=`${A}.SlotClone`,t}var i2=Symbol("radix.slottable");function a2(A){return b.isValidElement(A)&&typeof A.type=="function"&&"__radixId"in A.type&&A.type.__radixId===i2}function s2(A,t){const r={...t};for(const i in t){const s=A[i],l=t[i];/^on[A-Z]/.test(i)?s&&l?r[i]=(...u)=>{const f=l(...u);return s(...u),f}:s&&(r[i]=s):i==="style"?r[i]={...s,...l}:i==="className"&&(r[i]=[s,l].filter(Boolean).join(" "))}return{...A,...r}}function l2(A){let t=Object.getOwnPropertyDescriptor(A.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?A.ref:(t=Object.getOwnPropertyDescriptor(A,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?A.props.ref:A.props.ref||A.ref)}var o2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Wn=o2.reduce((A,t)=>{const r=n2(`Primitive.${t}`),i=b.forwardRef((s,l)=>{const{asChild:c,...u}=s,f=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(f,{...u,ref:l})});return i.displayName=`Primitive.${t}`,{...A,[t]:i}},{}),$n=globalThis?.document?b.useLayoutEffect:()=>{};function c2(A,t){return b.useReducer((r,i)=>t[r][i]??r,A)}var Bi=A=>{const{present:t,children:r}=A,i=u2(t),s=typeof r=="function"?r({present:i.isPresent}):b.Children.only(r),l=bn(i.ref,f2(s));return typeof r=="function"||i.isPresent?b.cloneElement(s,{ref:l}):null};Bi.displayName="Presence";function u2(A){const[t,r]=b.useState(),i=b.useRef(null),s=b.useRef(A),l=b.useRef("none"),c=A?"mounted":"unmounted",[u,f]=c2(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const h=Sl(i.current);l.current=u==="mounted"?h:"none"},[u]),$n(()=>{const h=i.current,m=s.current;if(m!==A){const w=l.current,C=Sl(h);A?f("MOUNT"):C==="none"||h?.display==="none"?f("UNMOUNT"):f(m&&w!==C?"ANIMATION_OUT":"UNMOUNT"),s.current=A}},[A,f]),$n(()=>{if(t){let h;const m=t.ownerDocument.defaultView??window,B=C=>{const v=Sl(i.current).includes(CSS.escape(C.animationName));if(C.target===t&&v&&(f("ANIMATION_END"),!s.current)){const F=t.style.animationFillMode;t.style.animationFillMode="forwards",h=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=F)})}},w=C=>{C.target===t&&(l.current=Sl(i.current))};return t.addEventListener("animationstart",w),t.addEventListener("animationcancel",B),t.addEventListener("animationend",B),()=>{m.clearTimeout(h),t.removeEventListener("animationstart",w),t.removeEventListener("animationcancel",B),t.removeEventListener("animationend",B)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:b.useCallback(h=>{i.current=h?getComputedStyle(h):null,r(h)},[])}}function Sl(A){return A?.animationName||"none"}function f2(A){let t=Object.getOwnPropertyDescriptor(A.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?A.ref:(t=Object.getOwnPropertyDescriptor(A,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?A.props.ref:A.props.ref||A.ref)}function i0(A,t=[]){let r=[];function i(l,c){const u=b.createContext(c),f=r.length;r=[...r,c];const h=B=>{const{scope:w,children:C,...E}=B,v=w?.[A]?.[f]||u,F=b.useMemo(()=>E,Object.values(E));return g.jsx(v.Provider,{value:F,children:C})};h.displayName=l+"Provider";function m(B,w){const C=w?.[A]?.[f]||u,E=b.useContext(C);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${B}\` must be used within \`${l}\``)}return[h,m]}const s=()=>{const l=r.map(c=>b.createContext(c));return function(u){const f=u?.[A]||l;return b.useMemo(()=>({[`__scope${A}`]:{...u,[A]:f}}),[u,f])}};return s.scopeName=A,[i,d2(s,...t)]}function d2(...A){const t=A[0];if(A.length===1)return t;const r=()=>{const i=A.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(l){const c=i.reduce((u,{useScope:f,scopeName:h})=>{const B=f(l)[`__scope${h}`];return{...u,...B}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return r.scopeName=t.scopeName,r}function Ar(A){const t=b.useRef(A);return b.useEffect(()=>{t.current=A}),b.useMemo(()=>(...r)=>t.current?.(...r),[])}var h2=b.createContext(void 0);function g2(A){const t=b.useContext(h2);return A||t||"ltr"}function p2(A,[t,r]){return Math.min(r,Math.max(t,A))}function xn(A,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(A?.(s),r===!1||!s.defaultPrevented)return t?.(s)}}function m2(A,t){return b.useReducer((r,i)=>t[r][i]??r,A)}var pu="ScrollArea",[a0]=i0(pu),[B2,Rt]=a0(pu),s0=b.forwardRef((A,t)=>{const{__scopeScrollArea:r,type:i="hover",dir:s,scrollHideDelay:l=600,...c}=A,[u,f]=b.useState(null),[h,m]=b.useState(null),[B,w]=b.useState(null),[C,E]=b.useState(null),[v,F]=b.useState(null),[Q,N]=b.useState(0),[O,j]=b.useState(0),[K,T]=b.useState(!1),[L,R]=b.useState(!1),_=bn(t,nA=>f(nA)),X=g2(s);return g.jsx(B2,{scope:r,type:i,dir:X,scrollHideDelay:l,scrollArea:u,viewport:h,onViewportChange:m,content:B,onContentChange:w,scrollbarX:C,onScrollbarXChange:E,scrollbarXEnabled:K,onScrollbarXEnabledChange:T,scrollbarY:v,onScrollbarYChange:F,scrollbarYEnabled:L,onScrollbarYEnabledChange:R,onCornerWidthChange:N,onCornerHeightChange:j,children:g.jsx(Wn.div,{dir:X,...c,ref:_,style:{position:"relative","--radix-scroll-area-corner-width":Q+"px","--radix-scroll-area-corner-height":O+"px",...A.style}})})});s0.displayName=pu;var l0="ScrollAreaViewport",o0=b.forwardRef((A,t)=>{const{__scopeScrollArea:r,children:i,nonce:s,...l}=A,c=Rt(l0,r),u=b.useRef(null),f=bn(t,u,c.onViewportChange);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),g.jsx(Wn.div,{"data-radix-scroll-area-viewport":"",...l,ref:f,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...A.style},children:g.jsx("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});o0.displayName=l0;var fn="ScrollAreaScrollbar",mu=b.forwardRef((A,t)=>{const{forceMount:r,...i}=A,s=Rt(fn,A.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:c}=s,u=A.orientation==="horizontal";return b.useEffect(()=>(u?l(!0):c(!0),()=>{u?l(!1):c(!1)}),[u,l,c]),s.type==="hover"?g.jsx(C2,{...i,ref:t,forceMount:r}):s.type==="scroll"?g.jsx(w2,{...i,ref:t,forceMount:r}):s.type==="auto"?g.jsx(c0,{...i,ref:t,forceMount:r}):s.type==="always"?g.jsx(Bu,{...i,ref:t}):null});mu.displayName=fn;var C2=b.forwardRef((A,t)=>{const{forceMount:r,...i}=A,s=Rt(fn,A.__scopeScrollArea),[l,c]=b.useState(!1);return b.useEffect(()=>{const u=s.scrollArea;let f=0;if(u){const h=()=>{window.clearTimeout(f),c(!0)},m=()=>{f=window.setTimeout(()=>c(!1),s.scrollHideDelay)};return u.addEventListener("pointerenter",h),u.addEventListener("pointerleave",m),()=>{window.clearTimeout(f),u.removeEventListener("pointerenter",h),u.removeEventListener("pointerleave",m)}}},[s.scrollArea,s.scrollHideDelay]),g.jsx(Bi,{present:r||l,children:g.jsx(c0,{"data-state":l?"visible":"hidden",...i,ref:t})})}),w2=b.forwardRef((A,t)=>{const{forceMount:r,...i}=A,s=Rt(fn,A.__scopeScrollArea),l=A.orientation==="horizontal",c=Tl(()=>f("SCROLL_END"),100),[u,f]=m2("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return b.useEffect(()=>{if(u==="idle"){const h=window.setTimeout(()=>f("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(h)}},[u,s.scrollHideDelay,f]),b.useEffect(()=>{const h=s.viewport,m=l?"scrollLeft":"scrollTop";if(h){let B=h[m];const w=()=>{const C=h[m];B!==C&&(f("SCROLL"),c()),B=C};return h.addEventListener("scroll",w),()=>h.removeEventListener("scroll",w)}},[s.viewport,l,f,c]),g.jsx(Bi,{present:r||u!=="hidden",children:g.jsx(Bu,{"data-state":u==="hidden"?"hidden":"visible",...i,ref:t,onPointerEnter:xn(A.onPointerEnter,()=>f("POINTER_ENTER")),onPointerLeave:xn(A.onPointerLeave,()=>f("POINTER_LEAVE"))})})}),c0=b.forwardRef((A,t)=>{const r=Rt(fn,A.__scopeScrollArea),{forceMount:i,...s}=A,[l,c]=b.useState(!1),u=A.orientation==="horizontal",f=Tl(()=>{if(r.viewport){const h=r.viewport.offsetWidth<r.viewport.scrollWidth,m=r.viewport.offsetHeight<r.viewport.scrollHeight;c(u?h:m)}},10);return Ci(r.viewport,f),Ci(r.content,f),g.jsx(Bi,{present:i||l,children:g.jsx(Bu,{"data-state":l?"visible":"hidden",...s,ref:t})})}),Bu=b.forwardRef((A,t)=>{const{orientation:r="vertical",...i}=A,s=Rt(fn,A.__scopeScrollArea),l=b.useRef(null),c=b.useRef(0),[u,f]=b.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),h=g0(u.viewport,u.content),m={...i,sizes:u,onSizesChange:f,hasThumb:h>0&&h<1,onThumbChange:w=>l.current=w,onThumbPointerUp:()=>c.current=0,onThumbPointerDown:w=>c.current=w};function B(w,C){return S2(w,c.current,u,C)}return r==="horizontal"?g.jsx(y2,{...m,ref:t,onThumbPositionChange:()=>{if(s.viewport&&l.current){const w=s.viewport.scrollLeft,C=p0(w,u,s.dir);l.current.style.transform=`translate3d(${C}px, 0, 0)`}},onWheelScroll:w=>{s.viewport&&(s.viewport.scrollLeft=w)},onDragScroll:w=>{s.viewport&&(s.viewport.scrollLeft=B(w,s.dir))}}):r==="vertical"?g.jsx(E2,{...m,ref:t,onThumbPositionChange:()=>{if(s.viewport&&l.current){const w=s.viewport.scrollTop,C=p0(w,u);l.current.style.transform=`translate3d(0, ${C}px, 0)`}},onWheelScroll:w=>{s.viewport&&(s.viewport.scrollTop=w)},onDragScroll:w=>{s.viewport&&(s.viewport.scrollTop=B(w))}}):null}),y2=b.forwardRef((A,t)=>{const{sizes:r,onSizesChange:i,...s}=A,l=Rt(fn,A.__scopeScrollArea),[c,u]=b.useState(),f=b.useRef(null),h=bn(t,f,l.onScrollbarXChange);return b.useEffect(()=>{f.current&&u(getComputedStyle(f.current))},[f]),g.jsx(f0,{"data-orientation":"horizontal",...s,ref:h,sizes:r,style:{bottom:0,left:l.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:l.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Fl(r)+"px",...A.style},onThumbPointerDown:m=>A.onThumbPointerDown(m.x),onDragScroll:m=>A.onDragScroll(m.x),onWheelScroll:(m,B)=>{if(l.viewport){const w=l.viewport.scrollLeft+m.deltaX;A.onWheelScroll(w),B0(w,B)&&m.preventDefault()}},onResize:()=>{f.current&&l.viewport&&c&&i({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:f.current.clientWidth,paddingStart:Ul(c.paddingLeft),paddingEnd:Ul(c.paddingRight)}})}})}),E2=b.forwardRef((A,t)=>{const{sizes:r,onSizesChange:i,...s}=A,l=Rt(fn,A.__scopeScrollArea),[c,u]=b.useState(),f=b.useRef(null),h=bn(t,f,l.onScrollbarYChange);return b.useEffect(()=>{f.current&&u(getComputedStyle(f.current))},[f]),g.jsx(f0,{"data-orientation":"vertical",...s,ref:h,sizes:r,style:{top:0,right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Fl(r)+"px",...A.style},onThumbPointerDown:m=>A.onThumbPointerDown(m.y),onDragScroll:m=>A.onDragScroll(m.y),onWheelScroll:(m,B)=>{if(l.viewport){const w=l.viewport.scrollTop+m.deltaY;A.onWheelScroll(w),B0(w,B)&&m.preventDefault()}},onResize:()=>{f.current&&l.viewport&&c&&i({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:f.current.clientHeight,paddingStart:Ul(c.paddingTop),paddingEnd:Ul(c.paddingBottom)}})}})}),[v2,u0]=a0(fn),f0=b.forwardRef((A,t)=>{const{__scopeScrollArea:r,sizes:i,hasThumb:s,onThumbChange:l,onThumbPointerUp:c,onThumbPointerDown:u,onThumbPositionChange:f,onDragScroll:h,onWheelScroll:m,onResize:B,...w}=A,C=Rt(fn,r),[E,v]=b.useState(null),F=bn(t,_=>v(_)),Q=b.useRef(null),N=b.useRef(""),O=C.viewport,j=i.content-i.viewport,K=Ar(m),T=Ar(f),L=Tl(B,10);function R(_){if(Q.current){const X=_.clientX-Q.current.left,nA=_.clientY-Q.current.top;h({x:X,y:nA})}}return b.useEffect(()=>{const _=X=>{const nA=X.target;E?.contains(nA)&&K(X,j)};return document.addEventListener("wheel",_,{passive:!1}),()=>document.removeEventListener("wheel",_,{passive:!1})},[O,E,j,K]),b.useEffect(T,[i,T]),Ci(E,L),Ci(C.content,L),g.jsx(v2,{scope:r,scrollbar:E,hasThumb:s,onThumbChange:Ar(l),onThumbPointerUp:Ar(c),onThumbPositionChange:T,onThumbPointerDown:Ar(u),children:g.jsx(Wn.div,{...w,ref:F,style:{position:"absolute",...w.style},onPointerDown:xn(A.onPointerDown,_=>{_.button===0&&(_.target.setPointerCapture(_.pointerId),Q.current=E.getBoundingClientRect(),N.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",C.viewport&&(C.viewport.style.scrollBehavior="auto"),R(_))}),onPointerMove:xn(A.onPointerMove,R),onPointerUp:xn(A.onPointerUp,_=>{const X=_.target;X.hasPointerCapture(_.pointerId)&&X.releasePointerCapture(_.pointerId),document.body.style.webkitUserSelect=N.current,C.viewport&&(C.viewport.style.scrollBehavior=""),Q.current=null})})})}),Ql="ScrollAreaThumb",d0=b.forwardRef((A,t)=>{const{forceMount:r,...i}=A,s=u0(Ql,A.__scopeScrollArea);return g.jsx(Bi,{present:r||s.hasThumb,children:g.jsx(b2,{ref:t,...i})})}),b2=b.forwardRef((A,t)=>{const{__scopeScrollArea:r,style:i,...s}=A,l=Rt(Ql,r),c=u0(Ql,r),{onThumbPositionChange:u}=c,f=bn(t,B=>c.onThumbChange(B)),h=b.useRef(void 0),m=Tl(()=>{h.current&&(h.current(),h.current=void 0)},100);return b.useEffect(()=>{const B=l.viewport;if(B){const w=()=>{if(m(),!h.current){const C=Q2(B,u);h.current=C,u()}};return u(),B.addEventListener("scroll",w),()=>B.removeEventListener("scroll",w)}},[l.viewport,m,u]),g.jsx(Wn.div,{"data-state":c.hasThumb?"visible":"hidden",...s,ref:f,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:xn(A.onPointerDownCapture,B=>{const C=B.target.getBoundingClientRect(),E=B.clientX-C.left,v=B.clientY-C.top;c.onThumbPointerDown({x:E,y:v})}),onPointerUp:xn(A.onPointerUp,c.onThumbPointerUp)})});d0.displayName=Ql;var Cu="ScrollAreaCorner",h0=b.forwardRef((A,t)=>{const r=Rt(Cu,A.__scopeScrollArea),i=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&i?g.jsx(x2,{...A,ref:t}):null});h0.displayName=Cu;var x2=b.forwardRef((A,t)=>{const{__scopeScrollArea:r,...i}=A,s=Rt(Cu,r),[l,c]=b.useState(0),[u,f]=b.useState(0),h=!!(l&&u);return Ci(s.scrollbarX,()=>{const m=s.scrollbarX?.offsetHeight||0;s.onCornerHeightChange(m),f(m)}),Ci(s.scrollbarY,()=>{const m=s.scrollbarY?.offsetWidth||0;s.onCornerWidthChange(m),c(m)}),h?g.jsx(Wn.div,{...i,ref:t,style:{width:l,height:u,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...A.style}}):null});function Ul(A){return A?parseInt(A,10):0}function g0(A,t){const r=A/t;return isNaN(r)?0:r}function Fl(A){const t=g0(A.viewport,A.content),r=A.scrollbar.paddingStart+A.scrollbar.paddingEnd,i=(A.scrollbar.size-r)*t;return Math.max(i,18)}function S2(A,t,r,i="ltr"){const s=Fl(r),l=s/2,c=t||l,u=s-c,f=r.scrollbar.paddingStart+c,h=r.scrollbar.size-r.scrollbar.paddingEnd-u,m=r.content-r.viewport,B=i==="ltr"?[0,m]:[m*-1,0];return m0([f,h],B)(A)}function p0(A,t,r="ltr"){const i=Fl(t),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=t.scrollbar.size-s,c=t.content-t.viewport,u=l-i,f=r==="ltr"?[0,c]:[c*-1,0],h=p2(A,f);return m0([0,c],[0,u])(h)}function m0(A,t){return r=>{if(A[0]===A[1]||t[0]===t[1])return t[0];const i=(t[1]-t[0])/(A[1]-A[0]);return t[0]+i*(r-A[0])}}function B0(A,t){return A>0&&A<t}var Q2=(A,t=()=>{})=>{let r={left:A.scrollLeft,top:A.scrollTop},i=0;return(function s(){const l={left:A.scrollLeft,top:A.scrollTop},c=r.left!==l.left,u=r.top!==l.top;(c||u)&&t(),r=l,i=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(i)};function Tl(A,t){const r=Ar(A),i=b.useRef(0);return b.useEffect(()=>()=>window.clearTimeout(i.current),[]),b.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(r,t)},[r,t])}function Ci(A,t){const r=Ar(t);$n(()=>{let i=0;if(A){const s=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return s.observe(A),()=>{window.cancelAnimationFrame(i),s.unobserve(A)}}},[A,r])}var C0=s0,U2=o0,F2=h0,jr={},Na={},wu={},Ha={},_a={},Ma={},w0;function yu(){if(w0)return Ma;w0=1,Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.EventEmitter=void 0;let A=class{eventListeners=new Map;on(r,i){const s=this.eventListeners.get(r)||new Set;s.add(i),this.eventListeners.set(r,s)}off(r,i){const s=this.eventListeners.get(r);s&&(s.delete(i),s.size===0&&this.eventListeners.delete(r))}emit(r,...i){const s=this.eventListeners.get(r);s&&s.forEach(l=>l(...i))}removeAllListeners(){this.eventListeners.clear()}};return Ma.EventEmitter=A,Ma}var Kr={},y0;function Oa(){return y0||(y0=1,Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.DisconnectionReason=Kr.ConnectionStatus=void 0,Kr.ConnectionStatus={CONNECTING:"connecting",CONNECTED:"connected",NOT_CONNECTED:"not_connected"},Kr.DisconnectionReason={CLIENT_CLOSED:"client_closed",SERVER_CLOSED:"server_closed",CONNECTION_ERROR:"connection_error",AUTHENTICATION_ERROR:"authentication_error",MAX_RECONNECT_ATTEMPTS:"max_reconnect_attempts",TIMEOUT:"timeout",NETWORK_ERROR:"network_error"}),Kr}var E0;function Eu(){if(E0)return _a;E0=1,Object.defineProperty(_a,"__esModule",{value:!0}),_a.BaseConnection=void 0;const A=yu(),t=Oa();let r=class{status=t.ConnectionStatus.CONNECTING;queue=[];eventEmitter=new A.EventEmitter;disconnectionDetails=null;onErrorCallback=null;onDisconnectCallback=null;onMessageCallback=null;onOpenCallback=null;onStatusChangeCallback=null;getStatus(){return this.status}onOpen(s){this.onOpenCallback=s}onMessage(s){if(this.onMessageCallback=s,this.queue.length>0){const l=[...this.queue];this.queue.length=0,queueMicrotask(()=>{l.forEach(c=>{this.onMessageCallback?.(c)})})}}onDisconnect(s){this.onDisconnectCallback=s;const l=this.disconnectionDetails;l&&queueMicrotask(()=>{this.onDisconnectCallback?.(l)})}onError(s){this.onErrorCallback=s}on(s,l){this.eventEmitter.on(s,l)}off(s,l){this.eventEmitter.off(s,l)}emit(s,...l){this.eventEmitter.emit(s,...l)}onStatusChange(s){this.onStatusChangeCallback=s,queueMicrotask(()=>{s(this.status)})}disconnect(s){this.disconnectionDetails||(this.disconnectionDetails=s,this.updateStatus(t.ConnectionStatus.NOT_CONNECTED),this.onDisconnectCallback?.(s))}handleMessage(s){this.onMessageCallback?this.onMessageCallback(s):this.queue.push(s)}updateStatus(s){this.status!==s&&(this.status=s,this.onStatusChangeCallback?.(s))}};return _a.BaseConnection=r,_a}var vu={},v0;function Lt(){return v0||(v0=1,(function(A){Object.defineProperty(A,"__esModule",{value:!0}),A.ValidationError=A.ConfigurationError=A.StoreError=A.MessageError=A.SessionError=A.FileError=A.AuthenticationError=A.RecordingError=A.ConnectionError=A.InternalServerError=A.RateLimitError=A.MethodNotAllowedError=A.NotFoundError=A.PermissionDeniedError=A.UnauthorizedError=A.BadRequestError=A.APIConnectionTimeoutError=A.APIUserAbortError=A.APIError=A.SynapseError=A.SynapseErrorCode=void 0,A.normalizeError=K,A.SynapseErrorCode={API:"API_ERROR",CONNECTION:"CONNECTION_ERROR",RECORDING:"RECORDING_ERROR",FILE:"FILE_ERROR",SESSION:"SESSION_ERROR",MESSAGE:"MESSAGE_ERROR",STORE:"STORE_ERROR",CONFIGURATION:"CONFIGURATION_ERROR",VALIDATION:"VALIDATION_ERROR",AUTH:"AUTH_ERROR",UNKNOWN:"UNKNOWN_ERROR"};class t extends Error{code;timestamp;cause;context;hint;displayMessage;constructor(L,R=A.SynapseErrorCode.UNKNOWN,_={}){super(L),this.name="SynapseError",this.code=R,this.timestamp=new Date,this.cause=_.cause,this.context=_.context,this.hint=_.hint,this.displayMessage=_.displayMessage||_?.hint||L,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}A.SynapseError=t;class r extends t{status;error;headers;constructor(L,R,_,X){const nA=r.makeMessage(R,_,L);super(nA,A.SynapseErrorCode.API,{cause:_,context:{status:R,hasBody:!!_},hint:R&&R>=500?"Retry the request or contact support if the issue persists.":void 0,displayMessage:L||"Something went wrong"}),this.name="APIError",this.status=R,this.error=_,this.headers=X}static makeMessage(L,R,_){const X=R instanceof Error?R.message:_;return L&&X?`HTTP ${L}: ${X}`:L?`${L} status code (no body)`:X||"(no status code or body)"}static generate(L,R,_,X){if(!L)return new i({message:_});const nA=R?.error,z=nA&&typeof nA=="object"&&!Array.isArray(nA)?nA:void 0;switch(L){case 400:return new l(_||"Bad Request",L,z,X);case 401:return new c(_||"Unauthorized",L,z,X);case 403:return new u(_||"Permission Denied",L,z,X);case 404:return new f(_||"Not Found",L,z,X);case 405:return new h(_||"Method Not Allowed",L,z,X);case 429:return new m(_||"Rate Limit Exceeded",L,z,X);case 500:return new B(_||"Internal Server Error",L,z,X);default:return new r(_||"API Error",L,z,X)}}}A.APIError=r;class i extends r{constructor({message:L}={}){super(L||"Request was aborted.",void 0,void 0,void 0),this.name="APIUserAbortError"}}A.APIUserAbortError=i;class s extends r{constructor({message:L}={}){super(L||"Request timed out.",void 0,void 0,void 0),this.name="APIConnectionTimeoutError"}}A.APIConnectionTimeoutError=s;class l extends r{constructor(L,R,_,X){super(L,R,_,X),this.name="BadRequestError"}}A.BadRequestError=l;class c extends r{constructor(L,R,_,X){super(L,R,_,X),this.name="UnauthorizedError"}}A.UnauthorizedError=c;class u extends r{constructor(L,R,_,X){super(L,R,_,X),this.name="PermissionDeniedError"}}A.PermissionDeniedError=u;class f extends r{constructor(L,R,_,X){super(L,R,_,X),this.name="NotFoundError"}}A.NotFoundError=f;class h extends r{constructor(L,R,_,X){super(L,R,_,X),this.name="MethodNotAllowedError"}}A.MethodNotAllowedError=h;class m extends r{constructor(L,R,_,X){super(L,R,_,X),this.name="RateLimitError"}}A.RateLimitError=m;class B extends r{constructor(L,R,_,X){super(L,R,_,X),this.name="InternalServerError"}}A.InternalServerError=B;class w extends t{constructor(L,R={}){super(L,A.SynapseErrorCode.CONNECTION,R),this.name="ConnectionError"}}A.ConnectionError=w;class C extends t{constructor(L,R={}){super(L,A.SynapseErrorCode.RECORDING,R),this.name="RecordingError"}}A.RecordingError=C;class E extends t{constructor(L,R={}){super(L,A.SynapseErrorCode.AUTH,R),this.name="AuthenticationError"}}A.AuthenticationError=E;class v extends t{constructor(L,R={}){super(L,A.SynapseErrorCode.FILE,R),this.name="FileError"}}A.FileError=v;class F extends t{constructor(L,R={}){super(L,A.SynapseErrorCode.SESSION,R),this.name="SessionError"}}A.SessionError=F;class Q extends t{constructor(L,R={}){super(L,A.SynapseErrorCode.MESSAGE,R),this.name="MessageError"}}A.MessageError=Q;class N extends t{constructor(L,R={}){super(L,A.SynapseErrorCode.STORE,R),this.name="StoreError"}}A.StoreError=N;class O extends t{constructor(L,R={}){super(L,A.SynapseErrorCode.CONFIGURATION,R),this.name="ConfigurationError"}}A.ConfigurationError=O;class j extends t{constructor(L,R={}){super(L,A.SynapseErrorCode.VALIDATION,R),this.name="ValidationError"}}A.ValidationError=j;function K(T,L,R,_={}){if(T instanceof L)return T;const X={..._,context:{...T instanceof t?T.context:void 0,..._.context},hint:_.hint??(T instanceof t?T.hint:void 0),cause:_.cause??T};if(T instanceof t)return new L(T.message,X);const nA=T instanceof Error&&T.message?T.message:R;return new L(nA,X)}})(vu)),vu}var b0;function x0(){if(b0)return Ha;b0=1,Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.WebSocketConnection=void 0;const A=Eu(),t=Oa(),r=Lt();class i extends A.BaseConnection{conversationId;socket=null;config;authenticated=!1;constructor(l){super(),this.config={...l,reconnect:l.reconnect||!0,reconnectAttempts:l.reconnectAttempts||3,reconnectDelay:l.reconnectDelay||1e3},this.conversationId=l.auth.sessionId,this.connect()}connect(){try{if(this.socket&&this.socket.readyState===WebSocket.OPEN||this.authenticated)return;this.updateStatus(t.ConnectionStatus.CONNECTING);const l=this.buildConnectionUrl();this.socket=new WebSocket(l),this.socket.onopen=this.handleOpen.bind(this),this.socket.onmessage=this.handleSocketMessage.bind(this),this.socket.onerror=this.handleError.bind(this),this.socket.onclose=this.handleClose.bind(this)}catch(l){const c=(0,r.normalizeError)(l,r.ConnectionError,"Failed to establish WebSocket connection",{context:{stage:"connect"}});this.onErrorCallback?.(c),this.disconnect({code:1001,reason:t.DisconnectionReason.CONNECTION_ERROR,message:c.message,timestamp:new Date})}}buildConnectionUrl(){const l=new URL(this.config.serverUrl);return l.pathname=`/reloaded/ws/med-assist/session/${this.config.auth.sessionId}/`,l.toString()}handleOpen(){this.authenticated||this.socket?.readyState!==WebSocket.OPEN||this.onOpenCallback?.()}handleSocketMessage(l){try{const c=JSON.parse(l.data);this.handleMessage(c)}catch(c){const u=(0,r.normalizeError)(c,r.MessageError,"Failed to parse incoming WebSocket message",{context:{stage:"handleSocketMessage"}});this.onErrorCallback?.(u)}}handleError(l){}handleClose(l){const c=l.wasClean,u=l.code,f=l.reason;let h,m;this.authenticated=!1,!this.isConnected()&&(u===1e3?(h=t.DisconnectionReason.CLIENT_CLOSED,m="Connection closed normally"):u===1001||u===1006?(h=t.DisconnectionReason.NETWORK_ERROR,m=l.reason||"Network connection lost"):u===4001||u===1008?l.reason==="timeout"||l.reason==="Authentication timeout"?(h=t.DisconnectionReason.TIMEOUT,m="Connection timed out"):(h=t.DisconnectionReason.AUTHENTICATION_ERROR,m=l.reason||"Authentication failed"):c?(h=t.DisconnectionReason.SERVER_CLOSED,m=f||"Server closed connection"):(h=t.DisconnectionReason.CONNECTION_ERROR,m=f||"Connection closed unexpectedly"),this.disconnect({reason:h,message:m,code:u,timestamp:new Date}))}sendMessage(l){if(!this.socket||this.socket.readyState!==WebSocket.OPEN)throw new r.ConnectionError("Cannot send message: connection not open",{context:{stage:"sendMessage",readyState:this.socket?.readyState},hint:"Ensure the WebSocket is open before sending messages."});try{this.socket.send(JSON.stringify(l))}catch(c){const u=(0,r.normalizeError)(c,r.ConnectionError,"Failed to send WebSocket message",{context:{stage:"sendMessage"}});throw this.onErrorCallback?.(u),u}}close(){this.authenticated=!1,this.socket&&(this.updateStatus(t.ConnectionStatus.NOT_CONNECTED),this.socket.close(1e3,"Client closed connection"),this.socket=null)}isConnected(){return this.socket?.readyState===WebSocket.OPEN}handleConnected(){this.updateStatus(t.ConnectionStatus.CONNECTED),this.authenticated=!0}}return Ha.WebSocketConnection=i,Ha}var Ra={},S0;function Q0(){if(S0)return Ra;S0=1,Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.SSEConnection=void 0;const A=Eu(),t=Oa(),r=Lt();class i extends A.BaseConnection{conversationId;config;connected=!1;activeStreamController=null;constructor(l){super(),this.config=l,this.conversationId=l.auth.sessionId,this.connect()}connect(){this.updateStatus(t.ConnectionStatus.CONNECTING),this.connected=!0,setTimeout(()=>{this.onOpenCallback?.()},0)}onOpen(l){this.onOpenCallback=l,this.connected&&setTimeout(()=>l(),0)}buildChatUrl(){const l=new URL(this.config.serverUrl);return l.pathname=`${l.pathname.replace(/\/$/,"")}/med-assist/session/${this.config.auth.sessionId}/chat`,l.toString()}sendMessage(l){if(!this.connected){const u=new r.ConnectionError("SSE connection is not open",{context:{stage:"sendMessage"}});this.onErrorCallback?.(u);return}this.activeStreamController?.abort();const c=new AbortController;this.activeStreamController=c,this.streamChat(l,c)}async streamChat(l,c){const u=this.buildChatUrl();try{const f=await fetch(u,{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream","sess-token":this.config.auth.sessionToken,"x-agent-id":this.config.agentId},body:JSON.stringify(l),signal:c.signal});if(!f.ok||!f.body)throw new r.ConnectionError(`SSE chat request failed with status ${f.status}`,{context:{stage:"streamChat",status:f.status}});const h=f.body.getReader(),m=new TextDecoder;let B="";for(;;){const{done:w,value:C}=await h.read();if(w)break;B+=m.decode(C,{stream:!0}),B=this.extractJsonObjects(B)}B.trim().length>0&&this.extractJsonObjects(B)}catch(f){if(c.signal.aborted)return;const h=(0,r.normalizeError)(f,r.ConnectionError,"SSE chat stream failed",{context:{stage:"streamChat"}});this.onErrorCallback?.(h)}finally{this.activeStreamController===c&&(this.activeStreamController=null)}}extractJsonObjects(l){let c=0;for(;c<l.length;){const u=l.indexOf("{",c);if(u===-1)return"";const f=this.findObjectEnd(l,u);if(f===-1)return l.slice(u);const h=l.slice(u,f+1);try{const m=JSON.parse(h);this.handleMessage(m)}catch(m){const B=(0,r.normalizeError)(m,r.MessageError,"Failed to parse incoming SSE object",{context:{stage:"extractJsonObjects",objStr:h}});this.onErrorCallback?.(B)}c=f+1}return""}findObjectEnd(l,c){let u=0,f=!1,h=!1;for(let m=c;m<l.length;m++){const B=l[m];if(f){h?h=!1:B==="\\"?h=!0:B==='"'&&(f=!1);continue}if(B==='"')f=!0;else if(B==="{")u++;else if(B==="}"&&(u--,u===0))return m}return-1}close(){this.connected=!1,this.activeStreamController?.abort(),this.activeStreamController=null,this.updateStatus(t.ConnectionStatus.NOT_CONNECTED)}isConnected(){return this.connected}handleConnected(){this.updateStatus(t.ConnectionStatus.CONNECTED)}}return Ra.SSEConnection=i,Ra}var U0;function F0(){return U0||(U0=1,(function(A){Object.defineProperty(A,"__esModule",{value:!0}),A.ConnectionFactory=A.ConnectionType=void 0;const t=x0(),r=Q0(),i=Lt();A.ConnectionType={SOCKET:"socket",SSE:"sse"};class s{static async createConnection(c,u){switch(c){case A.ConnectionType.SOCKET:return new t.WebSocketConnection(u);case A.ConnectionType.SSE:return new r.SSEConnection(u);default:throw new i.ConnectionError(`Unsupported connection type: ${c}`,{context:{type:c}})}}}A.ConnectionFactory=s})(wu)),wu}var La={},T0;function T2(){if(T0)return La;T0=1,Object.defineProperty(La,"__esModule",{value:!0}),La.getConfig=void 0;const A={WEBSOCKET_URL:"wss://matrix-ws.eka.care/reloaded",BASE_API_URL:"https://matrix.eka.care/reloaded"},t={WEBSOCKET_URL:"wss://matrix-ws.dev.eka.care/reloaded",BASE_API_URL:"https://matrix.dev.eka.care/reloaded"},r={WEBSOCKET_URL:"wss://matrix-ws.dev.eka.care",BASE_API_URL:"https://matrix.dev.eka.care"},i=(s="production")=>s==="development"?t:s==="production"?A:s==="staging"?r:A;return La.getConfig=i,La}var Da={},ka={},I0;function N0(){if(I0)return ka;I0=1,Object.defineProperty(ka,"__esModule",{value:!0}),ka.HttpClient=void 0;const A=Lt();let t=class{baseUrl;headers;timeout;maxRetries;constructor(i){this.baseUrl=i.baseUrl.replace(/\/$/,""),this.timeout=i.timeout||3e4,this.maxRetries=i.maxRetries||3,this.headers={"Content-Type":"application/json",...i.headers},i.authorization&&(this.headers.Authorization=i.authorization)}async request(i,s,l){const c=l?.retries??this.maxRetries;let u;for(let f=0;f<=c;f++)try{const h=this.buildUrl(s,l?.params),m=await fetch(h,{method:i,headers:{...this.headers,...l?.headers},body:l?.body?JSON.stringify(l.body):void 0,signal:AbortSignal.timeout(this.timeout)});return m.ok||await this.handleError(m),m.json()}catch(h){if(u=h,f===c||!(h instanceof TypeError&&h.message==="Failed to fetch"||h instanceof DOMException&&h.name==="AbortError"||h instanceof SyntaxError))break;const B=Math.pow(2,f)*100;await new Promise(w=>setTimeout(w,B))}throw u?u instanceof TypeError&&u.message==="Failed to fetch"?new A.APIError("Network error: Unable to connect to the server. Please check your internet connection.",0,{type:"NETWORK_ERROR",originalError:u.message}):u instanceof DOMException&&u.name==="AbortError"?new A.APIConnectionTimeoutError({message:`Request timed out after ${this.timeout}ms`}):u instanceof SyntaxError?new A.APIError("Invalid response format from server",502,{type:"PARSE_ERROR",originalError:u.message}):u instanceof A.APIError?u:new A.APIError(`Request failed: ${u.message||"Unknown error"}`,500,{type:"UNKNOWN_ERROR",originalError:u}):new A.APIError("Unknown error occurred",500,{type:"UNKNOWN_ERROR"})}async get(i,s,l){return this.request("GET",i,{params:s,...l})}async post(i,s,l){return this.request("POST",i,{body:s,...l})}async put(i,s,l){return this.request("PUT",i,{body:s,...l})}async delete(i,s){return this.request("DELETE",i,{...s})}async patch(i,s,l){return this.request("PATCH",i,{body:s,...l})}buildUrl(i,s){let l=`${this.baseUrl}${i}`;if(s){const c=new URLSearchParams(s).toString();l+=`?${c}`}return l}async handleError(i){let s,l;try{l=await i.json();const c=l,u=c?.error;s=c?.message||c?.msg||u?.msg||u?.message||i.statusText}catch{s=i.statusText}throw A.APIError.generate(i.status,l,s,i.headers)}};return ka.HttpClient=t,ka}var ja={},Ka={},H0;function Il(){if(H0)return Ka;H0=1,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.BaseResource=void 0;let A=class{client;constructor(r){this.client=r}async get(r,i,s){return this.client.get(r,i,s)}async post(r,i,s){return this.client.post(r,i,s)}async put(r,i,s){return this.client.put(r,i,s)}async delete(r,i){return this.client.delete(r,i)}async patch(r,i,s){return this.client.patch(r,i,s)}buildPath(r,i){let s=r;for(const[l,c]of Object.entries(i))s=s.replace(`:${l}`,encodeURIComponent(c));return s}};return Ka.BaseResource=A,Ka}var _0;function M0(){if(_0)return ja;_0=1,Object.defineProperty(ja,"__esModule",{value:!0}),ja.Session=void 0;const A=Il();let t=class extends A.BaseResource{basePath="/med-assist/session";async create(i){return this.post(this.basePath,i)}async retrieve(i){return this.get(`${this.basePath}/${i}`)}async refresh(i,s){return this.get(`${this.basePath}/${i}/refresh`,void 0,{headers:{"x-sess-token":s}})}async feedback(i,s,l,c){return this.put(`${this.basePath}/${i}/messages/${s}/feedback`,{feedback:l,feedback_reason:c})}async callTool(i,s,l,c,u){return this.post(`${this.basePath}/${i}/messages/${l}/tools/${s}`,{tool_params:u},{headers:{"x-sess-token":c}})}};return ja.Session=t,ja}var Va={},O0;function I2(){if(O0)return Va;O0=1,Object.defineProperty(Va,"__esModule",{value:!0}),Va.Config=void 0;const A=Il();let t=class extends A.BaseResource{basePath="/med-assist/agent-config";async retrieve(i){return this.get(`${this.basePath}/${i}`)}};return Va.Config=t,Va}var Ga={},R0;function N2(){if(R0)return Ga;R0=1,Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.VoiceResource=void 0;const A=Il();let t=class Pg extends A.BaseResource{static ICE_SERVERS_PATH="/med-assist/voice/ice-servers";static OFFER_PATH="/med-assist/voice/offer";async getIceServers(i,s){return this.get(Pg.ICE_SERVERS_PATH,{session_id:i,token:s})}async sendOffer(i){return this.post(Pg.OFFER_PATH,i)}};return Ga.VoiceResource=t,Ga}var L0;function D0(){if(L0)return Da;L0=1,Object.defineProperty(Da,"__esModule",{value:!0}),Da.ResourceManager=void 0;const A=N0(),t=M0(),r=Lt(),i=I2(),s=N2();class l{resourceConfig;httpClient;session;config;voiceResource;constructor(u){this.resourceConfig=u,this.httpClient=new A.HttpClient({baseUrl:this.resourceConfig.serverUrl,headers:{"X-agent-id":this.resourceConfig.agentId,"ngrok-skip-browser-warning":"69420",...this.resourceConfig.authorization&&{Authorization:this.resourceConfig.authorization}}}),this.config=new i.Config(this.httpClient),this.session=new t.Session(this.httpClient),this.voiceResource=new s.VoiceResource(this.httpClient)}async createSession(u,f){try{const{profile:h,intent:m,user_location:B,referer:w,...C}=f||{},E={...u&&{user_id:u},...h&&{user_context:h},...(m||Object.keys(C).length>0)&&{session_context:{...m&&{intent:m},...B&&{user_location:B},...C}},...w&&{referer:w}},v=await this.session.create(E);if(!v?.session_id||!v?.session_token)throw new r.APIError("Failed to start session.",500,void 0,void 0);return v}catch(h){throw h instanceof r.APIError?h:new r.APIError("Failed to start session.",500,void 0,void 0)}}async getAgentConfig(){this.config||(this.config=new i.Config(this.httpClient));try{return await this.config.retrieve(this.resourceConfig.agentId)}catch{throw new r.APIError("Failed to get agent config.",500,void 0,void 0)}}async validateSession(u){try{const f=await this.session.retrieve(u);return f.msg&&f.msg==="Session Active"?{expired:!1,active:!0}:{expired:!0,active:!1}}catch(f){if(f instanceof r.APIError)switch(f.status){case 401:return{expired:!0,active:!1};default:throw f}throw f}}async refreshSession(u,f){return await this.session.refresh(u,f)}async sendFeedback(u,f,h,m){return await this.session.feedback(u,f,h,m)}async callTool(u,f,h,m,B){return await this.session.callTool(u,f,h,m,B)}async getVoiceIceServers(u,f){return await this.voiceResource.getIceServers(u,f)}async sendVoiceOffer(u){return await this.voiceResource.sendOffer(u)}}return Da.ResourceManager=l,Da}var za={},bu={},k0;function xu(){return k0||(k0=1,(function(A){Object.defineProperty(A,"__esModule",{value:!0}),A.MULTI_SELECT_ADDITIONAL_OPTION=A.SOCKET_EVENTS=A.SOCKET_CONTENT_TYPES=void 0,A.IsValidSocketMesssage=t,A.SOCKET_CONTENT_TYPES={TEXT:"text",AUDIO:"audio",FILE:"file",TOOL_CALL:"tool",TIPS:"tips",AUDIO_TRANSCRIPT:"audio_transcript",TOOL_START:"tool_start",TOOL_END:"tool_end"},A.SOCKET_EVENTS={PING:"ping",PONG:"pong",CHAT:"chat",STREAM:"stream",AUTH:"auth",END_OF_STREAM:"eos",SYNC:"sync",ERROR:"err",CONNECTION_ESTABLISHED:"conn"},A.MULTI_SELECT_ADDITIONAL_OPTION={NOTA:"none_of_the_above",AOTA:"all_of_the_above"};function t(r){return[A.SOCKET_EVENTS.PING,A.SOCKET_EVENTS.PONG,A.SOCKET_EVENTS.ERROR,A.SOCKET_EVENTS.SYNC,A.SOCKET_EVENTS.CONNECTION_ESTABLISHED,A.SOCKET_EVENTS.CHAT,A.SOCKET_EVENTS.STREAM,A.SOCKET_EVENTS.END_OF_STREAM].includes(r.ev)}})(bu)),bu}var Su={},j0;function H2(){return j0||(j0=1,(function(A){Object.defineProperty(A,"__esModule",{value:!0}),A.Filemanager=A.MAX_FILE_SIZE=void 0;const t=Lt();A.MAX_FILE_SIZE=3145728;class r{pendingFiles=[];pendingMessage="";pendingFormats=[];setFilesForUpload(s,l){this.pendingFiles.length>0&&this.clearPendingFilesState();const c=s.filter(u=>this.validateFile(u));if(c.length===0)throw new t.FileError("File not supported",{context:{stage:"setFilesForUpload"}});this.pendingFiles=c,l&&l.trim()&&(this.pendingMessage=l),this.pendingFormats=c.map(u=>u.type)}getPendingFileState(){return{files:this.pendingFiles,message:this.pendingMessage||"",formats:this.pendingFormats||[]}}async uploadFilesToPresignedUrl(s){let l=[];const c=s.filter(u=>u.url&&u.url.trim());try{if(c.length===0)throw new t.FileError("No valid presigned URLs provided",{context:{stage:"uploadFilesToPresignedUrl"}});if(!this.pendingFiles.length)throw new t.FileError("No files to upload",{context:{stage:"uploadFilesToPresignedUrl"}});for(let u=0;u<c.length;u++){const f=c[u].url,h=await fetch(f,{method:"PUT",body:this.pendingFiles[u],headers:{"Content-Type":this.pendingFiles[u].type,"x-ms-blob-type":"BlockBlob"}});if(!h.ok)throw new t.FileError(`Failed to upload ${this.pendingFiles[u].name} to URL ${u+1}: ${h.status} ${h.statusText}`,{context:{stage:"uploadFilesToPresignedUrl"}});l.push(c[u].id)}return l}catch(u){if(l.length>0)return l;throw(0,t.normalizeError)(u,t.FileError,"Failed to upload files to presigned URL",{context:{stage:"uploadFilesToPresignedUrl"}})}}blobToFile(s,l){return new File([s],l,{type:s.type})}validateFile(s){return["application/pdf","image/jpeg","image/png","image/jpg"].includes(s.type)&&s.size<A.MAX_FILE_SIZE}clearPendingFilesState(){this.pendingFiles=[],this.pendingMessage="",this.pendingFormats=[]}}A.Filemanager=r})(Su)),Su}var en={},K0;function Nl(){if(K0)return en;K0=1,Object.defineProperty(en,"__esModule",{value:!0}),en.SYNAPSE_REALTIME_RESERVED_EVENTS=en.SYNAPSE_REALTIME_ERROR_CODES=en.SYNAPSE_REALTIME_EVENTS=en.SYNAPSE_MESSAGE_TYPES=void 0;const A=xu();return en.SYNAPSE_MESSAGE_TYPES=A.SOCKET_CONTENT_TYPES,en.SYNAPSE_REALTIME_EVENTS={CONNECTED:"connected",DISCONNECTED:"disconnected",PROGRESS_MESSAGE:"progress_message",MESSAGE_CHUNK:"message_chunk",TIPS_MESSAGE:"tips_message",END_OF_STREAM:"end_of_stream",ERROR:"error",TOOL_CALL:"tool_call",AUDIO_TRANSCRIPT:"audio_transcript",TOOL_START:"tool_start",TOOL_END:"tool_end"},en.SYNAPSE_REALTIME_ERROR_CODES={SESSION_INACTIVE:"session_not_found",SESSION_EXPIRED:"session_expired",INVALID_EVENT:"invalid_event",INVALID_CONTENT_TYPE:"invalid_content",PARSING_ERROR:"parsing",FILE_UPLOAD_INPROGRESS:"file_upload_inprogress",TIMEOUT:"timeout",SERVER_ERROR:"server_error",SESSION_TOKEN_MISMATCH:"session_token_mismatch",PROMPT_FETCH_ERROR:"prompt_fetch_error",INVALID_FILE_REQUEST:"invalid_file_request"},en.SYNAPSE_REALTIME_RESERVED_EVENTS={SESSION_EXPIRED:"session_expired"},en}var Pa={},V0;function _2(){if(V0)return Pa;V0=1,Object.defineProperty(Pa,"__esModule",{value:!0}),Pa.AudioManager=void 0;const A=Lt();class t{mediaRecorder=null;mediaStream=null;recordingStartTime=0;autoPauseTimer=null;config;onAudioData=null;onAudioError=null;suppressCallbacks=!1;constructor(i={}){this.config={mimeType:"audio/webm;codecs=opus",audioBitsPerSecond:128e3,maxRecordingDuration:9e5,autoPauseEnabled:!0,...i}}async checkCurrentPermissionState(){if(!navigator.permissions||!navigator.permissions.query)return"prompt";try{const i=await navigator.permissions.query({name:"microphone"});if(i.state==="denied")throw new A.RecordingError("Microphone permission denied",{context:{permissionState:i.state},hint:"Ensure the browser has microphone access enabled for this site."});return i.state}catch(i){if(i instanceof Error&&i.name==="NotSupportedError")return"prompt"}return"prompt"}async start(i,s){try{if(!navigator.mediaDevices)throw new A.RecordingError("Media devices API is not available. This usually means the page is not served over HTTPS or there are browser restrictions.",{context:{feature:"mediaDevices"},hint:"Serve the app over HTTPS and verify browser/device microphone support.",displayMessage:"Microphone access is unavailable."});if(!window.MediaRecorder)throw new A.RecordingError("MediaRecorder is not supported in this browser",{context:{feature:"MediaRecorder"},hint:"Use a browser that supports the MediaRecorder API.",displayMessage:"Microphone access is unavailable."});const l=["audio/mp3","audio/ogg;codecs=opus","audio/mp4","audio/ogg","audio/wav"].filter(c=>MediaRecorder.isTypeSupported(c));if(l.length===0)throw new A.RecordingError("No supported audio formats found in this browser",{context:{requestedTypes:l},hint:"Verify codec support or adjust the requested MIME types.",displayMessage:"Microphone access is unavailable."});if(this.config.mimeType=l[0],await this.checkCurrentPermissionState(),this.onAudioData=i,this.onAudioError=s??null,this.suppressCallbacks=!1,this.mediaStream=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!1,noiseSuppression:!1,autoGainControl:!1,sampleRate:44100,channelCount:1}}),this.mediaRecorder=new MediaRecorder(this.mediaStream,{mimeType:this.config.mimeType,audioBitsPerSecond:this.config.audioBitsPerSecond}),this.mediaRecorder.state!=="inactive")throw new A.RecordingError("MediaRecorder is in an invalid state for start()",{context:{recorderState:this.mediaRecorder.state},displayMessage:"Failed to start recording"});this.setupMediaRecorderEvents(),this.mediaRecorder.start(),this.recordingStartTime=Date.now(),this.config.autoPauseEnabled&&this.setupAutoPauseTimer()}catch(l){throw l instanceof Error&&l.name==="NotAllowedError"?new A.RecordingError("Microphone permission denied",{context:{permissionState:"denied"},hint:"Ensure the browser or device has microphone access enabled for this site/app."}):this.toRecordingError(l,"Failed to start audio recording",{stage:"start"})}}async processAudioChunk(i){try{const s=await this.blobToBase64(i),l=Date.now();if(!this.onAudioData)return;const c={audio:s,format:this.config.mimeType,duration:this.recordingStartTime>0?l-this.recordingStartTime:0,timestamp:this.recordingStartTime>0?this.recordingStartTime:l};this.onAudioData(c)}catch(s){this.handleError(s,{stage:"process_audio_chunk"})}}toRecordingError(i,s,l){if(i instanceof A.RecordingError)return i;if(i instanceof A.SynapseError)return new A.RecordingError(i.message,{cause:i,context:{...i.context,...l},hint:i.hint});const c=i instanceof Error&&i.message?i.message:s;return new A.RecordingError(c,{cause:i,context:l})}handleError(i,s){const l=this.toRecordingError(i,"Unexpected recording error",s);if(this.onAudioError)try{this.onAudioError(l)}catch{}}setupAutoPauseTimer(){this.autoPauseTimer&&clearTimeout(this.autoPauseTimer),this.autoPauseTimer=setTimeout(()=>{this.stop()},this.config.maxRecordingDuration)}setupMediaRecorderEvents(){this.mediaRecorder&&(this.mediaRecorder.ondataavailable=i=>{this.suppressCallbacks||i.data.size<=0||this.processAudioChunk(i.data).catch(s=>this.handleError(s,{stage:"media_recorder_ondataavailable",hasData:i.data.size>0}))},this.mediaRecorder.onstop=async()=>{this.recordingStartTime=0},this.mediaRecorder.onerror=i=>{this.handleError(i.error instanceof Error?i.error:new Error("MediaRecorder encountered an unknown error"),{stage:"media_recorder_onerror"})},this.mediaRecorder.onstart=()=>{})}blobToBase64(i){return new Promise((s,l)=>{const c=new FileReader;c.onload=()=>{if(typeof c.result=="string"){const u=c.result.split(",")[1];s(u)}else l(new A.RecordingError("Failed to convert blob to base64",{context:{stage:"blob_to_base64"}}))},c.onerror=()=>l(new A.RecordingError("FileReader error while converting audio chunk to base64",{cause:c.error??void 0,context:{stage:"blob_to_base64"}})),c.readAsDataURL(i)})}stop(){if(this.mediaRecorder)try{this.autoPauseTimer&&(clearTimeout(this.autoPauseTimer),this.autoPauseTimer=null),this.mediaRecorder.state==="recording"&&this.mediaRecorder.stop(),this.mediaStream&&(this.mediaStream.getTracks().forEach(i=>i.stop()),this.mediaStream=null)}catch(i){throw this.toRecordingError(i,"Failed to stop audio recording",{stage:"stop"})}}cancel(){if(this.mediaRecorder)try{this.suppressCallbacks=!0,this.autoPauseTimer&&(clearTimeout(this.autoPauseTimer),this.autoPauseTimer=null),this.mediaRecorder.ondataavailable=null,this.mediaRecorder.state==="recording"&&this.mediaRecorder.stop(),this.mediaStream&&(this.mediaStream.getTracks().forEach(i=>i.stop()),this.mediaStream=null)}catch(i){throw this.toRecordingError(i,"Failed to cancel audio recording",{stage:"cancel"})}}destroy(){try{this.cancel(),this.mediaRecorder&&(this.mediaRecorder=null),this.mediaStream&&(this.mediaStream.getTracks().forEach(i=>i.stop()),this.mediaStream=null)}catch(i){throw this.toRecordingError(i,"Failed to destroy audio resources",{stage:"destroy"})}}}return Pa.AudioManager=t,Pa}var G0;function z0(){if(G0)return za;G0=1,Object.defineProperty(za,"__esModule",{value:!0}),za.MessageManager=void 0;const A=xu(),t=H2(),r=Nl(),i=_2(),s=Lt();let l=class{connection=null;callbacks=null;fileManager=null;audioManager=null;constructor(u,f){this.connection=u||null,this.callbacks=f||null}handleFileUploadProcess({files:u,message:f,urls:h,tool_declined:m,tool_result:B}){this.fileManager||(this.fileManager=new t.Filemanager);let w;if(u&&u.length>0)this.fileManager.setFilesForUpload(u,f),w={ev:A.SOCKET_EVENTS.CHAT,ct:A.SOCKET_CONTENT_TYPES.FILE,_id:Date.now().toString(),ts:Date.now(),data:{extensions:this.fileManager.getPendingFileState().formats,...m&&{tool_declined:m},...B&&{tool_result:B}}};else if(h&&h.length>0){const C=this.fileManager.getPendingFileState().message;w={ev:A.SOCKET_EVENTS.CHAT,ct:A.SOCKET_CONTENT_TYPES.FILE,_id:Date.now().toString(),ts:Date.now(),data:{urls:h,...C&&{text:C},...m&&{tool_declined:m},...B&&{tool_result:B}}},this.fileManager?.clearPendingFilesState()}return w}sendSocketMessage({message:u,files:f,audio:h,urls:m,tool_declined:B,tool_id:w,tool_result:C,initial_prompts:E}){const v=this.assertConnection("sendSocketChatMessage");let F;if(f&&f.length>0||m&&m.length>0){if(f&&f.length>3){const Q=new s.MessageError("Maximum 3 files are allowed to be sent at a time",{context:{stage:"sendSocketChatMessage"}});throw this.emitError(Q),Q}F=this.handleFileUploadProcess({files:f,message:u,urls:m,tool_declined:B,tool_result:C})}else u?F={ev:A.SOCKET_EVENTS.CHAT,ct:A.SOCKET_CONTENT_TYPES.TEXT,_id:Date.now().toString(),ts:Date.now(),data:{text:u,...B&&{tool_declined:B},...w&&{tool_id:w},...E&&{initial_prompts:E},...C&&{tool_result:C}}}:h&&h?.audio&&h?.format?F={ev:A.SOCKET_EVENTS.CHAT,ct:A.SOCKET_CONTENT_TYPES.AUDIO,_id:Date.now().toString(),ts:Date.now(),data:{audio:h?.audio,format:h?.format,...B&&{tool_declined:B},...C&&{tool_result:C}}}:C&&(F={ev:A.SOCKET_EVENTS.CHAT,ct:A.SOCKET_CONTENT_TYPES.TEXT,_id:Date.now().toString(),ts:Date.now(),data:{text:"",tool_result:C}});if(!F){const Q=new s.MessageError("No message to send",{context:{stage:"sendSocketChatMessage"}});throw this.emitError(Q),Q}v.sendMessage(F)}handleIncomingSocketChatMessage(u){const f=this.assertConnection("handleIncomingSocketChatMessage");switch(u.ct){case A.SOCKET_CONTENT_TYPES.FILE:{u?.data?.urls&&u.data.urls?.length>0&&this.fileManager?.uploadFilesToPresignedUrl(u.data.urls).then(h=>{this.sendSocketMessage({urls:h})}).catch(h=>{const m=this.toFileError(h,"Failed to upload files to presigned URL",{stage:"handleIncomingSocketChatMessage",urls:u.data?.urls?.length});this.emitError(m)});break}case A.SOCKET_CONTENT_TYPES.TEXT:if(u.data.text&&u.data.text.trim()===""&&u._id){const h={data:{text:u.data.text},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.MESSAGE_CHUNK,h)}break;case A.SOCKET_CONTENT_TYPES.TOOL_CALL:if(u?.data?.tool_id&&u._id){const h={data:{...u.data},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.TOOL_CALL,h)}break;case A.SOCKET_CONTENT_TYPES.AUDIO_TRANSCRIPT:if(u?.data?.text){const h={data:{text:u.data.text},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.AUDIO_TRANSCRIPT,h)}break}}handleIncomingSocketStreamMessage(u){const f=this.assertConnection("handleIncomingSocketStreamMessage");switch(u.ct){case A.SOCKET_CONTENT_TYPES.TEXT:if(u?.data?.progress_msg){const w={data:{text:u.data.progress_msg},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.PROGRESS_MESSAGE,w);return}if(u?.data?.text){const w={data:{text:u.data.text},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.MESSAGE_CHUNK,w)}break;case A.SOCKET_CONTENT_TYPES.TIPS:if(u?.data?.tips){const w={data:{tips:u.data.tips},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.TIPS_MESSAGE,w);return}break;case A.SOCKET_CONTENT_TYPES.TOOL_CALL:if(u?.data?.tool_id&&u._id){const w={data:{...u.data},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.TOOL_CALL,w);return}break;case A.SOCKET_CONTENT_TYPES.TOOL_START:const h={data:u?.data,messageId:u._id||Date.now().toString()};f.emit(r.SYNAPSE_REALTIME_EVENTS.TOOL_START,h);break;case A.SOCKET_CONTENT_TYPES.TOOL_END:const m={data:u?.data,messageId:u._id||Date.now().toString()};f.emit(r.SYNAPSE_REALTIME_EVENTS.TOOL_END,m);break;default:const B=new s.MessageError(`Unsupported content type ${u?.ct}`,{context:{stage:"handleIncomingSocketStreamMessage",contentType:u.ct}});throw this.emitError(B),B}}handleDisconnect(u){this.connection?.emit?.(r.SYNAPSE_REALTIME_EVENTS.DISCONNECTED,u)}handleIncomingSocketEndOfStreamMessage(u){this.assertConnection("handleIncomingSocketEndOfStreamMessage").emit(r.SYNAPSE_REALTIME_EVENTS.END_OF_STREAM)}handleIncomingSocketErrorMessage(u){const f=this.assertConnection("handleIncomingSocketErrorMessage");switch(u?.data?.code){case r.SYNAPSE_REALTIME_ERROR_CODES.SESSION_EXPIRED:f.emit(r.SYNAPSE_REALTIME_RESERVED_EVENTS.SESSION_EXPIRED);break;default:const h=new s.MessageError(u?.data?.msg||"Socket error received",{context:{stage:"handleIncomingSocketErrorMessage",errorCode:u?.data?.code},hint:u?.data?.msg,cause:u,displayMessage:u?.data?.msg});f.emit(r.SYNAPSE_REALTIME_EVENTS.ERROR,u)}}sendSocketAuthMessage(u){const f=this.assertConnection("sendSocketAuthMessage"),h={ev:A.SOCKET_EVENTS.AUTH,_id:Date.now().toString(),ts:Date.now(),data:{token:u}};f.sendMessage(h)}sendSocketPingMessage(){const u=this.assertConnection("sendSocketPingMessage"),f={ev:A.SOCKET_EVENTS.PING,_id:Date.now().toString(),ts:Date.now()};u.sendMessage(f)}async startRecording({onChunks:u,onError:f}){if(!u){const h=new s.RecordingError("onChunks is required",{context:{stage:"startRecording"},hint:"onChunks is required"});throw this.emitError(h),h}this.assertConnection("startRecording"),this.audioManager||(this.audioManager=new i.AudioManager);try{await this.audioManager.start(u,h=>{const m=this.toRecordingError(h,"Failed to start audio recording",{stage:"startRecording"});f?.(m),this.emitError(m)})}catch(h){const m=this.toRecordingError(h,"Failed to start audio recording",{stage:"startRecording"});throw f?.(m),this.emitError(m),m}}endRecordingWithSocket(){if(!this.audioManager){const u=new s.RecordingError("Audio manager not set. Call startRecording() first.",{context:{stage:"stopRecording"}});throw this.emitError(u),u}try{this.audioManager.stop()}catch(u){const f=this.toRecordingError(u,"Failed to stop audio recording",{stage:"stopRecording"});throw this.emitError(f),f}}sendSocketPongMessage(){const u=this.assertConnection("sendSocketPongMessage"),f={ev:A.SOCKET_EVENTS.PONG,_id:Date.now().toString(),ts:Date.now()};u.sendMessage(f)}handleConnectionEstablished(){this.connection?.handleConnected(),this.connection?.emit(r.SYNAPSE_REALTIME_EVENTS.CONNECTED)}cleanupMessageServerState(){this.fileManager&&(this.fileManager.clearPendingFilesState(),this.fileManager=null),this.audioManager&&(this.audioManager.destroy(),this.audioManager=null)}emitError(u){this.callbacks?.onError?.(u)}toFileError(u,f,h,m){return(0,s.normalizeError)(u,s.FileError,f,{context:h,hint:m})}toRecordingError(u,f,h,m){return(0,s.normalizeError)(u,s.RecordingError,f,{context:h,hint:m})}assertConnection(u){if(!this.connection){const f=new s.ConnectionError("Connection not set. Please ensure the connection is established before calling this method.",{context:{stage:u}});throw this.emitError(f),f}return this.connection}};return za.MessageManager=l,za}var Ya={},P0;function Y0(){if(P0)return Ya;P0=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.ErrorUtils=void 0;const A=Lt();class t{static isAPIError(i){return i instanceof A.APIError}static isNetworkError(i){return i instanceof A.APIError&&(i.status===0||i.status===void 0)}static isTimeoutError(i){return i instanceof A.APIConnectionTimeoutError}static isAuthError(i){return i instanceof A.UnauthorizedError||i instanceof A.PermissionDeniedError}static isClientError(i){return i instanceof A.APIError&&i.status!==void 0&&i.status>=400&&i.status<500}static isServerError(i){return i instanceof A.APIError&&i.status!==void 0&&i.status>=500}static getUserFriendlyMessage(i){return t.isNetworkError(i)?"Unable to connect to the server. Please check your internet connection.":t.isTimeoutError(i)?"Request timed out. Please try again.":t.isAuthError(i)?"Authentication failed. Please log in again.":t.isServerError(i)?"Server error occurred. Please try again later.":t.isAPIError(i)||i instanceof Error?i.message:"An unexpected error occurred."}static getErrorDetails(i){return t.isAPIError(i)?{type:i.name,message:i.message,code:i.code,status:i.status,timestamp:i.timestamp,stack:i.stack,context:i.context,hint:i.hint}:i instanceof A.SynapseError?{type:i.name,message:i.message,code:i.code,timestamp:i.timestamp,stack:i.stack,context:i.context,hint:i.hint}:i instanceof Error?{type:i.name,message:i.message,stack:i.stack}:{type:"Unknown",message:String(i)}}}return Ya.ErrorUtils=t,Ya}var Xa={},qa={},X0;function M2(){if(X0)return qa;X0=1,Object.defineProperty(qa,"__esModule",{value:!0}),qa.VoiceAudioAnalyser=void 0;const A=256;let t=class{audioCtx=null;animFrame=null;start(i,s,l){const c=new AudioContext;this.audioCtx=c;const u=c.createAnalyser();u.fftSize=A,c.createMediaStreamSource(i).connect(u);const f=new Uint8Array(u.frequencyBinCount),h=()=>{if(!this.audioCtx)return;u.getByteFrequencyData(f);const m=f.reduce((B,w)=>B+w,0)/f.length;l(m>s),this.animFrame=requestAnimationFrame(h)};h()}stop(){this.animFrame!==null&&(cancelAnimationFrame(this.animFrame),this.animFrame=null),this.audioCtx&&(this.audioCtx.close().catch(()=>{}),this.audioCtx=null)}};return qa.VoiceAudioAnalyser=t,qa}var Vr={},q0;function J0(){return q0||(q0=1,Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.VOICE_AGENT_EVENTS=Vr.VOICE_AGENT_STATE=void 0,Vr.VOICE_AGENT_STATE={IDLE:"idle",CONNECTING:"connecting",CONNECTED:"connected",LISTENING:"listening",THINKING:"thinking",SPEAKING:"speaking",MUTED:"muted",DISCONNECTING:"disconnecting",ERROR:"error"},Vr.VOICE_AGENT_EVENTS={STATE_CHANGED:"voice:state_changed",ERROR:"voice:error"}),Vr}var Z0;function O2(){if(Z0)return Xa;Z0=1,Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.VoiceAgent=void 0;const A=yu(),t=M2(),r=Lt(),i=J0(),s=3e3,l=8,c=3600*1e3,u=600;function f(m,B){return new Promise(w=>{if(m.iceGatheringState==="complete"){w();return}const C=setTimeout(w,B);m.onicegatheringstatechange=()=>{m.iceGatheringState==="complete"&&(clearTimeout(C),w())}})}let h=class{config;resourceManager;getCredentials;emitter=new A.EventEmitter;remoteAnalyser=new t.VoiceAudioAnalyser;localAnalyser=new t.VoiceAudioAnalyser;pc=null;pcId=null;dataChannel=null;localStream=null;remoteAudio=null;_state=i.VOICE_AGENT_STATE.IDLE;_isMuted=!1;manuallyDisconnected=!1;_hasConnectionFailureNotified=!1;_userSpeaking=!1;_silenceTimer=null;_cachedIceServers=null;_iceServersCachedAt=0;constructor(B,w,C){this.config=B,this.resourceManager=w,this.getCredentials=C}get state(){return this._state}get isMuted(){return this._isMuted}on(B,w){this.emitter.on(B,w)}off(B,w){this.emitter.off(B,w)}async connect(){const B=await this.getCredentials();this.setState(i.VOICE_AGENT_STATE.CONNECTING),this._hasConnectionFailureNotified=!1;try{if(!navigator.mediaDevices?.getUserMedia)throw new Error("Microphone access is not available. Please ensure you are using a secure (HTTPS) connection.");const w=await navigator.mediaDevices.getUserMedia({audio:{channelCount:1,echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0,sampleRate:16e3},video:!1});this.localStream=w;const C=await this.fetchIceServers(B),E=new RTCPeerConnection({iceServers:C,iceTransportPolicy:"all"});this.pc=E,this.dataChannel=E.createDataChannel("pipecat-events",{ordered:!0}),this.dataChannel.onopen=()=>{},this.dataChannel.onclose=()=>this.handleConnectionFailure(new Error("Data channel closed"),"Voice connection failed"),this.dataChannel.onerror=()=>this.handleConnectionFailure(new Error("Data channel error"),"Voice connection failed"),w.getAudioTracks().forEach(O=>E.addTrack(O,w)),E.ontrack=O=>this.handleRemoteTrack(O),E.onconnectionstatechange=()=>{E.connectionState==="connected"?(this.setState(i.VOICE_AGENT_STATE.LISTENING),this.startLocalAudioAnalysis(w)):(E.connectionState==="failed"||E.connectionState==="closed")&&(this.releaseResources(),this.setState(i.VOICE_AGENT_STATE.IDLE))},E.oniceconnectionstatechange=()=>{(E.iceConnectionState==="connected"||E.iceConnectionState==="completed")&&this._state===i.VOICE_AGENT_STATE.CONNECTING?(this.setState(i.VOICE_AGENT_STATE.LISTENING),this.startLocalAudioAnalysis(w)):E.iceConnectionState==="failed"&&(this.releaseResources(),this.setState(i.VOICE_AGENT_STATE.IDLE))};const v=await E.createOffer();await E.setLocalDescription(v);const F=this.config.iceGatheringTimeoutMs??s;await f(E,F);const Q=O=>({sdp:E.localDescription.sdp,type:E.localDescription.type,pc_id:this.pcId,request_data:{session_id:O.sessionId,token:O.sessionToken}});let N;try{N=await this.resourceManager.sendVoiceOffer(Q(B))}catch(O){if(O instanceof r.APIError&&O.status===401&&this.config.handleRefresh){await this.config.handleRefresh();const j=await this.getCredentials();N=await this.resourceManager.sendVoiceOffer(Q(j))}else throw O}if(!N)throw new Error("No answer received from voice offer");if(this.pcId=N.pc_id,E.signalingState==="closed")return;await E.setRemoteDescription(new RTCSessionDescription({sdp:N.sdp,type:N.type}))}catch(w){this.handleConnectionFailure(w)}}disconnect(){this.manuallyDisconnected=!0,this.setState(i.VOICE_AGENT_STATE.DISCONNECTING),this.releaseResources(),this.setState(i.VOICE_AGENT_STATE.IDLE)}toggleMute(){if(!this.localStream)return;const B=this.localStream.getAudioTracks()[0];if(!B)return;const w=B.enabled;this.localStream.getAudioTracks().forEach(C=>{C.enabled=!w}),this._isMuted=w,this.clearSilenceTimer(),this._userSpeaking=!1,this.setState(w?i.VOICE_AGENT_STATE.MUTED:i.VOICE_AGENT_STATE.LISTENING)}reset(){this.setState(i.VOICE_AGENT_STATE.IDLE)}destroy(){this.releaseResources(),this.emitter.removeAllListeners(),this._state=i.VOICE_AGENT_STATE.IDLE}async fetchIceServers(B){if(this.config.iceServers)return this.config.iceServers;const w=Date.now();if(this._cachedIceServers&&w-this._iceServersCachedAt<c)return this._cachedIceServers;let C;try{C=await this.resourceManager.getVoiceIceServers(B.sessionId,B.sessionToken)}catch(E){if(E instanceof r.APIError&&E.status===401&&this.config.handleRefresh){await this.config.handleRefresh();const v=await this.getCredentials();C=await this.resourceManager.getVoiceIceServers(v.sessionId,v.sessionToken)}else throw E}if(!Array.isArray(C?.ice_servers)||C.ice_servers.length===0)throw new Error("ICE servers response is empty");return this._cachedIceServers=C.ice_servers,this._iceServersCachedAt=Date.now(),this._cachedIceServers}setState(B){this._state=B,this.emitter.emit(i.VOICE_AGENT_EVENTS.STATE_CHANGED,B)}clearSilenceTimer(){this._silenceTimer!==null&&(clearTimeout(this._silenceTimer),this._silenceTimer=null)}handleConnectionFailure(B,w="Voice connection failed"){if(this._hasConnectionFailureNotified||this._state===i.VOICE_AGENT_STATE.DISCONNECTING||this.manuallyDisconnected)return;this._hasConnectionFailureNotified=!0,this.releaseResources(),this.setState(i.VOICE_AGENT_STATE.ERROR);const C={message:w,cause:B};this.emitter.emit(i.VOICE_AGENT_EVENTS.ERROR,C)}releaseResources(){this.remoteAnalyser.stop(),this.localAnalyser.stop(),this.clearSilenceTimer(),this._userSpeaking=!1,this.localStream&&(this.localStream.getTracks().forEach(B=>B.stop()),this.localStream=null),this.dataChannel&&(this.dataChannel.close(),this.dataChannel=null),this.pc&&(this.pc.onconnectionstatechange=null,this.pc.oniceconnectionstatechange=null,this.pc.ontrack=null,this.pc.onicecandidate=null,this.pc.ondatachannel=null,this.pc.close(),this.pc=null),this.pcId=null,this._isMuted=!1,this.remoteAudio&&(this.remoteAudio.srcObject=null)}startLocalAudioAnalysis(B){const w=this.config.speakingThreshold??l;this.localAnalyser.start(B,w,C=>{this._state!==i.VOICE_AGENT_STATE.LISTENING&&this._state!==i.VOICE_AGENT_STATE.THINKING||(C?(this._userSpeaking=!0,this.clearSilenceTimer(),this._state===i.VOICE_AGENT_STATE.THINKING&&this.setState(i.VOICE_AGENT_STATE.LISTENING)):this._userSpeaking&&this._silenceTimer===null&&(this._silenceTimer=setTimeout(()=>{this._silenceTimer=null,this._userSpeaking&&this._state===i.VOICE_AGENT_STATE.LISTENING&&(this._userSpeaking=!1,this.setState(i.VOICE_AGENT_STATE.THINKING))},u)))})}handleRemoteTrack(B){this.remoteAudio||(this.remoteAudio=new Audio,this.remoteAudio.autoplay=!0);const w=B.streams[0];this.remoteAudio.srcObject=w;const C=this.config.speakingThreshold??l;this.remoteAnalyser.start(w,C,E=>{E?(this.clearSilenceTimer(),this._userSpeaking=!1,this._state!==i.VOICE_AGENT_STATE.SPEAKING&&this.setState(i.VOICE_AGENT_STATE.SPEAKING)):this._state===i.VOICE_AGENT_STATE.SPEAKING&&this.setState(i.VOICE_AGENT_STATE.LISTENING)})}};return Xa.VoiceAgent=h,Xa}var W0;function R2(){if(W0)return Na;W0=1,Object.defineProperty(Na,"__esModule",{value:!0}),Na.SynapseSDK=void 0;const A=F0(),t=Oa(),r=T2(),i=D0(),s=z0(),l=Nl(),c=yu(),u=Y0(),f=Lt(),h=xu(),m=O2();class B{connection=null;messageManager;resourceManager;sessionConfig=null;config;connectionType;isRefreshingSession=!1;connectionAttempts=0;sdkEventEmitter=new c.EventEmitter;_voice=null;constructor(C){this.config={...C,environment:C.environment||"production"},this.connectionType=C.connectionType||A.ConnectionType.SOCKET;const E=(0,r.getConfig)(this.config?.environment).BASE_API_URL;this.resourceManager=new i.ResourceManager({agentId:this.config.agentId,serverUrl:this.config.serverUrl||E,...this.config.auth&&{authorization:this.config.auth}})}async startSession(C){try{const E=await this.manageSession(C);return await this.initializeConnection(E),this.setupEventHandlers(),E}catch(E){const v=u.ErrorUtils.getUserFriendlyMessage(E),F=u.ErrorUtils.getErrorDetails(E);if(E instanceof f.APIError&&(E.status===404||E.status===403))throw E;const Q=this.toSessionError(E,v||"Failed to start session",{stage:"startSession",details:F},"Check network connectivity or recheck credentials before retrying.");throw this.emitError(Q),Q}}async sendMessage({message:C,files:E,audio:v,tool_declined:F,tool_id:Q,initial_prompts:N,tool_result:O}){if(!this.connection){const j=new f.ConnectionError("Connection not established. Session may not be initialized.",{context:{stage:"sendChatMessage"},hint:"Call startSession() and wait for connection before sending messages."});throw this.emitError(j),j}switch(this.connectionType){case A.ConnectionType.SOCKET:case A.ConnectionType.SSE:this.messageManager.sendSocketMessage({message:C,files:E,audio:v,...F&&{tool_declined:F},...Q&&{tool_id:Q},...N?.length&&{initial_prompts:N},...O&&Object.keys(O)?.length&&{tool_result:O}});break;default:const j=new f.ConnectionError("Unsupported connection type",{context:{stage:"sendChatMessage",connectionType:this.connectionType}});throw this.emitError(j),j}}async sendFeedback(C,E,v){if(!this.connection){const F=new f.ConnectionError("Connection not established. Session may not be initialized.",{context:{stage:"sendFeedback"},hint:"Call startSession() before attempting to send feedback."});throw this.emitError(F),F}if(!this.sessionConfig?.session_id){const F=new f.SessionError("Session ID not found",{context:{stage:"sendFeedback"},hint:"Call startSession() before attempting to send feedback."});throw this.emitError(F),F}switch(this.connectionType){case A.ConnectionType.SOCKET:case A.ConnectionType.SSE:await this.resourceManager.sendFeedback(this.sessionConfig.session_id,C,E,v);break}}on(C,E){this.sdkEventEmitter.on(C,E)}off(C,E){this.sdkEventEmitter.off(C,E)}getSessionConfig(){if(!this.sessionConfig?.session_id||!this.sessionConfig?.session_token)throw new f.SessionError("Session ID or token not found",{context:{stage:"getSessionConfig"},hint:"Ensure the session API returns both identifiers."});return this.sessionConfig}async callTool(C,E,v){if(!this.connection){const F=new f.ConnectionError("Connection not established. Session may not be initialized.",{context:{stage:"callTool"},hint:"Call startSession() before attempting to call tool."});throw this.emitError(F),F}if(!this.sessionConfig?.session_id||!this.sessionConfig?.session_token){const F=new f.SessionError("Session ID not found",{context:{stage:"callTool"},hint:"Call startSession() before attempting to call tool."});throw this.emitError(F),F}switch(this.connectionType){case A.ConnectionType.SOCKET:case A.ConnectionType.SSE:try{const Q=await this.resourceManager.callTool(this.sessionConfig.session_id,C,E,this.sessionConfig.session_token,v);if(Q.error)throw new f.APIError(Q.error.msg,500,Q.error);let N={data:{...Q.data},messageId:Q._id,timestamp:Q.ts};this.connection.emit(l.SYNAPSE_REALTIME_EVENTS.TOOL_CALL,N)}catch(Q){if(Q instanceof f.APIError&&Q?.status===401)return await this.handleSessionExpiry(),await this.callTool(C,E,v);throw Q}break;default:const F=new f.ConnectionError("Unsupported connection type",{context:{stage:"callTool",connectionType:this.connectionType}});throw this.emitError(F),F}}async startRecording({onChunks:C,onError:E}){if(!this.connection){const v=new f.ConnectionError("Connection not established. Session may not be initialized.",{context:{stage:"sendAudio"},hint:"Call startSession() before attempting to send audio."});throw this.emitError(v),v}switch(this.connectionType){case A.ConnectionType.SOCKET:try{await this.messageManager.startRecording({onChunks:C,onError:E})}catch(F){throw F}break;default:const v=new f.ConnectionError("Unsupported connection type",{context:{stage:"sendAudio",connectionType:this.connectionType}});throw this.emitError(v),v}}endRecording(){if(!this.connection){const C=new f.ConnectionError("Connection not established. Session may not be initialized.",{context:{stage:"endRecording"},hint:"Call startRecording() before attempting to stop recording."});throw this.emitError(C),C}switch(this.connectionType){case A.ConnectionType.SOCKET:this.messageManager.endRecordingWithSocket();break;default:const C=new f.ConnectionError("Unsupported connection type",{context:{stage:"endRecording",connectionType:this.connectionType}});throw this.emitError(C),C}}async getAgentConfig(){return this.resourceManager.getAgentConfig()}isConnected(){return this.connection?.isConnected()??!1}get voice(){return this._voice||(this._voice=new m.VoiceAgent(this.buildVoiceConfig(),this.resourceManager,async()=>{const C=await this.resourceManager.createSession();return{sessionId:C.session_id,sessionToken:C.session_token}})),this._voice}endSession(){this._voice?.destroy(),this._voice=null,this.closeConnection(),this.cleanup()}buildVoiceConfig(){return{offerUrl:`${this.config.serverUrl||(0,r.getConfig)(this.config.environment).BASE_API_URL}/med-assist/voice/offer`,handleRefresh:async()=>{await this.handleSessionExpiry()}}}toClientError(C){return C instanceof f.APIError?{message:C.error?.msg||C.message,error:C.error,code:C.code,status:C.status,context:C.context}:C instanceof f.SynapseError?{message:C.displayMessage||C.message,code:C.code,context:C.context}:C instanceof Error?{message:C.message}:{message:"An unexpected error occurred"}}emitError(C){this.config.callbacks?.onError?.(this.toClientError(C))}toSessionError(C,E,v,F){return(0,f.normalizeError)(C,f.SessionError,E,{context:v,hint:F})}async initializeConnection(C){if(this.closeConnection(),!C.session_id||!C.session_token)throw new f.SessionError("Session ID or token not found",{context:{stage:"initializeConnection"},hint:"Ensure the session API returns both identifiers."});this.sessionConfig=C;const E=(0,r.getConfig)(this.config?.environment),v=this.connectionType===A.ConnectionType.SSE,F=v?E.BASE_API_URL:E.WEBSOCKET_URL,Q=this.config.serverUrl?v?this.config.serverUrl:`wss://${this.config.serverUrl.split("://")[1]}`:null;this.connection=await A.ConnectionFactory.createConnection(this.connectionType,{serverUrl:Q||F,auth:{sessionId:C.session_id,sessionToken:C.session_token},agentId:this.config.agentId,userId:this.config.userId,overrides:this.config.overrides}),this.connectionAttempts++,this.messageManager=new s.MessageManager(this.connection,this.config?.callbacks);const N=this.connection.emit.bind(this.connection);this.connection.emit=(O,...j)=>{N(O,...j),this.sdkEventEmitter.emit(O,...j)}}async manageSession(C){try{if(!C?.session_id)return this.createNewSession();const E=await this.resourceManager.validateSession(C.session_id);if(E.active)return C;if(E.expired)return this.refreshSession(C.session_id,C.session_token);throw new f.APIError("Failed to create session",500,void 0,void 0)}catch(E){if(E instanceof f.APIError){if(E.status===404||E.status===403)throw E}else if(E instanceof f.NotFoundError&&E.status===404)throw E;throw this.toSessionError(E,"Failed to resolve session",{stage:"resolveSession"})}}async refreshSession(C,E){try{return await this.resourceManager.refreshSession(C,E)}catch(v){throw v instanceof f.APIError&&this.emitError(v),this.toSessionError(v,"Failed to refresh session",{stage:"refreshSession",sessionId:C})}}async createNewSession(){return await this.resourceManager.createSession(this.config.userId,this.config.context)}setupEventHandlers(){if(this.connection){switch(this.connectionType){case A.ConnectionType.SOCKET:this.connection.onOpen(()=>{this.onSocketConnectionOpen()}),this.connection.onMessage(C=>{this.onIncomingSocketMessage(C)}),this.connection.onError(C=>{this.onSocketConnectionError(C)}),this.connection.on(l.SYNAPSE_REALTIME_RESERVED_EVENTS.SESSION_EXPIRED,()=>{this.handleSessionExpiry()});break;case A.ConnectionType.SSE:this.connection.onOpen(()=>{this.messageManager.handleConnectionEstablished()}),this.connection.onMessage(C=>{this.onIncomingSocketMessage(C)}),this.connection.onError(C=>{this.onSocketConnectionError(C)}),this.connection.on(l.SYNAPSE_REALTIME_RESERVED_EVENTS.SESSION_EXPIRED,()=>{this.handleSessionExpiry()});break;default:throw new f.ConnectionError("Unsupported connection type",{context:{stage:"setupEventHandlers",connectionType:this.connectionType},hint:"Use ConnectionType.SOCKET or provide a custom handler."})}this.connection.onDisconnect(async C=>{if(C.reason!==t.DisconnectionReason.CLIENT_CLOSED)if(this.connectionAttempts<3&&this.sessionConfig?.session_id&&this.sessionConfig.session_token)try{await this.startSession({session_id:this.sessionConfig.session_id,session_token:this.sessionConfig.session_token})}catch{this.messageManager.handleDisconnect(C)}else this.messageManager.handleDisconnect(C)})}}onSocketConnectionError(C){this.connection?.emit(l.SYNAPSE_REALTIME_EVENTS.ERROR,C);const E=this.toConnectionError(C,"WebSocket connection error",{stage:"onSocketConnectionError"},"Verify network connectivity or attempt to reconnect.");this.emitError(E)}onSocketConnectionOpen(){if(!this.sessionConfig?.session_token){const C=new f.SessionError("Session token not set. Call startSession() first.",{context:{stage:"onSocketConnectionOpen"},hint:"Ensure startSession() completes successfully before socket opens."});throw this.emitError(C),C}this.messageManager.sendSocketAuthMessage(this.sessionConfig.session_token)}onIncomingSocketMessage(C){switch(C.ev){case h.SOCKET_EVENTS.CHAT:this.messageManager.handleIncomingSocketChatMessage(C);break;case h.SOCKET_EVENTS.CONNECTION_ESTABLISHED:this.messageManager.handleConnectionEstablished();break;case h.SOCKET_EVENTS.STREAM:this.messageManager.handleIncomingSocketStreamMessage(C);break;case h.SOCKET_EVENTS.END_OF_STREAM:this.messageManager.handleIncomingSocketEndOfStreamMessage(C);break;case h.SOCKET_EVENTS.PING:this.messageManager.sendSocketPongMessage();break;case h.SOCKET_EVENTS.PONG:this.messageManager.sendSocketPingMessage();break;case h.SOCKET_EVENTS.SYNC:break;case h.SOCKET_EVENTS.ERROR:this.messageManager.handleIncomingSocketErrorMessage(C);break;default:const E=new f.MessageError("Unsupported message type",{context:{stage:"onIncomingSocketMessage",event:C.ev??"unknown"},hint:"Ensure the server is sending supported socket events."});this.emitError(E);return}}async handleSessionExpiry(){if(!this.isRefreshingSession)try{if(this.closeConnection(),!this.sessionConfig?.session_id||!this.sessionConfig?.session_token){const E=new f.SessionError("Session ID or token not found",{context:{stage:"handleSessionExpiry"}});throw this.emitError(E),E}this.isRefreshingSession=!0;const C=await this.refreshSession(this.sessionConfig.session_id,this.sessionConfig.session_token);if(!C.session_id||!C.session_token)throw new f.SessionError("Session refresh failed",{context:{stage:"handleSessionExpiry"}});this.sessionConfig.session_id=C.session_id,this.sessionConfig.session_token=C.session_token,await this.initializeConnection(C),this.setupEventHandlers(),this.config.callbacks?.onSessionRefreshed?.(C)}catch(C){const E=this.toSessionError(C,"Session expired",{stage:"handleSessionExpiry"});this.emitError(E)}finally{this.isRefreshingSession=!1}}toConnectionError(C,E,v,F){return(0,f.normalizeError)(C,f.ConnectionError,E,{context:v,hint:F})}closeConnection(){this.connection&&(this.connection.close(),this.connection=null)}cleanup(){this.connectionAttempts=0,this.sdkEventEmitter?.removeAllListeners?.(),this.messageManager?.cleanupMessageServerState?.()}}return Na.SynapseSDK=B,Na}var Qu={},$0;function L2(){return $0||($0=1,Object.defineProperty(Qu,"__esModule",{value:!0})),Qu}var Ja={},Ap;function D2(){return Ap||(Ap=1,Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.USER_FEEDBACK=void 0,Ja.USER_FEEDBACK={LIKE:"LIKE",DISLIKE:"DISLIKE",NONE:"NONE"}),Ja}var Za={},ep;function k2(){if(ep)return Za;ep=1,Object.defineProperty(Za,"__esModule",{value:!0}),Za.ToolCall=void 0;const A=Il();let t=class extends A.BaseResource{basePath="/med-assist/api-call-tool";async callTool(i,s,l){return this.post(`${this.basePath}?session_id=${i}&tool_name=${s}`,{tool_params:l})}};return Za.ToolCall=t,Za}var tn={},tp;function j2(){if(tp)return tn;tp=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.SYNAPSE_EICITATION_STATUS=tn.SYNAPSE_TOOL_CALLBACK_NAME=tn.SYNAPSE_COMPONENTS=tn.SYNAPSE_TOOL_NAME=void 0;var A;(function(s){s.MOBILE_VERIFICATION="mobile_verification",s.AVAILABILITY_DATES="availability_dates",s.AVAILABILITY_SLOTS="availability_slots",s.DOCTOR_AVAILABILITY="doctor_availability",s.DOCTOR_DETAILS="doctor_details",s.GET_LOCATION="get_location"})(A||(tn.SYNAPSE_TOOL_NAME=A={}));var t;(function(s){s.MOBILE="mobile_number",s.OTP="otp",s.EMAIL="email_address",s.PILL="pills",s.MULTI="multi",s.DOCTOR_CARD="doctor_card",s.CARD="card",s.MEDIA_CARD="media_card"})(t||(tn.SYNAPSE_COMPONENTS=t={}));var r;(function(s){s.DOCTOR_AVAILABILITY="get_doctor_availability",s.AVAILABILITY_DATES="get_available_dates",s.AVAILABILITY_SLOTS="get_available_slots",s.MOBILE_VERIFICATION="verify_mobile_number",s.DOCTOR_DETAILS="get_doctor_details"})(r||(tn.SYNAPSE_TOOL_CALLBACK_NAME=r={}));var i;return(function(s){s.PROGRESS="progress",s.SUCCESS="success",s.FAILURE="failure"})(i||(tn.SYNAPSE_EICITATION_STATUS=i={})),tn}var Uu={},np;function K2(){return np||(np=1,Object.defineProperty(Uu,"__esModule",{value:!0})),Uu}var Wa={},rp;function V2(){return rp||(rp=1,Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.ErrorType=void 0,Wa.ErrorType={NETWORK_ERROR:"NETWORK_ERROR",TIMEOUT_ERROR:"TIMEOUT_ERROR",API_ERROR:"API_ERROR",RATE_LIMIT_ERROR:"RATE_LIMIT_ERROR",SERVER_ERROR:"SERVER_ERROR",PARSE_ERROR:"PARSE_ERROR",UNKNOWN_ERROR:"UNKNOWN_ERROR"}),Wa}var Fu={},ip;function G2(){return ip||(ip=1,Object.defineProperty(Fu,"__esModule",{value:!0})),Fu}var $a={},ap;function z2(){if(ap)return $a;ap=1,Object.defineProperty($a,"__esModule",{value:!0}),$a.SYNAPSE_CONVERSATION=void 0;var A;return(function(t){t.TEXT="text",t.FILE="file",t.AUDIO="audio",t.VOICE="voice"})(A||($a.SYNAPSE_CONVERSATION=A={})),$a}var Gr={},sp;function P2(){return sp||(sp=1,(function(A){var t=Gr&&Gr.__createBinding||(Object.create?(function(i,s,l,c){c===void 0&&(c=l);var u=Object.getOwnPropertyDescriptor(s,l);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return s[l]}}),Object.defineProperty(i,c,u)}):(function(i,s,l,c){c===void 0&&(c=l),i[c]=s[l]})),r=Gr&&Gr.__exportStar||function(i,s){for(var l in i)l!=="default"&&!Object.prototype.hasOwnProperty.call(s,l)&&t(s,i,l)};Object.defineProperty(A,"__esModule",{value:!0}),r(J0(),A)})(Gr)),Gr}var lp;function Y2(){return lp||(lp=1,(function(A){var t=jr&&jr.__createBinding||(Object.create?(function(Q,N,O,j){j===void 0&&(j=O);var K=Object.getOwnPropertyDescriptor(N,O);(!K||("get"in K?!N.__esModule:K.writable||K.configurable))&&(K={enumerable:!0,get:function(){return N[O]}}),Object.defineProperty(Q,j,K)}):(function(Q,N,O,j){j===void 0&&(j=O),Q[j]=N[O]})),r=jr&&jr.__exportStar||function(Q,N){for(var O in Q)O!=="default"&&!Object.prototype.hasOwnProperty.call(N,O)&&t(N,Q,O)};Object.defineProperty(A,"__esModule",{value:!0}),A.SYNAPSE_MESSAGE_TYPES=A.ErrorUtils=A.ErrorType=A.SynapseErrorCode=A.InternalServerError=A.RateLimitError=A.MethodNotAllowedError=A.NotFoundError=A.PermissionDeniedError=A.UnauthorizedError=A.BadRequestError=A.APIConnectionTimeoutError=A.APIUserAbortError=A.APIError=A.SynapseError=A.HttpClient=A.MessageManager=A.ToolCall=A.Session=A.ResourceManager=A.ConnectionType=A.ConnectionFactory=A.SSEConnection=A.WebSocketConnection=A.BaseConnection=A.SynapseSDK=void 0;var i=R2();Object.defineProperty(A,"SynapseSDK",{enumerable:!0,get:function(){return i.SynapseSDK}});var s=Eu();Object.defineProperty(A,"BaseConnection",{enumerable:!0,get:function(){return s.BaseConnection}});var l=x0();Object.defineProperty(A,"WebSocketConnection",{enumerable:!0,get:function(){return l.WebSocketConnection}});var c=Q0();Object.defineProperty(A,"SSEConnection",{enumerable:!0,get:function(){return c.SSEConnection}});var u=F0();Object.defineProperty(A,"ConnectionFactory",{enumerable:!0,get:function(){return u.ConnectionFactory}}),Object.defineProperty(A,"ConnectionType",{enumerable:!0,get:function(){return u.ConnectionType}}),r(Oa(),A);var f=D0();Object.defineProperty(A,"ResourceManager",{enumerable:!0,get:function(){return f.ResourceManager}}),r(L2(),A);var h=M0();Object.defineProperty(A,"Session",{enumerable:!0,get:function(){return h.Session}}),r(D2(),A);var m=k2();Object.defineProperty(A,"ToolCall",{enumerable:!0,get:function(){return m.ToolCall}}),r(j2(),A);var B=z0();Object.defineProperty(A,"MessageManager",{enumerable:!0,get:function(){return B.MessageManager}}),r(Nl(),A),r(K2(),A);var w=N0();Object.defineProperty(A,"HttpClient",{enumerable:!0,get:function(){return w.HttpClient}});var C=Lt();Object.defineProperty(A,"SynapseError",{enumerable:!0,get:function(){return C.SynapseError}}),Object.defineProperty(A,"APIError",{enumerable:!0,get:function(){return C.APIError}}),Object.defineProperty(A,"APIUserAbortError",{enumerable:!0,get:function(){return C.APIUserAbortError}}),Object.defineProperty(A,"APIConnectionTimeoutError",{enumerable:!0,get:function(){return C.APIConnectionTimeoutError}}),Object.defineProperty(A,"BadRequestError",{enumerable:!0,get:function(){return C.BadRequestError}}),Object.defineProperty(A,"UnauthorizedError",{enumerable:!0,get:function(){return C.UnauthorizedError}}),Object.defineProperty(A,"PermissionDeniedError",{enumerable:!0,get:function(){return C.PermissionDeniedError}}),Object.defineProperty(A,"NotFoundError",{enumerable:!0,get:function(){return C.NotFoundError}}),Object.defineProperty(A,"MethodNotAllowedError",{enumerable:!0,get:function(){return C.MethodNotAllowedError}}),Object.defineProperty(A,"RateLimitError",{enumerable:!0,get:function(){return C.RateLimitError}}),Object.defineProperty(A,"InternalServerError",{enumerable:!0,get:function(){return C.InternalServerError}}),Object.defineProperty(A,"SynapseErrorCode",{enumerable:!0,get:function(){return C.SynapseErrorCode}});var E=V2();Object.defineProperty(A,"ErrorType",{enumerable:!0,get:function(){return E.ErrorType}});var v=Y0();Object.defineProperty(A,"ErrorUtils",{enumerable:!0,get:function(){return v.ErrorUtils}}),r(G2(),A);var F=Nl();Object.defineProperty(A,"SYNAPSE_MESSAGE_TYPES",{enumerable:!0,get:function(){return F.SYNAPSE_MESSAGE_TYPES}}),r(z2(),A),r(P2(),A)})(jr)),jr}var hA=Y2();function op(A){var t,r,i="";if(typeof A=="string"||typeof A=="number")i+=A;else if(typeof A=="object")if(Array.isArray(A)){var s=A.length;for(t=0;t<s;t++)A[t]&&(r=op(A[t]))&&(i&&(i+=" "),i+=r)}else for(r in A)A[r]&&(i&&(i+=" "),i+=r);return i}function cp(){for(var A,t,r=0,i="",s=arguments.length;r<s;r++)(A=arguments[r])&&(t=op(A))&&(i&&(i+=" "),i+=t);return i}const X2=(A,t)=>{const r=new Array(A.length+t.length);for(let i=0;i<A.length;i++)r[i]=A[i];for(let i=0;i<t.length;i++)r[A.length+i]=t[i];return r},q2=(A,t)=>({classGroupId:A,validator:t}),up=(A=new Map,t=null,r)=>({nextPart:A,validators:t,classGroupId:r}),Hl="-",fp=[],J2="arbitrary..",Z2=A=>{const t=$2(A),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=A;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return W2(c);const u=c.split(Hl),f=u[0]===""&&u.length>1?1:0;return dp(u,f,t)},getConflictingClassGroupIds:(c,u)=>{if(u){const f=i[c],h=r[c];return f?h?X2(h,f):f:h||fp}return r[c]||fp}}},dp=(A,t,r)=>{if(A.length-t===0)return r.classGroupId;const s=A[t],l=r.nextPart.get(s);if(l){const h=dp(A,t+1,l);if(h)return h}const c=r.validators;if(c===null)return;const u=t===0?A.join(Hl):A.slice(t).join(Hl),f=c.length;for(let h=0;h<f;h++){const m=c[h];if(m.validator(u))return m.classGroupId}},W2=A=>A.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=A.slice(1,-1),r=t.indexOf(":"),i=t.slice(0,r);return i?J2+i:void 0})(),$2=A=>{const{theme:t,classGroups:r}=A;return A4(r,t)},A4=(A,t)=>{const r=up();for(const i in A){const s=A[i];Tu(s,r,i,t)}return r},Tu=(A,t,r,i)=>{const s=A.length;for(let l=0;l<s;l++){const c=A[l];e4(c,t,r,i)}},e4=(A,t,r,i)=>{if(typeof A=="string"){t4(A,t,r);return}if(typeof A=="function"){n4(A,t,r,i);return}r4(A,t,r,i)},t4=(A,t,r)=>{const i=A===""?t:hp(t,A);i.classGroupId=r},n4=(A,t,r,i)=>{if(i4(A)){Tu(A(i),t,r,i);return}t.validators===null&&(t.validators=[]),t.validators.push(q2(r,A))},r4=(A,t,r,i)=>{const s=Object.entries(A),l=s.length;for(let c=0;c<l;c++){const[u,f]=s[c];Tu(f,hp(t,u),r,i)}},hp=(A,t)=>{let r=A;const i=t.split(Hl),s=i.length;for(let l=0;l<s;l++){const c=i[l];let u=r.nextPart.get(c);u||(u=up(),r.nextPart.set(c,u)),r=u}return r},i4=A=>"isThemeGetter"in A&&A.isThemeGetter===!0,a4=A=>{if(A<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),i=Object.create(null);const s=(l,c)=>{r[l]=c,t++,t>A&&(t=0,i=r,r=Object.create(null))};return{get(l){let c=r[l];if(c!==void 0)return c;if((c=i[l])!==void 0)return s(l,c),c},set(l,c){l in r?r[l]=c:s(l,c)}}},Iu="!",gp=":",s4=[],pp=(A,t,r,i,s)=>({modifiers:A,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:i,isExternal:s}),l4=A=>{const{prefix:t,experimentalParseClassName:r}=A;let i=s=>{const l=[];let c=0,u=0,f=0,h;const m=s.length;for(let v=0;v<m;v++){const F=s[v];if(c===0&&u===0){if(F===gp){l.push(s.slice(f,v)),f=v+1;continue}if(F==="/"){h=v;continue}}F==="["?c++:F==="]"?c--:F==="("?u++:F===")"&&u--}const B=l.length===0?s:s.slice(f);let w=B,C=!1;B.endsWith(Iu)?(w=B.slice(0,-1),C=!0):B.startsWith(Iu)&&(w=B.slice(1),C=!0);const E=h&&h>f?h-f:void 0;return pp(l,C,w,E)};if(t){const s=t+gp,l=i;i=c=>c.startsWith(s)?l(c.slice(s.length)):pp(s4,!1,c,void 0,!0)}if(r){const s=i;i=l=>r({className:l,parseClassName:s})}return i},o4=A=>{const t=new Map;return A.orderSensitiveModifiers.forEach((r,i)=>{t.set(r,1e6+i)}),r=>{const i=[];let s=[];for(let l=0;l<r.length;l++){const c=r[l],u=c[0]==="[",f=t.has(c);u||f?(s.length>0&&(s.sort(),i.push(...s),s=[]),i.push(c)):s.push(c)}return s.length>0&&(s.sort(),i.push(...s)),i}},c4=A=>({cache:a4(A.cacheSize),parseClassName:l4(A),sortModifiers:o4(A),...Z2(A)}),u4=/\s+/,f4=(A,t)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:l}=t,c=[],u=A.trim().split(u4);let f="";for(let h=u.length-1;h>=0;h-=1){const m=u[h],{isExternal:B,modifiers:w,hasImportantModifier:C,baseClassName:E,maybePostfixModifierPosition:v}=r(m);if(B){f=m+(f.length>0?" "+f:f);continue}let F=!!v,Q=i(F?E.substring(0,v):E);if(!Q){if(!F){f=m+(f.length>0?" "+f:f);continue}if(Q=i(E),!Q){f=m+(f.length>0?" "+f:f);continue}F=!1}const N=w.length===0?"":w.length===1?w[0]:l(w).join(":"),O=C?N+Iu:N,j=O+Q;if(c.indexOf(j)>-1)continue;c.push(j);const K=s(Q,F);for(let T=0;T<K.length;++T){const L=K[T];c.push(O+L)}f=m+(f.length>0?" "+f:f)}return f},d4=(...A)=>{let t=0,r,i,s="";for(;t<A.length;)(r=A[t++])&&(i=mp(r))&&(s&&(s+=" "),s+=i);return s},mp=A=>{if(typeof A=="string")return A;let t,r="";for(let i=0;i<A.length;i++)A[i]&&(t=mp(A[i]))&&(r&&(r+=" "),r+=t);return r},h4=(A,...t)=>{let r,i,s,l;const c=f=>{const h=t.reduce((m,B)=>B(m),A());return r=c4(h),i=r.cache.get,s=r.cache.set,l=u,u(f)},u=f=>{const h=i(f);if(h)return h;const m=f4(f,r);return s(f,m),m};return l=c,(...f)=>l(d4(...f))},g4=[],je=A=>{const t=r=>r[A]||g4;return t.isThemeGetter=!0,t},Bp=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Cp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,p4=/^\d+\/\d+$/,m4=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,B4=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,C4=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,w4=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,y4=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wi=A=>p4.test(A),RA=A=>!!A&&!Number.isNaN(Number(A)),er=A=>!!A&&Number.isInteger(Number(A)),Nu=A=>A.endsWith("%")&&RA(A.slice(0,-1)),Sn=A=>m4.test(A),E4=()=>!0,v4=A=>B4.test(A)&&!C4.test(A),wp=()=>!1,b4=A=>w4.test(A),x4=A=>y4.test(A),S4=A=>!yA(A)&&!EA(A),Q4=A=>yi(A,xp,wp),yA=A=>Bp.test(A),zr=A=>yi(A,Sp,v4),Hu=A=>yi(A,N4,RA),yp=A=>yi(A,vp,wp),U4=A=>yi(A,bp,x4),_l=A=>yi(A,Qp,b4),EA=A=>Cp.test(A),As=A=>Ei(A,Sp),F4=A=>Ei(A,H4),Ep=A=>Ei(A,vp),T4=A=>Ei(A,xp),I4=A=>Ei(A,bp),Ml=A=>Ei(A,Qp,!0),yi=(A,t,r)=>{const i=Bp.exec(A);return i?i[1]?t(i[1]):r(i[2]):!1},Ei=(A,t,r=!1)=>{const i=Cp.exec(A);return i?i[1]?t(i[1]):r:!1},vp=A=>A==="position"||A==="percentage",bp=A=>A==="image"||A==="url",xp=A=>A==="length"||A==="size"||A==="bg-size",Sp=A=>A==="length",N4=A=>A==="number",H4=A=>A==="family-name",Qp=A=>A==="shadow",_4=h4(()=>{const A=je("color"),t=je("font"),r=je("text"),i=je("font-weight"),s=je("tracking"),l=je("leading"),c=je("breakpoint"),u=je("container"),f=je("spacing"),h=je("radius"),m=je("shadow"),B=je("inset-shadow"),w=je("text-shadow"),C=je("drop-shadow"),E=je("blur"),v=je("perspective"),F=je("aspect"),Q=je("ease"),N=je("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],K=()=>[...j(),EA,yA],T=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto","contain","none"],R=()=>[EA,yA,f],_=()=>[wi,"full","auto",...R()],X=()=>[er,"none","subgrid",EA,yA],nA=()=>["auto",{span:["full",er,EA,yA]},er,EA,yA],z=()=>[er,"auto",EA,yA],lA=()=>["auto","min","max","fr",EA,yA],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],eA=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...R()],W=()=>[wi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],AA=()=>[A,EA,yA],gA=()=>[...j(),Ep,yp,{position:[EA,yA]}],I=()=>["no-repeat",{repeat:["","x","y","space","round"]}],U=()=>["auto","cover","contain",T4,Q4,{size:[EA,yA]}],M=()=>[Nu,As,zr],S=()=>["","none","full",h,EA,yA],aA=()=>["",RA,As,zr],uA=()=>["solid","dashed","dotted","double"],fA=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pA=()=>[RA,Nu,Ep,yp],LA=()=>["","none",E,EA,yA],IA=()=>["none",RA,EA,yA],FA=()=>["none",RA,EA,yA],fe=()=>[RA,EA,yA],de=()=>[wi,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Sn],breakpoint:[Sn],color:[E4],container:[Sn],"drop-shadow":[Sn],ease:["in","out","in-out"],font:[S4],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Sn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Sn],shadow:[Sn],spacing:["px",RA],text:[Sn],"text-shadow":[Sn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",wi,yA,EA,F]}],container:["container"],columns:[{columns:[RA,yA,EA,u]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:K()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:_()}],"inset-x":[{"inset-x":_()}],"inset-y":[{"inset-y":_()}],start:[{start:_()}],end:[{end:_()}],top:[{top:_()}],right:[{right:_()}],bottom:[{bottom:_()}],left:[{left:_()}],visibility:["visible","invisible","collapse"],z:[{z:[er,"auto",EA,yA]}],basis:[{basis:[wi,"full","auto",u,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[RA,wi,"auto","initial","none",yA]}],grow:[{grow:["",RA,EA,yA]}],shrink:[{shrink:["",RA,EA,yA]}],order:[{order:[er,"first","last","none",EA,yA]}],"grid-cols":[{"grid-cols":X()}],"col-start-end":[{col:nA()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":X()}],"row-start-end":[{row:nA()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":lA()}],"auto-rows":[{"auto-rows":lA()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...eA(),"normal"]}],"justify-self":[{"justify-self":["auto",...eA()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...eA(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...eA(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...eA(),"baseline"]}],"place-self":[{"place-self":["auto",...eA()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[u,"screen",...W()]}],"min-w":[{"min-w":[u,"screen","none",...W()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[c]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",r,As,zr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,EA,Hu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Nu,yA]}],"font-family":[{font:[F4,yA,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,EA,yA]}],"line-clamp":[{"line-clamp":[RA,"none",EA,Hu]}],leading:[{leading:[l,...R()]}],"list-image":[{"list-image":["none",EA,yA]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",EA,yA]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:AA()}],"text-color":[{text:AA()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...uA(),"wavy"]}],"text-decoration-thickness":[{decoration:[RA,"from-font","auto",EA,zr]}],"text-decoration-color":[{decoration:AA()}],"underline-offset":[{"underline-offset":[RA,"auto",EA,yA]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",EA,yA]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",EA,yA]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:gA()}],"bg-repeat":[{bg:I()}],"bg-size":[{bg:U()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},er,EA,yA],radial:["",EA,yA],conic:[er,EA,yA]},I4,U4]}],"bg-color":[{bg:AA()}],"gradient-from-pos":[{from:M()}],"gradient-via-pos":[{via:M()}],"gradient-to-pos":[{to:M()}],"gradient-from":[{from:AA()}],"gradient-via":[{via:AA()}],"gradient-to":[{to:AA()}],rounded:[{rounded:S()}],"rounded-s":[{"rounded-s":S()}],"rounded-e":[{"rounded-e":S()}],"rounded-t":[{"rounded-t":S()}],"rounded-r":[{"rounded-r":S()}],"rounded-b":[{"rounded-b":S()}],"rounded-l":[{"rounded-l":S()}],"rounded-ss":[{"rounded-ss":S()}],"rounded-se":[{"rounded-se":S()}],"rounded-ee":[{"rounded-ee":S()}],"rounded-es":[{"rounded-es":S()}],"rounded-tl":[{"rounded-tl":S()}],"rounded-tr":[{"rounded-tr":S()}],"rounded-br":[{"rounded-br":S()}],"rounded-bl":[{"rounded-bl":S()}],"border-w":[{border:aA()}],"border-w-x":[{"border-x":aA()}],"border-w-y":[{"border-y":aA()}],"border-w-s":[{"border-s":aA()}],"border-w-e":[{"border-e":aA()}],"border-w-t":[{"border-t":aA()}],"border-w-r":[{"border-r":aA()}],"border-w-b":[{"border-b":aA()}],"border-w-l":[{"border-l":aA()}],"divide-x":[{"divide-x":aA()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":aA()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...uA(),"hidden","none"]}],"divide-style":[{divide:[...uA(),"hidden","none"]}],"border-color":[{border:AA()}],"border-color-x":[{"border-x":AA()}],"border-color-y":[{"border-y":AA()}],"border-color-s":[{"border-s":AA()}],"border-color-e":[{"border-e":AA()}],"border-color-t":[{"border-t":AA()}],"border-color-r":[{"border-r":AA()}],"border-color-b":[{"border-b":AA()}],"border-color-l":[{"border-l":AA()}],"divide-color":[{divide:AA()}],"outline-style":[{outline:[...uA(),"none","hidden"]}],"outline-offset":[{"outline-offset":[RA,EA,yA]}],"outline-w":[{outline:["",RA,As,zr]}],"outline-color":[{outline:AA()}],shadow:[{shadow:["","none",m,Ml,_l]}],"shadow-color":[{shadow:AA()}],"inset-shadow":[{"inset-shadow":["none",B,Ml,_l]}],"inset-shadow-color":[{"inset-shadow":AA()}],"ring-w":[{ring:aA()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:AA()}],"ring-offset-w":[{"ring-offset":[RA,zr]}],"ring-offset-color":[{"ring-offset":AA()}],"inset-ring-w":[{"inset-ring":aA()}],"inset-ring-color":[{"inset-ring":AA()}],"text-shadow":[{"text-shadow":["none",w,Ml,_l]}],"text-shadow-color":[{"text-shadow":AA()}],opacity:[{opacity:[RA,EA,yA]}],"mix-blend":[{"mix-blend":[...fA(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fA()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[RA]}],"mask-image-linear-from-pos":[{"mask-linear-from":pA()}],"mask-image-linear-to-pos":[{"mask-linear-to":pA()}],"mask-image-linear-from-color":[{"mask-linear-from":AA()}],"mask-image-linear-to-color":[{"mask-linear-to":AA()}],"mask-image-t-from-pos":[{"mask-t-from":pA()}],"mask-image-t-to-pos":[{"mask-t-to":pA()}],"mask-image-t-from-color":[{"mask-t-from":AA()}],"mask-image-t-to-color":[{"mask-t-to":AA()}],"mask-image-r-from-pos":[{"mask-r-from":pA()}],"mask-image-r-to-pos":[{"mask-r-to":pA()}],"mask-image-r-from-color":[{"mask-r-from":AA()}],"mask-image-r-to-color":[{"mask-r-to":AA()}],"mask-image-b-from-pos":[{"mask-b-from":pA()}],"mask-image-b-to-pos":[{"mask-b-to":pA()}],"mask-image-b-from-color":[{"mask-b-from":AA()}],"mask-image-b-to-color":[{"mask-b-to":AA()}],"mask-image-l-from-pos":[{"mask-l-from":pA()}],"mask-image-l-to-pos":[{"mask-l-to":pA()}],"mask-image-l-from-color":[{"mask-l-from":AA()}],"mask-image-l-to-color":[{"mask-l-to":AA()}],"mask-image-x-from-pos":[{"mask-x-from":pA()}],"mask-image-x-to-pos":[{"mask-x-to":pA()}],"mask-image-x-from-color":[{"mask-x-from":AA()}],"mask-image-x-to-color":[{"mask-x-to":AA()}],"mask-image-y-from-pos":[{"mask-y-from":pA()}],"mask-image-y-to-pos":[{"mask-y-to":pA()}],"mask-image-y-from-color":[{"mask-y-from":AA()}],"mask-image-y-to-color":[{"mask-y-to":AA()}],"mask-image-radial":[{"mask-radial":[EA,yA]}],"mask-image-radial-from-pos":[{"mask-radial-from":pA()}],"mask-image-radial-to-pos":[{"mask-radial-to":pA()}],"mask-image-radial-from-color":[{"mask-radial-from":AA()}],"mask-image-radial-to-color":[{"mask-radial-to":AA()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":j()}],"mask-image-conic-pos":[{"mask-conic":[RA]}],"mask-image-conic-from-pos":[{"mask-conic-from":pA()}],"mask-image-conic-to-pos":[{"mask-conic-to":pA()}],"mask-image-conic-from-color":[{"mask-conic-from":AA()}],"mask-image-conic-to-color":[{"mask-conic-to":AA()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:gA()}],"mask-repeat":[{mask:I()}],"mask-size":[{mask:U()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",EA,yA]}],filter:[{filter:["","none",EA,yA]}],blur:[{blur:LA()}],brightness:[{brightness:[RA,EA,yA]}],contrast:[{contrast:[RA,EA,yA]}],"drop-shadow":[{"drop-shadow":["","none",C,Ml,_l]}],"drop-shadow-color":[{"drop-shadow":AA()}],grayscale:[{grayscale:["",RA,EA,yA]}],"hue-rotate":[{"hue-rotate":[RA,EA,yA]}],invert:[{invert:["",RA,EA,yA]}],saturate:[{saturate:[RA,EA,yA]}],sepia:[{sepia:["",RA,EA,yA]}],"backdrop-filter":[{"backdrop-filter":["","none",EA,yA]}],"backdrop-blur":[{"backdrop-blur":LA()}],"backdrop-brightness":[{"backdrop-brightness":[RA,EA,yA]}],"backdrop-contrast":[{"backdrop-contrast":[RA,EA,yA]}],"backdrop-grayscale":[{"backdrop-grayscale":["",RA,EA,yA]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[RA,EA,yA]}],"backdrop-invert":[{"backdrop-invert":["",RA,EA,yA]}],"backdrop-opacity":[{"backdrop-opacity":[RA,EA,yA]}],"backdrop-saturate":[{"backdrop-saturate":[RA,EA,yA]}],"backdrop-sepia":[{"backdrop-sepia":["",RA,EA,yA]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",EA,yA]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[RA,"initial",EA,yA]}],ease:[{ease:["linear","initial",Q,EA,yA]}],delay:[{delay:[RA,EA,yA]}],animate:[{animate:["none",N,EA,yA]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,EA,yA]}],"perspective-origin":[{"perspective-origin":K()}],rotate:[{rotate:IA()}],"rotate-x":[{"rotate-x":IA()}],"rotate-y":[{"rotate-y":IA()}],"rotate-z":[{"rotate-z":IA()}],scale:[{scale:FA()}],"scale-x":[{"scale-x":FA()}],"scale-y":[{"scale-y":FA()}],"scale-z":[{"scale-z":FA()}],"scale-3d":["scale-3d"],skew:[{skew:fe()}],"skew-x":[{"skew-x":fe()}],"skew-y":[{"skew-y":fe()}],transform:[{transform:[EA,yA,"","none","gpu","cpu"]}],"transform-origin":[{origin:K()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:de()}],"translate-x":[{"translate-x":de()}],"translate-y":[{"translate-y":de()}],"translate-z":[{"translate-z":de()}],"translate-none":["translate-none"],accent:[{accent:AA()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:AA()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",EA,yA]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",EA,yA]}],fill:[{fill:["none",...AA()]}],"stroke-w":[{stroke:[RA,As,zr,Hu]}],stroke:[{stroke:["none",...AA()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function mA(...A){return _4(cp(A))}function vi(A){if(!A&&A!==0)return"";const t=A instanceof Date?A:new Date(typeof A=="number"?A:Number(A)||A);return Number.isNaN(t.getTime())?"":t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}const M4=A=>{switch(A){case hA.SYNAPSE_COMPONENTS.DOCTOR_CARD:case hA.SYNAPSE_COMPONENTS.CARD:return!0;default:return!1}},O4=A=>new Promise(t=>setTimeout(t,A)),Up=b.forwardRef(({className:A,children:t,...r},i)=>g.jsxs(C0,{ref:i,className:mA("relative overflow-hidden",A),...r,children:[g.jsx(U2,{className:"h-full w-full rounded-[inherit] overscroll-contain",children:t}),g.jsx(Fp,{}),g.jsx(F2,{})]}));Up.displayName=C0.displayName;const Fp=b.forwardRef(({className:A,orientation:t="vertical",...r},i)=>g.jsx(mu,{ref:i,orientation:t,className:mA("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",A),...r,children:g.jsx(d0,{className:"relative flex-1 rounded-full bg-border"})}));Fp.displayName=mu.displayName;var R4=Symbol.for("react.lazy"),Ol=Zg[" use ".trim().toString()];function L4(A){return typeof A=="object"&&A!==null&&"then"in A}function Tp(A){return A!=null&&typeof A=="object"&&"$$typeof"in A&&A.$$typeof===R4&&"_payload"in A&&L4(A._payload)}function Ip(A){const t=k4(A),r=b.forwardRef((i,s)=>{let{children:l,...c}=i;Tp(l)&&typeof Ol=="function"&&(l=Ol(l._payload));const u=b.Children.toArray(l),f=u.find(K4);if(f){const h=f.props.children,m=u.map(B=>B===f?b.Children.count(h)>1?b.Children.only(null):b.isValidElement(h)?h.props.children:null:B);return g.jsx(t,{...c,ref:s,children:b.isValidElement(h)?b.cloneElement(h,void 0,m):null})}return g.jsx(t,{...c,ref:s,children:l})});return r.displayName=`${A}.Slot`,r}var D4=Ip("Slot");function k4(A){const t=b.forwardRef((r,i)=>{let{children:s,...l}=r;if(Tp(s)&&typeof Ol=="function"&&(s=Ol(s._payload)),b.isValidElement(s)){const c=G4(s),u=V4(l,s.props);return s.type!==b.Fragment&&(u.ref=i?gu(i,c):c),b.cloneElement(s,u)}return b.Children.count(s)>1?b.Children.only(null):null});return t.displayName=`${A}.SlotClone`,t}var j4=Symbol("radix.slottable");function K4(A){return b.isValidElement(A)&&typeof A.type=="function"&&"__radixId"in A.type&&A.type.__radixId===j4}function V4(A,t){const r={...t};for(const i in t){const s=A[i],l=t[i];/^on[A-Z]/.test(i)?s&&l?r[i]=(...u)=>{const f=l(...u);return s(...u),f}:s&&(r[i]=s):i==="style"?r[i]={...s,...l}:i==="className"&&(r[i]=[s,l].filter(Boolean).join(" "))}return{...A,...r}}function G4(A){let t=Object.getOwnPropertyDescriptor(A.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?A.ref:(t=Object.getOwnPropertyDescriptor(A,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?A.props.ref:A.props.ref||A.ref)}const Np=A=>typeof A=="boolean"?`${A}`:A===0?"0":A,Hp=cp,z4=((A,t)=>r=>{var i;if(t?.variants==null)return Hp(A,r?.class,r?.className);const{variants:s,defaultVariants:l}=t,c=Object.keys(s).map(h=>{const m=r?.[h],B=l?.[h];if(m===null)return null;const w=Np(m)||Np(B);return s[h][w]}),u=r&&Object.entries(r).reduce((h,m)=>{let[B,w]=m;return w===void 0||(h[B]=w),h},{}),f=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((h,m)=>{let{class:B,className:w,...C}=m;return Object.entries(C).every(E=>{let[v,F]=E;return Array.isArray(F)?F.includes({...l,...u}[v]):{...l,...u}[v]===F})?[...h,B,w]:h},[]);return Hp(A,c,f,r?.class,r?.className)})("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),jA=b.forwardRef(({className:A,variant:t,size:r,asChild:i=!1,...s},l)=>{const c=i?D4:"button";return g.jsx(c,{className:mA(z4({variant:t,size:r,className:A})),ref:l,...s})});jA.displayName="Button";const P4=A=>A.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Y4=A=>A.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,i)=>i?i.toUpperCase():r.toLowerCase()),_p=A=>{const t=Y4(A);return t.charAt(0).toUpperCase()+t.slice(1)},Mp=(...A)=>A.filter((t,r,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===r).join(" ").trim(),X4=A=>{for(const t in A)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var q4={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const J4=b.forwardRef(({color:A="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:l,iconNode:c,...u},f)=>b.createElement("svg",{ref:f,...q4,width:t,height:t,stroke:A,strokeWidth:i?Number(r)*24/Number(t):r,className:Mp("lucide",s),...!l&&!X4(u)&&{"aria-hidden":"true"},...u},[...c.map(([h,m])=>b.createElement(h,m)),...Array.isArray(l)?l:[l]]));const JA=(A,t)=>{const r=b.forwardRef(({className:i,...s},l)=>b.createElement(J4,{ref:l,iconNode:t,className:Mp(`lucide-${P4(_p(A))}`,`lucide-${A}`,i),...s}));return r.displayName=_p(A),r};const Z4=JA("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);const Op=JA("building-2",[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]]);const W4=JA("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);const $4=JA("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);const _u=JA("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const es=JA("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const Rp=JA("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);const Lp=JA("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const Ab=JA("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const eb=JA("dollar-sign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);const tb=JA("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);const nb=JA("euro",[["path",{d:"M4 10h12",key:"1y6xl8"}],["path",{d:"M4 14h9",key:"1loblj"}],["path",{d:"M19 6a7.7 7.7 0 0 0-5.2-2A7.9 7.9 0 0 0 6 12c0 4.4 3.5 8 7.8 8 2 0 3.8-.8 5.2-2",key:"1j6lzo"}]]);const rb=JA("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);const ib=JA("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const ab=JA("indian-rupee",[["path",{d:"M6 3h12",key:"ggurg9"}],["path",{d:"M6 8h12",key:"6g4wlu"}],["path",{d:"m6 13 8.5 8",key:"u1kupk"}],["path",{d:"M6 13h3",key:"wdp6ag"}],["path",{d:"M9 13c6.667 0 6.667-10 0-10",key:"1nkvk2"}]]);const sb=JA("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);const lb=JA("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);const Rl=JA("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);const ob=JA("map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);const cb=JA("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]);const Dp=JA("message-square-plus",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]]);const ub=JA("mic-off",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]]);const Mu=JA("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]);const fb=JA("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]]);const db=JA("phone-off",[["path",{d:"M10.1 13.9a14 14 0 0 0 3.732 2.668 1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 18 18 0 0 1-12.728-5.272",key:"1wngk7"}],["path",{d:"M22 2 2 22",key:"y4kqgn"}],["path",{d:"M4.76 13.582A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 .244.473",key:"10hv5p"}]]);const hb=JA("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const gb=JA("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);const kp=JA("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);const jp=JA("thumbs-up",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);const Kp=JA("thumbs-down",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);const pb=JA("ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]);const mb=JA("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const ts=JA("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Vp=A=>{let t;const r=new Set,i=(h,m)=>{const B=typeof h=="function"?h(t):h;if(!Object.is(B,t)){const w=t;t=m??(typeof B!="object"||B===null)?B:Object.assign({},t,B),r.forEach(C=>C(t,w))}},s=()=>t,u={setState:i,getState:s,getInitialState:()=>f,subscribe:h=>(r.add(h),()=>r.delete(h))},f=t=A(i,s,u);return u},Bb=(A=>A?Vp(A):Vp),Cb=A=>A;function wb(A,t=Cb){const r=Ta.useSyncExternalStore(A.subscribe,Ta.useCallback(()=>t(A.getState()),[A,t]),Ta.useCallback(()=>t(A.getInitialState()),[A,t]));return Ta.useDebugValue(r),r}const Gp=A=>{const t=Bb(A),r=i=>wb(t,i);return Object.assign(r,t),r},yb=(A=>A?Gp(A):Gp);function zp(A,t){let r;try{r=A()}catch{return}return{getItem:s=>{var l;const c=f=>f===null?null:JSON.parse(f,void 0),u=(l=r.getItem(s))!=null?l:null;return u instanceof Promise?u.then(c):c(u)},setItem:(s,l)=>r.setItem(s,JSON.stringify(l,void 0)),removeItem:s=>r.removeItem(s)}}const Ou=A=>t=>{try{const r=A(t);return r instanceof Promise?r:{then(i){return Ou(i)(r)},catch(i){return this}}}catch(r){return{then(i){return this},catch(i){return Ou(i)(r)}}}},Eb=(A,t)=>(r,i,s)=>{let l={storage:zp(()=>localStorage),partialize:v=>v,version:0,merge:(v,F)=>({...F,...v}),...t},c=!1;const u=new Set,f=new Set;let h=l.storage;if(!h)return A((...v)=>{r(...v)},i,s);const m=()=>{const v=l.partialize({...i()});return h.setItem(l.name,{state:v,version:l.version})},B=s.setState;s.setState=(v,F)=>(B(v,F),m());const w=A((...v)=>(r(...v),m()),i,s);s.getInitialState=()=>w;let C;const E=()=>{var v,F;if(!h)return;c=!1,u.forEach(N=>{var O;return N((O=i())!=null?O:w)});const Q=((F=l.onRehydrateStorage)==null?void 0:F.call(l,(v=i())!=null?v:w))||void 0;return Ou(h.getItem.bind(h))(l.name).then(N=>{if(N)if(typeof N.version=="number"&&N.version!==l.version){if(l.migrate){const O=l.migrate(N.state,N.version);return O instanceof Promise?O.then(j=>[!0,j]):[!0,O]}}else return[!1,N.state];return[!1,void 0]}).then(N=>{var O;const[j,K]=N;if(C=l.merge(K,(O=i())!=null?O:w),r(C,!0),j)return m()}).then(()=>{Q?.(C,void 0),C=i(),c=!0,f.forEach(N=>N(C))}).catch(N=>{Q?.(void 0,N)})};return s.persist={setOptions:v=>{l={...l,...v},v.storage&&(h=v.storage)},clearStorage:()=>{h?.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>E(),hasHydrated:()=>c,onHydrate:v=>(u.add(v),()=>{u.delete(v)}),onFinishHydration:v=>(f.add(v),()=>{f.delete(v)})},l.skipHydration||E(),C||w},bt={USER:"user",ASSISTANT:"assistant"};var Ce=(A=>(A.IDLE="idle",A.LISTENING="listening",A.ERROR="error",A.PROCESSING="processing",A.TRANSCRIBING="transcribing",A))(Ce||{}),qe=(A=>(A.CONNECTED="connected",A.NOT_CONNECTED="not_connected",A.CONNECTING="connecting",A))(qe||{});let tr="";const vb=A=>{tr=`med-assist-store-${A}`},Pp={sessionId:"",sessionToken:"",isStreaming:!1,recordingStatus:Ce.IDLE,isWaitingForResponse:!1,error:null,isTimeoutError:!1,startNewConnection:!1,showRetryButton:!1,chats:{},inlineText:null,isRefreshingSession:!1,ConnectionStatus:qe.CONNECTING,streamingTimeoutId:null,responseTimeoutId:null,lastStreamingActivity:null,progressMessage:null,fileUploadPerSession:0,elicitationState:{},toastMessage:null},qA=yb()(Eb((A,t)=>({sessionId:"",setSessionId:r=>A({sessionId:r}),sessionToken:"",setSessionToken:r=>A({sessionToken:r}),initialMessage:null,setInitialMessage:r=>A({initialMessage:r}),agentId:"",setAgentId:r=>A({agentId:r}),userId:"",setUserId:r=>A({userId:r}),context:null,setContext:r=>A({context:r}),connectionStatus:qe.CONNECTING,setConnectionStatus:r=>A({connectionStatus:r}),isStreaming:!1,setIsStreaming:r=>A({isStreaming:r}),isWaitingForResponse:!1,setIsWaitingForResponse:r=>A({isWaitingForResponse:r}),progressMessage:null,setProgressMessage:r=>A({progressMessage:r}),recordingStatus:Ce.IDLE,setRecordingStatus:r=>A({recordingStatus:r}),startNewConnection:!1,setStartNewConnection:r=>A({startNewConnection:r}),fileUploadPerSession:0,setFileUploadPerSession:r=>A({fileUploadPerSession:r}),elicitationState:{},setElicitationState:r=>A({elicitationState:r}),upsertElicitationState:(r,i)=>{const s=t().elicitationState;A({elicitationState:{...s,[r]:i}})},toastMessage:null,setToastMessage:r=>A({toastMessage:r}),inlineText:null,setInlineText:r=>A({inlineText:r}),isBotIconAnimating:!1,setIsBotIconAnimating:r=>A({isBotIconAnimating:r}),isMobile:!1,setIsMobile:r=>A({isMobile:r}),displayMode:"widget",setDisplayMode:r=>A({displayMode:r}),toggleDisplayMode:()=>A({displayMode:t().displayMode==="full"?"widget":"full"}),initialDisplayMode:"widget",setInitialDisplayMode:r=>A({initialDisplayMode:r}),chats:{},addMessageToSession:(r,i)=>{A(s=>({chats:{...s.chats,[r]:[...s.chats[r]||[],i]}}))},updateMessageInSession:(r,i,s)=>A(l=>({chats:{...l.chats,[r]:(l.chats[r]||[]).map(c=>c.id===i?{...c,...s}:c)}})),getMessagesForSession:r=>t().chats[r]||[],clearMessagesForSession:r=>A(i=>({chats:{...i.chats,[r]:[]}})),clearAllChats:()=>A({chats:{}}),error:null,setError:r=>A({error:r}),clearError:()=>A({error:null,isTimeoutError:!1,showRetryButton:!1,startNewConnection:!1}),showRetryButton:!1,setShowRetryButton:r=>A({showRetryButton:r}),isTimeoutError:!1,setTimeoutError:r=>A({isTimeoutError:r}),clearSession:async()=>{A(Pp),await sessionStorage.removeItem(tr||`med-assist-store-${t().agentId}`)},streamingTimeoutId:null,setStreamingTimeoutId:r=>A({streamingTimeoutId:r}),clearStreamingTimeout:()=>{const r=t();r.streamingTimeoutId&&(clearTimeout(r.streamingTimeoutId),A({streamingTimeoutId:null}))},responseTimeoutId:null,setResponseTimeoutId:r=>A({responseTimeoutId:r}),clearResponseTimeout:()=>{const r=t();r.responseTimeoutId&&(clearTimeout(r.responseTimeoutId),A({responseTimeoutId:null}))},lastStreamingActivity:null,setLastStreamingActivity:r=>A({lastStreamingActivity:r})}),{name:"med-assist-store",storage:zp(()=>({getItem:()=>tr?sessionStorage.getItem(tr):null,setItem:(A,t)=>{tr&&sessionStorage.setItem(tr,t)},removeItem:()=>{tr&&sessionStorage.removeItem(tr)}})),partialize:A=>({agentId:A.agentId,userId:A.userId,context:A.context,chats:A.chats,sessionId:A.sessionId,sessionToken:A.sessionToken,initialMessage:A.initialMessage,connectionStatus:A.connectionStatus,elicitationState:A.elicitationState})})),bb=A=>{const t=`med-assist-store-${A}`;let r=null;try{const i=sessionStorage.getItem(t);if(i){const s=JSON.parse(i);s?.state&&(r=s.state)}}catch{}qA.setState(Pp),r&&qA.setState(r)},Ru=b.createContext(null),xb=({children:A})=>{const[t,r]=b.useState(null);return g.jsx(Ru.Provider,{value:{synapse:t,setSynapse:r},children:A})},Sb=()=>{const A=b.useContext(Ru);if(!A)throw new Error("useSynapse must be used within a SynapseProvider");return A.synapse},Qb=()=>{const A=b.useContext(Ru);if(!A)throw new Error("useSynapseSetter must be used within a SynapseProvider");return A.setSynapse},Ub=()=>{const[A,t]=b.useState(hA.VOICE_AGENT_STATE.IDLE),[r,i]=b.useState(!1),s=Sb(),{setError:l}=qA();b.useEffect(()=>{if(!s)return;const m=s.voice,B=C=>{t(C)},w=()=>{l({title:"Voice connection failed. Please try again."})};return m.on(hA.VOICE_AGENT_EVENTS.STATE_CHANGED,B),m.on(hA.VOICE_AGENT_EVENTS.ERROR,w),()=>{m.off(hA.VOICE_AGENT_EVENTS.STATE_CHANGED,B),m.off(hA.VOICE_AGENT_EVENTS.ERROR,w)}},[s,l]);const c=b.useCallback(async()=>{if(!s){l({title:"Voice connection failed. Please try again."});return}await s.voice.connect()},[s,l]),u=b.useCallback(()=>{s?.voice.disconnect(),r&&i(!1)},[s]),f=b.useCallback(()=>{s?.voice.reset(),r&&i(!1)},[s]),h=b.useCallback(()=>{i(m=>!m),s?.voice.toggleMute()},[s]);return{state:A,isMuted:r,connect:c,disconnect:u,reset:f,toggleMute:h}},Pr=b.forwardRef(({className:A,...t},r)=>g.jsx("div",{ref:r,className:mA("rounded-xl bg-elicitationBg text-card-foreground shadow",A),...t}));Pr.displayName="Card";const Lu=b.forwardRef(({className:A,...t},r)=>g.jsx("div",{ref:r,className:mA("flex flex-col space-y-1.5 p-6",A),...t}));Lu.displayName="CardHeader";const Yp=b.forwardRef(({className:A,...t},r)=>g.jsx("div",{ref:r,className:mA("font-semibold leading-none tracking-tight",A),...t}));Yp.displayName="CardTitle";const Fb=b.forwardRef(({className:A,...t},r)=>g.jsx("div",{ref:r,className:mA("text-sm text-muted-foreground",A),...t}));Fb.displayName="CardDescription";const Ll=b.forwardRef(({className:A,...t},r)=>g.jsx("div",{ref:r,className:mA("p-6 pt-0",A),...t}));Ll.displayName="CardContent";const Xp=b.forwardRef(({className:A,...t},r)=>g.jsx("div",{ref:r,className:mA("flex items-center p-6 pt-0",A),...t}));Xp.displayName="CardFooter";function Tb(A,t=[]){let r=[];function i(l,c){const u=b.createContext(c);u.displayName=l+"Context";const f=r.length;r=[...r,c];const h=B=>{const{scope:w,children:C,...E}=B,v=w?.[A]?.[f]||u,F=b.useMemo(()=>E,Object.values(E));return g.jsx(v.Provider,{value:F,children:C})};h.displayName=l+"Provider";function m(B,w){const C=w?.[A]?.[f]||u,E=b.useContext(C);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${B}\` must be used within \`${l}\``)}return[h,m]}const s=()=>{const l=r.map(c=>b.createContext(c));return function(u){const f=u?.[A]||l;return b.useMemo(()=>({[`__scope${A}`]:{...u,[A]:f}}),[u,f])}};return s.scopeName=A,[i,Ib(s,...t)]}function Ib(...A){const t=A[0];if(A.length===1)return t;const r=()=>{const i=A.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(l){const c=i.reduce((u,{useScope:f,scopeName:h})=>{const B=f(l)[`__scope${h}`];return{...u,...B}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return r.scopeName=t.scopeName,r}var Nb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Du=Nb.reduce((A,t)=>{const r=Ip(`Primitive.${t}`),i=b.forwardRef((s,l)=>{const{asChild:c,...u}=s,f=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(f,{...u,ref:l})});return i.displayName=`Primitive.${t}`,{...A,[t]:i}},{}),ku={exports:{}},ju={};var qp;function Hb(){if(qp)return ju;qp=1;var A=xl();function t(B,w){return B===w&&(B!==0||1/B===1/w)||B!==B&&w!==w}var r=typeof Object.is=="function"?Object.is:t,i=A.useState,s=A.useEffect,l=A.useLayoutEffect,c=A.useDebugValue;function u(B,w){var C=w(),E=i({inst:{value:C,getSnapshot:w}}),v=E[0].inst,F=E[1];return l(function(){v.value=C,v.getSnapshot=w,f(v)&&F({inst:v})},[B,C,w]),s(function(){return f(v)&&F({inst:v}),B(function(){f(v)&&F({inst:v})})},[B]),c(C),C}function f(B){var w=B.getSnapshot;B=B.value;try{var C=w();return!r(B,C)}catch{return!0}}function h(B,w){return w()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:u;return ju.useSyncExternalStore=A.useSyncExternalStore!==void 0?A.useSyncExternalStore:m,ju}var Jp;function _b(){return Jp||(Jp=1,ku.exports=Hb()),ku.exports}var Mb=_b();function Ob(){return Mb.useSyncExternalStore(Rb,()=>!0,()=>!1)}function Rb(){return()=>{}}var Ku="Avatar",[Lb]=Tb(Ku),[Db,Zp]=Lb(Ku),Wp=b.forwardRef((A,t)=>{const{__scopeAvatar:r,...i}=A,[s,l]=b.useState("idle");return g.jsx(Db,{scope:r,imageLoadingStatus:s,onImageLoadingStatusChange:l,children:g.jsx(Du.span,{...i,ref:t})})});Wp.displayName=Ku;var $p="AvatarImage",Am=b.forwardRef((A,t)=>{const{__scopeAvatar:r,src:i,onLoadingStatusChange:s=()=>{},...l}=A,c=Zp($p,r),u=kb(i,l),f=Ar(h=>{s(h),c.onImageLoadingStatusChange(h)});return $n(()=>{u!=="idle"&&f(u)},[u,f]),u==="loaded"?g.jsx(Du.img,{...l,ref:t,src:i}):null});Am.displayName=$p;var em="AvatarFallback",tm=b.forwardRef((A,t)=>{const{__scopeAvatar:r,delayMs:i,...s}=A,l=Zp(em,r),[c,u]=b.useState(i===void 0);return b.useEffect(()=>{if(i!==void 0){const f=window.setTimeout(()=>u(!0),i);return()=>window.clearTimeout(f)}},[i]),c&&l.imageLoadingStatus!=="loaded"?g.jsx(Du.span,{...s,ref:t}):null});tm.displayName=em;function nm(A,t){return A?t?(A.src!==t&&(A.src=t),A.complete&&A.naturalWidth>0?"loaded":"loading"):"error":"idle"}function kb(A,{referrerPolicy:t,crossOrigin:r}){const i=Ob(),s=b.useRef(null),l=i?(s.current||(s.current=new window.Image),s.current):null,[c,u]=b.useState(()=>nm(l,A));return $n(()=>{u(nm(l,A))},[l,A]),$n(()=>{const f=B=>()=>{u(B)};if(!l)return;const h=f("loaded"),m=f("error");return l.addEventListener("load",h),l.addEventListener("error",m),t&&(l.referrerPolicy=t),typeof r=="string"&&(l.crossOrigin=r),()=>{l.removeEventListener("load",h),l.removeEventListener("error",m)}},[l,r,t]),c}var rm=Wp,im=Am,am=tm;const Vu=b.forwardRef(({className:A,...t},r)=>g.jsx(rm,{ref:r,className:mA("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",A),...t}));Vu.displayName=rm.displayName;const sm=b.forwardRef(({className:A,...t},r)=>g.jsx(im,{ref:r,className:mA("aspect-square h-full w-full",A),...t}));sm.displayName=im.displayName;const Gu=b.forwardRef(({className:A,...t},r)=>g.jsx(am,{ref:r,className:mA("flex h-full w-full items-center justify-center rounded-full bg-muted",A),...t}));Gu.displayName=am.displayName;const lm=b.createContext(!1);function jb({enabled:A,children:t}){return g.jsx(lm.Provider,{value:A,children:t})}function Kb(){return b.useContext(lm)}const om="(max-width: 768px), (pointer: coarse)",cm=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i;function Vb(){if(typeof window>"u")return!1;const A=window.matchMedia?.(om)?.matches??!1,t=cm.test(navigator?.userAgent??"");return A||t}function um(){const[A,t]=b.useState(Vb);return b.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(om),i=cm.test(navigator?.userAgent??""),s=()=>t(r.matches||i);return s(),r.addEventListener("change",s),()=>r.removeEventListener("change",s)},[]),A}function Gb({onClose:A,showCloseButton:t=!0,title:r,titleImg:i,tagline:s,iconUrl:l,startNewConversation:c,voiceAgentState:u="idle",headerTinted:f=!1,onToggleDisplayMode:h}){const m=um(),w=Kb()&&!m,C=qA(_=>_.displayMode)==="full",E=qA(_=>_.initialDisplayMode)==="full",F=(C?!1:f)?"text-primary-foreground":"text-foreground",Q=qA(_=>_.connectionStatus),[N,O]=b.useState(!1),j=b.useRef(null),K=b.useMemo(()=>u==="connected"||u==="connecting"||u==="listening"||u==="speaking"||u==="thinking",[u]),T=b.useCallback(()=>{N||(O(!0),j.current&&clearTimeout(j.current),j.current=setTimeout(()=>{j.current=null,O(!1)},3e3),c())},[N,c]);b.useEffect(()=>{Q!==hA.ConnectionStatus.CONNECTED&&(O(!0),j.current&&clearTimeout(j.current),j.current=setTimeout(()=>{j.current=null,O(!1)},3e3))},[Q]);const R=(()=>{switch(Q){case hA.ConnectionStatus.CONNECTED:return{dotColor:"bg-green-500",text:s||"Online",textColor:"text-green-600"};case hA.ConnectionStatus.CONNECTING:return{dotColor:"bg-amber-500",text:"Connecting",textColor:"text-amber-600"};case hA.ConnectionStatus.NOT_CONNECTED:return{dotColor:"bg-red-500",text:"Not Connected",textColor:"text-red-600"};default:return{dotColor:"bg-text-tertiary",text:"Not Connected",textColor:"text-text-secondary"}}})();return g.jsx("div",{className:"px-6 py-3",children:g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsxs("div",{className:"relative flex-shrink-0",children:[g.jsx(Vu,{className:"w-12 h-12 bg-gradient-to-br from-primary to-primary flex-shrink-0 shadow-md ring-0",children:g.jsx(Gu,{className:"text-primary-foreground font-bold text-lg bg-transparent",children:l?g.jsx("img",{src:l,alt:"Bot Icon",className:"w-12 h-12 rounded-full object-cover"}):g.jsx("span",{className:"text-primary-foreground font-bold text-lg bg-transparent",children:"MC"})})}),g.jsx("div",{className:mA("absolute bottom-0 right-0 w-3.5 h-3.5 rounded-full border-2 border-white shadow-sm",R.dotColor,Q===hA.ConnectionStatus.CONNECTING&&"animate-pulse")})]}),g.jsxs("div",{className:"flex flex-col",children:[i?g.jsx("img",{src:i,alt:"",className:"h-6 object-contain"}):g.jsx("p",{className:mA("text-lg font-semibold",F),children:r||"Health Assist"}),g.jsx("div",{className:"flex items-center gap-1.5",children:g.jsx("span",{className:"text-xs font-medium",style:{color:"var(--header-tagline)"},children:R.text})})]})]}),g.jsxs("div",{className:mA("flex items-center",!w&&"gap-2"),children:[!K&&g.jsx(jA,{type:"button",variant:"ghost",size:"icon",title:"Start New Chat",onClick:T,disabled:N,className:mA("h-8 w-8 p-1.5 hover:bg-primary hover:text-primary-foreground rounded-full transition-all duration-200 disabled:opacity-60 disabled:pointer-events-none",F),children:g.jsx(Dp,{className:"w-5 h-5"})}),w&&g.jsx(jA,{onClick:h,type:"button",variant:"ghost",size:"icon",title:C?"Exit fullscreen":"Enter fullscreen",className:mA("h-8 w-8 hover:bg-primary hover:text-primary-foreground rounded-full transition-all duration-200",F),children:C?g.jsx(fb,{className:"w-8 h-8"}):g.jsx(cb,{className:"w-8 h-8"})}),t&&!E&&g.jsx(jA,{onClick:A,type:"button",variant:"ghost",size:"icon",title:"Close",className:mA("h-8 w-8 hover:bg-primary hover:text-primary-foreground rounded-full transition-all duration-200",F),children:g.jsx(ts,{className:"w-8 h-8"})})]})]})})}const zu=5,zb=10*1024*1024,Dl={width:384,height:600},kl=20,Pb=150;function Yb({defaultPosition:A,enabled:t=!0,onDragStart:r,onDragEnd:i}={}){const s=b.useCallback(()=>typeof window>"u"?{x:0,y:0}:{x:window.innerWidth-Dl.width-kl,y:window.innerHeight-Dl.height-kl},[]),[l,c]=b.useState(()=>A??s()),[u,f]=b.useState(!1),h=b.useRef({x:0,y:0}),m=b.useRef(null),B=b.useRef(!1);b.useEffect(()=>{t||(B.current=!1)},[t]),b.useLayoutEffect(()=>{!t||B.current||typeof window>"u"||(c(A||s()),B.current=!0)},[t,A,s]),b.useEffect(()=>{if(!t||typeof window>"u")return;let v=null;const F=()=>{c(N=>{const O=Math.max(0,window.innerWidth-Dl.width-kl),j=Math.max(0,window.innerHeight-Dl.height-kl),K=Math.max(0,Math.min(N.x,O)),T=Math.max(0,Math.min(N.y,j));return K===N.x&&T===N.y?N:{x:K,y:T}})},Q=()=>{v!==null&&clearTimeout(v),v=setTimeout(F,Pb)};return window.addEventListener("resize",Q),()=>{window.removeEventListener("resize",Q),v!==null&&clearTimeout(v)}},[t]);const w=b.useCallback(v=>{if(!t)return;if(!v.target.closest(".synapse-chat-widget-header")){f(!1);return}v.preventDefault(),f(!0);const Q=m.current;if(Q){const N=Q.getBoundingClientRect();h.current={x:v.clientX-N.left,y:v.clientY-N.top}}else h.current={x:v.clientX-l.x,y:v.clientY-l.y};r?.()},[t,l.x,l.y,r]),C=b.useCallback(v=>{if(!t||!u)return;const F=v.clientX-h.current.x,Q=v.clientY-h.current.y,N=window.innerWidth-(m.current?.offsetWidth||0),O=window.innerHeight-(m.current?.offsetHeight||0),j=Math.max(0,Math.min(F,N)),K=Math.max(0,Math.min(Q,O));c({x:j,y:K})},[u,t]),E=b.useCallback(()=>{!t||!u||(f(!1),i?.())},[u,i]);return b.useEffect(()=>{if(!t)return;const v=m.current;if(v)return v.addEventListener("mousedown",w),()=>{v.removeEventListener("mousedown",w)}},[t,w]),b.useEffect(()=>{if(u)return document.addEventListener("mousemove",C),document.addEventListener("mouseup",E),document.body.style.cursor="grabbing",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",E),document.body.style.cursor="",document.body.style.userSelect=""}},[u,C,E]),{position:l,isDragging:u,elementRef:m,setPosition:c}}const Pu="#6B5CE0",jl={background:"#F0F0F0",backgroundImage:void 0,primary:Pu,textColor:"black"},Xb="rgba(0, 0, 0, 0.4)",qb="24px";function Jb(A){if(A==="dark")return"white";if(A==="light")return"black"}function Zb(A){const t=A?.primary??A?.primaryColor??jl.primary,r=A?.textColor??Jb(A?.mode);return{background:A?.background??jl.background,backgroundImage:A?.backgroundImage??jl.backgroundImage,primary:t,primaryColor:t,textColor:r??jl.textColor,mode:A?.mode,headerTinted:A?.headerTinted,secondaryColor:A?.secondaryColor,tertiaryColor:A?.tertiaryColor}}function Wb(A){A=A.replace("#","");const t=parseInt(A.substring(0,2),16)/255,r=parseInt(A.substring(2,4),16)/255,i=parseInt(A.substring(4,6),16)/255,s=Math.max(t,r,i),l=Math.min(t,r,i);let c=0,u=0;const f=(s+l)/2;if(s!==l){const m=s-l;switch(u=f>.5?m/(2-s-l):m/(s+l),s){case t:c=((r-i)/m+(r<i?6:0))/6;break;case r:c=((i-t)/m+2)/6;break;case i:c=((t-r)/m+4)/6;break}}c=Math.round(c*360),u=Math.round(u*100);const h=Math.round(f*100);return`${c} ${u}% ${h}%`}function $b(A){const t=A.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);if(!t)throw new Error("Invalid RGB format");const r=parseInt(t[1],10)/255,i=parseInt(t[2],10)/255,s=parseInt(t[3],10)/255,l=Math.max(r,i,s),c=Math.min(r,i,s);let u=0,f=0;const h=(l+c)/2;if(l!==c){const B=l-c;switch(f=h>.5?B/(2-l-c):B/(l+c),l){case r:u=((i-s)/B+(i<s?6:0))/6;break;case i:u=((s-r)/B+2)/6;break;case s:u=((r-i)/B+4)/6;break}}u=Math.round(u*360),f=Math.round(f*100);const m=Math.round(h*100);return`${u} ${f}% ${m}%`}function Ax(A){const t=A.match(/hsl\((\d+),\s*(\d+)%,\s*(\d+)%\)/);if(!t)throw new Error("Invalid HSL format");return`${t[1]} ${t[2]}% ${t[3]}%`}function Yu(A){if(!A||typeof A!="string")throw new Error("Color must be a non-empty string");const t=A.trim();if(t.startsWith("#"))return Wb(t);if(t.startsWith("rgb"))return $b(t);if(t.startsWith("hsl"))return Ax(t);if(/^\d+\s+\d+%\s+\d+%$/.test(t))return t;throw new Error(`Unsupported color format: ${A}`)}function fm(A){const t=A.match(/(\d+)\s+(\d+)%\s+(\d+)%/);return t?parseInt(t[3],10)/100:.5}function Xu(A){return fm(A)>.5?"0 0% 9%":"0 0% 98%"}function ex(A){const t=A.match(/(\d+)\s+(\d+)%\s+(\d+)%/);if(!t)return"0 0% 96%";const r=t[1],i=Math.max(0,parseInt(t[2],10)-5);return`${r} ${i}% 96%`}function tx(A){const t=A.match(/(\d+)\s+(\d+)%\s+(\d+)%/);if(!t)return{50:"262 83% 98%",100:"262 83% 96%",200:"262 83% 92%",300:"262 83% 85%",400:"262 83% 75%",500:"262 83% 58%",600:"262 83% 50%",700:"262 83% 40%",800:"262 83% 30%",900:"262 83% 20%"};const r=parseInt(t[1],10),i=parseInt(t[2],10),s=parseInt(t[3],10);return{50:`${r} ${Math.max(0,i-20)}% ${Math.min(98,s+40)}%`,100:`${r} ${Math.max(0,i-15)}% ${Math.min(96,s+35)}%`,200:`${r} ${Math.max(0,i-10)}% ${Math.min(92,s+30)}%`,300:`${r} ${Math.max(0,i-5)}% ${Math.min(85,s+20)}%`,400:`${r} ${i}% ${Math.min(75,s+10)}%`,500:`${r} ${i}% ${s}%`,600:`${r} ${Math.min(100,i+5)}% ${Math.max(50,s-10)}%`,700:`${r} ${Math.min(100,i+10)}% ${Math.max(40,s-20)}%`,800:`${r} ${Math.min(100,i+15)}% ${Math.max(30,s-30)}%`,900:`${r} ${Math.min(100,i+20)}% ${Math.max(20,s-40)}%`}}function dm(A,t){const r=t.primary??Pu,i=t.textColor??"black",s=!!t.backgroundImage,l=t.mode==="dark"||i==="white",c=t.headerTinted??!1,u=(C,E)=>{const v=A instanceof ShadowRoot?A.host:A;v instanceof HTMLElement&&v.style.setProperty(C,E)};let f;try{f=Yu(r)}catch{f=Yu(Pu)}u("--primary",f),u("--primary-foreground",Xu(f)),u("--ring",f),u("--border-primary",f);const h=tx(f);for(const[C,E]of Object.entries(h))u(`--primary-${C}`,E);const m=Xu(f);if(u("--color-on-primary",m),s)u("--background","0 0% 0% / 0"),u("--widget-bg-overlay","transparent");else{const C=l?"#191919":"#F0F0F0";try{u("--background",Yu(C))}catch{u("--background",l?"0 0% 10%":"0 0% 94.1%")}u("--widget-bg-overlay",`hsl(${f} / ${c?.05:.1})`)}if(l?u("--bot-message-bg","var(--black-600)"):u("--bot-message-bg","var(--white-600)"),l?u("--card","0 0% 0% / 0.6"):u("--card","0 0% 100% / 0.6"),u("--bot-message-border",ex(l?"0 0% 100%":"0 0% 9%")),l?(u("--foreground","0 0% 100%"),u("--card-foreground","0 0% 100%"),u("--popover-foreground","0 0% 100%"),u("--muted-foreground","0 0% 70%"),u("--normal-text-color","var(--white-1000)")):(u("--foreground","0 0% 0%"),u("--card-foreground","0 0% 0%"),u("--popover-foreground","0 0% 0%"),u("--muted-foreground","0 0% 30%"),u("--normal-text-color","var(--black-1000)")),s?(u("--header-bg","transparent"),u("--header-stroke",l?"var(--white-200)":"var(--black-200)")):c?(u("--header-bg",`hsl(${f})`),u("--header-stroke",`hsl(${f} / 0.3)`)):(u("--header-bg",l?"var(--black-700)":"var(--white-700)"),u("--header-stroke",`hsl(${f} / 0.3)`)),s?(u("--footer-bg","transparent"),u("--footer-stroke",l?"var(--white-200)":"var(--black-200)")):(u("--footer-bg",l?"var(--black-700)":"var(--white-700)"),u("--footer-stroke",`hsl(${f} / 0.3)`)),c&&!s){const C=fm(m)>.5;u("--header-tagline",C?"var(--white-600)":"var(--black-600)")}else u("--header-tagline",l?"var(--white-600)":"var(--black-600)");u("--elicitation-bg",l?"var(--black-1000)":"var(--white-1000)"),u("--input-box-bg",l?"var(--white-100)":"var(--black-100)");const B=A instanceof ShadowRoot?A.host:A;B instanceof HTMLElement&&(B.setAttribute("data-text-color",i),B.setAttribute("data-header-tinted",String(c))),s?u("--popover",l?"0 0% 0% / 0.5":"0 0% 100% / 0.5"):c?u("--popover",f):u("--popover",l?"0 0% 0% / 0.7":"0 0% 100% / 0.7");const w=l?"white":"black";for(const C of[50,100,200,300,400,500,600,700,800,900,1e3])u(`--popover-${C}`,`var(--${w}-${C})`);u("--secondary",l?"0 0% 15%":"0 0% 96.1%"),u("--surface-secondary",l?"0 0% 15%":"0 0% 96.1%"),u("--secondary-foreground",l?"0 0% 98%":"0 0% 9%"),u("--muted",l?"0 0% 15%":"0 0% 96.1%"),u("--accent",f),u("--accent-foreground",Xu(f)),s?u("--surface",l?"0 0% 0% / 0.6":"0 0% 100% / 0.6"):u("--surface",l?"0 0% 10%":"0 0% 94.1%"),u("--surface-tertiary",l?"0 0% 12%":"0 0% 98%"),u("--border-subtle",l?"0 0% 20%":"0 0% 89.8%"),u("--border-medium",l?"0 0% 30%":"0 0% 80%"),u("--text-primary",l?"0 0% 100%":"0 0% 3.9%"),u("--text-secondary",l?"0 0% 70%":"0 0% 45.1%"),u("--text-tertiary",l?"0 0% 60%":"0 0% 63.9%"),u("--text-muted",l?"0 0% 70%":"0 0% 45.1%"),u("--border",l?"0 0% 20%":"0 0% 89.8%"),u("--input",l?"0 0% 20%":"0 0% 89.8%"),s?(u("--theme-background-image",`url(${t.backgroundImage})`),u("--theme-background-blur",qb),u("--theme-background-overlay",Xb),B instanceof HTMLElement&&B.classList.add("theme-with-background")):(u("--theme-background-image","none"),u("--theme-background-blur","0px"),u("--theme-background-overlay","rgba(0, 0, 0, 0)"),B instanceof HTMLElement&&B.classList.remove("theme-with-background"))}const nx=({className:A})=>g.jsxs("svg",{width:"56",height:"16",viewBox:"0 0 56 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:A,children:[g.jsx("path",{d:"M14.1045 10.008C13.9751 9.77059 13.8132 9.55372 13.6245 9.36306L12.6045 8.34303L11.6236 9.32386L12.6316 10.3318C12.9003 10.6003 13.0664 10.9714 13.0664 11.3815C13.0664 11.7915 12.9122 12.1356 12.6603 12.4018L12.6595 12.4026C12.6502 12.4122 12.6409 12.4218 12.6316 12.4314C11.9809 13.0981 11.1831 13.621 10.2908 13.9475C9.61708 14.194 8.88919 14.3285 8.13028 14.3285C7.48701 14.3285 6.86657 14.2321 6.28225 14.0524C5.80337 13.9058 5.34934 13.703 4.92687 13.4526C3.07996 12.357 1.84163 10.3431 1.84163 8.03987C1.84163 5.73663 3.07996 3.72248 4.92687 2.62685C5.35076 2.37557 5.80676 2.17252 6.28734 2.02557C6.87025 1.84677 7.48926 1.75088 8.13057 1.75088C8.88752 1.75088 9.61316 1.88456 10.2852 2.12965C11.1794 2.45594 11.979 2.97907 12.6307 3.64717C12.6394 3.6559 12.6479 3.66467 12.6564 3.67339C12.9105 3.9399 13.0664 4.30059 13.0664 4.69797C13.0664 5.09532 12.9003 5.47885 12.6316 5.74761L12.4034 5.97605L11.3205 7.0587L8.95941 4.69768C8.88188 4.62096 8.8001 4.54877 8.71436 4.4811C8.22617 4.09754 7.61025 3.86856 6.94105 3.86856C6.70359 3.86856 6.4729 3.89732 6.25207 3.95201C6.09497 3.99037 5.94297 4.04197 5.79745 4.10543C5.78617 4.11023 5.7749 4.11532 5.76392 4.12037C4.76472 4.56965 4.06897 5.5739 4.06897 6.74059C4.06897 6.81194 4.07152 6.88274 4.07687 6.95296C4.07687 6.95579 4.07716 6.95859 4.07745 6.96172C4.07857 6.97892 4.08028 6.99612 4.08196 7.01332C4.11807 7.3207 4.30617 7.58186 4.56901 7.71921C4.69592 7.78546 4.84028 7.82299 4.99345 7.82299H4.99483C5.2653 7.8227 5.50868 7.7051 5.67621 7.51841C5.82228 7.35623 5.91112 7.14136 5.91112 6.90557C5.91112 6.8235 5.90039 6.74427 5.88039 6.6687C5.82876 6.4755 5.71567 6.30714 5.56337 6.18645C5.78308 5.64103 6.31694 5.25608 6.94105 5.25608C7.35108 5.25608 7.72221 5.42219 7.99097 5.69096L10.3396 8.03957L9.72963 8.64957L7.97828 10.4009C7.71065 10.6623 7.34461 10.8234 6.94105 10.8234C6.72672 10.8234 6.52279 10.7779 6.33865 10.6962C6.33752 10.6956 6.3361 10.695 6.33472 10.6945C5.98501 10.5377 5.70694 10.2497 5.56337 9.89325C5.71567 9.77226 5.82876 9.60419 5.88039 9.41074C5.90039 9.33543 5.91112 9.2559 5.91112 9.17412C5.91112 8.93834 5.82228 8.72347 5.67621 8.56103C5.50868 8.37459 5.26585 8.25699 4.99541 8.25645H4.99345C4.84028 8.25645 4.69592 8.29394 4.56901 8.36023C4.3053 8.49812 4.11694 8.76041 4.08166 9.06892C4.08141 9.07288 4.08083 9.07656 4.08054 9.08019C4.07941 9.09263 4.07828 9.10474 4.07745 9.11714C4.07745 9.12052 4.07745 9.12365 4.07687 9.12674C4.07152 9.1967 4.06897 9.26747 4.06897 9.33852C4.06897 10.5052 4.76472 11.5098 5.76392 11.959L5.79745 11.974C5.94297 12.0374 6.09497 12.089 6.25207 12.1274C6.4729 12.1821 6.70359 12.2109 6.94105 12.2109C7.61196 12.2109 8.22901 11.981 8.71774 11.5955C8.76428 11.5588 8.80966 11.5205 8.85396 11.4807L8.85508 11.4796L10.9885 9.34616L11.3174 9.01732L12.2982 8.03648L12.5887 7.74627L12.8433 7.49161L13.6093 6.72539C13.8036 6.53107 13.9703 6.30885 14.1028 6.06547C14.3245 5.65794 14.4506 5.19092 14.4506 4.69459C14.4506 4.45881 14.4221 4.22983 14.3685 4.0107C14.2475 3.51517 13.9982 3.07016 13.6575 2.71314C13.6471 2.70212 13.6367 2.69143 13.6257 2.6807C13.6242 2.67928 13.6231 2.67816 13.622 2.67674C13.6133 2.6683 13.6048 2.65954 13.5963 2.6511C13.5944 2.64885 13.5924 2.64714 13.5904 2.64543C12.1989 1.23677 10.2669 0.363647 8.13057 0.363647C7.09388 0.363647 6.10541 0.568956 5.20326 0.941502C4.75232 1.12765 4.32308 1.3555 3.92007 1.62005C1.83232 2.99234 0.454102 5.35507 0.454102 8.03987C0.454102 10.7246 1.83232 13.0874 3.92007 14.4594C4.32167 14.7231 4.74948 14.9504 5.19876 15.1359C6.10203 15.5099 7.09221 15.716 8.13057 15.716C10.2781 15.716 12.2198 14.8339 13.6127 13.4123L13.6192 13.4058C13.6237 13.4012 13.6282 13.3965 13.6327 13.392C13.6414 13.3832 13.6502 13.3742 13.6586 13.3652C13.662 13.362 13.6652 13.3587 13.6682 13.355C14.0038 13.0005 14.2501 12.5603 14.3705 12.0704C14.4252 11.8496 14.454 11.6189 14.454 11.3815C14.454 10.884 14.327 10.4161 14.1045 10.008Z",fill:"currentColor",fillOpacity:"0.9"}),g.jsx("path",{d:"M22.9902 6.98682C22.8703 6.81508 22.7161 6.66046 22.5448 6.52307C22.3734 6.38566 22.2021 6.2826 22.0136 6.19671C21.8251 6.11082 21.6366 6.04213 21.431 5.9906C21.2254 5.93907 21.0198 5.92188 20.8142 5.92188C20.5743 5.92188 20.3173 5.95624 20.0603 6.02493C19.8376 6.09366 19.6148 6.17951 19.4092 6.29977C19.0151 6.54024 18.6724 6.88377 18.4497 7.27882C18.3297 7.48493 18.2441 7.70824 18.1755 7.93155C18.107 8.17202 18.0898 8.41249 18.0898 8.65297C18.0898 8.8934 18.1241 9.13387 18.1927 9.37435C18.2612 9.59766 18.3469 9.82097 18.484 10.0271C18.7238 10.4221 19.0665 10.7657 19.4777 11.0061C19.6833 11.1264 19.9061 11.2294 20.1288 11.281C20.3516 11.3497 20.5914 11.384 20.8313 11.384H20.8485C21.0027 11.384 21.174 11.3669 21.3282 11.3325C21.4824 11.2981 21.6366 11.2638 21.7737 11.2122C21.9108 11.1607 22.0479 11.092 22.1849 11.0061C22.3049 10.9374 22.442 10.8515 22.5448 10.7657C22.5962 10.7141 22.6476 10.6626 22.699 10.6111C22.7504 10.5423 22.7675 10.4737 22.7846 10.3878C22.7846 10.3362 22.7675 10.3019 22.7504 10.2503C22.7332 10.216 22.7161 10.1817 22.699 10.1645L22.6304 10.0786C22.6133 10.0614 22.5962 10.0271 22.579 9.99271C22.5448 9.94118 22.5105 9.88966 22.4591 9.83813C22.4248 9.7866 22.3906 9.75224 22.3392 9.71788C22.2877 9.68355 22.2364 9.66635 22.1849 9.66635H22.1678H22.1507C22.0821 9.66635 22.0136 9.68355 21.9622 9.73507C21.9279 9.75224 21.8937 9.7866 21.8765 9.80377C21.808 9.85529 21.7394 9.92402 21.6538 9.97555C21.5853 10.0271 21.4996 10.0786 21.431 10.113C21.3454 10.1473 21.2597 10.1817 21.1569 10.1988C21.0541 10.216 20.9513 10.2332 20.8313 10.2332H20.8142C20.6429 10.2332 20.4715 10.1988 20.3173 10.1301C20.146 10.0614 20.0089 9.97555 19.8718 9.85529C19.7348 9.73507 19.6148 9.59766 19.512 9.44307C19.4606 9.35718 19.4092 9.27129 19.3749 9.1854H23.1445C23.3672 9.1854 23.5214 9.03082 23.5214 8.80755C23.5385 8.46402 23.4872 8.10329 23.4015 7.77693C23.3329 7.50213 23.1787 7.22729 22.9902 6.98682ZM22.322 8.06893H19.3749C19.4263 7.94871 19.4777 7.84566 19.5634 7.7254C19.6833 7.55366 19.8376 7.39907 20.0089 7.27882C20.1288 7.19293 20.283 7.1414 20.4201 7.10707C20.5572 7.07271 20.7114 7.05555 20.8656 7.05555C21.0541 7.05555 21.2254 7.08987 21.3968 7.1414C21.5681 7.19293 21.7223 7.27882 21.8594 7.39907C21.9965 7.50213 22.1164 7.63955 22.2021 7.79413C22.2535 7.88002 22.2877 7.96587 22.322 8.06893Z",fill:"currentColor",fillOpacity:"0.9"}),g.jsx("path",{d:"M28.0441 10.7312L26.0565 8.36088L27.8042 6.54019C27.8556 6.47146 27.8899 6.36841 27.8899 6.29972C27.8899 6.24819 27.8899 6.21383 27.8727 6.17946C27.8556 6.14514 27.8214 6.11077 27.7871 6.05924C27.7186 6.00772 27.65 5.99055 27.5815 5.99055H27.016C26.9304 5.99055 26.8618 6.00772 26.7933 6.04208C26.7419 6.07641 26.7076 6.11077 26.6562 6.14514L25.0113 7.89714V4.90841C25.0113 4.85688 25.0113 4.80535 24.9771 4.75383C24.9599 4.7023 24.9256 4.65077 24.8914 4.63361C24.8228 4.56488 24.7372 4.53052 24.6344 4.53052H24.2403C24.1889 4.53052 24.1375 4.53052 24.0861 4.54772C24.0347 4.56488 23.9833 4.59925 23.949 4.63361C23.8805 4.7023 23.8462 4.78819 23.8462 4.89125V10.8859C23.8462 10.9374 23.8462 10.9889 23.8633 11.0232C23.8805 11.0748 23.9147 11.1263 23.949 11.1607C23.9833 11.195 24.0347 11.2294 24.0861 11.2466C24.1203 11.2637 24.1546 11.2637 24.206 11.2637C24.2231 11.2637 24.2231 11.2637 24.2403 11.2637H24.6001C24.8228 11.2637 24.9771 11.1091 24.9771 10.8859V9.46019L25.2683 9.16819L26.8276 11.0576C26.8618 11.1091 26.8961 11.1779 26.9646 11.2122C27.0332 11.2466 27.1017 11.2809 27.1702 11.2809H27.8214C27.8899 11.2809 27.9413 11.2809 27.9927 11.2466L28.0098 11.2294C28.0441 11.2122 28.1469 11.1435 28.1469 10.9889C28.1469 10.9546 28.1469 10.9202 28.1298 10.8859C28.1298 10.8343 28.0955 10.7828 28.0441 10.7312Z",fill:"currentColor",fillOpacity:"0.9"}),g.jsx("path",{d:"M32.7923 5.98994H32.4153C32.3639 5.98994 32.3125 5.98994 32.2782 6.00711C32.2268 6.02427 32.1754 6.05863 32.1412 6.093C32.1069 6.12733 32.0726 6.17889 32.0555 6.23042C32.0384 6.28194 32.0384 6.33347 32.0384 6.3678V6.385C31.8841 6.28194 31.7299 6.17889 31.5586 6.11016C31.2331 5.97274 30.8904 5.90405 30.5477 5.90405C30.5305 5.90405 30.5305 5.90405 30.5134 5.90405C30.2735 5.90405 30.0336 5.93842 29.7938 6.00711C29.571 6.0758 29.3483 6.16169 29.1427 6.28194C28.9371 6.40216 28.7486 6.53958 28.5944 6.71136C28.423 6.88311 28.286 7.05489 28.166 7.261C28.0461 7.46711 27.9433 7.69042 27.8919 7.91369C27.7548 8.39463 27.7548 8.89278 27.8919 9.35652C27.9604 9.57983 28.0461 9.80311 28.166 10.0093C28.4059 10.4043 28.7486 10.7478 29.1427 10.9883C29.3483 11.1085 29.571 11.2116 29.7938 11.2631C30.0336 11.3318 30.2735 11.3662 30.5134 11.3662C30.5305 11.3662 30.5305 11.3662 30.5477 11.3662C30.8904 11.3662 31.2331 11.2975 31.5586 11.1601C31.7299 11.0914 31.8841 10.9883 32.0384 10.8853V10.9196C32.0384 10.9711 32.0384 11.0226 32.0726 11.0742C32.0897 11.1257 32.124 11.1601 32.1583 11.1944C32.1925 11.2288 32.244 11.2631 32.2954 11.2803C32.3468 11.2975 32.3982 11.3146 32.4324 11.2975H32.8265C32.9293 11.2975 33.015 11.2631 33.0835 11.1944C33.1178 11.1601 33.1521 11.1085 33.1692 11.057C33.1864 11.0055 33.2035 10.9539 33.1864 10.9196V6.3678C33.1864 6.23042 33.1349 6.14453 33.0835 6.093C33.0321 6.04147 32.9465 5.98994 32.7923 5.98994ZM32.0555 8.61794C32.0555 8.82405 32.0212 9.03016 31.9356 9.23631C31.8499 9.42525 31.7471 9.597 31.5929 9.75158C31.4558 9.90616 31.2844 10.0264 31.096 10.1123C30.9075 10.1982 30.7019 10.2497 30.4963 10.2497C30.2907 10.2497 30.0851 10.1982 29.9137 10.1123C29.7252 10.0264 29.571 9.90616 29.4168 9.75158C29.2797 9.597 29.1598 9.42525 29.0913 9.23631C28.9371 8.84122 28.9371 8.41183 29.0913 8.01674C29.1769 7.82783 29.2797 7.65605 29.4168 7.50147C29.5539 7.34689 29.7252 7.2438 29.9137 7.15794C30.1022 7.07205 30.3078 7.02053 30.4963 7.02053C30.7019 7.02053 30.9075 7.07205 31.096 7.15794C31.2844 7.2438 31.4558 7.36405 31.5929 7.50147C31.7299 7.65605 31.8499 7.82783 31.9356 8.01674C32.0212 8.20569 32.0555 8.41183 32.0555 8.61794Z",fill:"currentColor",fillOpacity:"0.9"}),g.jsx("path",{d:"M40.0553 10.2334C40.0382 10.2162 40.0211 10.1818 40.004 10.1647L39.8327 9.94137C39.8153 9.90701 39.7811 9.87268 39.764 9.83832C39.7298 9.76959 39.6611 9.73526 39.5757 9.7009C39.5069 9.68374 39.4386 9.68374 39.3698 9.7009C39.3186 9.71806 39.2844 9.73526 39.2327 9.76959L39.1815 9.82115C39.1131 9.87268 39.0444 9.94137 38.9586 9.9929C38.8902 10.0444 38.8044 10.096 38.736 10.1303C38.6502 10.1647 38.5647 10.199 38.4618 10.2162C38.3589 10.2334 38.2564 10.2505 38.1364 10.2505H38.1193C37.9306 10.2505 37.7251 10.199 37.5538 10.1303C37.3651 10.0444 37.1938 9.92421 37.0567 9.78679C36.9026 9.63221 36.7997 9.46043 36.7142 9.27148C36.6284 9.08254 36.5942 8.87643 36.5942 8.65312C36.5942 8.44701 36.6455 8.22374 36.7313 8.03479C36.8171 7.84585 36.9367 7.6569 37.0738 7.51948C37.2109 7.3649 37.3826 7.24465 37.5709 7.15879C37.7422 7.0729 37.9477 7.02137 38.1364 7.02137C38.2389 7.02137 38.3247 7.03854 38.4277 7.0557C38.616 7.09006 38.8044 7.17595 38.9586 7.27901C39.0273 7.33054 39.0957 7.38206 39.1644 7.45079C39.2502 7.53665 39.3527 7.58817 39.4557 7.58817C39.524 7.58817 39.6269 7.55385 39.7127 7.43359L40.004 7.0557C40.0553 6.98701 40.0553 6.90112 40.0553 6.83243C40.0553 6.7809 40.0211 6.71217 39.9869 6.66065C39.9524 6.62632 39.9182 6.59195 39.884 6.55759L39.8153 6.50606C39.7127 6.42017 39.5927 6.35148 39.4727 6.28279C39.3357 6.21406 39.2157 6.14537 39.0786 6.09385C38.9415 6.04232 38.7873 6.00795 38.6331 5.97359C38.4789 5.93923 38.3247 5.92206 38.1706 5.93923C37.9306 5.93923 37.6909 5.97359 37.4509 6.04232C37.228 6.11101 37.0055 6.1969 36.7997 6.31712C36.3887 6.55759 36.0629 6.90112 35.8062 7.29617C35.6862 7.50232 35.5833 7.72559 35.5149 7.9489C35.3778 8.42985 35.3778 8.92795 35.5149 9.39174C35.5833 9.61501 35.6691 9.83832 35.8062 10.0444C36.0458 10.4395 36.3887 10.783 36.7997 11.0235C37.0055 11.1437 37.228 11.2468 37.4509 11.2983C37.6909 11.367 37.9135 11.4014 38.1535 11.4014H38.1706C38.3247 11.4014 38.496 11.3842 38.6502 11.3498C38.8044 11.3155 38.9586 11.2812 39.0957 11.2296C39.2327 11.1781 39.3698 11.1094 39.5069 11.0235C39.6269 10.9548 39.7469 10.8689 39.8669 10.783C39.9182 10.7487 39.9698 10.6972 40.004 10.6456C40.0382 10.5941 40.0724 10.5425 40.0895 10.491C40.1066 10.4223 40.1066 10.3536 40.0895 10.3021L40.0553 10.2334Z",fill:"currentColor",fillOpacity:"0.9"}),g.jsx("path",{d:"M45.196 5.98994H44.819C44.7677 5.98994 44.7161 5.98994 44.6819 6.00711C44.6306 6.02427 44.5793 6.05863 44.5448 6.093C44.5106 6.12733 44.4764 6.17889 44.4593 6.23042C44.4422 6.28194 44.4422 6.33347 44.4422 6.3678V6.385C44.2877 6.28194 44.1335 6.17889 43.9622 6.11016C43.6368 5.97274 43.2942 5.90405 42.9342 5.90405C42.6942 5.90405 42.4546 5.93842 42.2146 6.00711C41.9921 6.0758 41.7691 6.16169 41.5637 6.28194C41.3579 6.40216 41.1695 6.53958 41.0153 6.71136C40.8441 6.88311 40.707 7.05489 40.587 7.261C40.467 7.46711 40.3811 7.69042 40.3128 7.91369C40.1757 8.39463 40.1757 8.89278 40.3128 9.35652C40.5011 10.0436 40.9637 10.6276 41.5637 10.9883C41.7691 11.1085 41.9921 11.2116 42.2146 11.2631C42.4546 11.3318 42.6942 11.3662 42.9342 11.3662C42.9513 11.3662 42.9513 11.3662 42.9684 11.3662C43.3113 11.3662 43.6539 11.2975 43.9793 11.1601C44.151 11.0914 44.3051 10.9883 44.4593 10.8853V10.9196C44.4593 10.9711 44.4593 11.0226 44.4935 11.0742C44.5106 11.1257 44.5448 11.1601 44.5793 11.1944C44.6135 11.2288 44.6648 11.2631 44.7161 11.2803C44.7677 11.2975 44.819 11.3146 44.8531 11.2975H45.2473C45.3502 11.2975 45.4357 11.2631 45.5044 11.1944C45.5386 11.1601 45.5728 11.1085 45.5902 11.057C45.6073 11.0055 45.6244 10.9539 45.6244 10.9196V6.3678C45.6244 6.23042 45.5728 6.14453 45.5215 6.093C45.4357 6.04147 45.3502 5.98994 45.196 5.98994ZM44.4764 8.61794C44.4764 8.82405 44.4422 9.03016 44.3564 9.23631C44.2706 9.42525 44.1681 9.61416 44.0139 9.75158C43.8768 9.90616 43.7051 10.0264 43.5168 10.1123C43.3284 10.1982 43.1226 10.2497 42.9171 10.2497C42.7117 10.2497 42.5059 10.1982 42.3346 10.1123C42.1462 10.0264 41.9921 9.90616 41.8375 9.75158C41.7004 9.597 41.5808 9.42525 41.5121 9.23631C41.3579 8.84122 41.3579 8.41183 41.5121 8.01674C41.5979 7.82783 41.7004 7.65605 41.8375 7.50147C41.9746 7.34689 42.1462 7.2438 42.3346 7.15794C42.523 7.07205 42.7288 7.02053 42.9171 7.02053C43.1226 7.02053 43.3284 7.07205 43.5168 7.15794C43.7051 7.2438 43.8768 7.36405 44.0139 7.50147C44.151 7.65605 44.2706 7.82783 44.3564 8.01674C44.4248 8.20569 44.4764 8.41183 44.4764 8.61794Z",fill:"currentColor",fillOpacity:"0.9"}),g.jsx("path",{d:"M49.6675 6.71198C49.6675 6.66046 49.6504 6.60893 49.6333 6.5574C49.6162 6.50587 49.5817 6.47151 49.5475 6.43718C49.5133 6.40282 49.4791 6.36846 49.4275 6.35129C49.325 6.2826 49.2221 6.21387 49.1021 6.14518C48.9992 6.09366 48.8966 6.04213 48.7766 6.00777C48.6566 5.9734 48.5366 5.95624 48.4166 5.93908C48.2795 5.92188 48.1424 5.92188 48.0228 5.92188C47.8682 5.92188 47.7311 5.93907 47.5944 5.9906C47.4744 6.04213 47.3715 6.09366 47.2686 6.16235C47.2515 6.17951 47.2344 6.19671 47.2173 6.19671C47.2002 6.16235 47.1831 6.12798 47.1486 6.09366C47.1144 6.05929 47.0631 6.02493 47.0115 6.00777C46.9602 5.9906 46.909 5.9734 46.8748 5.9906H46.4806C46.429 5.9906 46.3777 5.9906 46.3435 6.02493C46.2919 6.04213 46.2577 6.07646 46.2235 6.09366C46.1893 6.12798 46.1551 6.17951 46.1377 6.23107C46.1206 6.2826 46.1035 6.33413 46.1035 6.36846V10.9202C46.1035 11.1435 46.2577 11.2981 46.4806 11.2981H46.8748C46.8919 11.2981 46.8919 11.2981 46.909 11.2981C46.9432 11.2981 46.9944 11.2981 47.029 11.281C47.0802 11.2638 47.1315 11.2294 47.1661 11.1951C47.2002 11.1607 47.2344 11.1092 47.2515 11.0577C47.2686 11.0061 47.2686 10.9546 47.2686 10.9202V7.91435C47.2686 7.77693 47.2857 7.65671 47.3373 7.53646C47.3715 7.4334 47.4399 7.34755 47.5086 7.26166C47.577 7.19293 47.6628 7.1414 47.7486 7.08987C47.8341 7.05555 47.937 7.03835 48.0399 7.03835C48.177 7.03835 48.3141 7.05555 48.4508 7.10707C48.6053 7.1586 48.7424 7.22729 48.8621 7.31318L48.9137 7.34755C48.965 7.39907 49.0337 7.41624 49.1192 7.41624C49.1704 7.41624 49.2221 7.39908 49.2562 7.36471C49.3075 7.33035 49.3421 7.29598 49.3762 7.26166L49.6162 6.88377C49.6504 6.83224 49.6675 6.78071 49.6675 6.71198Z",fill:"currentColor",fillOpacity:"0.9"}),g.jsx("path",{d:"M54.8767 7.79347C54.7912 7.50147 54.6712 7.20947 54.4829 6.969C54.3458 6.79722 54.2087 6.64263 54.0374 6.50522C53.8658 6.3678 53.6945 6.26474 53.5062 6.17889C53.3178 6.093 53.1291 6.02427 52.9236 5.97274C52.7178 5.92122 52.5123 5.90405 52.3069 5.90405H52.2894C52.0498 5.90405 51.7927 5.93842 51.5527 6.00711C51.3302 6.0758 51.1072 6.16169 50.9018 6.28194C50.696 6.40216 50.5076 6.53958 50.3534 6.71136C50.028 7.05489 49.788 7.46711 49.668 7.91369C49.5996 8.15416 49.5825 8.39463 49.5825 8.63511C49.5825 8.87558 49.6167 9.13322 49.6851 9.35652C49.7538 9.57983 49.8392 9.80311 49.9592 10.0093C50.0792 10.2154 50.2334 10.4043 50.3876 10.5589C50.5589 10.7306 50.7476 10.8681 50.936 10.9883C51.1414 11.1085 51.3643 11.2116 51.5872 11.2631C51.8269 11.3318 52.0498 11.3662 52.2894 11.3662C52.2894 11.3662 52.2894 11.3662 52.3069 11.3662C52.4782 11.3662 52.6323 11.349 52.7865 11.3147C52.9407 11.2803 53.0949 11.2459 53.232 11.1944C53.3691 11.1429 53.5062 11.0742 53.6432 10.9883C53.7632 10.9196 53.8829 10.8337 54.0029 10.7478C54.0545 10.6963 54.1229 10.6448 54.1571 10.5933C54.2087 10.5417 54.2258 10.473 54.2258 10.3699C54.2258 10.3184 54.2087 10.2841 54.1916 10.2325C54.1745 10.1982 54.1571 10.1638 54.14 10.1466L54.0887 10.0779C54.0716 10.0608 54.0545 10.0264 54.02 9.99205L53.9003 9.83747C53.8829 9.80311 53.8487 9.76878 53.8145 9.75158C53.7803 9.71725 53.7287 9.70005 53.6774 9.68289C53.6262 9.66569 53.5745 9.66569 53.5403 9.68289C53.4891 9.70005 53.4545 9.71725 53.4203 9.73442C53.3862 9.75158 53.352 9.78594 53.3349 9.80311C53.2662 9.85463 53.1978 9.92336 53.112 9.97489C53.0436 10.0264 52.9578 10.0779 52.8894 10.1123C52.8036 10.1466 52.7178 10.181 52.6152 10.1982C52.5123 10.2154 52.3923 10.2325 52.2894 10.2325H52.2723C52.1011 10.2325 51.9298 10.1982 51.7756 10.1295C51.6043 10.0608 51.4672 9.97489 51.3302 9.85463C51.1931 9.73442 51.0731 9.597 50.9872 9.44242C50.936 9.35653 50.8847 9.27063 50.8502 9.18478H54.62C54.8425 9.18478 54.9967 9.03016 54.9967 8.80689C55.0138 8.48053 54.9625 8.137 54.8767 7.79347ZM53.7974 8.06831H50.8502C50.9018 7.94805 50.9531 7.845 51.0389 7.72474C51.1589 7.553 51.3131 7.39842 51.4843 7.27816C51.6043 7.19227 51.7414 7.14074 51.8956 7.10642C52.0327 7.07205 52.1869 7.05489 52.3411 7.05489C52.5294 7.05489 52.7007 7.08922 52.872 7.14074C53.0436 7.19227 53.1978 7.27816 53.3349 7.39842C53.472 7.50147 53.5916 7.63889 53.6774 7.79347C53.7116 7.87936 53.7632 7.96522 53.7974 8.06831Z",fill:"currentColor",fillOpacity:"0.9"}),g.jsx("path",{d:"M34.7101 10.0103C34.5901 9.95881 34.453 9.94165 34.3159 9.97601C34.179 10.0103 34.059 10.0619 33.9562 10.165C33.8534 10.268 33.7849 10.3882 33.7677 10.5257C33.7335 10.7146 33.7677 10.8864 33.8705 11.041C33.9733 11.1955 34.1275 11.2986 34.2988 11.333C34.3505 11.3501 34.3846 11.3501 34.4359 11.3501C34.5217 11.3501 34.6072 11.333 34.693 11.2986C34.813 11.2471 34.933 11.1612 35.0014 11.041C35.0701 10.9207 35.1214 10.8005 35.1214 10.6631C35.1214 10.5257 35.0872 10.3882 35.0014 10.2852C34.9501 10.1478 34.8472 10.0619 34.7101 10.0103Z",fill:"currentColor",fillOpacity:"0.9"})]}),rx=b.lazy(()=>Promise.resolve().then(()=>qx));function hm({isOpen:A,onClose:t,showCloseButton:r=!0,iconUrl:i,onStartNewSession:s,showStartNewChatButton:l,children:c,fullScreenEmptyState:u,title:f,titleImg:h,tagline:m,sessionId:B,chatComposer:w,environment:C,mode:E,onToggleDisplayMode:v,isAuthComponent:F,activeElicitation:Q,voiceAgentState:N,theme:O}){const[j,K]=b.useState(!1),[T,L]=b.useState(!1),R=b.useRef(null),_=E,X=_==="full",nA=b.useRef(null),[z,lA]=b.useState("");b.useEffect(()=>{nA.current!==null&&nA.current!==_&&lA(_==="full"?"Switched to fullscreen mode":_==="widget"?"Switched to widget mode":"Switched to mobile layout"),nA.current=_},[_]);const Z=b.useMemo(()=>Zb(O),[O]),{setIsMobile:eA}=qA(M=>M),D=!!F,W=async M=>{if(!(!w?.onSend||T)){L(!0);try{await w.onSend(M)}finally{L(!1)}}};b.useEffect(()=>{if(!R.current)return;const M=_==="full"?{...Z,headerTinted:!1}:Z;dm(R.current,M),_==="full"&&!Z.backgroundImage?(R.current.style.setProperty("--background","0 0% 100%"),R.current.style.setProperty("--widget-bg-overlay","transparent")):(R.current.style.removeProperty("--background"),R.current.style.removeProperty("--widget-bg-overlay"),dm(R.current,Z))},[Z,_]),b.useEffect(()=>{const M=()=>{const S=window?.innerWidth??0,aA=navigator?.userAgent?.toLowerCase()??"",uA=S<768||/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(aA);K(uA),eA(uA)};return M(),window.addEventListener("resize",M),()=>window.removeEventListener("resize",M)},[]),b.useLayoutEffect(()=>{if(!A||!j||!R.current)return;const M=R.current;let S=null,aA=null,uA=null,fA=window.visualViewport?.offsetTop??0,pA=0;const LA=2,IA=80;if(window.visualViewport){const FA=()=>{if(M&&window.visualViewport){const le=window.visualViewport.height,Te=window.visualViewport.offsetTop;S=requestAnimationFrame(()=>{M.style.transition="none",M.style.top=`${Te}px`,M.style.left="0",M.style.right="0",M.style.bottom="auto",M.style.width="100vw",M.style.height=`${le}px`,M.style.maxHeight=`${le}px`,M.style.minHeight=`${le}px`,aA&&clearTimeout(aA),aA=setTimeout(()=>{M.style.transition=""},100)})}},fe=()=>{FA()},de=()=>{if(!M||!window.visualViewport)return;const le=window.visualViewport.offsetTop,Te=Date.now();Math.abs(le-fA)<LA||Te-pA<IA||(pA=Te,fA=le,S=requestAnimationFrame(()=>{M.style.transition="none",M.style.top=`${le}px`,uA&&clearTimeout(uA),uA=setTimeout(()=>{M.style.transition=""},150)}))};return window.visualViewport.addEventListener("resize",fe),window.visualViewport.addEventListener("scroll",de),FA(),()=>{S&&cancelAnimationFrame(S),aA&&clearTimeout(aA),uA&&clearTimeout(uA),window.visualViewport?.removeEventListener("resize",fe),window.visualViewport?.removeEventListener("scroll",de),M&&(M.style.width="",M.style.height="",M.style.maxHeight="",M.style.minHeight="",M.style.transition="")}}else{const FA=()=>{M&&(M.style.transition="none",M.style.top="0",M.style.left="0",M.style.right="0",M.style.bottom="auto",M.style.width="100vw",M.style.height="100svh",M.style.maxHeight="100svh",setTimeout(()=>{M.style.transition=""},100))};return window.addEventListener("resize",FA),FA(),()=>{window.removeEventListener("resize",FA),M&&(M.style.width="",M.style.height="",M.style.maxHeight="",M.style.transition="")}}},[A,j]),b.useEffect(()=>{if(A){const M=R.current,S=window.scrollY,aA=document.body.style.cssText,uA=document.documentElement.style.overflow,fA=window.innerWidth-document.documentElement.clientWidth;document.body.style.position="fixed",document.body.style.top=`-${S}px`,document.body.style.left="0",document.body.style.right="0",document.body.style.width="100%",document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden",fA>0&&!j&&(document.body.style.paddingRight=`${fA}px`);let pA=0;const LA=FA=>{pA=FA.touches[0].clientY},IA=FA=>{if(FA.touches.length!==1)return;const fe=pA-FA.touches[0].clientY;pA=FA.touches[0].clientY;let de=FA.target;for(;de&&de!==M;){const{overflowY:le}=window.getComputedStyle(de);if((le==="auto"||le==="scroll")&&de.scrollHeight>de.clientHeight){const{scrollTop:Te,scrollHeight:$e,clientHeight:Ut}=de,gt=Te<=0&&fe<0,an=Te+Ut>=$e-1&&fe>0;if(!gt&&!an)return;break}de=de.parentElement}FA.preventDefault()};return M&&(M.addEventListener("touchstart",LA,{passive:!0}),M.addEventListener("touchmove",IA,{passive:!1})),()=>{M&&(M.removeEventListener("touchstart",LA),M.removeEventListener("touchmove",IA)),document.body.style.cssText=aA,document.documentElement.style.overflow=uA,window.scrollTo(0,S)}}},[A,j]);const{position:AA,elementRef:gA}=Yb({enabled:A&&!j&&!X});b.useEffect(()=>{R.current&&(gA.current=R.current)},[gA]);const I=mA("synapse-chat-widget-container","fixed m-0 p-0","box-border",!j&&!X?"transition-all duration-300":"",j?"w-screen h-[100svh]":X?"w-screen h-screen":"w-96 h-[600px]","z-[2147483647]",A?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none scale-95"),U=mA("w-full h-full relative","bg-background","shadow-2xl","flex","overflow-hidden",Z.backgroundImage?"theme-with-background":"",j?"rounded-none border-0 flex-col":X?"rounded-none border-0 flex-row":"rounded-3xl flex-col");return g.jsxs("div",{ref:R,"data-mode":_,className:I,style:{margin:0,padding:0,border:"none",outline:"none",position:"fixed",zIndex:2147483647,fontSize:"16px",lineHeight:"2.5",userSelect:"auto",...X&&A&&{top:0,left:0,right:0,bottom:0,width:"100vw",height:"100vh"},...X&&!A&&{display:"none"},...!j&&!X&&{left:`${AA.x}px`,top:`${AA.y}px`,bottom:"auto",right:"auto"},...j&&{top:0,left:0,right:0,bottom:0,width:"100vw",maxHeight:"100svh",height:"100svh",backgroundColor:Z.backgroundImage?"transparent":"hsl(var(--background))"}},children:[g.jsx("style",{children:`
|
|
10
10
|
/* Isolate widget from host website styles */
|
|
11
11
|
.synapse-chat-widget-container,
|
|
12
12
|
.synapse-chat-widget-container *,
|
|
@@ -43,8 +43,8 @@ Error generating stack: `+o.message+`
|
|
|
43
43
|
.synapse-chat-widget-container [data-radix-scroll-area-viewport] {
|
|
44
44
|
overscroll-behavior: contain;
|
|
45
45
|
}
|
|
46
|
-
`}),g.jsxs(Pr,{className:U,"data-text-color":Z.textColor,style:K?void 0:{border:"1.5px solid hsl(var(--primary) / 0.5)"},children:[g.jsx("div",{role:"status","aria-live":"polite","aria-atomic":"true",style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:0},children:z}),!Z.backgroundImage&&g.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundColor:"var(--widget-bg-overlay)"}}),Z.backgroundImage&&g.jsx("div",{className:"absolute inset-0 -z-10",style:{backgroundImage:`url(${Z.backgroundImage})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",transform:"scale(1.1)"}}),Z.backgroundImage&&Z.textColor==="black"&&g.jsx("div",{className:"absolute inset-0 -z-10",style:{backgroundColor:"rgba(0, 0, 0, 0.4)"}}),g.jsxs("div",{className:"flex-1 flex flex-col min-w-0 min-h-0 h-full",children:[g.jsx("div",{className:"flex-shrink-0 sticky top-0 z-50 synapse-chat-widget-header",style:{...X?{background:"transparent"}:{backgroundColor:"hsl(var(--background))",backgroundImage:"linear-gradient(var(--header-bg), var(--header-bg))"},borderBottom:"0.5px solid var(--header-stroke)",...!K&&!X&&{cursor:A?"grab":"default"}},children:g.jsx(qb,{onClose:t,showCloseButton:r,title:f,titleImg:h,tagline:m,iconUrl:i,startNewConversation:s,voiceAgentState:I,headerTinted:X?!1:Z.headerTinted,onToggleDisplayMode:v})}),(()=>{const M=X&&!!u,S=w&&I===dA.VOICE_AGENT_STATE.IDLE?g.jsx(b.Suspense,{fallback:null,children:g.jsx(ox,{value:w.value,onChange:w.onChange,onSend:D?W:w.onSend,onFileChange:w.onFileChange,onRemoveFile:w.onRemoveFile,onRecording:w.onRecording,isRecording:w.isRecording,hasAttachment:w.hasAttachment,attachmentFiles:w.attachmentFiles,isDisabled:w.isDisabled||D&&T,isMobile:K,placeholder:w.placeholder,recordingStatus:w.recordingStatus,theme:Z,onStartNewChat:s,showStartNewChatButton:l,isVoiceAgentActive:w.isVoiceAgentActive,handleVoiceMode:w.handleVoiceMode,allowed:w.allowed,isAuthComponent:F,activeElicitationState:Q,isFullScreen:X&&!M})}):null,aA=g.jsxs(g.Fragment,{children:[B&&C==="development"&&g.jsx("div",{className:"px-6 flex justify-center items-center",children:g.jsxs("p",{className:"text-[8px] text-text-secondary font-mono opacity-50",children:["Session ID: ",B]})}),g.jsxs("div",{className:"px-6 py-1 flex justify-center items-center gap-1.5 text-foreground opacity-90",children:[g.jsx("span",{className:"text-[10px] leading-[14px]",style:{fontFamily:"Inter, system-ui, -apple-system, sans-serif",fontWeight:400,fontStyle:"normal",letterSpacing:"0%"},children:"Powered by"}),g.jsx(lx,{})]})]}),uA=u&&X?u({composer:M?S:null,composerFooter:M?aA:null}):null;return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"flex-1 min-h-0 overflow-hidden flex flex-col relative",children:uA??c}),w&&!M&&g.jsxs("div",{className:mA("flex-shrink-0 sticky bottom-0 z-50 synapse-chat-widget-footer",(l||X)&&"synapse-chat-widget-footer--no-border"),style:{backgroundColor:"hsl(var(--background))",backgroundImage:"linear-gradient(var(--footer-bg), var(--footer-bg))",borderTop:X?"none":"0.5px solid var(--footer-stroke)"},children:[g.jsx("div",{className:mA(X&&"max-w-2xl mx-auto w-full"),children:S}),aA]})]})})()]})]})]})}function cx({state:A}){switch(A){case"speaking":return g.jsx(hx,{});case"thinking":return g.jsx(dx,{});case"listening":return g.jsx(fx,{});default:return g.jsx(ux,{})}}function ux(){return g.jsxs("svg",{viewBox:"0 0 240 240",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[g.jsxs("defs",{children:[g.jsx("clipPath",{id:"voi-c",children:g.jsx("circle",{cx:"120",cy:"120",r:"112"})}),g.jsxs("filter",{id:"voi-f1",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.007 0.009",numOctaves:"3",seed:"3",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.007 0.009;0.011 0.005;0.005 0.012;0.007 0.009",dur:"30s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"20",xChannelSelector:"R",yChannelSelector:"G",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"18"})]}),g.jsxs("filter",{id:"voi-f2",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.009 0.006",numOctaves:"3",seed:"9",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.009 0.006;0.005 0.01;0.012 0.004;0.009 0.006",dur:"25s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"16",xChannelSelector:"G",yChannelSelector:"R",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"16"})]}),g.jsxs("filter",{id:"voi-f3",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.006 0.011",numOctaves:"3",seed:"15",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.006 0.011;0.009 0.007;0.004 0.014;0.006 0.011",dur:"35s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"14",xChannelSelector:"R",yChannelSelector:"B",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"16"})]}),g.jsx("filter",{id:"voi-gl",children:g.jsx("feGaussianBlur",{stdDeviation:"14"})})]}),g.jsxs("g",{clipPath:"url(#voi-c)",children:[g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"currentColor",opacity:"0.06"}),g.jsxs("g",{filter:"url(#voi-gl)",style:{mixBlendMode:"multiply"},children:[g.jsx("ellipse",{cx:"130",cy:"125",rx:"95",ry:"95",fill:"currentColor",opacity:"0.12",children:g.jsx("animate",{attributeName:"opacity",values:"0.08;0.14;0.08",dur:"12s",repeatCount:"indefinite"})}),g.jsx("ellipse",{cx:"108",cy:"112",rx:"85",ry:"85",fill:"currentColor",opacity:"0.1",children:g.jsx("animate",{attributeName:"opacity",values:"0.07;0.13;0.07",dur:"10s",repeatCount:"indefinite"})})]}),g.jsx("g",{filter:"url(#voi-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"110",cy:"100",rx:"85",ry:"65",fill:"currentColor",opacity:"0.22",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"40s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"85;78;85",dur:"12s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"65;72;65",dur:"12s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voi-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"132",cy:"140",rx:"60",ry:"80",fill:"currentColor",opacity:"0.18",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"360 120 120;0 120 120",dur:"35s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"60;68;60",dur:"10s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"80;72;80",dur:"10s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voi-f3)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"105",cy:"130",rx:"50",ry:"40",fill:"currentColor",opacity:"0.2",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"30s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"50;44;50",dur:"9s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"40;48;40",dur:"9s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voi-gl)",style:{mixBlendMode:"multiply"},children:g.jsxs("circle",{cx:"120",cy:"118",r:"30",fill:"currentColor",opacity:"0.1",children:[g.jsx("animate",{attributeName:"r",values:"28;34;28",dur:"8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.08;0.14;0.08",dur:"8s",repeatCount:"indefinite"})]})})]}),g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"none",stroke:"currentColor",strokeOpacity:"0.06",strokeWidth:"0.6"})]})}function fx(){return g.jsxs("svg",{viewBox:"0 0 240 240",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[g.jsxs("defs",{children:[g.jsx("clipPath",{id:"vol-c",children:g.jsx("circle",{cx:"120",cy:"120",r:"112"})}),g.jsxs("filter",{id:"vol-f1",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.008 0.01",numOctaves:"3",seed:"4",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.008 0.01;0.012 0.006;0.005 0.013;0.008 0.01",dur:"15s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"22",xChannelSelector:"R",yChannelSelector:"G",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"6"})]}),g.jsxs("filter",{id:"vol-f2",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.01 0.007",numOctaves:"3",seed:"10",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.01 0.007;0.006 0.011;0.013 0.004;0.01 0.007",dur:"12s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"18",xChannelSelector:"G",yChannelSelector:"R",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"5"})]}),g.jsxs("filter",{id:"vol-f3",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.007 0.012",numOctaves:"3",seed:"16",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.007 0.012;0.01 0.008;0.004 0.015;0.007 0.012",dur:"18s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"16",xChannelSelector:"R",yChannelSelector:"B",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"5"})]}),g.jsx("filter",{id:"vol-gl",children:g.jsx("feGaussianBlur",{stdDeviation:"5"})})]}),g.jsxs("g",{clipPath:"url(#vol-c)",children:[g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"currentColor",opacity:"0.07"}),g.jsx("g",{filter:"url(#vol-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"95",ry:"70",fill:"currentColor",opacity:"0.3",children:[g.jsx("animate",{attributeName:"rx",values:"95;60;100;55;95",dur:"3.5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"70;100;58;95;70",dur:"3.5s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vol-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"55",ry:"85",fill:"currentColor",opacity:"0.26",children:[g.jsx("animate",{attributeName:"rx",values:"55;88;48;82;55",dur:"4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"85;50;90;55;85",dur:"4s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vol-f3)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"65",ry:"42",fill:"currentColor",opacity:"0.28",children:[g.jsx("animate",{attributeName:"rx",values:"65;38;70;35;65",dur:"3s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"42;72;38;68;42",dur:"3s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vol-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"40",ry:"72",fill:"currentColor",opacity:"0.2",children:[g.jsx("animate",{attributeName:"rx",values:"40;70;35;65;40",dur:"3.5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"72;40;78;42;72",dur:"3.5s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vol-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"78",ry:"55",fill:"currentColor",opacity:"0.2",children:[g.jsx("animate",{attributeName:"rx",values:"78;48;82;45;78",dur:"4.5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"55;80;50;78;55",dur:"4.5s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vol-gl)",style:{mixBlendMode:"multiply"},children:g.jsxs("circle",{cx:"120",cy:"120",r:"30",fill:"currentColor",opacity:"0.14",children:[g.jsx("animate",{attributeName:"r",values:"30;45;22;42;30",dur:"3.5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.14;0.24;0.1;0.22;0.14",dur:"3.5s",repeatCount:"indefinite"})]})})]}),g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"none",stroke:"currentColor",strokeOpacity:"0.07",strokeWidth:"0.6"})]})}function dx(){return g.jsxs("svg",{viewBox:"0 0 240 240",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[g.jsxs("defs",{children:[g.jsx("clipPath",{id:"voth-c",children:g.jsx("circle",{cx:"120",cy:"120",r:"112"})}),g.jsxs("filter",{id:"voth-f1",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.008 0.01",numOctaves:"3",seed:"6",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.008 0.01;0.013 0.005;0.004 0.014;0.008 0.01",dur:"10s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"28",xChannelSelector:"R",yChannelSelector:"G",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"15"})]}),g.jsxs("filter",{id:"voth-f2",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.01 0.007",numOctaves:"3",seed:"12",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.01 0.007;0.005 0.012;0.014 0.003;0.01 0.007",dur:"8s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"24",xChannelSelector:"G",yChannelSelector:"R",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"14"})]}),g.jsxs("filter",{id:"voth-f3",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.007 0.012",numOctaves:"3",seed:"18",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.007 0.012;0.011 0.007;0.003 0.016;0.007 0.012",dur:"12s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"20",xChannelSelector:"R",yChannelSelector:"B",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"13"})]}),g.jsx("filter",{id:"voth-gl",children:g.jsx("feGaussianBlur",{stdDeviation:"10"})})]}),g.jsxs("g",{clipPath:"url(#voth-c)",children:[g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"currentColor",opacity:"0.08"}),g.jsxs("g",{filter:"url(#voth-gl)",style:{mixBlendMode:"multiply"},children:[g.jsxs("circle",{cx:"120",cy:"120",r:"60",fill:"currentColor",opacity:"0.15",children:[g.jsx("animate",{attributeName:"r",values:"60;90;60",dur:"1.8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.18;0.08;0.18",dur:"1.8s",repeatCount:"indefinite"})]}),g.jsxs("circle",{cx:"120",cy:"120",r:"45",fill:"currentColor",opacity:"0.12",children:[g.jsx("animate",{attributeName:"r",values:"45;75;45",dur:"1.8s",repeatCount:"indefinite",begin:"0.3s"}),g.jsx("animate",{attributeName:"opacity",values:"0.15;0.06;0.15",dur:"1.8s",repeatCount:"indefinite",begin:"0.3s"})]})]}),g.jsx("g",{filter:"url(#voth-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"110",cy:"100",rx:"85",ry:"65",fill:"currentColor",opacity:"0.35",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"14s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"85;70;90;75;85",dur:"2.4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"65;80;60;78;65",dur:"2.4s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voth-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"132",cy:"138",rx:"60",ry:"82",fill:"currentColor",opacity:"0.3",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"360 120 120;0 120 120",dur:"12s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"60;78;55;72;60",dur:"2.4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"82;65;85;68;82",dur:"2.4s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voth-f3)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"108",cy:"132",rx:"52",ry:"38",fill:"currentColor",opacity:"0.32",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"10s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"52;40;55;42;52",dur:"2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"38;52;35;50;38",dur:"2s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voth-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"95",rx:"90",ry:"22",fill:"currentColor",opacity:"0.24",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"11s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"22;38;22",dur:"1.8s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voth-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"140",cy:"98",rx:"38",ry:"28",fill:"currentColor",opacity:"0.25",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"7s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"38;28;42;30;38",dur:"2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"28;40;25;38;28",dur:"2s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voth-gl)",style:{mixBlendMode:"multiply"},children:g.jsxs("circle",{cx:"120",cy:"118",r:"30",fill:"currentColor",opacity:"0.2",children:[g.jsx("animate",{attributeName:"r",values:"28;42;30;38;28",dur:"2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.15;0.28;0.18;0.25;0.15",dur:"2s",repeatCount:"indefinite"})]})})]}),g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"none",stroke:"currentColor",strokeOpacity:"0.08",strokeWidth:"0.6"})]})}function hx(){return g.jsxs("svg",{viewBox:"0 0 240 240",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[g.jsxs("defs",{children:[g.jsx("clipPath",{id:"vot-c",children:g.jsx("circle",{cx:"120",cy:"120",r:"112"})}),g.jsxs("filter",{id:"vot-f1",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.009 0.012",numOctaves:"4",seed:"5",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.009 0.012;0.015 0.006;0.005 0.017;0.009 0.012",dur:"7s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"35",xChannelSelector:"R",yChannelSelector:"G",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"8"})]}),g.jsxs("filter",{id:"vot-f2",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.011 0.008",numOctaves:"4",seed:"11",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.011 0.008;0.006 0.013;0.016 0.004;0.011 0.008",dur:"6s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"30",xChannelSelector:"G",yChannelSelector:"R",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"7"})]}),g.jsxs("filter",{id:"vot-f3",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.008 0.014",numOctaves:"4",seed:"17",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.008 0.014;0.012 0.009;0.004 0.018;0.008 0.014",dur:"8s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"28",xChannelSelector:"R",yChannelSelector:"B",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"7"})]}),g.jsx("filter",{id:"vot-gl",children:g.jsx("feGaussianBlur",{stdDeviation:"7"})})]}),g.jsxs("g",{clipPath:"url(#vot-c)",children:[g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"currentColor",opacity:"0.08"}),g.jsx("g",{filter:"url(#vot-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"108",cy:"98",rx:"100",ry:"80",fill:"currentColor",opacity:"0.38",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"100;72;105;78;92;100",dur:"3.2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"80;100;72;95;82;80",dur:"3.2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.38;0.24;0.4;0.26;0.36;0.38",dur:"3.2s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"135",cy:"138",rx:"85",ry:"100",fill:"currentColor",opacity:"0.34",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"360 120 120;0 120 120",dur:"6s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"85;105;70;98;80;85",dur:"2.8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"100;72;95;68;92;100",dur:"2.8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.34;0.22;0.36;0.24;0.32;0.34",dur:"2.8s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-f3)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"102",cy:"132",rx:"75",ry:"60",fill:"currentColor",opacity:"0.36",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"75;52;78;55;70;75",dur:"2.4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"60;80;55;76;62;60",dur:"2.4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.36;0.24;0.38;0.26;0.34;0.36",dur:"2.4s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"100",rx:"100",ry:"32",fill:"currentColor",opacity:"0.28",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"32;52;28;48;35;32",dur:"2.6s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"100;80;105;85;95;100",dur:"2.6s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"32",ry:"100",fill:"currentColor",opacity:"0.22",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"360 120 120;0 120 120",dur:"5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"32;55;28;50;35;32",dur:"3s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"100;75;105;80;95;100",dur:"3s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-f3)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"138",cy:"96",rx:"55",ry:"45",fill:"currentColor",opacity:"0.3",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"4.5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"55;38;58;40;50;55",dur:"2.2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"45;62;42;58;48;45",dur:"2.2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.3;0.2;0.32;0.22;0.28;0.3",dur:"2.2s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-gl)",style:{mixBlendMode:"multiply"},children:g.jsxs("circle",{cx:"120",cy:"118",r:"40",fill:"currentColor",opacity:"0.18",children:[g.jsx("animate",{attributeName:"r",values:"38;55;35;50;40;38",dur:"2.8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.15;0.3;0.18;0.26;0.16;0.15",dur:"2.8s",repeatCount:"indefinite"})]})})]}),g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"none",stroke:"currentColor",strokeOpacity:"0.08",strokeWidth:"0.6"})]})}function gx({state:A,isMuted:t,onEndCall:r,onClose:i,onToggleMute:s,agentName:l="Health Assist",textColor:c="white"}){const[u,f]=b.useState(!1);if(A===dA.VOICE_AGENT_STATE.ERROR)return g.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center bg-surface gap-4 p-8",children:[g.jsx("div",{className:"w-16 h-16 rounded-full bg-destructive/10 flex items-center justify-center",children:g.jsx(Bb,{className:"w-7 h-7 text-destructive"})}),g.jsxs("div",{className:"text-center",children:[g.jsx("p",{className:"text-base font-semibold text-foreground",children:"Call Disconnected"}),g.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Something went wrong. Please try again."})]}),g.jsx(VA,{onClick:i,variant:"outline",className:"mt-2",children:"Close"})]});const h=()=>{if(t)return"You are muted";switch(A){case dA.VOICE_AGENT_STATE.CONNECTING:return`Please wait while we are
|
|
47
|
-
connecting to an AI agent...`;case
|
|
46
|
+
`}),g.jsxs(Pr,{className:U,"data-text-color":Z.textColor,style:j?void 0:{border:"1.5px solid hsl(var(--primary) / 0.5)"},children:[g.jsx("div",{role:"status","aria-live":"polite","aria-atomic":"true",style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:0},children:z}),!Z.backgroundImage&&g.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundColor:"var(--widget-bg-overlay)"}}),Z.backgroundImage&&g.jsx("div",{className:"absolute inset-0 -z-10",style:{backgroundImage:`url(${Z.backgroundImage})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",transform:"scale(1.1)"}}),Z.backgroundImage&&Z.textColor==="black"&&g.jsx("div",{className:"absolute inset-0 -z-10",style:{backgroundColor:"rgba(0, 0, 0, 0.4)"}}),g.jsxs("div",{className:"flex-1 flex flex-col min-w-0 min-h-0 h-full",children:[g.jsx("div",{className:"flex-shrink-0 sticky top-0 z-50 synapse-chat-widget-header",style:{...X?{background:"transparent"}:{backgroundColor:"hsl(var(--background))",backgroundImage:"linear-gradient(var(--header-bg), var(--header-bg))"},borderBottom:"0.5px solid var(--header-stroke)",...!j&&!X&&{cursor:A?"grab":"default"}},children:g.jsx(Gb,{onClose:t,showCloseButton:r,title:f,titleImg:h,tagline:m,iconUrl:i,startNewConversation:s,voiceAgentState:N,headerTinted:X?!1:Z.headerTinted,onToggleDisplayMode:v})}),(()=>{const M=X&&!!u,S=w&&N===hA.VOICE_AGENT_STATE.IDLE?g.jsx(b.Suspense,{fallback:null,children:g.jsx(rx,{value:w.value,onChange:w.onChange,onSend:D?W:w.onSend,onFileChange:w.onFileChange,onRemoveFile:w.onRemoveFile,onRecording:w.onRecording,isRecording:w.isRecording,hasAttachment:w.hasAttachment,attachmentFiles:w.attachmentFiles,isDisabled:w.isDisabled||D&&T,isMobile:j,placeholder:w.placeholder,recordingStatus:w.recordingStatus,theme:Z,onStartNewChat:s,showStartNewChatButton:l,isVoiceAgentActive:w.isVoiceAgentActive,handleVoiceMode:w.handleVoiceMode,allowed:w.allowed,isAuthComponent:F,activeElicitationState:Q,isFullScreen:X&&!M})}):null,aA=g.jsxs(g.Fragment,{children:[B&&C==="development"&&g.jsx("div",{className:"px-6 flex justify-center items-center",children:g.jsxs("p",{className:"text-[8px] text-text-secondary font-mono opacity-50",children:["Session ID: ",B]})}),g.jsxs("div",{className:"px-6 py-1 flex justify-center items-center gap-1.5 text-foreground opacity-90",children:[g.jsx("span",{className:"text-[10px] leading-[14px]",style:{fontFamily:"Inter, system-ui, -apple-system, sans-serif",fontWeight:400,fontStyle:"normal",letterSpacing:"0%"},children:"Powered by"}),g.jsx(nx,{})]})]}),uA=u&&X?u({composer:M?S:null,composerFooter:M?aA:null}):null;return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"flex-1 min-h-0 overflow-hidden flex flex-col relative",children:uA??c}),w&&!M&&g.jsxs("div",{className:mA("flex-shrink-0 sticky bottom-0 z-50 synapse-chat-widget-footer",(l||X)&&"synapse-chat-widget-footer--no-border"),style:{backgroundColor:"hsl(var(--background))",backgroundImage:"linear-gradient(var(--footer-bg), var(--footer-bg))",borderTop:X?"none":"0.5px solid var(--footer-stroke)"},children:[g.jsx("div",{className:mA(X&&"max-w-2xl mx-auto w-full"),children:S}),aA]})]})})()]})]})]})}function ix({state:A}){switch(A){case"speaking":return g.jsx(ox,{});case"thinking":return g.jsx(lx,{});case"listening":return g.jsx(sx,{});default:return g.jsx(ax,{})}}function ax(){return g.jsxs("svg",{viewBox:"0 0 240 240",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[g.jsxs("defs",{children:[g.jsx("clipPath",{id:"voi-c",children:g.jsx("circle",{cx:"120",cy:"120",r:"112"})}),g.jsxs("filter",{id:"voi-f1",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.007 0.009",numOctaves:"3",seed:"3",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.007 0.009;0.011 0.005;0.005 0.012;0.007 0.009",dur:"30s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"20",xChannelSelector:"R",yChannelSelector:"G",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"18"})]}),g.jsxs("filter",{id:"voi-f2",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.009 0.006",numOctaves:"3",seed:"9",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.009 0.006;0.005 0.01;0.012 0.004;0.009 0.006",dur:"25s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"16",xChannelSelector:"G",yChannelSelector:"R",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"16"})]}),g.jsxs("filter",{id:"voi-f3",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.006 0.011",numOctaves:"3",seed:"15",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.006 0.011;0.009 0.007;0.004 0.014;0.006 0.011",dur:"35s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"14",xChannelSelector:"R",yChannelSelector:"B",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"16"})]}),g.jsx("filter",{id:"voi-gl",children:g.jsx("feGaussianBlur",{stdDeviation:"14"})})]}),g.jsxs("g",{clipPath:"url(#voi-c)",children:[g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"currentColor",opacity:"0.06"}),g.jsxs("g",{filter:"url(#voi-gl)",style:{mixBlendMode:"multiply"},children:[g.jsx("ellipse",{cx:"130",cy:"125",rx:"95",ry:"95",fill:"currentColor",opacity:"0.12",children:g.jsx("animate",{attributeName:"opacity",values:"0.08;0.14;0.08",dur:"12s",repeatCount:"indefinite"})}),g.jsx("ellipse",{cx:"108",cy:"112",rx:"85",ry:"85",fill:"currentColor",opacity:"0.1",children:g.jsx("animate",{attributeName:"opacity",values:"0.07;0.13;0.07",dur:"10s",repeatCount:"indefinite"})})]}),g.jsx("g",{filter:"url(#voi-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"110",cy:"100",rx:"85",ry:"65",fill:"currentColor",opacity:"0.22",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"40s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"85;78;85",dur:"12s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"65;72;65",dur:"12s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voi-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"132",cy:"140",rx:"60",ry:"80",fill:"currentColor",opacity:"0.18",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"360 120 120;0 120 120",dur:"35s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"60;68;60",dur:"10s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"80;72;80",dur:"10s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voi-f3)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"105",cy:"130",rx:"50",ry:"40",fill:"currentColor",opacity:"0.2",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"30s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"50;44;50",dur:"9s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"40;48;40",dur:"9s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voi-gl)",style:{mixBlendMode:"multiply"},children:g.jsxs("circle",{cx:"120",cy:"118",r:"30",fill:"currentColor",opacity:"0.1",children:[g.jsx("animate",{attributeName:"r",values:"28;34;28",dur:"8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.08;0.14;0.08",dur:"8s",repeatCount:"indefinite"})]})})]}),g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"none",stroke:"currentColor",strokeOpacity:"0.06",strokeWidth:"0.6"})]})}function sx(){return g.jsxs("svg",{viewBox:"0 0 240 240",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[g.jsxs("defs",{children:[g.jsx("clipPath",{id:"vol-c",children:g.jsx("circle",{cx:"120",cy:"120",r:"112"})}),g.jsxs("filter",{id:"vol-f1",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.008 0.01",numOctaves:"3",seed:"4",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.008 0.01;0.012 0.006;0.005 0.013;0.008 0.01",dur:"15s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"22",xChannelSelector:"R",yChannelSelector:"G",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"6"})]}),g.jsxs("filter",{id:"vol-f2",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.01 0.007",numOctaves:"3",seed:"10",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.01 0.007;0.006 0.011;0.013 0.004;0.01 0.007",dur:"12s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"18",xChannelSelector:"G",yChannelSelector:"R",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"5"})]}),g.jsxs("filter",{id:"vol-f3",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.007 0.012",numOctaves:"3",seed:"16",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.007 0.012;0.01 0.008;0.004 0.015;0.007 0.012",dur:"18s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"16",xChannelSelector:"R",yChannelSelector:"B",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"5"})]}),g.jsx("filter",{id:"vol-gl",children:g.jsx("feGaussianBlur",{stdDeviation:"5"})})]}),g.jsxs("g",{clipPath:"url(#vol-c)",children:[g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"currentColor",opacity:"0.07"}),g.jsx("g",{filter:"url(#vol-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"95",ry:"70",fill:"currentColor",opacity:"0.3",children:[g.jsx("animate",{attributeName:"rx",values:"95;60;100;55;95",dur:"3.5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"70;100;58;95;70",dur:"3.5s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vol-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"55",ry:"85",fill:"currentColor",opacity:"0.26",children:[g.jsx("animate",{attributeName:"rx",values:"55;88;48;82;55",dur:"4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"85;50;90;55;85",dur:"4s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vol-f3)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"65",ry:"42",fill:"currentColor",opacity:"0.28",children:[g.jsx("animate",{attributeName:"rx",values:"65;38;70;35;65",dur:"3s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"42;72;38;68;42",dur:"3s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vol-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"40",ry:"72",fill:"currentColor",opacity:"0.2",children:[g.jsx("animate",{attributeName:"rx",values:"40;70;35;65;40",dur:"3.5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"72;40;78;42;72",dur:"3.5s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vol-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"78",ry:"55",fill:"currentColor",opacity:"0.2",children:[g.jsx("animate",{attributeName:"rx",values:"78;48;82;45;78",dur:"4.5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"55;80;50;78;55",dur:"4.5s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vol-gl)",style:{mixBlendMode:"multiply"},children:g.jsxs("circle",{cx:"120",cy:"120",r:"30",fill:"currentColor",opacity:"0.14",children:[g.jsx("animate",{attributeName:"r",values:"30;45;22;42;30",dur:"3.5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.14;0.24;0.1;0.22;0.14",dur:"3.5s",repeatCount:"indefinite"})]})})]}),g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"none",stroke:"currentColor",strokeOpacity:"0.07",strokeWidth:"0.6"})]})}function lx(){return g.jsxs("svg",{viewBox:"0 0 240 240",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[g.jsxs("defs",{children:[g.jsx("clipPath",{id:"voth-c",children:g.jsx("circle",{cx:"120",cy:"120",r:"112"})}),g.jsxs("filter",{id:"voth-f1",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.008 0.01",numOctaves:"3",seed:"6",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.008 0.01;0.013 0.005;0.004 0.014;0.008 0.01",dur:"10s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"28",xChannelSelector:"R",yChannelSelector:"G",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"15"})]}),g.jsxs("filter",{id:"voth-f2",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.01 0.007",numOctaves:"3",seed:"12",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.01 0.007;0.005 0.012;0.014 0.003;0.01 0.007",dur:"8s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"24",xChannelSelector:"G",yChannelSelector:"R",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"14"})]}),g.jsxs("filter",{id:"voth-f3",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.007 0.012",numOctaves:"3",seed:"18",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.007 0.012;0.011 0.007;0.003 0.016;0.007 0.012",dur:"12s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"20",xChannelSelector:"R",yChannelSelector:"B",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"13"})]}),g.jsx("filter",{id:"voth-gl",children:g.jsx("feGaussianBlur",{stdDeviation:"10"})})]}),g.jsxs("g",{clipPath:"url(#voth-c)",children:[g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"currentColor",opacity:"0.08"}),g.jsxs("g",{filter:"url(#voth-gl)",style:{mixBlendMode:"multiply"},children:[g.jsxs("circle",{cx:"120",cy:"120",r:"60",fill:"currentColor",opacity:"0.15",children:[g.jsx("animate",{attributeName:"r",values:"60;90;60",dur:"1.8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.18;0.08;0.18",dur:"1.8s",repeatCount:"indefinite"})]}),g.jsxs("circle",{cx:"120",cy:"120",r:"45",fill:"currentColor",opacity:"0.12",children:[g.jsx("animate",{attributeName:"r",values:"45;75;45",dur:"1.8s",repeatCount:"indefinite",begin:"0.3s"}),g.jsx("animate",{attributeName:"opacity",values:"0.15;0.06;0.15",dur:"1.8s",repeatCount:"indefinite",begin:"0.3s"})]})]}),g.jsx("g",{filter:"url(#voth-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"110",cy:"100",rx:"85",ry:"65",fill:"currentColor",opacity:"0.35",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"14s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"85;70;90;75;85",dur:"2.4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"65;80;60;78;65",dur:"2.4s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voth-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"132",cy:"138",rx:"60",ry:"82",fill:"currentColor",opacity:"0.3",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"360 120 120;0 120 120",dur:"12s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"60;78;55;72;60",dur:"2.4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"82;65;85;68;82",dur:"2.4s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voth-f3)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"108",cy:"132",rx:"52",ry:"38",fill:"currentColor",opacity:"0.32",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"10s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"52;40;55;42;52",dur:"2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"38;52;35;50;38",dur:"2s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voth-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"95",rx:"90",ry:"22",fill:"currentColor",opacity:"0.24",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"11s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"22;38;22",dur:"1.8s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voth-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"140",cy:"98",rx:"38",ry:"28",fill:"currentColor",opacity:"0.25",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"7s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"38;28;42;30;38",dur:"2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"28;40;25;38;28",dur:"2s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voth-gl)",style:{mixBlendMode:"multiply"},children:g.jsxs("circle",{cx:"120",cy:"118",r:"30",fill:"currentColor",opacity:"0.2",children:[g.jsx("animate",{attributeName:"r",values:"28;42;30;38;28",dur:"2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.15;0.28;0.18;0.25;0.15",dur:"2s",repeatCount:"indefinite"})]})})]}),g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"none",stroke:"currentColor",strokeOpacity:"0.08",strokeWidth:"0.6"})]})}function ox(){return g.jsxs("svg",{viewBox:"0 0 240 240",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[g.jsxs("defs",{children:[g.jsx("clipPath",{id:"vot-c",children:g.jsx("circle",{cx:"120",cy:"120",r:"112"})}),g.jsxs("filter",{id:"vot-f1",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.009 0.012",numOctaves:"4",seed:"5",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.009 0.012;0.015 0.006;0.005 0.017;0.009 0.012",dur:"7s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"35",xChannelSelector:"R",yChannelSelector:"G",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"8"})]}),g.jsxs("filter",{id:"vot-f2",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.011 0.008",numOctaves:"4",seed:"11",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.011 0.008;0.006 0.013;0.016 0.004;0.011 0.008",dur:"6s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"30",xChannelSelector:"G",yChannelSelector:"R",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"7"})]}),g.jsxs("filter",{id:"vot-f3",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.008 0.014",numOctaves:"4",seed:"17",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.008 0.014;0.012 0.009;0.004 0.018;0.008 0.014",dur:"8s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"28",xChannelSelector:"R",yChannelSelector:"B",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"7"})]}),g.jsx("filter",{id:"vot-gl",children:g.jsx("feGaussianBlur",{stdDeviation:"7"})})]}),g.jsxs("g",{clipPath:"url(#vot-c)",children:[g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"currentColor",opacity:"0.08"}),g.jsx("g",{filter:"url(#vot-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"108",cy:"98",rx:"100",ry:"80",fill:"currentColor",opacity:"0.38",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"100;72;105;78;92;100",dur:"3.2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"80;100;72;95;82;80",dur:"3.2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.38;0.24;0.4;0.26;0.36;0.38",dur:"3.2s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"135",cy:"138",rx:"85",ry:"100",fill:"currentColor",opacity:"0.34",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"360 120 120;0 120 120",dur:"6s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"85;105;70;98;80;85",dur:"2.8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"100;72;95;68;92;100",dur:"2.8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.34;0.22;0.36;0.24;0.32;0.34",dur:"2.8s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-f3)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"102",cy:"132",rx:"75",ry:"60",fill:"currentColor",opacity:"0.36",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"75;52;78;55;70;75",dur:"2.4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"60;80;55;76;62;60",dur:"2.4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.36;0.24;0.38;0.26;0.34;0.36",dur:"2.4s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"100",rx:"100",ry:"32",fill:"currentColor",opacity:"0.28",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"32;52;28;48;35;32",dur:"2.6s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"100;80;105;85;95;100",dur:"2.6s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"32",ry:"100",fill:"currentColor",opacity:"0.22",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"360 120 120;0 120 120",dur:"5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"32;55;28;50;35;32",dur:"3s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"100;75;105;80;95;100",dur:"3s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-f3)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"138",cy:"96",rx:"55",ry:"45",fill:"currentColor",opacity:"0.3",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"4.5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"55;38;58;40;50;55",dur:"2.2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"45;62;42;58;48;45",dur:"2.2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.3;0.2;0.32;0.22;0.28;0.3",dur:"2.2s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-gl)",style:{mixBlendMode:"multiply"},children:g.jsxs("circle",{cx:"120",cy:"118",r:"40",fill:"currentColor",opacity:"0.18",children:[g.jsx("animate",{attributeName:"r",values:"38;55;35;50;40;38",dur:"2.8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.15;0.3;0.18;0.26;0.16;0.15",dur:"2.8s",repeatCount:"indefinite"})]})})]}),g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"none",stroke:"currentColor",strokeOpacity:"0.08",strokeWidth:"0.6"})]})}function cx({state:A,isMuted:t,onEndCall:r,onClose:i,onToggleMute:s,agentName:l="Health Assist",textColor:c="white"}){const[u,f]=b.useState(!1);if(A===hA.VOICE_AGENT_STATE.ERROR)return g.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center bg-surface gap-4 p-8",children:[g.jsx("div",{className:"w-16 h-16 rounded-full bg-destructive/10 flex items-center justify-center",children:g.jsx(db,{className:"w-7 h-7 text-destructive"})}),g.jsxs("div",{className:"text-center",children:[g.jsx("p",{className:"text-base font-semibold text-foreground",children:"Call Disconnected"}),g.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Something went wrong. Please try again."})]}),g.jsx(jA,{onClick:i,variant:"outline",className:"mt-2",children:"Close"})]});const h=()=>{if(t)return"You are muted";switch(A){case hA.VOICE_AGENT_STATE.CONNECTING:return`Please wait while we are
|
|
47
|
+
connecting to an AI agent...`;case hA.VOICE_AGENT_STATE.SPEAKING:return`${l} is speaking...`;case hA.VOICE_AGENT_STATE.LISTENING:return"You are speaking...";case hA.VOICE_AGENT_STATE.THINKING:return"One moment please...";case hA.VOICE_AGENT_STATE.MUTED:return"You are muted";case hA.VOICE_AGENT_STATE.DISCONNECTING:return"Ending session...";default:return"Go ahead, I'm listening..."}},m=A===hA.VOICE_AGENT_STATE.SPEAKING||A===hA.VOICE_AGENT_STATE.CONNECTING||A===hA.VOICE_AGENT_STATE.DISCONNECTING;return g.jsxs("div",{className:"flex-1 flex flex-col bg-surface relative",children:[g.jsx("style",{children:ux}),g.jsx("div",{className:"py-2.5 text-center bg-primary/15",children:g.jsx("span",{className:"text-[11px] font-bold uppercase tracking-[0.12em] text-primary",children:"Voice Mode Active"})}),g.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-5",children:[g.jsx("div",{className:"w-[200px] h-[200px] text-primary",children:g.jsx(ix,{state:A})}),g.jsx("p",{className:"text-base text-center px-8 whitespace-pre-line leading-6 text-muted-foreground",children:h()})]}),g.jsxs("div",{children:[g.jsx("div",{className:"border-t border-primary/15"}),g.jsxs("div",{className:"py-5 bg-surface flex justify-center items-center gap-6",children:[g.jsx("button",{type:"button",onClick:s,disabled:m,className:"voice-mic-btn","aria-label":t?"Unmute":"Mute",style:{opacity:m?.5:1,cursor:m?"not-allowed":"pointer",background:m?"hsl(var(--primary) / 0.4)":t?c==="black"?"hsl(var(--black-700))":"hsl(var(--white-700))":"hsl(var(--primary))"},children:t?g.jsx(ub,{className:`w-6 h-6 ${c==="black"?"text-white":"text-black"}`}):g.jsx(Mu,{className:"w-6 h-6 text-white"})}),g.jsx("button",{type:"button",onClick:()=>f(!0),disabled:A===hA.VOICE_AGENT_STATE.DISCONNECTING,className:"voice-end-btn","aria-label":"Exit voice mode",children:g.jsx(ts,{className:"w-5 h-5 text-white"})})]})]}),u&&g.jsx("div",{className:"absolute inset-0 z-50 flex items-center justify-center bg-black/40",children:g.jsxs("div",{className:"bg-background rounded-2xl shadow-xl mx-6 p-6 w-full max-w-[280px] flex flex-col items-center gap-3",children:[g.jsx("p",{className:"text-base font-semibold text-foreground text-center",children:"Exit voice mode?"}),g.jsx("p",{className:"text-sm text-muted-foreground text-center leading-5",children:"This will close your voice session. You can continue your chat."}),g.jsxs("div",{className:"flex flex-col w-full gap-2 mt-2",children:[g.jsx(jA,{onClick:()=>{f(!1),r?.()},className:"w-full bg-red-500 hover:bg-red-600 text-white",children:"Exit and Go Back to Chat"}),g.jsx(jA,{variant:"outline",onClick:()=>f(!1),className:"w-full",children:"Keep talking"})]})]})})]})}const ux=`
|
|
48
48
|
.voice-mic-btn {
|
|
49
49
|
width: 56px;
|
|
50
50
|
height: 56px;
|
|
@@ -84,21 +84,23 @@ connecting to an AI agent...`;case dA.VOICE_AGENT_STATE.SPEAKING:return`${l} is
|
|
|
84
84
|
}
|
|
85
85
|
.voice-end-btn:active { transform: scale(0.95); }
|
|
86
86
|
.voice-end-btn:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
87
|
-
`;function mx({title:A,description:t,suggestions:r,onSendMessage:i,disabled:s,composer:l,composerFooter:c,connectionBanner:u}){const f=h=>{const m=h.label||h.value||"";m&&i({message:h.value||m,messageId:Date.now().toString()})};return g.jsxs("div",{className:"flex-1 flex flex-col items-stretch justify-center px-4 py-6 gap-6 w-full max-w-2xl mx-auto overflow-y-auto",children:[g.jsxs("div",{className:"flex flex-col gap-2 items-start",children:[g.jsxs("h2",{className:"text-text-primary",style:{fontFamily:"Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",fontSize:36,lineHeight:"40px",fontWeight:500,letterSpacing:"-0.025em",margin:0},children:["Hi, this is ",A,"!"]}),t&&g.jsx("p",{className:"text-text-primary",style:{fontFamily:"Inter, sans-serif",fontSize:16,lineHeight:"24px",fontWeight:400,margin:0,maxWidth:420},children:t})]}),r&&r.length>0&&g.jsx("div",{className:"content-center flex flex-wrap gap-4 items-center",children:r.map((h,m)=>{const B=h.label||h.value||"";return B?g.jsx("button",{type:"button",onClick:()=>f(h),disabled:s,className:mA("inline-flex items-center bg-white border border-primary text-primary","rounded-lg overflow-clip whitespace-nowrap transition-colors shrink-0","supports-[hover:hover]:hover:bg-primary supports-[hover:hover]:hover:text-primary-foreground",s?"opacity-50 cursor-not-allowed":"cursor-pointer"),style:{fontFamily:"Inter, sans-serif",fontSize:16,lineHeight:"24px",fontWeight:500,padding:"8px 12px",WebkitTapHighlightColor:"transparent",outline:"none"},children:B},`${B}-${m}`):null})}),u,l&&g.jsxs("div",{className:"w-full overflow-hidden",style:{backgroundColor:"rgba(255, 255, 255, 0.7)",border:"1px solid hsl(var(--primary) / 0.5)",borderRadius:16,paddingBottom:12},children:[l,c]})]})}function mm(){const[A,t]=b.useState(typeof navigator<"u"?navigator.onLine:!0);return b.useEffect(()=>{const r=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",r),window.addEventListener("offline",i),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}},[]),{isOnline:A}}const Bx=A=>A?A.split(" ").map(t=>t[0]).slice(0,2).join("").toUpperCase():"DR",Cx=A=>{const t=new Date(A),r=t.toLocaleDateString(void 0,{weekday:"short"}),i=t.toLocaleDateString(void 0,{day:"2-digit"});return{weekday:r,dayNum:i}},wx=(A=[],t=[])=>{if(!A.length)return t;if(!t.length)return A;const r=A.map(i=>({...i}));for(const i of t){const s=i.date?r.findIndex(l=>l.date===i.date):-1;if(s===-1)r.push({...i});else{const l=r[s];r[s]={...l,...i,slots:i.slots??l.slots}}}return r},yx=(A=[],t=[])=>{if(!A.length)return t;if(!t.length)return A;const r=A.map(i=>({...i}));for(const i of t){const s=i.doctor_id?r.findIndex(l=>l.doctor_id===i.doctor_id):-1;if(s===-1)r.push({...i});else{const l=r[s];r[s]={...l,...i,availability:wx(l.availability,i.availability)}}}return r},Bm=A=>!!A&&Array.isArray(A.doctors),Ex=(A,t,r)=>A?t?r!==dA.SYNAPSE_COMPONENTS.DOCTOR_CARD?t:!Bm(A)||!Bm(t)?A:{...t,doctors:yx(A.doctors,t.doctors),doctor_details:{...A.doctor_details||{},...t.doctor_details||{}}}:A:t,nr=A=>{const t=A;return t?.message?t.error?.msg||t.message:A instanceof Error?A.message:"An unexpected error occurred"},vx=({environment:A,connectionType:t,baseUrl:r,context:i,auth:s})=>{const[l,c]=b.useState([]),u=b.useRef([]),[f,h]=b.useState(!1),m=b.useRef(0),[B,w]=b.useState(!1),[C,E]=b.useState([]),v=b.useRef(null),F=Ib(),Q=b.useRef(null),{isOnline:I}=mm(),O=b.useRef(!1),K=WA(V=>V.agentId),j=WA(V=>V.sessionId),T=WA(V=>V.sessionToken),L=WA(V=>V.isStreaming),R=WA(V=>V.isWaitingForResponse),_=WA(V=>V.initialMessage),X=WA(V=>V.userId),nA=WA(V=>V.fileUploadPerSession),{setSessionId:z,setSessionToken:lA,setError:Z,setConnectionStatus:eA,setShowRetryButton:D,setStartNewConnection:W,setIsStreaming:AA,setIsWaitingForResponse:gA,setProgressMessage:N,setRecordingStatus:U,clearSession:M,addMessageToSession:S,getMessagesForSession:aA,updateMessageInSession:uA,setInitialMessage:fA,setUserId:pA,setFileUploadPerSession:kA,setToastMessage:HA,upsertElicitationState:NA}=WA.getState();b.useEffect(()=>{I?B?oe()&&(eA(qe.CONNECTED),$e()):eA(qe.CONNECTING):eA(qe.NOT_CONNECTED)},[I,B]),b.useEffect(()=>{if(j){const V=aA(j)||[];if(V.length<=0&&_?.text){const q=Date.now().toString(),hA=!!_.suggestions?.length?`${q}::initial-suggestions`:null;hA&&NA(hA,{tool_id:"",active:!1,disabled:!1,messageId:q,component:dA.SYNAPSE_COMPONENTS.PILL,send_to_llm:!0,ui_input:{options:(_.suggestions||[]).map(SA=>({id:SA.value||"",label:SA.label||"",value:SA.value||""}))}}),c([{id:q,content:_.text,role:bt.ASSISTANT,timestamp:vi(Date.now()),isStored:!1,...hA&&{tool_keys:[hA]}}])}else c(V);E([])}},[j,_]),b.useEffect(()=>{if(w(!1),!K)return;const V=new dA.SynapseSDK({agentId:K,environment:A,...t&&{connectionType:t},userId:X,callbacks:{onError:q=>{switch(q.code){case dA.SynapseErrorCode.SESSION:{const oA=q.context;oA?.stage==="handleSessionExpiry"||oA?.stage==="refreshSession"?I?(Z({title:"Internet connection Failed!",description:nr(q)}),D(!0)):(Z({title:"Your session has ended.",description:"Please start a new Chat."}),D(!0)):(eA(qe.NOT_CONNECTED),Z({title:"Something went wrong!",description:nr(q)}),D(!0));break}case dA.SynapseErrorCode.RECORDING:Z({title:"Recording failed",description:nr(q)});break;case dA.SynapseErrorCode.CONNECTION:oe()||(eA(qe.NOT_CONNECTED),m.current<2?(m.current=m.current+1,de(j,T)):(D(!0),Z({title:"Trying to connect...",description:nr(q)})));break;default:Z({title:"Something went wrong",description:nr(q)}),D(!0);break}},onSessionRefreshed:q=>{q?.session_id&&q?.session_token&&(z(q.session_id),lA(q.session_token))}},...r&&{serverUrl:r},...i&&{context:i},...s&&{auth:s}});return v.current=V,F(V),w(!0),()=>{w(!1),v.current?.endSession(),v.current=null,F(null),Q.current&&(clearTimeout(Q.current),Q.current=null)}},[K,A,s]),b.useEffect(()=>{u.current=l},[l]),b.useEffect(()=>{const V=u.current[u.current.length-1];!V?.role||!j||(V?.role===bt.USER&&!V.isStored?S(j,{...V,isStored:!0}):!L&&!V.isStored&&(c(q=>{const oA=[...q];return oA[oA.length-1]={...V,isStored:!0},oA}),S(j,{...V,isStored:!0})))},[l,L]),b.useEffect(()=>{const V=l[l.length-1];return()=>{V&&!V?.isStored&&j&&S(j,{...V,isStored:!0})}},[]),b.useEffect(()=>(Q.current&&(clearTimeout(Q.current),Q.current=null),R&&!L?Q.current=setTimeout(()=>{gA(!1),Q.current=null},3e4):L&&Q.current&&(clearTimeout(Q.current),Q.current=null),()=>{Q.current&&(clearTimeout(Q.current),Q.current=null)}),[R,L,gA]);const de=async(V,q,oA=!1)=>{try{const hA=await v.current?.startSession({session_id:V||"",session_token:q||""});hA?.session_id&&hA?.session_token&&(z(hA.session_id),lA(hA.session_token)),(hA?.initial_message?.text||hA?.initial_message?.suggestions?.length)&&fA(hA.initial_message),hA?.user_id&&pA(hA.user_id)}catch(hA){const SA=hA,FA=SA.context?.stage==="handleSessionExpiry"||SA.context?.stage==="refreshSession"||SA.status===404,jA=SA.status===403;FA?(Z(null),eA(qe.NOT_CONNECTED),W(!0)):jA&&!oA?(M(),$e(),await de(void 0,void 0,!0)):(Z({title:"Connection Lost!",description:nr(hA)}),D(!0))}},he=async(V=!1)=>{try{if(!v.current){Z({title:"SDK not initialized",description:"Please ensure agentId is configured"}),h(!1);return}if(h(!0),V){await M(),await v?.current?.endSession(),$e(),await de(),Ut();return}const{sessionId:q,sessionToken:oA}=WA.getState();await de(q,oA),Ut()}catch{}finally{h(!1)}},oe=()=>v.current?.isConnected()??!1,Te=()=>{v.current?.endSession()},$e=()=>{m.current=0,D(!1),W(!1),Z(null)},Ut=()=>{v.current?.on(dA.SYNAPSE_REALTIME_EVENTS.MESSAGE_CHUNK,V=>{const q=V;if(q.data?.text&&q.messageId){L||(gA(!1),AA(!0)),oe()&&eA(qe.CONNECTED),$e();const oA=q.data.text,hA=q.messageId,SA=O.current;O.current=!1,c(FA=>{const jA=FA[FA.length-1];if(jA&&jA.id===hA&&jA.role===bt.ASSISTANT){const LA=SA&&jA.content.length>0&&!/\s$/.test(jA.content)&&!/^\s/.test(oA)?" ":"",YA=L4(jA.segments,oA,LA),TA=[...FA];return TA[TA.length-1]={...jA,content:Ol(YA),segments:YA},TA}else return[...FA,{id:hA,content:oA,segments:[{type:"text",text:oA}],role:bt.ASSISTANT,timestamp:vi(Date.now()),isStored:!1}]})}}),v.current?.on(dA.SYNAPSE_REALTIME_EVENTS.END_OF_STREAM,()=>{O.current=!1,AA(!1),N(null),gA(!1)}),v.current?.on(dA.SYNAPSE_REALTIME_EVENTS.CONNECTED,()=>{$e(),eA(qe.CONNECTED)}),v.current?.on(dA.SYNAPSE_REALTIME_EVENTS.TOOL_CALL,V=>{O.current=!0;const q=V;if(!q?.messageId||!q?.data||!q?.data?.details?.component||!q?.data?.tool_id)return;R&&gA(!1);const{messageId:oA,data:hA}=q,SA=hA.tool_id,FA=`${oA}::${SA}`,LA=WA.getState().elicitationState[FA],YA=hA.details?.component,TA=q?.data?.details?._meta?.tool_result,pt=hA.details?.input,bA=Ex(LA?.ui_input,pt,YA);let te=q.data.details?._meta?.disp_toast_msg;const Ne=hA?.details?._meta?.schema?.required||[];switch(hA?.details?.status){case dA.SYNAPSE_EICITATION_STATUS.PROGRESS:{const xe=q?.data?.details?.input||{},In=Ne.reduce((ln,Gt)=>(xe[Gt]!==void 0&&(ln[Gt]=xe[Gt]),ln),{}),ve={...LA?.server_input||{},...In},KA=Ne.filter(ln=>!ve[ln]),Gi=q.data.details?._meta?.mcp_meta_fields||[];NA(FA,{tool_id:SA,active:!0,disabled:!1,ui_input:bA,server_input:ve,messageId:oA,required:Ne,component:YA,pattern:q.data.details?._meta?.schema?.properties?.[q.data.details?.component]?.pattern,minLength:q.data.details?._meta?.schema?.properties?.[q.data.details?.component]?.minLength,maxLength:q.data.details?._meta?.schema?.properties?.[q.data.details?.component]?.maxLength,type:q.data.details?._meta?.schema?.properties?.[q.data.details?.component]?.type,disp_toast_msg:q.data.details?._meta?.disp_toast_msg,description:q.data.details?._meta?.schema?.properties?.[q.data.details?.component]?.description,tool_result:TA,orientation:q.data.details?._meta?.orientation,...Gi.length&&{mcp_meta_fields:Gi},...KA?{toolSelectionNames:KA}:{}});break}case dA.SYNAPSE_EICITATION_STATUS.SUCCESS:{NA(FA,{...LA||{},tool_id:SA,disabled:!0,active:O4(YA),messageId:oA,component:YA,ui_input:bA,tool_result:TA,send_to_llm:!0});break}case dA.SYNAPSE_EICITATION_STATUS.FAILURE:{NA(FA,{...LA||{},tool_id:SA,active:!1,messageId:oA,response_value:{label:hA?.details?._meta?.disp_message||"Tool call failed"},tool_result:TA,disabled:!0});break}default:NA(FA,{tool_id:SA,disabled:!1,active:!1,messageId:oA,tool_result:TA,ui_input:bA,component:YA})}te&&HA(te),c(xe=>{let ve=xe[xe.length-1]?.id===oA?xe.length-1:xe.findIndex?.(KA=>KA.id===oA);if(ve==-1){const KA={id:oA,content:q.data?.details?.input?.text||"",role:bt.ASSISTANT,tool_keys:[FA],isResponseFromTool:!0,isStored:!1};return[...xe,KA]}else{const KA={...xe[ve],isResponseFromTool:!0,tool_keys:[...new Set([...xe[ve].tool_keys||[],FA])]};xe[ve]=KA,uA(j,oA,KA)}return[...xe]});const mt=q?.data?.details?._meta?.disp_message,sn=WA.getState().elicitationState;if((!sn[FA]?.active||sn[FA]?.send_to_llm)&&(mt||Object.keys(TA||{}).length))try{gt({message:mt||"",tool_result:TA,toolCalled:!0,tool_key:FA})}catch{}}),v.current?.on(dA.SYNAPSE_REALTIME_EVENTS.DISCONNECTED,V=>{V?.reason!==dA.DisconnectionReason.CLIENT_CLOSED&&(m.current<2?(eA(qe.NOT_CONNECTED),m.current=m.current+1,D(!0),Z({title:"Something went wrong!",description:"Please try again."})):(eA(qe.NOT_CONNECTED),Z({title:"Something went wrong!",description:"Please start a new Chat."}),W(!0)))}),v.current?.on(dA.SYNAPSE_REALTIME_EVENTS.ERROR,V=>{switch(V?.data?.code){case dA.SYNAPSE_REALTIME_ERROR_CODES.SESSION_INACTIVE:Z({title:"Session not found",description:"Please start a new session"}),W(!0),U(Ce.IDLE);return;case dA.SYNAPSE_REALTIME_ERROR_CODES.SESSION_TOKEN_MISMATCH:Z({title:"Session not found",description:"Please start a new chat from onError callback"}),W(!0),U(Ce.IDLE);return;case dA.SYNAPSE_REALTIME_ERROR_CODES.INVALID_EVENT:return;case dA.SYNAPSE_REALTIME_ERROR_CODES.INVALID_CONTENT_TYPE:return;case dA.SYNAPSE_REALTIME_ERROR_CODES.PARSING_ERROR:if(m.current<1){m.current++,pr();return}Z({title:"Error parsing request",description:"please try again"}),D(!0),U(Ce.IDLE);return;case dA.SYNAPSE_REALTIME_ERROR_CODES.TIMEOUT:Z({title:"Request timed out",description:"please try again"}),D(!0),U(Ce.IDLE);return;case dA.SYNAPSE_REALTIME_ERROR_CODES.PROMPT_FETCH_ERROR:Z({title:"Something went wrong",description:"please try again"}),D(!0),U(Ce.IDLE);return;case dA.SYNAPSE_REALTIME_ERROR_CODES.INVALID_FILE_REQUEST:Z({title:"Something went wrong",description:"please try again"}),D(!0),U(Ce.IDLE);return;case dA.SYNAPSE_REALTIME_ERROR_CODES.SERVER_ERROR:Z({title:"Something went wrong",description:"please try again"}),D(!0),U(Ce.IDLE);return;default:Z({title:"Something went wrong",description:"please try again"}),D(!0),U(Ce.IDLE);return}}),v.current?.on(dA.SYNAPSE_REALTIME_EVENTS.AUDIO_TRANSCRIPT,async V=>{const q=V;q?.data?.text&&(c(oA=>[...oA,{id:Date.now().toString(),content:q.data.text||"",role:bt.USER,timestamp:vi(Date.now()),isStored:!0}]),U(Ce.IDLE)),AA(!1),gA(!1),N(null)}),v.current?.on(dA.SYNAPSE_REALTIME_EVENTS.PROGRESS_MESSAGE,V=>{O.current=!0;const q=V;q.data?.text&&(gA(!1),N(q.data.text))}),v.current?.on(dA.SYNAPSE_REALTIME_EVENTS.TOOL_START,V=>{O.current=!0;const q=V,oA=q.messageId,hA=q.data?.tool_name;!hA||!oA||c(SA=>{const FA=SA[SA.length-1],jA=FA&&FA.id===oA&&FA.role===bt.ASSISTANT,LA=jA?FA.segments:void 0,YA=k4(LA,hA);if(jA){const TA=[...SA];return TA[TA.length-1]={...FA,segments:YA,content:Ol(YA)},j&&uA(j,oA,{segments:YA,content:Ol(YA)}),TA}return SA})}),v.current?.on(dA.SYNAPSE_REALTIME_EVENTS.TOOL_END,V=>{O.current=!0;const q=V,oA=q.data?.tool_name,hA=q.messageId;!oA||!hA||c(SA=>{const FA=SA[SA.length-1];if(!FA||FA.id!==hA||FA.role!==bt.ASSISTANT||!FA.segments)return SA;const jA=D4(FA.segments,oA),LA=[...SA],YA=Ol(jA);return LA[LA.length-1]={...FA,segments:jA,content:YA},j&&uA(j,hA,{segments:jA,content:YA}),LA})})},gt=async({message:V,files:q,audio:oA,toolCalled:hA,selectedComponent:SA,resend:FA,tool_declined:jA,tool_result:LA,tool_key:YA})=>{if(!oe()){D(!0),Z({title:"Please try again."});return}const TA=WA.getState().elicitationState,pt=Object.values(TA).some(bA=>bA.active);if(!(!hA&&q&&q.length===0&&V?.trim()===""&&!oA?.audio&&!SA&&!pt&&!LA&&!Object.keys(LA||{}).length)){if(q&&q.length>3){Z({title:"Maximum 3 files are allowed to be sent at a time",description:"Please try again"});return}if(q&&q.length>0&&q.reduce((bA,te)=>bA+te.size,0)>10*1024*1024){Z({title:"Total file size limit of 10MB exceeded",description:"Please reduce the size of the files or try again with less files"});return}if(q&&q.length>0&&q.length+nA>Pu){const bA=Pu-nA;Z({title:`You can only upload up to ${Pu} files per session`,description:`${bA<=0?"Maximum file upload limit reached":`You have ${bA} file${bA===1?"":"s"} upload${bA===1?"":"s"} left`}`});return}else q&&q.length&&kA(nA+q.length);Z(null),D(!1),oe()&&eA(qe.CONNECTED);try{const bA=l.length==2&&C.length==2?C:null;let te=null;const Ne=l.length-1,mt=Ne>=0?l[Ne]:null,sn=mt?mt?.isResponseFromTool:null,In=WA.getState().elicitationState,ve=YA||null,KA=ve?In[ve]:void 0,ln=KA?.component===dA.SYNAPSE_COMPONENTS.DOCTOR_CARD||KA?.component===dA.SYNAPSE_COMPONENTS.CARD?!!KA&&!LA:!!KA?.active,Gt=!!(q||[]).length||!!oA?.audio||!!jA||!ln||!hA;if(!Gt&&ln&&ve&&KA?.messageId){const Pe=KA.toolSelectionNames?.length?KA.toolSelectionNames:KA.required?.filter(ne=>!KA.server_input?.[ne])??[],Ft=Pe.reduce((ne,_A)=>{if(SA){const Oe=SA[_A];Oe!==void 0&&(ne[_A]=Oe)}else Pe.length===1&&(ne[_A]=V);return ne},{}),mr=KA.mcp_meta_fields?.reduce((ne,_A)=>(Pe.includes(_A)?ne[_A]=Ft[_A]:KA.server_input?.[_A]&&(ne[_A]=KA.server_input[_A]),FA&&!ne.is_resend&&(ne.is_resend=FA),ne),{}),Ms=Object.keys(KA.server_input||{})?.reduce((ne,_A)=>{const Oe=!Object.keys(mr||{})?.includes(_A),Hn=!!KA.server_input?.[_A];return(FA?Oe&&Hn:Oe&&KA.required?.includes(_A)&&Hn)&&(ne[_A]=KA.server_input?.[_A]),ne},{}),qo=FA?{}:(KA.required||Pe).reduce((ne,_A)=>(Object.keys(mr||{}).includes(_A)||(Ft[_A]!==void 0?ne[_A]=Ft[_A]:SA&&SA[_A]!==void 0&&(ne[_A]=SA[_A])),ne),{}),zi={...Ms||{},...qo,...Object.keys(mr||{}).length&&{mcp_meta_fields:mr}};if(!Object.keys(zi).length)return;await NA(ve,{...KA,server_input:{...KA.server_input||{},...zi}});try{await Cn(KA.tool_id,KA.messageId,zi),te=!0}catch(ne){await v.current?.sendMessage({tool_result:{...KA.tool_result,error:`Tool call failed: ${nr(ne)}`}}),NA(ve,{...KA,active:!1,disabled:!0,response_value:{label:`Tool call failed: ${nr(ne)}`}})}}else{const Pe=KA?.active,Ft=LA??KA?.tool_result;await v.current?.sendMessage({message:V,files:q,audio:oA,...bA&&{initial_prompts:bA},...jA||sn&&!hA||Pe?{tool_id:KA?.tool_id||""}:{},...Ft&&{tool_result:Ft}})}(V||q&&q.length>0||oA?.audio)&&(c(Pe=>te?Pe:[...Pe,{id:Date.now().toString(),content:V||"",files:q||[],audio:oA,role:bt.USER,timestamp:vi(Date.now()),isStored:!1}]),te||gA(!0),te=null);const Dd=WA.getState().elicitationState,Ai=new Set;ve&&Ai.add(ve),ve&&Ai.add(ve),mt?.tool_keys?.forEach(Pe=>Ai.add(Pe)),Ai.forEach(Pe=>{const Ft=Dd[Pe];Ft&&NA(Pe,{...Ft,...Gt&&{active:!1,disabled:!0},...Pe===ve?{response_value:{...Ft?.response_value||{},label:V||""}}:{}})})}catch{}}},an=V=>V.type.toLowerCase()&&!["application/pdf","image/jpeg","image/jpg","image/png"].includes(V.type)?(Z({title:`File type not supported: ${V.name}`,description:"Only PDF, images (JPG, JPEG, PNG) are allowed."}),!1):V.size>3*1024*1024?(Z({title:"File size limit of 3MB exceeded",description:"Please reduce the size of the file or try again with a smaller file"}),!1):!0,ot=async()=>{if(!oe())throw new Error("Not connected to the server");try{await v.current?.startRecording({onChunks:async V=>{U(Ce.PROCESSING),await gt({audio:V}),U(Ce.TRANSCRIBING)},onError(V){U(Ce.IDLE)}}),U(Ce.LISTENING)}catch(V){throw U(Ce.IDLE),V}},Nn=()=>{oe()&&v.current?.endRecording()},Cn=async(V,q,oA)=>{try{if(!oe())throw new Error("Not connected to the server");await v.current?.callTool(V,q,oA)}catch(hA){throw hA}},$r=async()=>{$e(),await M(),await he(!0)},pr=async()=>{if(oe()){eA(qe.CONNECTED);const V=u.current[u.current.length-1];if(V&&V.role===bt.USER)try{v.current?.sendMessage({message:V.content,files:V.files||[],messageId:V.id,audio:V.audio})}catch{}}else if(eA(qe.NOT_CONNECTED),m.current<2){m.current++;const{sessionId:V,sessionToken:q}=WA.getState();await de(V,q)}else m.current===2?(m.current++,D(!0),Z({title:"Trying to connect..."})):(Z({title:"Something went wrong!",description:"Please start a new chat."}),W(!0))};return{sendMessage:gt,startSession:he,incomingMessages:l,loading:f,endSession:Te,isReady:B,startRecording:ot,stopRecording:Nn,handleRetry:pr,isValidFile:an,handleStartNewConnection:$r,callTool:Cn,handleInitialTaskClick:async V=>{if(!_?.suggestions?.length||!V)return;const q=_.suggestions.find(oA=>oA.value===V);if(!q||!q.response){await gt({message:V});return}c(oA=>[...oA,{id:Date.now().toString(),content:V,role:bt.USER,timestamp:vi(Date.now()),isStored:!1}]),gA(!0),await R4(1e3),gA(!1),c(oA=>[...oA,{id:Date.now().toString(),content:q.response||"Please try again",role:bt.ASSISTANT,timestamp:vi(Date.now()),isStored:!1}]),E([{role:"user",text:V},{role:"assistant",text:q.response}])},handleToggleFeedback:async(V,q,oA)=>{if(oe())try{await v.current?.sendFeedback(q,V,oA)}catch{}},clearElicitationState:async(V,q)=>{const oA=WA.getState().elicitationState,hA=V?oA[V]:void 0;try{await gt({message:q||"User aborted elicitation",tool_declined:!0,tool_result:hA?.tool_result,tool_key:V})}catch{}finally{V&&hA&&NA(V,{...hA,active:!1,disabled:!0})}}}},bx=32,xx=100,Sx=320;function Qx(){return typeof window>"u"||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function Ux({messageCount:A,isStreaming:t,isFirstMessage:r,resolvedMode:i}){const s=b.useRef(null),l=b.useRef(null),[c,u]=b.useState(!1),f=b.useRef(null),h=b.useRef(!1),m=b.useRef("auto"),B=b.useRef(!0),w=b.useCallback(()=>s.current?.querySelector("[data-radix-scroll-area-viewport]")||null,[]),C=b.useCallback(F=>Qx()?"auto":F,[]),E=b.useCallback(F=>{const Q=w();Q&&(Q.scrollTo({top:Q.scrollHeight,behavior:C(F)}),u(!1))},[w,C]),v=b.useCallback(F=>{h.current=!0,m.current=F,f.current===null&&(f.current=requestAnimationFrame(()=>{f.current=null,h.current&&(h.current=!1,E(m.current))}))},[E]);return b.useEffect(()=>()=>{f.current!==null&&(cancelAnimationFrame(f.current),f.current=null),h.current=!1},[]),b.useEffect(()=>{if(!A)return;v(t||r?"auto":"smooth")},[A,t,r,v]),b.useEffect(()=>{if(!A||!B.current)return;const F=setTimeout(()=>v("auto"),Sx);return()=>clearTimeout(F)},[i,A,v]),b.useEffect(()=>{let F=!1,Q=null,I=null,O=0;const K=()=>{if(F)return;const j=w(),L=l.current?.parentElement;if(!j||!L){requestAnimationFrame(K);return}const R=()=>{const{scrollTop:nA,scrollHeight:z,clientHeight:lA}=j;return z-nA-lA<=bx};B.current=!0;let _=0;const X=()=>{if(_>0){_--;return}B.current=R()};j.addEventListener("scroll",X,{passive:!0}),I=()=>j.removeEventListener("scroll",X),Q=new ResizeObserver(()=>{if(!B.current)return;const nA=Date.now();nA-O<xx||(O=nA,_++,v("auto"))}),Q.observe(L)};return K(),()=>{F=!0,Q?.disconnect(),I?.()}},[w,v]),{scrollAreaRef:s,messagesEndRef:l,showScrollButton:c,scrollToBottom:E,scheduleScrollToBottom:v}}function Fx({isOpen:A,agentId:t,config:r}){const{state:i,isMuted:s,connect:l,disconnect:c,reset:u,toggleMute:f}=Hb(),h=()=>{i===dA.VOICE_AGENT_STATE.IDLE&&l()},m=i!==dA.VOICE_AGENT_STATE.IDLE,[B,w]=b.useState(""),[C,E]=b.useState(!1),v=WA(bA=>bA.setDisplayMode),[F,Q]=b.useState(r.displayMode==="full"?"full":"widget"),I=()=>Q(bA=>bA==="full"?"widget":"full"),K=dm()?"mobile":F,[j,T]=b.useState([]),L=b.useRef(!1),[R,_]=b.useState(!1),X=b.useRef(null),{setAgentId:nA,startNewConnection:z,showRetryButton:lA,clearError:Z,error:eA,connectionStatus:D,recordingStatus:W,isWaitingForResponse:AA,isStreaming:gA,setError:N,sessionId:U,setContext:M,initialMessage:S,setInitialDisplayMode:aA}=WA(),uA=WA(bA=>bA.elicitationState),{incomingMessages:fA,loading:pA,sendMessage:kA,startSession:HA,isReady:NA,startRecording:de,stopRecording:he,handleRetry:oe,isValidFile:Te,handleToggleFeedback:$e,clearElicitationState:Ut}=vx({environment:r.environment,connectionType:r.connectionType,baseUrl:r.environment==="development"&&r.baseUrl?r.baseUrl:void 0,context:r?.context,...r?.auth&&{auth:r.auth}});b.useEffect(()=>{t&&(X.current!==t&&(Ub(t),Fb(t),nA(t),(r.displayMode==="full"||r.displayMode==="widget")&&(v(r.displayMode),aA(r.displayMode)),r?.context&&Object.keys(r?.context||{}).length&&M(r.context),X.current=t),A&&NA&&!L.current&&(L.current=!0,HA(!1)))},[A,NA,t]),b.useEffect(()=>()=>{c()},[]);const gt=fA.length>0,an=fA.length===1,ot=b.useMemo(()=>{const bA=fA[fA.length-1],te=bA?.tool_keys?.[bA.tool_keys.length-1];if(!te)return null;const Ne=uA[te];return Ne?.active?{...Ne,tool_key:te}:null},[fA,uA]),Cn=(!!S?.text||!!S?.suggestions?.length)&&!fA.some(bA=>bA.role===bt.USER),$r=b.useMemo(()=>ot?ot.component===dA.SYNAPSE_COMPONENTS.MOBILE||ot.component===dA.SYNAPSE_COMPONENTS.OTP||ot.component===dA.SYNAPSE_COMPONENTS.EMAIL:!1,[ot]),{scrollAreaRef:pr,messagesEndRef:ze,showScrollButton:Vi,scrollToBottom:rA,scheduleScrollToBottom:V}=Ux({messageCount:fA.length,isStreaming:gA,isFirstMessage:an,resolvedMode:K}),q=D===dA.ConnectionStatus.CONNECTED,oA=pA||!q||AA||gA,hA=pA||!q,SA=b.useMemo(()=>W===Ce.IDLE?null:W===Ce.LISTENING?"Listening...":W===Ce.PROCESSING?"Processing...":W===Ce.TRANSCRIBING?"Transcribing...":null,[W]),FA=hA?"Connecting...":SA&&W!==Ce.IDLE?SA:AA||gA?"Please wait for the response...":"Type a reply…",jA=async bA=>{if(oA)return;const te=bA?.message??B;(te.trim()||C||R||bA?.resend)&&(j.length>0?(await kA({files:j,message:te.trim()}),T([]),_(!1)):te.trim()?await kA({...bA,message:te.trim()}):bA?.resend&&await kA(bA),w(""),E(!1),_(!1),setTimeout(()=>{V("auto")},100))},LA=bA=>{if(bA&&bA.length>0){const te=bA.filter(Ne=>!!Te(Ne));if(te?.length+j.length>3){N({title:"You can only upload up to 3 files at a time",description:"Please remove some files and try again."});return}if(te?.length>0&&te.reduce((Ne,mt)=>Ne+mt.size,0)>10*1024*1024){N({title:`Total file size limit of ${Jb} MB exceeded`,description:"Please reduce the size of the files or try again with less files"});return}if(te?.length>0)bA=te;else return}T(te=>(_((te?.length??0)+(bA?.length??0)>0),[...te,...bA]))},YA=bA=>{T(te=>{const Ne=te.filter((mt,sn)=>sn!==bA);return _(Ne.length>0),Ne})},TA=async()=>{if(C)await he(),E(!1);else{if(oA)return;try{await de(),E(!0)}catch{}}},pt={value:B,onChange:w,onSend:jA,onFileChange:LA,onRemoveFile:YA,onRecording:TA,isRecording:C,hasAttachment:R,attachmentFiles:j,isDisabled:oA,placeholder:FA,recordingStatus:W,allowed:r.allowed,isVoiceAgentActive:m,handleVoiceMode:h};return{inputValue:B,setInputValue:w,isRecording:C,hasAttachment:R,attachmentFiles:j,showScrollButton:Vi,displayMode:F,setDisplayMode:Q,toggleDisplayMode:I,resolvedMode:K,currentDisplayMode:F,setCurrentDisplayMode:Q,scrollAreaRef:pr,messagesEndRef:ze,startNewConnection:z,showRetryButton:lA,clearError:Z,error:eA,connectionStatus:D,isStreaming:gA,sessionId:U,activeElicitation:ot,inConversation:gt,isFirstMessage:an,isEmptyChat:Cn,isAuthComponent:$r,isConnected:q,isComposerDisabled:oA,loading:pA,initialMessage:S,incomingMessages:fA,sendMessage:kA,startSession:HA,handleToggleFeedback:$e,clearElicitationState:Ut,handleRetry:oe,handleSendMessage:jA,handleFileChange:LA,handleRemoveFile:YA,handleRecording:TA,scrollToBottom:rA,scheduleScrollToBottom:V,chatComposerProps:pt,voiceAgentState:i,isMuted:s,isVoiceAgentActive:m,connectVoiceAgent:l,disconnectVoiceAgent:c,resetVoiceAgent:u,toggleMute:f,handleVoiceAgentClick:h}}const Tx=b.lazy(()=>Promise.resolve().then(()=>E6)),Nx=b.lazy(()=>Promise.resolve().then(()=>x6)),Cm=b.lazy(()=>Promise.resolve().then(()=>Q6).then(A=>({default:A.ConnectionStatus})));function Ix({isOpen:A,agentId:t,config:r}){const{toggleDisplayMode:i,resolvedMode:s,scrollAreaRef:l,messagesEndRef:c,showScrollButton:u,startNewConnection:f,showRetryButton:h,clearError:m,error:B,sessionId:w,activeElicitation:C,isAuthComponent:E,isConnected:v,loading:F,inConversation:Q,isFirstMessage:I,isEmptyChat:O,incomingMessages:K,sendMessage:j,startSession:T,handleToggleFeedback:L,clearElicitationState:R,handleRetry:_,scrollToBottom:X,chatComposerProps:nA,initialMessage:z,isComposerDisabled:lA,voiceAgentState:Z,isMuted:eA,isVoiceAgentActive:D,disconnectVoiceAgent:W,resetVoiceAgent:AA,toggleMute:gA}=Fx({isOpen:A,agentId:t,config:r});return g.jsx(Pb,{enabled:!!r.resize,children:g.jsx(pm,{isOpen:A,onClose:r.onClose,showCloseButton:r.showCloseButton,title:r.title,showStartNewChatButton:f,titleImg:r.theme?.titleImg,tagline:r.theme?.tagline,iconUrl:r.iconUrl,onStartNewSession:()=>T(!0),sessionId:w,environment:r.environment,mode:s,onToggleDisplayMode:r.resize?i:void 0,theme:r.theme,isAuthComponent:E,activeElicitation:C,voiceAgentState:Z,chatComposer:nA,fullScreenEmptyState:O?N=>g.jsx(mx,{title:r.title,description:z?.text,suggestions:z?.suggestions,onSendMessage:j,disabled:lA,composer:N.composer,composerFooter:N.composerFooter,connectionBanner:g.jsx(Cm,{onRetry:_,showRetryButton:h,startNewConnection:f,clearError:m,error:B,isConnected:v})}):void 0,children:D?g.jsx(gx,{state:Z,isMuted:eA,onEndCall:W,onClose:AA,onToggleMute:gA,agentName:r.title,iconUrl:r.iconUrl,textColor:r.theme?.textColor}):!F&&g.jsx(b.Suspense,{fallback:g.jsx(Hx,{}),children:g.jsxs("div",{className:mA("flex-1 flex flex-col min-h-0 overflow-hidden relative synapse-chat-window"),children:[g.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col overflow-hidden",children:[g.jsxs(Tp,{ref:l,className:"flex-1 min-h-0 [&>[data-radix-scroll-area-viewport]>div]:!flex [&>[data-radix-scroll-area-viewport]>div]:flex-col [&>[data-radix-scroll-area-viewport]>div]:min-h-full",children:[g.jsx("div",{className:"flex-1"}),g.jsxs("div",{className:mA("transition-all duration-300 min-w-0 overflow-x-hidden",Q?"p-4 space-y-3":"p-4 space-y-4",s==="full"&&"max-w-2xl mx-auto w-full"),children:[I&&g.jsx("div",{className:"text-xs text-[var(--color-muted-foreground)] text-center mb-2",children:"Just now"}),!I&&g.jsx("div",{className:"text-xs text-[var(--color-muted-foreground)] text-center",children:new Date().toLocaleString("en-US",{weekday:"long",hour:"2-digit",minute:"2-digit",hour12:!0})}),g.jsx(Tx,{messages:K,onSendMessage:j,iconUrl:r.iconUrl,onToggleFeedback:L,onClearElicitationState:R,isAuthComponent:E,isFullScreen:s==="full"}),g.jsx("div",{ref:c})]})]}),g.jsx(b.Suspense,{fallback:null,children:g.jsx(Nx,{})})]}),u&&g.jsx("div",{className:"absolute bottom-[10px] left-1/2 transform -translate-x-1/2 z-10",children:g.jsx(VA,{onClick:()=>X("smooth"),size:"icon",className:"h-10 w-10 rounded-full bg-surface/90 backdrop-blur-sm shadow-lg border border-border-subtle hover:bg-surface hover:shadow-xl transition-all duration-200",children:g.jsx(es,{className:"w-5 h-5 text-text-primary"})})}),g.jsx(Cm,{className:"mt-2",onRetry:_,showRetryButton:h,startNewConnection:f,clearError:m,error:B,isConnected:v})]})})})})}function Hx(){return g.jsxs("div",{className:"flex-1 flex flex-col min-h-0 overflow-hidden bg-surface backdrop-blur-2xl animate-pulse",children:[g.jsxs("div",{className:"flex-1 p-6 space-y-4",children:[g.jsx("div",{className:"h-16 bg-surface/80 rounded-2xl border border-border-subtle/50"}),g.jsx("div",{className:"h-16 bg-surface/80 rounded-2xl border border-border-subtle/50"}),g.jsx("div",{className:"h-16 bg-surface/80 rounded-2xl border border-border-subtle/50"})]}),g.jsx("div",{className:"h-24 border-t border-border-subtle bg-surface/80"})]})}function Ju(A){if(A instanceof Error)return A;if(typeof A=="string")return new Error(A);try{return new Error(JSON.stringify(A))}catch{return new Error("Unknown error")}}class _x extends b.Component{state={error:null};static getDerivedStateFromError(t){return{error:Ju(t)}}componentDidCatch(t,r){this.setState({componentStack:r?.componentStack})}render(){return this.state.error?g.jsx(Rx,{error:this.state.error,componentStack:this.state.componentStack,title:this.props.title,titleImg:this.props.titleImg,iconUrl:this.props.iconUrl,onClose:this.props.onClose,showCloseButton:this.props.showCloseButton,environment:this.props.environment,displayMode:this.props.displayMode,theme:this.props.theme}):this.props.children}}function Mx({error:A}){throw A}function Ox(A){const[t,r]=b.useState(null);return b.useEffect(()=>{if(typeof window>"u")return;const i=l=>{!l?.error&&!l?.filename&&l?.message==="Script error."||(l?.error?r(Ju(l.error)):l?.message&&r(new Error(l.message)))},s=l=>{r(Ju(l.reason))};return window.addEventListener("error",i),window.addEventListener("unhandledrejection",s),()=>{window.removeEventListener("error",i),window.removeEventListener("unhandledrejection",s)}},[]),g.jsx(_x,{...A,children:t?g.jsx(Mx,{error:t}):A.children})}function Rx({error:A,title:t,titleImg:r,iconUrl:i,onClose:s,showCloseButton:l,environment:c,displayMode:u,theme:f}){const h=()=>{typeof window<"u"&&window.location.reload()},m=t??"Medi Clinic",B=c??"production",w=b.useMemo(()=>f?.textColor==="white"?"text-white/60":"text-[var(--color-muted-foreground)]",[f?.textColor]);return g.jsx(pm,{isOpen:!0,onClose:s??(()=>{}),showCloseButton:l??!1,onStartNewSession:h,title:m,titleImg:r,iconUrl:i,environment:B,mode:u??"widget",theme:f,children:g.jsx("div",{className:"flex-1 min-h-0 overflow-hidden flex flex-col",children:g.jsx("div",{className:"flex-1 min-h-0 flex items-center justify-center p-6",children:g.jsxs("div",{className:"w-full max-w-[320px] text-center",children:[g.jsx("div",{className:"mx-auto mb-4 grid place-items-center",children:g.jsx("div",{className:"h-16 w-16 rounded-3xl bg-surface backdrop-blur border border-border-subtle grid place-items-center",children:g.jsx(Eb,{className:"h-8 w-8",style:{color:f?.primary??"hsl(var(--primary))"}})})}),g.jsx("div",{className:"text-2xl font-semibold text-text-primary",children:"Uh-oh!"}),g.jsx("div",{className:["mt-2 text-sm",w].join(" "),children:"Something went wrong. Please try again."}),g.jsx("div",{className:["mt-4 rounded-2xl border border-border-subtle/60 bg-surface/60 backdrop-blur px-4 py-3","text-left text-[11px] leading-relaxed font-mono whitespace-pre-wrap break-words",w].join(" "),children:A?.message||String(A)}),g.jsx("div",{className:"mt-5 flex items-center justify-center gap-3",children:g.jsxs(VA,{type:"button",onClick:h,className:"rounded-2xl",style:{backgroundColor:f?.primary??void 0},children:[g.jsx(wb,{className:"h-4 w-4 mr-2"}),"Retry"]})})]})})})})}function Lx({agentId:A,config:t}){const[r,i]=b.useState(!1);b.useEffect(()=>{i(!0)},[]);const s=()=>{i(!1),t?.onClose?.()};return g.jsx(Ox,{title:t.title??"Medi Clinic",titleImg:t.theme?.titleImg,iconUrl:t.iconUrl??"https://cdn.eka.care/bot-icon.svg",onClose:s,showCloseButton:t.showCloseButton,environment:t.environment??"production",displayMode:t.displayMode,theme:t.theme,children:g.jsx(Tb,{children:g.jsx(Ix,{isOpen:r,agentId:A,config:{...t,environment:t.environment??"production",onClose:s,title:t.title??"Medi Clinic",iconUrl:t.iconUrl??"https://cdn.eka.care/bot-icon.svg",theme:t.theme}})})})}const wm=(A,t,r)=>{const i=r||{},s=n2.createRoot(A);return s.render(g.jsx(b.StrictMode,{children:g.jsx(Lx,{agentId:t,config:i})})),s};typeof window<"u"&&(window.renderMedAssist=wm);const Zu=b.forwardRef(({className:A,...t},r)=>g.jsx("textarea",{className:mA("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",A),ref:r,...t}));Zu.displayName="Textarea";function ym({file:A,onRemove:t,isPreview:r=!0,className:i=""}){const[s,l]=b.useState(!1),[c,u]=b.useState(""),f=A?.type?.startsWith("image/")??!1,h=A?.type==="application/pdf";b.useEffect(()=>{if(f){const w=URL.createObjectURL(A);return u(w),()=>URL.revokeObjectURL(w)}},[A,f]),b.useEffect(()=>{l(!1)},[A]);const m=()=>f?"text-green-600":"text-text-secondary",B=w=>{if(w===0)return"0 B";const C=1024,E=["B","KB","MB","GB"],v=Math.floor(Math.log(w)/Math.log(C));return`${(w/Math.pow(C,v)).toFixed(1)} ${E[v]}`.toLowerCase()};return!f||s?g.jsxs("div",{className:`relative group inline-flex flex-shrink-0 bg-white border border-neutral-300 rounded-lg flex items-center gap-3 px-3 py-2.5 max-w-full ${r?"hover:bg-neutral-50":""} ${i}`,children:[g.jsx("div",{className:`flex-shrink-0 ${m()}`,children:g.jsx(ob,{className:"h-5 w-5"})}),g.jsxs("div",{className:"flex-1 min-w-0 max-w-[200px]",children:[A?.name&&g.jsx("div",{className:"text-sm font-medium text-[var(--color-foreground)] truncate",children:A.name}),A?.size&&g.jsx("div",{className:"text-xs text-[var(--color-muted-foreground)]",children:B(A.size)})]}),r&&t&&g.jsx("button",{onClick:t,"aria-label":`Remove ${A.name}`,className:"flex-shrink-0 flex items-center justify-center w-5 h-5 text-[var(--color-muted-foreground)] hover:text-[var(--color-foreground)] transition-colors",children:g.jsx(ts,{className:"h-4 w-4"})})]}):g.jsxs("div",{className:`relative group flex-shrink-0 ${i}`,children:[g.jsx("div",{className:`w-20 h-20 bg-white border border-neutral-300 rounded-lg flex items-center justify-center overflow-hidden ${r?"hover:bg-neutral-100 cursor-pointer":""}`,children:c&&g.jsx("img",{src:c,alt:A.name,className:"w-full h-full object-cover",onError:()=>l(!0)})}),r&&t&&g.jsx("button",{onClick:t,"aria-label":`Remove ${A.name}`,className:"absolute top-0 right-0 bg-[var(--color-muted)] text-black rounded-full w-5 h-5 flex items-center justify-center hover:bg-[var(--color-muted-foreground)] transition-colors z-10 transform translate-x-1 -translate-y-1",children:g.jsx(ts,{className:"h-3 w-3 text-black"})})]})}function Wu({files:A,onRemoveFile:t,isPreview:r=!0,className:i=""}){if(A.length===0)return null;const s=A.filter(c=>c.type?.startsWith("image/")),l=A.filter(c=>!c.type?.startsWith("image/"));return g.jsxs("div",{className:`flex flex-wrap justify-end gap-2 max-w-full ${i}`,children:[l.map(c=>{const u=A.indexOf(c);return g.jsx(ym,{file:c,onRemove:t?()=>t(u):void 0,isPreview:r},`${c.name}-${c.size}-${u}`)}),s.length>0&&g.jsx("div",{className:"flex gap-2 overflow-x-auto max-w-full p-1 scrollbar-hide",children:s.map(c=>{const u=A.indexOf(c);return g.jsx(ym,{file:c,onRemove:t?()=>t(u):void 0,isPreview:r},`${c.name}-${c.size}-${u}`)})})]})}const ns=({className:A})=>g.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:A,children:g.jsx("path",{d:"M1.46875 0.09375L16.3125 6.9375C16.75 7.125 17 7.53125 17 8C17 8.46875 16.75 8.875 16.3125 9.0625L1.46875 15.9062C1.3125 15.9688 1.1875 16 1.03125 16C0.46875 16 0 15.5312 0 14.9688C0 14.8125 0.03125 14.6875 0.09375 14.5625L2.34375 9.5C2.5 9.15625 2.8125 8.9375 3.15625 8.90625L8.0625 8.46875C8.3125 8.46875 8.5 8.25 8.5 8C8.5 7.75 8.3125 7.5625 8.0625 7.53125L3.15625 7.09375C2.8125 7.0625 2.5 6.84375 2.34375 6.5L0.09375 1.4375C0.03125 1.3125 0 1.1875 0 1.03125C0 0.46875 0.46875 0 1.03125 0C1.1875 0 1.3125 0.03125 1.46875 0.09375Z",fill:"currentColor"})}),$u=b.forwardRef(({className:A,type:t,...r},i)=>{const s=A&&typeof A=="string"&&A.includes("placeholder:");return g.jsx("input",{type:t,className:mA("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",!s&&"placeholder:text-muted-foreground",A),ref:i,...r})});$u.displayName="Input";const Dx=()=>g.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{display:"block"},"aria-hidden":"true",children:[g.jsx("g",{clipPath:"url(#circleClip)",children:g.jsxs("g",{children:[g.jsx("path",{d:"M15.9766 0.0234375V5.31055H0.0234375V0.0234375H15.9766Z",fill:"#FF9933",stroke:"#1A1A1A","stroke-width":"0.046875"}),g.jsx("path",{d:"M15.9766 5.35779V10.642H0.0234375V5.35779H15.9766Z",fill:"white",stroke:"#1A1A1A","stroke-width":"0.046875"}),g.jsx("path",{d:"M0 10.6656H16V16H0V10.6656Z",fill:"#128807"}),g.jsx("path",{d:"M8.00101 10.1334C9.17921 10.1334 10.1343 9.17824 10.1343 8.00003C10.1343 6.82182 9.17921 5.8667 8.00101 5.8667C6.8228 5.8667 5.86768 6.82182 5.86768 8.00003C5.86768 9.17824 6.8228 10.1334 8.00101 10.1334Z",fill:"#000088"}),g.jsx("path",{d:"M8.00143 9.86663C9.03236 9.86663 9.8681 9.0309 9.8681 7.99997C9.8681 6.96904 9.03236 6.1333 8.00143 6.1333C6.9705 6.1333 6.13477 6.96904 6.13477 7.99997C6.13477 9.0309 6.9705 9.86663 8.00143 9.86663Z",fill:"white"}),g.jsx("path",{d:"M8.00126 8.37325C8.20745 8.37325 8.3746 8.20611 8.3746 7.99992C8.3746 7.79373 8.20745 7.62659 8.00126 7.62659C7.79508 7.62659 7.62793 7.79373 7.62793 7.99992C7.62793 8.20611 7.79508 8.37325 8.00126 8.37325Z",fill:"#000088"}),g.jsx("path",{d:"M9.84014 8.33936C9.8927 8.34628 9.94093 8.30928 9.94785 8.25671C9.95477 8.20415 9.91776 8.15593 9.8652 8.14901C9.81263 8.14208 9.76441 8.17909 9.75749 8.23165C9.75057 8.28422 9.78757 8.33244 9.84014 8.33936Z",fill:"#000088"}),g.jsx("path",{d:"M8.00199 9.86647L8.06599 8.74647L8.00199 8.21313L7.93799 8.74647L8.00199 9.86647Z",fill:"#000088"}),g.jsx("path",{d:"M9.69246 8.8036C9.74145 8.82389 9.7976 8.80063 9.81789 8.75165C9.83818 8.70266 9.81492 8.6465 9.76594 8.62622C9.71696 8.60593 9.6608 8.62919 9.64051 8.67817C9.62022 8.72715 9.64348 8.78331 9.69246 8.8036Z",fill:"#000088"}),g.jsx("path",{d:"M7.52209 9.80289L7.87379 8.73762L7.95 8.2059L7.75015 8.70449L7.52209 9.80289Z",fill:"#000088"}),g.jsx("path",{d:"M9.4251 9.21296C9.46716 9.24524 9.52743 9.2373 9.5597 9.19524C9.59198 9.15318 9.58405 9.09291 9.54198 9.06064C9.49992 9.02836 9.43966 9.0363 9.40738 9.07836C9.3751 9.12042 9.38304 9.18069 9.4251 9.21296Z",fill:"#000088"}),g.jsx("path",{d:"M7.06958 9.61654L7.68501 8.67859L7.89625 8.18471L7.57415 8.61459L7.06958 9.61654Z",fill:"#000088"}),g.jsx("path",{d:"M9.06041 9.53972C9.09269 9.58179 9.15295 9.58972 9.19502 9.55744C9.23708 9.52517 9.24501 9.4649 9.21274 9.42284C9.18046 9.38078 9.1202 9.37284 9.07814 9.40512C9.03607 9.4374 9.02814 9.49766 9.06041 9.53972Z",fill:"#000088"}),g.jsx("path",{d:"M6.68086 9.31981L7.51807 8.5731L7.84994 8.15072L7.42756 8.48259L6.68086 9.31981Z",fill:"#000088"}),g.jsx("path",{d:"M8.6284 9.76153C8.64869 9.81052 8.70484 9.83378 8.75383 9.81349C8.80281 9.7932 8.82607 9.73704 8.80578 9.68806C8.78549 9.63907 8.72933 9.61581 8.68035 9.6361C8.63137 9.65639 8.60811 9.71255 8.6284 9.76153Z",fill:"#000088"}),g.jsx("path",{d:"M6.38679 8.93324L7.38874 8.42867L7.81862 8.10657L7.32474 8.31781L6.38679 8.93324Z",fill:"#000088"}),g.jsx("path",{d:"M8.14737 9.86316C8.15429 9.91573 8.20251 9.95273 8.25508 9.94581C8.30764 9.93889 8.34465 9.89066 8.33773 9.8381C8.33081 9.78553 8.28258 9.74853 8.23002 9.75545C8.17745 9.76237 8.14045 9.81059 8.14737 9.86316Z",fill:"#000088"}),g.jsx("path",{d:"M6.19642 8.4829L7.29482 8.25484L7.79342 8.05498L7.2617 8.1312L6.19642 8.4829Z",fill:"#000088"}),g.jsx("path",{d:"M7.66381 9.83806C7.65689 9.89063 7.69389 9.93885 7.74646 9.94577C7.79903 9.95269 7.84725 9.91569 7.85417 9.86312C7.86109 9.81056 7.82409 9.76233 7.77152 9.75541C7.71895 9.74849 7.67073 9.7855 7.66381 9.83806Z",fill:"#000088"}),g.jsx("path",{d:"M6.13671 7.99991L7.25671 8.06391L7.79004 7.99991L7.25671 7.93591L6.13671 7.99991Z",fill:"#000088"}),g.jsx("path",{d:"M7.20092 9.68758C7.18063 9.73656 7.20389 9.79272 7.25287 9.81301C7.30185 9.8333 7.35801 9.81004 7.3783 9.76106C7.39859 9.71207 7.37533 9.65592 7.32635 9.63563C7.27736 9.61534 7.22121 9.6386 7.20092 9.68758Z",fill:"#000088"}),g.jsx("path",{d:"M6.20138 7.51684L7.26665 7.86854L7.79838 7.94475L7.29978 7.7449L6.20138 7.51684Z",fill:"#000088"}),g.jsx("path",{d:"M6.79363 9.42217C6.76135 9.46423 6.76929 9.5245 6.81135 9.55677C6.85341 9.58905 6.91368 9.58112 6.94595 9.53905C6.97823 9.49699 6.9703 9.43673 6.92823 9.40445C6.88617 9.37217 6.82591 9.38011 6.79363 9.42217Z",fill:"#000088"}),g.jsx("path",{d:"M6.39018 7.06677L7.32812 7.6822L7.822 7.89344L7.39212 7.57135L6.39018 7.06677Z",fill:"#000088"}),g.jsx("path",{d:"M6.46467 9.05968C6.42261 9.09196 6.41467 9.15222 6.44695 9.19428C6.47923 9.23635 6.53949 9.24428 6.58155 9.21201C6.62362 9.17973 6.63155 9.11947 6.59927 9.0774C6.567 9.03534 6.50673 9.02741 6.46467 9.05968Z",fill:"#000088"}),g.jsx("path",{d:"M6.68459 6.68013L7.43129 7.51734L7.85367 7.84921L7.5218 7.42683L6.68459 6.68013Z",fill:"#000088"}),g.jsx("path",{d:"M6.24115 8.6251C6.19217 8.64539 6.16891 8.70155 6.1892 8.75053C6.20949 8.79951 6.26564 8.82277 6.31463 8.80248C6.36361 8.7822 6.38687 8.72604 6.36658 8.67705C6.34629 8.62807 6.29014 8.60481 6.24115 8.6251Z",fill:"#000088"}),g.jsx("path",{d:"M7.06908 6.38338L7.57365 7.38532L7.89575 7.8152L7.68451 7.32132L7.06908 6.38338Z",fill:"#000088"}),g.jsx("path",{d:"M6.14294 8.14786C6.09038 8.15478 6.05338 8.203 6.0603 8.25557C6.06722 8.30813 6.11544 8.34513 6.168 8.33821C6.22057 8.33129 6.25757 8.28307 6.25065 8.2305C6.24373 8.17794 6.19551 8.14094 6.14294 8.14786Z",fill:"#000088"}),g.jsx("path",{d:"M7.52345 6.19703L7.75151 7.29543L7.95136 7.79403L7.87515 7.26231L7.52345 6.19703Z",fill:"#000088"}),g.jsx("path",{d:"M6.17061 7.66052C6.11804 7.6536 6.06982 7.6906 6.0629 7.74316C6.05598 7.79573 6.09298 7.84395 6.14554 7.85087C6.19811 7.85779 6.24633 7.82079 6.25325 7.76822C6.26017 7.71566 6.22317 7.66744 6.17061 7.66052Z",fill:"#000088"}),g.jsx("path",{d:"M8.00875 6.13341L7.94475 7.25341L8.00875 7.78674L8.07275 7.25341L8.00875 6.13341Z",fill:"#000088"}),g.jsx("path",{d:"M6.32316 7.19628C6.27418 7.17599 6.21802 7.19925 6.19773 7.24823C6.17744 7.29722 6.2007 7.35337 6.24969 7.37366C6.29867 7.39395 6.35483 7.37069 6.37512 7.32171C6.39541 7.27272 6.37215 7.21657 6.32316 7.19628Z",fill:"#000088"}),g.jsx("path",{d:"M8.49354 6.19699L8.14184 7.26226L8.06562 7.79398L8.26548 7.29539L8.49354 6.19699Z",fill:"#000088"}),g.jsx("path",{d:"M6.58174 6.78692C6.53967 6.75464 6.47941 6.76257 6.44713 6.80464C6.41486 6.8467 6.42279 6.90696 6.46485 6.93924C6.50692 6.97152 6.56718 6.96358 6.59946 6.92152C6.63173 6.87946 6.6238 6.81919 6.58174 6.78692Z",fill:"#000088"}),g.jsx("path",{d:"M8.93726 6.38334L8.32183 7.32129L8.11059 7.81517L8.43268 7.38529L8.93726 6.38334Z",fill:"#000088"}),g.jsx("path",{d:"M6.94642 6.46015C6.91415 6.41809 6.85388 6.41016 6.81182 6.44243C6.76976 6.47471 6.76182 6.53497 6.7941 6.57704C6.82637 6.6191 6.88664 6.62703 6.9287 6.59476C6.97076 6.56248 6.9787 6.50222 6.94642 6.46015Z",fill:"#000088"}),g.jsx("path",{d:"M9.32598 6.68007L8.48876 7.42678L8.15689 7.84915L8.57927 7.51729L9.32598 6.68007Z",fill:"#000088"}),g.jsx("path",{d:"M7.37649 6.23847C7.3562 6.18948 7.30004 6.16622 7.25106 6.18651C7.20207 6.2068 7.17881 6.26296 7.1991 6.31194C7.21939 6.36093 7.27555 6.38419 7.32453 6.3639C7.37352 6.34361 7.39678 6.28745 7.37649 6.23847Z",fill:"#000088"}),g.jsx("path",{d:"M9.61809 7.06676L8.61614 7.57133L8.18626 7.89343L8.68014 7.68219L9.61809 7.06676Z",fill:"#000088"}),g.jsx("path",{d:"M7.85751 6.13684C7.85059 6.08427 7.80237 6.04727 7.74981 6.05419C7.69724 6.06111 7.66024 6.10934 7.66716 6.1619C7.67408 6.21447 7.7223 6.25147 7.77487 6.24455C7.82743 6.23763 7.86443 6.18941 7.85751 6.13684Z",fill:"#000088"}),g.jsx("path",{d:"M9.80846 7.5171L8.71006 7.74516L8.21146 7.94502L8.74319 7.8688L9.80846 7.5171Z",fill:"#000088"}),g.jsx("path",{d:"M8.34302 6.16194C8.34994 6.10937 8.31294 6.06115 8.26038 6.05423C8.20781 6.04731 8.15959 6.08431 8.15267 6.13688C8.14575 6.18944 8.18275 6.23767 8.23532 6.24459C8.28788 6.25151 8.3361 6.2145 8.34302 6.16194Z",fill:"#000088"}),g.jsx("path",{d:"M9.87013 8.00009L8.75013 7.93609L8.2168 8.00009L8.75013 8.06409L9.87013 8.00009Z",fill:"#000088"}),g.jsx("path",{d:"M8.80592 6.31242C8.82621 6.26344 8.80295 6.20728 8.75396 6.18699C8.70498 6.1667 8.64882 6.18996 8.62853 6.23894C8.60824 6.28793 8.63151 6.34408 8.68049 6.36437C8.72947 6.38466 8.78563 6.3614 8.80592 6.31242Z",fill:"#000088"}),g.jsx("path",{d:"M9.80545 8.48316L8.74018 8.13146L8.20846 8.05525L8.70705 8.2551L9.80545 8.48316Z",fill:"#000088"}),g.jsx("path",{d:"M9.21614 6.57795C9.24841 6.53589 9.24048 6.47562 9.19842 6.44335C9.15635 6.41107 9.09609 6.41901 9.06381 6.46107C9.03154 6.50313 9.03947 6.5634 9.08153 6.59567C9.1236 6.62795 9.18386 6.62001 9.21614 6.57795Z",fill:"#000088"}),g.jsx("path",{d:"M9.61959 8.93335L8.68164 8.31792L8.18776 8.10668L8.61764 8.42878L9.61959 8.93335Z",fill:"#000088"}),g.jsx("path",{d:"M9.53875 6.94044C9.58081 6.90816 9.58874 6.8479 9.55647 6.80584C9.52419 6.76377 9.46393 6.75584 9.42186 6.78812C9.3798 6.82039 9.37187 6.88066 9.40414 6.92272C9.43642 6.96478 9.49668 6.97272 9.53875 6.94044Z",fill:"#000088"}),g.jsx("path",{d:"M9.31883 9.31999L8.57213 8.48278L8.14975 8.15091L8.48162 8.57329L9.31883 9.31999Z",fill:"#000088"}),g.jsx("path",{d:"M9.76715 7.37502C9.81613 7.35473 9.83939 7.29858 9.8191 7.24959C9.79881 7.20061 9.74266 7.17735 9.69367 7.19764C9.64469 7.21793 9.62143 7.27408 9.64172 7.32307C9.66201 7.37205 9.71816 7.39531 9.76715 7.37502Z",fill:"#000088"}),g.jsx("path",{d:"M8.93922 9.61662L8.43465 8.61468L8.11255 8.1848L8.3238 8.67868L8.93922 9.61662Z",fill:"#000088"}),g.jsx("path",{d:"M9.86682 7.85227C9.91939 7.84534 9.95639 7.79712 9.94947 7.74456C9.94255 7.69199 9.89433 7.65499 9.84176 7.66191C9.78919 7.66883 9.75219 7.71705 9.75911 7.76962C9.76603 7.82218 9.81426 7.85919 9.86682 7.85227Z",fill:"#000088"}),g.jsx("path",{d:"M8.48631 9.80309L8.25826 8.70469L8.0584 8.20609L8.13462 8.73782L8.48631 9.80309Z",fill:"#000088"})]})}),g.jsx("defs",{children:g.jsx("clipPath",{id:"circleClip",children:g.jsx("circle",{cx:"8",cy:"8",r:"8"})})})]}),kx="+91";function jx(A){const t=A.replace(/\D/g,""),r=t.slice(0,5),i=t.slice(5,10);return i?`${r} ${i}`:r}function Kx({value:A,onChange:t,onKeyDown:r,disabled:i,theme:s,isMobile:l,maxLength:c,isMobileValid:u,onSend:f}){return g.jsxs("div",{className:"px-2 pt-3 pb-2 space-y-2 w-full",children:[g.jsx("p",{className:"px-1 text-xs font-semibold tracking-wide text-foreground uppercase",children:"Enter your mobile number"}),g.jsxs("div",{className:"flex items-center gap-2 w-full",children:[g.jsxs("div",{className:mA("inline-flex items-center gap-2 rounded-full px-3 shrink-0 py-2 min-h-[56px]",i&&"opacity-60",s?.textColor==="white"?"bg-white-100":"bg-black-100"),style:{fontSize:l?"16px":"14px"},children:[g.jsx(Dx,{}),g.jsx("span",{className:"text-sm font-medium text-foreground",children:kx}),g.jsx(es,{className:"h-4 w-4 text-muted-foreground","aria-hidden":!0})]}),g.jsxs("div",{className:mA("flex items-center gap-1 rounded-full px-2 py-2 flex-1 min-w-0",i&&"opacity-60",s?.textColor==="white"?"bg-white-100":"bg-black-100"),children:[g.jsx($u,{type:"tel",autoComplete:"tel-national",value:jx(A),onChange:t,onKeyDown:r,placeholder:"88888 88888",className:mA("w-full h-full shadow-none border-0 outline-none focus-visible:ring-0 focus-visible:ring-offset-0","text-sm placeholder:text-muted-foreground/40 bg-transparent","disabled:cursor-not-allowed rounded-none break-words overflow-wrap-anywhere whitespace-pre-wrap","text-foreground px-3 py-2 pr-11 min-h-[40px]"),style:{fontSize:l?"16px":"14px"},maxLength:c?c+1:void 0,inputMode:"numeric",autoFocus:!i,disabled:i}),g.jsx(VA,{type:"button",size:"icon",onClick:f,disabled:i||!u,variant:"ghost",className:`h-10 w-10 ${u?"bg-primary":"bg-none"} hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100`,title:u?"Submit mobile number":"Enter a valid mobile number","aria-label":u?"Submit mobile number":"Enter a valid mobile number",children:g.jsx(ns,{className:`w-4 h-4 ${u?"text-primary-foreground":"text-primary"}`})})]})]})]})}const Vx=6,Gx=30,zx=(A,t)=>A.disabled===t.disabled&&A.isMobile===t.isMobile&&A.validation?.pattern===t.validation?.pattern&&A.validation?.minLength===t.validation?.minLength&&A.validation?.maxLength===t.validation?.maxLength&&A.serverMessage===t.serverMessage&&A.theme?.textColor===t.theme?.textColor;function Px({disabled:A,isMobile:t,validation:r,onSubmit:i,onResendOtp:s,serverMessage:l}){const c=b.useRef([]),[u,f]=b.useState(0),[h,m]=b.useState(!1),B=b.useRef(!1),w=b.useRef(i),C=b.useRef(s),E=r?.maxLength??Vx,v=b.useMemo(()=>new RegExp(r?.pattern??`^\\d{${E}}$`),[r?.pattern,E]);b.useEffect(()=>{w.current=i},[i]),b.useEffect(()=>{C.current=s},[s]),b.useEffect(()=>{if(!l)return;const z=l.toLowerCase();z.includes("otp")&&(z.includes("invalid")||z.includes("incorrect")||z.includes("wrong"))&&(B.current=!1,m(!1))},[l]);const F=b.useCallback(()=>c.current.map(z=>z?.value.replace(/\D/g,"").slice(-1)??""),[]),Q=b.useCallback(()=>{const z=F().join(""),lA=z.length===E&&v.test(z);B.current!==lA&&(B.current=lA,m(lA))},[E,v,F]),I=b.useCallback(z=>{z<E-1&&c.current[z+1]?.focus()},[E]),O=b.useCallback(z=>{z>0&&c.current[z-1]?.focus()},[]),K=b.useMemo(()=>Array.from({length:E},(z,lA)=>lA),[E]),j=b.useCallback(z=>{for(let Z=0;Z<E;Z++){const eA=c.current[Z];eA&&(eA.value=z[Z]??"")}Q();const lA=Math.min(z.length,E-1);c.current[lA]?.focus()},[Q,E]),T=b.useCallback((z,lA)=>{const Z=lA.target.value.replace(/\D/g,"");if(Z.length>1){j(Z.slice(0,E));return}const eA=Z.slice(-1);lA.target.value=eA,Q(),eA&&I(z)},[Q,j,I,E]),L=b.useCallback((z,lA)=>{if(lA.key==="Backspace"&&!c.current[z]?.value){O(z);return}if(lA.key==="Enter"&&!lA.shiftKey&&!A){lA.preventDefault();const Z=F().join("");if(Z.length===E&&v.test(Z))w.current(Z);else{const D=F().findIndex(W=>!W);c.current[D===-1?0:D]?.focus()}}},[A,O,E,v,F]),R=b.useCallback(z=>{z.preventDefault();const lA=z.clipboardData.getData("text").replace(/\D/g,"").slice(0,E);lA&&j(lA)},[j,E]),_=b.useCallback(()=>{if(A)return;const z=F().join("");z.length===E&&v.test(z)&&w.current(z)},[A,E,v,F]),X=b.useCallback(()=>{if(!(u>0||A)){for(const z of c.current)z&&(z.value="");B.current=!1,m(!1),c.current[0]?.focus(),C.current?.(),f(Gx)}},[A,u]);b.useEffect(()=>{A||c.current[0]?.focus()},[A]),b.useEffect(()=>{if(h){u>0&&f(0);return}if(u<=0)return;const z=setTimeout(()=>f(lA=>lA-1),1e3);return()=>clearTimeout(z)},[h,u]);const nA=b.useMemo(()=>K.map(z=>g.jsx("input",{ref:lA=>{c.current[z]=lA},type:"text",inputMode:"numeric",maxLength:t&&z===0?E:1,onChange:lA=>T(z,lA),onKeyDown:lA=>L(z,lA),onPaste:R,disabled:A,tabIndex:0,style:{fontSize:t?"16px":"14px"},className:mA("h-10 w-10 rounded-full border text-center text-lg font-semibold bg-transparent text-foreground","border-border shadow-sm outline-none transition-colors","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-0 focus-visible:border-transparent","disabled:cursor-not-allowed disabled:opacity-50"),autoComplete:z===0?"one-time-code":"off","aria-label":`Digit ${z+1}`},z)),[A,K,T,L,R,t,E]);return g.jsx("div",{className:"px-4 pt-3 pb-2 space-y-3",children:g.jsxs("div",{className:"flex flex-col gap-3",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("p",{className:"text-xs font-semibold tracking-wide text-foreground uppercase",children:"Please enter the OTP"}),!h&&g.jsxs("button",{type:"button",onClick:X,disabled:A||u>0,className:mA("text-xs font-medium underline underline-offset-2","text-primary hover:opacity-90 disabled:opacity-50 disabled:no-underline disabled:cursor-not-allowed"),children:["Resend OTP",u>0?` (00:${String(u).padStart(2,"0")}s)`:""]})]}),g.jsxs("div",{className:"flex items-center w-full gap-2 justify-between",children:[g.jsx("div",{className:"flex items-center gap-2",children:nA}),g.jsx(VA,{type:"button",size:"icon",onClick:_,disabled:A,variant:"ghost",className:`h-10 w-10 ${h?"bg-primary":"bg-none"} hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100`,title:h?"Submit OTP":"Enter the full OTP to submit","aria-label":h?"Submit OTP":"Enter the full OTP to submit",children:g.jsx(ns,{className:`w-4 h-4 ${h?"text-primary-foreground":"text-primary"}`})})]})]})})}const Yx=b.memo(Px,zx);function Xx({value:A,onChange:t,onKeyDown:r,placeholder:i,disabled:s,theme:l,isMobile:c,isEmailValid:u,onSend:f}){return g.jsxs("div",{className:"px-2 pt-3 pb-2 space-y-2 w-full",children:[g.jsx("p",{className:"px-1 text-xs font-semibold tracking-wide text-foreground uppercase",children:"Enter your email address"}),g.jsxs("div",{className:mA("flex items-center gap-1 rounded-full px-2 py-2 w-full",s&&"opacity-60",l?.textColor==="white"?"bg-white-100":"bg-black-100"),children:[g.jsx($u,{type:"email",autoComplete:"email",value:A,onChange:t,onKeyDown:r,placeholder:i??"username@example.com",className:mA("w-full h-full shadow-none border-0 outline-none focus-visible:ring-0 focus-visible:ring-offset-0","text-sm placeholder:text-muted-foreground/40 bg-transparent","disabled:cursor-not-allowed rounded-none break-words overflow-wrap-anywhere whitespace-pre-wrap","text-foreground px-3 py-2 pr-11 min-h-[40px]"),style:{fontSize:c?"16px":"14px"},autoFocus:!s,disabled:s}),g.jsx(VA,{type:"button",size:"icon",onClick:f,disabled:s||!u,variant:"ghost",className:`h-10 w-10 ${u?"bg-primary":"bg-none"} hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100`,title:u?"Submit email address":"Enter a valid email address","aria-label":u?"Submit email address":"Enter a valid email address",children:g.jsx(ns,{className:`w-4 h-4 ${u?"text-primary-foreground":"text-primary"}`})})]})]})}const Em=10,qx=10,Jx=/^[6-9][0-9]{9}$/,Zx=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function Wx({elicitationEntry:A,value:t,onChange:r,isDisabled:i,theme:s,isMobile:l,onSend:c}){const{component:u,pattern:f,minLength:h,maxLength:m,description:B,disp_toast_msg:w,tool_key:C}=A??{},E=b.useMemo(()=>u===dA.SYNAPSE_COMPONENTS.MOBILE,[u]),v=b.useMemo(()=>u===dA.SYNAPSE_COMPONENTS.OTP,[u]),F=b.useMemo(()=>u===dA.SYNAPSE_COMPONENTS.EMAIL,[u]);if(!E&&!v&&!F)return null;const Q=w?.trim()??"",I=_=>{const X=_.target.value.replace(/\D/g,""),nA=m??Em;r(X.slice(0,nA))},O=t.length===(h??qx)&&(f?new RegExp(f).test(t):Jx.test(t)),K=f?new RegExp(f).test(t):Zx.test(t),j=()=>{!K||i||c({toolCalled:!0,tool_key:C})},T=_=>{_.key==="Enter"&&(_.preventDefault(),j())},L=()=>{!O||i||c({toolCalled:!0,tool_key:C})},R=_=>{_.key==="Enter"&&(_.preventDefault(),L())};return g.jsxs(g.Fragment,{children:[E&&g.jsx(Kx,{value:t,onChange:I,onSend:L,onKeyDown:R,placeholder:B??"Enter your mobile number",disabled:i,isMobileValid:O,theme:s,isMobile:l,maxLength:m??Em}),v&&g.jsx(Yx,{disabled:i,isMobile:l,validation:{pattern:f,minLength:h,maxLength:m},onSubmit:_=>{c({message:_,toolCalled:!0,tool_key:C})},onResendOtp:()=>{c({toolCalled:!0,resend:!0,tool_key:C})},serverMessage:Q,theme:s}),F&&g.jsx(Xx,{value:t,onChange:_=>r(_.target.value),onKeyDown:T,disabled:i,isEmailValid:K,theme:s,isMobile:l,placeholder:B,onSend:j})]})}const vm=({className:A})=>g.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:A,children:g.jsx("path",{d:"M6.875 0C7.375 0 7.75 0.40625 7.75 0.875V14.875C7.75 15.375 7.375 15.75 6.875 15.75C6.40625 15.75 6 15.375 6 14.875V0.875C6 0.40625 6.40625 0 6.875 0ZM12.875 2C13.375 2 13.75 2.40625 13.75 2.875V12.875C13.75 13.375 13.375 13.75 12.875 13.75C12.4062 13.75 12 13.375 12 12.875V2.875C12 2.40625 12.4062 2 12.875 2ZM3.875 3C4.375 3 4.75 3.40625 4.75 3.875V11.875C4.75 12.375 4.375 12.75 3.875 12.75C3.40625 12.75 3 12.375 3 11.875V3.875C3 3.40625 3.40625 3 3.875 3ZM9.875 4C10.375 4 10.75 4.40625 10.75 4.875V10.875C10.75 11.375 10.375 11.75 9.875 11.75C9.40625 11.75 9 11.375 9 10.875V4.875C9 4.40625 9.40625 4 9.875 4ZM0.875 6C1.375 6 1.75 6.40625 1.75 6.875V8.875C1.75 9.375 1.375 9.75 0.875 9.75C0.40625 9.75 0 9.375 0 8.875V6.875C0 6.40625 0.40625 6 0.875 6ZM15.875 6C16.375 6 16.75 6.40625 16.75 6.875V8.875C16.75 9.375 16.375 9.75 15.875 9.75C15.4062 9.75 15 9.375 15 8.875V6.875C15 6.40625 15.4062 6 15.875 6Z",fill:"currentColor"})});function $x({value:A,onChange:t,onSend:r,onFileChange:i,onRemoveFile:s,onRecording:l,isRecording:c,hasAttachment:u,attachmentFiles:f,isDisabled:h,placeholder:m,isMobile:B,recordingStatus:w,theme:C,allowed:E,showStartNewChatButton:v,onStartNewChat:F,isVoiceAgentActive:Q,handleVoiceMode:I,isAuthComponent:O,activeElicitationState:K,isFullScreen:j}){const T=b.useRef(null),L=b.useRef(null),R=A.trim().length>0||u,_=E===void 0||E.includes(dA.SYNAPSE_CONVERSATION.AUDIO),X=E===void 0||E.includes(dA.SYNAPSE_CONVERSATION.VOICE),nA=R||!_,z=R,lA=E===void 0||E.includes(dA.SYNAPSE_CONVERSATION.FILE),Z=(h||w!==Ce.IDLE)&&!c,eA=mA("rounded-full transition-all duration-200 ",c?"bg-gradient-to-r from-rose-400 via-primary to-indigo-500 text-white ring-2 ring-white/60 animate-pulse shadow-[0_0_20px_rgba(139,92,246,0.45)]":Z?"text-primary/50 cursor-not-allowed shadow-none":"text-foreground hover:bg-primary hover:text-primary-foreground"),D=U=>{const M=Array.from(U.target.files||[]);M.length>0&&i(M)},W=()=>{h||T.current?.click()},AA=U=>{U.key==="Enter"&&!U.shiftKey&&z&&!h&&(U.preventDefault(),r())},gA=U=>{U.style.height="auto",U.style.overflow="hidden";const M=U.scrollHeight,S=j?20:40,aA=120,uA=Math.max(S,Math.min(M,aA));U.style.height=uA+"px",M>aA?U.style.overflow="auto":U.style.overflow="hidden"},N=U=>{gA(U.currentTarget)};return b.useEffect(()=>{L.current&&gA(L.current)},[A]),b.useEffect(()=>{!h&&!B&&L.current?.focus()},[h]),v&&F?g.jsx("div",{className:"px-4 py-2 flex justify-unset",children:g.jsxs("button",{type:"button",onClick:F,className:mA("px-6 py-3 bg-primary text-primary-foreground text-sm font-semibold rounded-lg transition-colors flex items-center justify-center gap-2 disabled:opacity-60 disabled:pointer-events-none w-full",!B&&"hover:bg-primary/90"),children:[g.jsx("span",{children:"Start new chat"}),g.jsx(jp,{className:"w-5 h-5","aria-hidden":!0})]})}):g.jsx(g.Fragment,{children:O?g.jsx(Wx,{elicitationEntry:K,value:A,onChange:t,isDisabled:h,theme:C,isMobile:B,onSend:r}):j?g.jsx("div",{className:"mx-3 mb-3","data-name":"reply-box",children:g.jsxs("div",{className:"flex flex-col items-stretch w-full",style:{backgroundColor:"var(--white-1000, #ffffff)",border:"1px solid hsl(var(--primary) / 0.5)",borderRadius:24,padding:8},children:[u&&f.length>0&&g.jsx("div",{className:"mb-2 pb-2 border-b border-border-subtle",children:g.jsx(Wu,{files:f,onRemoveFile:s,isPreview:!0})}),g.jsx("input",{ref:T,type:"file",multiple:!0,max:3,accept:"image/jpeg, image/png, image/jpg, application/pdf",className:"hidden",onChange:D,disabled:h,title:"Attach file","aria-label":"Attach file"}),g.jsx("div",{className:"flex items-center justify-between w-full",style:{padding:"12px 8px"},"data-name":"text-frame",children:g.jsx(Zu,{ref:L,onInput:N,placeholder:m,value:A,onChange:U=>t(U.target.value),rows:1,maxLength:1e3,autoFocus:!h&&!B,style:{wordBreak:"break-word",overflowWrap:"anywhere",minHeight:"20px",maxHeight:"120px",fontFamily:"Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",fontSize:14,lineHeight:"20px",fontWeight:400,padding:0},onKeyPress:AA,disabled:h,title:"Enter your message","aria-label":"Enter your message",className:mA("flex-1 min-w-0 shadow-none border-0 outline-none focus-visible:ring-0 focus-visible:ring-offset-0","bg-transparent disabled:cursor-not-allowed rounded-none break-words whitespace-pre-wrap","text-foreground resize-none placeholder:text-black-500")})}),g.jsxs("div",{className:"flex items-center justify-between w-full","data-name":"cta-row",children:[g.jsx("div",{className:"flex items-start shrink-0","data-name":"input-left-cta",children:lA&&w===Ce.IDLE&&g.jsx(VA,{type:"button",variant:"ghost",size:"icon",onClick:W,disabled:h,className:mA("rounded-full transition-all shrink-0 p-2 h-10 w-10",u?"bg-primary text-primary-foreground":"text-foreground",!B&&(u?"hover:bg-primary/15":"hover:bg-primary hover:text-primary-foreground")),title:"Attach file","aria-label":"Attach file",children:g.jsx(Cb,{className:"w-6 h-6",strokeWidth:1.5})})}),g.jsxs("div",{className:"flex gap-2 items-center shrink-0","data-name":"input-right-cta",children:[c?g.jsx(VA,{type:"button",variant:"ghost",size:"icon",onClick:l,className:mA("h-10 w-10 rounded-full bg-gradient-to-r from-red-400 to-rose-500 text-white shadow-lg transition-all duration-200 active:scale-95 shrink-0",!B&&"hover:from-red-500 hover:to-rose-600 hover:scale-105"),title:"Stop recording","aria-label":"Stop recording",children:g.jsx(Kp,{className:"w-4 h-4"})}):_&&g.jsx(VA,{type:"button",variant:"ghost",size:"icon",onClick:l,disabled:Z,className:mA("h-10 w-10 shrink-0 p-2",eA),title:"Start recording","aria-label":"Start recording",children:g.jsx(Ou,{className:"w-6 h-6",strokeWidth:1.5})}),nA&&!c?g.jsx(VA,{type:"button",size:"icon",onClick:()=>r(),disabled:h||!z,variant:"ghost",className:mA("h-10 w-10 rounded-full transition-all duration-200 shadow-lg shrink-0 p-2",z?"bg-primary hover:bg-primary/90 hover:shadow-xl hover:scale-105 active:scale-95":"bg-primary/40"),title:z?"Send message":"Type a message to send","aria-label":z?"Send message":"Type a message to send",children:g.jsx(ns,{className:"w-4 h-4 text-primary-foreground"})}):_&&X&&!c&&g.jsx(VA,{type:"button",variant:"ghost",size:"icon",onClick:I,disabled:h||Q,className:"h-10 w-10 bg-primary text-primary-foreground hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100 p-2",title:"Enter voice mode","aria-label":"Enter voice mode",children:g.jsx(vm,{className:"w-4 h-4 text-primary-foreground"})})]})]})]})}):g.jsxs("div",{className:"pt-4 pl-2 pr-3 pb-2",children:[u&&f.length>0&&g.jsx("div",{className:"mb-2 pb-2 border-b border-border-subtle",children:g.jsx(Wu,{files:f,onRemoveFile:s,isPreview:!0})}),g.jsx("input",{ref:T,type:"file",multiple:!0,max:3,accept:"image/jpeg, image/png, image/jpg, application/pdf",className:"hidden",onChange:D,disabled:h,title:"Attach file","aria-label":"Attach file"}),g.jsxs("div",{className:"flex items-center gap-2 w-full",children:[lA&&w===Ce.IDLE&&g.jsx(VA,{type:"button",variant:"ghost",size:"icon",onClick:W,disabled:h,className:mA("rounded-full transition-all shrink-0 p-2",u?"bg-primary text-primary-foreground":"text-foreground",!B&&(u?"hover:bg-primary/15":"hover:bg-primary hover:text-primary-foreground")),title:"Attach file","aria-label":"Attach file",children:g.jsx(fb,{className:"w-6 h-6"})}),g.jsx("div",{className:mA("flex items-center justify-between rounded-full pl-4 pr-1 py-1 flex-1 min-w-0",h&&"opacity-60",C?.textColor==="white"?"bg-white-100":"bg-black-100"),children:g.jsxs("div",{className:"flex-1 min-w-0 flex items-center gap-2 justify-between",children:[g.jsx(Zu,{ref:L,onInput:N,placeholder:m,value:A,onChange:U=>t(U.target.value),rows:1,maxLength:1e3,autoFocus:!h&&!B,style:{wordBreak:"break-word",overflowWrap:"anywhere",minHeight:"40px",maxHeight:"120px",fontSize:"16px",lineHeight:"1"},onKeyPress:AA,disabled:h,title:"Enter your message","aria-label":"Enter your message",className:mA("w-full shadow-none border-0 outline-none focus-visible:ring-0 focus-visible:ring-offset-0 text-base placeholder:text-muted-foreground bg-transparent disabled:cursor-not-allowed rounded-none break-words overflow-wrap-anywhere whitespace-pre-wrap text-foreground resize-none pr-1")}),g.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[c?g.jsx(VA,{type:"button",variant:"ghost",size:"icon",onClick:l,className:mA("h-10 w-10 rounded-full bg-gradient-to-r from-red-400 to-rose-500 text-white shadow-lg transition-all duration-200 active:scale-95 shrink-0",!B&&"hover:from-red-500 hover:to-rose-600 hover:scale-105"),title:"Stop recording","aria-label":"Stop recording",children:g.jsx(Kp,{className:"w-4 h-4"})}):nA?g.jsx(VA,{type:"button",size:"icon",onClick:()=>r(),disabled:h||!z,variant:"ghost",className:`h-10 w-10 ${z?"bg-primary":"bg-none"} hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0`,title:z?"Send message":"Type a message to send","aria-label":z?"Send message":"Type a message to send",children:g.jsx(ns,{className:`w-4 h-4 ${z?"text-primary-foreground":"text-primary"}`})}):_&&g.jsx(VA,{type:"button",variant:"ghost",size:"icon",onClick:l,disabled:Z,className:mA("h-10 w-10 shrink-0",eA),title:"Start recording","aria-label":"Start recording",children:g.jsx(Ou,{className:"w-5 h-5"})}),_&&X&&!c&&g.jsx(VA,{type:"button",variant:"ghost",size:"icon",onClick:I,disabled:h||Q,className:"h-10 w-10 bg-primary text-primary-foreground hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100",title:"Enter voice mode","aria-label":"Enter voice mode",children:g.jsx(vm,{className:"w-4 h-4 text-primary-foreground"})})]})]})})]})]})})}const AS=Object.freeze(Object.defineProperty({__proto__:null,default:$x},Symbol.toStringTag,{value:"Module"}));function eS(A,t){const r={};return(A[A.length-1]===""?[...A,""]:A).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const tS=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,nS=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,rS={};function bm(A,t){return(rS.jsx?nS:tS).test(A)}const iS=/[ \t\n\f\r]/g;function aS(A){return typeof A=="object"?A.type==="text"?xm(A.value):!1:xm(A)}function xm(A){return A.replace(iS,"")===""}class rs{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}}rs.prototype.normal={},rs.prototype.property={},rs.prototype.space=void 0;function Sm(A,t){const r={},i={};for(const s of A)Object.assign(r,s.property),Object.assign(i,s.normal);return new rs(r,i,t)}function Af(A){return A.toLowerCase()}class ut{constructor(t,r){this.attribute=r,this.property=t}}ut.prototype.attribute="",ut.prototype.booleanish=!1,ut.prototype.boolean=!1,ut.prototype.commaOrSpaceSeparated=!1,ut.prototype.commaSeparated=!1,ut.prototype.defined=!1,ut.prototype.mustUseProperty=!1,ut.prototype.number=!1,ut.prototype.overloadedBoolean=!1,ut.prototype.property="",ut.prototype.spaceSeparated=!1,ut.prototype.space=void 0;let sS=0;const OA=Yr(),_e=Yr(),ef=Yr(),cA=Yr(),pe=Yr(),bi=Yr(),xt=Yr();function Yr(){return 2**++sS}const tf=Object.freeze(Object.defineProperty({__proto__:null,boolean:OA,booleanish:_e,commaOrSpaceSeparated:xt,commaSeparated:bi,number:cA,overloadedBoolean:ef,spaceSeparated:pe},Symbol.toStringTag,{value:"Module"})),nf=Object.keys(tf);class rf extends ut{constructor(t,r,i,s){let l=-1;if(super(t,r),Qm(this,"space",s),typeof i=="number")for(;++l<nf.length;){const c=nf[l];Qm(this,nf[l],(i&tf[c])===tf[c])}}}rf.prototype.defined=!0;function Qm(A,t,r){r&&(A[t]=r)}function xi(A){const t={},r={};for(const[i,s]of Object.entries(A.properties)){const l=new rf(i,A.transform(A.attributes||{},i),s,A.space);A.mustUseProperty&&A.mustUseProperty.includes(i)&&(l.mustUseProperty=!0),t[i]=l,r[Af(i)]=i,r[Af(l.attribute)]=i}return new rs(t,r,A.space)}const Um=xi({properties:{ariaActiveDescendant:null,ariaAtomic:_e,ariaAutoComplete:null,ariaBusy:_e,ariaChecked:_e,ariaColCount:cA,ariaColIndex:cA,ariaColSpan:cA,ariaControls:pe,ariaCurrent:null,ariaDescribedBy:pe,ariaDetails:null,ariaDisabled:_e,ariaDropEffect:pe,ariaErrorMessage:null,ariaExpanded:_e,ariaFlowTo:pe,ariaGrabbed:_e,ariaHasPopup:null,ariaHidden:_e,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:pe,ariaLevel:cA,ariaLive:null,ariaModal:_e,ariaMultiLine:_e,ariaMultiSelectable:_e,ariaOrientation:null,ariaOwns:pe,ariaPlaceholder:null,ariaPosInSet:cA,ariaPressed:_e,ariaReadOnly:_e,ariaRelevant:null,ariaRequired:_e,ariaRoleDescription:pe,ariaRowCount:cA,ariaRowIndex:cA,ariaRowSpan:cA,ariaSelected:_e,ariaSetSize:cA,ariaSort:null,ariaValueMax:cA,ariaValueMin:cA,ariaValueNow:cA,ariaValueText:null,role:null},transform(A,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Fm(A,t){return t in A?A[t]:t}function Tm(A,t){return Fm(A,t.toLowerCase())}const lS=xi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:bi,acceptCharset:pe,accessKey:pe,action:null,allow:null,allowFullScreen:OA,allowPaymentRequest:OA,allowUserMedia:OA,alt:null,as:null,async:OA,autoCapitalize:null,autoComplete:pe,autoFocus:OA,autoPlay:OA,blocking:pe,capture:null,charSet:null,checked:OA,cite:null,className:pe,cols:cA,colSpan:null,content:null,contentEditable:_e,controls:OA,controlsList:pe,coords:cA|bi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:OA,defer:OA,dir:null,dirName:null,disabled:OA,download:ef,draggable:_e,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:OA,formTarget:null,headers:pe,height:cA,hidden:ef,high:cA,href:null,hrefLang:null,htmlFor:pe,httpEquiv:pe,id:null,imageSizes:null,imageSrcSet:null,inert:OA,inputMode:null,integrity:null,is:null,isMap:OA,itemId:null,itemProp:pe,itemRef:pe,itemScope:OA,itemType:pe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:OA,low:cA,manifest:null,max:null,maxLength:cA,media:null,method:null,min:null,minLength:cA,multiple:OA,muted:OA,name:null,nonce:null,noModule:OA,noValidate:OA,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:OA,optimum:cA,pattern:null,ping:pe,placeholder:null,playsInline:OA,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:OA,referrerPolicy:null,rel:pe,required:OA,reversed:OA,rows:cA,rowSpan:cA,sandbox:pe,scope:null,scoped:OA,seamless:OA,selected:OA,shadowRootClonable:OA,shadowRootDelegatesFocus:OA,shadowRootMode:null,shape:null,size:cA,sizes:null,slot:null,span:cA,spellCheck:_e,src:null,srcDoc:null,srcLang:null,srcSet:null,start:cA,step:null,style:null,tabIndex:cA,target:null,title:null,translate:null,type:null,typeMustMatch:OA,useMap:null,value:_e,width:cA,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:pe,axis:null,background:null,bgColor:null,border:cA,borderColor:null,bottomMargin:cA,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:OA,declare:OA,event:null,face:null,frame:null,frameBorder:null,hSpace:cA,leftMargin:cA,link:null,longDesc:null,lowSrc:null,marginHeight:cA,marginWidth:cA,noResize:OA,noHref:OA,noShade:OA,noWrap:OA,object:null,profile:null,prompt:null,rev:null,rightMargin:cA,rules:null,scheme:null,scrolling:_e,standby:null,summary:null,text:null,topMargin:cA,valueType:null,version:null,vAlign:null,vLink:null,vSpace:cA,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:OA,disableRemotePlayback:OA,prefix:null,property:null,results:cA,security:null,unselectable:null},space:"html",transform:Tm}),oS=xi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:xt,accentHeight:cA,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:cA,amplitude:cA,arabicForm:null,ascent:cA,attributeName:null,attributeType:null,azimuth:cA,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:cA,by:null,calcMode:null,capHeight:cA,className:pe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:cA,diffuseConstant:cA,direction:null,display:null,dur:null,divisor:cA,dominantBaseline:null,download:OA,dx:null,dy:null,edgeMode:null,editable:null,elevation:cA,enableBackground:null,end:null,event:null,exponent:cA,externalResourcesRequired:null,fill:null,fillOpacity:cA,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:bi,g2:bi,glyphName:bi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:cA,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:cA,horizOriginX:cA,horizOriginY:cA,id:null,ideographic:cA,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:cA,k:cA,k1:cA,k2:cA,k3:cA,k4:cA,kernelMatrix:xt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:cA,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:cA,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:cA,overlineThickness:cA,paintOrder:null,panose1:null,path:null,pathLength:cA,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:pe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:cA,pointsAtY:cA,pointsAtZ:cA,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xt,rev:xt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xt,requiredFeatures:xt,requiredFonts:xt,requiredFormats:xt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:cA,specularExponent:cA,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:cA,strikethroughThickness:cA,string:null,stroke:null,strokeDashArray:xt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:cA,strokeOpacity:cA,strokeWidth:null,style:null,surfaceScale:cA,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xt,tabIndex:cA,tableValues:null,target:null,targetX:cA,targetY:cA,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:cA,underlineThickness:cA,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:cA,values:null,vAlphabetic:cA,vMathematical:cA,vectorEffect:null,vHanging:cA,vIdeographic:cA,version:null,vertAdvY:cA,vertOriginX:cA,vertOriginY:cA,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:cA,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Fm}),Nm=xi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(A,t){return"xlink:"+t.slice(5).toLowerCase()}}),Im=xi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Tm}),Hm=xi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(A,t){return"xml:"+t.slice(3).toLowerCase()}}),cS={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},uS=/[A-Z]/g,_m=/-[a-z]/g,fS=/^data[-\w.:]+$/i;function dS(A,t){const r=Af(t);let i=t,s=ut;if(r in A.normal)return A.property[A.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&fS.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(_m,gS);i="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!_m.test(l)){let c=l.replace(uS,hS);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}s=rf}return new s(i,t)}function hS(A){return"-"+A.toLowerCase()}function gS(A){return A.charAt(1).toUpperCase()}const pS=Sm([Um,lS,Nm,Im,Hm],"html"),af=Sm([Um,oS,Nm,Im,Hm],"svg");function mS(A){return A.join(" ").trim()}var Si={},sf,Mm;function BS(){if(Mm)return sf;Mm=1;var A=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,u=/^\s+|\s+$/g,f=`
|
|
88
|
-
`,h="/",m="*",B="",w="comment",C="declaration";function E(F,Q){if(typeof F!="string")throw new TypeError("First argument must be a string");if(!F)return[];Q=Q||{};var I=1,O=1;function K(Z){var eA=Z.match(t);eA&&(I+=eA.length);var D=Z.lastIndexOf(f);O=~D?Z.length-D:O+Z.length}function j(){var Z={line:I,column:O};return function(eA){return eA.position=new T(Z),_(),eA}}function T(Z){this.start=Z,this.end={line:I,column:O},this.source=Q.source}T.prototype.content=F;function L(Z){var eA=new Error(Q.source+":"+I+":"+O+": "+Z);if(eA.reason=Z,eA.filename=Q.source,eA.line=I,eA.column=O,eA.source=F,!Q.silent)throw eA}function R(Z){var eA=Z.exec(F);if(eA){var D=eA[0];return K(D),F=F.slice(D.length),eA}}function _(){R(r)}function X(Z){var eA;for(Z=Z||[];eA=nA();)eA!==!1&&Z.push(eA);return Z}function nA(){var Z=j();if(!(h!=F.charAt(0)||m!=F.charAt(1))){for(var eA=2;B!=F.charAt(eA)&&(m!=F.charAt(eA)||h!=F.charAt(eA+1));)++eA;if(eA+=2,B===F.charAt(eA-1))return L("End of comment missing");var D=F.slice(2,eA-2);return O+=2,K(D),F=F.slice(eA),O+=2,Z({type:w,comment:D})}}function z(){var Z=j(),eA=R(i);if(eA){if(nA(),!R(s))return L("property missing ':'");var D=R(l),W=Z({type:C,property:v(eA[0].replace(A,B)),value:D?v(D[0].replace(A,B)):B});return R(c),W}}function lA(){var Z=[];X(Z);for(var eA;eA=z();)eA!==!1&&(Z.push(eA),X(Z));return Z}return _(),lA()}function v(F){return F?F.replace(u,B):B}return sf=E,sf}var Om;function CS(){if(Om)return Si;Om=1;var A=Si&&Si.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Si,"__esModule",{value:!0}),Si.default=r;const t=A(BS());function r(i,s){let l=null;if(!i||typeof i!="string")return l;const c=(0,t.default)(i),u=typeof s=="function";return c.forEach(f=>{if(f.type!=="declaration")return;const{property:h,value:m}=f;u?s(h,m,f):m&&(l=l||{},l[h]=m)}),l}return Si}var is={},Rm;function wS(){if(Rm)return is;Rm=1,Object.defineProperty(is,"__esModule",{value:!0}),is.camelCase=void 0;var A=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,l=function(h){return!h||r.test(h)||A.test(h)},c=function(h,m){return m.toUpperCase()},u=function(h,m){return"".concat(m,"-")},f=function(h,m){return m===void 0&&(m={}),l(h)?h:(h=h.toLowerCase(),m.reactCompat?h=h.replace(s,u):h=h.replace(i,u),h.replace(t,c))};return is.camelCase=f,is}var as,Lm;function yS(){if(Lm)return as;Lm=1;var A=as&&as.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=A(CS()),r=wS();function i(s,l){var c={};return!s||typeof s!="string"||(0,t.default)(s,function(u,f){u&&f&&(c[(0,r.camelCase)(u,l)]=f)}),c}return i.default=i,as=i,as}var ES=yS();const vS=cu(ES),Dm=km("end"),lf=km("start");function km(A){return t;function t(r){const i=r&&r.position&&r.position[A]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function bS(A){const t=lf(A),r=Dm(A);if(t&&r)return{start:t,end:r}}function ss(A){return!A||typeof A!="object"?"":"position"in A||"type"in A?jm(A.position):"start"in A||"end"in A?jm(A):"line"in A||"column"in A?of(A):""}function of(A){return Km(A&&A.line)+":"+Km(A&&A.column)}function jm(A){return of(A&&A.start)+"-"+of(A&&A.end)}function Km(A){return A&&typeof A=="number"?A:1}class it extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let s="",l={},c=!1;if(r&&("line"in r&&"column"in r?l={place:r}:"start"in r&&"end"in r?l={place:r}:"type"in r?l={ancestors:[r],place:r.position}:l={...r}),typeof t=="string"?s=t:!l.cause&&t&&(c=!0,s=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof i=="string"){const f=i.indexOf(":");f===-1?l.ruleId=i:(l.source=i.slice(0,f),l.ruleId=i.slice(f+1))}if(!l.place&&l.ancestors&&l.ancestors){const f=l.ancestors[l.ancestors.length-1];f&&(l.place=f.position)}const u=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=u?u.line:void 0,this.name=ss(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=c&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}it.prototype.file="",it.prototype.name="",it.prototype.reason="",it.prototype.message="",it.prototype.stack="",it.prototype.column=void 0,it.prototype.line=void 0,it.prototype.ancestors=void 0,it.prototype.cause=void 0,it.prototype.fatal=void 0,it.prototype.place=void 0,it.prototype.ruleId=void 0,it.prototype.source=void 0;const cf={}.hasOwnProperty,xS=new Map,SS=/[A-Z]/g,QS=new Set(["table","tbody","thead","tfoot","tr"]),US=new Set(["td","th"]),Vm="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function FS(A,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=RS(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=OS(r,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?af:pS,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=Gm(s,A,void 0);return l&&typeof l!="string"?l:s.create(A,s.Fragment,{children:l||void 0},void 0)}function Gm(A,t,r){if(t.type==="element")return TS(A,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return NS(A,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return HS(A,t,r);if(t.type==="mdxjsEsm")return IS(A,t);if(t.type==="root")return _S(A,t,r);if(t.type==="text")return MS(A,t)}function TS(A,t,r){const i=A.schema;let s=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(s=af,A.schema=s),A.ancestors.push(t);const l=Pm(A,t.tagName,!1),c=LS(A,t);let u=ff(A,t);return QS.has(t.tagName)&&(u=u.filter(function(f){return typeof f=="string"?!aS(f):!0})),zm(A,c,l,t),uf(c,u),A.ancestors.pop(),A.schema=i,A.create(t,l,c,r)}function NS(A,t){if(t.data&&t.data.estree&&A.evaluater){const i=t.data.estree.body[0];return A.evaluater.evaluateExpression(i.expression)}ls(A,t.position)}function IS(A,t){if(t.data&&t.data.estree&&A.evaluater)return A.evaluater.evaluateProgram(t.data.estree);ls(A,t.position)}function HS(A,t,r){const i=A.schema;let s=i;t.name==="svg"&&i.space==="html"&&(s=af,A.schema=s),A.ancestors.push(t);const l=t.name===null?A.Fragment:Pm(A,t.name,!0),c=DS(A,t),u=ff(A,t);return zm(A,c,l,t),uf(c,u),A.ancestors.pop(),A.schema=i,A.create(t,l,c,r)}function _S(A,t,r){const i={};return uf(i,ff(A,t)),A.create(t,A.Fragment,i,r)}function MS(A,t){return t.value}function zm(A,t,r,i){typeof r!="string"&&r!==A.Fragment&&A.passNode&&(t.node=i)}function uf(A,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(A.children=r)}}function OS(A,t,r){return i;function i(s,l,c,u){const h=Array.isArray(c.children)?r:t;return u?h(l,c,u):h(l,c)}}function RS(A,t){return r;function r(i,s,l,c){const u=Array.isArray(l.children),f=lf(i);return t(s,l,c,u,{columnNumber:f?f.column-1:void 0,fileName:A,lineNumber:f?f.line:void 0},void 0)}}function LS(A,t){const r={};let i,s;for(s in t.properties)if(s!=="children"&&cf.call(t.properties,s)){const l=kS(A,s,t.properties[s]);if(l){const[c,u]=l;A.tableCellAlignToStyle&&c==="align"&&typeof u=="string"&&US.has(t.tagName)?i=u:r[c]=u}}if(i){const l=r.style||(r.style={});l[A.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function DS(A,t){const r={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&A.evaluater){const u=i.data.estree.body[0].expression.properties[0];Object.assign(r,A.evaluater.evaluateExpression(u.argument))}else ls(A,t.position);else{const s=i.name;let l;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&A.evaluater){const u=i.value.data.estree.body[0];l=A.evaluater.evaluateExpression(u.expression)}else ls(A,t.position);else l=i.value===null?!0:i.value;r[s]=l}return r}function ff(A,t){const r=[];let i=-1;const s=A.passKeys?new Map:xS;for(;++i<t.children.length;){const l=t.children[i];let c;if(A.passKeys){const f=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(f){const h=s.get(f)||0;c=f+"-"+h,s.set(f,h+1)}}const u=Gm(A,l,c);u!==void 0&&r.push(u)}return r}function kS(A,t,r){const i=dS(A.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?eS(r):mS(r)),i.property==="style"){let s=typeof r=="object"?r:jS(A,String(r));return A.stylePropertyNameCase==="css"&&(s=KS(s)),["style",s]}return[A.elementAttributeNameCase==="react"&&i.space?cS[i.property]||i.property:i.attribute,r]}}function jS(A,t){try{return vS(t,{reactCompat:!0})}catch(r){if(A.ignoreInvalidStyle)return{};const i=r,s=new it("Cannot parse `style` attribute",{ancestors:A.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=A.filePath||void 0,s.url=Vm+"#cannot-parse-style-attribute",s}}function Pm(A,t,r){let i;if(!r)i={type:"Literal",value:t};else if(t.includes(".")){const s=t.split(".");let l=-1,c;for(;++l<s.length;){const u=bm(s[l])?{type:"Identifier",name:s[l]}:{type:"Literal",value:s[l]};c=c?{type:"MemberExpression",object:c,property:u,computed:!!(l&&u.type==="Literal"),optional:!1}:u}i=c}else i=bm(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const s=i.value;return cf.call(A.components,s)?A.components[s]:s}if(A.evaluater)return A.evaluater.evaluateExpression(i);ls(A)}function ls(A,t){const r=new it("Cannot handle MDX estrees without `createEvaluater`",{ancestors:A.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=A.filePath||void 0,r.url=Vm+"#cannot-handle-mdx-estrees-without-createevaluater",r}function KS(A){const t={};let r;for(r in A)cf.call(A,r)&&(t[VS(r)]=A[r]);return t}function VS(A){let t=A.replace(SS,GS);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function GS(A){return"-"+A.toLowerCase()}const df={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},zS={};function PS(A,t){const r=zS,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Ym(A,i,s)}function Ym(A,t,r){if(YS(A)){if("value"in A)return A.type==="html"&&!r?"":A.value;if(t&&"alt"in A&&A.alt)return A.alt;if("children"in A)return Xm(A.children,t,r)}return Array.isArray(A)?Xm(A,t,r):""}function Xm(A,t,r){const i=[];let s=-1;for(;++s<A.length;)i[s]=Ym(A[s],t,r);return i.join("")}function YS(A){return!!(A&&typeof A=="object")}const qm=document.createElement("i");function hf(A){const t="&"+A+";";qm.innerHTML=t;const r=qm.textContent;return r.charCodeAt(r.length-1)===59&&A!=="semi"||r===t?!1:r}function dn(A,t,r,i){const s=A.length;let l=0,c;if(t<0?t=-t>s?0:s+t:t=t>s?s:t,r=r>0?r:0,i.length<1e4)c=Array.from(i),c.unshift(t,r),A.splice(...c);else for(r&&A.splice(t,r);l<i.length;)c=i.slice(l,l+1e4),c.unshift(t,0),A.splice(...c),l+=1e4,t+=1e4}function Dt(A,t){return A.length>0?(dn(A,A.length,0,t),A):t}const Jm={}.hasOwnProperty;function XS(A){const t={};let r=-1;for(;++r<A.length;)qS(t,A[r]);return t}function qS(A,t){let r;for(r in t){const s=(Jm.call(A,r)?A[r]:void 0)||(A[r]={}),l=t[r];let c;if(l)for(c in l){Jm.call(s,c)||(s[c]=[]);const u=l[c];JS(s[c],Array.isArray(u)?u:u?[u]:[])}}}function JS(A,t){let r=-1;const i=[];for(;++r<t.length;)(t[r].add==="after"?A:i).push(t[r]);dn(A,0,0,i)}function Zm(A,t){const r=Number.parseInt(A,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Qi(A){return A.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const hn=rr(/[A-Za-z]/),St=rr(/[\dA-Za-z]/),ZS=rr(/[#-'*+\--9=?A-Z^-~]/);function gf(A){return A!==null&&(A<32||A===127)}const pf=rr(/\d/),WS=rr(/[\dA-Fa-f]/),$S=rr(/[!-/:-@[-`{-~]/);function UA(A){return A!==null&&A<-2}function ft(A){return A!==null&&(A<0||A===32)}function ee(A){return A===-2||A===-1||A===32}const AQ=rr(new RegExp("\\p{P}|\\p{S}","u")),eQ=rr(/\s/);function rr(A){return t;function t(r){return r!==null&&r>-1&&A.test(String.fromCharCode(r))}}function Ui(A){const t=[];let r=-1,i=0,s=0;for(;++r<A.length;){const l=A.charCodeAt(r);let c="";if(l===37&&St(A.charCodeAt(r+1))&&St(A.charCodeAt(r+2)))s=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(c=String.fromCharCode(l));else if(l>55295&&l<57344){const u=A.charCodeAt(r+1);l<56320&&u>56319&&u<57344?(c=String.fromCharCode(l,u),s=1):c="�"}else c=String.fromCharCode(l);c&&(t.push(A.slice(i,r),encodeURIComponent(c)),i=r+s+1,c=""),s&&(r+=s,s=0)}return t.join("")+A.slice(i)}function me(A,t,r,i){const s=i?i-1:Number.POSITIVE_INFINITY;let l=0;return c;function c(f){return ee(f)?(A.enter(r),u(f)):t(f)}function u(f){return ee(f)&&l++<s?(A.consume(f),u):(A.exit(r),t(f))}}const tQ={tokenize:nQ};function nQ(A){const t=A.attempt(this.parser.constructs.contentInitial,i,s);let r;return t;function i(u){if(u===null){A.consume(u);return}return A.enter("lineEnding"),A.consume(u),A.exit("lineEnding"),me(A,t,"linePrefix")}function s(u){return A.enter("paragraph"),l(u)}function l(u){const f=A.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=f),r=f,c(u)}function c(u){if(u===null){A.exit("chunkText"),A.exit("paragraph"),A.consume(u);return}return UA(u)?(A.consume(u),A.exit("chunkText"),l):(A.consume(u),c)}}const rQ={tokenize:iQ},Wm={tokenize:aQ};function iQ(A){const t=this,r=[];let i=0,s,l,c;return u;function u(O){if(i<r.length){const K=r[i];return t.containerState=K[1],A.attempt(K[0].continuation,f,h)(O)}return h(O)}function f(O){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&I();const K=t.events.length;let j=K,T;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){T=t.events[j][1].end;break}Q(i);let L=K;for(;L<t.events.length;)t.events[L][1].end={...T},L++;return dn(t.events,j+1,0,t.events.slice(K)),t.events.length=L,h(O)}return u(O)}function h(O){if(i===r.length){if(!s)return w(O);if(s.currentConstruct&&s.currentConstruct.concrete)return E(O);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},A.check(Wm,m,B)(O)}function m(O){return s&&I(),Q(i),w(O)}function B(O){return t.parser.lazy[t.now().line]=i!==r.length,c=t.now().offset,E(O)}function w(O){return t.containerState={},A.attempt(Wm,C,E)(O)}function C(O){return i++,r.push([t.currentConstruct,t.containerState]),w(O)}function E(O){if(O===null){s&&I(),Q(0),A.consume(O);return}return s=s||t.parser.flow(t.now()),A.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:l}),v(O)}function v(O){if(O===null){F(A.exit("chunkFlow"),!0),Q(0),A.consume(O);return}return UA(O)?(A.consume(O),F(A.exit("chunkFlow")),i=0,t.interrupt=void 0,u):(A.consume(O),v)}function F(O,K){const j=t.sliceStream(O);if(K&&j.push(null),O.previous=l,l&&(l.next=O),l=O,s.defineSkip(O.start),s.write(j),t.parser.lazy[O.start.line]){let T=s.events.length;for(;T--;)if(s.events[T][1].start.offset<c&&(!s.events[T][1].end||s.events[T][1].end.offset>c))return;const L=t.events.length;let R=L,_,X;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){if(_){X=t.events[R][1].end;break}_=!0}for(Q(i),T=L;T<t.events.length;)t.events[T][1].end={...X},T++;dn(t.events,R+1,0,t.events.slice(L)),t.events.length=T}}function Q(O){let K=r.length;for(;K-- >O;){const j=r[K];t.containerState=j[1],j[0].exit.call(t,A)}r.length=O}function I(){s.write([null]),l=void 0,s=void 0,t.containerState._closeFlow=void 0}}function aQ(A,t,r){return me(A,A.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function $m(A){if(A===null||ft(A)||eQ(A))return 1;if(AQ(A))return 2}function mf(A,t,r){const i=[];let s=-1;for(;++s<A.length;){const l=A[s].resolveAll;l&&!i.includes(l)&&(t=l(t,r),i.push(l))}return t}const Bf={name:"attention",resolveAll:sQ,tokenize:lQ};function sQ(A,t){let r=-1,i,s,l,c,u,f,h,m;for(;++r<A.length;)if(A[r][0]==="enter"&&A[r][1].type==="attentionSequence"&&A[r][1]._close){for(i=r;i--;)if(A[i][0]==="exit"&&A[i][1].type==="attentionSequence"&&A[i][1]._open&&t.sliceSerialize(A[i][1]).charCodeAt(0)===t.sliceSerialize(A[r][1]).charCodeAt(0)){if((A[i][1]._close||A[r][1]._open)&&(A[r][1].end.offset-A[r][1].start.offset)%3&&!((A[i][1].end.offset-A[i][1].start.offset+A[r][1].end.offset-A[r][1].start.offset)%3))continue;f=A[i][1].end.offset-A[i][1].start.offset>1&&A[r][1].end.offset-A[r][1].start.offset>1?2:1;const B={...A[i][1].end},w={...A[r][1].start};AB(B,-f),AB(w,f),c={type:f>1?"strongSequence":"emphasisSequence",start:B,end:{...A[i][1].end}},u={type:f>1?"strongSequence":"emphasisSequence",start:{...A[r][1].start},end:w},l={type:f>1?"strongText":"emphasisText",start:{...A[i][1].end},end:{...A[r][1].start}},s={type:f>1?"strong":"emphasis",start:{...c.start},end:{...u.end}},A[i][1].end={...c.start},A[r][1].start={...u.end},h=[],A[i][1].end.offset-A[i][1].start.offset&&(h=Dt(h,[["enter",A[i][1],t],["exit",A[i][1],t]])),h=Dt(h,[["enter",s,t],["enter",c,t],["exit",c,t],["enter",l,t]]),h=Dt(h,mf(t.parser.constructs.insideSpan.null,A.slice(i+1,r),t)),h=Dt(h,[["exit",l,t],["enter",u,t],["exit",u,t],["exit",s,t]]),A[r][1].end.offset-A[r][1].start.offset?(m=2,h=Dt(h,[["enter",A[r][1],t],["exit",A[r][1],t]])):m=0,dn(A,i-1,r-i+3,h),r=i+h.length-m-2;break}}for(r=-1;++r<A.length;)A[r][1].type==="attentionSequence"&&(A[r][1].type="data");return A}function lQ(A,t){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,s=$m(i);let l;return c;function c(f){return l=f,A.enter("attentionSequence"),u(f)}function u(f){if(f===l)return A.consume(f),u;const h=A.exit("attentionSequence"),m=$m(f),B=!m||m===2&&s||r.includes(f),w=!s||s===2&&m||r.includes(i);return h._open=!!(l===42?B:B&&(s||!w)),h._close=!!(l===42?w:w&&(m||!B)),t(f)}}function AB(A,t){A.column+=t,A.offset+=t,A._bufferIndex+=t}const oQ={name:"autolink",tokenize:cQ};function cQ(A,t,r){let i=0;return s;function s(C){return A.enter("autolink"),A.enter("autolinkMarker"),A.consume(C),A.exit("autolinkMarker"),A.enter("autolinkProtocol"),l}function l(C){return hn(C)?(A.consume(C),c):C===64?r(C):h(C)}function c(C){return C===43||C===45||C===46||St(C)?(i=1,u(C)):h(C)}function u(C){return C===58?(A.consume(C),i=0,f):(C===43||C===45||C===46||St(C))&&i++<32?(A.consume(C),u):(i=0,h(C))}function f(C){return C===62?(A.exit("autolinkProtocol"),A.enter("autolinkMarker"),A.consume(C),A.exit("autolinkMarker"),A.exit("autolink"),t):C===null||C===32||C===60||gf(C)?r(C):(A.consume(C),f)}function h(C){return C===64?(A.consume(C),m):ZS(C)?(A.consume(C),h):r(C)}function m(C){return St(C)?B(C):r(C)}function B(C){return C===46?(A.consume(C),i=0,m):C===62?(A.exit("autolinkProtocol").type="autolinkEmail",A.enter("autolinkMarker"),A.consume(C),A.exit("autolinkMarker"),A.exit("autolink"),t):w(C)}function w(C){if((C===45||St(C))&&i++<63){const E=C===45?w:B;return A.consume(C),E}return r(C)}}const Gl={partial:!0,tokenize:uQ};function uQ(A,t,r){return i;function i(l){return ee(l)?me(A,s,"linePrefix")(l):s(l)}function s(l){return l===null||UA(l)?t(l):r(l)}}const eB={continuation:{tokenize:dQ},exit:hQ,name:"blockQuote",tokenize:fQ};function fQ(A,t,r){const i=this;return s;function s(c){if(c===62){const u=i.containerState;return u.open||(A.enter("blockQuote",{_container:!0}),u.open=!0),A.enter("blockQuotePrefix"),A.enter("blockQuoteMarker"),A.consume(c),A.exit("blockQuoteMarker"),l}return r(c)}function l(c){return ee(c)?(A.enter("blockQuotePrefixWhitespace"),A.consume(c),A.exit("blockQuotePrefixWhitespace"),A.exit("blockQuotePrefix"),t):(A.exit("blockQuotePrefix"),t(c))}}function dQ(A,t,r){const i=this;return s;function s(c){return ee(c)?me(A,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):l(c)}function l(c){return A.attempt(eB,t,r)(c)}}function hQ(A){A.exit("blockQuote")}const tB={name:"characterEscape",tokenize:gQ};function gQ(A,t,r){return i;function i(l){return A.enter("characterEscape"),A.enter("escapeMarker"),A.consume(l),A.exit("escapeMarker"),s}function s(l){return $S(l)?(A.enter("characterEscapeValue"),A.consume(l),A.exit("characterEscapeValue"),A.exit("characterEscape"),t):r(l)}}const nB={name:"characterReference",tokenize:pQ};function pQ(A,t,r){const i=this;let s=0,l,c;return u;function u(B){return A.enter("characterReference"),A.enter("characterReferenceMarker"),A.consume(B),A.exit("characterReferenceMarker"),f}function f(B){return B===35?(A.enter("characterReferenceMarkerNumeric"),A.consume(B),A.exit("characterReferenceMarkerNumeric"),h):(A.enter("characterReferenceValue"),l=31,c=St,m(B))}function h(B){return B===88||B===120?(A.enter("characterReferenceMarkerHexadecimal"),A.consume(B),A.exit("characterReferenceMarkerHexadecimal"),A.enter("characterReferenceValue"),l=6,c=WS,m):(A.enter("characterReferenceValue"),l=7,c=pf,m(B))}function m(B){if(B===59&&s){const w=A.exit("characterReferenceValue");return c===St&&!hf(i.sliceSerialize(w))?r(B):(A.enter("characterReferenceMarker"),A.consume(B),A.exit("characterReferenceMarker"),A.exit("characterReference"),t)}return c(B)&&s++<l?(A.consume(B),m):r(B)}}const rB={partial:!0,tokenize:BQ},iB={concrete:!0,name:"codeFenced",tokenize:mQ};function mQ(A,t,r){const i=this,s={partial:!0,tokenize:j};let l=0,c=0,u;return f;function f(T){return h(T)}function h(T){const L=i.events[i.events.length-1];return l=L&&L[1].type==="linePrefix"?L[2].sliceSerialize(L[1],!0).length:0,u=T,A.enter("codeFenced"),A.enter("codeFencedFence"),A.enter("codeFencedFenceSequence"),m(T)}function m(T){return T===u?(c++,A.consume(T),m):c<3?r(T):(A.exit("codeFencedFenceSequence"),ee(T)?me(A,B,"whitespace")(T):B(T))}function B(T){return T===null||UA(T)?(A.exit("codeFencedFence"),i.interrupt?t(T):A.check(rB,v,K)(T)):(A.enter("codeFencedFenceInfo"),A.enter("chunkString",{contentType:"string"}),w(T))}function w(T){return T===null||UA(T)?(A.exit("chunkString"),A.exit("codeFencedFenceInfo"),B(T)):ee(T)?(A.exit("chunkString"),A.exit("codeFencedFenceInfo"),me(A,C,"whitespace")(T)):T===96&&T===u?r(T):(A.consume(T),w)}function C(T){return T===null||UA(T)?B(T):(A.enter("codeFencedFenceMeta"),A.enter("chunkString",{contentType:"string"}),E(T))}function E(T){return T===null||UA(T)?(A.exit("chunkString"),A.exit("codeFencedFenceMeta"),B(T)):T===96&&T===u?r(T):(A.consume(T),E)}function v(T){return A.attempt(s,K,F)(T)}function F(T){return A.enter("lineEnding"),A.consume(T),A.exit("lineEnding"),Q}function Q(T){return l>0&&ee(T)?me(A,I,"linePrefix",l+1)(T):I(T)}function I(T){return T===null||UA(T)?A.check(rB,v,K)(T):(A.enter("codeFlowValue"),O(T))}function O(T){return T===null||UA(T)?(A.exit("codeFlowValue"),I(T)):(A.consume(T),O)}function K(T){return A.exit("codeFenced"),t(T)}function j(T,L,R){let _=0;return X;function X(eA){return T.enter("lineEnding"),T.consume(eA),T.exit("lineEnding"),nA}function nA(eA){return T.enter("codeFencedFence"),ee(eA)?me(T,z,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(eA):z(eA)}function z(eA){return eA===u?(T.enter("codeFencedFenceSequence"),lA(eA)):R(eA)}function lA(eA){return eA===u?(_++,T.consume(eA),lA):_>=c?(T.exit("codeFencedFenceSequence"),ee(eA)?me(T,Z,"whitespace")(eA):Z(eA)):R(eA)}function Z(eA){return eA===null||UA(eA)?(T.exit("codeFencedFence"),L(eA)):R(eA)}}}function BQ(A,t,r){const i=this;return s;function s(c){return c===null?r(c):(A.enter("lineEnding"),A.consume(c),A.exit("lineEnding"),l)}function l(c){return i.parser.lazy[i.now().line]?r(c):t(c)}}const Cf={name:"codeIndented",tokenize:wQ},CQ={partial:!0,tokenize:yQ};function wQ(A,t,r){const i=this;return s;function s(h){return A.enter("codeIndented"),me(A,l,"linePrefix",5)(h)}function l(h){const m=i.events[i.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?c(h):r(h)}function c(h){return h===null?f(h):UA(h)?A.attempt(CQ,c,f)(h):(A.enter("codeFlowValue"),u(h))}function u(h){return h===null||UA(h)?(A.exit("codeFlowValue"),c(h)):(A.consume(h),u)}function f(h){return A.exit("codeIndented"),t(h)}}function yQ(A,t,r){const i=this;return s;function s(c){return i.parser.lazy[i.now().line]?r(c):UA(c)?(A.enter("lineEnding"),A.consume(c),A.exit("lineEnding"),s):me(A,l,"linePrefix",5)(c)}function l(c){const u=i.events[i.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(c):UA(c)?s(c):r(c)}}const EQ={name:"codeText",previous:bQ,resolve:vQ,tokenize:xQ};function vQ(A){let t=A.length-4,r=3,i,s;if((A[r][1].type==="lineEnding"||A[r][1].type==="space")&&(A[t][1].type==="lineEnding"||A[t][1].type==="space")){for(i=r;++i<t;)if(A[i][1].type==="codeTextData"){A[r][1].type="codeTextPadding",A[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(i=r-1,t++;++i<=t;)s===void 0?i!==t&&A[i][1].type!=="lineEnding"&&(s=i):(i===t||A[i][1].type==="lineEnding")&&(A[s][1].type="codeTextData",i!==s+2&&(A[s][1].end=A[i-1][1].end,A.splice(s+2,i-s-2),t-=i-s-2,i=s+2),s=void 0);return A}function bQ(A){return A!==96||this.events[this.events.length-1][1].type==="characterEscape"}function xQ(A,t,r){let i=0,s,l;return c;function c(B){return A.enter("codeText"),A.enter("codeTextSequence"),u(B)}function u(B){return B===96?(A.consume(B),i++,u):(A.exit("codeTextSequence"),f(B))}function f(B){return B===null?r(B):B===32?(A.enter("space"),A.consume(B),A.exit("space"),f):B===96?(l=A.enter("codeTextSequence"),s=0,m(B)):UA(B)?(A.enter("lineEnding"),A.consume(B),A.exit("lineEnding"),f):(A.enter("codeTextData"),h(B))}function h(B){return B===null||B===32||B===96||UA(B)?(A.exit("codeTextData"),f(B)):(A.consume(B),h)}function m(B){return B===96?(A.consume(B),s++,m):s===i?(A.exit("codeTextSequence"),A.exit("codeText"),t(B)):(l.type="codeTextData",h(B))}}class SQ{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const i=r??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,r,i){const s=r||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return i&&os(this.left,i),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),os(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),os(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);os(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);os(this.left,r.reverse())}}}function os(A,t){let r=0;if(t.length<1e4)A.push(...t);else for(;r<t.length;)A.push(...t.slice(r,r+1e4)),r+=1e4}function aB(A){const t={};let r=-1,i,s,l,c,u,f,h;const m=new SQ(A);for(;++r<m.length;){for(;r in t;)r=t[r];if(i=m.get(r),r&&i[1].type==="chunkFlow"&&m.get(r-1)[1].type==="listItemPrefix"&&(f=i[1]._tokenizer.events,l=0,l<f.length&&f[l][1].type==="lineEndingBlank"&&(l+=2),l<f.length&&f[l][1].type==="content"))for(;++l<f.length&&f[l][1].type!=="content";)f[l][1].type==="chunkText"&&(f[l][1]._isInFirstContentOfListItem=!0,l++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,QQ(m,r)),r=t[r],h=!0);else if(i[1]._container){for(l=r,s=void 0;l--;)if(c=m.get(l),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(m.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=l);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(i[1].end={...m.get(s)[1].start},u=m.slice(s,r),u.unshift(i),m.splice(s,r-s+1,u))}}return dn(A,0,Number.POSITIVE_INFINITY,m.slice(0)),!h}function QQ(A,t){const r=A.get(t)[1],i=A.get(t)[2];let s=t-1;const l=[];let c=r._tokenizer;c||(c=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const u=c.events,f=[],h={};let m,B,w=-1,C=r,E=0,v=0;const F=[v];for(;C;){for(;A.get(++s)[1]!==C;);l.push(s),C._tokenizer||(m=i.sliceStream(C),C.next||m.push(null),B&&c.defineSkip(C.start),C._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(m),C._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),B=C,C=C.next}for(C=r;++w<u.length;)u[w][0]==="exit"&&u[w-1][0]==="enter"&&u[w][1].type===u[w-1][1].type&&u[w][1].start.line!==u[w][1].end.line&&(v=w+1,F.push(v),C._tokenizer=void 0,C.previous=void 0,C=C.next);for(c.events=[],C?(C._tokenizer=void 0,C.previous=void 0):F.pop(),w=F.length;w--;){const Q=u.slice(F[w],F[w+1]),I=l.pop();f.push([I,I+Q.length-1]),A.splice(I,2,Q)}for(f.reverse(),w=-1;++w<f.length;)h[E+f[w][0]]=E+f[w][1],E+=f[w][1]-f[w][0]-1;return h}const UQ={resolve:TQ,tokenize:NQ},FQ={partial:!0,tokenize:IQ};function TQ(A){return aB(A),A}function NQ(A,t){let r;return i;function i(u){return A.enter("content"),r=A.enter("chunkContent",{contentType:"content"}),s(u)}function s(u){return u===null?l(u):UA(u)?A.check(FQ,c,l)(u):(A.consume(u),s)}function l(u){return A.exit("chunkContent"),A.exit("content"),t(u)}function c(u){return A.consume(u),A.exit("chunkContent"),r.next=A.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function IQ(A,t,r){const i=this;return s;function s(c){return A.exit("chunkContent"),A.enter("lineEnding"),A.consume(c),A.exit("lineEnding"),me(A,l,"linePrefix")}function l(c){if(c===null||UA(c))return r(c);const u=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(c):A.interrupt(i.parser.constructs.flow,r,t)(c)}}function sB(A,t,r,i,s,l,c,u,f){const h=f||Number.POSITIVE_INFINITY;let m=0;return B;function B(Q){return Q===60?(A.enter(i),A.enter(s),A.enter(l),A.consume(Q),A.exit(l),w):Q===null||Q===32||Q===41||gf(Q)?r(Q):(A.enter(i),A.enter(c),A.enter(u),A.enter("chunkString",{contentType:"string"}),v(Q))}function w(Q){return Q===62?(A.enter(l),A.consume(Q),A.exit(l),A.exit(s),A.exit(i),t):(A.enter(u),A.enter("chunkString",{contentType:"string"}),C(Q))}function C(Q){return Q===62?(A.exit("chunkString"),A.exit(u),w(Q)):Q===null||Q===60||UA(Q)?r(Q):(A.consume(Q),Q===92?E:C)}function E(Q){return Q===60||Q===62||Q===92?(A.consume(Q),C):C(Q)}function v(Q){return!m&&(Q===null||Q===41||ft(Q))?(A.exit("chunkString"),A.exit(u),A.exit(c),A.exit(i),t(Q)):m<h&&Q===40?(A.consume(Q),m++,v):Q===41?(A.consume(Q),m--,v):Q===null||Q===32||Q===40||gf(Q)?r(Q):(A.consume(Q),Q===92?F:v)}function F(Q){return Q===40||Q===41||Q===92?(A.consume(Q),v):v(Q)}}function lB(A,t,r,i,s,l){const c=this;let u=0,f;return h;function h(C){return A.enter(i),A.enter(s),A.consume(C),A.exit(s),A.enter(l),m}function m(C){return u>999||C===null||C===91||C===93&&!f||C===94&&!u&&"_hiddenFootnoteSupport"in c.parser.constructs?r(C):C===93?(A.exit(l),A.enter(s),A.consume(C),A.exit(s),A.exit(i),t):UA(C)?(A.enter("lineEnding"),A.consume(C),A.exit("lineEnding"),m):(A.enter("chunkString",{contentType:"string"}),B(C))}function B(C){return C===null||C===91||C===93||UA(C)||u++>999?(A.exit("chunkString"),m(C)):(A.consume(C),f||(f=!ee(C)),C===92?w:B)}function w(C){return C===91||C===92||C===93?(A.consume(C),u++,B):B(C)}}function oB(A,t,r,i,s,l){let c;return u;function u(w){return w===34||w===39||w===40?(A.enter(i),A.enter(s),A.consume(w),A.exit(s),c=w===40?41:w,f):r(w)}function f(w){return w===c?(A.enter(s),A.consume(w),A.exit(s),A.exit(i),t):(A.enter(l),h(w))}function h(w){return w===c?(A.exit(l),f(c)):w===null?r(w):UA(w)?(A.enter("lineEnding"),A.consume(w),A.exit("lineEnding"),me(A,h,"linePrefix")):(A.enter("chunkString",{contentType:"string"}),m(w))}function m(w){return w===c||w===null||UA(w)?(A.exit("chunkString"),h(w)):(A.consume(w),w===92?B:m)}function B(w){return w===c||w===92?(A.consume(w),m):m(w)}}function cs(A,t){let r;return i;function i(s){return UA(s)?(A.enter("lineEnding"),A.consume(s),A.exit("lineEnding"),r=!0,i):ee(s)?me(A,i,r?"linePrefix":"lineSuffix")(s):t(s)}}const HQ={name:"definition",tokenize:MQ},_Q={partial:!0,tokenize:OQ};function MQ(A,t,r){const i=this;let s;return l;function l(C){return A.enter("definition"),c(C)}function c(C){return lB.call(i,A,u,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(C)}function u(C){return s=Qi(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),C===58?(A.enter("definitionMarker"),A.consume(C),A.exit("definitionMarker"),f):r(C)}function f(C){return ft(C)?cs(A,h)(C):h(C)}function h(C){return sB(A,m,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(C)}function m(C){return A.attempt(_Q,B,B)(C)}function B(C){return ee(C)?me(A,w,"whitespace")(C):w(C)}function w(C){return C===null||UA(C)?(A.exit("definition"),i.parser.defined.push(s),t(C)):r(C)}}function OQ(A,t,r){return i;function i(u){return ft(u)?cs(A,s)(u):r(u)}function s(u){return oB(A,l,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function l(u){return ee(u)?me(A,c,"whitespace")(u):c(u)}function c(u){return u===null||UA(u)?t(u):r(u)}}const RQ={name:"hardBreakEscape",tokenize:LQ};function LQ(A,t,r){return i;function i(l){return A.enter("hardBreakEscape"),A.consume(l),s}function s(l){return UA(l)?(A.exit("hardBreakEscape"),t(l)):r(l)}}const DQ={name:"headingAtx",resolve:kQ,tokenize:jQ};function kQ(A,t){let r=A.length-2,i=3,s,l;return A[i][1].type==="whitespace"&&(i+=2),r-2>i&&A[r][1].type==="whitespace"&&(r-=2),A[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&A[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(s={type:"atxHeadingText",start:A[i][1].start,end:A[r][1].end},l={type:"chunkText",start:A[i][1].start,end:A[r][1].end,contentType:"text"},dn(A,i,r-i+1,[["enter",s,t],["enter",l,t],["exit",l,t],["exit",s,t]])),A}function jQ(A,t,r){let i=0;return s;function s(m){return A.enter("atxHeading"),l(m)}function l(m){return A.enter("atxHeadingSequence"),c(m)}function c(m){return m===35&&i++<6?(A.consume(m),c):m===null||ft(m)?(A.exit("atxHeadingSequence"),u(m)):r(m)}function u(m){return m===35?(A.enter("atxHeadingSequence"),f(m)):m===null||UA(m)?(A.exit("atxHeading"),t(m)):ee(m)?me(A,u,"whitespace")(m):(A.enter("atxHeadingText"),h(m))}function f(m){return m===35?(A.consume(m),f):(A.exit("atxHeadingSequence"),u(m))}function h(m){return m===null||m===35||ft(m)?(A.exit("atxHeadingText"),u(m)):(A.consume(m),h)}}const KQ=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],cB=["pre","script","style","textarea"],VQ={concrete:!0,name:"htmlFlow",resolveTo:PQ,tokenize:YQ},GQ={partial:!0,tokenize:qQ},zQ={partial:!0,tokenize:XQ};function PQ(A){let t=A.length;for(;t--&&!(A[t][0]==="enter"&&A[t][1].type==="htmlFlow"););return t>1&&A[t-2][1].type==="linePrefix"&&(A[t][1].start=A[t-2][1].start,A[t+1][1].start=A[t-2][1].start,A.splice(t-2,2)),A}function YQ(A,t,r){const i=this;let s,l,c,u,f;return h;function h(S){return m(S)}function m(S){return A.enter("htmlFlow"),A.enter("htmlFlowData"),A.consume(S),B}function B(S){return S===33?(A.consume(S),w):S===47?(A.consume(S),l=!0,v):S===63?(A.consume(S),s=3,i.interrupt?t:N):hn(S)?(A.consume(S),c=String.fromCharCode(S),F):r(S)}function w(S){return S===45?(A.consume(S),s=2,C):S===91?(A.consume(S),s=5,u=0,E):hn(S)?(A.consume(S),s=4,i.interrupt?t:N):r(S)}function C(S){return S===45?(A.consume(S),i.interrupt?t:N):r(S)}function E(S){const aA="CDATA[";return S===aA.charCodeAt(u++)?(A.consume(S),u===aA.length?i.interrupt?t:z:E):r(S)}function v(S){return hn(S)?(A.consume(S),c=String.fromCharCode(S),F):r(S)}function F(S){if(S===null||S===47||S===62||ft(S)){const aA=S===47,uA=c.toLowerCase();return!aA&&!l&&cB.includes(uA)?(s=1,i.interrupt?t(S):z(S)):KQ.includes(c.toLowerCase())?(s=6,aA?(A.consume(S),Q):i.interrupt?t(S):z(S)):(s=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(S):l?I(S):O(S))}return S===45||St(S)?(A.consume(S),c+=String.fromCharCode(S),F):r(S)}function Q(S){return S===62?(A.consume(S),i.interrupt?t:z):r(S)}function I(S){return ee(S)?(A.consume(S),I):X(S)}function O(S){return S===47?(A.consume(S),X):S===58||S===95||hn(S)?(A.consume(S),K):ee(S)?(A.consume(S),O):X(S)}function K(S){return S===45||S===46||S===58||S===95||St(S)?(A.consume(S),K):j(S)}function j(S){return S===61?(A.consume(S),T):ee(S)?(A.consume(S),j):O(S)}function T(S){return S===null||S===60||S===61||S===62||S===96?r(S):S===34||S===39?(A.consume(S),f=S,L):ee(S)?(A.consume(S),T):R(S)}function L(S){return S===f?(A.consume(S),f=null,_):S===null||UA(S)?r(S):(A.consume(S),L)}function R(S){return S===null||S===34||S===39||S===47||S===60||S===61||S===62||S===96||ft(S)?j(S):(A.consume(S),R)}function _(S){return S===47||S===62||ee(S)?O(S):r(S)}function X(S){return S===62?(A.consume(S),nA):r(S)}function nA(S){return S===null||UA(S)?z(S):ee(S)?(A.consume(S),nA):r(S)}function z(S){return S===45&&s===2?(A.consume(S),D):S===60&&s===1?(A.consume(S),W):S===62&&s===4?(A.consume(S),U):S===63&&s===3?(A.consume(S),N):S===93&&s===5?(A.consume(S),gA):UA(S)&&(s===6||s===7)?(A.exit("htmlFlowData"),A.check(GQ,M,lA)(S)):S===null||UA(S)?(A.exit("htmlFlowData"),lA(S)):(A.consume(S),z)}function lA(S){return A.check(zQ,Z,M)(S)}function Z(S){return A.enter("lineEnding"),A.consume(S),A.exit("lineEnding"),eA}function eA(S){return S===null||UA(S)?lA(S):(A.enter("htmlFlowData"),z(S))}function D(S){return S===45?(A.consume(S),N):z(S)}function W(S){return S===47?(A.consume(S),c="",AA):z(S)}function AA(S){if(S===62){const aA=c.toLowerCase();return cB.includes(aA)?(A.consume(S),U):z(S)}return hn(S)&&c.length<8?(A.consume(S),c+=String.fromCharCode(S),AA):z(S)}function gA(S){return S===93?(A.consume(S),N):z(S)}function N(S){return S===62?(A.consume(S),U):S===45&&s===2?(A.consume(S),N):z(S)}function U(S){return S===null||UA(S)?(A.exit("htmlFlowData"),M(S)):(A.consume(S),U)}function M(S){return A.exit("htmlFlow"),t(S)}}function XQ(A,t,r){const i=this;return s;function s(c){return UA(c)?(A.enter("lineEnding"),A.consume(c),A.exit("lineEnding"),l):r(c)}function l(c){return i.parser.lazy[i.now().line]?r(c):t(c)}}function qQ(A,t,r){return i;function i(s){return A.enter("lineEnding"),A.consume(s),A.exit("lineEnding"),A.attempt(Gl,t,r)}}const JQ={name:"htmlText",tokenize:ZQ};function ZQ(A,t,r){const i=this;let s,l,c;return u;function u(N){return A.enter("htmlText"),A.enter("htmlTextData"),A.consume(N),f}function f(N){return N===33?(A.consume(N),h):N===47?(A.consume(N),j):N===63?(A.consume(N),O):hn(N)?(A.consume(N),R):r(N)}function h(N){return N===45?(A.consume(N),m):N===91?(A.consume(N),l=0,E):hn(N)?(A.consume(N),I):r(N)}function m(N){return N===45?(A.consume(N),C):r(N)}function B(N){return N===null?r(N):N===45?(A.consume(N),w):UA(N)?(c=B,W(N)):(A.consume(N),B)}function w(N){return N===45?(A.consume(N),C):B(N)}function C(N){return N===62?D(N):N===45?w(N):B(N)}function E(N){const U="CDATA[";return N===U.charCodeAt(l++)?(A.consume(N),l===U.length?v:E):r(N)}function v(N){return N===null?r(N):N===93?(A.consume(N),F):UA(N)?(c=v,W(N)):(A.consume(N),v)}function F(N){return N===93?(A.consume(N),Q):v(N)}function Q(N){return N===62?D(N):N===93?(A.consume(N),Q):v(N)}function I(N){return N===null||N===62?D(N):UA(N)?(c=I,W(N)):(A.consume(N),I)}function O(N){return N===null?r(N):N===63?(A.consume(N),K):UA(N)?(c=O,W(N)):(A.consume(N),O)}function K(N){return N===62?D(N):O(N)}function j(N){return hn(N)?(A.consume(N),T):r(N)}function T(N){return N===45||St(N)?(A.consume(N),T):L(N)}function L(N){return UA(N)?(c=L,W(N)):ee(N)?(A.consume(N),L):D(N)}function R(N){return N===45||St(N)?(A.consume(N),R):N===47||N===62||ft(N)?_(N):r(N)}function _(N){return N===47?(A.consume(N),D):N===58||N===95||hn(N)?(A.consume(N),X):UA(N)?(c=_,W(N)):ee(N)?(A.consume(N),_):D(N)}function X(N){return N===45||N===46||N===58||N===95||St(N)?(A.consume(N),X):nA(N)}function nA(N){return N===61?(A.consume(N),z):UA(N)?(c=nA,W(N)):ee(N)?(A.consume(N),nA):_(N)}function z(N){return N===null||N===60||N===61||N===62||N===96?r(N):N===34||N===39?(A.consume(N),s=N,lA):UA(N)?(c=z,W(N)):ee(N)?(A.consume(N),z):(A.consume(N),Z)}function lA(N){return N===s?(A.consume(N),s=void 0,eA):N===null?r(N):UA(N)?(c=lA,W(N)):(A.consume(N),lA)}function Z(N){return N===null||N===34||N===39||N===60||N===61||N===96?r(N):N===47||N===62||ft(N)?_(N):(A.consume(N),Z)}function eA(N){return N===47||N===62||ft(N)?_(N):r(N)}function D(N){return N===62?(A.consume(N),A.exit("htmlTextData"),A.exit("htmlText"),t):r(N)}function W(N){return A.exit("htmlTextData"),A.enter("lineEnding"),A.consume(N),A.exit("lineEnding"),AA}function AA(N){return ee(N)?me(A,gA,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):gA(N)}function gA(N){return A.enter("htmlTextData"),c(N)}}const wf={name:"labelEnd",resolveAll:eU,resolveTo:tU,tokenize:nU},WQ={tokenize:rU},$Q={tokenize:iU},AU={tokenize:aU};function eU(A){let t=-1;const r=[];for(;++t<A.length;){const i=A[t][1];if(r.push(A[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const s=i.type==="labelImage"?4:2;i.type="data",t+=s}}return A.length!==r.length&&dn(A,0,A.length,r),A}function tU(A,t){let r=A.length,i=0,s,l,c,u;for(;r--;)if(s=A[r][1],l){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;A[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(A[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(l=r,s.type!=="labelLink")){i=2;break}}else s.type==="labelEnd"&&(c=r);const f={type:A[l][1].type==="labelLink"?"link":"image",start:{...A[l][1].start},end:{...A[A.length-1][1].end}},h={type:"label",start:{...A[l][1].start},end:{...A[c][1].end}},m={type:"labelText",start:{...A[l+i+2][1].end},end:{...A[c-2][1].start}};return u=[["enter",f,t],["enter",h,t]],u=Dt(u,A.slice(l+1,l+i+3)),u=Dt(u,[["enter",m,t]]),u=Dt(u,mf(t.parser.constructs.insideSpan.null,A.slice(l+i+4,c-3),t)),u=Dt(u,[["exit",m,t],A[c-2],A[c-1],["exit",h,t]]),u=Dt(u,A.slice(c+1)),u=Dt(u,[["exit",f,t]]),dn(A,l,A.length,u),A}function nU(A,t,r){const i=this;let s=i.events.length,l,c;for(;s--;)if((i.events[s][1].type==="labelImage"||i.events[s][1].type==="labelLink")&&!i.events[s][1]._balanced){l=i.events[s][1];break}return u;function u(w){return l?l._inactive?B(w):(c=i.parser.defined.includes(Qi(i.sliceSerialize({start:l.end,end:i.now()}))),A.enter("labelEnd"),A.enter("labelMarker"),A.consume(w),A.exit("labelMarker"),A.exit("labelEnd"),f):r(w)}function f(w){return w===40?A.attempt(WQ,m,c?m:B)(w):w===91?A.attempt($Q,m,c?h:B)(w):c?m(w):B(w)}function h(w){return A.attempt(AU,m,B)(w)}function m(w){return t(w)}function B(w){return l._balanced=!0,r(w)}}function rU(A,t,r){return i;function i(B){return A.enter("resource"),A.enter("resourceMarker"),A.consume(B),A.exit("resourceMarker"),s}function s(B){return ft(B)?cs(A,l)(B):l(B)}function l(B){return B===41?m(B):sB(A,c,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(B)}function c(B){return ft(B)?cs(A,f)(B):m(B)}function u(B){return r(B)}function f(B){return B===34||B===39||B===40?oB(A,h,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(B):m(B)}function h(B){return ft(B)?cs(A,m)(B):m(B)}function m(B){return B===41?(A.enter("resourceMarker"),A.consume(B),A.exit("resourceMarker"),A.exit("resource"),t):r(B)}}function iU(A,t,r){const i=this;return s;function s(u){return lB.call(i,A,l,c,"reference","referenceMarker","referenceString")(u)}function l(u){return i.parser.defined.includes(Qi(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(u):r(u)}function c(u){return r(u)}}function aU(A,t,r){return i;function i(l){return A.enter("reference"),A.enter("referenceMarker"),A.consume(l),A.exit("referenceMarker"),s}function s(l){return l===93?(A.enter("referenceMarker"),A.consume(l),A.exit("referenceMarker"),A.exit("reference"),t):r(l)}}const sU={name:"labelStartImage",resolveAll:wf.resolveAll,tokenize:lU};function lU(A,t,r){const i=this;return s;function s(u){return A.enter("labelImage"),A.enter("labelImageMarker"),A.consume(u),A.exit("labelImageMarker"),l}function l(u){return u===91?(A.enter("labelMarker"),A.consume(u),A.exit("labelMarker"),A.exit("labelImage"),c):r(u)}function c(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(u):t(u)}}const oU={name:"labelStartLink",resolveAll:wf.resolveAll,tokenize:cU};function cU(A,t,r){const i=this;return s;function s(c){return A.enter("labelLink"),A.enter("labelMarker"),A.consume(c),A.exit("labelMarker"),A.exit("labelLink"),l}function l(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(c):t(c)}}const yf={name:"lineEnding",tokenize:uU};function uU(A,t){return r;function r(i){return A.enter("lineEnding"),A.consume(i),A.exit("lineEnding"),me(A,t,"linePrefix")}}const zl={name:"thematicBreak",tokenize:fU};function fU(A,t,r){let i=0,s;return l;function l(h){return A.enter("thematicBreak"),c(h)}function c(h){return s=h,u(h)}function u(h){return h===s?(A.enter("thematicBreakSequence"),f(h)):i>=3&&(h===null||UA(h))?(A.exit("thematicBreak"),t(h)):r(h)}function f(h){return h===s?(A.consume(h),i++,f):(A.exit("thematicBreakSequence"),ee(h)?me(A,u,"whitespace")(h):u(h))}}const dt={continuation:{tokenize:pU},exit:BU,name:"list",tokenize:gU},dU={partial:!0,tokenize:CU},hU={partial:!0,tokenize:mU};function gU(A,t,r){const i=this,s=i.events[i.events.length-1];let l=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return u;function u(C){const E=i.containerState.type||(C===42||C===43||C===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!i.containerState.marker||C===i.containerState.marker:pf(C)){if(i.containerState.type||(i.containerState.type=E,A.enter(E,{_container:!0})),E==="listUnordered")return A.enter("listItemPrefix"),C===42||C===45?A.check(zl,r,h)(C):h(C);if(!i.interrupt||C===49)return A.enter("listItemPrefix"),A.enter("listItemValue"),f(C)}return r(C)}function f(C){return pf(C)&&++c<10?(A.consume(C),f):(!i.interrupt||c<2)&&(i.containerState.marker?C===i.containerState.marker:C===41||C===46)?(A.exit("listItemValue"),h(C)):r(C)}function h(C){return A.enter("listItemMarker"),A.consume(C),A.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||C,A.check(Gl,i.interrupt?r:m,A.attempt(dU,w,B))}function m(C){return i.containerState.initialBlankLine=!0,l++,w(C)}function B(C){return ee(C)?(A.enter("listItemPrefixWhitespace"),A.consume(C),A.exit("listItemPrefixWhitespace"),w):r(C)}function w(C){return i.containerState.size=l+i.sliceSerialize(A.exit("listItemPrefix"),!0).length,t(C)}}function pU(A,t,r){const i=this;return i.containerState._closeFlow=void 0,A.check(Gl,s,l);function s(u){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,me(A,t,"listItemIndent",i.containerState.size+1)(u)}function l(u){return i.containerState.furtherBlankLines||!ee(u)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(u)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,A.attempt(hU,t,c)(u))}function c(u){return i.containerState._closeFlow=!0,i.interrupt=void 0,me(A,A.attempt(dt,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function mU(A,t,r){const i=this;return me(A,s,"listItemIndent",i.containerState.size+1);function s(l){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?t(l):r(l)}}function BU(A){A.exit(this.containerState.type)}function CU(A,t,r){const i=this;return me(A,s,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(l){const c=i.events[i.events.length-1];return!ee(l)&&c&&c[1].type==="listItemPrefixWhitespace"?t(l):r(l)}}const uB={name:"setextUnderline",resolveTo:wU,tokenize:yU};function wU(A,t){let r=A.length,i,s,l;for(;r--;)if(A[r][0]==="enter"){if(A[r][1].type==="content"){i=r;break}A[r][1].type==="paragraph"&&(s=r)}else A[r][1].type==="content"&&A.splice(r,1),!l&&A[r][1].type==="definition"&&(l=r);const c={type:"setextHeading",start:{...A[i][1].start},end:{...A[A.length-1][1].end}};return A[s][1].type="setextHeadingText",l?(A.splice(s,0,["enter",c,t]),A.splice(l+1,0,["exit",A[i][1],t]),A[i][1].end={...A[l][1].end}):A[i][1]=c,A.push(["exit",c,t]),A}function yU(A,t,r){const i=this;let s;return l;function l(h){let m=i.events.length,B;for(;m--;)if(i.events[m][1].type!=="lineEnding"&&i.events[m][1].type!=="linePrefix"&&i.events[m][1].type!=="content"){B=i.events[m][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||B)?(A.enter("setextHeadingLine"),s=h,c(h)):r(h)}function c(h){return A.enter("setextHeadingLineSequence"),u(h)}function u(h){return h===s?(A.consume(h),u):(A.exit("setextHeadingLineSequence"),ee(h)?me(A,f,"lineSuffix")(h):f(h))}function f(h){return h===null||UA(h)?(A.exit("setextHeadingLine"),t(h)):r(h)}}const EU={tokenize:vU};function vU(A){const t=this,r=A.attempt(Gl,i,A.attempt(this.parser.constructs.flowInitial,s,me(A,A.attempt(this.parser.constructs.flow,s,A.attempt(UQ,s)),"linePrefix")));return r;function i(l){if(l===null){A.consume(l);return}return A.enter("lineEndingBlank"),A.consume(l),A.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function s(l){if(l===null){A.consume(l);return}return A.enter("lineEnding"),A.consume(l),A.exit("lineEnding"),t.currentConstruct=void 0,r}}const bU={resolveAll:dB()},xU=fB("string"),SU=fB("text");function fB(A){return{resolveAll:dB(A==="text"?QU:void 0),tokenize:t};function t(r){const i=this,s=this.parser.constructs[A],l=r.attempt(s,c,u);return c;function c(m){return h(m)?l(m):u(m)}function u(m){if(m===null){r.consume(m);return}return r.enter("data"),r.consume(m),f}function f(m){return h(m)?(r.exit("data"),l(m)):(r.consume(m),f)}function h(m){if(m===null)return!0;const B=s[m];let w=-1;if(B)for(;++w<B.length;){const C=B[w];if(!C.previous||C.previous.call(i,i.previous))return!0}return!1}}}function dB(A){return t;function t(r,i){let s=-1,l;for(;++s<=r.length;)l===void 0?r[s]&&r[s][1].type==="data"&&(l=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==l+2&&(r[l][1].end=r[s-1][1].end,r.splice(l+2,s-l-2),s=l+2),l=void 0);return A?A(r,i):r}}function QU(A,t){let r=0;for(;++r<=A.length;)if((r===A.length||A[r][1].type==="lineEnding")&&A[r-1][1].type==="data"){const i=A[r-1][1],s=t.sliceStream(i);let l=s.length,c=-1,u=0,f;for(;l--;){const h=s[l];if(typeof h=="string"){for(c=h.length;h.charCodeAt(c-1)===32;)u++,c--;if(c)break;c=-1}else if(h===-2)f=!0,u++;else if(h!==-1){l++;break}}if(t._contentTypeTextTrailing&&r===A.length&&(u=0),u){const h={type:r===A.length||f||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?c:i.start._bufferIndex+c,_index:i.start._index+l,line:i.end.line,column:i.end.column-u,offset:i.end.offset-u},end:{...i.end}};i.end={...h.start},i.start.offset===i.end.offset?Object.assign(i,h):(A.splice(r,0,["enter",h,t],["exit",h,t]),r+=2)}r++}return A}const UU=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:HQ},disable:{null:[]},document:{42:dt,43:dt,45:dt,48:dt,49:dt,50:dt,51:dt,52:dt,53:dt,54:dt,55:dt,56:dt,57:dt,62:eB},flow:{35:DQ,42:zl,45:[uB,zl],60:VQ,61:uB,95:zl,96:iB,126:iB},flowInitial:{[-2]:Cf,[-1]:Cf,32:Cf},insideSpan:{null:[Bf,bU]},string:{38:nB,92:tB},text:{[-5]:yf,[-4]:yf,[-3]:yf,33:sU,38:nB,42:Bf,60:[oQ,JQ],91:oU,92:[RQ,tB],93:wf,95:Bf,96:EQ}},Symbol.toStringTag,{value:"Module"}));function FU(A,t,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},l=[];let c=[],u=[];const f={attempt:L(j),check:L(T),consume:I,enter:O,exit:K,interrupt:L(T,{interrupt:!0})},h={code:null,containerState:{},defineSkip:v,events:[],now:E,parser:A,previous:null,sliceSerialize:w,sliceStream:C,write:B};let m=t.tokenize.call(h,f);return t.resolveAll&&l.push(t),h;function B(nA){return c=Dt(c,nA),F(),c[c.length-1]!==null?[]:(R(t,0),h.events=mf(l,h.events,h),h.events)}function w(nA,z){return NU(C(nA),z)}function C(nA){return TU(c,nA)}function E(){const{_bufferIndex:nA,_index:z,line:lA,column:Z,offset:eA}=i;return{_bufferIndex:nA,_index:z,line:lA,column:Z,offset:eA}}function v(nA){s[nA.line]=nA.column,X()}function F(){let nA;for(;i._index<c.length;){const z=c[i._index];if(typeof z=="string")for(nA=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===nA&&i._bufferIndex<z.length;)Q(z.charCodeAt(i._bufferIndex));else Q(z)}}function Q(nA){m=m(nA)}function I(nA){UA(nA)?(i.line++,i.column=1,i.offset+=nA===-3?2:1,X()):nA!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===c[i._index].length&&(i._bufferIndex=-1,i._index++)),h.previous=nA}function O(nA,z){const lA=z||{};return lA.type=nA,lA.start=E(),h.events.push(["enter",lA,h]),u.push(lA),lA}function K(nA){const z=u.pop();return z.end=E(),h.events.push(["exit",z,h]),z}function j(nA,z){R(nA,z.from)}function T(nA,z){z.restore()}function L(nA,z){return lA;function lA(Z,eA,D){let W,AA,gA,N;return Array.isArray(Z)?M(Z):"tokenize"in Z?M([Z]):U(Z);function U(fA){return pA;function pA(kA){const HA=kA!==null&&fA[kA],NA=kA!==null&&fA.null,de=[...Array.isArray(HA)?HA:HA?[HA]:[],...Array.isArray(NA)?NA:NA?[NA]:[]];return M(de)(kA)}}function M(fA){return W=fA,AA=0,fA.length===0?D:S(fA[AA])}function S(fA){return pA;function pA(kA){return N=_(),gA=fA,fA.partial||(h.currentConstruct=fA),fA.name&&h.parser.constructs.disable.null.includes(fA.name)?uA():fA.tokenize.call(z?Object.assign(Object.create(h),z):h,f,aA,uA)(kA)}}function aA(fA){return nA(gA,N),eA}function uA(fA){return N.restore(),++AA<W.length?S(W[AA]):D}}}function R(nA,z){nA.resolveAll&&!l.includes(nA)&&l.push(nA),nA.resolve&&dn(h.events,z,h.events.length-z,nA.resolve(h.events.slice(z),h)),nA.resolveTo&&(h.events=nA.resolveTo(h.events,h))}function _(){const nA=E(),z=h.previous,lA=h.currentConstruct,Z=h.events.length,eA=Array.from(u);return{from:Z,restore:D};function D(){i=nA,h.previous=z,h.currentConstruct=lA,h.events.length=Z,u=eA,X()}}function X(){i.line in s&&i.column<2&&(i.column=s[i.line],i.offset+=s[i.line]-1)}}function TU(A,t){const r=t.start._index,i=t.start._bufferIndex,s=t.end._index,l=t.end._bufferIndex;let c;if(r===s)c=[A[r].slice(i,l)];else{if(c=A.slice(r,s),i>-1){const u=c[0];typeof u=="string"?c[0]=u.slice(i):c.shift()}l>0&&c.push(A[s].slice(0,l))}return c}function NU(A,t){let r=-1;const i=[];let s;for(;++r<A.length;){const l=A[r];let c;if(typeof l=="string")c=l;else switch(l){case-5:{c="\r";break}case-4:{c=`
|
|
87
|
+
`;function fx({title:A,description:t,suggestions:r,onSendMessage:i,disabled:s,composer:l,composerFooter:c,connectionBanner:u}){const f=h=>{const m=h.label||h.value||"";m&&i({message:h.value||m,messageId:Date.now().toString()})};return g.jsxs("div",{className:"flex-1 flex flex-col items-stretch justify-center px-4 py-6 gap-6 w-full max-w-2xl mx-auto overflow-y-auto",children:[g.jsxs("div",{className:"flex flex-col gap-2 items-start",children:[g.jsxs("h2",{className:"text-text-primary",style:{fontFamily:"Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",fontSize:36,lineHeight:"40px",fontWeight:500,letterSpacing:"-0.025em",margin:0},children:["Hi, this is ",A,"!"]}),t&&g.jsx("p",{className:"text-text-primary",style:{fontFamily:"Inter, sans-serif",fontSize:16,lineHeight:"24px",fontWeight:400,margin:0,maxWidth:420},children:t})]}),r&&r.length>0&&g.jsx("div",{className:"content-center flex flex-wrap gap-4 items-center",children:r.map((h,m)=>{const B=h.label||h.value||"";return B?g.jsx("button",{type:"button",onClick:()=>f(h),disabled:s,className:mA("inline-flex items-center bg-white border border-primary text-primary","rounded-lg overflow-clip whitespace-nowrap transition-colors shrink-0","supports-[hover:hover]:hover:bg-primary supports-[hover:hover]:hover:text-primary-foreground",s?"opacity-50 cursor-not-allowed":"cursor-pointer"),style:{fontFamily:"Inter, sans-serif",fontSize:16,lineHeight:"24px",fontWeight:500,padding:"8px 12px",WebkitTapHighlightColor:"transparent",outline:"none"},children:B},`${B}-${m}`):null})}),u,l&&g.jsxs("div",{className:"w-full overflow-hidden",style:{backgroundColor:"rgba(255, 255, 255, 0.7)",border:"1px solid hsl(var(--primary) / 0.5)",borderRadius:16,paddingBottom:12},children:[l,c]})]})}function gm(){const[A,t]=b.useState(typeof navigator<"u"?navigator.onLine:!0);return b.useEffect(()=>{const r=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",r),window.addEventListener("offline",i),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}},[]),{isOnline:A}}const dx=A=>A?A.split(" ").map(t=>t[0]).slice(0,2).join("").toUpperCase():"DR",hx=A=>{const t=new Date(A),r=t.toLocaleDateString(void 0,{weekday:"short"}),i=t.toLocaleDateString(void 0,{day:"2-digit"});return{weekday:r,dayNum:i}},gx=(A=[],t=[])=>{if(!A.length)return t;if(!t.length)return A;const r=A.map(i=>({...i}));for(const i of t){const s=i.date?r.findIndex(l=>l.date===i.date):-1;if(s===-1)r.push({...i});else{const l=r[s];r[s]={...l,...i,slots:i.slots??l.slots}}}return r},px=(A=[],t=[])=>{if(!A.length)return t;if(!t.length)return A;const r=A.map(i=>({...i}));for(const i of t){const s=i.doctor_id?r.findIndex(l=>l.doctor_id===i.doctor_id):-1;if(s===-1)r.push({...i});else{const l=r[s];r[s]={...l,...i,availability:gx(l.availability,i.availability)}}}return r},pm=A=>!!A&&Array.isArray(A.doctors),mx=(A,t,r)=>A?t?r!==hA.SYNAPSE_COMPONENTS.DOCTOR_CARD?t:!pm(A)||!pm(t)?A:{...t,doctors:px(A.doctors,t.doctors),doctor_details:{...A.doctor_details||{},...t.doctor_details||{}}}:A:t,nr=A=>{const t=A;return t?.message?t.error?.msg||t.message:A instanceof Error?A.message:"An unexpected error occurred"},Bx=({environment:A,connectionType:t,baseUrl:r,context:i,auth:s})=>{const[l,c]=b.useState([]),u=b.useRef([]),[f,h]=b.useState(!1),m=b.useRef(0),[B,w]=b.useState(!1),[C,E]=b.useState([]),v=b.useRef(null),F=Qb(),Q=b.useRef(null),{isOnline:N}=gm(),O=b.useRef(!1),j=qA(V=>V.agentId),K=qA(V=>V.sessionId),T=qA(V=>V.sessionToken),L=qA(V=>V.isStreaming),R=qA(V=>V.isWaitingForResponse),_=qA(V=>V.initialMessage),X=qA(V=>V.userId),nA=qA(V=>V.fileUploadPerSession),{setSessionId:z,setSessionToken:lA,setError:Z,setConnectionStatus:eA,setShowRetryButton:D,setStartNewConnection:W,setIsStreaming:AA,setIsWaitingForResponse:gA,setProgressMessage:I,setRecordingStatus:U,clearSession:M,addMessageToSession:S,getMessagesForSession:aA,updateMessageInSession:uA,setInitialMessage:fA,setUserId:pA,setFileUploadPerSession:LA,setToastMessage:IA,upsertElicitationState:FA}=qA.getState();b.useEffect(()=>{N?B?le()&&(eA(qe.CONNECTED),$e()):eA(qe.CONNECTING):eA(qe.NOT_CONNECTED)},[N,B]),b.useEffect(()=>{if(K){const V=aA(K)||[];if(V.length<=0&&_?.text){const q=Date.now().toString(),dA=!!_.suggestions?.length?`${q}::initial-suggestions`:null;dA&&FA(dA,{tool_id:"",active:!1,disabled:!1,messageId:q,component:hA.SYNAPSE_COMPONENTS.PILL,send_to_llm:!0,ui_input:{options:(_.suggestions||[]).map(SA=>({id:SA.value||"",label:SA.label||"",value:SA.value||""}))}}),c([{id:q,content:_.text,role:bt.ASSISTANT,timestamp:vi(Date.now()),isStored:!1,...dA&&{tool_keys:[dA]}}])}else c(V);E([])}},[K,_]),b.useEffect(()=>{if(w(!1),!j)return;const V=new hA.SynapseSDK({agentId:j,environment:A,...t&&{connectionType:t},userId:X,callbacks:{onError:q=>{switch(q.code){case hA.SynapseErrorCode.SESSION:{const oA=q.context;oA?.stage==="handleSessionExpiry"||oA?.stage==="refreshSession"?N?(Z({title:"Internet connection Failed!",description:nr(q)}),D(!0)):(Z({title:"Your session has ended.",description:"Please start a new Chat."}),D(!0)):(eA(qe.NOT_CONNECTED),Z({title:"Something went wrong!",description:nr(q)}),D(!0));break}case hA.SynapseErrorCode.RECORDING:Z({title:"Recording failed",description:nr(q)});break;case hA.SynapseErrorCode.CONNECTION:le()||(eA(qe.NOT_CONNECTED),m.current<2?(m.current=m.current+1,fe(K,T)):(D(!0),Z({title:"Trying to connect...",description:nr(q)})));break;default:Z({title:"Something went wrong",description:nr(q)}),D(!0);break}},onSessionRefreshed:q=>{q?.session_id&&q?.session_token&&(z(q.session_id),lA(q.session_token))}},...r&&{serverUrl:r},...i&&{context:i},...s&&{auth:s}});return v.current=V,F(V),w(!0),()=>{w(!1),v.current?.endSession(),v.current=null,F(null),Q.current&&(clearTimeout(Q.current),Q.current=null)}},[j,A,s]),b.useEffect(()=>{u.current=l},[l]),b.useEffect(()=>{const V=u.current[u.current.length-1];!V?.role||!K||(V?.role===bt.USER&&!V.isStored?S(K,{...V,isStored:!0}):!L&&!V.isStored&&(c(q=>{const oA=[...q];return oA[oA.length-1]={...V,isStored:!0},oA}),S(K,{...V,isStored:!0})))},[l,L]),b.useEffect(()=>{const V=l[l.length-1];return()=>{V&&!V?.isStored&&K&&S(K,{...V,isStored:!0})}},[]),b.useEffect(()=>(Q.current&&(clearTimeout(Q.current),Q.current=null),R&&!L?Q.current=setTimeout(()=>{gA(!1),Q.current=null},3e4):L&&Q.current&&(clearTimeout(Q.current),Q.current=null),()=>{Q.current&&(clearTimeout(Q.current),Q.current=null)}),[R,L,gA]);const fe=async(V,q,oA=!1)=>{try{const dA=await v.current?.startSession({session_id:V||"",session_token:q||""});dA?.session_id&&dA?.session_token&&(z(dA.session_id),lA(dA.session_token)),(dA?.initial_message?.text||dA?.initial_message?.suggestions?.length)&&fA(dA.initial_message),dA?.user_id&&pA(dA.user_id)}catch(dA){const SA=dA,NA=SA.context?.stage==="handleSessionExpiry"||SA.context?.stage==="refreshSession"||SA.status===404,ZA=SA.status===403;NA?(Z(null),eA(qe.NOT_CONNECTED),W(!0)):ZA&&!oA?(M(),$e(),await fe(void 0,void 0,!0)):(Z({title:"Connection Lost!",description:nr(dA)}),D(!0))}},de=async(V=!1)=>{try{if(!v.current){Z({title:"SDK not initialized",description:"Please ensure agentId is configured"}),h(!1);return}if(h(!0),V){await M(),await v?.current?.endSession(),$e(),await fe(),Ut();return}const{sessionId:q,sessionToken:oA}=qA.getState();await fe(q,oA),Ut()}catch{}finally{h(!1)}},le=()=>v.current?.isConnected()??!1,Te=()=>{v.current?.endSession()},$e=()=>{m.current=0,D(!1),W(!1),Z(null)},Ut=()=>{v.current?.on(hA.SYNAPSE_REALTIME_EVENTS.MESSAGE_CHUNK,V=>{const q=V;if(q.data?.text&&q.messageId){L||(gA(!1),AA(!0)),le()&&eA(qe.CONNECTED),$e();const oA=q.data.text,dA=q.messageId,SA=O.current;O.current=!1,c(NA=>{const ZA=NA[NA.length-1];if(ZA&&ZA.id===dA&&ZA.role===bt.ASSISTANT){const zA=[...NA],he=SA&&ZA.content.length>0&&!/\s$/.test(ZA.content)&&!/^\s/.test(oA)?`
|
|
88
|
+
|
|
89
|
+
`:"";return zA[zA.length-1]={...ZA,content:ZA.content+he+oA},zA}else return[...NA,{id:dA,content:oA,role:bt.ASSISTANT,timestamp:vi(Date.now()),isStored:!1}]})}}),v.current?.on(hA.SYNAPSE_REALTIME_EVENTS.END_OF_STREAM,()=>{O.current=!1,AA(!1),I(null),gA(!1)}),v.current?.on(hA.SYNAPSE_REALTIME_EVENTS.CONNECTED,()=>{$e(),eA(qe.CONNECTED)}),v.current?.on(hA.SYNAPSE_REALTIME_EVENTS.TOOL_CALL,V=>{O.current=!0;const q=V;if(!q?.messageId||!q?.data||!q?.data?.details?.component||!q?.data?.tool_id)return;R&&gA(!1);const{messageId:oA,data:dA}=q,SA=dA.tool_id,NA=`${oA}::${SA}`,zA=qA.getState().elicitationState[NA],he=dA.details?.component,DA=q?.data?.details?._meta?.tool_result,pt=dA.details?.input,bA=mx(zA?.ui_input,pt,he);let ee=q.data.details?._meta?.disp_toast_msg;const Ie=dA?.details?._meta?.schema?.required||[];switch(dA?.details?.status){case hA.SYNAPSE_EICITATION_STATUS.PROGRESS:{const xe=q?.data?.details?.input||{},Nn=Ie.reduce((ln,Gt)=>(xe[Gt]!==void 0&&(ln[Gt]=xe[Gt]),ln),{}),ve={...zA?.server_input||{},...Nn},kA=Ie.filter(ln=>!ve[ln]),Gi=q.data.details?._meta?.mcp_meta_fields||[];FA(NA,{tool_id:SA,active:!0,disabled:!1,ui_input:bA,server_input:ve,messageId:oA,required:Ie,component:he,pattern:q.data.details?._meta?.schema?.properties?.[q.data.details?.component]?.pattern,minLength:q.data.details?._meta?.schema?.properties?.[q.data.details?.component]?.minLength,maxLength:q.data.details?._meta?.schema?.properties?.[q.data.details?.component]?.maxLength,type:q.data.details?._meta?.schema?.properties?.[q.data.details?.component]?.type,disp_toast_msg:q.data.details?._meta?.disp_toast_msg,description:q.data.details?._meta?.schema?.properties?.[q.data.details?.component]?.description,tool_result:DA,orientation:q.data.details?._meta?.orientation,...Gi.length&&{mcp_meta_fields:Gi},...kA?{toolSelectionNames:kA}:{}});break}case hA.SYNAPSE_EICITATION_STATUS.SUCCESS:{FA(NA,{...zA||{},tool_id:SA,disabled:!0,active:M4(he),messageId:oA,component:he,ui_input:bA,tool_result:DA,send_to_llm:!0});break}case hA.SYNAPSE_EICITATION_STATUS.FAILURE:{FA(NA,{...zA||{},tool_id:SA,active:!1,messageId:oA,response_value:{label:dA?.details?._meta?.disp_message||"Tool call failed"},tool_result:DA,disabled:!0});break}default:FA(NA,{tool_id:SA,disabled:!1,active:!1,messageId:oA,tool_result:DA,ui_input:bA,component:he})}ee&&IA(ee),c(xe=>{let ve=xe[xe.length-1]?.id===oA?xe.length-1:xe.findIndex?.(kA=>kA.id===oA);if(ve==-1){const kA={id:oA,content:q.data?.details?.input?.text||"",role:bt.ASSISTANT,tool_keys:[NA],isResponseFromTool:!0,isStored:!1};return[...xe,kA]}else{const kA={...xe[ve],isResponseFromTool:!0,tool_keys:[...new Set([...xe[ve].tool_keys||[],NA])]};xe[ve]=kA,uA(K,oA,kA)}return[...xe]});const mt=q?.data?.details?._meta?.disp_message,sn=qA.getState().elicitationState;if((!sn[NA]?.active||sn[NA]?.send_to_llm)&&(mt||Object.keys(DA||{}).length))try{gt({message:mt||"",tool_result:DA,toolCalled:!0,tool_key:NA})}catch{}}),v.current?.on(hA.SYNAPSE_REALTIME_EVENTS.DISCONNECTED,V=>{V?.reason!==hA.DisconnectionReason.CLIENT_CLOSED&&(m.current<2?(eA(qe.NOT_CONNECTED),m.current=m.current+1,D(!0),Z({title:"Something went wrong!",description:"Please try again."})):(eA(qe.NOT_CONNECTED),Z({title:"Something went wrong!",description:"Please start a new Chat."}),W(!0)))}),v.current?.on(hA.SYNAPSE_REALTIME_EVENTS.ERROR,V=>{switch(V?.data?.code){case hA.SYNAPSE_REALTIME_ERROR_CODES.SESSION_INACTIVE:Z({title:"Session not found",description:"Please start a new session"}),W(!0),U(Ce.IDLE);return;case hA.SYNAPSE_REALTIME_ERROR_CODES.SESSION_TOKEN_MISMATCH:Z({title:"Session not found",description:"Please start a new chat from onError callback"}),W(!0),U(Ce.IDLE);return;case hA.SYNAPSE_REALTIME_ERROR_CODES.INVALID_EVENT:return;case hA.SYNAPSE_REALTIME_ERROR_CODES.INVALID_CONTENT_TYPE:return;case hA.SYNAPSE_REALTIME_ERROR_CODES.PARSING_ERROR:if(m.current<1){m.current++,pr();return}Z({title:"Error parsing request",description:"please try again"}),D(!0),U(Ce.IDLE);return;case hA.SYNAPSE_REALTIME_ERROR_CODES.TIMEOUT:Z({title:"Request timed out",description:"please try again"}),D(!0),U(Ce.IDLE);return;case hA.SYNAPSE_REALTIME_ERROR_CODES.PROMPT_FETCH_ERROR:Z({title:"Something went wrong",description:"please try again"}),D(!0),U(Ce.IDLE);return;case hA.SYNAPSE_REALTIME_ERROR_CODES.INVALID_FILE_REQUEST:Z({title:"Something went wrong",description:"please try again"}),D(!0),U(Ce.IDLE);return;case hA.SYNAPSE_REALTIME_ERROR_CODES.SERVER_ERROR:Z({title:"Something went wrong",description:"please try again"}),D(!0),U(Ce.IDLE);return;default:Z({title:"Something went wrong",description:"please try again"}),D(!0),U(Ce.IDLE);return}}),v.current?.on(hA.SYNAPSE_REALTIME_EVENTS.AUDIO_TRANSCRIPT,async V=>{const q=V;q?.data?.text&&(c(oA=>[...oA,{id:Date.now().toString(),content:q.data.text||"",role:bt.USER,timestamp:vi(Date.now()),isStored:!0}]),U(Ce.IDLE)),AA(!1),gA(!1),I(null)}),v.current?.on(hA.SYNAPSE_REALTIME_EVENTS.PROGRESS_MESSAGE,V=>{O.current=!0;const q=V;q.data?.text&&(gA(!1),I(q.data.text))}),v.current?.on(hA.SYNAPSE_REALTIME_EVENTS.TOOL_START,V=>{O.current=!0;const q=V;if(q.data?.name&&q.messageId){const oA=q.messageId;c(dA=>{const SA=dA[dA.length-1];if(SA&&SA.id===oA&&SA.role===bt.ASSISTANT){const NA=[...dA];return NA[NA.length-1]={...SA,toolCallStatus:`Calling tool: ${q.data.name}...`},K&&uA(K,oA,{toolCallStatus:`Calling tool: ${q.data.name}...`}),NA}return dA})}}),v.current?.on(hA.SYNAPSE_REALTIME_EVENTS.TOOL_END,V=>{O.current=!0;const q=V;if(q.data?.name&&q.messageId){const oA=q.messageId;c(dA=>{const SA=dA[dA.length-1];if(SA&&SA.id===oA&&SA.role===bt.ASSISTANT){const NA=[...dA];return NA[NA.length-1]={...SA,toolCallStatus:"Tool call completed."},K&&uA(K,oA,{toolCallStatus:"Tool call completed."}),NA}return dA})}})},gt=async({message:V,files:q,audio:oA,toolCalled:dA,selectedComponent:SA,resend:NA,tool_declined:ZA,tool_result:zA,tool_key:he})=>{if(!le()){D(!0),Z({title:"Please try again."});return}const DA=qA.getState().elicitationState,pt=Object.values(DA).some(bA=>bA.active);if(!(!dA&&q&&q.length===0&&V?.trim()===""&&!oA?.audio&&!SA&&!pt&&!zA&&!Object.keys(zA||{}).length)){if(q&&q.length>3){Z({title:"Maximum 3 files are allowed to be sent at a time",description:"Please try again"});return}if(q&&q.length>0&&q.reduce((bA,ee)=>bA+ee.size,0)>10*1024*1024){Z({title:"Total file size limit of 10MB exceeded",description:"Please reduce the size of the files or try again with less files"});return}if(q&&q.length>0&&q.length+nA>zu){const bA=zu-nA;Z({title:`You can only upload up to ${zu} files per session`,description:`${bA<=0?"Maximum file upload limit reached":`You have ${bA} file${bA===1?"":"s"} upload${bA===1?"":"s"} left`}`});return}else q&&q.length&&LA(nA+q.length);Z(null),D(!1),le()&&eA(qe.CONNECTED);try{const bA=l.length==2&&C.length==2?C:null;let ee=null;const Ie=l.length-1,mt=Ie>=0?l[Ie]:null,sn=mt?mt?.isResponseFromTool:null,Nn=qA.getState().elicitationState,ve=he||null,kA=ve?Nn[ve]:void 0,ln=kA?.component===hA.SYNAPSE_COMPONENTS.DOCTOR_CARD||kA?.component===hA.SYNAPSE_COMPONENTS.CARD?!!kA&&!zA:!!kA?.active,Gt=!!(q||[]).length||!!oA?.audio||!!ZA||!ln||!dA;if(!Gt&&ln&&ve&&kA?.messageId){const Pe=kA.toolSelectionNames?.length?kA.toolSelectionNames:kA.required?.filter(te=>!kA.server_input?.[te])??[],Ft=Pe.reduce((te,HA)=>{if(SA){const Oe=SA[HA];Oe!==void 0&&(te[HA]=Oe)}else Pe.length===1&&(te[HA]=V);return te},{}),mr=kA.mcp_meta_fields?.reduce((te,HA)=>(Pe.includes(HA)?te[HA]=Ft[HA]:kA.server_input?.[HA]&&(te[HA]=kA.server_input[HA]),NA&&!te.is_resend&&(te.is_resend=NA),te),{}),Ms=Object.keys(kA.server_input||{})?.reduce((te,HA)=>{const Oe=!Object.keys(mr||{})?.includes(HA),Hn=!!kA.server_input?.[HA];return(NA?Oe&&Hn:Oe&&kA.required?.includes(HA)&&Hn)&&(te[HA]=kA.server_input?.[HA]),te},{}),Yo=NA?{}:(kA.required||Pe).reduce((te,HA)=>(Object.keys(mr||{}).includes(HA)||(Ft[HA]!==void 0?te[HA]=Ft[HA]:SA&&SA[HA]!==void 0&&(te[HA]=SA[HA])),te),{}),zi={...Ms||{},...Yo,...Object.keys(mr||{}).length&&{mcp_meta_fields:mr}};if(!Object.keys(zi).length)return;await FA(ve,{...kA,server_input:{...kA.server_input||{},...zi}});try{await Cn(kA.tool_id,kA.messageId,zi),ee=!0}catch(te){await v.current?.sendMessage({tool_result:{...kA.tool_result,error:`Tool call failed: ${nr(te)}`}}),FA(ve,{...kA,active:!1,disabled:!0,response_value:{label:`Tool call failed: ${nr(te)}`}})}}else{const Pe=kA?.active,Ft=zA??kA?.tool_result;await v.current?.sendMessage({message:V,files:q,audio:oA,...bA&&{initial_prompts:bA},...ZA||sn&&!dA||Pe?{tool_id:kA?.tool_id||""}:{},...Ft&&{tool_result:Ft}})}(V||q&&q.length>0||oA?.audio)&&(c(Pe=>ee?Pe:[...Pe,{id:Date.now().toString(),content:V||"",files:q||[],audio:oA,role:bt.USER,timestamp:vi(Date.now()),isStored:!1}]),ee||gA(!0),ee=null);const Rd=qA.getState().elicitationState,Ai=new Set;ve&&Ai.add(ve),ve&&Ai.add(ve),mt?.tool_keys?.forEach(Pe=>Ai.add(Pe)),Ai.forEach(Pe=>{const Ft=Rd[Pe];Ft&&FA(Pe,{...Ft,...Gt&&{active:!1,disabled:!0},...Pe===ve?{response_value:{...Ft?.response_value||{},label:V||""}}:{}})})}catch{}}},an=V=>V.type.toLowerCase()&&!["application/pdf","image/jpeg","image/jpg","image/png"].includes(V.type)?(Z({title:`File type not supported: ${V.name}`,description:"Only PDF, images (JPG, JPEG, PNG) are allowed."}),!1):V.size>3*1024*1024?(Z({title:"File size limit of 3MB exceeded",description:"Please reduce the size of the file or try again with a smaller file"}),!1):!0,ot=async()=>{if(!le())throw new Error("Not connected to the server");try{await v.current?.startRecording({onChunks:async V=>{U(Ce.PROCESSING),await gt({audio:V}),U(Ce.TRANSCRIBING)},onError(V){U(Ce.IDLE)}}),U(Ce.LISTENING)}catch(V){throw U(Ce.IDLE),V}},In=()=>{le()&&v.current?.endRecording()},Cn=async(V,q,oA)=>{try{if(!le())throw new Error("Not connected to the server");await v.current?.callTool(V,q,oA)}catch(dA){throw dA}},$r=async()=>{$e(),await M(),await de(!0)},pr=async()=>{if(le()){eA(qe.CONNECTED);const V=u.current[u.current.length-1];if(V&&V.role===bt.USER)try{v.current?.sendMessage({message:V.content,files:V.files||[],messageId:V.id,audio:V.audio})}catch{}}else if(eA(qe.NOT_CONNECTED),m.current<2){m.current++;const{sessionId:V,sessionToken:q}=qA.getState();await fe(V,q)}else m.current===2?(m.current++,D(!0),Z({title:"Trying to connect..."})):(Z({title:"Something went wrong!",description:"Please start a new chat."}),W(!0))};return{sendMessage:gt,startSession:de,incomingMessages:l,loading:f,endSession:Te,isReady:B,startRecording:ot,stopRecording:In,handleRetry:pr,isValidFile:an,handleStartNewConnection:$r,callTool:Cn,handleInitialTaskClick:async V=>{if(!_?.suggestions?.length||!V)return;const q=_.suggestions.find(oA=>oA.value===V);if(!q||!q.response){await gt({message:V});return}c(oA=>[...oA,{id:Date.now().toString(),content:V,role:bt.USER,timestamp:vi(Date.now()),isStored:!1}]),gA(!0),await O4(1e3),gA(!1),c(oA=>[...oA,{id:Date.now().toString(),content:q.response||"Please try again",role:bt.ASSISTANT,timestamp:vi(Date.now()),isStored:!1}]),E([{role:"user",text:V},{role:"assistant",text:q.response}])},handleToggleFeedback:async(V,q,oA)=>{if(le())try{await v.current?.sendFeedback(q,V,oA)}catch{}},clearElicitationState:async(V,q)=>{const oA=qA.getState().elicitationState,dA=V?oA[V]:void 0;try{await gt({message:q||"User aborted elicitation",tool_declined:!0,tool_result:dA?.tool_result,tool_key:V})}catch{}finally{V&&dA&&FA(V,{...dA,active:!1,disabled:!0})}}}},Cx=32,wx=100,yx=320;function Ex(){return typeof window>"u"||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function vx({messageCount:A,isStreaming:t,isFirstMessage:r,resolvedMode:i}){const s=b.useRef(null),l=b.useRef(null),[c,u]=b.useState(!1),f=b.useRef(null),h=b.useRef(!1),m=b.useRef("auto"),B=b.useRef(!0),w=b.useCallback(()=>s.current?.querySelector("[data-radix-scroll-area-viewport]")||null,[]),C=b.useCallback(F=>Ex()?"auto":F,[]),E=b.useCallback(F=>{const Q=w();Q&&(Q.scrollTo({top:Q.scrollHeight,behavior:C(F)}),u(!1))},[w,C]),v=b.useCallback(F=>{h.current=!0,m.current=F,f.current===null&&(f.current=requestAnimationFrame(()=>{f.current=null,h.current&&(h.current=!1,E(m.current))}))},[E]);return b.useEffect(()=>()=>{f.current!==null&&(cancelAnimationFrame(f.current),f.current=null),h.current=!1},[]),b.useEffect(()=>{if(!A)return;v(t||r?"auto":"smooth")},[A,t,r,v]),b.useEffect(()=>{if(!A||!B.current)return;const F=setTimeout(()=>v("auto"),yx);return()=>clearTimeout(F)},[i,A,v]),b.useEffect(()=>{let F=!1,Q=null,N=null,O=0;const j=()=>{if(F)return;const K=w(),L=l.current?.parentElement;if(!K||!L){requestAnimationFrame(j);return}const R=()=>{const{scrollTop:nA,scrollHeight:z,clientHeight:lA}=K;return z-nA-lA<=Cx};B.current=!0;let _=0;const X=()=>{if(_>0){_--;return}B.current=R()};K.addEventListener("scroll",X,{passive:!0}),N=()=>K.removeEventListener("scroll",X),Q=new ResizeObserver(()=>{if(!B.current)return;const nA=Date.now();nA-O<wx||(O=nA,_++,v("auto"))}),Q.observe(L)};return j(),()=>{F=!0,Q?.disconnect(),N?.()}},[w,v]),{scrollAreaRef:s,messagesEndRef:l,showScrollButton:c,scrollToBottom:E,scheduleScrollToBottom:v}}function bx({isOpen:A,agentId:t,config:r}){const{state:i,isMuted:s,connect:l,disconnect:c,reset:u,toggleMute:f}=Ub(),h=()=>{i===hA.VOICE_AGENT_STATE.IDLE&&l()},m=i!==hA.VOICE_AGENT_STATE.IDLE,[B,w]=b.useState(""),[C,E]=b.useState(!1),v=qA(bA=>bA.setDisplayMode),[F,Q]=b.useState(r.displayMode==="full"?"full":"widget"),N=()=>Q(bA=>bA==="full"?"widget":"full"),j=um()?"mobile":F,[K,T]=b.useState([]),L=b.useRef(!1),[R,_]=b.useState(!1),X=b.useRef(null),{setAgentId:nA,startNewConnection:z,showRetryButton:lA,clearError:Z,error:eA,connectionStatus:D,recordingStatus:W,isWaitingForResponse:AA,isStreaming:gA,setError:I,sessionId:U,setContext:M,initialMessage:S,setInitialDisplayMode:aA}=qA(),uA=qA(bA=>bA.elicitationState),{incomingMessages:fA,loading:pA,sendMessage:LA,startSession:IA,isReady:FA,startRecording:fe,stopRecording:de,handleRetry:le,isValidFile:Te,handleToggleFeedback:$e,clearElicitationState:Ut}=Bx({environment:r.environment,connectionType:r.connectionType,baseUrl:r.environment==="development"&&r.baseUrl?r.baseUrl:void 0,context:r?.context,...r?.auth&&{auth:r.auth}});b.useEffect(()=>{t&&(X.current!==t&&(vb(t),bb(t),nA(t),(r.displayMode==="full"||r.displayMode==="widget")&&(v(r.displayMode),aA(r.displayMode)),r?.context&&Object.keys(r?.context||{}).length&&M(r.context),X.current=t),A&&FA&&!L.current&&(L.current=!0,IA(!1)))},[A,FA,t]),b.useEffect(()=>()=>{c()},[]);const gt=fA.length>0,an=fA.length===1,ot=b.useMemo(()=>{const bA=fA[fA.length-1],ee=bA?.tool_keys?.[bA.tool_keys.length-1];if(!ee)return null;const Ie=uA[ee];return Ie?.active?{...Ie,tool_key:ee}:null},[fA,uA]),Cn=(!!S?.text||!!S?.suggestions?.length)&&!fA.some(bA=>bA.role===bt.USER),$r=b.useMemo(()=>ot?ot.component===hA.SYNAPSE_COMPONENTS.MOBILE||ot.component===hA.SYNAPSE_COMPONENTS.OTP||ot.component===hA.SYNAPSE_COMPONENTS.EMAIL:!1,[ot]),{scrollAreaRef:pr,messagesEndRef:ze,showScrollButton:Vi,scrollToBottom:rA,scheduleScrollToBottom:V}=vx({messageCount:fA.length,isStreaming:gA,isFirstMessage:an,resolvedMode:j}),q=D===hA.ConnectionStatus.CONNECTED,oA=pA||!q||AA||gA,dA=pA||!q,SA=b.useMemo(()=>W===Ce.IDLE?null:W===Ce.LISTENING?"Listening...":W===Ce.PROCESSING?"Processing...":W===Ce.TRANSCRIBING?"Transcribing...":null,[W]),NA=dA?"Connecting...":SA&&W!==Ce.IDLE?SA:AA||gA?"Please wait for the response...":"Type a reply…",ZA=async bA=>{if(oA)return;const ee=bA?.message??B;(ee.trim()||C||R||bA?.resend)&&(K.length>0?(await LA({files:K,message:ee.trim()}),T([]),_(!1)):ee.trim()?await LA({...bA,message:ee.trim()}):bA?.resend&&await LA(bA),w(""),E(!1),_(!1),setTimeout(()=>{V("auto")},100))},zA=bA=>{if(bA&&bA.length>0){const ee=bA.filter(Ie=>!!Te(Ie));if(ee?.length+K.length>3){I({title:"You can only upload up to 3 files at a time",description:"Please remove some files and try again."});return}if(ee?.length>0&&ee.reduce((Ie,mt)=>Ie+mt.size,0)>10*1024*1024){I({title:`Total file size limit of ${zb} MB exceeded`,description:"Please reduce the size of the files or try again with less files"});return}if(ee?.length>0)bA=ee;else return}T(ee=>(_((ee?.length??0)+(bA?.length??0)>0),[...ee,...bA]))},he=bA=>{T(ee=>{const Ie=ee.filter((mt,sn)=>sn!==bA);return _(Ie.length>0),Ie})},DA=async()=>{if(C)await de(),E(!1);else{if(oA)return;try{await fe(),E(!0)}catch{}}},pt={value:B,onChange:w,onSend:ZA,onFileChange:zA,onRemoveFile:he,onRecording:DA,isRecording:C,hasAttachment:R,attachmentFiles:K,isDisabled:oA,placeholder:NA,recordingStatus:W,allowed:r.allowed,isVoiceAgentActive:m,handleVoiceMode:h};return{inputValue:B,setInputValue:w,isRecording:C,hasAttachment:R,attachmentFiles:K,showScrollButton:Vi,displayMode:F,setDisplayMode:Q,toggleDisplayMode:N,resolvedMode:j,currentDisplayMode:F,setCurrentDisplayMode:Q,scrollAreaRef:pr,messagesEndRef:ze,startNewConnection:z,showRetryButton:lA,clearError:Z,error:eA,connectionStatus:D,isStreaming:gA,sessionId:U,activeElicitation:ot,inConversation:gt,isFirstMessage:an,isEmptyChat:Cn,isAuthComponent:$r,isConnected:q,isComposerDisabled:oA,loading:pA,initialMessage:S,incomingMessages:fA,sendMessage:LA,startSession:IA,handleToggleFeedback:$e,clearElicitationState:Ut,handleRetry:le,handleSendMessage:ZA,handleFileChange:zA,handleRemoveFile:he,handleRecording:DA,scrollToBottom:rA,scheduleScrollToBottom:V,chatComposerProps:pt,voiceAgentState:i,isMuted:s,isVoiceAgentActive:m,connectVoiceAgent:l,disconnectVoiceAgent:c,resetVoiceAgent:u,toggleMute:f,handleVoiceAgentClick:h}}const xx=b.lazy(()=>Promise.resolve().then(()=>g6)),Sx=b.lazy(()=>Promise.resolve().then(()=>B6)),mm=b.lazy(()=>Promise.resolve().then(()=>w6).then(A=>({default:A.ConnectionStatus})));function Qx({isOpen:A,agentId:t,config:r}){const{toggleDisplayMode:i,resolvedMode:s,scrollAreaRef:l,messagesEndRef:c,showScrollButton:u,startNewConnection:f,showRetryButton:h,clearError:m,error:B,sessionId:w,activeElicitation:C,isAuthComponent:E,isConnected:v,loading:F,inConversation:Q,isFirstMessage:N,isEmptyChat:O,incomingMessages:j,sendMessage:K,startSession:T,handleToggleFeedback:L,clearElicitationState:R,handleRetry:_,scrollToBottom:X,chatComposerProps:nA,initialMessage:z,isComposerDisabled:lA,voiceAgentState:Z,isMuted:eA,isVoiceAgentActive:D,disconnectVoiceAgent:W,resetVoiceAgent:AA,toggleMute:gA}=bx({isOpen:A,agentId:t,config:r});return g.jsx(jb,{enabled:!!r.resize,children:g.jsx(hm,{isOpen:A,onClose:r.onClose,showCloseButton:r.showCloseButton,title:r.title,showStartNewChatButton:f,titleImg:r.theme?.titleImg,tagline:r.theme?.tagline,iconUrl:r.iconUrl,onStartNewSession:()=>T(!0),sessionId:w,environment:r.environment,mode:s,onToggleDisplayMode:r.resize?i:void 0,theme:r.theme,isAuthComponent:E,activeElicitation:C,voiceAgentState:Z,chatComposer:nA,fullScreenEmptyState:O?I=>g.jsx(fx,{title:r.title,description:z?.text,suggestions:z?.suggestions,onSendMessage:K,disabled:lA,composer:I.composer,composerFooter:I.composerFooter,connectionBanner:g.jsx(mm,{onRetry:_,showRetryButton:h,startNewConnection:f,clearError:m,error:B,isConnected:v})}):void 0,children:D?g.jsx(cx,{state:Z,isMuted:eA,onEndCall:W,onClose:AA,onToggleMute:gA,agentName:r.title,iconUrl:r.iconUrl,textColor:r.theme?.textColor}):!F&&g.jsx(b.Suspense,{fallback:g.jsx(Ux,{}),children:g.jsxs("div",{className:mA("flex-1 flex flex-col min-h-0 overflow-hidden relative synapse-chat-window"),children:[g.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col overflow-hidden",children:[g.jsxs(Up,{ref:l,className:"flex-1 min-h-0 [&>[data-radix-scroll-area-viewport]>div]:!flex [&>[data-radix-scroll-area-viewport]>div]:flex-col [&>[data-radix-scroll-area-viewport]>div]:min-h-full",children:[g.jsx("div",{className:"flex-1"}),g.jsxs("div",{className:mA("transition-all duration-300 min-w-0 overflow-x-hidden",Q?"p-4 space-y-3":"p-4 space-y-4",s==="full"&&"max-w-2xl mx-auto w-full"),children:[N&&g.jsx("div",{className:"text-xs text-[var(--color-muted-foreground)] text-center mb-2",children:"Just now"}),!N&&g.jsx("div",{className:"text-xs text-[var(--color-muted-foreground)] text-center",children:new Date().toLocaleString("en-US",{weekday:"long",hour:"2-digit",minute:"2-digit",hour12:!0})}),g.jsx(xx,{messages:j,onSendMessage:K,iconUrl:r.iconUrl,onToggleFeedback:L,onClearElicitationState:R,isAuthComponent:E,isFullScreen:s==="full"}),g.jsx("div",{ref:c})]})]}),g.jsx(b.Suspense,{fallback:null,children:g.jsx(Sx,{})})]}),u&&g.jsx("div",{className:"absolute bottom-[10px] left-1/2 transform -translate-x-1/2 z-10",children:g.jsx(jA,{onClick:()=>X("smooth"),size:"icon",className:"h-10 w-10 rounded-full bg-surface/90 backdrop-blur-sm shadow-lg border border-border-subtle hover:bg-surface hover:shadow-xl transition-all duration-200",children:g.jsx(es,{className:"w-5 h-5 text-text-primary"})})}),g.jsx(mm,{className:"mt-2",onRetry:_,showRetryButton:h,startNewConnection:f,clearError:m,error:B,isConnected:v})]})})})})}function Ux(){return g.jsxs("div",{className:"flex-1 flex flex-col min-h-0 overflow-hidden bg-surface backdrop-blur-2xl animate-pulse",children:[g.jsxs("div",{className:"flex-1 p-6 space-y-4",children:[g.jsx("div",{className:"h-16 bg-surface/80 rounded-2xl border border-border-subtle/50"}),g.jsx("div",{className:"h-16 bg-surface/80 rounded-2xl border border-border-subtle/50"}),g.jsx("div",{className:"h-16 bg-surface/80 rounded-2xl border border-border-subtle/50"})]}),g.jsx("div",{className:"h-24 border-t border-border-subtle bg-surface/80"})]})}function qu(A){if(A instanceof Error)return A;if(typeof A=="string")return new Error(A);try{return new Error(JSON.stringify(A))}catch{return new Error("Unknown error")}}class Fx extends b.Component{state={error:null};static getDerivedStateFromError(t){return{error:qu(t)}}componentDidCatch(t,r){this.setState({componentStack:r?.componentStack})}render(){return this.state.error?g.jsx(Nx,{error:this.state.error,componentStack:this.state.componentStack,title:this.props.title,titleImg:this.props.titleImg,iconUrl:this.props.iconUrl,onClose:this.props.onClose,showCloseButton:this.props.showCloseButton,environment:this.props.environment,displayMode:this.props.displayMode,theme:this.props.theme}):this.props.children}}function Tx({error:A}){throw A}function Ix(A){const[t,r]=b.useState(null);return b.useEffect(()=>{if(typeof window>"u")return;const i=l=>{!l?.error&&!l?.filename&&l?.message==="Script error."||(l?.error?r(qu(l.error)):l?.message&&r(new Error(l.message)))},s=l=>{r(qu(l.reason))};return window.addEventListener("error",i),window.addEventListener("unhandledrejection",s),()=>{window.removeEventListener("error",i),window.removeEventListener("unhandledrejection",s)}},[]),g.jsx(Fx,{...A,children:t?g.jsx(Tx,{error:t}):A.children})}function Nx({error:A,title:t,titleImg:r,iconUrl:i,onClose:s,showCloseButton:l,environment:c,displayMode:u,theme:f}){const h=()=>{typeof window<"u"&&window.location.reload()},m=t??"Medi Clinic",B=c??"production",w=b.useMemo(()=>f?.textColor==="white"?"text-white/60":"text-[var(--color-muted-foreground)]",[f?.textColor]);return g.jsx(hm,{isOpen:!0,onClose:s??(()=>{}),showCloseButton:l??!1,onStartNewSession:h,title:m,titleImg:r,iconUrl:i,environment:B,mode:u??"widget",theme:f,children:g.jsx("div",{className:"flex-1 min-h-0 overflow-hidden flex flex-col",children:g.jsx("div",{className:"flex-1 min-h-0 flex items-center justify-center p-6",children:g.jsxs("div",{className:"w-full max-w-[320px] text-center",children:[g.jsx("div",{className:"mx-auto mb-4 grid place-items-center",children:g.jsx("div",{className:"h-16 w-16 rounded-3xl bg-surface backdrop-blur border border-border-subtle grid place-items-center",children:g.jsx(mb,{className:"h-8 w-8",style:{color:f?.primary??"hsl(var(--primary))"}})})}),g.jsx("div",{className:"text-2xl font-semibold text-text-primary",children:"Uh-oh!"}),g.jsx("div",{className:["mt-2 text-sm",w].join(" "),children:"Something went wrong. Please try again."}),g.jsx("div",{className:["mt-4 rounded-2xl border border-border-subtle/60 bg-surface/60 backdrop-blur px-4 py-3","text-left text-[11px] leading-relaxed font-mono whitespace-pre-wrap break-words",w].join(" "),children:A?.message||String(A)}),g.jsx("div",{className:"mt-5 flex items-center justify-center gap-3",children:g.jsxs(jA,{type:"button",onClick:h,className:"rounded-2xl",style:{backgroundColor:f?.primary??void 0},children:[g.jsx(gb,{className:"h-4 w-4 mr-2"}),"Retry"]})})]})})})})}function Hx({agentId:A,config:t}){const[r,i]=b.useState(!1);b.useEffect(()=>{i(!0)},[]);const s=()=>{i(!1),t?.onClose?.()};return g.jsx(Ix,{title:t.title??"Medi Clinic",titleImg:t.theme?.titleImg,iconUrl:t.iconUrl??"https://cdn.eka.care/bot-icon.svg",onClose:s,showCloseButton:t.showCloseButton,environment:t.environment??"production",displayMode:t.displayMode,theme:t.theme,children:g.jsx(xb,{children:g.jsx(Qx,{isOpen:r,agentId:A,config:{...t,environment:t.environment??"production",onClose:s,title:t.title??"Medi Clinic",iconUrl:t.iconUrl??"https://cdn.eka.care/bot-icon.svg",theme:t.theme}})})})}const Bm=(A,t,r)=>{const i=r||{},s=t2.createRoot(A);return s.render(g.jsx(b.StrictMode,{children:g.jsx(Hx,{agentId:t,config:i})})),s};typeof window<"u"&&(window.renderMedAssist=Bm);const Ju=b.forwardRef(({className:A,...t},r)=>g.jsx("textarea",{className:mA("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",A),ref:r,...t}));Ju.displayName="Textarea";function Cm({file:A,onRemove:t,isPreview:r=!0,className:i=""}){const[s,l]=b.useState(!1),[c,u]=b.useState(""),f=A?.type?.startsWith("image/")??!1,h=A?.type==="application/pdf";b.useEffect(()=>{if(f){const w=URL.createObjectURL(A);return u(w),()=>URL.revokeObjectURL(w)}},[A,f]),b.useEffect(()=>{l(!1)},[A]);const m=()=>f?"text-green-600":"text-text-secondary",B=w=>{if(w===0)return"0 B";const C=1024,E=["B","KB","MB","GB"],v=Math.floor(Math.log(w)/Math.log(C));return`${(w/Math.pow(C,v)).toFixed(1)} ${E[v]}`.toLowerCase()};return!f||s?g.jsxs("div",{className:`relative group inline-flex flex-shrink-0 bg-white border border-neutral-300 rounded-lg flex items-center gap-3 px-3 py-2.5 max-w-full ${r?"hover:bg-neutral-50":""} ${i}`,children:[g.jsx("div",{className:`flex-shrink-0 ${m()}`,children:g.jsx(ib,{className:"h-5 w-5"})}),g.jsxs("div",{className:"flex-1 min-w-0 max-w-[200px]",children:[A?.name&&g.jsx("div",{className:"text-sm font-medium text-[var(--color-foreground)] truncate",children:A.name}),A?.size&&g.jsx("div",{className:"text-xs text-[var(--color-muted-foreground)]",children:B(A.size)})]}),r&&t&&g.jsx("button",{onClick:t,"aria-label":`Remove ${A.name}`,className:"flex-shrink-0 flex items-center justify-center w-5 h-5 text-[var(--color-muted-foreground)] hover:text-[var(--color-foreground)] transition-colors",children:g.jsx(ts,{className:"h-4 w-4"})})]}):g.jsxs("div",{className:`relative group flex-shrink-0 ${i}`,children:[g.jsx("div",{className:`w-20 h-20 bg-white border border-neutral-300 rounded-lg flex items-center justify-center overflow-hidden ${r?"hover:bg-neutral-100 cursor-pointer":""}`,children:c&&g.jsx("img",{src:c,alt:A.name,className:"w-full h-full object-cover",onError:()=>l(!0)})}),r&&t&&g.jsx("button",{onClick:t,"aria-label":`Remove ${A.name}`,className:"absolute top-0 right-0 bg-[var(--color-muted)] text-black rounded-full w-5 h-5 flex items-center justify-center hover:bg-[var(--color-muted-foreground)] transition-colors z-10 transform translate-x-1 -translate-y-1",children:g.jsx(ts,{className:"h-3 w-3 text-black"})})]})}function Zu({files:A,onRemoveFile:t,isPreview:r=!0,className:i=""}){if(A.length===0)return null;const s=A.filter(c=>c.type?.startsWith("image/")),l=A.filter(c=>!c.type?.startsWith("image/"));return g.jsxs("div",{className:`flex flex-wrap justify-end gap-2 max-w-full ${i}`,children:[l.map(c=>{const u=A.indexOf(c);return g.jsx(Cm,{file:c,onRemove:t?()=>t(u):void 0,isPreview:r},`${c.name}-${c.size}-${u}`)}),s.length>0&&g.jsx("div",{className:"flex gap-2 overflow-x-auto max-w-full p-1 scrollbar-hide",children:s.map(c=>{const u=A.indexOf(c);return g.jsx(Cm,{file:c,onRemove:t?()=>t(u):void 0,isPreview:r},`${c.name}-${c.size}-${u}`)})})]})}const ns=({className:A})=>g.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:A,children:g.jsx("path",{d:"M1.46875 0.09375L16.3125 6.9375C16.75 7.125 17 7.53125 17 8C17 8.46875 16.75 8.875 16.3125 9.0625L1.46875 15.9062C1.3125 15.9688 1.1875 16 1.03125 16C0.46875 16 0 15.5312 0 14.9688C0 14.8125 0.03125 14.6875 0.09375 14.5625L2.34375 9.5C2.5 9.15625 2.8125 8.9375 3.15625 8.90625L8.0625 8.46875C8.3125 8.46875 8.5 8.25 8.5 8C8.5 7.75 8.3125 7.5625 8.0625 7.53125L3.15625 7.09375C2.8125 7.0625 2.5 6.84375 2.34375 6.5L0.09375 1.4375C0.03125 1.3125 0 1.1875 0 1.03125C0 0.46875 0.46875 0 1.03125 0C1.1875 0 1.3125 0.03125 1.46875 0.09375Z",fill:"currentColor"})}),Wu=b.forwardRef(({className:A,type:t,...r},i)=>{const s=A&&typeof A=="string"&&A.includes("placeholder:");return g.jsx("input",{type:t,className:mA("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",!s&&"placeholder:text-muted-foreground",A),ref:i,...r})});Wu.displayName="Input";const _x=()=>g.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{display:"block"},"aria-hidden":"true",children:[g.jsx("g",{clipPath:"url(#circleClip)",children:g.jsxs("g",{children:[g.jsx("path",{d:"M15.9766 0.0234375V5.31055H0.0234375V0.0234375H15.9766Z",fill:"#FF9933",stroke:"#1A1A1A","stroke-width":"0.046875"}),g.jsx("path",{d:"M15.9766 5.35779V10.642H0.0234375V5.35779H15.9766Z",fill:"white",stroke:"#1A1A1A","stroke-width":"0.046875"}),g.jsx("path",{d:"M0 10.6656H16V16H0V10.6656Z",fill:"#128807"}),g.jsx("path",{d:"M8.00101 10.1334C9.17921 10.1334 10.1343 9.17824 10.1343 8.00003C10.1343 6.82182 9.17921 5.8667 8.00101 5.8667C6.8228 5.8667 5.86768 6.82182 5.86768 8.00003C5.86768 9.17824 6.8228 10.1334 8.00101 10.1334Z",fill:"#000088"}),g.jsx("path",{d:"M8.00143 9.86663C9.03236 9.86663 9.8681 9.0309 9.8681 7.99997C9.8681 6.96904 9.03236 6.1333 8.00143 6.1333C6.9705 6.1333 6.13477 6.96904 6.13477 7.99997C6.13477 9.0309 6.9705 9.86663 8.00143 9.86663Z",fill:"white"}),g.jsx("path",{d:"M8.00126 8.37325C8.20745 8.37325 8.3746 8.20611 8.3746 7.99992C8.3746 7.79373 8.20745 7.62659 8.00126 7.62659C7.79508 7.62659 7.62793 7.79373 7.62793 7.99992C7.62793 8.20611 7.79508 8.37325 8.00126 8.37325Z",fill:"#000088"}),g.jsx("path",{d:"M9.84014 8.33936C9.8927 8.34628 9.94093 8.30928 9.94785 8.25671C9.95477 8.20415 9.91776 8.15593 9.8652 8.14901C9.81263 8.14208 9.76441 8.17909 9.75749 8.23165C9.75057 8.28422 9.78757 8.33244 9.84014 8.33936Z",fill:"#000088"}),g.jsx("path",{d:"M8.00199 9.86647L8.06599 8.74647L8.00199 8.21313L7.93799 8.74647L8.00199 9.86647Z",fill:"#000088"}),g.jsx("path",{d:"M9.69246 8.8036C9.74145 8.82389 9.7976 8.80063 9.81789 8.75165C9.83818 8.70266 9.81492 8.6465 9.76594 8.62622C9.71696 8.60593 9.6608 8.62919 9.64051 8.67817C9.62022 8.72715 9.64348 8.78331 9.69246 8.8036Z",fill:"#000088"}),g.jsx("path",{d:"M7.52209 9.80289L7.87379 8.73762L7.95 8.2059L7.75015 8.70449L7.52209 9.80289Z",fill:"#000088"}),g.jsx("path",{d:"M9.4251 9.21296C9.46716 9.24524 9.52743 9.2373 9.5597 9.19524C9.59198 9.15318 9.58405 9.09291 9.54198 9.06064C9.49992 9.02836 9.43966 9.0363 9.40738 9.07836C9.3751 9.12042 9.38304 9.18069 9.4251 9.21296Z",fill:"#000088"}),g.jsx("path",{d:"M7.06958 9.61654L7.68501 8.67859L7.89625 8.18471L7.57415 8.61459L7.06958 9.61654Z",fill:"#000088"}),g.jsx("path",{d:"M9.06041 9.53972C9.09269 9.58179 9.15295 9.58972 9.19502 9.55744C9.23708 9.52517 9.24501 9.4649 9.21274 9.42284C9.18046 9.38078 9.1202 9.37284 9.07814 9.40512C9.03607 9.4374 9.02814 9.49766 9.06041 9.53972Z",fill:"#000088"}),g.jsx("path",{d:"M6.68086 9.31981L7.51807 8.5731L7.84994 8.15072L7.42756 8.48259L6.68086 9.31981Z",fill:"#000088"}),g.jsx("path",{d:"M8.6284 9.76153C8.64869 9.81052 8.70484 9.83378 8.75383 9.81349C8.80281 9.7932 8.82607 9.73704 8.80578 9.68806C8.78549 9.63907 8.72933 9.61581 8.68035 9.6361C8.63137 9.65639 8.60811 9.71255 8.6284 9.76153Z",fill:"#000088"}),g.jsx("path",{d:"M6.38679 8.93324L7.38874 8.42867L7.81862 8.10657L7.32474 8.31781L6.38679 8.93324Z",fill:"#000088"}),g.jsx("path",{d:"M8.14737 9.86316C8.15429 9.91573 8.20251 9.95273 8.25508 9.94581C8.30764 9.93889 8.34465 9.89066 8.33773 9.8381C8.33081 9.78553 8.28258 9.74853 8.23002 9.75545C8.17745 9.76237 8.14045 9.81059 8.14737 9.86316Z",fill:"#000088"}),g.jsx("path",{d:"M6.19642 8.4829L7.29482 8.25484L7.79342 8.05498L7.2617 8.1312L6.19642 8.4829Z",fill:"#000088"}),g.jsx("path",{d:"M7.66381 9.83806C7.65689 9.89063 7.69389 9.93885 7.74646 9.94577C7.79903 9.95269 7.84725 9.91569 7.85417 9.86312C7.86109 9.81056 7.82409 9.76233 7.77152 9.75541C7.71895 9.74849 7.67073 9.7855 7.66381 9.83806Z",fill:"#000088"}),g.jsx("path",{d:"M6.13671 7.99991L7.25671 8.06391L7.79004 7.99991L7.25671 7.93591L6.13671 7.99991Z",fill:"#000088"}),g.jsx("path",{d:"M7.20092 9.68758C7.18063 9.73656 7.20389 9.79272 7.25287 9.81301C7.30185 9.8333 7.35801 9.81004 7.3783 9.76106C7.39859 9.71207 7.37533 9.65592 7.32635 9.63563C7.27736 9.61534 7.22121 9.6386 7.20092 9.68758Z",fill:"#000088"}),g.jsx("path",{d:"M6.20138 7.51684L7.26665 7.86854L7.79838 7.94475L7.29978 7.7449L6.20138 7.51684Z",fill:"#000088"}),g.jsx("path",{d:"M6.79363 9.42217C6.76135 9.46423 6.76929 9.5245 6.81135 9.55677C6.85341 9.58905 6.91368 9.58112 6.94595 9.53905C6.97823 9.49699 6.9703 9.43673 6.92823 9.40445C6.88617 9.37217 6.82591 9.38011 6.79363 9.42217Z",fill:"#000088"}),g.jsx("path",{d:"M6.39018 7.06677L7.32812 7.6822L7.822 7.89344L7.39212 7.57135L6.39018 7.06677Z",fill:"#000088"}),g.jsx("path",{d:"M6.46467 9.05968C6.42261 9.09196 6.41467 9.15222 6.44695 9.19428C6.47923 9.23635 6.53949 9.24428 6.58155 9.21201C6.62362 9.17973 6.63155 9.11947 6.59927 9.0774C6.567 9.03534 6.50673 9.02741 6.46467 9.05968Z",fill:"#000088"}),g.jsx("path",{d:"M6.68459 6.68013L7.43129 7.51734L7.85367 7.84921L7.5218 7.42683L6.68459 6.68013Z",fill:"#000088"}),g.jsx("path",{d:"M6.24115 8.6251C6.19217 8.64539 6.16891 8.70155 6.1892 8.75053C6.20949 8.79951 6.26564 8.82277 6.31463 8.80248C6.36361 8.7822 6.38687 8.72604 6.36658 8.67705C6.34629 8.62807 6.29014 8.60481 6.24115 8.6251Z",fill:"#000088"}),g.jsx("path",{d:"M7.06908 6.38338L7.57365 7.38532L7.89575 7.8152L7.68451 7.32132L7.06908 6.38338Z",fill:"#000088"}),g.jsx("path",{d:"M6.14294 8.14786C6.09038 8.15478 6.05338 8.203 6.0603 8.25557C6.06722 8.30813 6.11544 8.34513 6.168 8.33821C6.22057 8.33129 6.25757 8.28307 6.25065 8.2305C6.24373 8.17794 6.19551 8.14094 6.14294 8.14786Z",fill:"#000088"}),g.jsx("path",{d:"M7.52345 6.19703L7.75151 7.29543L7.95136 7.79403L7.87515 7.26231L7.52345 6.19703Z",fill:"#000088"}),g.jsx("path",{d:"M6.17061 7.66052C6.11804 7.6536 6.06982 7.6906 6.0629 7.74316C6.05598 7.79573 6.09298 7.84395 6.14554 7.85087C6.19811 7.85779 6.24633 7.82079 6.25325 7.76822C6.26017 7.71566 6.22317 7.66744 6.17061 7.66052Z",fill:"#000088"}),g.jsx("path",{d:"M8.00875 6.13341L7.94475 7.25341L8.00875 7.78674L8.07275 7.25341L8.00875 6.13341Z",fill:"#000088"}),g.jsx("path",{d:"M6.32316 7.19628C6.27418 7.17599 6.21802 7.19925 6.19773 7.24823C6.17744 7.29722 6.2007 7.35337 6.24969 7.37366C6.29867 7.39395 6.35483 7.37069 6.37512 7.32171C6.39541 7.27272 6.37215 7.21657 6.32316 7.19628Z",fill:"#000088"}),g.jsx("path",{d:"M8.49354 6.19699L8.14184 7.26226L8.06562 7.79398L8.26548 7.29539L8.49354 6.19699Z",fill:"#000088"}),g.jsx("path",{d:"M6.58174 6.78692C6.53967 6.75464 6.47941 6.76257 6.44713 6.80464C6.41486 6.8467 6.42279 6.90696 6.46485 6.93924C6.50692 6.97152 6.56718 6.96358 6.59946 6.92152C6.63173 6.87946 6.6238 6.81919 6.58174 6.78692Z",fill:"#000088"}),g.jsx("path",{d:"M8.93726 6.38334L8.32183 7.32129L8.11059 7.81517L8.43268 7.38529L8.93726 6.38334Z",fill:"#000088"}),g.jsx("path",{d:"M6.94642 6.46015C6.91415 6.41809 6.85388 6.41016 6.81182 6.44243C6.76976 6.47471 6.76182 6.53497 6.7941 6.57704C6.82637 6.6191 6.88664 6.62703 6.9287 6.59476C6.97076 6.56248 6.9787 6.50222 6.94642 6.46015Z",fill:"#000088"}),g.jsx("path",{d:"M9.32598 6.68007L8.48876 7.42678L8.15689 7.84915L8.57927 7.51729L9.32598 6.68007Z",fill:"#000088"}),g.jsx("path",{d:"M7.37649 6.23847C7.3562 6.18948 7.30004 6.16622 7.25106 6.18651C7.20207 6.2068 7.17881 6.26296 7.1991 6.31194C7.21939 6.36093 7.27555 6.38419 7.32453 6.3639C7.37352 6.34361 7.39678 6.28745 7.37649 6.23847Z",fill:"#000088"}),g.jsx("path",{d:"M9.61809 7.06676L8.61614 7.57133L8.18626 7.89343L8.68014 7.68219L9.61809 7.06676Z",fill:"#000088"}),g.jsx("path",{d:"M7.85751 6.13684C7.85059 6.08427 7.80237 6.04727 7.74981 6.05419C7.69724 6.06111 7.66024 6.10934 7.66716 6.1619C7.67408 6.21447 7.7223 6.25147 7.77487 6.24455C7.82743 6.23763 7.86443 6.18941 7.85751 6.13684Z",fill:"#000088"}),g.jsx("path",{d:"M9.80846 7.5171L8.71006 7.74516L8.21146 7.94502L8.74319 7.8688L9.80846 7.5171Z",fill:"#000088"}),g.jsx("path",{d:"M8.34302 6.16194C8.34994 6.10937 8.31294 6.06115 8.26038 6.05423C8.20781 6.04731 8.15959 6.08431 8.15267 6.13688C8.14575 6.18944 8.18275 6.23767 8.23532 6.24459C8.28788 6.25151 8.3361 6.2145 8.34302 6.16194Z",fill:"#000088"}),g.jsx("path",{d:"M9.87013 8.00009L8.75013 7.93609L8.2168 8.00009L8.75013 8.06409L9.87013 8.00009Z",fill:"#000088"}),g.jsx("path",{d:"M8.80592 6.31242C8.82621 6.26344 8.80295 6.20728 8.75396 6.18699C8.70498 6.1667 8.64882 6.18996 8.62853 6.23894C8.60824 6.28793 8.63151 6.34408 8.68049 6.36437C8.72947 6.38466 8.78563 6.3614 8.80592 6.31242Z",fill:"#000088"}),g.jsx("path",{d:"M9.80545 8.48316L8.74018 8.13146L8.20846 8.05525L8.70705 8.2551L9.80545 8.48316Z",fill:"#000088"}),g.jsx("path",{d:"M9.21614 6.57795C9.24841 6.53589 9.24048 6.47562 9.19842 6.44335C9.15635 6.41107 9.09609 6.41901 9.06381 6.46107C9.03154 6.50313 9.03947 6.5634 9.08153 6.59567C9.1236 6.62795 9.18386 6.62001 9.21614 6.57795Z",fill:"#000088"}),g.jsx("path",{d:"M9.61959 8.93335L8.68164 8.31792L8.18776 8.10668L8.61764 8.42878L9.61959 8.93335Z",fill:"#000088"}),g.jsx("path",{d:"M9.53875 6.94044C9.58081 6.90816 9.58874 6.8479 9.55647 6.80584C9.52419 6.76377 9.46393 6.75584 9.42186 6.78812C9.3798 6.82039 9.37187 6.88066 9.40414 6.92272C9.43642 6.96478 9.49668 6.97272 9.53875 6.94044Z",fill:"#000088"}),g.jsx("path",{d:"M9.31883 9.31999L8.57213 8.48278L8.14975 8.15091L8.48162 8.57329L9.31883 9.31999Z",fill:"#000088"}),g.jsx("path",{d:"M9.76715 7.37502C9.81613 7.35473 9.83939 7.29858 9.8191 7.24959C9.79881 7.20061 9.74266 7.17735 9.69367 7.19764C9.64469 7.21793 9.62143 7.27408 9.64172 7.32307C9.66201 7.37205 9.71816 7.39531 9.76715 7.37502Z",fill:"#000088"}),g.jsx("path",{d:"M8.93922 9.61662L8.43465 8.61468L8.11255 8.1848L8.3238 8.67868L8.93922 9.61662Z",fill:"#000088"}),g.jsx("path",{d:"M9.86682 7.85227C9.91939 7.84534 9.95639 7.79712 9.94947 7.74456C9.94255 7.69199 9.89433 7.65499 9.84176 7.66191C9.78919 7.66883 9.75219 7.71705 9.75911 7.76962C9.76603 7.82218 9.81426 7.85919 9.86682 7.85227Z",fill:"#000088"}),g.jsx("path",{d:"M8.48631 9.80309L8.25826 8.70469L8.0584 8.20609L8.13462 8.73782L8.48631 9.80309Z",fill:"#000088"})]})}),g.jsx("defs",{children:g.jsx("clipPath",{id:"circleClip",children:g.jsx("circle",{cx:"8",cy:"8",r:"8"})})})]}),Mx="+91";function Ox(A){const t=A.replace(/\D/g,""),r=t.slice(0,5),i=t.slice(5,10);return i?`${r} ${i}`:r}function Rx({value:A,onChange:t,onKeyDown:r,disabled:i,theme:s,isMobile:l,maxLength:c,isMobileValid:u,onSend:f}){return g.jsxs("div",{className:"px-2 pt-3 pb-2 space-y-2 w-full",children:[g.jsx("p",{className:"px-1 text-xs font-semibold tracking-wide text-foreground uppercase",children:"Enter your mobile number"}),g.jsxs("div",{className:"flex items-center gap-2 w-full",children:[g.jsxs("div",{className:mA("inline-flex items-center gap-2 rounded-full px-3 shrink-0 py-2 min-h-[56px]",i&&"opacity-60",s?.textColor==="white"?"bg-white-100":"bg-black-100"),style:{fontSize:l?"16px":"14px"},children:[g.jsx(_x,{}),g.jsx("span",{className:"text-sm font-medium text-foreground",children:Mx}),g.jsx(es,{className:"h-4 w-4 text-muted-foreground","aria-hidden":!0})]}),g.jsxs("div",{className:mA("flex items-center gap-1 rounded-full px-2 py-2 flex-1 min-w-0",i&&"opacity-60",s?.textColor==="white"?"bg-white-100":"bg-black-100"),children:[g.jsx(Wu,{type:"tel",autoComplete:"tel-national",value:Ox(A),onChange:t,onKeyDown:r,placeholder:"88888 88888",className:mA("w-full h-full shadow-none border-0 outline-none focus-visible:ring-0 focus-visible:ring-offset-0","text-sm placeholder:text-muted-foreground/40 bg-transparent","disabled:cursor-not-allowed rounded-none break-words overflow-wrap-anywhere whitespace-pre-wrap","text-foreground px-3 py-2 pr-11 min-h-[40px]"),style:{fontSize:l?"16px":"14px"},maxLength:c?c+1:void 0,inputMode:"numeric",autoFocus:!i,disabled:i}),g.jsx(jA,{type:"button",size:"icon",onClick:f,disabled:i||!u,variant:"ghost",className:`h-10 w-10 ${u?"bg-primary":"bg-none"} hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100`,title:u?"Submit mobile number":"Enter a valid mobile number","aria-label":u?"Submit mobile number":"Enter a valid mobile number",children:g.jsx(ns,{className:`w-4 h-4 ${u?"text-primary-foreground":"text-primary"}`})})]})]})]})}const Lx=6,Dx=30,kx=(A,t)=>A.disabled===t.disabled&&A.isMobile===t.isMobile&&A.validation?.pattern===t.validation?.pattern&&A.validation?.minLength===t.validation?.minLength&&A.validation?.maxLength===t.validation?.maxLength&&A.serverMessage===t.serverMessage&&A.theme?.textColor===t.theme?.textColor;function jx({disabled:A,isMobile:t,validation:r,onSubmit:i,onResendOtp:s,serverMessage:l}){const c=b.useRef([]),[u,f]=b.useState(0),[h,m]=b.useState(!1),B=b.useRef(!1),w=b.useRef(i),C=b.useRef(s),E=r?.maxLength??Lx,v=b.useMemo(()=>new RegExp(r?.pattern??`^\\d{${E}}$`),[r?.pattern,E]);b.useEffect(()=>{w.current=i},[i]),b.useEffect(()=>{C.current=s},[s]),b.useEffect(()=>{if(!l)return;const z=l.toLowerCase();z.includes("otp")&&(z.includes("invalid")||z.includes("incorrect")||z.includes("wrong"))&&(B.current=!1,m(!1))},[l]);const F=b.useCallback(()=>c.current.map(z=>z?.value.replace(/\D/g,"").slice(-1)??""),[]),Q=b.useCallback(()=>{const z=F().join(""),lA=z.length===E&&v.test(z);B.current!==lA&&(B.current=lA,m(lA))},[E,v,F]),N=b.useCallback(z=>{z<E-1&&c.current[z+1]?.focus()},[E]),O=b.useCallback(z=>{z>0&&c.current[z-1]?.focus()},[]),j=b.useMemo(()=>Array.from({length:E},(z,lA)=>lA),[E]),K=b.useCallback(z=>{for(let Z=0;Z<E;Z++){const eA=c.current[Z];eA&&(eA.value=z[Z]??"")}Q();const lA=Math.min(z.length,E-1);c.current[lA]?.focus()},[Q,E]),T=b.useCallback((z,lA)=>{const Z=lA.target.value.replace(/\D/g,"");if(Z.length>1){K(Z.slice(0,E));return}const eA=Z.slice(-1);lA.target.value=eA,Q(),eA&&N(z)},[Q,K,N,E]),L=b.useCallback((z,lA)=>{if(lA.key==="Backspace"&&!c.current[z]?.value){O(z);return}if(lA.key==="Enter"&&!lA.shiftKey&&!A){lA.preventDefault();const Z=F().join("");if(Z.length===E&&v.test(Z))w.current(Z);else{const D=F().findIndex(W=>!W);c.current[D===-1?0:D]?.focus()}}},[A,O,E,v,F]),R=b.useCallback(z=>{z.preventDefault();const lA=z.clipboardData.getData("text").replace(/\D/g,"").slice(0,E);lA&&K(lA)},[K,E]),_=b.useCallback(()=>{if(A)return;const z=F().join("");z.length===E&&v.test(z)&&w.current(z)},[A,E,v,F]),X=b.useCallback(()=>{if(!(u>0||A)){for(const z of c.current)z&&(z.value="");B.current=!1,m(!1),c.current[0]?.focus(),C.current?.(),f(Dx)}},[A,u]);b.useEffect(()=>{A||c.current[0]?.focus()},[A]),b.useEffect(()=>{if(h){u>0&&f(0);return}if(u<=0)return;const z=setTimeout(()=>f(lA=>lA-1),1e3);return()=>clearTimeout(z)},[h,u]);const nA=b.useMemo(()=>j.map(z=>g.jsx("input",{ref:lA=>{c.current[z]=lA},type:"text",inputMode:"numeric",maxLength:t&&z===0?E:1,onChange:lA=>T(z,lA),onKeyDown:lA=>L(z,lA),onPaste:R,disabled:A,tabIndex:0,style:{fontSize:t?"16px":"14px"},className:mA("h-10 w-10 rounded-full border text-center text-lg font-semibold bg-transparent text-foreground","border-border shadow-sm outline-none transition-colors","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-0 focus-visible:border-transparent","disabled:cursor-not-allowed disabled:opacity-50"),autoComplete:z===0?"one-time-code":"off","aria-label":`Digit ${z+1}`},z)),[A,j,T,L,R,t,E]);return g.jsx("div",{className:"px-4 pt-3 pb-2 space-y-3",children:g.jsxs("div",{className:"flex flex-col gap-3",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("p",{className:"text-xs font-semibold tracking-wide text-foreground uppercase",children:"Please enter the OTP"}),!h&&g.jsxs("button",{type:"button",onClick:X,disabled:A||u>0,className:mA("text-xs font-medium underline underline-offset-2","text-primary hover:opacity-90 disabled:opacity-50 disabled:no-underline disabled:cursor-not-allowed"),children:["Resend OTP",u>0?` (00:${String(u).padStart(2,"0")}s)`:""]})]}),g.jsxs("div",{className:"flex items-center w-full gap-2 justify-between",children:[g.jsx("div",{className:"flex items-center gap-2",children:nA}),g.jsx(jA,{type:"button",size:"icon",onClick:_,disabled:A,variant:"ghost",className:`h-10 w-10 ${h?"bg-primary":"bg-none"} hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100`,title:h?"Submit OTP":"Enter the full OTP to submit","aria-label":h?"Submit OTP":"Enter the full OTP to submit",children:g.jsx(ns,{className:`w-4 h-4 ${h?"text-primary-foreground":"text-primary"}`})})]})]})})}const Kx=b.memo(jx,kx);function Vx({value:A,onChange:t,onKeyDown:r,placeholder:i,disabled:s,theme:l,isMobile:c,isEmailValid:u,onSend:f}){return g.jsxs("div",{className:"px-2 pt-3 pb-2 space-y-2 w-full",children:[g.jsx("p",{className:"px-1 text-xs font-semibold tracking-wide text-foreground uppercase",children:"Enter your email address"}),g.jsxs("div",{className:mA("flex items-center gap-1 rounded-full px-2 py-2 w-full",s&&"opacity-60",l?.textColor==="white"?"bg-white-100":"bg-black-100"),children:[g.jsx(Wu,{type:"email",autoComplete:"email",value:A,onChange:t,onKeyDown:r,placeholder:i??"username@example.com",className:mA("w-full h-full shadow-none border-0 outline-none focus-visible:ring-0 focus-visible:ring-offset-0","text-sm placeholder:text-muted-foreground/40 bg-transparent","disabled:cursor-not-allowed rounded-none break-words overflow-wrap-anywhere whitespace-pre-wrap","text-foreground px-3 py-2 pr-11 min-h-[40px]"),style:{fontSize:c?"16px":"14px"},autoFocus:!s,disabled:s}),g.jsx(jA,{type:"button",size:"icon",onClick:f,disabled:s||!u,variant:"ghost",className:`h-10 w-10 ${u?"bg-primary":"bg-none"} hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100`,title:u?"Submit email address":"Enter a valid email address","aria-label":u?"Submit email address":"Enter a valid email address",children:g.jsx(ns,{className:`w-4 h-4 ${u?"text-primary-foreground":"text-primary"}`})})]})]})}const wm=10,Gx=10,zx=/^[6-9][0-9]{9}$/,Px=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function Yx({elicitationEntry:A,value:t,onChange:r,isDisabled:i,theme:s,isMobile:l,onSend:c}){const{component:u,pattern:f,minLength:h,maxLength:m,description:B,disp_toast_msg:w,tool_key:C}=A??{},E=b.useMemo(()=>u===hA.SYNAPSE_COMPONENTS.MOBILE,[u]),v=b.useMemo(()=>u===hA.SYNAPSE_COMPONENTS.OTP,[u]),F=b.useMemo(()=>u===hA.SYNAPSE_COMPONENTS.EMAIL,[u]);if(!E&&!v&&!F)return null;const Q=w?.trim()??"",N=_=>{const X=_.target.value.replace(/\D/g,""),nA=m??wm;r(X.slice(0,nA))},O=t.length===(h??Gx)&&(f?new RegExp(f).test(t):zx.test(t)),j=f?new RegExp(f).test(t):Px.test(t),K=()=>{!j||i||c({toolCalled:!0,tool_key:C})},T=_=>{_.key==="Enter"&&(_.preventDefault(),K())},L=()=>{!O||i||c({toolCalled:!0,tool_key:C})},R=_=>{_.key==="Enter"&&(_.preventDefault(),L())};return g.jsxs(g.Fragment,{children:[E&&g.jsx(Rx,{value:t,onChange:N,onSend:L,onKeyDown:R,placeholder:B??"Enter your mobile number",disabled:i,isMobileValid:O,theme:s,isMobile:l,maxLength:m??wm}),v&&g.jsx(Kx,{disabled:i,isMobile:l,validation:{pattern:f,minLength:h,maxLength:m},onSubmit:_=>{c({message:_,toolCalled:!0,tool_key:C})},onResendOtp:()=>{c({toolCalled:!0,resend:!0,tool_key:C})},serverMessage:Q,theme:s}),F&&g.jsx(Vx,{value:t,onChange:_=>r(_.target.value),onKeyDown:T,disabled:i,isEmailValid:j,theme:s,isMobile:l,placeholder:B,onSend:K})]})}const ym=({className:A})=>g.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:A,children:g.jsx("path",{d:"M6.875 0C7.375 0 7.75 0.40625 7.75 0.875V14.875C7.75 15.375 7.375 15.75 6.875 15.75C6.40625 15.75 6 15.375 6 14.875V0.875C6 0.40625 6.40625 0 6.875 0ZM12.875 2C13.375 2 13.75 2.40625 13.75 2.875V12.875C13.75 13.375 13.375 13.75 12.875 13.75C12.4062 13.75 12 13.375 12 12.875V2.875C12 2.40625 12.4062 2 12.875 2ZM3.875 3C4.375 3 4.75 3.40625 4.75 3.875V11.875C4.75 12.375 4.375 12.75 3.875 12.75C3.40625 12.75 3 12.375 3 11.875V3.875C3 3.40625 3.40625 3 3.875 3ZM9.875 4C10.375 4 10.75 4.40625 10.75 4.875V10.875C10.75 11.375 10.375 11.75 9.875 11.75C9.40625 11.75 9 11.375 9 10.875V4.875C9 4.40625 9.40625 4 9.875 4ZM0.875 6C1.375 6 1.75 6.40625 1.75 6.875V8.875C1.75 9.375 1.375 9.75 0.875 9.75C0.40625 9.75 0 9.375 0 8.875V6.875C0 6.40625 0.40625 6 0.875 6ZM15.875 6C16.375 6 16.75 6.40625 16.75 6.875V8.875C16.75 9.375 16.375 9.75 15.875 9.75C15.4062 9.75 15 9.375 15 8.875V6.875C15 6.40625 15.4062 6 15.875 6Z",fill:"currentColor"})});function Xx({value:A,onChange:t,onSend:r,onFileChange:i,onRemoveFile:s,onRecording:l,isRecording:c,hasAttachment:u,attachmentFiles:f,isDisabled:h,placeholder:m,isMobile:B,recordingStatus:w,theme:C,allowed:E,showStartNewChatButton:v,onStartNewChat:F,isVoiceAgentActive:Q,handleVoiceMode:N,isAuthComponent:O,activeElicitationState:j,isFullScreen:K}){const T=b.useRef(null),L=b.useRef(null),R=A.trim().length>0||u,_=E===void 0||E.includes(hA.SYNAPSE_CONVERSATION.AUDIO),X=E===void 0||E.includes(hA.SYNAPSE_CONVERSATION.VOICE),nA=R||!_,z=R,lA=E===void 0||E.includes(hA.SYNAPSE_CONVERSATION.FILE),Z=(h||w!==Ce.IDLE)&&!c,eA=mA("rounded-full transition-all duration-200 ",c?"bg-gradient-to-r from-rose-400 via-primary to-indigo-500 text-white ring-2 ring-white/60 animate-pulse shadow-[0_0_20px_rgba(139,92,246,0.45)]":Z?"text-primary/50 cursor-not-allowed shadow-none":"text-foreground hover:bg-primary hover:text-primary-foreground"),D=U=>{const M=Array.from(U.target.files||[]);M.length>0&&i(M)},W=()=>{h||T.current?.click()},AA=U=>{U.key==="Enter"&&!U.shiftKey&&z&&!h&&(U.preventDefault(),r())},gA=U=>{U.style.height="auto",U.style.overflow="hidden";const M=U.scrollHeight,S=K?20:40,aA=120,uA=Math.max(S,Math.min(M,aA));U.style.height=uA+"px",M>aA?U.style.overflow="auto":U.style.overflow="hidden"},I=U=>{gA(U.currentTarget)};return b.useEffect(()=>{L.current&&gA(L.current)},[A]),b.useEffect(()=>{!h&&!B&&L.current?.focus()},[h]),v&&F?g.jsx("div",{className:"px-4 py-2 flex justify-unset",children:g.jsxs("button",{type:"button",onClick:F,className:mA("px-6 py-3 bg-primary text-primary-foreground text-sm font-semibold rounded-lg transition-colors flex items-center justify-center gap-2 disabled:opacity-60 disabled:pointer-events-none w-full",!B&&"hover:bg-primary/90"),children:[g.jsx("span",{children:"Start new chat"}),g.jsx(Dp,{className:"w-5 h-5","aria-hidden":!0})]})}):g.jsx(g.Fragment,{children:O?g.jsx(Yx,{elicitationEntry:j,value:A,onChange:t,isDisabled:h,theme:C,isMobile:B,onSend:r}):K?g.jsx("div",{className:"mx-3 mb-3","data-name":"reply-box",children:g.jsxs("div",{className:"flex flex-col items-stretch w-full",style:{backgroundColor:"var(--white-1000, #ffffff)",border:"1px solid hsl(var(--primary) / 0.5)",borderRadius:24,padding:8},children:[u&&f.length>0&&g.jsx("div",{className:"mb-2 pb-2 border-b border-border-subtle",children:g.jsx(Zu,{files:f,onRemoveFile:s,isPreview:!0})}),g.jsx("input",{ref:T,type:"file",multiple:!0,max:3,accept:"image/jpeg, image/png, image/jpg, application/pdf",className:"hidden",onChange:D,disabled:h,title:"Attach file","aria-label":"Attach file"}),g.jsx("div",{className:"flex items-center justify-between w-full",style:{padding:"12px 8px"},"data-name":"text-frame",children:g.jsx(Ju,{ref:L,onInput:I,placeholder:m,value:A,onChange:U=>t(U.target.value),rows:1,maxLength:1e3,autoFocus:!h&&!B,style:{wordBreak:"break-word",overflowWrap:"anywhere",minHeight:"20px",maxHeight:"120px",fontFamily:"Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",fontSize:14,lineHeight:"20px",fontWeight:400,padding:0},onKeyPress:AA,disabled:h,title:"Enter your message","aria-label":"Enter your message",className:mA("flex-1 min-w-0 shadow-none border-0 outline-none focus-visible:ring-0 focus-visible:ring-offset-0","bg-transparent disabled:cursor-not-allowed rounded-none break-words whitespace-pre-wrap","text-foreground resize-none placeholder:text-black-500")})}),g.jsxs("div",{className:"flex items-center justify-between w-full","data-name":"cta-row",children:[g.jsx("div",{className:"flex items-start shrink-0","data-name":"input-left-cta",children:lA&&w===Ce.IDLE&&g.jsx(jA,{type:"button",variant:"ghost",size:"icon",onClick:W,disabled:h,className:mA("rounded-full transition-all shrink-0 p-2 h-10 w-10",u?"bg-primary text-primary-foreground":"text-foreground",!B&&(u?"hover:bg-primary/15":"hover:bg-primary hover:text-primary-foreground")),title:"Attach file","aria-label":"Attach file",children:g.jsx(hb,{className:"w-6 h-6",strokeWidth:1.5})})}),g.jsxs("div",{className:"flex gap-2 items-center shrink-0","data-name":"input-right-cta",children:[c?g.jsx(jA,{type:"button",variant:"ghost",size:"icon",onClick:l,className:mA("h-10 w-10 rounded-full bg-gradient-to-r from-red-400 to-rose-500 text-white shadow-lg transition-all duration-200 active:scale-95 shrink-0",!B&&"hover:from-red-500 hover:to-rose-600 hover:scale-105"),title:"Stop recording","aria-label":"Stop recording",children:g.jsx(kp,{className:"w-4 h-4"})}):_&&g.jsx(jA,{type:"button",variant:"ghost",size:"icon",onClick:l,disabled:Z,className:mA("h-10 w-10 shrink-0 p-2",eA),title:"Start recording","aria-label":"Start recording",children:g.jsx(Mu,{className:"w-6 h-6",strokeWidth:1.5})}),nA&&!c?g.jsx(jA,{type:"button",size:"icon",onClick:()=>r(),disabled:h||!z,variant:"ghost",className:mA("h-10 w-10 rounded-full transition-all duration-200 shadow-lg shrink-0 p-2",z?"bg-primary hover:bg-primary/90 hover:shadow-xl hover:scale-105 active:scale-95":"bg-primary/40"),title:z?"Send message":"Type a message to send","aria-label":z?"Send message":"Type a message to send",children:g.jsx(ns,{className:"w-4 h-4 text-primary-foreground"})}):_&&X&&!c&&g.jsx(jA,{type:"button",variant:"ghost",size:"icon",onClick:N,disabled:h||Q,className:"h-10 w-10 bg-primary text-primary-foreground hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100 p-2",title:"Enter voice mode","aria-label":"Enter voice mode",children:g.jsx(ym,{className:"w-4 h-4 text-primary-foreground"})})]})]})]})}):g.jsxs("div",{className:"pt-4 pl-2 pr-3 pb-2",children:[u&&f.length>0&&g.jsx("div",{className:"mb-2 pb-2 border-b border-border-subtle",children:g.jsx(Zu,{files:f,onRemoveFile:s,isPreview:!0})}),g.jsx("input",{ref:T,type:"file",multiple:!0,max:3,accept:"image/jpeg, image/png, image/jpg, application/pdf",className:"hidden",onChange:D,disabled:h,title:"Attach file","aria-label":"Attach file"}),g.jsxs("div",{className:"flex items-center gap-2 w-full",children:[lA&&w===Ce.IDLE&&g.jsx(jA,{type:"button",variant:"ghost",size:"icon",onClick:W,disabled:h,className:mA("rounded-full transition-all shrink-0 p-2",u?"bg-primary text-primary-foreground":"text-foreground",!B&&(u?"hover:bg-primary/15":"hover:bg-primary hover:text-primary-foreground")),title:"Attach file","aria-label":"Attach file",children:g.jsx(lb,{className:"w-6 h-6"})}),g.jsx("div",{className:mA("flex items-center justify-between rounded-full pl-4 pr-1 py-1 flex-1 min-w-0",h&&"opacity-60",C?.textColor==="white"?"bg-white-100":"bg-black-100"),children:g.jsxs("div",{className:"flex-1 min-w-0 flex items-center gap-2 justify-between",children:[g.jsx(Ju,{ref:L,onInput:I,placeholder:m,value:A,onChange:U=>t(U.target.value),rows:1,maxLength:1e3,autoFocus:!h&&!B,style:{wordBreak:"break-word",overflowWrap:"anywhere",minHeight:"40px",maxHeight:"120px",fontSize:"16px",lineHeight:"1"},onKeyPress:AA,disabled:h,title:"Enter your message","aria-label":"Enter your message",className:mA("w-full shadow-none border-0 outline-none focus-visible:ring-0 focus-visible:ring-offset-0 text-base placeholder:text-muted-foreground bg-transparent disabled:cursor-not-allowed rounded-none break-words overflow-wrap-anywhere whitespace-pre-wrap text-foreground resize-none pr-1")}),g.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[c?g.jsx(jA,{type:"button",variant:"ghost",size:"icon",onClick:l,className:mA("h-10 w-10 rounded-full bg-gradient-to-r from-red-400 to-rose-500 text-white shadow-lg transition-all duration-200 active:scale-95 shrink-0",!B&&"hover:from-red-500 hover:to-rose-600 hover:scale-105"),title:"Stop recording","aria-label":"Stop recording",children:g.jsx(kp,{className:"w-4 h-4"})}):nA?g.jsx(jA,{type:"button",size:"icon",onClick:()=>r(),disabled:h||!z,variant:"ghost",className:`h-10 w-10 ${z?"bg-primary":"bg-none"} hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0`,title:z?"Send message":"Type a message to send","aria-label":z?"Send message":"Type a message to send",children:g.jsx(ns,{className:`w-4 h-4 ${z?"text-primary-foreground":"text-primary"}`})}):_&&g.jsx(jA,{type:"button",variant:"ghost",size:"icon",onClick:l,disabled:Z,className:mA("h-10 w-10 shrink-0",eA),title:"Start recording","aria-label":"Start recording",children:g.jsx(Mu,{className:"w-5 h-5"})}),_&&X&&!c&&g.jsx(jA,{type:"button",variant:"ghost",size:"icon",onClick:N,disabled:h||Q,className:"h-10 w-10 bg-primary text-primary-foreground hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100",title:"Enter voice mode","aria-label":"Enter voice mode",children:g.jsx(ym,{className:"w-4 h-4 text-primary-foreground"})})]})]})})]})]})})}const qx=Object.freeze(Object.defineProperty({__proto__:null,default:Xx},Symbol.toStringTag,{value:"Module"}));function Jx(A,t){const r={};return(A[A.length-1]===""?[...A,""]:A).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Zx=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Wx=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,$x={};function Em(A,t){return($x.jsx?Wx:Zx).test(A)}const AS=/[ \t\n\f\r]/g;function eS(A){return typeof A=="object"?A.type==="text"?vm(A.value):!1:vm(A)}function vm(A){return A.replace(AS,"")===""}class rs{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}}rs.prototype.normal={},rs.prototype.property={},rs.prototype.space=void 0;function bm(A,t){const r={},i={};for(const s of A)Object.assign(r,s.property),Object.assign(i,s.normal);return new rs(r,i,t)}function $u(A){return A.toLowerCase()}class ut{constructor(t,r){this.attribute=r,this.property=t}}ut.prototype.attribute="",ut.prototype.booleanish=!1,ut.prototype.boolean=!1,ut.prototype.commaOrSpaceSeparated=!1,ut.prototype.commaSeparated=!1,ut.prototype.defined=!1,ut.prototype.mustUseProperty=!1,ut.prototype.number=!1,ut.prototype.overloadedBoolean=!1,ut.prototype.property="",ut.prototype.spaceSeparated=!1,ut.prototype.space=void 0;let tS=0;const MA=Yr(),_e=Yr(),Af=Yr(),cA=Yr(),pe=Yr(),bi=Yr(),xt=Yr();function Yr(){return 2**++tS}const ef=Object.freeze(Object.defineProperty({__proto__:null,boolean:MA,booleanish:_e,commaOrSpaceSeparated:xt,commaSeparated:bi,number:cA,overloadedBoolean:Af,spaceSeparated:pe},Symbol.toStringTag,{value:"Module"})),tf=Object.keys(ef);class nf extends ut{constructor(t,r,i,s){let l=-1;if(super(t,r),xm(this,"space",s),typeof i=="number")for(;++l<tf.length;){const c=tf[l];xm(this,tf[l],(i&ef[c])===ef[c])}}}nf.prototype.defined=!0;function xm(A,t,r){r&&(A[t]=r)}function xi(A){const t={},r={};for(const[i,s]of Object.entries(A.properties)){const l=new nf(i,A.transform(A.attributes||{},i),s,A.space);A.mustUseProperty&&A.mustUseProperty.includes(i)&&(l.mustUseProperty=!0),t[i]=l,r[$u(i)]=i,r[$u(l.attribute)]=i}return new rs(t,r,A.space)}const Sm=xi({properties:{ariaActiveDescendant:null,ariaAtomic:_e,ariaAutoComplete:null,ariaBusy:_e,ariaChecked:_e,ariaColCount:cA,ariaColIndex:cA,ariaColSpan:cA,ariaControls:pe,ariaCurrent:null,ariaDescribedBy:pe,ariaDetails:null,ariaDisabled:_e,ariaDropEffect:pe,ariaErrorMessage:null,ariaExpanded:_e,ariaFlowTo:pe,ariaGrabbed:_e,ariaHasPopup:null,ariaHidden:_e,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:pe,ariaLevel:cA,ariaLive:null,ariaModal:_e,ariaMultiLine:_e,ariaMultiSelectable:_e,ariaOrientation:null,ariaOwns:pe,ariaPlaceholder:null,ariaPosInSet:cA,ariaPressed:_e,ariaReadOnly:_e,ariaRelevant:null,ariaRequired:_e,ariaRoleDescription:pe,ariaRowCount:cA,ariaRowIndex:cA,ariaRowSpan:cA,ariaSelected:_e,ariaSetSize:cA,ariaSort:null,ariaValueMax:cA,ariaValueMin:cA,ariaValueNow:cA,ariaValueText:null,role:null},transform(A,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Qm(A,t){return t in A?A[t]:t}function Um(A,t){return Qm(A,t.toLowerCase())}const nS=xi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:bi,acceptCharset:pe,accessKey:pe,action:null,allow:null,allowFullScreen:MA,allowPaymentRequest:MA,allowUserMedia:MA,alt:null,as:null,async:MA,autoCapitalize:null,autoComplete:pe,autoFocus:MA,autoPlay:MA,blocking:pe,capture:null,charSet:null,checked:MA,cite:null,className:pe,cols:cA,colSpan:null,content:null,contentEditable:_e,controls:MA,controlsList:pe,coords:cA|bi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:MA,defer:MA,dir:null,dirName:null,disabled:MA,download:Af,draggable:_e,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:MA,formTarget:null,headers:pe,height:cA,hidden:Af,high:cA,href:null,hrefLang:null,htmlFor:pe,httpEquiv:pe,id:null,imageSizes:null,imageSrcSet:null,inert:MA,inputMode:null,integrity:null,is:null,isMap:MA,itemId:null,itemProp:pe,itemRef:pe,itemScope:MA,itemType:pe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:MA,low:cA,manifest:null,max:null,maxLength:cA,media:null,method:null,min:null,minLength:cA,multiple:MA,muted:MA,name:null,nonce:null,noModule:MA,noValidate:MA,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:MA,optimum:cA,pattern:null,ping:pe,placeholder:null,playsInline:MA,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:MA,referrerPolicy:null,rel:pe,required:MA,reversed:MA,rows:cA,rowSpan:cA,sandbox:pe,scope:null,scoped:MA,seamless:MA,selected:MA,shadowRootClonable:MA,shadowRootDelegatesFocus:MA,shadowRootMode:null,shape:null,size:cA,sizes:null,slot:null,span:cA,spellCheck:_e,src:null,srcDoc:null,srcLang:null,srcSet:null,start:cA,step:null,style:null,tabIndex:cA,target:null,title:null,translate:null,type:null,typeMustMatch:MA,useMap:null,value:_e,width:cA,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:pe,axis:null,background:null,bgColor:null,border:cA,borderColor:null,bottomMargin:cA,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:MA,declare:MA,event:null,face:null,frame:null,frameBorder:null,hSpace:cA,leftMargin:cA,link:null,longDesc:null,lowSrc:null,marginHeight:cA,marginWidth:cA,noResize:MA,noHref:MA,noShade:MA,noWrap:MA,object:null,profile:null,prompt:null,rev:null,rightMargin:cA,rules:null,scheme:null,scrolling:_e,standby:null,summary:null,text:null,topMargin:cA,valueType:null,version:null,vAlign:null,vLink:null,vSpace:cA,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:MA,disableRemotePlayback:MA,prefix:null,property:null,results:cA,security:null,unselectable:null},space:"html",transform:Um}),rS=xi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:xt,accentHeight:cA,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:cA,amplitude:cA,arabicForm:null,ascent:cA,attributeName:null,attributeType:null,azimuth:cA,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:cA,by:null,calcMode:null,capHeight:cA,className:pe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:cA,diffuseConstant:cA,direction:null,display:null,dur:null,divisor:cA,dominantBaseline:null,download:MA,dx:null,dy:null,edgeMode:null,editable:null,elevation:cA,enableBackground:null,end:null,event:null,exponent:cA,externalResourcesRequired:null,fill:null,fillOpacity:cA,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:bi,g2:bi,glyphName:bi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:cA,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:cA,horizOriginX:cA,horizOriginY:cA,id:null,ideographic:cA,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:cA,k:cA,k1:cA,k2:cA,k3:cA,k4:cA,kernelMatrix:xt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:cA,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:cA,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:cA,overlineThickness:cA,paintOrder:null,panose1:null,path:null,pathLength:cA,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:pe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:cA,pointsAtY:cA,pointsAtZ:cA,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xt,rev:xt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xt,requiredFeatures:xt,requiredFonts:xt,requiredFormats:xt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:cA,specularExponent:cA,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:cA,strikethroughThickness:cA,string:null,stroke:null,strokeDashArray:xt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:cA,strokeOpacity:cA,strokeWidth:null,style:null,surfaceScale:cA,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xt,tabIndex:cA,tableValues:null,target:null,targetX:cA,targetY:cA,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:cA,underlineThickness:cA,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:cA,values:null,vAlphabetic:cA,vMathematical:cA,vectorEffect:null,vHanging:cA,vIdeographic:cA,version:null,vertAdvY:cA,vertOriginX:cA,vertOriginY:cA,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:cA,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Qm}),Fm=xi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(A,t){return"xlink:"+t.slice(5).toLowerCase()}}),Tm=xi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Um}),Im=xi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(A,t){return"xml:"+t.slice(3).toLowerCase()}}),iS={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},aS=/[A-Z]/g,Nm=/-[a-z]/g,sS=/^data[-\w.:]+$/i;function lS(A,t){const r=$u(t);let i=t,s=ut;if(r in A.normal)return A.property[A.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&sS.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(Nm,cS);i="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!Nm.test(l)){let c=l.replace(aS,oS);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}s=nf}return new s(i,t)}function oS(A){return"-"+A.toLowerCase()}function cS(A){return A.charAt(1).toUpperCase()}const uS=bm([Sm,nS,Fm,Tm,Im],"html"),rf=bm([Sm,rS,Fm,Tm,Im],"svg");function fS(A){return A.join(" ").trim()}var Si={},af,Hm;function dS(){if(Hm)return af;Hm=1;var A=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,u=/^\s+|\s+$/g,f=`
|
|
90
|
+
`,h="/",m="*",B="",w="comment",C="declaration";function E(F,Q){if(typeof F!="string")throw new TypeError("First argument must be a string");if(!F)return[];Q=Q||{};var N=1,O=1;function j(Z){var eA=Z.match(t);eA&&(N+=eA.length);var D=Z.lastIndexOf(f);O=~D?Z.length-D:O+Z.length}function K(){var Z={line:N,column:O};return function(eA){return eA.position=new T(Z),_(),eA}}function T(Z){this.start=Z,this.end={line:N,column:O},this.source=Q.source}T.prototype.content=F;function L(Z){var eA=new Error(Q.source+":"+N+":"+O+": "+Z);if(eA.reason=Z,eA.filename=Q.source,eA.line=N,eA.column=O,eA.source=F,!Q.silent)throw eA}function R(Z){var eA=Z.exec(F);if(eA){var D=eA[0];return j(D),F=F.slice(D.length),eA}}function _(){R(r)}function X(Z){var eA;for(Z=Z||[];eA=nA();)eA!==!1&&Z.push(eA);return Z}function nA(){var Z=K();if(!(h!=F.charAt(0)||m!=F.charAt(1))){for(var eA=2;B!=F.charAt(eA)&&(m!=F.charAt(eA)||h!=F.charAt(eA+1));)++eA;if(eA+=2,B===F.charAt(eA-1))return L("End of comment missing");var D=F.slice(2,eA-2);return O+=2,j(D),F=F.slice(eA),O+=2,Z({type:w,comment:D})}}function z(){var Z=K(),eA=R(i);if(eA){if(nA(),!R(s))return L("property missing ':'");var D=R(l),W=Z({type:C,property:v(eA[0].replace(A,B)),value:D?v(D[0].replace(A,B)):B});return R(c),W}}function lA(){var Z=[];X(Z);for(var eA;eA=z();)eA!==!1&&(Z.push(eA),X(Z));return Z}return _(),lA()}function v(F){return F?F.replace(u,B):B}return af=E,af}var _m;function hS(){if(_m)return Si;_m=1;var A=Si&&Si.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Si,"__esModule",{value:!0}),Si.default=r;const t=A(dS());function r(i,s){let l=null;if(!i||typeof i!="string")return l;const c=(0,t.default)(i),u=typeof s=="function";return c.forEach(f=>{if(f.type!=="declaration")return;const{property:h,value:m}=f;u?s(h,m,f):m&&(l=l||{},l[h]=m)}),l}return Si}var is={},Mm;function gS(){if(Mm)return is;Mm=1,Object.defineProperty(is,"__esModule",{value:!0}),is.camelCase=void 0;var A=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,l=function(h){return!h||r.test(h)||A.test(h)},c=function(h,m){return m.toUpperCase()},u=function(h,m){return"".concat(m,"-")},f=function(h,m){return m===void 0&&(m={}),l(h)?h:(h=h.toLowerCase(),m.reactCompat?h=h.replace(s,u):h=h.replace(i,u),h.replace(t,c))};return is.camelCase=f,is}var as,Om;function pS(){if(Om)return as;Om=1;var A=as&&as.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=A(hS()),r=gS();function i(s,l){var c={};return!s||typeof s!="string"||(0,t.default)(s,function(u,f){u&&f&&(c[(0,r.camelCase)(u,l)]=f)}),c}return i.default=i,as=i,as}var mS=pS();const BS=lu(mS),Rm=Lm("end"),sf=Lm("start");function Lm(A){return t;function t(r){const i=r&&r.position&&r.position[A]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function CS(A){const t=sf(A),r=Rm(A);if(t&&r)return{start:t,end:r}}function ss(A){return!A||typeof A!="object"?"":"position"in A||"type"in A?Dm(A.position):"start"in A||"end"in A?Dm(A):"line"in A||"column"in A?lf(A):""}function lf(A){return km(A&&A.line)+":"+km(A&&A.column)}function Dm(A){return lf(A&&A.start)+"-"+lf(A&&A.end)}function km(A){return A&&typeof A=="number"?A:1}class it extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let s="",l={},c=!1;if(r&&("line"in r&&"column"in r?l={place:r}:"start"in r&&"end"in r?l={place:r}:"type"in r?l={ancestors:[r],place:r.position}:l={...r}),typeof t=="string"?s=t:!l.cause&&t&&(c=!0,s=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof i=="string"){const f=i.indexOf(":");f===-1?l.ruleId=i:(l.source=i.slice(0,f),l.ruleId=i.slice(f+1))}if(!l.place&&l.ancestors&&l.ancestors){const f=l.ancestors[l.ancestors.length-1];f&&(l.place=f.position)}const u=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=u?u.line:void 0,this.name=ss(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=c&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}it.prototype.file="",it.prototype.name="",it.prototype.reason="",it.prototype.message="",it.prototype.stack="",it.prototype.column=void 0,it.prototype.line=void 0,it.prototype.ancestors=void 0,it.prototype.cause=void 0,it.prototype.fatal=void 0,it.prototype.place=void 0,it.prototype.ruleId=void 0,it.prototype.source=void 0;const of={}.hasOwnProperty,wS=new Map,yS=/[A-Z]/g,ES=new Set(["table","tbody","thead","tfoot","tr"]),vS=new Set(["td","th"]),jm="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function bS(A,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=NS(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=IS(r,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?rf:uS,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=Km(s,A,void 0);return l&&typeof l!="string"?l:s.create(A,s.Fragment,{children:l||void 0},void 0)}function Km(A,t,r){if(t.type==="element")return xS(A,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return SS(A,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return US(A,t,r);if(t.type==="mdxjsEsm")return QS(A,t);if(t.type==="root")return FS(A,t,r);if(t.type==="text")return TS(A,t)}function xS(A,t,r){const i=A.schema;let s=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(s=rf,A.schema=s),A.ancestors.push(t);const l=Gm(A,t.tagName,!1),c=HS(A,t);let u=uf(A,t);return ES.has(t.tagName)&&(u=u.filter(function(f){return typeof f=="string"?!eS(f):!0})),Vm(A,c,l,t),cf(c,u),A.ancestors.pop(),A.schema=i,A.create(t,l,c,r)}function SS(A,t){if(t.data&&t.data.estree&&A.evaluater){const i=t.data.estree.body[0];return A.evaluater.evaluateExpression(i.expression)}ls(A,t.position)}function QS(A,t){if(t.data&&t.data.estree&&A.evaluater)return A.evaluater.evaluateProgram(t.data.estree);ls(A,t.position)}function US(A,t,r){const i=A.schema;let s=i;t.name==="svg"&&i.space==="html"&&(s=rf,A.schema=s),A.ancestors.push(t);const l=t.name===null?A.Fragment:Gm(A,t.name,!0),c=_S(A,t),u=uf(A,t);return Vm(A,c,l,t),cf(c,u),A.ancestors.pop(),A.schema=i,A.create(t,l,c,r)}function FS(A,t,r){const i={};return cf(i,uf(A,t)),A.create(t,A.Fragment,i,r)}function TS(A,t){return t.value}function Vm(A,t,r,i){typeof r!="string"&&r!==A.Fragment&&A.passNode&&(t.node=i)}function cf(A,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(A.children=r)}}function IS(A,t,r){return i;function i(s,l,c,u){const h=Array.isArray(c.children)?r:t;return u?h(l,c,u):h(l,c)}}function NS(A,t){return r;function r(i,s,l,c){const u=Array.isArray(l.children),f=sf(i);return t(s,l,c,u,{columnNumber:f?f.column-1:void 0,fileName:A,lineNumber:f?f.line:void 0},void 0)}}function HS(A,t){const r={};let i,s;for(s in t.properties)if(s!=="children"&&of.call(t.properties,s)){const l=MS(A,s,t.properties[s]);if(l){const[c,u]=l;A.tableCellAlignToStyle&&c==="align"&&typeof u=="string"&&vS.has(t.tagName)?i=u:r[c]=u}}if(i){const l=r.style||(r.style={});l[A.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function _S(A,t){const r={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&A.evaluater){const u=i.data.estree.body[0].expression.properties[0];Object.assign(r,A.evaluater.evaluateExpression(u.argument))}else ls(A,t.position);else{const s=i.name;let l;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&A.evaluater){const u=i.value.data.estree.body[0];l=A.evaluater.evaluateExpression(u.expression)}else ls(A,t.position);else l=i.value===null?!0:i.value;r[s]=l}return r}function uf(A,t){const r=[];let i=-1;const s=A.passKeys?new Map:wS;for(;++i<t.children.length;){const l=t.children[i];let c;if(A.passKeys){const f=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(f){const h=s.get(f)||0;c=f+"-"+h,s.set(f,h+1)}}const u=Km(A,l,c);u!==void 0&&r.push(u)}return r}function MS(A,t,r){const i=lS(A.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?Jx(r):fS(r)),i.property==="style"){let s=typeof r=="object"?r:OS(A,String(r));return A.stylePropertyNameCase==="css"&&(s=RS(s)),["style",s]}return[A.elementAttributeNameCase==="react"&&i.space?iS[i.property]||i.property:i.attribute,r]}}function OS(A,t){try{return BS(t,{reactCompat:!0})}catch(r){if(A.ignoreInvalidStyle)return{};const i=r,s=new it("Cannot parse `style` attribute",{ancestors:A.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=A.filePath||void 0,s.url=jm+"#cannot-parse-style-attribute",s}}function Gm(A,t,r){let i;if(!r)i={type:"Literal",value:t};else if(t.includes(".")){const s=t.split(".");let l=-1,c;for(;++l<s.length;){const u=Em(s[l])?{type:"Identifier",name:s[l]}:{type:"Literal",value:s[l]};c=c?{type:"MemberExpression",object:c,property:u,computed:!!(l&&u.type==="Literal"),optional:!1}:u}i=c}else i=Em(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const s=i.value;return of.call(A.components,s)?A.components[s]:s}if(A.evaluater)return A.evaluater.evaluateExpression(i);ls(A)}function ls(A,t){const r=new it("Cannot handle MDX estrees without `createEvaluater`",{ancestors:A.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=A.filePath||void 0,r.url=jm+"#cannot-handle-mdx-estrees-without-createevaluater",r}function RS(A){const t={};let r;for(r in A)of.call(A,r)&&(t[LS(r)]=A[r]);return t}function LS(A){let t=A.replace(yS,DS);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function DS(A){return"-"+A.toLowerCase()}const ff={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},kS={};function jS(A,t){const r=kS,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return zm(A,i,s)}function zm(A,t,r){if(KS(A)){if("value"in A)return A.type==="html"&&!r?"":A.value;if(t&&"alt"in A&&A.alt)return A.alt;if("children"in A)return Pm(A.children,t,r)}return Array.isArray(A)?Pm(A,t,r):""}function Pm(A,t,r){const i=[];let s=-1;for(;++s<A.length;)i[s]=zm(A[s],t,r);return i.join("")}function KS(A){return!!(A&&typeof A=="object")}const Ym=document.createElement("i");function df(A){const t="&"+A+";";Ym.innerHTML=t;const r=Ym.textContent;return r.charCodeAt(r.length-1)===59&&A!=="semi"||r===t?!1:r}function dn(A,t,r,i){const s=A.length;let l=0,c;if(t<0?t=-t>s?0:s+t:t=t>s?s:t,r=r>0?r:0,i.length<1e4)c=Array.from(i),c.unshift(t,r),A.splice(...c);else for(r&&A.splice(t,r);l<i.length;)c=i.slice(l,l+1e4),c.unshift(t,0),A.splice(...c),l+=1e4,t+=1e4}function Dt(A,t){return A.length>0?(dn(A,A.length,0,t),A):t}const Xm={}.hasOwnProperty;function VS(A){const t={};let r=-1;for(;++r<A.length;)GS(t,A[r]);return t}function GS(A,t){let r;for(r in t){const s=(Xm.call(A,r)?A[r]:void 0)||(A[r]={}),l=t[r];let c;if(l)for(c in l){Xm.call(s,c)||(s[c]=[]);const u=l[c];zS(s[c],Array.isArray(u)?u:u?[u]:[])}}}function zS(A,t){let r=-1;const i=[];for(;++r<t.length;)(t[r].add==="after"?A:i).push(t[r]);dn(A,0,0,i)}function qm(A,t){const r=Number.parseInt(A,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Qi(A){return A.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const hn=rr(/[A-Za-z]/),St=rr(/[\dA-Za-z]/),PS=rr(/[#-'*+\--9=?A-Z^-~]/);function hf(A){return A!==null&&(A<32||A===127)}const gf=rr(/\d/),YS=rr(/[\dA-Fa-f]/),XS=rr(/[!-/:-@[-`{-~]/);function UA(A){return A!==null&&A<-2}function ft(A){return A!==null&&(A<0||A===32)}function Ae(A){return A===-2||A===-1||A===32}const qS=rr(new RegExp("\\p{P}|\\p{S}","u")),JS=rr(/\s/);function rr(A){return t;function t(r){return r!==null&&r>-1&&A.test(String.fromCharCode(r))}}function Ui(A){const t=[];let r=-1,i=0,s=0;for(;++r<A.length;){const l=A.charCodeAt(r);let c="";if(l===37&&St(A.charCodeAt(r+1))&&St(A.charCodeAt(r+2)))s=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(c=String.fromCharCode(l));else if(l>55295&&l<57344){const u=A.charCodeAt(r+1);l<56320&&u>56319&&u<57344?(c=String.fromCharCode(l,u),s=1):c="�"}else c=String.fromCharCode(l);c&&(t.push(A.slice(i,r),encodeURIComponent(c)),i=r+s+1,c=""),s&&(r+=s,s=0)}return t.join("")+A.slice(i)}function me(A,t,r,i){const s=i?i-1:Number.POSITIVE_INFINITY;let l=0;return c;function c(f){return Ae(f)?(A.enter(r),u(f)):t(f)}function u(f){return Ae(f)&&l++<s?(A.consume(f),u):(A.exit(r),t(f))}}const ZS={tokenize:WS};function WS(A){const t=A.attempt(this.parser.constructs.contentInitial,i,s);let r;return t;function i(u){if(u===null){A.consume(u);return}return A.enter("lineEnding"),A.consume(u),A.exit("lineEnding"),me(A,t,"linePrefix")}function s(u){return A.enter("paragraph"),l(u)}function l(u){const f=A.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=f),r=f,c(u)}function c(u){if(u===null){A.exit("chunkText"),A.exit("paragraph"),A.consume(u);return}return UA(u)?(A.consume(u),A.exit("chunkText"),l):(A.consume(u),c)}}const $S={tokenize:AQ},Jm={tokenize:eQ};function AQ(A){const t=this,r=[];let i=0,s,l,c;return u;function u(O){if(i<r.length){const j=r[i];return t.containerState=j[1],A.attempt(j[0].continuation,f,h)(O)}return h(O)}function f(O){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&N();const j=t.events.length;let K=j,T;for(;K--;)if(t.events[K][0]==="exit"&&t.events[K][1].type==="chunkFlow"){T=t.events[K][1].end;break}Q(i);let L=j;for(;L<t.events.length;)t.events[L][1].end={...T},L++;return dn(t.events,K+1,0,t.events.slice(j)),t.events.length=L,h(O)}return u(O)}function h(O){if(i===r.length){if(!s)return w(O);if(s.currentConstruct&&s.currentConstruct.concrete)return E(O);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},A.check(Jm,m,B)(O)}function m(O){return s&&N(),Q(i),w(O)}function B(O){return t.parser.lazy[t.now().line]=i!==r.length,c=t.now().offset,E(O)}function w(O){return t.containerState={},A.attempt(Jm,C,E)(O)}function C(O){return i++,r.push([t.currentConstruct,t.containerState]),w(O)}function E(O){if(O===null){s&&N(),Q(0),A.consume(O);return}return s=s||t.parser.flow(t.now()),A.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:l}),v(O)}function v(O){if(O===null){F(A.exit("chunkFlow"),!0),Q(0),A.consume(O);return}return UA(O)?(A.consume(O),F(A.exit("chunkFlow")),i=0,t.interrupt=void 0,u):(A.consume(O),v)}function F(O,j){const K=t.sliceStream(O);if(j&&K.push(null),O.previous=l,l&&(l.next=O),l=O,s.defineSkip(O.start),s.write(K),t.parser.lazy[O.start.line]){let T=s.events.length;for(;T--;)if(s.events[T][1].start.offset<c&&(!s.events[T][1].end||s.events[T][1].end.offset>c))return;const L=t.events.length;let R=L,_,X;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){if(_){X=t.events[R][1].end;break}_=!0}for(Q(i),T=L;T<t.events.length;)t.events[T][1].end={...X},T++;dn(t.events,R+1,0,t.events.slice(L)),t.events.length=T}}function Q(O){let j=r.length;for(;j-- >O;){const K=r[j];t.containerState=K[1],K[0].exit.call(t,A)}r.length=O}function N(){s.write([null]),l=void 0,s=void 0,t.containerState._closeFlow=void 0}}function eQ(A,t,r){return me(A,A.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Zm(A){if(A===null||ft(A)||JS(A))return 1;if(qS(A))return 2}function pf(A,t,r){const i=[];let s=-1;for(;++s<A.length;){const l=A[s].resolveAll;l&&!i.includes(l)&&(t=l(t,r),i.push(l))}return t}const mf={name:"attention",resolveAll:tQ,tokenize:nQ};function tQ(A,t){let r=-1,i,s,l,c,u,f,h,m;for(;++r<A.length;)if(A[r][0]==="enter"&&A[r][1].type==="attentionSequence"&&A[r][1]._close){for(i=r;i--;)if(A[i][0]==="exit"&&A[i][1].type==="attentionSequence"&&A[i][1]._open&&t.sliceSerialize(A[i][1]).charCodeAt(0)===t.sliceSerialize(A[r][1]).charCodeAt(0)){if((A[i][1]._close||A[r][1]._open)&&(A[r][1].end.offset-A[r][1].start.offset)%3&&!((A[i][1].end.offset-A[i][1].start.offset+A[r][1].end.offset-A[r][1].start.offset)%3))continue;f=A[i][1].end.offset-A[i][1].start.offset>1&&A[r][1].end.offset-A[r][1].start.offset>1?2:1;const B={...A[i][1].end},w={...A[r][1].start};Wm(B,-f),Wm(w,f),c={type:f>1?"strongSequence":"emphasisSequence",start:B,end:{...A[i][1].end}},u={type:f>1?"strongSequence":"emphasisSequence",start:{...A[r][1].start},end:w},l={type:f>1?"strongText":"emphasisText",start:{...A[i][1].end},end:{...A[r][1].start}},s={type:f>1?"strong":"emphasis",start:{...c.start},end:{...u.end}},A[i][1].end={...c.start},A[r][1].start={...u.end},h=[],A[i][1].end.offset-A[i][1].start.offset&&(h=Dt(h,[["enter",A[i][1],t],["exit",A[i][1],t]])),h=Dt(h,[["enter",s,t],["enter",c,t],["exit",c,t],["enter",l,t]]),h=Dt(h,pf(t.parser.constructs.insideSpan.null,A.slice(i+1,r),t)),h=Dt(h,[["exit",l,t],["enter",u,t],["exit",u,t],["exit",s,t]]),A[r][1].end.offset-A[r][1].start.offset?(m=2,h=Dt(h,[["enter",A[r][1],t],["exit",A[r][1],t]])):m=0,dn(A,i-1,r-i+3,h),r=i+h.length-m-2;break}}for(r=-1;++r<A.length;)A[r][1].type==="attentionSequence"&&(A[r][1].type="data");return A}function nQ(A,t){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,s=Zm(i);let l;return c;function c(f){return l=f,A.enter("attentionSequence"),u(f)}function u(f){if(f===l)return A.consume(f),u;const h=A.exit("attentionSequence"),m=Zm(f),B=!m||m===2&&s||r.includes(f),w=!s||s===2&&m||r.includes(i);return h._open=!!(l===42?B:B&&(s||!w)),h._close=!!(l===42?w:w&&(m||!B)),t(f)}}function Wm(A,t){A.column+=t,A.offset+=t,A._bufferIndex+=t}const rQ={name:"autolink",tokenize:iQ};function iQ(A,t,r){let i=0;return s;function s(C){return A.enter("autolink"),A.enter("autolinkMarker"),A.consume(C),A.exit("autolinkMarker"),A.enter("autolinkProtocol"),l}function l(C){return hn(C)?(A.consume(C),c):C===64?r(C):h(C)}function c(C){return C===43||C===45||C===46||St(C)?(i=1,u(C)):h(C)}function u(C){return C===58?(A.consume(C),i=0,f):(C===43||C===45||C===46||St(C))&&i++<32?(A.consume(C),u):(i=0,h(C))}function f(C){return C===62?(A.exit("autolinkProtocol"),A.enter("autolinkMarker"),A.consume(C),A.exit("autolinkMarker"),A.exit("autolink"),t):C===null||C===32||C===60||hf(C)?r(C):(A.consume(C),f)}function h(C){return C===64?(A.consume(C),m):PS(C)?(A.consume(C),h):r(C)}function m(C){return St(C)?B(C):r(C)}function B(C){return C===46?(A.consume(C),i=0,m):C===62?(A.exit("autolinkProtocol").type="autolinkEmail",A.enter("autolinkMarker"),A.consume(C),A.exit("autolinkMarker"),A.exit("autolink"),t):w(C)}function w(C){if((C===45||St(C))&&i++<63){const E=C===45?w:B;return A.consume(C),E}return r(C)}}const Kl={partial:!0,tokenize:aQ};function aQ(A,t,r){return i;function i(l){return Ae(l)?me(A,s,"linePrefix")(l):s(l)}function s(l){return l===null||UA(l)?t(l):r(l)}}const $m={continuation:{tokenize:lQ},exit:oQ,name:"blockQuote",tokenize:sQ};function sQ(A,t,r){const i=this;return s;function s(c){if(c===62){const u=i.containerState;return u.open||(A.enter("blockQuote",{_container:!0}),u.open=!0),A.enter("blockQuotePrefix"),A.enter("blockQuoteMarker"),A.consume(c),A.exit("blockQuoteMarker"),l}return r(c)}function l(c){return Ae(c)?(A.enter("blockQuotePrefixWhitespace"),A.consume(c),A.exit("blockQuotePrefixWhitespace"),A.exit("blockQuotePrefix"),t):(A.exit("blockQuotePrefix"),t(c))}}function lQ(A,t,r){const i=this;return s;function s(c){return Ae(c)?me(A,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):l(c)}function l(c){return A.attempt($m,t,r)(c)}}function oQ(A){A.exit("blockQuote")}const AB={name:"characterEscape",tokenize:cQ};function cQ(A,t,r){return i;function i(l){return A.enter("characterEscape"),A.enter("escapeMarker"),A.consume(l),A.exit("escapeMarker"),s}function s(l){return XS(l)?(A.enter("characterEscapeValue"),A.consume(l),A.exit("characterEscapeValue"),A.exit("characterEscape"),t):r(l)}}const eB={name:"characterReference",tokenize:uQ};function uQ(A,t,r){const i=this;let s=0,l,c;return u;function u(B){return A.enter("characterReference"),A.enter("characterReferenceMarker"),A.consume(B),A.exit("characterReferenceMarker"),f}function f(B){return B===35?(A.enter("characterReferenceMarkerNumeric"),A.consume(B),A.exit("characterReferenceMarkerNumeric"),h):(A.enter("characterReferenceValue"),l=31,c=St,m(B))}function h(B){return B===88||B===120?(A.enter("characterReferenceMarkerHexadecimal"),A.consume(B),A.exit("characterReferenceMarkerHexadecimal"),A.enter("characterReferenceValue"),l=6,c=YS,m):(A.enter("characterReferenceValue"),l=7,c=gf,m(B))}function m(B){if(B===59&&s){const w=A.exit("characterReferenceValue");return c===St&&!df(i.sliceSerialize(w))?r(B):(A.enter("characterReferenceMarker"),A.consume(B),A.exit("characterReferenceMarker"),A.exit("characterReference"),t)}return c(B)&&s++<l?(A.consume(B),m):r(B)}}const tB={partial:!0,tokenize:dQ},nB={concrete:!0,name:"codeFenced",tokenize:fQ};function fQ(A,t,r){const i=this,s={partial:!0,tokenize:K};let l=0,c=0,u;return f;function f(T){return h(T)}function h(T){const L=i.events[i.events.length-1];return l=L&&L[1].type==="linePrefix"?L[2].sliceSerialize(L[1],!0).length:0,u=T,A.enter("codeFenced"),A.enter("codeFencedFence"),A.enter("codeFencedFenceSequence"),m(T)}function m(T){return T===u?(c++,A.consume(T),m):c<3?r(T):(A.exit("codeFencedFenceSequence"),Ae(T)?me(A,B,"whitespace")(T):B(T))}function B(T){return T===null||UA(T)?(A.exit("codeFencedFence"),i.interrupt?t(T):A.check(tB,v,j)(T)):(A.enter("codeFencedFenceInfo"),A.enter("chunkString",{contentType:"string"}),w(T))}function w(T){return T===null||UA(T)?(A.exit("chunkString"),A.exit("codeFencedFenceInfo"),B(T)):Ae(T)?(A.exit("chunkString"),A.exit("codeFencedFenceInfo"),me(A,C,"whitespace")(T)):T===96&&T===u?r(T):(A.consume(T),w)}function C(T){return T===null||UA(T)?B(T):(A.enter("codeFencedFenceMeta"),A.enter("chunkString",{contentType:"string"}),E(T))}function E(T){return T===null||UA(T)?(A.exit("chunkString"),A.exit("codeFencedFenceMeta"),B(T)):T===96&&T===u?r(T):(A.consume(T),E)}function v(T){return A.attempt(s,j,F)(T)}function F(T){return A.enter("lineEnding"),A.consume(T),A.exit("lineEnding"),Q}function Q(T){return l>0&&Ae(T)?me(A,N,"linePrefix",l+1)(T):N(T)}function N(T){return T===null||UA(T)?A.check(tB,v,j)(T):(A.enter("codeFlowValue"),O(T))}function O(T){return T===null||UA(T)?(A.exit("codeFlowValue"),N(T)):(A.consume(T),O)}function j(T){return A.exit("codeFenced"),t(T)}function K(T,L,R){let _=0;return X;function X(eA){return T.enter("lineEnding"),T.consume(eA),T.exit("lineEnding"),nA}function nA(eA){return T.enter("codeFencedFence"),Ae(eA)?me(T,z,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(eA):z(eA)}function z(eA){return eA===u?(T.enter("codeFencedFenceSequence"),lA(eA)):R(eA)}function lA(eA){return eA===u?(_++,T.consume(eA),lA):_>=c?(T.exit("codeFencedFenceSequence"),Ae(eA)?me(T,Z,"whitespace")(eA):Z(eA)):R(eA)}function Z(eA){return eA===null||UA(eA)?(T.exit("codeFencedFence"),L(eA)):R(eA)}}}function dQ(A,t,r){const i=this;return s;function s(c){return c===null?r(c):(A.enter("lineEnding"),A.consume(c),A.exit("lineEnding"),l)}function l(c){return i.parser.lazy[i.now().line]?r(c):t(c)}}const Bf={name:"codeIndented",tokenize:gQ},hQ={partial:!0,tokenize:pQ};function gQ(A,t,r){const i=this;return s;function s(h){return A.enter("codeIndented"),me(A,l,"linePrefix",5)(h)}function l(h){const m=i.events[i.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?c(h):r(h)}function c(h){return h===null?f(h):UA(h)?A.attempt(hQ,c,f)(h):(A.enter("codeFlowValue"),u(h))}function u(h){return h===null||UA(h)?(A.exit("codeFlowValue"),c(h)):(A.consume(h),u)}function f(h){return A.exit("codeIndented"),t(h)}}function pQ(A,t,r){const i=this;return s;function s(c){return i.parser.lazy[i.now().line]?r(c):UA(c)?(A.enter("lineEnding"),A.consume(c),A.exit("lineEnding"),s):me(A,l,"linePrefix",5)(c)}function l(c){const u=i.events[i.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(c):UA(c)?s(c):r(c)}}const mQ={name:"codeText",previous:CQ,resolve:BQ,tokenize:wQ};function BQ(A){let t=A.length-4,r=3,i,s;if((A[r][1].type==="lineEnding"||A[r][1].type==="space")&&(A[t][1].type==="lineEnding"||A[t][1].type==="space")){for(i=r;++i<t;)if(A[i][1].type==="codeTextData"){A[r][1].type="codeTextPadding",A[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(i=r-1,t++;++i<=t;)s===void 0?i!==t&&A[i][1].type!=="lineEnding"&&(s=i):(i===t||A[i][1].type==="lineEnding")&&(A[s][1].type="codeTextData",i!==s+2&&(A[s][1].end=A[i-1][1].end,A.splice(s+2,i-s-2),t-=i-s-2,i=s+2),s=void 0);return A}function CQ(A){return A!==96||this.events[this.events.length-1][1].type==="characterEscape"}function wQ(A,t,r){let i=0,s,l;return c;function c(B){return A.enter("codeText"),A.enter("codeTextSequence"),u(B)}function u(B){return B===96?(A.consume(B),i++,u):(A.exit("codeTextSequence"),f(B))}function f(B){return B===null?r(B):B===32?(A.enter("space"),A.consume(B),A.exit("space"),f):B===96?(l=A.enter("codeTextSequence"),s=0,m(B)):UA(B)?(A.enter("lineEnding"),A.consume(B),A.exit("lineEnding"),f):(A.enter("codeTextData"),h(B))}function h(B){return B===null||B===32||B===96||UA(B)?(A.exit("codeTextData"),f(B)):(A.consume(B),h)}function m(B){return B===96?(A.consume(B),s++,m):s===i?(A.exit("codeTextSequence"),A.exit("codeText"),t(B)):(l.type="codeTextData",h(B))}}class yQ{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const i=r??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,r,i){const s=r||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return i&&os(this.left,i),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),os(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),os(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);os(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);os(this.left,r.reverse())}}}function os(A,t){let r=0;if(t.length<1e4)A.push(...t);else for(;r<t.length;)A.push(...t.slice(r,r+1e4)),r+=1e4}function rB(A){const t={};let r=-1,i,s,l,c,u,f,h;const m=new yQ(A);for(;++r<m.length;){for(;r in t;)r=t[r];if(i=m.get(r),r&&i[1].type==="chunkFlow"&&m.get(r-1)[1].type==="listItemPrefix"&&(f=i[1]._tokenizer.events,l=0,l<f.length&&f[l][1].type==="lineEndingBlank"&&(l+=2),l<f.length&&f[l][1].type==="content"))for(;++l<f.length&&f[l][1].type!=="content";)f[l][1].type==="chunkText"&&(f[l][1]._isInFirstContentOfListItem=!0,l++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,EQ(m,r)),r=t[r],h=!0);else if(i[1]._container){for(l=r,s=void 0;l--;)if(c=m.get(l),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(m.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=l);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(i[1].end={...m.get(s)[1].start},u=m.slice(s,r),u.unshift(i),m.splice(s,r-s+1,u))}}return dn(A,0,Number.POSITIVE_INFINITY,m.slice(0)),!h}function EQ(A,t){const r=A.get(t)[1],i=A.get(t)[2];let s=t-1;const l=[];let c=r._tokenizer;c||(c=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const u=c.events,f=[],h={};let m,B,w=-1,C=r,E=0,v=0;const F=[v];for(;C;){for(;A.get(++s)[1]!==C;);l.push(s),C._tokenizer||(m=i.sliceStream(C),C.next||m.push(null),B&&c.defineSkip(C.start),C._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(m),C._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),B=C,C=C.next}for(C=r;++w<u.length;)u[w][0]==="exit"&&u[w-1][0]==="enter"&&u[w][1].type===u[w-1][1].type&&u[w][1].start.line!==u[w][1].end.line&&(v=w+1,F.push(v),C._tokenizer=void 0,C.previous=void 0,C=C.next);for(c.events=[],C?(C._tokenizer=void 0,C.previous=void 0):F.pop(),w=F.length;w--;){const Q=u.slice(F[w],F[w+1]),N=l.pop();f.push([N,N+Q.length-1]),A.splice(N,2,Q)}for(f.reverse(),w=-1;++w<f.length;)h[E+f[w][0]]=E+f[w][1],E+=f[w][1]-f[w][0]-1;return h}const vQ={resolve:xQ,tokenize:SQ},bQ={partial:!0,tokenize:QQ};function xQ(A){return rB(A),A}function SQ(A,t){let r;return i;function i(u){return A.enter("content"),r=A.enter("chunkContent",{contentType:"content"}),s(u)}function s(u){return u===null?l(u):UA(u)?A.check(bQ,c,l)(u):(A.consume(u),s)}function l(u){return A.exit("chunkContent"),A.exit("content"),t(u)}function c(u){return A.consume(u),A.exit("chunkContent"),r.next=A.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function QQ(A,t,r){const i=this;return s;function s(c){return A.exit("chunkContent"),A.enter("lineEnding"),A.consume(c),A.exit("lineEnding"),me(A,l,"linePrefix")}function l(c){if(c===null||UA(c))return r(c);const u=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(c):A.interrupt(i.parser.constructs.flow,r,t)(c)}}function iB(A,t,r,i,s,l,c,u,f){const h=f||Number.POSITIVE_INFINITY;let m=0;return B;function B(Q){return Q===60?(A.enter(i),A.enter(s),A.enter(l),A.consume(Q),A.exit(l),w):Q===null||Q===32||Q===41||hf(Q)?r(Q):(A.enter(i),A.enter(c),A.enter(u),A.enter("chunkString",{contentType:"string"}),v(Q))}function w(Q){return Q===62?(A.enter(l),A.consume(Q),A.exit(l),A.exit(s),A.exit(i),t):(A.enter(u),A.enter("chunkString",{contentType:"string"}),C(Q))}function C(Q){return Q===62?(A.exit("chunkString"),A.exit(u),w(Q)):Q===null||Q===60||UA(Q)?r(Q):(A.consume(Q),Q===92?E:C)}function E(Q){return Q===60||Q===62||Q===92?(A.consume(Q),C):C(Q)}function v(Q){return!m&&(Q===null||Q===41||ft(Q))?(A.exit("chunkString"),A.exit(u),A.exit(c),A.exit(i),t(Q)):m<h&&Q===40?(A.consume(Q),m++,v):Q===41?(A.consume(Q),m--,v):Q===null||Q===32||Q===40||hf(Q)?r(Q):(A.consume(Q),Q===92?F:v)}function F(Q){return Q===40||Q===41||Q===92?(A.consume(Q),v):v(Q)}}function aB(A,t,r,i,s,l){const c=this;let u=0,f;return h;function h(C){return A.enter(i),A.enter(s),A.consume(C),A.exit(s),A.enter(l),m}function m(C){return u>999||C===null||C===91||C===93&&!f||C===94&&!u&&"_hiddenFootnoteSupport"in c.parser.constructs?r(C):C===93?(A.exit(l),A.enter(s),A.consume(C),A.exit(s),A.exit(i),t):UA(C)?(A.enter("lineEnding"),A.consume(C),A.exit("lineEnding"),m):(A.enter("chunkString",{contentType:"string"}),B(C))}function B(C){return C===null||C===91||C===93||UA(C)||u++>999?(A.exit("chunkString"),m(C)):(A.consume(C),f||(f=!Ae(C)),C===92?w:B)}function w(C){return C===91||C===92||C===93?(A.consume(C),u++,B):B(C)}}function sB(A,t,r,i,s,l){let c;return u;function u(w){return w===34||w===39||w===40?(A.enter(i),A.enter(s),A.consume(w),A.exit(s),c=w===40?41:w,f):r(w)}function f(w){return w===c?(A.enter(s),A.consume(w),A.exit(s),A.exit(i),t):(A.enter(l),h(w))}function h(w){return w===c?(A.exit(l),f(c)):w===null?r(w):UA(w)?(A.enter("lineEnding"),A.consume(w),A.exit("lineEnding"),me(A,h,"linePrefix")):(A.enter("chunkString",{contentType:"string"}),m(w))}function m(w){return w===c||w===null||UA(w)?(A.exit("chunkString"),h(w)):(A.consume(w),w===92?B:m)}function B(w){return w===c||w===92?(A.consume(w),m):m(w)}}function cs(A,t){let r;return i;function i(s){return UA(s)?(A.enter("lineEnding"),A.consume(s),A.exit("lineEnding"),r=!0,i):Ae(s)?me(A,i,r?"linePrefix":"lineSuffix")(s):t(s)}}const UQ={name:"definition",tokenize:TQ},FQ={partial:!0,tokenize:IQ};function TQ(A,t,r){const i=this;let s;return l;function l(C){return A.enter("definition"),c(C)}function c(C){return aB.call(i,A,u,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(C)}function u(C){return s=Qi(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),C===58?(A.enter("definitionMarker"),A.consume(C),A.exit("definitionMarker"),f):r(C)}function f(C){return ft(C)?cs(A,h)(C):h(C)}function h(C){return iB(A,m,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(C)}function m(C){return A.attempt(FQ,B,B)(C)}function B(C){return Ae(C)?me(A,w,"whitespace")(C):w(C)}function w(C){return C===null||UA(C)?(A.exit("definition"),i.parser.defined.push(s),t(C)):r(C)}}function IQ(A,t,r){return i;function i(u){return ft(u)?cs(A,s)(u):r(u)}function s(u){return sB(A,l,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function l(u){return Ae(u)?me(A,c,"whitespace")(u):c(u)}function c(u){return u===null||UA(u)?t(u):r(u)}}const NQ={name:"hardBreakEscape",tokenize:HQ};function HQ(A,t,r){return i;function i(l){return A.enter("hardBreakEscape"),A.consume(l),s}function s(l){return UA(l)?(A.exit("hardBreakEscape"),t(l)):r(l)}}const _Q={name:"headingAtx",resolve:MQ,tokenize:OQ};function MQ(A,t){let r=A.length-2,i=3,s,l;return A[i][1].type==="whitespace"&&(i+=2),r-2>i&&A[r][1].type==="whitespace"&&(r-=2),A[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&A[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(s={type:"atxHeadingText",start:A[i][1].start,end:A[r][1].end},l={type:"chunkText",start:A[i][1].start,end:A[r][1].end,contentType:"text"},dn(A,i,r-i+1,[["enter",s,t],["enter",l,t],["exit",l,t],["exit",s,t]])),A}function OQ(A,t,r){let i=0;return s;function s(m){return A.enter("atxHeading"),l(m)}function l(m){return A.enter("atxHeadingSequence"),c(m)}function c(m){return m===35&&i++<6?(A.consume(m),c):m===null||ft(m)?(A.exit("atxHeadingSequence"),u(m)):r(m)}function u(m){return m===35?(A.enter("atxHeadingSequence"),f(m)):m===null||UA(m)?(A.exit("atxHeading"),t(m)):Ae(m)?me(A,u,"whitespace")(m):(A.enter("atxHeadingText"),h(m))}function f(m){return m===35?(A.consume(m),f):(A.exit("atxHeadingSequence"),u(m))}function h(m){return m===null||m===35||ft(m)?(A.exit("atxHeadingText"),u(m)):(A.consume(m),h)}}const RQ=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],lB=["pre","script","style","textarea"],LQ={concrete:!0,name:"htmlFlow",resolveTo:jQ,tokenize:KQ},DQ={partial:!0,tokenize:GQ},kQ={partial:!0,tokenize:VQ};function jQ(A){let t=A.length;for(;t--&&!(A[t][0]==="enter"&&A[t][1].type==="htmlFlow"););return t>1&&A[t-2][1].type==="linePrefix"&&(A[t][1].start=A[t-2][1].start,A[t+1][1].start=A[t-2][1].start,A.splice(t-2,2)),A}function KQ(A,t,r){const i=this;let s,l,c,u,f;return h;function h(S){return m(S)}function m(S){return A.enter("htmlFlow"),A.enter("htmlFlowData"),A.consume(S),B}function B(S){return S===33?(A.consume(S),w):S===47?(A.consume(S),l=!0,v):S===63?(A.consume(S),s=3,i.interrupt?t:I):hn(S)?(A.consume(S),c=String.fromCharCode(S),F):r(S)}function w(S){return S===45?(A.consume(S),s=2,C):S===91?(A.consume(S),s=5,u=0,E):hn(S)?(A.consume(S),s=4,i.interrupt?t:I):r(S)}function C(S){return S===45?(A.consume(S),i.interrupt?t:I):r(S)}function E(S){const aA="CDATA[";return S===aA.charCodeAt(u++)?(A.consume(S),u===aA.length?i.interrupt?t:z:E):r(S)}function v(S){return hn(S)?(A.consume(S),c=String.fromCharCode(S),F):r(S)}function F(S){if(S===null||S===47||S===62||ft(S)){const aA=S===47,uA=c.toLowerCase();return!aA&&!l&&lB.includes(uA)?(s=1,i.interrupt?t(S):z(S)):RQ.includes(c.toLowerCase())?(s=6,aA?(A.consume(S),Q):i.interrupt?t(S):z(S)):(s=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(S):l?N(S):O(S))}return S===45||St(S)?(A.consume(S),c+=String.fromCharCode(S),F):r(S)}function Q(S){return S===62?(A.consume(S),i.interrupt?t:z):r(S)}function N(S){return Ae(S)?(A.consume(S),N):X(S)}function O(S){return S===47?(A.consume(S),X):S===58||S===95||hn(S)?(A.consume(S),j):Ae(S)?(A.consume(S),O):X(S)}function j(S){return S===45||S===46||S===58||S===95||St(S)?(A.consume(S),j):K(S)}function K(S){return S===61?(A.consume(S),T):Ae(S)?(A.consume(S),K):O(S)}function T(S){return S===null||S===60||S===61||S===62||S===96?r(S):S===34||S===39?(A.consume(S),f=S,L):Ae(S)?(A.consume(S),T):R(S)}function L(S){return S===f?(A.consume(S),f=null,_):S===null||UA(S)?r(S):(A.consume(S),L)}function R(S){return S===null||S===34||S===39||S===47||S===60||S===61||S===62||S===96||ft(S)?K(S):(A.consume(S),R)}function _(S){return S===47||S===62||Ae(S)?O(S):r(S)}function X(S){return S===62?(A.consume(S),nA):r(S)}function nA(S){return S===null||UA(S)?z(S):Ae(S)?(A.consume(S),nA):r(S)}function z(S){return S===45&&s===2?(A.consume(S),D):S===60&&s===1?(A.consume(S),W):S===62&&s===4?(A.consume(S),U):S===63&&s===3?(A.consume(S),I):S===93&&s===5?(A.consume(S),gA):UA(S)&&(s===6||s===7)?(A.exit("htmlFlowData"),A.check(DQ,M,lA)(S)):S===null||UA(S)?(A.exit("htmlFlowData"),lA(S)):(A.consume(S),z)}function lA(S){return A.check(kQ,Z,M)(S)}function Z(S){return A.enter("lineEnding"),A.consume(S),A.exit("lineEnding"),eA}function eA(S){return S===null||UA(S)?lA(S):(A.enter("htmlFlowData"),z(S))}function D(S){return S===45?(A.consume(S),I):z(S)}function W(S){return S===47?(A.consume(S),c="",AA):z(S)}function AA(S){if(S===62){const aA=c.toLowerCase();return lB.includes(aA)?(A.consume(S),U):z(S)}return hn(S)&&c.length<8?(A.consume(S),c+=String.fromCharCode(S),AA):z(S)}function gA(S){return S===93?(A.consume(S),I):z(S)}function I(S){return S===62?(A.consume(S),U):S===45&&s===2?(A.consume(S),I):z(S)}function U(S){return S===null||UA(S)?(A.exit("htmlFlowData"),M(S)):(A.consume(S),U)}function M(S){return A.exit("htmlFlow"),t(S)}}function VQ(A,t,r){const i=this;return s;function s(c){return UA(c)?(A.enter("lineEnding"),A.consume(c),A.exit("lineEnding"),l):r(c)}function l(c){return i.parser.lazy[i.now().line]?r(c):t(c)}}function GQ(A,t,r){return i;function i(s){return A.enter("lineEnding"),A.consume(s),A.exit("lineEnding"),A.attempt(Kl,t,r)}}const zQ={name:"htmlText",tokenize:PQ};function PQ(A,t,r){const i=this;let s,l,c;return u;function u(I){return A.enter("htmlText"),A.enter("htmlTextData"),A.consume(I),f}function f(I){return I===33?(A.consume(I),h):I===47?(A.consume(I),K):I===63?(A.consume(I),O):hn(I)?(A.consume(I),R):r(I)}function h(I){return I===45?(A.consume(I),m):I===91?(A.consume(I),l=0,E):hn(I)?(A.consume(I),N):r(I)}function m(I){return I===45?(A.consume(I),C):r(I)}function B(I){return I===null?r(I):I===45?(A.consume(I),w):UA(I)?(c=B,W(I)):(A.consume(I),B)}function w(I){return I===45?(A.consume(I),C):B(I)}function C(I){return I===62?D(I):I===45?w(I):B(I)}function E(I){const U="CDATA[";return I===U.charCodeAt(l++)?(A.consume(I),l===U.length?v:E):r(I)}function v(I){return I===null?r(I):I===93?(A.consume(I),F):UA(I)?(c=v,W(I)):(A.consume(I),v)}function F(I){return I===93?(A.consume(I),Q):v(I)}function Q(I){return I===62?D(I):I===93?(A.consume(I),Q):v(I)}function N(I){return I===null||I===62?D(I):UA(I)?(c=N,W(I)):(A.consume(I),N)}function O(I){return I===null?r(I):I===63?(A.consume(I),j):UA(I)?(c=O,W(I)):(A.consume(I),O)}function j(I){return I===62?D(I):O(I)}function K(I){return hn(I)?(A.consume(I),T):r(I)}function T(I){return I===45||St(I)?(A.consume(I),T):L(I)}function L(I){return UA(I)?(c=L,W(I)):Ae(I)?(A.consume(I),L):D(I)}function R(I){return I===45||St(I)?(A.consume(I),R):I===47||I===62||ft(I)?_(I):r(I)}function _(I){return I===47?(A.consume(I),D):I===58||I===95||hn(I)?(A.consume(I),X):UA(I)?(c=_,W(I)):Ae(I)?(A.consume(I),_):D(I)}function X(I){return I===45||I===46||I===58||I===95||St(I)?(A.consume(I),X):nA(I)}function nA(I){return I===61?(A.consume(I),z):UA(I)?(c=nA,W(I)):Ae(I)?(A.consume(I),nA):_(I)}function z(I){return I===null||I===60||I===61||I===62||I===96?r(I):I===34||I===39?(A.consume(I),s=I,lA):UA(I)?(c=z,W(I)):Ae(I)?(A.consume(I),z):(A.consume(I),Z)}function lA(I){return I===s?(A.consume(I),s=void 0,eA):I===null?r(I):UA(I)?(c=lA,W(I)):(A.consume(I),lA)}function Z(I){return I===null||I===34||I===39||I===60||I===61||I===96?r(I):I===47||I===62||ft(I)?_(I):(A.consume(I),Z)}function eA(I){return I===47||I===62||ft(I)?_(I):r(I)}function D(I){return I===62?(A.consume(I),A.exit("htmlTextData"),A.exit("htmlText"),t):r(I)}function W(I){return A.exit("htmlTextData"),A.enter("lineEnding"),A.consume(I),A.exit("lineEnding"),AA}function AA(I){return Ae(I)?me(A,gA,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):gA(I)}function gA(I){return A.enter("htmlTextData"),c(I)}}const Cf={name:"labelEnd",resolveAll:JQ,resolveTo:ZQ,tokenize:WQ},YQ={tokenize:$Q},XQ={tokenize:AU},qQ={tokenize:eU};function JQ(A){let t=-1;const r=[];for(;++t<A.length;){const i=A[t][1];if(r.push(A[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const s=i.type==="labelImage"?4:2;i.type="data",t+=s}}return A.length!==r.length&&dn(A,0,A.length,r),A}function ZQ(A,t){let r=A.length,i=0,s,l,c,u;for(;r--;)if(s=A[r][1],l){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;A[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(A[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(l=r,s.type!=="labelLink")){i=2;break}}else s.type==="labelEnd"&&(c=r);const f={type:A[l][1].type==="labelLink"?"link":"image",start:{...A[l][1].start},end:{...A[A.length-1][1].end}},h={type:"label",start:{...A[l][1].start},end:{...A[c][1].end}},m={type:"labelText",start:{...A[l+i+2][1].end},end:{...A[c-2][1].start}};return u=[["enter",f,t],["enter",h,t]],u=Dt(u,A.slice(l+1,l+i+3)),u=Dt(u,[["enter",m,t]]),u=Dt(u,pf(t.parser.constructs.insideSpan.null,A.slice(l+i+4,c-3),t)),u=Dt(u,[["exit",m,t],A[c-2],A[c-1],["exit",h,t]]),u=Dt(u,A.slice(c+1)),u=Dt(u,[["exit",f,t]]),dn(A,l,A.length,u),A}function WQ(A,t,r){const i=this;let s=i.events.length,l,c;for(;s--;)if((i.events[s][1].type==="labelImage"||i.events[s][1].type==="labelLink")&&!i.events[s][1]._balanced){l=i.events[s][1];break}return u;function u(w){return l?l._inactive?B(w):(c=i.parser.defined.includes(Qi(i.sliceSerialize({start:l.end,end:i.now()}))),A.enter("labelEnd"),A.enter("labelMarker"),A.consume(w),A.exit("labelMarker"),A.exit("labelEnd"),f):r(w)}function f(w){return w===40?A.attempt(YQ,m,c?m:B)(w):w===91?A.attempt(XQ,m,c?h:B)(w):c?m(w):B(w)}function h(w){return A.attempt(qQ,m,B)(w)}function m(w){return t(w)}function B(w){return l._balanced=!0,r(w)}}function $Q(A,t,r){return i;function i(B){return A.enter("resource"),A.enter("resourceMarker"),A.consume(B),A.exit("resourceMarker"),s}function s(B){return ft(B)?cs(A,l)(B):l(B)}function l(B){return B===41?m(B):iB(A,c,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(B)}function c(B){return ft(B)?cs(A,f)(B):m(B)}function u(B){return r(B)}function f(B){return B===34||B===39||B===40?sB(A,h,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(B):m(B)}function h(B){return ft(B)?cs(A,m)(B):m(B)}function m(B){return B===41?(A.enter("resourceMarker"),A.consume(B),A.exit("resourceMarker"),A.exit("resource"),t):r(B)}}function AU(A,t,r){const i=this;return s;function s(u){return aB.call(i,A,l,c,"reference","referenceMarker","referenceString")(u)}function l(u){return i.parser.defined.includes(Qi(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(u):r(u)}function c(u){return r(u)}}function eU(A,t,r){return i;function i(l){return A.enter("reference"),A.enter("referenceMarker"),A.consume(l),A.exit("referenceMarker"),s}function s(l){return l===93?(A.enter("referenceMarker"),A.consume(l),A.exit("referenceMarker"),A.exit("reference"),t):r(l)}}const tU={name:"labelStartImage",resolveAll:Cf.resolveAll,tokenize:nU};function nU(A,t,r){const i=this;return s;function s(u){return A.enter("labelImage"),A.enter("labelImageMarker"),A.consume(u),A.exit("labelImageMarker"),l}function l(u){return u===91?(A.enter("labelMarker"),A.consume(u),A.exit("labelMarker"),A.exit("labelImage"),c):r(u)}function c(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(u):t(u)}}const rU={name:"labelStartLink",resolveAll:Cf.resolveAll,tokenize:iU};function iU(A,t,r){const i=this;return s;function s(c){return A.enter("labelLink"),A.enter("labelMarker"),A.consume(c),A.exit("labelMarker"),A.exit("labelLink"),l}function l(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(c):t(c)}}const wf={name:"lineEnding",tokenize:aU};function aU(A,t){return r;function r(i){return A.enter("lineEnding"),A.consume(i),A.exit("lineEnding"),me(A,t,"linePrefix")}}const Vl={name:"thematicBreak",tokenize:sU};function sU(A,t,r){let i=0,s;return l;function l(h){return A.enter("thematicBreak"),c(h)}function c(h){return s=h,u(h)}function u(h){return h===s?(A.enter("thematicBreakSequence"),f(h)):i>=3&&(h===null||UA(h))?(A.exit("thematicBreak"),t(h)):r(h)}function f(h){return h===s?(A.consume(h),i++,f):(A.exit("thematicBreakSequence"),Ae(h)?me(A,u,"whitespace")(h):u(h))}}const dt={continuation:{tokenize:uU},exit:dU,name:"list",tokenize:cU},lU={partial:!0,tokenize:hU},oU={partial:!0,tokenize:fU};function cU(A,t,r){const i=this,s=i.events[i.events.length-1];let l=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return u;function u(C){const E=i.containerState.type||(C===42||C===43||C===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!i.containerState.marker||C===i.containerState.marker:gf(C)){if(i.containerState.type||(i.containerState.type=E,A.enter(E,{_container:!0})),E==="listUnordered")return A.enter("listItemPrefix"),C===42||C===45?A.check(Vl,r,h)(C):h(C);if(!i.interrupt||C===49)return A.enter("listItemPrefix"),A.enter("listItemValue"),f(C)}return r(C)}function f(C){return gf(C)&&++c<10?(A.consume(C),f):(!i.interrupt||c<2)&&(i.containerState.marker?C===i.containerState.marker:C===41||C===46)?(A.exit("listItemValue"),h(C)):r(C)}function h(C){return A.enter("listItemMarker"),A.consume(C),A.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||C,A.check(Kl,i.interrupt?r:m,A.attempt(lU,w,B))}function m(C){return i.containerState.initialBlankLine=!0,l++,w(C)}function B(C){return Ae(C)?(A.enter("listItemPrefixWhitespace"),A.consume(C),A.exit("listItemPrefixWhitespace"),w):r(C)}function w(C){return i.containerState.size=l+i.sliceSerialize(A.exit("listItemPrefix"),!0).length,t(C)}}function uU(A,t,r){const i=this;return i.containerState._closeFlow=void 0,A.check(Kl,s,l);function s(u){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,me(A,t,"listItemIndent",i.containerState.size+1)(u)}function l(u){return i.containerState.furtherBlankLines||!Ae(u)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(u)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,A.attempt(oU,t,c)(u))}function c(u){return i.containerState._closeFlow=!0,i.interrupt=void 0,me(A,A.attempt(dt,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function fU(A,t,r){const i=this;return me(A,s,"listItemIndent",i.containerState.size+1);function s(l){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?t(l):r(l)}}function dU(A){A.exit(this.containerState.type)}function hU(A,t,r){const i=this;return me(A,s,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(l){const c=i.events[i.events.length-1];return!Ae(l)&&c&&c[1].type==="listItemPrefixWhitespace"?t(l):r(l)}}const oB={name:"setextUnderline",resolveTo:gU,tokenize:pU};function gU(A,t){let r=A.length,i,s,l;for(;r--;)if(A[r][0]==="enter"){if(A[r][1].type==="content"){i=r;break}A[r][1].type==="paragraph"&&(s=r)}else A[r][1].type==="content"&&A.splice(r,1),!l&&A[r][1].type==="definition"&&(l=r);const c={type:"setextHeading",start:{...A[i][1].start},end:{...A[A.length-1][1].end}};return A[s][1].type="setextHeadingText",l?(A.splice(s,0,["enter",c,t]),A.splice(l+1,0,["exit",A[i][1],t]),A[i][1].end={...A[l][1].end}):A[i][1]=c,A.push(["exit",c,t]),A}function pU(A,t,r){const i=this;let s;return l;function l(h){let m=i.events.length,B;for(;m--;)if(i.events[m][1].type!=="lineEnding"&&i.events[m][1].type!=="linePrefix"&&i.events[m][1].type!=="content"){B=i.events[m][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||B)?(A.enter("setextHeadingLine"),s=h,c(h)):r(h)}function c(h){return A.enter("setextHeadingLineSequence"),u(h)}function u(h){return h===s?(A.consume(h),u):(A.exit("setextHeadingLineSequence"),Ae(h)?me(A,f,"lineSuffix")(h):f(h))}function f(h){return h===null||UA(h)?(A.exit("setextHeadingLine"),t(h)):r(h)}}const mU={tokenize:BU};function BU(A){const t=this,r=A.attempt(Kl,i,A.attempt(this.parser.constructs.flowInitial,s,me(A,A.attempt(this.parser.constructs.flow,s,A.attempt(vQ,s)),"linePrefix")));return r;function i(l){if(l===null){A.consume(l);return}return A.enter("lineEndingBlank"),A.consume(l),A.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function s(l){if(l===null){A.consume(l);return}return A.enter("lineEnding"),A.consume(l),A.exit("lineEnding"),t.currentConstruct=void 0,r}}const CU={resolveAll:uB()},wU=cB("string"),yU=cB("text");function cB(A){return{resolveAll:uB(A==="text"?EU:void 0),tokenize:t};function t(r){const i=this,s=this.parser.constructs[A],l=r.attempt(s,c,u);return c;function c(m){return h(m)?l(m):u(m)}function u(m){if(m===null){r.consume(m);return}return r.enter("data"),r.consume(m),f}function f(m){return h(m)?(r.exit("data"),l(m)):(r.consume(m),f)}function h(m){if(m===null)return!0;const B=s[m];let w=-1;if(B)for(;++w<B.length;){const C=B[w];if(!C.previous||C.previous.call(i,i.previous))return!0}return!1}}}function uB(A){return t;function t(r,i){let s=-1,l;for(;++s<=r.length;)l===void 0?r[s]&&r[s][1].type==="data"&&(l=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==l+2&&(r[l][1].end=r[s-1][1].end,r.splice(l+2,s-l-2),s=l+2),l=void 0);return A?A(r,i):r}}function EU(A,t){let r=0;for(;++r<=A.length;)if((r===A.length||A[r][1].type==="lineEnding")&&A[r-1][1].type==="data"){const i=A[r-1][1],s=t.sliceStream(i);let l=s.length,c=-1,u=0,f;for(;l--;){const h=s[l];if(typeof h=="string"){for(c=h.length;h.charCodeAt(c-1)===32;)u++,c--;if(c)break;c=-1}else if(h===-2)f=!0,u++;else if(h!==-1){l++;break}}if(t._contentTypeTextTrailing&&r===A.length&&(u=0),u){const h={type:r===A.length||f||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?c:i.start._bufferIndex+c,_index:i.start._index+l,line:i.end.line,column:i.end.column-u,offset:i.end.offset-u},end:{...i.end}};i.end={...h.start},i.start.offset===i.end.offset?Object.assign(i,h):(A.splice(r,0,["enter",h,t],["exit",h,t]),r+=2)}r++}return A}const vU=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:UQ},disable:{null:[]},document:{42:dt,43:dt,45:dt,48:dt,49:dt,50:dt,51:dt,52:dt,53:dt,54:dt,55:dt,56:dt,57:dt,62:$m},flow:{35:_Q,42:Vl,45:[oB,Vl],60:LQ,61:oB,95:Vl,96:nB,126:nB},flowInitial:{[-2]:Bf,[-1]:Bf,32:Bf},insideSpan:{null:[mf,CU]},string:{38:eB,92:AB},text:{[-5]:wf,[-4]:wf,[-3]:wf,33:tU,38:eB,42:mf,60:[rQ,zQ],91:rU,92:[NQ,AB],93:Cf,95:mf,96:mQ}},Symbol.toStringTag,{value:"Module"}));function bU(A,t,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},l=[];let c=[],u=[];const f={attempt:L(K),check:L(T),consume:N,enter:O,exit:j,interrupt:L(T,{interrupt:!0})},h={code:null,containerState:{},defineSkip:v,events:[],now:E,parser:A,previous:null,sliceSerialize:w,sliceStream:C,write:B};let m=t.tokenize.call(h,f);return t.resolveAll&&l.push(t),h;function B(nA){return c=Dt(c,nA),F(),c[c.length-1]!==null?[]:(R(t,0),h.events=pf(l,h.events,h),h.events)}function w(nA,z){return SU(C(nA),z)}function C(nA){return xU(c,nA)}function E(){const{_bufferIndex:nA,_index:z,line:lA,column:Z,offset:eA}=i;return{_bufferIndex:nA,_index:z,line:lA,column:Z,offset:eA}}function v(nA){s[nA.line]=nA.column,X()}function F(){let nA;for(;i._index<c.length;){const z=c[i._index];if(typeof z=="string")for(nA=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===nA&&i._bufferIndex<z.length;)Q(z.charCodeAt(i._bufferIndex));else Q(z)}}function Q(nA){m=m(nA)}function N(nA){UA(nA)?(i.line++,i.column=1,i.offset+=nA===-3?2:1,X()):nA!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===c[i._index].length&&(i._bufferIndex=-1,i._index++)),h.previous=nA}function O(nA,z){const lA=z||{};return lA.type=nA,lA.start=E(),h.events.push(["enter",lA,h]),u.push(lA),lA}function j(nA){const z=u.pop();return z.end=E(),h.events.push(["exit",z,h]),z}function K(nA,z){R(nA,z.from)}function T(nA,z){z.restore()}function L(nA,z){return lA;function lA(Z,eA,D){let W,AA,gA,I;return Array.isArray(Z)?M(Z):"tokenize"in Z?M([Z]):U(Z);function U(fA){return pA;function pA(LA){const IA=LA!==null&&fA[LA],FA=LA!==null&&fA.null,fe=[...Array.isArray(IA)?IA:IA?[IA]:[],...Array.isArray(FA)?FA:FA?[FA]:[]];return M(fe)(LA)}}function M(fA){return W=fA,AA=0,fA.length===0?D:S(fA[AA])}function S(fA){return pA;function pA(LA){return I=_(),gA=fA,fA.partial||(h.currentConstruct=fA),fA.name&&h.parser.constructs.disable.null.includes(fA.name)?uA():fA.tokenize.call(z?Object.assign(Object.create(h),z):h,f,aA,uA)(LA)}}function aA(fA){return nA(gA,I),eA}function uA(fA){return I.restore(),++AA<W.length?S(W[AA]):D}}}function R(nA,z){nA.resolveAll&&!l.includes(nA)&&l.push(nA),nA.resolve&&dn(h.events,z,h.events.length-z,nA.resolve(h.events.slice(z),h)),nA.resolveTo&&(h.events=nA.resolveTo(h.events,h))}function _(){const nA=E(),z=h.previous,lA=h.currentConstruct,Z=h.events.length,eA=Array.from(u);return{from:Z,restore:D};function D(){i=nA,h.previous=z,h.currentConstruct=lA,h.events.length=Z,u=eA,X()}}function X(){i.line in s&&i.column<2&&(i.column=s[i.line],i.offset+=s[i.line]-1)}}function xU(A,t){const r=t.start._index,i=t.start._bufferIndex,s=t.end._index,l=t.end._bufferIndex;let c;if(r===s)c=[A[r].slice(i,l)];else{if(c=A.slice(r,s),i>-1){const u=c[0];typeof u=="string"?c[0]=u.slice(i):c.shift()}l>0&&c.push(A[s].slice(0,l))}return c}function SU(A,t){let r=-1;const i=[];let s;for(;++r<A.length;){const l=A[r];let c;if(typeof l=="string")c=l;else switch(l){case-5:{c="\r";break}case-4:{c=`
|
|
89
91
|
`;break}case-3:{c=`\r
|
|
90
|
-
`;break}case-2:{c=t?" ":" ";break}case-1:{if(!t&&s)continue;c=" ";break}default:c=String.fromCharCode(l)}s=l===-2,i.push(c)}return i.join("")}function IU(A){const i={constructs:XS([UU,...(A||{}).extensions||[]]),content:s(tQ),defined:[],document:s(rQ),flow:s(EU),lazy:{},string:s(xU),text:s(SU)};return i;function s(l){return c;function c(u){return FU(i,l,u)}}}function HU(A){for(;!aB(A););return A}const hB=/[\0\t\n\r]/g;function _U(){let A=1,t="",r=!0,i;return s;function s(l,c,u){const f=[];let h,m,B,w,C;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(c||void 0).decode(l)),B=0,t="",r&&(l.charCodeAt(0)===65279&&B++,r=void 0);B<l.length;){if(hB.lastIndex=B,h=hB.exec(l),w=h&&h.index!==void 0?h.index:l.length,C=l.charCodeAt(w),!h){t=l.slice(B);break}if(C===10&&B===w&&i)f.push(-3),i=void 0;else switch(i&&(f.push(-5),i=void 0),B<w&&(f.push(l.slice(B,w)),A+=w-B),C){case 0:{f.push(65533),A++;break}case 9:{for(m=Math.ceil(A/4)*4,f.push(-2);A++<m;)f.push(-1);break}case 10:{f.push(-4),A=1;break}default:i=!0,A=1}B=w+1}return u&&(i&&f.push(-5),t&&f.push(t),f.push(null)),f}}const MU=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function OU(A){return A.replace(MU,RU)}function RU(A,t,r){if(t)return t;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),l=s===120||s===88;return Zm(r.slice(l?2:1),l?16:10)}return hf(r)||A}const gB={}.hasOwnProperty;function LU(A,t,r){return typeof t!="string"&&(r=t,t=void 0),DU(r)(HU(IU(r).document().write(_U()(A,t,!0))))}function DU(A){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(ot),autolinkProtocol:_,autolinkEmail:_,atxHeading:l($e),blockQuote:l(NA),characterEscape:_,characterReference:_,codeFenced:l(de),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:l(de,c),codeText:l(he,c),codeTextData:_,data:_,codeFlowValue:_,definition:l(oe),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:l(Te),hardBreakEscape:l(Ut),hardBreakTrailing:l(Ut),htmlFlow:l(gt,c),htmlFlowData:_,htmlText:l(gt,c),htmlTextData:_,image:l(an),label:c,link:l(ot),listItem:l(Cn),listItemValue:w,listOrdered:l(Nn,B),listUnordered:l(Nn),paragraph:l($r),reference:S,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:l($e),strong:l(pr),thematicBreak:l(Vi)},exit:{atxHeading:f(),atxHeadingSequence:j,autolink:f(),autolinkEmail:HA,autolinkProtocol:kA,blockQuote:f(),characterEscapeValue:X,characterReferenceMarkerHexadecimal:uA,characterReferenceMarkerNumeric:uA,characterReferenceValue:fA,characterReference:pA,codeFenced:f(F),codeFencedFence:v,codeFencedFenceInfo:C,codeFencedFenceMeta:E,codeFlowValue:X,codeIndented:f(Q),codeText:f(eA),codeTextData:X,data:X,definition:f(),definitionDestinationString:K,definitionLabelString:I,definitionTitleString:O,emphasis:f(),hardBreakEscape:f(z),hardBreakTrailing:f(z),htmlFlow:f(lA),htmlFlowData:X,htmlText:f(Z),htmlTextData:X,image:f(W),label:gA,labelText:AA,lineEnding:nA,link:f(D),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:aA,resourceDestinationString:N,resourceTitleString:U,resource:M,setextHeading:f(R),setextHeadingLineSequence:L,setextHeadingText:T,strong:f(),thematicBreak:f()}};pB(t,(A||{}).mdastExtensions||[]);const r={};return i;function i(rA){let V={type:"root",children:[]};const q={stack:[V],tokenStack:[],config:t,enter:u,exit:h,buffer:c,resume:m,data:r},oA=[];let hA=-1;for(;++hA<rA.length;)if(rA[hA][1].type==="listOrdered"||rA[hA][1].type==="listUnordered")if(rA[hA][0]==="enter")oA.push(hA);else{const SA=oA.pop();hA=s(rA,SA,hA)}for(hA=-1;++hA<rA.length;){const SA=t[rA[hA][0]];gB.call(SA,rA[hA][1].type)&&SA[rA[hA][1].type].call(Object.assign({sliceSerialize:rA[hA][2].sliceSerialize},q),rA[hA][1])}if(q.tokenStack.length>0){const SA=q.tokenStack[q.tokenStack.length-1];(SA[1]||mB).call(q,void 0,SA[0])}for(V.position={start:ir(rA.length>0?rA[0][1].start:{line:1,column:1,offset:0}),end:ir(rA.length>0?rA[rA.length-2][1].end:{line:1,column:1,offset:0})},hA=-1;++hA<t.transforms.length;)V=t.transforms[hA](V)||V;return V}function s(rA,V,q){let oA=V-1,hA=-1,SA=!1,FA,jA,LA,YA;for(;++oA<=q;){const TA=rA[oA];switch(TA[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{TA[0]==="enter"?hA++:hA--,YA=void 0;break}case"lineEndingBlank":{TA[0]==="enter"&&(FA&&!YA&&!hA&&!LA&&(LA=oA),YA=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:YA=void 0}if(!hA&&TA[0]==="enter"&&TA[1].type==="listItemPrefix"||hA===-1&&TA[0]==="exit"&&(TA[1].type==="listUnordered"||TA[1].type==="listOrdered")){if(FA){let pt=oA;for(jA=void 0;pt--;){const bA=rA[pt];if(bA[1].type==="lineEnding"||bA[1].type==="lineEndingBlank"){if(bA[0]==="exit")continue;jA&&(rA[jA][1].type="lineEndingBlank",SA=!0),bA[1].type="lineEnding",jA=pt}else if(!(bA[1].type==="linePrefix"||bA[1].type==="blockQuotePrefix"||bA[1].type==="blockQuotePrefixWhitespace"||bA[1].type==="blockQuoteMarker"||bA[1].type==="listItemIndent"))break}LA&&(!jA||LA<jA)&&(FA._spread=!0),FA.end=Object.assign({},jA?rA[jA][1].start:TA[1].end),rA.splice(jA||oA,0,["exit",FA,TA[2]]),oA++,q++}if(TA[1].type==="listItemPrefix"){const pt={type:"listItem",_spread:!1,start:Object.assign({},TA[1].start),end:void 0};FA=pt,rA.splice(oA,0,["enter",pt,TA[2]]),oA++,q++,LA=void 0,YA=!0}}}return rA[V][1]._spread=SA,q}function l(rA,V){return q;function q(oA){u.call(this,rA(oA),oA),V&&V.call(this,oA)}}function c(){this.stack.push({type:"fragment",children:[]})}function u(rA,V,q){this.stack[this.stack.length-1].children.push(rA),this.stack.push(rA),this.tokenStack.push([V,q||void 0]),rA.position={start:ir(V.start),end:void 0}}function f(rA){return V;function V(q){rA&&rA.call(this,q),h.call(this,q)}}function h(rA,V){const q=this.stack.pop(),oA=this.tokenStack.pop();if(oA)oA[0].type!==rA.type&&(V?V.call(this,rA,oA[0]):(oA[1]||mB).call(this,rA,oA[0]));else throw new Error("Cannot close `"+rA.type+"` ("+ss({start:rA.start,end:rA.end})+"): it’s not open");q.position.end=ir(rA.end)}function m(){return PS(this.stack.pop())}function B(){this.data.expectingFirstListItemValue=!0}function w(rA){if(this.data.expectingFirstListItemValue){const V=this.stack[this.stack.length-2];V.start=Number.parseInt(this.sliceSerialize(rA),10),this.data.expectingFirstListItemValue=void 0}}function C(){const rA=this.resume(),V=this.stack[this.stack.length-1];V.lang=rA}function E(){const rA=this.resume(),V=this.stack[this.stack.length-1];V.meta=rA}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function F(){const rA=this.resume(),V=this.stack[this.stack.length-1];V.value=rA.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function Q(){const rA=this.resume(),V=this.stack[this.stack.length-1];V.value=rA.replace(/(\r?\n|\r)$/g,"")}function I(rA){const V=this.resume(),q=this.stack[this.stack.length-1];q.label=V,q.identifier=Qi(this.sliceSerialize(rA)).toLowerCase()}function O(){const rA=this.resume(),V=this.stack[this.stack.length-1];V.title=rA}function K(){const rA=this.resume(),V=this.stack[this.stack.length-1];V.url=rA}function j(rA){const V=this.stack[this.stack.length-1];if(!V.depth){const q=this.sliceSerialize(rA).length;V.depth=q}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function L(rA){const V=this.stack[this.stack.length-1];V.depth=this.sliceSerialize(rA).codePointAt(0)===61?1:2}function R(){this.data.setextHeadingSlurpLineEnding=void 0}function _(rA){const q=this.stack[this.stack.length-1].children;let oA=q[q.length-1];(!oA||oA.type!=="text")&&(oA=ze(),oA.position={start:ir(rA.start),end:void 0},q.push(oA)),this.stack.push(oA)}function X(rA){const V=this.stack.pop();V.value+=this.sliceSerialize(rA),V.position.end=ir(rA.end)}function nA(rA){const V=this.stack[this.stack.length-1];if(this.data.atHardBreak){const q=V.children[V.children.length-1];q.position.end=ir(rA.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(V.type)&&(_.call(this,rA),X.call(this,rA))}function z(){this.data.atHardBreak=!0}function lA(){const rA=this.resume(),V=this.stack[this.stack.length-1];V.value=rA}function Z(){const rA=this.resume(),V=this.stack[this.stack.length-1];V.value=rA}function eA(){const rA=this.resume(),V=this.stack[this.stack.length-1];V.value=rA}function D(){const rA=this.stack[this.stack.length-1];if(this.data.inReference){const V=this.data.referenceType||"shortcut";rA.type+="Reference",rA.referenceType=V,delete rA.url,delete rA.title}else delete rA.identifier,delete rA.label;this.data.referenceType=void 0}function W(){const rA=this.stack[this.stack.length-1];if(this.data.inReference){const V=this.data.referenceType||"shortcut";rA.type+="Reference",rA.referenceType=V,delete rA.url,delete rA.title}else delete rA.identifier,delete rA.label;this.data.referenceType=void 0}function AA(rA){const V=this.sliceSerialize(rA),q=this.stack[this.stack.length-2];q.label=OU(V),q.identifier=Qi(V).toLowerCase()}function gA(){const rA=this.stack[this.stack.length-1],V=this.resume(),q=this.stack[this.stack.length-1];if(this.data.inReference=!0,q.type==="link"){const oA=rA.children;q.children=oA}else q.alt=V}function N(){const rA=this.resume(),V=this.stack[this.stack.length-1];V.url=rA}function U(){const rA=this.resume(),V=this.stack[this.stack.length-1];V.title=rA}function M(){this.data.inReference=void 0}function S(){this.data.referenceType="collapsed"}function aA(rA){const V=this.resume(),q=this.stack[this.stack.length-1];q.label=V,q.identifier=Qi(this.sliceSerialize(rA)).toLowerCase(),this.data.referenceType="full"}function uA(rA){this.data.characterReferenceType=rA.type}function fA(rA){const V=this.sliceSerialize(rA),q=this.data.characterReferenceType;let oA;q?(oA=Zm(V,q==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):oA=hf(V);const hA=this.stack[this.stack.length-1];hA.value+=oA}function pA(rA){const V=this.stack.pop();V.position.end=ir(rA.end)}function kA(rA){X.call(this,rA);const V=this.stack[this.stack.length-1];V.url=this.sliceSerialize(rA)}function HA(rA){X.call(this,rA);const V=this.stack[this.stack.length-1];V.url="mailto:"+this.sliceSerialize(rA)}function NA(){return{type:"blockquote",children:[]}}function de(){return{type:"code",lang:null,meta:null,value:""}}function he(){return{type:"inlineCode",value:""}}function oe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Te(){return{type:"emphasis",children:[]}}function $e(){return{type:"heading",depth:0,children:[]}}function Ut(){return{type:"break"}}function gt(){return{type:"html",value:""}}function an(){return{type:"image",title:null,url:"",alt:null}}function ot(){return{type:"link",title:null,url:"",children:[]}}function Nn(rA){return{type:"list",ordered:rA.type==="listOrdered",start:null,spread:rA._spread,children:[]}}function Cn(rA){return{type:"listItem",spread:rA._spread,checked:null,children:[]}}function $r(){return{type:"paragraph",children:[]}}function pr(){return{type:"strong",children:[]}}function ze(){return{type:"text",value:""}}function Vi(){return{type:"thematicBreak"}}}function ir(A){return{line:A.line,column:A.column,offset:A.offset}}function pB(A,t){let r=-1;for(;++r<t.length;){const i=t[r];Array.isArray(i)?pB(A,i):kU(A,i)}}function kU(A,t){let r;for(r in t)if(gB.call(t,r))switch(r){case"canContainEols":{const i=t[r];i&&A[r].push(...i);break}case"transforms":{const i=t[r];i&&A[r].push(...i);break}case"enter":case"exit":{const i=t[r];i&&Object.assign(A[r],i);break}}}function mB(A,t){throw A?new Error("Cannot close `"+A.type+"` ("+ss({start:A.start,end:A.end})+"): a different token (`"+t.type+"`, "+ss({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ss({start:t.start,end:t.end})+") is still open")}function jU(A){const t=this;t.parser=r;function r(i){return LU(i,{...t.data("settings"),...A,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function KU(A,t){const r={type:"element",tagName:"blockquote",properties:{},children:A.wrap(A.all(t),!0)};return A.patch(t,r),A.applyData(t,r)}function VU(A,t){const r={type:"element",tagName:"br",properties:{},children:[]};return A.patch(t,r),[A.applyData(t,r),{type:"text",value:`
|
|
91
|
-
`}]}function
|
|
92
|
-
`:"",i={},s=t.lang?t.lang.split(/\s+/):[];s.length>0&&(i.className=["language-"+s[0]]);let l={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return t.meta&&(l.data={meta:t.meta}),A.patch(t,l),l=A.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},A.patch(t,l),l}function
|
|
92
|
+
`;break}case-2:{c=t?" ":" ";break}case-1:{if(!t&&s)continue;c=" ";break}default:c=String.fromCharCode(l)}s=l===-2,i.push(c)}return i.join("")}function QU(A){const i={constructs:VS([vU,...(A||{}).extensions||[]]),content:s(ZS),defined:[],document:s($S),flow:s(mU),lazy:{},string:s(wU),text:s(yU)};return i;function s(l){return c;function c(u){return bU(i,l,u)}}}function UU(A){for(;!rB(A););return A}const fB=/[\0\t\n\r]/g;function FU(){let A=1,t="",r=!0,i;return s;function s(l,c,u){const f=[];let h,m,B,w,C;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(c||void 0).decode(l)),B=0,t="",r&&(l.charCodeAt(0)===65279&&B++,r=void 0);B<l.length;){if(fB.lastIndex=B,h=fB.exec(l),w=h&&h.index!==void 0?h.index:l.length,C=l.charCodeAt(w),!h){t=l.slice(B);break}if(C===10&&B===w&&i)f.push(-3),i=void 0;else switch(i&&(f.push(-5),i=void 0),B<w&&(f.push(l.slice(B,w)),A+=w-B),C){case 0:{f.push(65533),A++;break}case 9:{for(m=Math.ceil(A/4)*4,f.push(-2);A++<m;)f.push(-1);break}case 10:{f.push(-4),A=1;break}default:i=!0,A=1}B=w+1}return u&&(i&&f.push(-5),t&&f.push(t),f.push(null)),f}}const TU=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function IU(A){return A.replace(TU,NU)}function NU(A,t,r){if(t)return t;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),l=s===120||s===88;return qm(r.slice(l?2:1),l?16:10)}return df(r)||A}const dB={}.hasOwnProperty;function HU(A,t,r){return typeof t!="string"&&(r=t,t=void 0),_U(r)(UU(QU(r).document().write(FU()(A,t,!0))))}function _U(A){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(ot),autolinkProtocol:_,autolinkEmail:_,atxHeading:l($e),blockQuote:l(FA),characterEscape:_,characterReference:_,codeFenced:l(fe),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:l(fe,c),codeText:l(de,c),codeTextData:_,data:_,codeFlowValue:_,definition:l(le),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:l(Te),hardBreakEscape:l(Ut),hardBreakTrailing:l(Ut),htmlFlow:l(gt,c),htmlFlowData:_,htmlText:l(gt,c),htmlTextData:_,image:l(an),label:c,link:l(ot),listItem:l(Cn),listItemValue:w,listOrdered:l(In,B),listUnordered:l(In),paragraph:l($r),reference:S,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:l($e),strong:l(pr),thematicBreak:l(Vi)},exit:{atxHeading:f(),atxHeadingSequence:K,autolink:f(),autolinkEmail:IA,autolinkProtocol:LA,blockQuote:f(),characterEscapeValue:X,characterReferenceMarkerHexadecimal:uA,characterReferenceMarkerNumeric:uA,characterReferenceValue:fA,characterReference:pA,codeFenced:f(F),codeFencedFence:v,codeFencedFenceInfo:C,codeFencedFenceMeta:E,codeFlowValue:X,codeIndented:f(Q),codeText:f(eA),codeTextData:X,data:X,definition:f(),definitionDestinationString:j,definitionLabelString:N,definitionTitleString:O,emphasis:f(),hardBreakEscape:f(z),hardBreakTrailing:f(z),htmlFlow:f(lA),htmlFlowData:X,htmlText:f(Z),htmlTextData:X,image:f(W),label:gA,labelText:AA,lineEnding:nA,link:f(D),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:aA,resourceDestinationString:I,resourceTitleString:U,resource:M,setextHeading:f(R),setextHeadingLineSequence:L,setextHeadingText:T,strong:f(),thematicBreak:f()}};hB(t,(A||{}).mdastExtensions||[]);const r={};return i;function i(rA){let V={type:"root",children:[]};const q={stack:[V],tokenStack:[],config:t,enter:u,exit:h,buffer:c,resume:m,data:r},oA=[];let dA=-1;for(;++dA<rA.length;)if(rA[dA][1].type==="listOrdered"||rA[dA][1].type==="listUnordered")if(rA[dA][0]==="enter")oA.push(dA);else{const SA=oA.pop();dA=s(rA,SA,dA)}for(dA=-1;++dA<rA.length;){const SA=t[rA[dA][0]];dB.call(SA,rA[dA][1].type)&&SA[rA[dA][1].type].call(Object.assign({sliceSerialize:rA[dA][2].sliceSerialize},q),rA[dA][1])}if(q.tokenStack.length>0){const SA=q.tokenStack[q.tokenStack.length-1];(SA[1]||gB).call(q,void 0,SA[0])}for(V.position={start:ir(rA.length>0?rA[0][1].start:{line:1,column:1,offset:0}),end:ir(rA.length>0?rA[rA.length-2][1].end:{line:1,column:1,offset:0})},dA=-1;++dA<t.transforms.length;)V=t.transforms[dA](V)||V;return V}function s(rA,V,q){let oA=V-1,dA=-1,SA=!1,NA,ZA,zA,he;for(;++oA<=q;){const DA=rA[oA];switch(DA[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{DA[0]==="enter"?dA++:dA--,he=void 0;break}case"lineEndingBlank":{DA[0]==="enter"&&(NA&&!he&&!dA&&!zA&&(zA=oA),he=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:he=void 0}if(!dA&&DA[0]==="enter"&&DA[1].type==="listItemPrefix"||dA===-1&&DA[0]==="exit"&&(DA[1].type==="listUnordered"||DA[1].type==="listOrdered")){if(NA){let pt=oA;for(ZA=void 0;pt--;){const bA=rA[pt];if(bA[1].type==="lineEnding"||bA[1].type==="lineEndingBlank"){if(bA[0]==="exit")continue;ZA&&(rA[ZA][1].type="lineEndingBlank",SA=!0),bA[1].type="lineEnding",ZA=pt}else if(!(bA[1].type==="linePrefix"||bA[1].type==="blockQuotePrefix"||bA[1].type==="blockQuotePrefixWhitespace"||bA[1].type==="blockQuoteMarker"||bA[1].type==="listItemIndent"))break}zA&&(!ZA||zA<ZA)&&(NA._spread=!0),NA.end=Object.assign({},ZA?rA[ZA][1].start:DA[1].end),rA.splice(ZA||oA,0,["exit",NA,DA[2]]),oA++,q++}if(DA[1].type==="listItemPrefix"){const pt={type:"listItem",_spread:!1,start:Object.assign({},DA[1].start),end:void 0};NA=pt,rA.splice(oA,0,["enter",pt,DA[2]]),oA++,q++,zA=void 0,he=!0}}}return rA[V][1]._spread=SA,q}function l(rA,V){return q;function q(oA){u.call(this,rA(oA),oA),V&&V.call(this,oA)}}function c(){this.stack.push({type:"fragment",children:[]})}function u(rA,V,q){this.stack[this.stack.length-1].children.push(rA),this.stack.push(rA),this.tokenStack.push([V,q||void 0]),rA.position={start:ir(V.start),end:void 0}}function f(rA){return V;function V(q){rA&&rA.call(this,q),h.call(this,q)}}function h(rA,V){const q=this.stack.pop(),oA=this.tokenStack.pop();if(oA)oA[0].type!==rA.type&&(V?V.call(this,rA,oA[0]):(oA[1]||gB).call(this,rA,oA[0]));else throw new Error("Cannot close `"+rA.type+"` ("+ss({start:rA.start,end:rA.end})+"): it’s not open");q.position.end=ir(rA.end)}function m(){return jS(this.stack.pop())}function B(){this.data.expectingFirstListItemValue=!0}function w(rA){if(this.data.expectingFirstListItemValue){const V=this.stack[this.stack.length-2];V.start=Number.parseInt(this.sliceSerialize(rA),10),this.data.expectingFirstListItemValue=void 0}}function C(){const rA=this.resume(),V=this.stack[this.stack.length-1];V.lang=rA}function E(){const rA=this.resume(),V=this.stack[this.stack.length-1];V.meta=rA}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function F(){const rA=this.resume(),V=this.stack[this.stack.length-1];V.value=rA.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function Q(){const rA=this.resume(),V=this.stack[this.stack.length-1];V.value=rA.replace(/(\r?\n|\r)$/g,"")}function N(rA){const V=this.resume(),q=this.stack[this.stack.length-1];q.label=V,q.identifier=Qi(this.sliceSerialize(rA)).toLowerCase()}function O(){const rA=this.resume(),V=this.stack[this.stack.length-1];V.title=rA}function j(){const rA=this.resume(),V=this.stack[this.stack.length-1];V.url=rA}function K(rA){const V=this.stack[this.stack.length-1];if(!V.depth){const q=this.sliceSerialize(rA).length;V.depth=q}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function L(rA){const V=this.stack[this.stack.length-1];V.depth=this.sliceSerialize(rA).codePointAt(0)===61?1:2}function R(){this.data.setextHeadingSlurpLineEnding=void 0}function _(rA){const q=this.stack[this.stack.length-1].children;let oA=q[q.length-1];(!oA||oA.type!=="text")&&(oA=ze(),oA.position={start:ir(rA.start),end:void 0},q.push(oA)),this.stack.push(oA)}function X(rA){const V=this.stack.pop();V.value+=this.sliceSerialize(rA),V.position.end=ir(rA.end)}function nA(rA){const V=this.stack[this.stack.length-1];if(this.data.atHardBreak){const q=V.children[V.children.length-1];q.position.end=ir(rA.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(V.type)&&(_.call(this,rA),X.call(this,rA))}function z(){this.data.atHardBreak=!0}function lA(){const rA=this.resume(),V=this.stack[this.stack.length-1];V.value=rA}function Z(){const rA=this.resume(),V=this.stack[this.stack.length-1];V.value=rA}function eA(){const rA=this.resume(),V=this.stack[this.stack.length-1];V.value=rA}function D(){const rA=this.stack[this.stack.length-1];if(this.data.inReference){const V=this.data.referenceType||"shortcut";rA.type+="Reference",rA.referenceType=V,delete rA.url,delete rA.title}else delete rA.identifier,delete rA.label;this.data.referenceType=void 0}function W(){const rA=this.stack[this.stack.length-1];if(this.data.inReference){const V=this.data.referenceType||"shortcut";rA.type+="Reference",rA.referenceType=V,delete rA.url,delete rA.title}else delete rA.identifier,delete rA.label;this.data.referenceType=void 0}function AA(rA){const V=this.sliceSerialize(rA),q=this.stack[this.stack.length-2];q.label=IU(V),q.identifier=Qi(V).toLowerCase()}function gA(){const rA=this.stack[this.stack.length-1],V=this.resume(),q=this.stack[this.stack.length-1];if(this.data.inReference=!0,q.type==="link"){const oA=rA.children;q.children=oA}else q.alt=V}function I(){const rA=this.resume(),V=this.stack[this.stack.length-1];V.url=rA}function U(){const rA=this.resume(),V=this.stack[this.stack.length-1];V.title=rA}function M(){this.data.inReference=void 0}function S(){this.data.referenceType="collapsed"}function aA(rA){const V=this.resume(),q=this.stack[this.stack.length-1];q.label=V,q.identifier=Qi(this.sliceSerialize(rA)).toLowerCase(),this.data.referenceType="full"}function uA(rA){this.data.characterReferenceType=rA.type}function fA(rA){const V=this.sliceSerialize(rA),q=this.data.characterReferenceType;let oA;q?(oA=qm(V,q==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):oA=df(V);const dA=this.stack[this.stack.length-1];dA.value+=oA}function pA(rA){const V=this.stack.pop();V.position.end=ir(rA.end)}function LA(rA){X.call(this,rA);const V=this.stack[this.stack.length-1];V.url=this.sliceSerialize(rA)}function IA(rA){X.call(this,rA);const V=this.stack[this.stack.length-1];V.url="mailto:"+this.sliceSerialize(rA)}function FA(){return{type:"blockquote",children:[]}}function fe(){return{type:"code",lang:null,meta:null,value:""}}function de(){return{type:"inlineCode",value:""}}function le(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Te(){return{type:"emphasis",children:[]}}function $e(){return{type:"heading",depth:0,children:[]}}function Ut(){return{type:"break"}}function gt(){return{type:"html",value:""}}function an(){return{type:"image",title:null,url:"",alt:null}}function ot(){return{type:"link",title:null,url:"",children:[]}}function In(rA){return{type:"list",ordered:rA.type==="listOrdered",start:null,spread:rA._spread,children:[]}}function Cn(rA){return{type:"listItem",spread:rA._spread,checked:null,children:[]}}function $r(){return{type:"paragraph",children:[]}}function pr(){return{type:"strong",children:[]}}function ze(){return{type:"text",value:""}}function Vi(){return{type:"thematicBreak"}}}function ir(A){return{line:A.line,column:A.column,offset:A.offset}}function hB(A,t){let r=-1;for(;++r<t.length;){const i=t[r];Array.isArray(i)?hB(A,i):MU(A,i)}}function MU(A,t){let r;for(r in t)if(dB.call(t,r))switch(r){case"canContainEols":{const i=t[r];i&&A[r].push(...i);break}case"transforms":{const i=t[r];i&&A[r].push(...i);break}case"enter":case"exit":{const i=t[r];i&&Object.assign(A[r],i);break}}}function gB(A,t){throw A?new Error("Cannot close `"+A.type+"` ("+ss({start:A.start,end:A.end})+"): a different token (`"+t.type+"`, "+ss({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ss({start:t.start,end:t.end})+") is still open")}function OU(A){const t=this;t.parser=r;function r(i){return HU(i,{...t.data("settings"),...A,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function RU(A,t){const r={type:"element",tagName:"blockquote",properties:{},children:A.wrap(A.all(t),!0)};return A.patch(t,r),A.applyData(t,r)}function LU(A,t){const r={type:"element",tagName:"br",properties:{},children:[]};return A.patch(t,r),[A.applyData(t,r),{type:"text",value:`
|
|
93
|
+
`}]}function DU(A,t){const r=t.value?t.value+`
|
|
94
|
+
`:"",i={},s=t.lang?t.lang.split(/\s+/):[];s.length>0&&(i.className=["language-"+s[0]]);let l={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return t.meta&&(l.data={meta:t.meta}),A.patch(t,l),l=A.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},A.patch(t,l),l}function kU(A,t){const r={type:"element",tagName:"del",properties:{},children:A.all(t)};return A.patch(t,r),A.applyData(t,r)}function jU(A,t){const r={type:"element",tagName:"em",properties:{},children:A.all(t)};return A.patch(t,r),A.applyData(t,r)}function KU(A,t){const r=typeof A.options.clobberPrefix=="string"?A.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),s=Ui(i.toLowerCase()),l=A.footnoteOrder.indexOf(i);let c,u=A.footnoteCounts.get(i);u===void 0?(u=0,A.footnoteOrder.push(i),c=A.footnoteOrder.length):c=l+1,u+=1,A.footnoteCounts.set(i,u);const f={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+s,id:r+"fnref-"+s+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};A.patch(t,f);const h={type:"element",tagName:"sup",properties:{},children:[f]};return A.patch(t,h),A.applyData(t,h)}function VU(A,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:A.all(t)};return A.patch(t,r),A.applyData(t,r)}function GU(A,t){if(A.options.allowDangerousHtml){const r={type:"raw",value:t.value};return A.patch(t,r),A.applyData(t,r)}}function pB(A,t){const r=t.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const s=A.all(t),l=s[0];l&&l.type==="text"?l.value="["+l.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=i:s.push({type:"text",value:i}),s}function zU(A,t){const r=String(t.identifier).toUpperCase(),i=A.definitionById.get(r);if(!i)return pB(A,t);const s={src:Ui(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(s.title=i.title);const l={type:"element",tagName:"img",properties:s,children:[]};return A.patch(t,l),A.applyData(t,l)}function PU(A,t){const r={src:Ui(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"img",properties:r,children:[]};return A.patch(t,i),A.applyData(t,i)}function YU(A,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};A.patch(t,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return A.patch(t,i),A.applyData(t,i)}function XU(A,t){const r=String(t.identifier).toUpperCase(),i=A.definitionById.get(r);if(!i)return pB(A,t);const s={href:Ui(i.url||"")};i.title!==null&&i.title!==void 0&&(s.title=i.title);const l={type:"element",tagName:"a",properties:s,children:A.all(t)};return A.patch(t,l),A.applyData(t,l)}function qU(A,t){const r={href:Ui(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"a",properties:r,children:A.all(t)};return A.patch(t,i),A.applyData(t,i)}function JU(A,t,r){const i=A.all(t),s=r?ZU(r):mB(t),l={},c=[];if(typeof t.checked=="boolean"){const m=i[0];let B;m&&m.type==="element"&&m.tagName==="p"?B=m:(B={type:"element",tagName:"p",properties:{},children:[]},i.unshift(B)),B.children.length>0&&B.children.unshift({type:"text",value:" "}),B.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let u=-1;for(;++u<i.length;){const m=i[u];(s||u!==0||m.type!=="element"||m.tagName!=="p")&&c.push({type:"text",value:`
|
|
93
95
|
`}),m.type==="element"&&m.tagName==="p"&&!s?c.push(...m.children):c.push(m)}const f=i[i.length-1];f&&(s||f.type!=="element"||f.tagName!=="p")&&c.push({type:"text",value:`
|
|
94
|
-
`});const h={type:"element",tagName:"li",properties:l,children:c};return A.patch(t,h),A.applyData(t,h)}function
|
|
96
|
+
`});const h={type:"element",tagName:"li",properties:l,children:c};return A.patch(t,h),A.applyData(t,h)}function ZU(A){let t=!1;if(A.type==="list"){t=A.spread||!1;const r=A.children;let i=-1;for(;!t&&++i<r.length;)t=mB(r[i])}return t}function mB(A){const t=A.spread;return t??A.children.length>1}function WU(A,t){const r={},i=A.all(t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++s<i.length;){const c=i[s];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:A.wrap(i,!0)};return A.patch(t,l),A.applyData(t,l)}function $U(A,t){const r={type:"element",tagName:"p",properties:{},children:A.all(t)};return A.patch(t,r),A.applyData(t,r)}function A3(A,t){const r={type:"root",children:A.wrap(A.all(t))};return A.patch(t,r),A.applyData(t,r)}function e3(A,t){const r={type:"element",tagName:"strong",properties:{},children:A.all(t)};return A.patch(t,r),A.applyData(t,r)}function t3(A,t){const r=A.all(t),i=r.shift(),s=[];if(i){const c={type:"element",tagName:"thead",properties:{},children:A.wrap([i],!0)};A.patch(t.children[0],c),s.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:A.wrap(r,!0)},u=sf(t.children[1]),f=Rm(t.children[t.children.length-1]);u&&f&&(c.position={start:u,end:f}),s.push(c)}const l={type:"element",tagName:"table",properties:{},children:A.wrap(s,!0)};return A.patch(t,l),A.applyData(t,l)}function n3(A,t,r){const i=r?r.children:void 0,l=(i?i.indexOf(t):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,u=c?c.length:t.children.length;let f=-1;const h=[];for(;++f<u;){const B=t.children[f],w={},C=c?c[f]:void 0;C&&(w.align=C);let E={type:"element",tagName:l,properties:w,children:[]};B&&(E.children=A.all(B),A.patch(B,E),E=A.applyData(B,E)),h.push(E)}const m={type:"element",tagName:"tr",properties:{},children:A.wrap(h,!0)};return A.patch(t,m),A.applyData(t,m)}function r3(A,t){const r={type:"element",tagName:"td",properties:{},children:A.all(t)};return A.patch(t,r),A.applyData(t,r)}const BB=9,CB=32;function i3(A){const t=String(A),r=/\r?\n|\r/g;let i=r.exec(t),s=0;const l=[];for(;i;)l.push(wB(t.slice(s,i.index),s>0,!0),i[0]),s=i.index+i[0].length,i=r.exec(t);return l.push(wB(t.slice(s),s>0,!1)),l.join("")}function wB(A,t,r){let i=0,s=A.length;if(t){let l=A.codePointAt(i);for(;l===BB||l===CB;)i++,l=A.codePointAt(i)}if(r){let l=A.codePointAt(s-1);for(;l===BB||l===CB;)s--,l=A.codePointAt(s-1)}return s>i?A.slice(i,s):""}function a3(A,t){const r={type:"text",value:i3(String(t.value))};return A.patch(t,r),A.applyData(t,r)}function s3(A,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return A.patch(t,r),A.applyData(t,r)}const l3={blockquote:RU,break:LU,code:DU,delete:kU,emphasis:jU,footnoteReference:KU,heading:VU,html:GU,imageReference:zU,image:PU,inlineCode:YU,linkReference:XU,link:qU,listItem:JU,list:WU,paragraph:$U,root:A3,strong:e3,table:t3,tableCell:r3,tableRow:n3,text:a3,thematicBreak:s3,toml:Gl,yaml:Gl,definition:Gl,footnoteDefinition:Gl};function Gl(){}const yB=-1,zl=0,us=1,Pl=2,yf=3,Ef=4,vf=5,bf=6,EB=7,vB=8,bB=typeof self=="object"?self:globalThis,o3=(A,t)=>{const r=(s,l)=>(A.set(l,s),s),i=s=>{if(A.has(s))return A.get(s);const[l,c]=t[s];switch(l){case zl:case yB:return r(c,s);case us:{const u=r([],s);for(const f of c)u.push(i(f));return u}case Pl:{const u=r({},s);for(const[f,h]of c)u[i(f)]=i(h);return u}case yf:return r(new Date(c),s);case Ef:{const{source:u,flags:f}=c;return r(new RegExp(u,f),s)}case vf:{const u=r(new Map,s);for(const[f,h]of c)u.set(i(f),i(h));return u}case bf:{const u=r(new Set,s);for(const f of c)u.add(i(f));return u}case EB:{const{name:u,message:f}=c;return r(new bB[u](f),s)}case vB:return r(BigInt(c),s);case"BigInt":return r(Object(BigInt(c)),s);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:u}=new Uint8Array(c);return r(new DataView(u),c)}}return r(new bB[l](c),s)};return i},xB=A=>o3(new Map,A)(0),Fi="",{toString:c3}={},{keys:u3}=Object,fs=A=>{const t=typeof A;if(t!=="object"||!A)return[zl,t];const r=c3.call(A).slice(8,-1);switch(r){case"Array":return[us,Fi];case"Object":return[Pl,Fi];case"Date":return[yf,Fi];case"RegExp":return[Ef,Fi];case"Map":return[vf,Fi];case"Set":return[bf,Fi];case"DataView":return[us,r]}return r.includes("Array")?[us,r]:r.includes("Error")?[EB,r]:[Pl,r]},Yl=([A,t])=>A===zl&&(t==="function"||t==="symbol"),f3=(A,t,r,i)=>{const s=(c,u)=>{const f=i.push(c)-1;return r.set(u,f),f},l=c=>{if(r.has(c))return r.get(c);let[u,f]=fs(c);switch(u){case zl:{let m=c;switch(f){case"bigint":u=vB,m=c.toString();break;case"function":case"symbol":if(A)throw new TypeError("unable to serialize "+f);m=null;break;case"undefined":return s([yB],c)}return s([u,m],c)}case us:{if(f){let w=c;return f==="DataView"?w=new Uint8Array(c.buffer):f==="ArrayBuffer"&&(w=new Uint8Array(c)),s([f,[...w]],c)}const m=[],B=s([u,m],c);for(const w of c)m.push(l(w));return B}case Pl:{if(f)switch(f){case"BigInt":return s([f,c.toString()],c);case"Boolean":case"Number":case"String":return s([f,c.valueOf()],c)}if(t&&"toJSON"in c)return l(c.toJSON());const m=[],B=s([u,m],c);for(const w of u3(c))(A||!Yl(fs(c[w])))&&m.push([l(w),l(c[w])]);return B}case yf:return s([u,c.toISOString()],c);case Ef:{const{source:m,flags:B}=c;return s([u,{source:m,flags:B}],c)}case vf:{const m=[],B=s([u,m],c);for(const[w,C]of c)(A||!(Yl(fs(w))||Yl(fs(C))))&&m.push([l(w),l(C)]);return B}case bf:{const m=[],B=s([u,m],c);for(const w of c)(A||!Yl(fs(w)))&&m.push(l(w));return B}}const{message:h}=c;return s([u,{name:f,message:h}],c)};return l},SB=(A,{json:t,lossy:r}={})=>{const i=[];return f3(!(t||r),!!t,new Map,i)(A),i},Xl=typeof structuredClone=="function"?(A,t)=>t&&("json"in t||"lossy"in t)?xB(SB(A,t)):structuredClone(A):(A,t)=>xB(SB(A,t));function d3(A,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function h3(A,t){return"Back to reference "+(A+1)+(t>1?"-"+t:"")}function g3(A){const t=typeof A.options.clobberPrefix=="string"?A.options.clobberPrefix:"user-content-",r=A.options.footnoteBackContent||d3,i=A.options.footnoteBackLabel||h3,s=A.options.footnoteLabel||"Footnotes",l=A.options.footnoteLabelTagName||"h2",c=A.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let f=-1;for(;++f<A.footnoteOrder.length;){const h=A.footnoteById.get(A.footnoteOrder[f]);if(!h)continue;const m=A.all(h),B=String(h.identifier).toUpperCase(),w=Ui(B.toLowerCase());let C=0;const E=[],v=A.footnoteCounts.get(B);for(;v!==void 0&&++C<=v;){E.length>0&&E.push({type:"text",value:" "});let N=typeof r=="string"?r:r(f,C);typeof N=="string"&&(N={type:"text",value:N}),E.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+w+(C>1?"-"+C:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(f,C),className:["data-footnote-backref"]},children:Array.isArray(N)?N:[N]})}const F=m[m.length-1];if(F&&F.type==="element"&&F.tagName==="p"){const N=F.children[F.children.length-1];N&&N.type==="text"?N.value+=" ":F.children.push({type:"text",value:" "}),F.children.push(...E)}else m.push(...E);const Q={type:"element",tagName:"li",properties:{id:t+"fn-"+w},children:A.wrap(m,!0)};A.patch(h,Q),u.push(Q)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Xl(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
95
97
|
`},{type:"element",tagName:"ol",properties:{},children:A.wrap(u,!0)},{type:"text",value:`
|
|
96
|
-
`}]}}const
|
|
98
|
+
`}]}}const QB=(function(A){if(A==null)return C3;if(typeof A=="function")return ql(A);if(typeof A=="object")return Array.isArray(A)?p3(A):m3(A);if(typeof A=="string")return B3(A);throw new Error("Expected function, string, or object as test")});function p3(A){const t=[];let r=-1;for(;++r<A.length;)t[r]=QB(A[r]);return ql(i);function i(...s){let l=-1;for(;++l<t.length;)if(t[l].apply(this,s))return!0;return!1}}function m3(A){const t=A;return ql(r);function r(i){const s=i;let l;for(l in A)if(s[l]!==t[l])return!1;return!0}}function B3(A){return ql(t);function t(r){return r&&r.type===A}}function ql(A){return t;function t(r,i,s){return!!(w3(r)&&A.call(this,r,typeof i=="number"?i:void 0,s||void 0))}}function C3(){return!0}function w3(A){return A!==null&&typeof A=="object"&&"type"in A}function vH(A){return A}const UB=[],y3=!0,FB=!1,E3="skip";function v3(A,t,r,i){let s;typeof t=="function"&&typeof r!="function"?(i=r,r=t):s=t;const l=QB(s),c=i?-1:1;u(A,void 0,[])();function u(f,h,m){const B=f&&typeof f=="object"?f:{};if(typeof B.type=="string"){const C=typeof B.tagName=="string"?B.tagName:typeof B.name=="string"?B.name:void 0;Object.defineProperty(w,"name",{value:"node ("+(f.type+(C?"<"+C+">":""))+")"})}return w;function w(){let C=UB,E,v,F;if((!t||l(f,h,m[m.length-1]||void 0))&&(C=b3(r(f,m)),C[0]===FB))return C;if("children"in f&&f.children){const Q=f;if(Q.children&&C[0]!==E3)for(v=(i?Q.children.length:-1)+c,F=m.concat(Q);v>-1&&v<Q.children.length;){const N=Q.children[v];if(E=u(N,v,F)(),E[0]===FB)return E;v=typeof E[1]=="number"?E[1]:v+c}}return C}}}function b3(A){return Array.isArray(A)?A:typeof A=="number"?[y3,A]:A==null?UB:[A]}function TB(A,t,r,i){let s,l,c;typeof t=="function"&&typeof r!="function"?(l=void 0,c=t,s=r):(l=t,c=r,s=i),v3(A,l,u,s);function u(f,h){const m=h[h.length-1],B=m?m.children.indexOf(f):void 0;return c(f,B,m)}}const xf={}.hasOwnProperty,x3={};function S3(A,t){const r=t||x3,i=new Map,s=new Map,l=new Map,c={...l3,...r.handlers},u={all:h,applyData:U3,definitionById:i,footnoteById:s,footnoteCounts:l,footnoteOrder:[],handlers:c,one:f,options:r,patch:Q3,wrap:T3};return TB(A,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const B=m.type==="definition"?i:s,w=String(m.identifier).toUpperCase();B.has(w)||B.set(w,m)}}),u;function f(m,B){const w=m.type,C=u.handlers[w];if(xf.call(u.handlers,w)&&C)return C(u,m,B);if(u.options.passThrough&&u.options.passThrough.includes(w)){if("children"in m){const{children:v,...F}=m,Q=Xl(F);return Q.children=u.all(m),Q}return Xl(m)}return(u.options.unknownHandler||F3)(u,m,B)}function h(m){const B=[];if("children"in m){const w=m.children;let C=-1;for(;++C<w.length;){const E=u.one(w[C],m);if(E){if(C&&w[C-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=IB(E.value)),!Array.isArray(E)&&E.type==="element")){const v=E.children[0];v&&v.type==="text"&&(v.value=IB(v.value))}Array.isArray(E)?B.push(...E):B.push(E)}}}return B}}function Q3(A,t){A.position&&(t.position=CS(A))}function U3(A,t){let r=t;if(A&&A.data){const i=A.data.hName,s=A.data.hChildren,l=A.data.hProperties;if(typeof i=="string")if(r.type==="element")r.tagName=i;else{const c="children"in r?r.children:[r];r={type:"element",tagName:i,properties:{},children:c}}r.type==="element"&&l&&Object.assign(r.properties,Xl(l)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function F3(A,t){const r=t.data||{},i="value"in t&&!(xf.call(r,"hProperties")||xf.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:A.all(t)};return A.patch(t,i),A.applyData(t,i)}function T3(A,t){const r=[];let i=-1;for(t&&r.push({type:"text",value:`
|
|
97
99
|
`});++i<A.length;)i&&r.push({type:"text",value:`
|
|
98
100
|
`}),r.push(A[i]);return t&&A.length>0&&r.push({type:"text",value:`
|
|
99
|
-
`}),r}function
|
|
100
|
-
`},s),l}function O3(A,t){return A&&"run"in A?async function(r,i){const s=_B(r,{file:i,...t});await A.run(s,i)}:function(r,i){return _B(r,{file:i,...A||t})}}function MB(A){if(A)throw A}var Qf,OB;function R3(){if(OB)return Qf;OB=1;var A=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},l=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var m=A.call(h,"constructor"),B=h.constructor&&h.constructor.prototype&&A.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!B)return!1;var w;for(w in h);return typeof w>"u"||A.call(h,w)},c=function(h,m){r&&m.name==="__proto__"?r(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},u=function(h,m){if(m==="__proto__")if(A.call(h,m)){if(i)return i(h,m).value}else return;return h[m]};return Qf=function f(){var h,m,B,w,C,E,v=arguments[0],F=1,Q=arguments.length,I=!1;for(typeof v=="boolean"&&(I=v,v=arguments[1]||{},F=2),(v==null||typeof v!="object"&&typeof v!="function")&&(v={});F<Q;++F)if(h=arguments[F],h!=null)for(m in h)B=u(v,m),w=u(h,m),v!==w&&(I&&w&&(l(w)||(C=s(w)))?(C?(C=!1,E=B&&s(B)?B:[]):E=B&&l(B)?B:{},c(v,{name:m,newValue:f(I,E,w)})):typeof w<"u"&&c(v,{name:m,newValue:w}));return v},Qf}var L3=R3();const Uf=cu(L3);function Ff(A){if(typeof A!="object"||A===null)return!1;const t=Object.getPrototypeOf(A);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in A)&&!(Symbol.iterator in A)}function D3(){const A=[],t={run:r,use:i};return t;function r(...s){let l=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);u(null,...s);function u(f,...h){const m=A[++l];let B=-1;if(f){c(f);return}for(;++B<s.length;)(h[B]===null||h[B]===void 0)&&(h[B]=s[B]);s=h,m?k3(m,u)(...h):c(null,...h)}}function i(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return A.push(s),t}}function k3(A,t){let r;return i;function i(...c){const u=A.length>c.length;let f;u&&c.push(s);try{f=A.apply(this,c)}catch(h){const m=h;if(u&&r)throw m;return s(m)}u||(f&&f.then&&typeof f.then=="function"?f.then(l,s):f instanceof Error?s(f):l(f))}function s(c,...u){r||(r=!0,t(c,...u))}function l(c){s(null,c)}}const gn={basename:j3,dirname:K3,extname:V3,join:G3,sep:"/"};function j3(A,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ds(A);let r=0,i=-1,s=A.length,l;if(t===void 0||t.length===0||t.length>A.length){for(;s--;)if(A.codePointAt(s)===47){if(l){r=s+1;break}}else i<0&&(l=!0,i=s+1);return i<0?"":A.slice(r,i)}if(t===A)return"";let c=-1,u=t.length-1;for(;s--;)if(A.codePointAt(s)===47){if(l){r=s+1;break}}else c<0&&(l=!0,c=s+1),u>-1&&(A.codePointAt(s)===t.codePointAt(u--)?u<0&&(i=s):(u=-1,i=c));return r===i?i=c:i<0&&(i=A.length),A.slice(r,i)}function K3(A){if(ds(A),A.length===0)return".";let t=-1,r=A.length,i;for(;--r;)if(A.codePointAt(r)===47){if(i){t=r;break}}else i||(i=!0);return t<0?A.codePointAt(0)===47?"/":".":t===1&&A.codePointAt(0)===47?"//":A.slice(0,t)}function V3(A){ds(A);let t=A.length,r=-1,i=0,s=-1,l=0,c;for(;t--;){const u=A.codePointAt(t);if(u===47){if(c){i=t+1;break}continue}r<0&&(c=!0,r=t+1),u===46?s<0?s=t:l!==1&&(l=1):s>-1&&(l=-1)}return s<0||r<0||l===0||l===1&&s===r-1&&s===i+1?"":A.slice(s,r)}function G3(...A){let t=-1,r;for(;++t<A.length;)ds(A[t]),A[t]&&(r=r===void 0?A[t]:r+"/"+A[t]);return r===void 0?".":z3(r)}function z3(A){ds(A);const t=A.codePointAt(0)===47;let r=P3(A,!t);return r.length===0&&!t&&(r="."),r.length>0&&A.codePointAt(A.length-1)===47&&(r+="/"),t?"/"+r:r}function P3(A,t){let r="",i=0,s=-1,l=0,c=-1,u,f;for(;++c<=A.length;){if(c<A.length)u=A.codePointAt(c);else{if(u===47)break;u=47}if(u===47){if(!(s===c-1||l===1))if(s!==c-1&&l===2){if(r.length<2||i!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(f=r.lastIndexOf("/"),f!==r.length-1){f<0?(r="",i=0):(r=r.slice(0,f),i=r.length-1-r.lastIndexOf("/")),s=c,l=0;continue}}else if(r.length>0){r="",i=0,s=c,l=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+A.slice(s+1,c):r=A.slice(s+1,c),i=c-s-1;s=c,l=0}else u===46&&l>-1?l++:l=-1}return r}function ds(A){if(typeof A!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(A))}const Y3={cwd:X3};function X3(){return"/"}function Tf(A){return!!(A!==null&&typeof A=="object"&&"href"in A&&A.href&&"protocol"in A&&A.protocol&&A.auth===void 0)}function q3(A){if(typeof A=="string")A=new URL(A);else if(!Tf(A)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+A+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(A.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return J3(A)}function J3(A){if(A.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=A.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const i=t.codePointAt(r+2);if(i===70||i===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(t)}const Nf=["history","path","basename","stem","extname","dirname"];class RB{constructor(t){let r;t?Tf(t)?r={path:t}:typeof t=="string"||Z3(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":Y3.cwd(),this.data={},this.history=[],this.messages=[];let i=-1;for(;++i<Nf.length;){const l=Nf[i];l in r&&r[l]!==void 0&&r[l]!==null&&(this[l]=l==="history"?[...r[l]]:r[l])}let s;for(s in r)Nf.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?gn.basename(this.path):void 0}set basename(t){Hf(t,"basename"),If(t,"basename"),this.path=gn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?gn.dirname(this.path):void 0}set dirname(t){LB(this.basename,"dirname"),this.path=gn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?gn.extname(this.path):void 0}set extname(t){if(If(t,"extname"),LB(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=gn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Tf(t)&&(t=q3(t)),Hf(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?gn.basename(this.path,this.extname):void 0}set stem(t){Hf(t,"stem"),If(t,"stem"),this.path=gn.join(this.dirname||"",t+(this.extname||""))}fail(t,r,i){const s=this.message(t,r,i);throw s.fatal=!0,s}info(t,r,i){const s=this.message(t,r,i);return s.fatal=void 0,s}message(t,r,i){const s=new it(t,r,i);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function If(A,t){if(A&&A.includes(gn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+gn.sep+"`")}function Hf(A,t){if(!A)throw new Error("`"+t+"` cannot be empty")}function LB(A,t){if(!A)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Z3(A){return!!(A&&typeof A=="object"&&"byteLength"in A&&"byteOffset"in A)}const W3=(function(A){const i=this.constructor.prototype,s=i[A],l=function(){return s.apply(l,arguments)};return Object.setPrototypeOf(l,i),l}),$3={}.hasOwnProperty;class _f extends W3{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=D3()}copy(){const t=new _f;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];t.use(...i)}return t.data(Uf(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(Rf("data",this.frozen),this.namespace[t]=r,this):$3.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Rf("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const s=r.call(t,...i);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Wl(t),i=this.parser||this.Parser;return Mf("parse",i),i(String(r),r)}process(t,r){const i=this;return this.freeze(),Mf("process",this.parser||this.Parser),Of("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(l,c){const u=Wl(t),f=i.parse(u);i.run(f,u,function(m,B,w){if(m||!B||!w)return h(m);const C=B,E=i.stringify(C,w);t6(E)?w.value=E:w.result=E,h(m,w)});function h(m,B){m||!B?c(m):l?l(B):r(void 0,B)}}}processSync(t){let r=!1,i;return this.freeze(),Mf("processSync",this.parser||this.Parser),Of("processSync",this.compiler||this.Compiler),this.process(t,s),kB("processSync","process",r),i;function s(l,c){r=!0,MB(l),i=c}}run(t,r,i){DB(t),this.freeze();const s=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?l(void 0,i):new Promise(l);function l(c,u){const f=Wl(r);s.run(t,f,h);function h(m,B,w){const C=B||t;m?u(m):c?c(C):i(void 0,C,w)}}}runSync(t,r){let i=!1,s;return this.run(t,r,l),kB("runSync","run",i),s;function l(c,u){MB(c),s=u,i=!0}}stringify(t,r){this.freeze();const i=Wl(r),s=this.compiler||this.Compiler;return Of("stringify",s),DB(t),s(t,i)}use(t,...r){const i=this.attachers,s=this.namespace;if(Rf("use",this.frozen),t!=null)if(typeof t=="function")f(t,r);else if(typeof t=="object")Array.isArray(t)?u(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(h){if(typeof h=="function")f(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[m,...B]=h;f(m,B)}else c(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function c(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");u(h.plugins),h.settings&&(s.settings=Uf(!0,s.settings,h.settings))}function u(h){let m=-1;if(h!=null)if(Array.isArray(h))for(;++m<h.length;){const B=h[m];l(B)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function f(h,m){let B=-1,w=-1;for(;++B<i.length;)if(i[B][0]===h){w=B;break}if(w===-1)i.push([h,...m]);else if(m.length>0){let[C,...E]=m;const v=i[w][1];Ff(v)&&Ff(C)&&(C=Uf(!0,v,C)),i[w]=[h,C,...E]}}}}const A6=new _f().freeze();function Mf(A,t){if(typeof t!="function")throw new TypeError("Cannot `"+A+"` without `parser`")}function Of(A,t){if(typeof t!="function")throw new TypeError("Cannot `"+A+"` without `compiler`")}function Rf(A,t){if(t)throw new Error("Cannot call `"+A+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function DB(A){if(!Ff(A)||typeof A.type!="string")throw new TypeError("Expected node, got `"+A+"`")}function kB(A,t,r){if(!r)throw new Error("`"+A+"` finished async. Use `"+t+"` instead")}function Wl(A){return e6(A)?A:new RB(A)}function e6(A){return!!(A&&typeof A=="object"&&"message"in A&&"messages"in A)}function t6(A){return typeof A=="string"||n6(A)}function n6(A){return!!(A&&typeof A=="object"&&"byteLength"in A&&"byteOffset"in A)}const jB=[],KB={allowDangerousHtml:!0},r6=/^(https?|ircs?|mailto|xmpp)$/i,i6=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Lf(A){const t=a6(A),r=s6(A);return l6(t.runSync(t.parse(r),r),A)}function a6(A){const t=A.rehypePlugins||jB,r=A.remarkPlugins||jB,i=A.remarkRehypeOptions?{...A.remarkRehypeOptions,...KB}:KB;return A6().use(jU).use(r).use(O3,i).use(t)}function s6(A){const t=A.children||"",r=new RB;return typeof t=="string"&&(r.value=t),r}function l6(A,t){const r=t.allowedElements,i=t.allowElement,s=t.components,l=t.disallowedElements,c=t.skipHtml,u=t.unwrapDisallowed,f=t.urlTransform||o6;for(const m of i6);return IB(A,h),FS(A,{Fragment:g.Fragment,components:s,ignoreInvalidStyle:!0,jsx:g.jsx,jsxs:g.jsxs,passKeys:!0,passNode:!0});function h(m,B,w){if(m.type==="raw"&&w&&typeof B=="number")return c?w.children.splice(B,1):w.children[B]={type:"text",value:m.value},B;if(m.type==="element"){let C;for(C in df)if(Object.hasOwn(df,C)&&Object.hasOwn(m.properties,C)){const E=m.properties[C],v=df[C];(v===null||v.includes(m.tagName))&&(m.properties[C]=f(String(E||""),C,m))}}if(m.type==="element"){let C=r?!r.includes(m.tagName):l?l.includes(m.tagName):!1;if(!C&&i&&typeof B=="number"&&(C=!i(m,B,w)),C&&w&&typeof B=="number")return u&&m.children?w.children.splice(B,1,...m.children):w.children.splice(B,1),B}}}function o6(A){const t=A.indexOf(":"),r=A.indexOf("?"),i=A.indexOf("#"),s=A.indexOf("/");return t===-1||s!==-1&&t>s||r!==-1&&t>r||i!==-1&&t>i||r6.test(A.slice(0,t))?A:""}const c6=b.lazy(()=>Promise.resolve().then(()=>F6).then(A=>({default:A.Pills}))),u6=b.lazy(()=>Promise.resolve().then(()=>j6).then(A=>({default:A.MultiSelectGroup}))),f6=b.lazy(()=>Promise.resolve().then(()=>G6).then(A=>({default:A.FocusCarousel}))),d6=b.lazy(()=>Promise.resolve().then(()=>Y6).then(A=>({default:A.DoctorCard}))),h6=b.lazy(()=>Promise.resolve().then(()=>J6).then(A=>({default:A.CardList}))),g6=b.lazy(()=>Promise.resolve().then(()=>e5).then(A=>({default:A.MediaCard})));function Je({className:A}){return g.jsx("div",{className:mA("relative overflow-hidden bg-surface-secondary","before:absolute before:inset-0","before:-translate-x-full before:animate-[shimmer_1.4s_infinite]","before:bg-gradient-to-r before:from-transparent before:via-white/40 before:to-transparent",A)})}function Ti({variant:A}){return A==="pill"?g.jsxs("div",{className:"flex flex-wrap gap-2 mt-3","aria-busy":!0,"aria-label":"Loading options",children:[g.jsx($l,{}),g.jsx(Je,{className:"h-8 w-20 rounded-full"}),g.jsx(Je,{className:"h-8 w-24 rounded-full"}),g.jsx(Je,{className:"h-8 w-16 rounded-full"})]}):A==="media"?g.jsxs("div",{className:"mt-3 w-56 rounded-xl border border-border-subtle bg-surface p-3","aria-busy":!0,"aria-label":"Loading media",children:[g.jsx($l,{}),g.jsx(Je,{className:"h-24 w-full rounded-lg"}),g.jsxs("div",{className:"mt-3 space-y-2",children:[g.jsx(Je,{className:"h-3 w-3/4 rounded"}),g.jsx(Je,{className:"h-3 w-1/2 rounded"})]})]}):A==="input"?g.jsxs("div",{className:"mt-3 w-full rounded-xl border border-primary/30 bg-elicitationBg p-4","aria-busy":!0,"aria-label":"Loading input",children:[g.jsx($l,{}),g.jsx(Je,{className:"h-3 w-32 rounded mb-3"}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Je,{className:"h-9 w-full rounded-lg"}),g.jsx(Je,{className:"h-9 w-full rounded-lg"}),g.jsx(Je,{className:"h-9 w-full rounded-lg"})]}),g.jsx(Je,{className:"mt-4 h-9 w-full rounded-lg"})]}):g.jsxs("div",{className:"mt-3 w-72 rounded-xl border border-border-subtle bg-surface p-4","aria-busy":!0,"aria-label":"Loading card",children:[g.jsx($l,{}),g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx(Je,{className:"h-10 w-10 rounded-full"}),g.jsxs("div",{className:"flex-1 space-y-2",children:[g.jsx(Je,{className:"h-3 w-3/4 rounded"}),g.jsx(Je,{className:"h-3 w-1/2 rounded"})]})]}),g.jsxs("div",{className:"mt-4 space-y-2",children:[g.jsx(Je,{className:"h-3 w-full rounded"}),g.jsx(Je,{className:"h-3 w-5/6 rounded"})]}),g.jsx(Je,{className:"mt-4 h-9 w-28 rounded-lg"})]})}function $l(){return g.jsx("style",{children:"@keyframes shimmer { 100% { transform: translateX(100%); } }"})}function p6({messageId:A,tool_key:t,entry:r,onSendMessage:i,disabled:s}){const[l,c]=b.useState([]),[u,f]=b.useState({}),h=r.component,m=r.disabled,B=b.useMemo(()=>r.ui_input,[r.ui_input]);b.useEffect(()=>{h===dA.SYNAPSE_COMPONENTS.DOCTOR_CARD&&B?.doctor_details&&f(B.doctor_details)},[h,B?.doctor_details]);const w=async K=>{await i({message:K.value,messageId:A,toolCalled:!0,selectedComponent:K,tool_key:t})},C=async(K,j,T)=>{await i({toolCalled:!0,selectedComponent:K,selected_id:K.doctor_id,message:j,tool_key:t,messageId:A,...T&&{tool_result:T}})},E=async()=>{l.length!==0&&await i({message:l.join(", "),messageId:A,toolCalled:!0,tool_key:t})},v=()=>{const K=h===dA.SYNAPSE_COMPONENTS.MULTI&&B?.options;return K?Array.isArray(K)?K.map((j,T)=>({id:`option-${T}`,label:j.label,value:j.value})):Object.keys(K).map((j,T)=>({id:`option-${T}`,label:j,value:j})):[]},F=b.useMemo(()=>{if(h===dA.SYNAPSE_COMPONENTS.DOCTOR_CARD)return B?.doctors?.filter(j=>!!j&&!!j.doctor_id)},[h,B?.doctors]);if(!h)return null;const Q=h===dA.SYNAPSE_COMPONENTS.PILL?B?.options:void 0,I=h===dA.SYNAPSE_COMPONENTS.CARD?B?.cards:void 0,O=h===dA.SYNAPSE_COMPONENTS.MEDIA_CARD?B?.media_card:void 0;return g.jsxs("div",{className:"flex justify-end",children:[Q&&g.jsx(b.Suspense,{fallback:g.jsx(Ti,{variant:"pill"}),children:g.jsx("div",{className:`flex ${Q.length>3?"flex-col":"flex-wrap"} gap-2 mt-3`,children:Q.map((K,j)=>g.jsx(c6,{disabled:m||s,text:K?.label||"",onClick:()=>w(K),className:"cursor-pointer"},j))})}),h===dA.SYNAPSE_COMPONENTS.MULTI&&B?.options&&g.jsx(b.Suspense,{fallback:g.jsx(Ti,{variant:"input"}),children:g.jsxs("div",{className:"mt-3 space-y-3 break-words overflow-wrap-anywhere whitespace-pre-wrap bg-elicitationBg border border-primary/40 rounded-xl p-4",children:[g.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Select multiple options:"}),g.jsx(u6,{options:v(),selectedValues:l,onSelectionChange:c,disabled:m||s}),g.jsx(VA,{onClick:E,disabled:l.length===0||m||s,className:mA("w-full rounded-lg px-4 py-2 text-sm font-medium transition-all","bg-primary hover:bg-primary/90 text-primary-foreground","disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-primary/50 disabled:text-primary-foreground","shadow-sm hover:shadow-md active:scale-[0.98] "),children:"Confirm"})]})}),F&&F.length>0?g.jsx(b.Suspense,{fallback:g.jsx(Ti,{variant:"card"}),children:g.jsx(f6,{count:F.length,renderItem:(K,j)=>{const T=F[K];return g.jsx(b.Suspense,{fallback:g.jsx(Ti,{variant:"card"}),children:g.jsx(d6,{doctor:T,doctorDetails:u?.[T.doctor_id],disabled:s,onSelect:C,isActive:j})},T.doctor_id)}})}):null,I&&g.jsx(b.Suspense,{fallback:g.jsx(Ti,{variant:"card"}),children:g.jsx(h6,{cards:I,onSelect:async K=>{await i({...K,toolCalled:!0,tool_key:t,messageId:A})},orientation:r.orientation,disabled:m||s})}),O&&g.jsx(b.Suspense,{fallback:g.jsx(Ti,{variant:"media"}),children:g.jsx("div",{className:"mt-3",children:g.jsx(g6,{card:O})})})]})}const m6=b.memo(function({status:t,name:r}){const i=t==="loading"?`Calling ${r}...`:`${r} called.`;return g.jsxs("div",{className:"flex items-center gap-1.5 my-1 text-sm text-muted-foreground",children:[t==="loading"?g.jsx(db,{className:"h-3.5 w-3.5 animate-spin"}):g.jsx(Ll,{className:"h-3.5 w-3.5"}),g.jsx("span",{children:i})]})});function B6({id:A,role:t,content:r,segments:i,files:s,isLastMessage:l,progressMessage:c,toolKeys:u,elicitationState:f,onSendMessage:h,onToggleFeedback:m,disabled:B,onClearElicitationState:w,isAuthComponent:C,isFullScreen:E}){const v=t==="user",[F,Q]=b.useState(dA.USER_FEEDBACK.NONE),I=WA(j=>j.isStreaming),O=j=>{Q(j),m(j,A)},K=!!(r?.trim()||i?.length||s&&s.length>0||c);return g.jsxs(g.Fragment,{children:[K&&g.jsx("div",{className:mA("flex",v?"justify-end":"justify-start"),children:g.jsx("div",{className:mA("flex gap-3",v?"flex-row-reverse":"flex-row",v?"max-w-[60%]":E?"w-full":"max-w-xs"),children:g.jsxs("div",{className:"flex flex-col",children:[g.jsxs(Pr,{className:mA("px-4 py-2 rounded-lg shadow-none break-words overflow-wrap-anywhere whitespace-pre-wrap",v?"bg-primary text-primary-foreground shadow-sm":mA("text-foreground shadow-sm bg-botMessage blur-xs border border-black-200 dark:border-white-200"),E&&!v&&"!bg-transparent !shadow-none !border-0 !rounded-none !px-0 !py-0 !backdrop-blur-none !blur-none text-black-900"),children:[(i?.length||r)&&g.jsxs("div",{className:mA("markdown-content",E&&!v?"text-base leading-6":"text-sm"),children:[i?.length?i.map((j,T)=>{if(j.type==="tool")return g.jsx(m6,{name:j.toolName,status:j.status},T);const R=i[T-1]?.type==="tool";return g.jsxs("div",{children:[R&&g.jsx("div",{className:"ml-[7px] my-1 w-px h-4 bg-muted-foreground/40","aria-hidden":!0}),j.text?g.jsx(Lf,{children:j.text}):null]},T)}):g.jsx(Lf,{children:r}),!v&&I&&l&&g.jsx("span",{children:"..."})]}),s&&s.length>0&&g.jsx("div",{className:"mt-2",children:g.jsx(Wu,{files:s,isPreview:!1,className:""})}),c&&!v&&l&&g.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:c})]}),!v&&!I&&l&&(r||i?.length)&&F===dA.USER_FEEDBACK.NONE&&g.jsx("div",{className:"flex items-center gap-2 self-start mt-1",children:g.jsxs("div",{className:"flex items-center gap-1",children:[g.jsx(VA,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-black-500 dark:text-white-500 hover:text-foreground",onClick:()=>O(dA.USER_FEEDBACK.LIKE),children:g.jsx(Vp,{className:"h-3 w-3"})}),g.jsx(VA,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-black-500 dark:text-white-500 hover:text-foreground",onClick:()=>O(dA.USER_FEEDBACK.DISLIKE),children:g.jsx(Gp,{className:"h-3 w-3"})})]})}),!v&&!I&&l&&F===dA.USER_FEEDBACK.LIKE&&g.jsx("div",{className:"flex items-center gap-2 self-start mt-1",children:g.jsx(VA,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-primary",disabled:!0,children:g.jsx(Vp,{className:"h-3 w-3"})})}),!v&&!I&&l&&F===dA.USER_FEEDBACK.DISLIKE&&g.jsx("div",{className:"flex items-center gap-2 self-start mt-1",children:g.jsx(VA,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-primary",disabled:!0,children:g.jsx(Gp,{className:"h-3 w-3"})})}),C&&l&&u?.length?g.jsx("div",{className:"flex items-center gap-2 self-start mt-1",children:g.jsx(VA,{variant:"link",size:"sm",className:"h-6 px-0 text-[12px] font-medium text-primary border-b border-dashed border-primary rounded-none bg-transparent no-underline hover:no-underline hover:bg-transparent active:bg-transparent focus-visible:bg-transparent rounded-none",onClick:()=>{const j=u[u.length-1];j&&f[j].active&&w(j,"Cancel OTP Verification")},children:"Cancel OTP Verification"})}):null]})})}),u?.map(j=>{const T=f[j];return T?g.jsx(p6,{messageId:A,tool_key:j,entry:T,onSendMessage:h,disabled:B||T.disabled},j):null})]})}const C6=b.memo(B6);function w6({messages:A,onSendMessage:t,onToggleFeedback:r,onClearElicitationState:i,isAuthComponent:s,isFullScreen:l}){const c=WA(B=>B.isWaitingForResponse),u=WA(B=>B.connectionStatus),f=WA(B=>B.elicitationState),h=u===qe.CONNECTED,m=WA(B=>B.progressMessage);return g.jsxs(g.Fragment,{children:[(A&&A.length>0||m)&&g.jsx(g.Fragment,{children:A.map((B,w)=>g.jsx("div",{className:"animate-slideUp scroll-mt-[80px] min-w-0 overflow-hidden",id:w===A.length-1?"last-message":void 0,children:g.jsx(C6,{id:B.id,role:B.role,content:B.content,segments:B.segments,files:B.files||[],toolKeys:B.tool_keys,elicitationState:f,timestamp:B.timestamp,onSendMessage:t,isLastMessage:w===A.length-1,progressMessage:m,disabled:!h,onToggleFeedback:r,onClearElicitationState:i,isAuthComponent:s,isFullScreen:l})},B.id))}),c&&g.jsx(y6,{})]})}function y6(){return g.jsx("div",{className:"animate-slideUp",children:g.jsx("div",{className:"flex justify-start",children:g.jsx("div",{className:"flex gap-3",children:g.jsx(Pr,{className:"px-4 py-2 rounded-lg shadow-none bg-botMessage backdrop-blur-sm text-text-primary shadow-sm",children:g.jsx("div",{className:"flex items-center gap-1.5","aria-label":"Bot is typing",children:[0,1,2].map(A=>g.jsx("span",{className:"w-2 h-2 rounded-full bg-foreground animate-pulse",style:{animationDelay:`${A*150}ms`}},A))})})})})})}const E6=Object.freeze(Object.defineProperty({__proto__:null,default:w6},Symbol.toStringTag,{value:"Module"}));function v6({message:A,onDismiss:t}){return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"pointer-events-none absolute inset-0 z-[55] bg-black-600","aria-hidden":!0}),g.jsx("div",{className:"pointer-events-none absolute inset-x-3 top-3 z-[60]",role:"presentation",children:g.jsxs("div",{role:"alertdialog","aria-modal":"true","aria-labelledby":"synapse-disp-toast-msg",className:"pointer-events-auto flex w-full flex-row items-center gap-3 rounded-lg border border-border bg-surface p-3 text-left text-foreground opacity-100",onClick:r=>r.stopPropagation(),children:[g.jsx("p",{id:"synapse-disp-toast-msg",className:"min-w-0 flex-1 text-sm font-medium whitespace-pre-wrap",children:A}),g.jsx("button",{type:"button",onClick:t,className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-muted-foreground hover:bg-muted hover:text-foreground","aria-label":"Close",children:g.jsx(ts,{className:"h-4 w-4",strokeWidth:2.5})})]})})]})}function b6(){const A=WA(i=>i.toastMessage),t=WA(i=>i.setToastMessage),r=b.useCallback(()=>{t(null)},[t]);return b.useEffect(()=>{if(!A)return;const i=window.setTimeout(r,3e3);return()=>window.clearTimeout(i)},[A,r]),A?g.jsx(v6,{message:A,onDismiss:r}):null}const x6=Object.freeze(Object.defineProperty({__proto__:null,default:b6},Symbol.toStringTag,{value:"Module"}));function S6({className:A="",onRetry:t,showRetryButton:r,startNewConnection:i,clearError:s,error:l,isConnected:c}){const{isOnline:u}=mm(),[f,h]=b.useState(!0);return b.useEffect(()=>{if(!i&&!r&&!!l){h(!0);const w=setTimeout(()=>h(!1),5e3);return()=>clearTimeout(w)}h(!0)},[l,i,r]),i?g.jsx("div",{className:mA("flex flex-col items-center synapse-chat-widget-footer px-3 pt-3 pb-2 ",A),children:g.jsx("p",{className:"text-text-secondary text-sm max-w-sm mx-auto text-center w-250 mx-4 text-balance",children:"The conversation is now closed. Start a new session to continue."})}):r&&l?.title?g.jsx("div",{className:mA("mx-4 mb-3 p-2 bg-surface border border-[#F7B500] rounded-lg",A),children:g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"w-5 h-5 bg-[#F7B500] rounded-full flex items-center justify-center flex-shrink-0",children:g.jsx("span",{className:"text-primary-foreground text-sm font-bold",children:"!"})}),g.jsxs("div",{className:"flex-1",children:[g.jsx("div",{className:"text-text-primary font-semibold text-sm",children:l?.title}),g.jsx("div",{className:"text-text-secondary text-xs mt-1",children:l?.description??"Please check your connection and try again"})]}),g.jsxs("button",{onClick:()=>{s(),t?.()},className:"px-4 py-2 bg-primary text-primary-foreground text-sm font-semibold rounded-lg hover:bg-primary/90 transition-colors flex items-center gap-2 flex-shrink-0",children:[g.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})}),"Retry"]})]})}):c&&u&&!l?.title||!i&&!r&&!f||!c&&!l?.title?null:g.jsx("div",{className:mA("mx-4 mb-3 p-2 bg-surface border border-border-subtle rounded-lg transition-opacity duration-500",A),children:g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"w-5 h-5 bg-primary rounded-full flex items-center justify-center flex-shrink-0",children:g.jsx("span",{className:"text-primary-foreground text-sm font-bold",children:"!"})}),g.jsxs("div",{className:"flex-1",children:[g.jsx("div",{className:"text-text-primary font-semibold text-sm",children:u?l?.title:"No internet connection"}),g.jsx("div",{className:"text-text-secondary text-xs mt-1",children:u?l?.description??"Please wait while we try to connect":"Please check your internet connection"})]}),!u&&g.jsx("div",{className:"flex-shrink-0",children:g.jsx("div",{className:"w-6 h-6 border-2 border-primary border-t-transparent rounded-full animate-spin"})})]})})}const Q6=Object.freeze(Object.defineProperty({__proto__:null,ConnectionStatus:S6},Symbol.toStringTag,{value:"Module"}));function U6({text:A,maxWidth:t="200px",className:r="",icon:i,onClick:s,disabled:l=!1}){const[c,u]=b.useState(!1),f=b.useRef(null),h=b.useRef(null);return b.useEffect(()=>{const m=()=>{if(f.current&&h.current){const B=f.current.offsetWidth,w=h.current.scrollWidth;u(w>B)}};return m(),window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)},[A,t]),A?g.jsxs("div",{ref:f,onClick:l?void 0:s,className:mA("inline-flex items-center gap-2 rounded-lg border border-primary bg-elicitationBg px-3 py-2 shadow-sm text-xs text-primary cursor-pointer",r,l?"opacity-50 cursor-not-allowed":""),style:{maxWidth:t,WebkitTapHighlightColor:"transparent",outline:"none"},title:A,children:[i&&g.jsx("span",{className:"text-primary",children:i}),g.jsx("div",{className:"pill-marquee-wrapper",children:g.jsx("span",{ref:h,className:mA("block whitespace-normal",c?"pill-marquee":""),children:A})})]}):null}const F6=Object.freeze(Object.defineProperty({__proto__:null,Pills:U6},Symbol.toStringTag,{value:"Module"}));var T6=$g[" useInsertionEffect ".trim().toString()]||$n;function N6({prop:A,defaultProp:t,onChange:r=()=>{},caller:i}){const[s,l,c]=I6({defaultProp:t,onChange:r}),u=A!==void 0,f=u?A:s;{const m=b.useRef(A!==void 0);b.useEffect(()=>{const B=m.current;if(B!==u){const w=B?"controlled":"uncontrolled",C=u?"controlled":"uncontrolled"}m.current=u},[u,i])}const h=b.useCallback(m=>{if(u){const B=H6(m)?m(A):m;B!==A&&c.current?.(B)}else l(m)},[u,A,l,c]);return[f,h]}function I6({defaultProp:A,onChange:t}){const[r,i]=b.useState(A),s=b.useRef(r),l=b.useRef(t);return T6(()=>{l.current=t},[t]),b.useEffect(()=>{s.current!==r&&(l.current?.(r),s.current=r)},[r,s]),[r,i,l]}function H6(A){return typeof A=="function"}function _6(A){const t=b.useRef({value:A,previous:A});return b.useMemo(()=>(t.current.value!==A&&(t.current.previous=t.current.value,t.current.value=A),t.current.previous),[A])}function M6(A){const[t,r]=b.useState(void 0);return $n(()=>{if(A){r({width:A.offsetWidth,height:A.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const l=s[0];let c,u;if("borderBoxSize"in l){const f=l.borderBoxSize,h=Array.isArray(f)?f[0]:f;c=h.inlineSize,u=h.blockSize}else c=A.offsetWidth,u=A.offsetHeight;r({width:c,height:u})});return i.observe(A,{box:"border-box"}),()=>i.unobserve(A)}else r(void 0)},[A]),t}var Ao="Checkbox",[O6]=s0(Ao),[R6,Df]=O6(Ao);function L6(A){const{__scopeCheckbox:t,checked:r,children:i,defaultChecked:s,disabled:l,form:c,name:u,onCheckedChange:f,required:h,value:m="on",internal_do_not_use_render:B}=A,[w,C]=N6({prop:r,defaultProp:s??!1,onChange:f,caller:Ao}),[E,v]=b.useState(null),[F,Q]=b.useState(null),I=b.useRef(!1),O=E?!!c||!!E.closest("form"):!0,K={checked:w,disabled:l,setChecked:C,control:E,setControl:v,name:u,form:c,value:m,hasConsumerStoppedPropagationRef:I,required:h,defaultChecked:ar(s)?!1:s,isFormControl:O,bubbleInput:F,setBubbleInput:Q};return g.jsx(R6,{scope:t,...K,children:D6(B)?B(K):i})}var VB="CheckboxTrigger",GB=b.forwardRef(({__scopeCheckbox:A,onKeyDown:t,onClick:r,...i},s)=>{const{control:l,value:c,disabled:u,checked:f,required:h,setControl:m,setChecked:B,hasConsumerStoppedPropagationRef:w,isFormControl:C,bubbleInput:E}=Df(VB,A),v=bn(s,m),F=b.useRef(f);return b.useEffect(()=>{const Q=l?.form;if(Q){const I=()=>B(F.current);return Q.addEventListener("reset",I),()=>Q.removeEventListener("reset",I)}},[l,B]),g.jsx(Wn.button,{type:"button",role:"checkbox","aria-checked":ar(f)?"mixed":f,"aria-required":h,"data-state":qB(f),"data-disabled":u?"":void 0,disabled:u,value:c,...i,ref:v,onKeyDown:xn(t,Q=>{Q.key==="Enter"&&Q.preventDefault()}),onClick:xn(r,Q=>{B(I=>ar(I)?!0:!I),E&&C&&(w.current=Q.isPropagationStopped(),w.current||Q.stopPropagation())})})});GB.displayName=VB;var kf=b.forwardRef((A,t)=>{const{__scopeCheckbox:r,name:i,checked:s,defaultChecked:l,required:c,disabled:u,value:f,onCheckedChange:h,form:m,...B}=A;return g.jsx(L6,{__scopeCheckbox:r,checked:s,defaultChecked:l,disabled:u,required:c,onCheckedChange:h,name:i,form:m,value:f,internal_do_not_use_render:({isFormControl:w})=>g.jsxs(g.Fragment,{children:[g.jsx(GB,{...B,ref:t,__scopeCheckbox:r}),w&&g.jsx(XB,{__scopeCheckbox:r})]})})});kf.displayName=Ao;var zB="CheckboxIndicator",PB=b.forwardRef((A,t)=>{const{__scopeCheckbox:r,forceMount:i,...s}=A,l=Df(zB,r);return g.jsx(Bi,{present:i||ar(l.checked)||l.checked===!0,children:g.jsx(Wn.span,{"data-state":qB(l.checked),"data-disabled":l.disabled?"":void 0,...s,ref:t,style:{pointerEvents:"none",...A.style}})})});PB.displayName=zB;var YB="CheckboxBubbleInput",XB=b.forwardRef(({__scopeCheckbox:A,...t},r)=>{const{control:i,hasConsumerStoppedPropagationRef:s,checked:l,defaultChecked:c,required:u,disabled:f,name:h,value:m,form:B,bubbleInput:w,setBubbleInput:C}=Df(YB,A),E=bn(r,C),v=_6(l),F=M6(i);b.useEffect(()=>{const I=w;if(!I)return;const O=window.HTMLInputElement.prototype,j=Object.getOwnPropertyDescriptor(O,"checked").set,T=!s.current;if(v!==l&&j){const L=new Event("click",{bubbles:T});I.indeterminate=ar(l),j.call(I,ar(l)?!1:l),I.dispatchEvent(L)}},[w,v,l,s]);const Q=b.useRef(ar(l)?!1:l);return g.jsx(Wn.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??Q.current,required:u,disabled:f,name:h,value:m,form:B,...t,tabIndex:-1,ref:E,style:{...t.style,...F,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});XB.displayName=YB;function D6(A){return typeof A=="function"}function ar(A){return A==="indeterminate"}function qB(A){return ar(A)?"indeterminate":A?"checked":"unchecked"}const jf=b.forwardRef(({className:A,...t},r)=>g.jsx(kf,{ref:r,className:mA("grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",A),...t,children:g.jsx(PB,{className:mA("grid place-content-center text-current"),children:g.jsx(Ll,{className:"h-4 w-4"})})}));jf.displayName=kf.displayName;function k6({options:A,selectedValues:t,onSelectionChange:r,additionalOption:i,className:s,required:l=!0,maxSelections:c,disabled:u}){const f=i?{id:`extra-${i}`,label:i==="all_of_the_above"?"All of the above":"None of the above",value:i==="all_of_the_above"?"All of the above":"None of the above"}:null,h=v=>f?v.filter(F=>F!==f.value):v,m=v=>f?i==="none_of_the_above"?v?[f.value]:[]:i==="all_of_the_above"?v?[...A.map(F=>F.value),f.value]:h(t):v?[...t,f.value]:h(t):t,B=(v,F)=>{const Q=f?h(t):t;return F?c&&Q.length>=c?null:[...Q,v]:Q.filter(I=>I!==v)},w=v=>!(l&&v.length===0&&t.length===1),C=(v,F)=>{const I=f&&v===f.value?m(F):B(v,F);I!==null&&w(I)&&r(I)},E=f?t.filter(v=>v!==f.value).length:t.length;return A.length?g.jsxs("div",{className:mA(s),children:[g.jsxs("div",{className:"space-y-3",children:[A.map(v=>{const F=u||c&&E>=c&&!t.includes(v.value);let Q=t.includes(v.value);return g.jsxs("div",{className:"flex items-center space-x-3",children:[g.jsx(jf,{id:v.id,checked:Q,disabled:!!F,onCheckedChange:I=>C(v.value,!!I),className:"mt-0.5 border border-muted-foreground text-primary-foreground"}),g.jsx("label",{htmlFor:v.id,className:mA("text-sm font-normal leading-4 cursor-pointer",F?"text-muted-foreground cursor-not-allowed":Q?"text-primary":"text-secondary-foreground"),children:v.label})]},v.id)}),f&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"border-t border-border-medium my-3"}),g.jsxs("div",{className:"flex items-center space-x-3",children:[g.jsx(jf,{id:f.id,checked:t.includes(f.value),onCheckedChange:v=>C(f.value,v),className:"mt-0.5 border border-muted-foreground"}),g.jsx("label",{htmlFor:f.id,className:"text-sm font-medium leading-none cursor-pointer text-secondary-foreground",children:f.label})]})]})]}),c&&E>=c&&g.jsx("p",{className:"text-sm text-blue-600 mt-3",children:c===1?"You can select only 1 option":`Maximum ${c} selections allowed`})]}):null}const j6=Object.freeze(Object.defineProperty({__proto__:null,MultiSelectGroup:k6},Symbol.toStringTag,{value:"Module"})),JB=12,K6=.76,V6=3;function ZB({count:A,renderItem:t,className:r}){const[i,s]=b.useState(0),[l,c]=b.useState(0),[u,f]=b.useState(()=>Math.min(V6,A)),h=b.useRef(null),m=b.useRef(0),B=b.useRef(0);if(b.useEffect(()=>{f(F=>Math.max(F,Math.min(i+2,A)))},[i,A]),b.useLayoutEffect(()=>{const F=h.current;if(!F)return;c(F.clientWidth);const Q=new ResizeObserver(([I])=>c(I.contentRect.width));return Q.observe(F),()=>Q.disconnect()},[]),A===0)return null;const w=F=>s(Math.max(0,Math.min(A-1,F)));if(A===1)return g.jsx("div",{className:r??"mt-3",children:t(0,!0)});const C=l*K6,E=(l-C)/2,v=l>0?E-i*(C+JB):0;return g.jsx("div",{ref:h,className:mA("mt-3 w-full",r),children:l>0&&g.jsxs("div",{className:"relative w-full",children:[g.jsx("div",{className:"w-full overflow-hidden py-3",onTouchStart:F=>{m.current=F.touches[0].clientX,B.current=F.touches[0].clientY},onTouchEnd:F=>{const Q=F.changedTouches[0].clientX-m.current,I=F.changedTouches[0].clientY-B.current;Math.abs(Q)>Math.abs(I)&&Math.abs(Q)>50&&w(i+(Q<0?1:-1))},children:g.jsx("div",{className:"flex items-center",style:{transform:`translateX(${v}px)`,transition:"transform 400ms cubic-bezier(0.4, 0, 0.2, 1)",gap:`${JB}px`},"aria-live":"polite",children:Array.from({length:u},(F,Q)=>{const I=Q===i;return g.jsx("div",{"aria-hidden":!I,style:{flex:`0 0 ${C}px`,position:"relative",opacity:I?1:.6,transform:I?"scale(1.05)":"scale(0.9)",zIndex:I?20:10,transition:"all 400ms cubic-bezier(0.4, 0, 0.2, 1)",borderRadius:12},children:t(Q,I)},Q)})})}),i>0&&g.jsx("button",{type:"button","aria-label":"Previous",onClick:()=>w(i-1),className:"absolute left-0 top-1/2 -translate-y-1/2 z-10 h-10 w-10 p-2 flex items-center justify-center rounded-full bg-background/90 shadow-md border border-primary text-primary hover:bg-muted transition-colors",children:g.jsx(Dp,{size:18})}),i<A-1&&g.jsx("button",{type:"button","aria-label":"Next",onClick:()=>w(i+1),className:"absolute right-0 top-1/2 -translate-y-1/2 z-10 h-10 w-10 p-2 flex items-center justify-center rounded-full bg-background/90 shadow-md border border-primary text-primary hover:bg-muted transition-colors",children:g.jsx(kp,{size:18})})]})})}const G6=Object.freeze(Object.defineProperty({__proto__:null,FocusCarousel:ZB},Symbol.toStringTag,{value:"Module"}));function z6({value:A,onValueChange:t,placeholder:r="Select an option",className:i,triggerClassName:s,contentClassName:l,disabled:c=!1,options:u=[],size:f="default",icon:h}){const[m,B]=b.useState(!1),w=b.useRef(null),C=b.useRef(null),E=u.find(Q=>Q.value===A);b.useEffect(()=>{const Q=I=>{m&&I.key==="Escape"&&(B(!1),C.current?.focus())};return document.addEventListener("keydown",Q),()=>{document.removeEventListener("keydown",Q)}},[m]);const v=Q=>{t?.(Q),B(!1),C.current?.focus()},F=()=>{c||B(!m)};return g.jsxs("div",{className:mA("relative w-full",i),children:[g.jsxs("button",{ref:C,type:"button",onClick:F,disabled:c,className:mA('border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*="text-"])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-full items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 overflow-hidden',f==="default"?"min-h-9":"min-h-8",s),"aria-expanded":m,"aria-haspopup":"listbox",children:[h,g.jsx("span",{className:mA("flex-1 text-left min-w-0 overflow-hidden break-words line-clamp-2",!E&&"text-muted-foreground"),children:E?E.label:r}),g.jsx(es,{className:mA("size-4 opacity-50 pointer-events-none shrink-0 transition-transform duration-200",m&&"rotate-180")})]}),m&&g.jsx("div",{ref:w,className:mA("bg-surface text-foreground animate-in fade-in-0 zoom-in-95 slide-in-from-top-2 relative z-50 max-h-[136px] min-w-[8rem] w-full overflow-x-hidden overflow-y-auto overscroll-contain rounded-md shadow-md mt-1",l),role:"listbox",children:g.jsx("div",{className:"p-1",children:u.length===0?g.jsx("div",{className:"px-3 py-2 text-sm text-muted-foreground text-center",children:"No options available"}):u.map(Q=>{const I=Q.value===A;return g.jsxs("div",{onClick:()=>v(Q.value),className:mA("relative flex w-full cursor-pointer items-center gap-1 rounded-sm py-2.5 px-3 text-sm outline-none select-none transition-colors duration-150","hover:bg-accent hover:text-accent-foreground","focus-visible:bg-accent focus-visible:text-accent-foreground","active:bg-accent/80",I&&"bg-accent/50 text-foreground",c&&"pointer-events-none opacity-50 cursor-not-allowed"),role:"option","aria-selected":I,tabIndex:c?-1:0,onKeyDown:O=>{(O.key==="Enter"||O.key===" ")&&(O.preventDefault(),c||v(Q.value))},children:[g.jsx("span",{className:"flex-1 text-left min-w-0 break-words line-clamp-2",children:Q.label}),I&&g.jsx("span",{className:"absolute right-3 flex size-4 items-center justify-center shrink-0 pointer-events-none",children:g.jsx(Ll,{className:"size-4 text-foreground"})})]},Q.value)})})})]})}function P6({doctor:A,doctorDetails:t,onSelect:r,disabled:i,isActive:s=!0}){const l=b.useMemo(()=>{if(t?.hospitals?.[0]?.hospital_id)return t?.hospitals?.[0]?.hospital_id},[t?.hospitals]),[c,u]=b.useState(l),[f,h]=b.useState(!1),[m,B]=b.useState(null),[w,C]=b.useState(null),[E,v]=b.useState(0),[F,Q]=b.useState(!1),[I,O]=b.useState(!1),[K,j]=b.useState(!1),[T,L]=b.useState(!1),R=b.useRef(!1),_=b.useRef(null);b.useEffect(()=>{u(l)},[l]);const X=A.availability??[],nA=b.useCallback(async()=>{if(!K&&(O(!0),!X.length&&r&&t)){j(!0);try{await r({...A,hospital_id:c})}finally{j(!1)}}},[I,K,r,t,X.length,c]),z=b.useCallback(U=>{t&&(u(U),B(null),C(null),v(0),R.current=!1,r?.({...A,hospital_id:U}))},[A,r,t]);b.useEffect(()=>{s||O(!1)},[s]),b.useEffect(()=>{if(!I||!X.length||R.current)return;R.current=!0;const U=A.preferred_date||X[0]?.date;U&&(B(S=>S??U),X.find(S=>S.date===U)?.slots?.length||r?.({...A,hospital_id:c,preferred_date:U}))},[X,I]);const lA=b.useMemo(()=>X.find(U=>U.date===m)?.slots??[],[X,m]);b.useLayoutEffect(()=>{const U=_.current;U&&(U.scrollTop=0,L(U.scrollHeight>U.clientHeight+2))},[m,lA.length]);const Z=b.useCallback(()=>{const U=_.current;U&&L(U.scrollTop+U.clientHeight<U.scrollHeight-4)},[]),eA=()=>{_.current?.scrollBy({top:120,behavior:"smooth"})},D=b.useMemo(()=>{if(!X.length)return[];const U=Math.min(E+3,X.length);return X.slice(E,U).map(M=>{if(M.date)return{...M,...Cx(M.date)}})},[X,E]),W=E>0,AA=E<Math.max(0,(X||[]).length-3),gA=b.useCallback(async U=>{B(U),C(null);const M=X.find(S=>S.date===U);if(!(M?.slots?.length||Array.isArray(M?.slots)&&M?.slots.length===0)){h(!0);try{await r?.({...A,hospital_id:c,preferred_date:U})}catch{}finally{h(!1)}}},[A,c,r,X]),N=()=>{if(!w||!m||F)return;Q(!0);const U=A.cta?.text;r?.({...A,hospital_id:c,preferred_date:m,preferred_slot_time:w},`${U||`I want to book an appointment with Dr. ${t?.name}`} on ${m} at ${w}.`,A.cta?.tool_result)};return t?g.jsxs(Pr,{className:"max-w-md rounded-xl border border-black-200 dark:border-white-200 shadow-none p-0 bg-elicitationBg overflow-hidden",children:[g.jsxs(Du,{className:"flex flex-row items-center gap-3 bg-primary/[20%] rounded-t-xl p-2 border-b border-border-subtle overflow-hidden",children:[g.jsxs(Gu,{className:"h-12 w-12 ring-2 ring-primary/20 flex-shrink-0",children:[t.profile_pic&&g.jsx(om,{src:t.profile_pic,alt:`${t.name} profile photo`,crossOrigin:"anonymous"}),g.jsx(zu,{className:"bg-secondary text-primary",children:Bx(t.name)})]}),g.jsxs("div",{className:"min-w-0",children:[g.jsxs("div",{className:"flex flex-wrap items-baseline gap-2",children:[g.jsx("h3",{className:"text-base font-bold text-slate-900",children:t.name}),t.profile_link&&g.jsx("a",{href:t.profile_link,target:"_blank",rel:"noreferrer","aria-label":"View profile",className:"text-primary hover:text-primary/70 transition-colors",children:g.jsx(lb,{className:"h-3.5 w-3.5","aria-hidden":!0})})]}),g.jsxs("p",{className:"mt-0.5 text-xs text-slate-600 line-clamp-1",children:[t.specialty,t.experience&&g.jsxs(g.Fragment,{children:[" • ",t.experience]})]})]})]}),g.jsxs(kl,{className:"p-3",children:[g.jsxs("div",{className:"grid gap-2 pb-2 border-b border-border-subtle",children:[t.timings&&g.jsxs("div",{className:"flex items-start gap-2 min-w-0",children:[g.jsx(rb,{className:"h-3.5 w-3.5 text-primary mt-0.5 flex-shrink-0","aria-hidden":!0}),g.jsx("span",{className:"text-text-secondary text-xs line-clamp-1 min-w-0",children:t.timings})]}),t.languages&&g.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[g.jsx(ub,{className:"h-3.5 w-3.5 text-primary flex-shrink-0","aria-hidden":!0}),g.jsx("span",{className:"text-text-secondary text-xs line-clamp-1 min-w-0",children:t.languages})]}),t.hospitals?.length>1&&c?g.jsx(z6,{options:t.hospitals.map(U=>({value:U.hospital_id,label:U.name||""})),placeholder:"Select Hospital",disabled:i,onValueChange:z,value:c,triggerClassName:"h-8 text-xs px-3 rounded-lg border-border text-primary font-medium",icon:g.jsx(Dl,{className:"h-3.5 w-3.5 text-primary flex-shrink-0","aria-hidden":!0})}):g.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[g.jsx(Dl,{className:"h-3.5 w-3.5 text-primary flex-shrink-0","aria-hidden":!0}),g.jsx("span",{className:"text-text-secondary text-xs line-clamp-1 min-w-0",children:t.hospitals?.[0]?.name||""})]})]}),I?K?g.jsx("p",{className:"pt-3 text-sm text-text-secondary text-center",children:"Loading..."}):X.length>0?g.jsxs("div",{className:"pt-3",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(VA,{type:"button",variant:"outline",size:"icon",onClick:()=>{v(U=>Math.max(0,U-3)),C(null)},disabled:i||!W,"aria-label":"Previous 3 days",className:"h-8 w-8 flex-shrink-0 rounded-md border-primary/20 bg-surface text-primary hover:bg-surface-secondary disabled:opacity-50",children:g.jsx(Dp,{className:"h-4 w-4"})}),g.jsx("div",{className:"flex-1 grid grid-cols-3 gap-1 min-w-0",children:D.map((U,M)=>{if(!U||!U.date)return null;const S=m===U.date,aA=(U?.slots||[]).length>0;return g.jsxs(VA,{type:"button",variant:"outline",onClick:()=>U.date&&gA(U.date),disabled:i,"aria-current":S?"date":void 0,className:mA("flex flex-col items-center justify-center h-12 rounded-lg border-2 p-2 gap-0.5 min-w-0 transition-all",S?"border-primary border-2 ring-2 ring-primary/20 bg-primary/[20%] shadow-sm hover:text-accent-foreground":aA?"border-primary/30 bg-elicitationBg hover:bg-primary/10 hover:text-accent-foreground hover:border-primary/40":"border-border bg-elicitationBg opacity-60 hover:bg-primary/10 hover:text-accent-foreground hover:border-primary/30"),children:[g.jsx("span",{className:mA("text-[10px] tracking-wide w-full text-center font-medium"),children:U.weekday}),g.jsx("span",{className:mA("text-xs font-bold w-full text-center"),children:U.dayNum})]},`${U.date}-${M}`)})}),g.jsx(VA,{type:"button",variant:"outline",size:"icon",onClick:()=>{v(U=>Math.min(Math.max(0,X.length-3),U+3)),C(null)},disabled:i||!AA,"aria-label":"Next 3 days",className:"h-8 w-8 flex-shrink-0 rounded-md border-primary/20 bg-surface text-primary hover:bg-surface-secondary disabled:opacity-50",children:g.jsx(kp,{className:"h-4 w-4"})})]}),m&&g.jsx("div",{className:"mt-2",children:lA.length>0?g.jsxs("div",{className:"relative",children:[g.jsx("div",{ref:_,onScroll:Z,className:"grid grid-cols-3 gap-2 overflow-y-auto overscroll-contain",style:{maxHeight:"108px"},children:lA.map((U,M)=>{if(!U)return null;const S=w===U;return g.jsx(VA,{type:"button",variant:"outline",onClick:()=>C(U),"aria-pressed":S,disabled:i,className:mA("h-9 rounded-lg px-2 text-xs font-medium transition-all",S?"border-primary bg-primary/20 text-primary shadow-sm hover:bg-primary/10":"border-border bg-elicitationBg text-text-primary hover:bg-primary/10 hover:border-primary/30"),children:g.jsx("span",{children:U})},U||`slot-${M}`)})}),T&&g.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-12 bg-gradient-to-t from-elicitationBg via-elicitationBg to-transparent pointer-events-none flex items-end justify-center pb-1",children:g.jsxs("button",{type:"button",onClick:eA,className:"pointer-events-auto flex items-center gap-1 text-xs font-semibold text-primary hover:text-primary/80 transition-colors",children:[g.jsx(es,{className:"h-3.5 w-3.5","aria-hidden":!0}),"More slots"]})})]}):f?g.jsx("p",{className:"text-sm text-text-secondary px-1",children:"Fetching slots..."}):g.jsx("p",{className:"text-sm text-text-secondary px-1",children:"No slots available."})}),g.jsxs(VA,{type:"button",onClick:N,disabled:!w||i||F,"aria-disabled":!w||F,className:`w-full h-10 gap-2 bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-60 shadow-sm font-semibold ${T?"":" mt-2"}`,children:[A.cta?.title||"Book appointment",g.jsx(eb,{className:"h-4 w-4","aria-hidden":!0})]})]}):g.jsx("p",{className:"pt-3 text-sm text-text-secondary text-center",children:"No slots available."}):g.jsx("div",{className:"pt-3",children:g.jsxs(VA,{type:"button",variant:"outline",onClick:nA,disabled:i||K,className:"w-full h-8 gap-1.5 text-xs border-primary/40 text-primary hover:bg-primary/10 disabled:opacity-60 font-medium rounded-lg",children:[K?"Loading...":"Show available slots",g.jsx(es,{className:"h-3.5 w-3.5","aria-hidden":!0})]})})]})]}):null}const Y6=Object.freeze(Object.defineProperty({__proto__:null,DoctorCard:P6},Symbol.toStringTag,{value:"Module"})),X6={voucher:yb,pharmacy:Lp,hospital:Lp,map:hb,location_pin:Dl,"location pin":Dl,check:Ll,calendar:tb,rupee:cb,dollar:ib,euro:sb};function eo({name:A,className:t,size:r=16}){const i=A?.trim().toLowerCase().replace(/\s+/g,"_");if(!i)return null;const s=X6[i];if(s)return g.jsx(s,{className:t,size:r,"aria-hidden":!0})}function WB({card:A,onSelect:t,disabled:r=!1}){const{title:i,tags:s,icon:l,img:c,description:u,banner_text:f,items:h,primary_cta:m,secondary_cta:B}=A,w=E=>{if(!r&&(E.link&&window.open(E.link,"_blank","noopener,noreferrer"),E.text||E.title)){let v=!1;A?.primary_cta?.tool_result&&(v=!0),t?.({message:E.text||E.title,selectedCard:A?.title,selectedComponent:A,selected_id:A.card_id,...v?{tool_result:A.primary_cta?.tool_result}:{}})}},C=!!c;return g.jsxs(Pr,{className:"w-full h-full flex flex-col overflow-hidden rounded-xl border border-black-200 dark:border-white-200 bg-elicitationBg text-card-foreground shadow-none",children:[g.jsxs(Du,{className:`flex flex-row items-center justify-between gap-3 p-3 ${C?"bg-primary/[20%]":""}`,children:[g.jsxs("div",{className:"min-w-0 flex-1 overflow-hidden",children:[i?g.jsx(qp,{className:"text-base font-bold leading-tight tracking-tight truncate",children:i}):null,s?g.jsx("p",{className:"mt-1 text-sm text-muted-foreground truncate",children:s}):null]}),C?g.jsx("div",{className:"shrink-0",children:g.jsx("img",{src:c,alt:i??"profile",className:"h-16 w-16 rounded-full object-cover border-2 border-background"})}):l?g.jsx("div",{className:"shrink-0 text-muted-foreground",children:g.jsx(eo,{name:l,size:24,className:"text-primary"})}):null]}),g.jsxs(kl,{className:"flex-1 space-y-3 pt-3 overflow-hidden",children:[u?g.jsx("div",{className:"text-sm text-foreground leading-snug prose prose-sm max-w-none prose-strong:font-semibold prose-p:my-0 break-words",children:g.jsx(Lf,{children:u})}):null,f?g.jsx("div",{className:"rounded-full px-4 py-2 text-center text-sm font-semibold bg-primary/15 text-primary truncate",children:f}):null,h?.length?g.jsx("div",{className:"flex flex-col gap-y-1",children:h.map((E,v)=>g.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-foreground min-w-0",children:[E.icon?g.jsx(eo,{name:E.icon,size:12,className:"shrink-0 text-muted-foreground"}):null,g.jsx("span",{className:"truncate",children:E.text})]},v))}):null]}),m?.title||B?.title?g.jsxs(Jp,{className:"flex justify-center flex-wrap gap-2 pt-0",children:[m&&g.jsxs(VA,{type:"button",variant:"default",size:"sm",className:`gap-1.5 truncate ${B?"":"w-full"}`,disabled:r,onClick:()=>w(m),children:[m.icon?g.jsx(eo,{name:m.icon,size:14,className:"shrink-0"}):null,g.jsx("span",{className:"truncate",children:m.title})]}),B&&g.jsxs(VA,{type:"button",variant:"outline",size:"sm",className:"gap-1.5 truncate",disabled:r,onClick:()=>w(B),children:[B.icon?g.jsx(eo,{name:B.icon,size:14,className:"shrink-0"}):null,g.jsx("span",{className:"truncate",children:B.title})]})]}):null]})}function q6({cards:A,onSelect:t,disabled:r=!1,className:i,orientation:s="vertical"}){const[l,c]=b.useState(!1),u=b.useRef(!1);if(!A?.length)return g.jsx("p",{className:"text-sm text-muted-foreground py-2",children:"No options available."});const f=async h=>{u.current||(u.current=!0,c(!0),await t?.(h))};return s!=="horizontal"?g.jsx("div",{className:i??"flex flex-col gap-3 mt-3",children:A.map((h,m)=>g.jsx(WB,{card:h,onSelect:f,disabled:r||l},h.card_id||m))}):g.jsx(ZB,{count:A.length,renderItem:h=>g.jsx(WB,{card:A[h],onSelect:f,disabled:r||l})})}const J6=Object.freeze(Object.defineProperty({__proto__:null,CardList:q6},Symbol.toStringTag,{value:"Module"}));function $B(A){return A.toLowerCase().endsWith(".pdf")}function Z6(A){const t=document?.createElement("a");t.href=A,t.download=A.split("/").pop()??"download.pdf",t.target="_blank",t.click(),document?.body?.removeChild(t)}async function W6(A){if(!A.current)return;const t=(await Promise.resolve().then(()=>tw)).default,r=await t(A.current,{useCORS:!0}),i=document.createElement("a");i.href=r.toDataURL("image/png"),i.download="card.png",i.click()}async function $6(A){if(!A.current)return;const t=(await Promise.resolve().then(()=>tw)).default,r=await t(A.current,{useCORS:!0}),i=document.createElement("a");i.href=r.toDataURL("image/png"),i.download=`screenshot-${Date.now()}.png`,i.click()}function A5({card:A}){const{title:t,description:r,tags_text:i,banner_text:s,action:l,link:c}=A,u=b.useRef(null),f=c&&!$B(c),h=()=>{l==="screenshot"?$6(u):l==="download"&&(c&&$B(c)?Z6(c):W6(u))};return g.jsxs("div",{className:"flex flex-col gap-2",children:[g.jsx(Pr,{ref:u,className:"overflow-hidden rounded-xl border border-border bg-elicitationBg text-card-foreground shadow-sm",children:g.jsxs(kl,{className:"p-3 space-y-2",children:[g.jsxs("div",{className:`flex items-start gap-3 ${f?"justify-between":"justify-center"}`,children:[g.jsxs("div",{className:`space-y-2 ${f?"min-w-0 flex-1":"flex flex-col items-center"}`,children:[t&&g.jsx("span",{className:"inline-block rounded-full px-3 py-1 text-sm font-semibold bg-primary text-primary-foreground",children:t}),r&&g.jsx("p",{className:`text-sm text-foreground leading-snug ${f?"":"text-center"}`,children:r}),s&&g.jsx("span",{className:"inline-block rounded-full px-3 py-1 text-xs font-semibold bg-green-600 text-white",children:s})]}),f&&g.jsx("div",{className:"shrink-0 h-24 w-24 rounded-lg overflow-hidden border border-border",children:g.jsx("img",{src:c,alt:t??"media",className:"h-full w-full object-cover"})})]}),i&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"border-t border-border"}),g.jsx("p",{className:"text-xs text-muted-foreground",children:i})]})]})}),l&&g.jsx("div",{className:"flex justify-end",children:g.jsxs(VA,{type:"button",variant:"outline",size:"sm",className:"rounded-md px-5 gap-1.5",onClick:h,children:[l==="screenshot"?g.jsx(nb,{className:"h-4 w-4"}):g.jsx(ab,{className:"h-4 w-4"}),l==="screenshot"?"Screenshot":"Download"]})})]})}const e5=Object.freeze(Object.defineProperty({__proto__:null,MediaCard:A5},Symbol.toStringTag,{value:"Module"}));var Kf=function(A,t){return Kf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},Kf(A,t)};function nn(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Kf(A,t);function r(){this.constructor=A}A.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Vf=function(){return Vf=Object.assign||function(t){for(var r,i=1,s=arguments.length;i<s;i++){r=arguments[i];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(t[l]=r[l])}return t},Vf.apply(this,arguments)};function lt(A,t,r,i){function s(l){return l instanceof r?l:new r(function(c){c(l)})}return new(r||(r=Promise))(function(l,c){function u(m){try{h(i.next(m))}catch(B){c(B)}}function f(m){try{h(i.throw(m))}catch(B){c(B)}}function h(m){m.done?l(m.value):s(m.value).then(u,f)}h((i=i.apply(A,[])).next())})}function at(A,t){var r={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},i,s,l,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(h){return function(m){return f([h,m])}}function f(h){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,s&&(l=h[0]&2?s.return:h[0]?s.throw||((l=s.return)&&l.call(s),0):s.next)&&!(l=l.call(s,h[1])).done)return l;switch(s=0,l&&(h=[h[0]&2,l.value]),h[0]){case 0:case 1:l=h;break;case 4:return r.label++,{value:h[1],done:!1};case 5:r.label++,s=h[1],h=[0];continue;case 7:h=r.ops.pop(),r.trys.pop();continue;default:if(l=r.trys,!(l=l.length>0&&l[l.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!l||h[1]>l[0]&&h[1]<l[3])){r.label=h[1];break}if(h[0]===6&&r.label<l[1]){r.label=l[1],l=h;break}if(l&&r.label<l[2]){r.label=l[2],r.ops.push(h);break}l[2]&&r.ops.pop(),r.trys.pop();continue}h=t.call(A,r)}catch(m){h=[6,m],s=0}finally{i=l=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}}function IH(A,t,r){if(arguments.length===2)for(var i=0,s=t.length,l;i<s;i++)(l||!(i in t))&&(l||(l=Array.prototype.slice.call(t,0,i)),l[i]=t[i]);return A.concat(l||t)}for(var Qn=(function(){function A(t,r,i,s){this.left=t,this.top=r,this.width=i,this.height=s}return A.prototype.add=function(t,r,i,s){return new A(this.left+t,this.top+r,this.width+i,this.height+s)},A.fromClientRect=function(t,r){return new A(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height)},A.fromDOMRectList=function(t,r){var i=Array.from(r).find(function(s){return s.width!==0});return i?new A(i.left+t.windowBounds.left,i.top+t.windowBounds.top,i.width,i.height):A.EMPTY},A.EMPTY=new A(0,0,0,0),A})(),to=function(A,t){return Qn.fromClientRect(A,t.getBoundingClientRect())},t5=function(A){var t=A.body,r=A.documentElement;if(!t||!r)throw new Error("Unable to get document size");var i=Math.max(Math.max(t.scrollWidth,r.scrollWidth),Math.max(t.offsetWidth,r.offsetWidth),Math.max(t.clientWidth,r.clientWidth)),s=Math.max(Math.max(t.scrollHeight,r.scrollHeight),Math.max(t.offsetHeight,r.offsetHeight),Math.max(t.clientHeight,r.clientHeight));return new Qn(0,0,i,s)},no=function(A){for(var t=[],r=0,i=A.length;r<i;){var s=A.charCodeAt(r++);if(s>=55296&&s<=56319&&r<i){var l=A.charCodeAt(r++);(l&64512)===56320?t.push(((s&1023)<<10)+(l&1023)+65536):(t.push(s),r--)}else t.push(s)}return t},Ue=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var r=A.length;if(!r)return"";for(var i=[],s=-1,l="";++s<r;){var c=A[s];c<=65535?i.push(c):(c-=65536,i.push((c>>10)+55296,c%1024+56320)),(s+1===r||i.length>16384)&&(l+=String.fromCharCode.apply(String,i),i.length=0)}return l},A1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n5=typeof Uint8Array>"u"?[]:new Uint8Array(256),ro=0;ro<A1.length;ro++)n5[A1.charCodeAt(ro)]=ro;for(var e1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hs=typeof Uint8Array>"u"?[]:new Uint8Array(256),io=0;io<e1.length;io++)hs[e1.charCodeAt(io)]=io;for(var r5=function(A){var t=A.length*.75,r=A.length,i,s=0,l,c,u,f;A[A.length-1]==="="&&(t--,A[A.length-2]==="="&&t--);var h=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),m=Array.isArray(h)?h:new Uint8Array(h);for(i=0;i<r;i+=4)l=hs[A.charCodeAt(i)],c=hs[A.charCodeAt(i+1)],u=hs[A.charCodeAt(i+2)],f=hs[A.charCodeAt(i+3)],m[s++]=l<<2|c>>4,m[s++]=(c&15)<<4|u>>2,m[s++]=(u&3)<<6|f&63;return h},i5=function(A){for(var t=A.length,r=[],i=0;i<t;i+=2)r.push(A[i+1]<<8|A[i]);return r},a5=function(A){for(var t=A.length,r=[],i=0;i<t;i+=4)r.push(A[i+3]<<24|A[i+2]<<16|A[i+1]<<8|A[i]);return r},Xr=5,Gf=11,zf=2,s5=Gf-Xr,t1=65536>>Xr,l5=1<<Xr,Pf=l5-1,o5=1024>>Xr,c5=t1+o5,u5=c5,f5=32,d5=u5+f5,h5=65536>>Gf,g5=1<<s5,p5=g5-1,n1=function(A,t,r){return A.slice?A.slice(t,r):new Uint16Array(Array.prototype.slice.call(A,t,r))},m5=function(A,t,r){return A.slice?A.slice(t,r):new Uint32Array(Array.prototype.slice.call(A,t,r))},B5=function(A,t){var r=r5(A),i=Array.isArray(r)?a5(r):new Uint32Array(r),s=Array.isArray(r)?i5(r):new Uint16Array(r),l=24,c=n1(s,l/2,i[4]/2),u=i[5]===2?n1(s,(l+i[4])/2):m5(i,Math.ceil((l+i[4])/4));return new C5(i[0],i[1],i[2],i[3],c,u)},C5=(function(){function A(t,r,i,s,l,c){this.initialValue=t,this.errorValue=r,this.highStart=i,this.highValueIndex=s,this.index=l,this.data=c}return A.prototype.get=function(t){var r;if(t>=0){if(t<55296||t>56319&&t<=65535)return r=this.index[t>>Xr],r=(r<<zf)+(t&Pf),this.data[r];if(t<=65535)return r=this.index[t1+(t-55296>>Xr)],r=(r<<zf)+(t&Pf),this.data[r];if(t<this.highStart)return r=d5-h5+(t>>Gf),r=this.index[r],r+=t>>Xr&p5,r=this.index[r],r=(r<<zf)+(t&Pf),this.data[r];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),r1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",w5=typeof Uint8Array>"u"?[]:new Uint8Array(256),ao=0;ao<r1.length;ao++)w5[r1.charCodeAt(ao)]=ao;var y5="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",i1=50,E5=1,a1=2,s1=3,v5=4,b5=5,l1=7,o1=8,c1=9,sr=10,Yf=11,u1=12,Xf=13,x5=14,gs=15,qf=16,so=17,ps=18,S5=19,f1=20,Jf=21,ms=22,Zf=23,Ni=24,Qt=25,Bs=26,Cs=27,Ii=28,Q5=29,qr=30,U5=31,lo=32,oo=33,Wf=34,$f=35,Ad=36,ws=37,ed=38,co=39,uo=40,td=41,d1=42,F5=43,T5=[9001,65288],h1="!",PA="×",fo="÷",nd=B5(y5),Un=[qr,Ad],rd=[E5,a1,s1,b5],g1=[sr,o1],p1=[Cs,Bs],N5=rd.concat(g1),m1=[ed,co,uo,Wf,$f],I5=[gs,Xf],H5=function(A,t){t===void 0&&(t="strict");var r=[],i=[],s=[];return A.forEach(function(l,c){var u=nd.get(l);if(u>i1?(s.push(!0),u-=i1):s.push(!1),["normal","auto","loose"].indexOf(t)!==-1&&[8208,8211,12316,12448].indexOf(l)!==-1)return i.push(c),r.push(qf);if(u===v5||u===Yf){if(c===0)return i.push(c),r.push(qr);var f=r[c-1];return N5.indexOf(f)===-1?(i.push(i[c-1]),r.push(f)):(i.push(c),r.push(qr))}if(i.push(c),u===U5)return r.push(t==="strict"?Jf:ws);if(u===d1||u===Q5)return r.push(qr);if(u===F5)return l>=131072&&l<=196605||l>=196608&&l<=262141?r.push(ws):r.push(qr);r.push(u)}),[i,r,s]},id=function(A,t,r,i){var s=i[r];if(Array.isArray(A)?A.indexOf(s)!==-1:A===s)for(var l=r;l<=i.length;){l++;var c=i[l];if(c===t)return!0;if(c!==sr)break}if(s===sr)for(var l=r;l>0;){l--;var u=i[l];if(Array.isArray(A)?A.indexOf(u)!==-1:A===u)for(var f=r;f<=i.length;){f++;var c=i[f];if(c===t)return!0;if(c!==sr)break}if(u!==sr)break}return!1},B1=function(A,t){for(var r=A;r>=0;){var i=t[r];if(i===sr)r--;else return i}return 0},_5=function(A,t,r,i,s){if(r[i]===0)return PA;var l=i-1;if(Array.isArray(s)&&s[l]===!0)return PA;var c=l-1,u=l+1,f=t[l],h=c>=0?t[c]:0,m=t[u];if(f===a1&&m===s1)return PA;if(rd.indexOf(f)!==-1)return h1;if(rd.indexOf(m)!==-1||g1.indexOf(m)!==-1)return PA;if(B1(l,t)===o1)return fo;if(nd.get(A[l])===Yf||(f===lo||f===oo)&&nd.get(A[u])===Yf||f===l1||m===l1||f===c1||[sr,Xf,gs].indexOf(f)===-1&&m===c1||[so,ps,S5,Ni,Ii].indexOf(m)!==-1||B1(l,t)===ms||id(Zf,ms,l,t)||id([so,ps],Jf,l,t)||id(u1,u1,l,t))return PA;if(f===sr)return fo;if(f===Zf||m===Zf)return PA;if(m===qf||f===qf)return fo;if([Xf,gs,Jf].indexOf(m)!==-1||f===x5||h===Ad&&I5.indexOf(f)!==-1||f===Ii&&m===Ad||m===f1||Un.indexOf(m)!==-1&&f===Qt||Un.indexOf(f)!==-1&&m===Qt||f===Cs&&[ws,lo,oo].indexOf(m)!==-1||[ws,lo,oo].indexOf(f)!==-1&&m===Bs||Un.indexOf(f)!==-1&&p1.indexOf(m)!==-1||p1.indexOf(f)!==-1&&Un.indexOf(m)!==-1||[Cs,Bs].indexOf(f)!==-1&&(m===Qt||[ms,gs].indexOf(m)!==-1&&t[u+1]===Qt)||[ms,gs].indexOf(f)!==-1&&m===Qt||f===Qt&&[Qt,Ii,Ni].indexOf(m)!==-1)return PA;if([Qt,Ii,Ni,so,ps].indexOf(m)!==-1)for(var B=l;B>=0;){var w=t[B];if(w===Qt)return PA;if([Ii,Ni].indexOf(w)!==-1)B--;else break}if([Cs,Bs].indexOf(m)!==-1)for(var B=[so,ps].indexOf(f)!==-1?c:l;B>=0;){var w=t[B];if(w===Qt)return PA;if([Ii,Ni].indexOf(w)!==-1)B--;else break}if(ed===f&&[ed,co,Wf,$f].indexOf(m)!==-1||[co,Wf].indexOf(f)!==-1&&[co,uo].indexOf(m)!==-1||[uo,$f].indexOf(f)!==-1&&m===uo||m1.indexOf(f)!==-1&&[f1,Bs].indexOf(m)!==-1||m1.indexOf(m)!==-1&&f===Cs||Un.indexOf(f)!==-1&&Un.indexOf(m)!==-1||f===Ni&&Un.indexOf(m)!==-1||Un.concat(Qt).indexOf(f)!==-1&&m===ms&&T5.indexOf(A[u])===-1||Un.concat(Qt).indexOf(m)!==-1&&f===ps)return PA;if(f===td&&m===td){for(var C=r[l],E=1;C>0&&(C--,t[C]===td);)E++;if(E%2!==0)return PA}return f===lo&&m===oo?PA:fo},M5=function(A,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var r=H5(A,t.lineBreak),i=r[0],s=r[1],l=r[2];(t.wordBreak==="break-all"||t.wordBreak==="break-word")&&(s=s.map(function(u){return[Qt,qr,d1].indexOf(u)!==-1?ws:u}));var c=t.wordBreak==="keep-all"?l.map(function(u,f){return u&&A[f]>=19968&&A[f]<=40959}):void 0;return[i,s,c]},O5=(function(){function A(t,r,i,s){this.codePoints=t,this.required=r===h1,this.start=i,this.end=s}return A.prototype.slice=function(){return Ue.apply(void 0,this.codePoints.slice(this.start,this.end))},A})(),R5=function(A,t){var r=no(A),i=M5(r,t),s=i[0],l=i[1],c=i[2],u=r.length,f=0,h=0;return{next:function(){if(h>=u)return{done:!0,value:null};for(var m=PA;h<u&&(m=_5(r,l,s,++h,c))===PA;);if(m!==PA||h===u){var B=new O5(r,m,f,h);return f=h,{value:B,done:!1}}return{done:!0,value:null}}}},L5=1,D5=2,ys=4,C1=8,ho=10,w1=47,Es=92,k5=9,j5=32,go=34,vs=61,K5=35,V5=36,G5=37,po=39,mo=40,bs=41,z5=95,ht=45,P5=33,Y5=60,X5=62,q5=64,J5=91,Z5=93,W5=61,$5=123,Bo=63,AF=125,y1=124,eF=126,tF=128,E1=65533,ad=42,Jr=43,nF=44,rF=58,iF=59,xs=46,aF=0,sF=8,lF=11,oF=14,cF=31,uF=127,pn=-1,v1=48,b1=97,x1=101,fF=102,dF=117,hF=122,S1=65,Q1=69,U1=70,gF=85,pF=90,st=function(A){return A>=v1&&A<=57},mF=function(A){return A>=55296&&A<=57343},Hi=function(A){return st(A)||A>=S1&&A<=U1||A>=b1&&A<=fF},BF=function(A){return A>=b1&&A<=hF},CF=function(A){return A>=S1&&A<=pF},wF=function(A){return BF(A)||CF(A)},yF=function(A){return A>=tF},Co=function(A){return A===ho||A===k5||A===j5},wo=function(A){return wF(A)||yF(A)||A===z5},F1=function(A){return wo(A)||st(A)||A===ht},EF=function(A){return A>=aF&&A<=sF||A===lF||A>=oF&&A<=cF||A===uF},lr=function(A,t){return A!==Es?!1:t!==ho},yo=function(A,t,r){return A===ht?wo(t)||lr(t,r):wo(A)?!0:!!(A===Es&&lr(A,t))},sd=function(A,t,r){return A===Jr||A===ht?st(t)?!0:t===xs&&st(r):st(A===xs?t:A)},vF=function(A){var t=0,r=1;(A[t]===Jr||A[t]===ht)&&(A[t]===ht&&(r=-1),t++);for(var i=[];st(A[t]);)i.push(A[t++]);var s=i.length?parseInt(Ue.apply(void 0,i),10):0;A[t]===xs&&t++;for(var l=[];st(A[t]);)l.push(A[t++]);var c=l.length,u=c?parseInt(Ue.apply(void 0,l),10):0;(A[t]===Q1||A[t]===x1)&&t++;var f=1;(A[t]===Jr||A[t]===ht)&&(A[t]===ht&&(f=-1),t++);for(var h=[];st(A[t]);)h.push(A[t++]);var m=h.length?parseInt(Ue.apply(void 0,h),10):0;return r*(s+u*Math.pow(10,-c))*Math.pow(10,f*m)},bF={type:2},xF={type:3},SF={type:4},QF={type:13},UF={type:8},FF={type:21},TF={type:9},NF={type:10},IF={type:11},HF={type:12},_F={type:14},Eo={type:23},MF={type:1},OF={type:25},RF={type:24},LF={type:26},DF={type:27},kF={type:28},jF={type:29},KF={type:31},ld={type:32},T1=(function(){function A(){this._value=[]}return A.prototype.write=function(t){this._value=this._value.concat(no(t))},A.prototype.read=function(){for(var t=[],r=this.consumeToken();r!==ld;)t.push(r),r=this.consumeToken();return t},A.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case go:return this.consumeStringToken(go);case K5:var r=this.peekCodePoint(0),i=this.peekCodePoint(1),s=this.peekCodePoint(2);if(F1(r)||lr(i,s)){var l=yo(r,i,s)?D5:L5,c=this.consumeName();return{type:5,value:c,flags:l}}break;case V5:if(this.peekCodePoint(0)===vs)return this.consumeCodePoint(),QF;break;case po:return this.consumeStringToken(po);case mo:return bF;case bs:return xF;case ad:if(this.peekCodePoint(0)===vs)return this.consumeCodePoint(),_F;break;case Jr:if(sd(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case nF:return SF;case ht:var u=t,f=this.peekCodePoint(0),h=this.peekCodePoint(1);if(sd(u,f,h))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(yo(u,f,h))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(f===ht&&h===X5)return this.consumeCodePoint(),this.consumeCodePoint(),RF;break;case xs:if(sd(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case w1:if(this.peekCodePoint(0)===ad)for(this.consumeCodePoint();;){var m=this.consumeCodePoint();if(m===ad&&(m=this.consumeCodePoint(),m===w1))return this.consumeToken();if(m===pn)return this.consumeToken()}break;case rF:return LF;case iF:return DF;case Y5:if(this.peekCodePoint(0)===P5&&this.peekCodePoint(1)===ht&&this.peekCodePoint(2)===ht)return this.consumeCodePoint(),this.consumeCodePoint(),OF;break;case q5:var B=this.peekCodePoint(0),w=this.peekCodePoint(1),C=this.peekCodePoint(2);if(yo(B,w,C)){var c=this.consumeName();return{type:7,value:c}}break;case J5:return kF;case Es:if(lr(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case Z5:return jF;case W5:if(this.peekCodePoint(0)===vs)return this.consumeCodePoint(),UF;break;case $5:return IF;case AF:return HF;case dF:case gF:var E=this.peekCodePoint(0),v=this.peekCodePoint(1);return E===Jr&&(Hi(v)||v===Bo)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case y1:if(this.peekCodePoint(0)===vs)return this.consumeCodePoint(),TF;if(this.peekCodePoint(0)===y1)return this.consumeCodePoint(),FF;break;case eF:if(this.peekCodePoint(0)===vs)return this.consumeCodePoint(),NF;break;case pn:return ld}return Co(t)?(this.consumeWhiteSpace(),KF):st(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):wo(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:Ue(t)}},A.prototype.consumeCodePoint=function(){var t=this._value.shift();return typeof t>"u"?-1:t},A.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},A.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},A.prototype.consumeUnicodeRangeToken=function(){for(var t=[],r=this.consumeCodePoint();Hi(r)&&t.length<6;)t.push(r),r=this.consumeCodePoint();for(var i=!1;r===Bo&&t.length<6;)t.push(r),r=this.consumeCodePoint(),i=!0;if(i){var s=parseInt(Ue.apply(void 0,t.map(function(f){return f===Bo?v1:f})),16),l=parseInt(Ue.apply(void 0,t.map(function(f){return f===Bo?U1:f})),16);return{type:30,start:s,end:l}}var c=parseInt(Ue.apply(void 0,t),16);if(this.peekCodePoint(0)===ht&&Hi(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var u=[];Hi(r)&&u.length<6;)u.push(r),r=this.consumeCodePoint();var l=parseInt(Ue.apply(void 0,u),16);return{type:30,start:c,end:l}}else return{type:30,start:c,end:c}},A.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return t.toLowerCase()==="url"&&this.peekCodePoint(0)===mo?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===mo?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},A.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===pn)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===po||r===go){var i=this.consumeStringToken(this.consumeCodePoint());return i.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===pn||this.peekCodePoint(0)===bs)?(this.consumeCodePoint(),{type:22,value:i.value}):(this.consumeBadUrlRemnants(),Eo)}for(;;){var s=this.consumeCodePoint();if(s===pn||s===bs)return{type:22,value:Ue.apply(void 0,t)};if(Co(s))return this.consumeWhiteSpace(),this.peekCodePoint(0)===pn||this.peekCodePoint(0)===bs?(this.consumeCodePoint(),{type:22,value:Ue.apply(void 0,t)}):(this.consumeBadUrlRemnants(),Eo);if(s===go||s===po||s===mo||EF(s))return this.consumeBadUrlRemnants(),Eo;if(s===Es)if(lr(s,this.peekCodePoint(0)))t.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Eo;else t.push(s)}},A.prototype.consumeWhiteSpace=function(){for(;Co(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===bs||t===pn)return;lr(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(t){for(var r=5e4,i="";t>0;){var s=Math.min(r,t);i+=Ue.apply(void 0,this._value.splice(0,s)),t-=s}return this._value.shift(),i},A.prototype.consumeStringToken=function(t){var r="",i=0;do{var s=this._value[i];if(s===pn||s===void 0||s===t)return r+=this.consumeStringSlice(i),{type:0,value:r};if(s===ho)return this._value.splice(0,i),MF;if(s===Es){var l=this._value[i+1];l!==pn&&l!==void 0&&(l===ho?(r+=this.consumeStringSlice(i),i=-1,this._value.shift()):lr(s,l)&&(r+=this.consumeStringSlice(i),r+=Ue(this.consumeEscapedCodePoint()),i=-1))}i++}while(!0)},A.prototype.consumeNumber=function(){var t=[],r=ys,i=this.peekCodePoint(0);for((i===Jr||i===ht)&&t.push(this.consumeCodePoint());st(this.peekCodePoint(0));)t.push(this.consumeCodePoint());i=this.peekCodePoint(0);var s=this.peekCodePoint(1);if(i===xs&&st(s))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),r=C1;st(this.peekCodePoint(0));)t.push(this.consumeCodePoint());i=this.peekCodePoint(0),s=this.peekCodePoint(1);var l=this.peekCodePoint(2);if((i===Q1||i===x1)&&((s===Jr||s===ht)&&st(l)||st(s)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),r=C1;st(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[vF(t),r]},A.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),r=t[0],i=t[1],s=this.peekCodePoint(0),l=this.peekCodePoint(1),c=this.peekCodePoint(2);if(yo(s,l,c)){var u=this.consumeName();return{type:15,number:r,flags:i,unit:u}}return s===G5?(this.consumeCodePoint(),{type:16,number:r,flags:i}):{type:17,number:r,flags:i}},A.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(Hi(t)){for(var r=Ue(t);Hi(this.peekCodePoint(0))&&r.length<6;)r+=Ue(this.consumeCodePoint());Co(this.peekCodePoint(0))&&this.consumeCodePoint();var i=parseInt(r,16);return i===0||mF(i)||i>1114111?E1:i}return t===pn?E1:t},A.prototype.consumeName=function(){for(var t="";;){var r=this.consumeCodePoint();if(F1(r))t+=Ue(r);else if(lr(r,this.peekCodePoint(0)))t+=Ue(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),t}},A})(),N1=(function(){function A(t){this._tokens=t}return A.create=function(t){var r=new T1;return r.write(t),new A(r.read())},A.parseValue=function(t){return A.create(t).parseComponentValue()},A.parseValues=function(t){return A.create(t).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var t=this.consumeToken();t.type===31;)t=this.consumeToken();if(t.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var r=this.consumeComponentValue();do t=this.consumeToken();while(t.type===31);if(t.type===32)return r;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var t=[];;){var r=this.consumeComponentValue();if(r.type===32)return t;t.push(r),t.push()}},A.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},A.prototype.consumeSimpleBlock=function(t){for(var r={type:t,values:[]},i=this.consumeToken();;){if(i.type===32||GF(i,t))return r;this.reconsumeToken(i),r.values.push(this.consumeComponentValue()),i=this.consumeToken()}},A.prototype.consumeFunction=function(t){for(var r={name:t.value,values:[],type:18};;){var i=this.consumeToken();if(i.type===32||i.type===3)return r;this.reconsumeToken(i),r.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var t=this._tokens.shift();return typeof t>"u"?ld:t},A.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},A})(),Ss=function(A){return A.type===15},_i=function(A){return A.type===17},le=function(A){return A.type===20},VF=function(A){return A.type===0},od=function(A,t){return le(A)&&A.value===t},I1=function(A){return A.type!==31},Mi=function(A){return A.type!==31&&A.type!==4},mn=function(A){var t=[],r=[];return A.forEach(function(i){if(i.type===4){if(r.length===0)throw new Error("Error parsing function args, zero tokens for arg");t.push(r),r=[];return}i.type!==31&&r.push(i)}),r.length&&t.push(r),t},GF=function(A,t){return t===11&&A.type===12||t===28&&A.type===29?!0:t===2&&A.type===3},or=function(A){return A.type===17||A.type===15},Me=function(A){return A.type===16||or(A)},H1=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},Ze={type:17,number:0,flags:ys},cd={type:16,number:50,flags:ys},cr={type:16,number:100,flags:ys},Qs=function(A,t,r){var i=A[0],s=A[1];return[Be(i,t),Be(typeof s<"u"?s:i,r)]},Be=function(A,t){if(A.type===16)return A.number/100*t;if(Ss(A))switch(A.unit){case"rem":case"em":return 16*A.number;case"px":default:return A.number}return A.number},_1="deg",M1="grad",O1="rad",R1="turn",vo={name:"angle",parse:function(A,t){if(t.type===15)switch(t.unit){case _1:return Math.PI*t.number/180;case M1:return Math.PI/200*t.number;case O1:return t.number;case R1:return Math.PI*2*t.number}throw new Error("Unsupported angle type")}},L1=function(A){return A.type===15&&(A.unit===_1||A.unit===M1||A.unit===O1||A.unit===R1)},D1=function(A){var t=A.filter(le).map(function(r){return r.value}).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Ze,Ze];case"to top":case"bottom":return kt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Ze,cr];case"to right":case"left":return kt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[cr,cr];case"to bottom":case"top":return kt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[cr,Ze];case"to left":case"right":return kt(270)}return 0},kt=function(A){return Math.PI*A/180},ur={name:"color",parse:function(A,t){if(t.type===18){var r=zF[t.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return r(A,t.values)}if(t.type===5){if(t.value.length===3){var i=t.value.substring(0,1),s=t.value.substring(1,2),l=t.value.substring(2,3);return dr(parseInt(i+i,16),parseInt(s+s,16),parseInt(l+l,16),1)}if(t.value.length===4){var i=t.value.substring(0,1),s=t.value.substring(1,2),l=t.value.substring(2,3),c=t.value.substring(3,4);return dr(parseInt(i+i,16),parseInt(s+s,16),parseInt(l+l,16),parseInt(c+c,16)/255)}if(t.value.length===6){var i=t.value.substring(0,2),s=t.value.substring(2,4),l=t.value.substring(4,6);return dr(parseInt(i,16),parseInt(s,16),parseInt(l,16),1)}if(t.value.length===8){var i=t.value.substring(0,2),s=t.value.substring(2,4),l=t.value.substring(4,6),c=t.value.substring(6,8);return dr(parseInt(i,16),parseInt(s,16),parseInt(l,16),parseInt(c,16)/255)}}if(t.type===20){var u=Fn[t.value.toUpperCase()];if(typeof u<"u")return u}return Fn.TRANSPARENT}},fr=function(A){return(255&A)===0},Ge=function(A){var t=255&A,r=255&A>>8,i=255&A>>16,s=255&A>>24;return t<255?"rgba("+s+","+i+","+r+","+t/255+")":"rgb("+s+","+i+","+r+")"},dr=function(A,t,r,i){return(A<<24|t<<16|r<<8|Math.round(i*255)<<0)>>>0},k1=function(A,t){if(A.type===17)return A.number;if(A.type===16){var r=t===3?1:255;return t===3?A.number/100*r:Math.round(A.number/100*r)}return 0},j1=function(A,t){var r=t.filter(Mi);if(r.length===3){var i=r.map(k1),s=i[0],l=i[1],c=i[2];return dr(s,l,c,1)}if(r.length===4){var u=r.map(k1),s=u[0],l=u[1],c=u[2],f=u[3];return dr(s,l,c,f)}return 0};function ud(A,t,r){return r<0&&(r+=1),r>=1&&(r-=1),r<.16666666666666666?(t-A)*r*6+A:r<.5?t:r<.6666666666666666?(t-A)*6*(.6666666666666666-r)+A:A}var K1=function(A,t){var r=t.filter(Mi),i=r[0],s=r[1],l=r[2],c=r[3],u=(i.type===17?kt(i.number):vo.parse(A,i))/(Math.PI*2),f=Me(s)?s.number/100:0,h=Me(l)?l.number/100:0,m=typeof c<"u"&&Me(c)?Be(c,1):1;if(f===0)return dr(h*255,h*255,h*255,1);var B=h<=.5?h*(f+1):h+f-h*f,w=h*2-B,C=ud(w,B,u+1/3),E=ud(w,B,u),v=ud(w,B,u-1/3);return dr(C*255,E*255,v*255,m)},zF={hsl:K1,hsla:K1,rgb:j1,rgba:j1},Us=function(A,t){return ur.parse(A,N1.create(t).parseComponentValue())},Fn={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},PF={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,t){return t.map(function(r){if(le(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},YF={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},bo=function(A,t){var r=ur.parse(A,t[0]),i=t[1];return i&&Me(i)?{color:r,stop:i}:{color:r,stop:null}},V1=function(A,t){var r=A[0],i=A[A.length-1];r.stop===null&&(r.stop=Ze),i.stop===null&&(i.stop=cr);for(var s=[],l=0,c=0;c<A.length;c++){var u=A[c].stop;if(u!==null){var f=Be(u,t);f>l?s.push(f):s.push(l),l=f}else s.push(null)}for(var h=null,c=0;c<s.length;c++){var m=s[c];if(m===null)h===null&&(h=c);else if(h!==null){for(var B=c-h,w=s[h-1],C=(m-w)/(B+1),E=1;E<=B;E++)s[h+E-1]=C*E;h=null}}return A.map(function(v,F){var Q=v.color;return{color:Q,stop:Math.max(Math.min(1,s[F]/t),0)}})},XF=function(A,t,r){var i=t/2,s=r/2,l=Be(A[0],t)-i,c=s-Be(A[1],r);return(Math.atan2(c,l)+Math.PI*2)%(Math.PI*2)},qF=function(A,t,r){var i=typeof A=="number"?A:XF(A,t,r),s=Math.abs(t*Math.sin(i))+Math.abs(r*Math.cos(i)),l=t/2,c=r/2,u=s/2,f=Math.sin(i-Math.PI/2)*u,h=Math.cos(i-Math.PI/2)*u;return[s,l-h,l+h,c-f,c+f]},rn=function(A,t){return Math.sqrt(A*A+t*t)},G1=function(A,t,r,i,s){var l=[[0,0],[0,t],[A,0],[A,t]];return l.reduce(function(c,u){var f=u[0],h=u[1],m=rn(r-f,i-h);return(s?m<c.optimumDistance:m>c.optimumDistance)?{optimumCorner:u,optimumDistance:m}:c},{optimumDistance:s?1/0:-1/0,optimumCorner:null}).optimumCorner},JF=function(A,t,r,i,s){var l=0,c=0;switch(A.size){case 0:A.shape===0?l=c=Math.min(Math.abs(t),Math.abs(t-i),Math.abs(r),Math.abs(r-s)):A.shape===1&&(l=Math.min(Math.abs(t),Math.abs(t-i)),c=Math.min(Math.abs(r),Math.abs(r-s)));break;case 2:if(A.shape===0)l=c=Math.min(rn(t,r),rn(t,r-s),rn(t-i,r),rn(t-i,r-s));else if(A.shape===1){var u=Math.min(Math.abs(r),Math.abs(r-s))/Math.min(Math.abs(t),Math.abs(t-i)),f=G1(i,s,t,r,!0),h=f[0],m=f[1];l=rn(h-t,(m-r)/u),c=u*l}break;case 1:A.shape===0?l=c=Math.max(Math.abs(t),Math.abs(t-i),Math.abs(r),Math.abs(r-s)):A.shape===1&&(l=Math.max(Math.abs(t),Math.abs(t-i)),c=Math.max(Math.abs(r),Math.abs(r-s)));break;case 3:if(A.shape===0)l=c=Math.max(rn(t,r),rn(t,r-s),rn(t-i,r),rn(t-i,r-s));else if(A.shape===1){var u=Math.max(Math.abs(r),Math.abs(r-s))/Math.max(Math.abs(t),Math.abs(t-i)),B=G1(i,s,t,r,!1),h=B[0],m=B[1];l=rn(h-t,(m-r)/u),c=u*l}break}return Array.isArray(A.size)&&(l=Be(A.size[0],i),c=A.size.length===2?Be(A.size[1],s):l),[l,c]},ZF=function(A,t){var r=kt(180),i=[];return mn(t).forEach(function(s,l){if(l===0){var c=s[0];if(c.type===20&&c.value==="to"){r=D1(s);return}else if(L1(c)){r=vo.parse(A,c);return}}var u=bo(A,s);i.push(u)}),{angle:r,stops:i,type:1}},xo=function(A,t){var r=kt(180),i=[];return mn(t).forEach(function(s,l){if(l===0){var c=s[0];if(c.type===20&&["top","left","right","bottom"].indexOf(c.value)!==-1){r=D1(s);return}else if(L1(c)){r=(vo.parse(A,c)+kt(270))%kt(360);return}}var u=bo(A,s);i.push(u)}),{angle:r,stops:i,type:1}},WF=function(A,t){var r=kt(180),i=[],s=1,l=0,c=3,u=[];return mn(t).forEach(function(f,h){var m=f[0];if(h===0){if(le(m)&&m.value==="linear"){s=1;return}else if(le(m)&&m.value==="radial"){s=2;return}}if(m.type===18){if(m.name==="from"){var B=ur.parse(A,m.values[0]);i.push({stop:Ze,color:B})}else if(m.name==="to"){var B=ur.parse(A,m.values[0]);i.push({stop:cr,color:B})}else if(m.name==="color-stop"){var w=m.values.filter(Mi);if(w.length===2){var B=ur.parse(A,w[1]),C=w[0];_i(C)&&i.push({stop:{type:16,number:C.number*100,flags:C.flags},color:B})}}}}),s===1?{angle:(r+kt(180))%kt(360),stops:i,type:s}:{size:c,shape:l,stops:i,position:u,type:s}},z1="closest-side",P1="farthest-side",Y1="closest-corner",X1="farthest-corner",q1="circle",J1="ellipse",Z1="cover",W1="contain",$F=function(A,t){var r=0,i=3,s=[],l=[];return mn(t).forEach(function(c,u){var f=!0;if(u===0){var h=!1;f=c.reduce(function(B,w){if(h)if(le(w))switch(w.value){case"center":return l.push(cd),B;case"top":case"left":return l.push(Ze),B;case"right":case"bottom":return l.push(cr),B}else(Me(w)||or(w))&&l.push(w);else if(le(w))switch(w.value){case q1:return r=0,!1;case J1:return r=1,!1;case"at":return h=!0,!1;case z1:return i=0,!1;case Z1:case P1:return i=1,!1;case W1:case Y1:return i=2,!1;case X1:return i=3,!1}else if(or(w)||Me(w))return Array.isArray(i)||(i=[]),i.push(w),!1;return B},f)}if(f){var m=bo(A,c);s.push(m)}}),{size:i,shape:r,stops:s,position:l,type:2}},So=function(A,t){var r=0,i=3,s=[],l=[];return mn(t).forEach(function(c,u){var f=!0;if(u===0?f=c.reduce(function(m,B){if(le(B))switch(B.value){case"center":return l.push(cd),!1;case"top":case"left":return l.push(Ze),!1;case"right":case"bottom":return l.push(cr),!1}else if(Me(B)||or(B))return l.push(B),!1;return m},f):u===1&&(f=c.reduce(function(m,B){if(le(B))switch(B.value){case q1:return r=0,!1;case J1:return r=1,!1;case W1:case z1:return i=0,!1;case P1:return i=1,!1;case Y1:return i=2,!1;case Z1:case X1:return i=3,!1}else if(or(B)||Me(B))return Array.isArray(i)||(i=[]),i.push(B),!1;return m},f)),f){var h=bo(A,c);s.push(h)}}),{size:i,shape:r,stops:s,position:l,type:2}},A8=function(A){return A.type===1},e8=function(A){return A.type===2},fd={name:"image",parse:function(A,t){if(t.type===22){var r={url:t.value,type:0};return A.cache.addImage(t.value),r}if(t.type===18){var i=$1[t.name];if(typeof i>"u")throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return i(A,t.values)}throw new Error("Unsupported image type "+t.type)}};function t8(A){return!(A.type===20&&A.value==="none")&&(A.type!==18||!!$1[A.name])}var $1={"linear-gradient":ZF,"-moz-linear-gradient":xo,"-ms-linear-gradient":xo,"-o-linear-gradient":xo,"-webkit-linear-gradient":xo,"radial-gradient":$F,"-moz-radial-gradient":So,"-ms-radial-gradient":So,"-o-radial-gradient":So,"-webkit-radial-gradient":So,"-webkit-gradient":WF},n8={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,t){if(t.length===0)return[];var r=t[0];return r.type===20&&r.value==="none"?[]:t.filter(function(i){return Mi(i)&&t8(i)}).map(function(i){return fd.parse(A,i)})}},r8={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,t){return t.map(function(r){if(le(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},i8={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,t){return mn(t).map(function(r){return r.filter(Me)}).map(H1)}},a8={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,t){return mn(t).map(function(r){return r.filter(le).map(function(i){return i.value}).join(" ")}).map(s8)}},s8=function(A){switch(A){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Oi;(function(A){A.AUTO="auto",A.CONTAIN="contain",A.COVER="cover"})(Oi||(Oi={}));var l8={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,t){return mn(t).map(function(r){return r.filter(o8)})}},o8=function(A){return le(A)||Me(A)},Qo=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},c8=Qo("top"),u8=Qo("right"),f8=Qo("bottom"),d8=Qo("left"),Uo=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(t,r){return H1(r.filter(Me))}}},h8=Uo("top-left"),g8=Uo("top-right"),p8=Uo("bottom-right"),m8=Uo("bottom-left"),Fo=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,r){switch(r){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},B8=Fo("top"),C8=Fo("right"),w8=Fo("bottom"),y8=Fo("left"),To=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,r){return Ss(r)?r.number:0}}},E8=To("top"),v8=To("right"),b8=To("bottom"),x8=To("left"),S8={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Q8={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},U8={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,t){return t.filter(le).reduce(function(r,i){return r|F8(i.value)},0)}},F8=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},T8={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},N8={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,t){return t.type===20&&t.value==="normal"?0:t.type===17||t.type===15?t.number:0}},No;(function(A){A.NORMAL="normal",A.STRICT="strict"})(No||(No={}));var I8={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"strict":return No.STRICT;case"normal":default:return No.NORMAL}}},H8={name:"line-height",initialValue:"normal",prefix:!1,type:4},AC=function(A,t){return le(A)&&A.value==="normal"?1.2*t:A.type===17?t*A.number:Me(A)?Be(A,t):t},_8={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,t){return t.type===20&&t.value==="none"?null:fd.parse(A,t)}},M8={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},dd={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Io=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},O8=Io("top"),R8=Io("right"),L8=Io("bottom"),D8=Io("left"),k8={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,t){return t.filter(le).map(function(r){switch(r.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},j8={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},Ho=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},K8=Ho("top"),V8=Ho("right"),G8=Ho("bottom"),z8=Ho("left"),P8={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Y8={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},X8={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,t){return t.length===1&&od(t[0],"none")?[]:mn(t).map(function(r){for(var i={color:Fn.TRANSPARENT,offsetX:Ze,offsetY:Ze,blur:Ze},s=0,l=0;l<r.length;l++){var c=r[l];or(c)?(s===0?i.offsetX=c:s===1?i.offsetY=c:i.blur=c,s++):i.color=ur.parse(A,c)}return i})}},q8={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},J8={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(A,t){if(t.type===20&&t.value==="none")return null;if(t.type===18){var r=$8[t.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return r(t.values)}return null}},Z8=function(A){var t=A.filter(function(r){return r.type===17}).map(function(r){return r.number});return t.length===6?t:null},W8=function(A){var t=A.filter(function(f){return f.type===17}).map(function(f){return f.number}),r=t[0],i=t[1],s=t[4],l=t[5],c=t[12],u=t[13];return t.length===16?[r,i,s,l,c,u]:null},$8={matrix:Z8,matrix3d:W8},eC={type:16,number:50,flags:ys},AT=[eC,eC],eT={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,t){var r=t.filter(Me);return r.length!==2?AT:[r[0],r[1]]}},tT={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Fs;(function(A){A.NORMAL="normal",A.BREAK_ALL="break-all",A.KEEP_ALL="keep-all"})(Fs||(Fs={}));for(var nT={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"break-all":return Fs.BREAK_ALL;case"keep-all":return Fs.KEEP_ALL;case"normal":default:return Fs.NORMAL}}},rT={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,t){if(t.type===20)return{auto:!0,order:0};if(_i(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},tC={name:"time",parse:function(A,t){if(t.type===15)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},iT={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,t){return _i(t)?t.number:1}},aT={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},sT={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,t){return t.filter(le).map(function(r){switch(r.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(r){return r!==0})}},lT={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,t){var r=[],i=[];return t.forEach(function(s){switch(s.type){case 20:case 0:r.push(s.value);break;case 17:r.push(s.number.toString());break;case 4:i.push(r.join(" ")),r.length=0;break}}),r.length&&i.push(r.join(" ")),i.map(function(s){return s.indexOf(" ")===-1?s:"'"+s+"'"})}},oT={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},cT={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,t){if(_i(t))return t.number;if(le(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},uT={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,t){return t.filter(le).map(function(r){return r.value})}},fT={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Ke=function(A,t){return(A&t)!==0},dT={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(A,t){if(t.length===0)return[];var r=t[0];return r.type===20&&r.value==="none"?[]:t}},hT={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,t){if(t.length===0)return null;var r=t[0];if(r.type===20&&r.value==="none")return null;for(var i=[],s=t.filter(I1),l=0;l<s.length;l++){var c=s[l],u=s[l+1];if(c.type===20){var f=u&&_i(u)?u.number:1;i.push({counter:c.value,increment:f})}}return i}},gT={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(A,t){if(t.length===0)return[];for(var r=[],i=t.filter(I1),s=0;s<i.length;s++){var l=i[s],c=i[s+1];if(le(l)&&l.value!=="none"){var u=c&&_i(c)?c.number:0;r.push({counter:l.value,reset:u})}}return r}},pT={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(A,t){return t.filter(Ss).map(function(r){return tC.parse(A,r)})}},mT={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(A,t){if(t.length===0)return null;var r=t[0];if(r.type===20&&r.value==="none")return null;var i=[],s=t.filter(VF);if(s.length%2!==0)return null;for(var l=0;l<s.length;l+=2){var c=s[l].value,u=s[l+1].value;i.push({open:c,close:u})}return i}},nC=function(A,t,r){if(!A)return"";var i=A[Math.min(t,A.length-1)];return i?r?i.open:i.close:""},BT={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,t){return t.length===1&&od(t[0],"none")?[]:mn(t).map(function(r){for(var i={color:255,offsetX:Ze,offsetY:Ze,blur:Ze,spread:Ze,inset:!1},s=0,l=0;l<r.length;l++){var c=r[l];od(c,"inset")?i.inset=!0:or(c)?(s===0?i.offsetX=c:s===1?i.offsetY=c:s===2?i.blur=c:i.spread=c,s++):i.color=ur.parse(A,c)}return i})}},CT={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(A,t){var r=[0,1,2],i=[];return t.filter(le).forEach(function(s){switch(s.value){case"stroke":i.push(1);break;case"fill":i.push(0);break;case"markers":i.push(2);break}}),r.forEach(function(s){i.indexOf(s)===-1&&i.push(s)}),i}},wT={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},yT={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(A,t){return Ss(t)?t.number:0}},ET=(function(){function A(t,r){var i,s;this.animationDuration=CA(t,pT,r.animationDuration),this.backgroundClip=CA(t,PF,r.backgroundClip),this.backgroundColor=CA(t,YF,r.backgroundColor),this.backgroundImage=CA(t,n8,r.backgroundImage),this.backgroundOrigin=CA(t,r8,r.backgroundOrigin),this.backgroundPosition=CA(t,i8,r.backgroundPosition),this.backgroundRepeat=CA(t,a8,r.backgroundRepeat),this.backgroundSize=CA(t,l8,r.backgroundSize),this.borderTopColor=CA(t,c8,r.borderTopColor),this.borderRightColor=CA(t,u8,r.borderRightColor),this.borderBottomColor=CA(t,f8,r.borderBottomColor),this.borderLeftColor=CA(t,d8,r.borderLeftColor),this.borderTopLeftRadius=CA(t,h8,r.borderTopLeftRadius),this.borderTopRightRadius=CA(t,g8,r.borderTopRightRadius),this.borderBottomRightRadius=CA(t,p8,r.borderBottomRightRadius),this.borderBottomLeftRadius=CA(t,m8,r.borderBottomLeftRadius),this.borderTopStyle=CA(t,B8,r.borderTopStyle),this.borderRightStyle=CA(t,C8,r.borderRightStyle),this.borderBottomStyle=CA(t,w8,r.borderBottomStyle),this.borderLeftStyle=CA(t,y8,r.borderLeftStyle),this.borderTopWidth=CA(t,E8,r.borderTopWidth),this.borderRightWidth=CA(t,v8,r.borderRightWidth),this.borderBottomWidth=CA(t,b8,r.borderBottomWidth),this.borderLeftWidth=CA(t,x8,r.borderLeftWidth),this.boxShadow=CA(t,BT,r.boxShadow),this.color=CA(t,S8,r.color),this.direction=CA(t,Q8,r.direction),this.display=CA(t,U8,r.display),this.float=CA(t,T8,r.cssFloat),this.fontFamily=CA(t,lT,r.fontFamily),this.fontSize=CA(t,oT,r.fontSize),this.fontStyle=CA(t,fT,r.fontStyle),this.fontVariant=CA(t,uT,r.fontVariant),this.fontWeight=CA(t,cT,r.fontWeight),this.letterSpacing=CA(t,N8,r.letterSpacing),this.lineBreak=CA(t,I8,r.lineBreak),this.lineHeight=CA(t,H8,r.lineHeight),this.listStyleImage=CA(t,_8,r.listStyleImage),this.listStylePosition=CA(t,M8,r.listStylePosition),this.listStyleType=CA(t,dd,r.listStyleType),this.marginTop=CA(t,O8,r.marginTop),this.marginRight=CA(t,R8,r.marginRight),this.marginBottom=CA(t,L8,r.marginBottom),this.marginLeft=CA(t,D8,r.marginLeft),this.opacity=CA(t,iT,r.opacity);var l=CA(t,k8,r.overflow);this.overflowX=l[0],this.overflowY=l[l.length>1?1:0],this.overflowWrap=CA(t,j8,r.overflowWrap),this.paddingTop=CA(t,K8,r.paddingTop),this.paddingRight=CA(t,V8,r.paddingRight),this.paddingBottom=CA(t,G8,r.paddingBottom),this.paddingLeft=CA(t,z8,r.paddingLeft),this.paintOrder=CA(t,CT,r.paintOrder),this.position=CA(t,Y8,r.position),this.textAlign=CA(t,P8,r.textAlign),this.textDecorationColor=CA(t,aT,(i=r.textDecorationColor)!==null&&i!==void 0?i:r.color),this.textDecorationLine=CA(t,sT,(s=r.textDecorationLine)!==null&&s!==void 0?s:r.textDecoration),this.textShadow=CA(t,X8,r.textShadow),this.textTransform=CA(t,q8,r.textTransform),this.transform=CA(t,J8,r.transform),this.transformOrigin=CA(t,eT,r.transformOrigin),this.visibility=CA(t,tT,r.visibility),this.webkitTextStrokeColor=CA(t,wT,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=CA(t,yT,r.webkitTextStrokeWidth),this.wordBreak=CA(t,nT,r.wordBreak),this.zIndex=CA(t,rT,r.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},A.prototype.isTransparent=function(){return fr(this.backgroundColor)},A.prototype.isTransformed=function(){return this.transform!==null},A.prototype.isPositioned=function(){return this.position!==0},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return this.float!==0},A.prototype.isInlineLevel=function(){return Ke(this.display,4)||Ke(this.display,33554432)||Ke(this.display,268435456)||Ke(this.display,536870912)||Ke(this.display,67108864)||Ke(this.display,134217728)},A})(),vT=(function(){function A(t,r){this.content=CA(t,dT,r.content),this.quotes=CA(t,mT,r.quotes)}return A})(),rC=(function(){function A(t,r){this.counterIncrement=CA(t,hT,r.counterIncrement),this.counterReset=CA(t,gT,r.counterReset)}return A})(),CA=function(A,t,r){var i=new T1,s=r!==null&&typeof r<"u"?r.toString():t.initialValue;i.write(s);var l=new N1(i.read());switch(t.type){case 2:var c=l.parseComponentValue();return t.parse(A,le(c)?c.value:t.initialValue);case 0:return t.parse(A,l.parseComponentValue());case 1:return t.parse(A,l.parseComponentValues());case 4:return l.parseComponentValue();case 3:switch(t.format){case"angle":return vo.parse(A,l.parseComponentValue());case"color":return ur.parse(A,l.parseComponentValue());case"image":return fd.parse(A,l.parseComponentValue());case"length":var u=l.parseComponentValue();return or(u)?u:Ze;case"length-percentage":var f=l.parseComponentValue();return Me(f)?f:Ze;case"time":return tC.parse(A,l.parseComponentValue())}break}},bT="data-html2canvas-debug",xT=function(A){var t=A.getAttribute(bT);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},hd=function(A,t){var r=xT(A);return r===1||t===r},Bn=(function(){function A(t,r){this.context=t,this.textNodes=[],this.elements=[],this.flags=0,hd(r,3),this.styles=new ET(t,window.getComputedStyle(r,null)),Ud(r)&&(this.styles.animationDuration.some(function(i){return i>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=to(this.context,r),hd(r,4)&&(this.flags|=16)}return A})(),ST="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",iC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ts=typeof Uint8Array>"u"?[]:new Uint8Array(256),_o=0;_o<iC.length;_o++)Ts[iC.charCodeAt(_o)]=_o;for(var QT=function(A){var t=A.length*.75,r=A.length,i,s=0,l,c,u,f;A[A.length-1]==="="&&(t--,A[A.length-2]==="="&&t--);var h=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),m=Array.isArray(h)?h:new Uint8Array(h);for(i=0;i<r;i+=4)l=Ts[A.charCodeAt(i)],c=Ts[A.charCodeAt(i+1)],u=Ts[A.charCodeAt(i+2)],f=Ts[A.charCodeAt(i+3)],m[s++]=l<<2|c>>4,m[s++]=(c&15)<<4|u>>2,m[s++]=(u&3)<<6|f&63;return h},UT=function(A){for(var t=A.length,r=[],i=0;i<t;i+=2)r.push(A[i+1]<<8|A[i]);return r},FT=function(A){for(var t=A.length,r=[],i=0;i<t;i+=4)r.push(A[i+3]<<24|A[i+2]<<16|A[i+1]<<8|A[i]);return r},Zr=5,gd=11,pd=2,TT=gd-Zr,aC=65536>>Zr,NT=1<<Zr,md=NT-1,IT=1024>>Zr,HT=aC+IT,_T=HT,MT=32,OT=_T+MT,RT=65536>>gd,LT=1<<TT,DT=LT-1,sC=function(A,t,r){return A.slice?A.slice(t,r):new Uint16Array(Array.prototype.slice.call(A,t,r))},kT=function(A,t,r){return A.slice?A.slice(t,r):new Uint32Array(Array.prototype.slice.call(A,t,r))},jT=function(A,t){var r=QT(A),i=Array.isArray(r)?FT(r):new Uint32Array(r),s=Array.isArray(r)?UT(r):new Uint16Array(r),l=24,c=sC(s,l/2,i[4]/2),u=i[5]===2?sC(s,(l+i[4])/2):kT(i,Math.ceil((l+i[4])/4));return new KT(i[0],i[1],i[2],i[3],c,u)},KT=(function(){function A(t,r,i,s,l,c){this.initialValue=t,this.errorValue=r,this.highStart=i,this.highValueIndex=s,this.index=l,this.data=c}return A.prototype.get=function(t){var r;if(t>=0){if(t<55296||t>56319&&t<=65535)return r=this.index[t>>Zr],r=(r<<pd)+(t&md),this.data[r];if(t<=65535)return r=this.index[aC+(t-55296>>Zr)],r=(r<<pd)+(t&md),this.data[r];if(t<this.highStart)return r=OT-RT+(t>>gd),r=this.index[r],r+=t>>Zr&DT,r=this.index[r],r=(r<<pd)+(t&md),this.data[r];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),lC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",VT=typeof Uint8Array>"u"?[]:new Uint8Array(256),Mo=0;Mo<lC.length;Mo++)VT[lC.charCodeAt(Mo)]=Mo;var GT=1,Bd=2,Cd=3,oC=4,cC=5,zT=7,uC=8,wd=9,yd=10,fC=11,dC=12,hC=13,gC=14,Ed=15,PT=function(A){for(var t=[],r=0,i=A.length;r<i;){var s=A.charCodeAt(r++);if(s>=55296&&s<=56319&&r<i){var l=A.charCodeAt(r++);(l&64512)===56320?t.push(((s&1023)<<10)+(l&1023)+65536):(t.push(s),r--)}else t.push(s)}return t},YT=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var r=A.length;if(!r)return"";for(var i=[],s=-1,l="";++s<r;){var c=A[s];c<=65535?i.push(c):(c-=65536,i.push((c>>10)+55296,c%1024+56320)),(s+1===r||i.length>16384)&&(l+=String.fromCharCode.apply(String,i),i.length=0)}return l},XT=jT(ST),jt="×",vd="÷",qT=function(A){return XT.get(A)},JT=function(A,t,r){var i=r-2,s=t[i],l=t[r-1],c=t[r];if(l===Bd&&c===Cd)return jt;if(l===Bd||l===Cd||l===oC||c===Bd||c===Cd||c===oC)return vd;if(l===uC&&[uC,wd,fC,dC].indexOf(c)!==-1||(l===fC||l===wd)&&(c===wd||c===yd)||(l===dC||l===yd)&&c===yd||c===hC||c===cC||c===zT||l===GT)return jt;if(l===hC&&c===gC){for(;s===cC;)s=t[--i];if(s===gC)return jt}if(l===Ed&&c===Ed){for(var u=0;s===Ed;)u++,s=t[--i];if(u%2===0)return jt}return vd},ZT=function(A){var t=PT(A),r=t.length,i=0,s=0,l=t.map(qT);return{next:function(){if(i>=r)return{done:!0,value:null};for(var c=jt;i<r&&(c=JT(t,l,++i))===jt;);if(c!==jt||i===r){var u=YT.apply(null,t.slice(s,i));return s=i,{value:u,done:!1}}return{done:!0,value:null}}}},WT=function(A){for(var t=ZT(A),r=[],i;!(i=t.next()).done;)i.value&&r.push(i.value.slice());return r},$T=function(A){var t=123;if(A.createRange){var r=A.createRange();if(r.getBoundingClientRect){var i=A.createElement("boundtest");i.style.height=t+"px",i.style.display="block",A.body.appendChild(i),r.selectNode(i);var s=r.getBoundingClientRect(),l=Math.round(s.height);if(A.body.removeChild(i),l===t)return!0}}return!1},A9=function(A){var t=A.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",A.body.appendChild(t);var r=A.createRange();t.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var i=t.firstChild,s=no(i.data).map(function(f){return Ue(f)}),l=0,c={},u=s.every(function(f,h){r.setStart(i,l),r.setEnd(i,l+f.length);var m=r.getBoundingClientRect();l+=f.length;var B=m.x>c.x||m.y>c.y;return c=m,h===0?!0:B});return A.body.removeChild(t),u},e9=function(){return typeof new Image().crossOrigin<"u"},t9=function(){return typeof new XMLHttpRequest().responseType=="string"},n9=function(A){var t=new Image,r=A.createElement("canvas"),i=r.getContext("2d");if(!i)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{i.drawImage(t,0,0),r.toDataURL()}catch{return!1}return!0},pC=function(A){return A[0]===0&&A[1]===255&&A[2]===0&&A[3]===255},r9=function(A){var t=A.createElement("canvas"),r=100;t.width=r,t.height=r;var i=t.getContext("2d");if(!i)return Promise.reject(!1);i.fillStyle="rgb(0, 255, 0)",i.fillRect(0,0,r,r);var s=new Image,l=t.toDataURL();s.src=l;var c=bd(r,r,0,0,s);return i.fillStyle="red",i.fillRect(0,0,r,r),mC(c).then(function(u){i.drawImage(u,0,0);var f=i.getImageData(0,0,r,r).data;i.fillStyle="red",i.fillRect(0,0,r,r);var h=A.createElement("div");return h.style.backgroundImage="url("+l+")",h.style.height=r+"px",pC(f)?mC(bd(r,r,0,0,h)):Promise.reject(!1)}).then(function(u){return i.drawImage(u,0,0),pC(i.getImageData(0,0,r,r).data)}).catch(function(){return!1})},bd=function(A,t,r,i,s){var l="http://www.w3.org/2000/svg",c=document.createElementNS(l,"svg"),u=document.createElementNS(l,"foreignObject");return c.setAttributeNS(null,"width",A.toString()),c.setAttributeNS(null,"height",t.toString()),u.setAttributeNS(null,"width","100%"),u.setAttributeNS(null,"height","100%"),u.setAttributeNS(null,"x",r.toString()),u.setAttributeNS(null,"y",i.toString()),u.setAttributeNS(null,"externalResourcesRequired","true"),c.appendChild(u),u.appendChild(s),c},mC=function(A){return new Promise(function(t,r){var i=new Image;i.onload=function(){return t(i)},i.onerror=r,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},We={get SUPPORT_RANGE_BOUNDS(){var A=$T(document);return Object.defineProperty(We,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=We.SUPPORT_RANGE_BOUNDS&&A9(document);return Object.defineProperty(We,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=n9(document);return Object.defineProperty(We,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A=typeof Array.from=="function"&&typeof window.fetch=="function"?r9(document):Promise.resolve(!1);return Object.defineProperty(We,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=e9();return Object.defineProperty(We,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A=t9();return Object.defineProperty(We,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(We,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(We,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},Ns=(function(){function A(t,r){this.text=t,this.bounds=r}return A})(),i9=function(A,t,r,i){var s=l9(t,r),l=[],c=0;return s.forEach(function(u){if(r.textDecorationLine.length||u.trim().length>0)if(We.SUPPORT_RANGE_BOUNDS){var f=BC(i,c,u.length).getClientRects();if(f.length>1){var h=xd(u),m=0;h.forEach(function(w){l.push(new Ns(w,Qn.fromDOMRectList(A,BC(i,m+c,w.length).getClientRects()))),m+=w.length})}else l.push(new Ns(u,Qn.fromDOMRectList(A,f)))}else{var B=i.splitText(u.length);l.push(new Ns(u,a9(A,i))),i=B}else We.SUPPORT_RANGE_BOUNDS||(i=i.splitText(u.length));c+=u.length}),l},a9=function(A,t){var r=t.ownerDocument;if(r){var i=r.createElement("html2canvaswrapper");i.appendChild(t.cloneNode(!0));var s=t.parentNode;if(s){s.replaceChild(i,t);var l=to(A,i);return i.firstChild&&s.replaceChild(i.firstChild,i),l}}return Qn.EMPTY},BC=function(A,t,r){var i=A.ownerDocument;if(!i)throw new Error("Node has no owner document");var s=i.createRange();return s.setStart(A,t),s.setEnd(A,t+r),s},xd=function(A){if(We.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(A)).map(function(r){return r.segment})}return WT(A)},s9=function(A,t){if(We.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(A)).map(function(i){return i.segment})}return c9(A,t)},l9=function(A,t){return t.letterSpacing!==0?xd(A):s9(A,t)},o9=[32,160,4961,65792,65793,4153,4241],c9=function(A,t){for(var r=R5(A,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap==="break-word"?"break-word":t.wordBreak}),i=[],s,l=function(){if(s.value){var c=s.value.slice(),u=no(c),f="";u.forEach(function(h){o9.indexOf(h)===-1?f+=Ue(h):(f.length&&i.push(f),i.push(Ue(h)),f="")}),f.length&&i.push(f)}};!(s=r.next()).done;)l();return i},u9=(function(){function A(t,r,i){this.text=f9(r.data,i.textTransform),this.textBounds=i9(t,this.text,i,r)}return A})(),f9=function(A,t){switch(t){case 1:return A.toLowerCase();case 3:return A.replace(d9,h9);case 2:return A.toUpperCase();default:return A}},d9=/(^|\s|:|-|\(|\))([a-z])/g,h9=function(A,t,r){return A.length>0?t+r.toUpperCase():A},CC=(function(A){nn(t,A);function t(r,i){var s=A.call(this,r,i)||this;return s.src=i.currentSrc||i.src,s.intrinsicWidth=i.naturalWidth,s.intrinsicHeight=i.naturalHeight,s.context.cache.addImage(s.src),s}return t})(Bn),wC=(function(A){nn(t,A);function t(r,i){var s=A.call(this,r,i)||this;return s.canvas=i,s.intrinsicWidth=i.width,s.intrinsicHeight=i.height,s}return t})(Bn),yC=(function(A){nn(t,A);function t(r,i){var s=A.call(this,r,i)||this,l=new XMLSerializer,c=to(r,i);return i.setAttribute("width",c.width+"px"),i.setAttribute("height",c.height+"px"),s.svg="data:image/svg+xml,"+encodeURIComponent(l.serializeToString(i)),s.intrinsicWidth=i.width.baseVal.value,s.intrinsicHeight=i.height.baseVal.value,s.context.cache.addImage(s.svg),s}return t})(Bn),EC=(function(A){nn(t,A);function t(r,i){var s=A.call(this,r,i)||this;return s.value=i.value,s}return t})(Bn),Sd=(function(A){nn(t,A);function t(r,i){var s=A.call(this,r,i)||this;return s.start=i.start,s.reversed=typeof i.reversed=="boolean"&&i.reversed===!0,s}return t})(Bn),g9=[{type:15,flags:0,unit:"px",number:3}],p9=[{type:16,flags:0,number:50}],m9=function(A){return A.width>A.height?new Qn(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new Qn(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A},B9=function(A){var t=A.type===C9?new Array(A.value.length+1).join("•"):A.value;return t.length===0?A.placeholder||"":t},Oo="checkbox",Ro="radio",C9="password",vC=707406591,Qd=(function(A){nn(t,A);function t(r,i){var s=A.call(this,r,i)||this;switch(s.type=i.type.toLowerCase(),s.checked=i.checked,s.value=B9(i),(s.type===Oo||s.type===Ro)&&(s.styles.backgroundColor=3739148031,s.styles.borderTopColor=s.styles.borderRightColor=s.styles.borderBottomColor=s.styles.borderLeftColor=2779096575,s.styles.borderTopWidth=s.styles.borderRightWidth=s.styles.borderBottomWidth=s.styles.borderLeftWidth=1,s.styles.borderTopStyle=s.styles.borderRightStyle=s.styles.borderBottomStyle=s.styles.borderLeftStyle=1,s.styles.backgroundClip=[0],s.styles.backgroundOrigin=[0],s.bounds=m9(s.bounds)),s.type){case Oo:s.styles.borderTopRightRadius=s.styles.borderTopLeftRadius=s.styles.borderBottomRightRadius=s.styles.borderBottomLeftRadius=g9;break;case Ro:s.styles.borderTopRightRadius=s.styles.borderTopLeftRadius=s.styles.borderBottomRightRadius=s.styles.borderBottomLeftRadius=p9;break}return s}return t})(Bn),bC=(function(A){nn(t,A);function t(r,i){var s=A.call(this,r,i)||this,l=i.options[i.selectedIndex||0];return s.value=l&&l.text||"",s}return t})(Bn),xC=(function(A){nn(t,A);function t(r,i){var s=A.call(this,r,i)||this;return s.value=i.value,s}return t})(Bn),SC=(function(A){nn(t,A);function t(r,i){var s=A.call(this,r,i)||this;s.src=i.src,s.width=parseInt(i.width,10)||0,s.height=parseInt(i.height,10)||0,s.backgroundColor=s.styles.backgroundColor;try{if(i.contentWindow&&i.contentWindow.document&&i.contentWindow.document.documentElement){s.tree=UC(r,i.contentWindow.document.documentElement);var l=i.contentWindow.document.documentElement?Us(r,getComputedStyle(i.contentWindow.document.documentElement).backgroundColor):Fn.TRANSPARENT,c=i.contentWindow.document.body?Us(r,getComputedStyle(i.contentWindow.document.body).backgroundColor):Fn.TRANSPARENT;s.backgroundColor=fr(l)?fr(c)?s.styles.backgroundColor:c:l}}catch{}return s}return t})(Bn),w9=["OL","UL","MENU"],Lo=function(A,t,r,i){for(var s=t.firstChild,l=void 0;s;s=l)if(l=s.nextSibling,FC(s)&&s.data.trim().length>0)r.textNodes.push(new u9(A,s,r.styles));else if(Ri(s))if(MC(s)&&s.assignedNodes)s.assignedNodes().forEach(function(u){return Lo(A,u,r,i)});else{var c=QC(A,s);c.styles.isVisible()&&(y9(s,c,i)?c.flags|=4:E9(c.styles)&&(c.flags|=2),w9.indexOf(s.tagName)!==-1&&(c.flags|=8),r.elements.push(c),s.shadowRoot?Lo(A,s.shadowRoot,c,i):!ko(s)&&!TC(s)&&!jo(s)&&Lo(A,s,c,i))}},QC=function(A,t){return Td(t)?new CC(A,t):NC(t)?new wC(A,t):TC(t)?new yC(A,t):v9(t)?new EC(A,t):b9(t)?new Sd(A,t):x9(t)?new Qd(A,t):jo(t)?new bC(A,t):ko(t)?new xC(A,t):HC(t)?new SC(A,t):new Bn(A,t)},UC=function(A,t){var r=QC(A,t);return r.flags|=4,Lo(A,t,r,r),r},y9=function(A,t,r){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||Fd(A)&&r.styles.isTransparent()},E9=function(A){return A.isPositioned()||A.isFloating()},FC=function(A){return A.nodeType===Node.TEXT_NODE},Ri=function(A){return A.nodeType===Node.ELEMENT_NODE},Ud=function(A){return Ri(A)&&typeof A.style<"u"&&!Do(A)},Do=function(A){return typeof A.className=="object"},v9=function(A){return A.tagName==="LI"},b9=function(A){return A.tagName==="OL"},x9=function(A){return A.tagName==="INPUT"},S9=function(A){return A.tagName==="HTML"},TC=function(A){return A.tagName==="svg"},Fd=function(A){return A.tagName==="BODY"},NC=function(A){return A.tagName==="CANVAS"},IC=function(A){return A.tagName==="VIDEO"},Td=function(A){return A.tagName==="IMG"},HC=function(A){return A.tagName==="IFRAME"},_C=function(A){return A.tagName==="STYLE"},Q9=function(A){return A.tagName==="SCRIPT"},ko=function(A){return A.tagName==="TEXTAREA"},jo=function(A){return A.tagName==="SELECT"},MC=function(A){return A.tagName==="SLOT"},OC=function(A){return A.tagName.indexOf("-")>0},U9=(function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(t){var r=this.counters[t];return r&&r.length?r[r.length-1]:1},A.prototype.getCounterValues=function(t){var r=this.counters[t];return r||[]},A.prototype.pop=function(t){var r=this;t.forEach(function(i){return r.counters[i].pop()})},A.prototype.parse=function(t){var r=this,i=t.counterIncrement,s=t.counterReset,l=!0;i!==null&&i.forEach(function(u){var f=r.counters[u.counter];f&&u.increment!==0&&(l=!1,f.length||f.push(1),f[Math.max(0,f.length-1)]+=u.increment)});var c=[];return l&&s.forEach(function(u){var f=r.counters[u.counter];c.push(u.counter),f||(f=r.counters[u.counter]=[]),f.push(u.reset)}),c},A})(),RC={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},LC={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},F9={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},T9={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Li=function(A,t,r,i,s,l){return A<t||A>r?Hs(A,s,l.length>0):i.integers.reduce(function(c,u,f){for(;A>=u;)A-=u,c+=i.values[f];return c},"")+l},DC=function(A,t,r,i){var s="";do r||A--,s=i(A)+s,A/=t;while(A*t>=t);return s},Fe=function(A,t,r,i,s){var l=r-t+1;return(A<0?"-":"")+(DC(Math.abs(A),l,i,function(c){return Ue(Math.floor(c%l)+t)})+s)},Wr=function(A,t,r){r===void 0&&(r=". ");var i=t.length;return DC(Math.abs(A),i,!1,function(s){return t[Math.floor(s%i)]})+r},Di=1,hr=2,gr=4,Is=8,Tn=function(A,t,r,i,s,l){if(A<-9999||A>9999)return Hs(A,4,s.length>0);var c=Math.abs(A),u=s;if(c===0)return t[0]+u;for(var f=0;c>0&&f<=4;f++){var h=c%10;h===0&&Ke(l,Di)&&u!==""?u=t[h]+u:h>1||h===1&&f===0||h===1&&f===1&&Ke(l,hr)||h===1&&f===1&&Ke(l,gr)&&A>100||h===1&&f>1&&Ke(l,Is)?u=t[h]+(f>0?r[f-1]:"")+u:h===1&&f>0&&(u=r[f-1]+u),c=Math.floor(c/10)}return(A<0?i:"")+u},kC="十百千萬",jC="拾佰仟萬",KC="マイナス",Nd="마이너스",Hs=function(A,t,r){var i=r?". ":"",s=r?"、":"",l=r?", ":"",c=r?" ":"";switch(t){case 0:return"•"+c;case 1:return"◦"+c;case 2:return"◾"+c;case 5:var u=Fe(A,48,57,!0,i);return u.length<4?"0"+u:u;case 4:return Wr(A,"〇一二三四五六七八九",s);case 6:return Li(A,1,3999,RC,3,i).toLowerCase();case 7:return Li(A,1,3999,RC,3,i);case 8:return Fe(A,945,969,!1,i);case 9:return Fe(A,97,122,!1,i);case 10:return Fe(A,65,90,!1,i);case 11:return Fe(A,1632,1641,!0,i);case 12:case 49:return Li(A,1,9999,LC,3,i);case 35:return Li(A,1,9999,LC,3,i).toLowerCase();case 13:return Fe(A,2534,2543,!0,i);case 14:case 30:return Fe(A,6112,6121,!0,i);case 15:return Wr(A,"子丑寅卯辰巳午未申酉戌亥",s);case 16:return Wr(A,"甲乙丙丁戊己庚辛壬癸",s);case 17:case 48:return Tn(A,"零一二三四五六七八九",kC,"負",s,hr|gr|Is);case 47:return Tn(A,"零壹貳參肆伍陸柒捌玖",jC,"負",s,Di|hr|gr|Is);case 42:return Tn(A,"零一二三四五六七八九",kC,"负",s,hr|gr|Is);case 41:return Tn(A,"零壹贰叁肆伍陆柒捌玖",jC,"负",s,Di|hr|gr|Is);case 26:return Tn(A,"〇一二三四五六七八九","十百千万",KC,s,0);case 25:return Tn(A,"零壱弐参四伍六七八九","拾百千万",KC,s,Di|hr|gr);case 31:return Tn(A,"영일이삼사오육칠팔구","십백천만",Nd,l,Di|hr|gr);case 33:return Tn(A,"零一二三四五六七八九","十百千萬",Nd,l,0);case 32:return Tn(A,"零壹貳參四五六七八九","拾百千",Nd,l,Di|hr|gr);case 18:return Fe(A,2406,2415,!0,i);case 20:return Li(A,1,19999,T9,3,i);case 21:return Fe(A,2790,2799,!0,i);case 22:return Fe(A,2662,2671,!0,i);case 22:return Li(A,1,10999,F9,3,i);case 23:return Wr(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Wr(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Fe(A,3302,3311,!0,i);case 28:return Wr(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",s);case 29:return Wr(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",s);case 34:return Fe(A,3792,3801,!0,i);case 37:return Fe(A,6160,6169,!0,i);case 38:return Fe(A,4160,4169,!0,i);case 39:return Fe(A,2918,2927,!0,i);case 40:return Fe(A,1776,1785,!0,i);case 43:return Fe(A,3046,3055,!0,i);case 44:return Fe(A,3174,3183,!0,i);case 45:return Fe(A,3664,3673,!0,i);case 46:return Fe(A,3872,3881,!0,i);case 3:default:return Fe(A,48,57,!0,i)}},VC="data-html2canvas-ignore",GC=(function(){function A(t,r,i){if(this.context=t,this.options=i,this.scrolledElements=[],this.referenceElement=r,this.counters=new U9,this.quoteDepth=0,!r.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(r.ownerDocument.documentElement,!1)}return A.prototype.toIFrame=function(t,r){var i=this,s=N9(t,r);if(!s.contentWindow)return Promise.reject("Unable to find iframe window");var l=t.defaultView.pageXOffset,c=t.defaultView.pageYOffset,u=s.contentWindow,f=u.document,h=_9(s).then(function(){return lt(i,void 0,void 0,function(){var m,B;return at(this,function(w){switch(w.label){case 0:return this.scrolledElements.forEach(L9),u&&(u.scrollTo(r.left,r.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(u.scrollY!==r.top||u.scrollX!==r.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(u.scrollX-r.left,u.scrollY-r.top,0,0))),m=this.options.onclone,B=this.clonedReferenceElement,typeof B>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:f.fonts&&f.fonts.ready?[4,f.fonts.ready]:[3,2];case 1:w.sent(),w.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,H9(f)]:[3,4];case 3:w.sent(),w.label=4;case 4:return typeof m=="function"?[2,Promise.resolve().then(function(){return m(f,B)}).then(function(){return s})]:[2,s]}})})});return f.open(),f.write(O9(document.doctype)+"<html></html>"),R9(this.referenceElement.ownerDocument,l,c),f.replaceChild(f.adoptNode(this.documentElement),f.documentElement),f.close(),h},A.prototype.createElementClone=function(t){if(hd(t,2),NC(t))return this.createCanvasClone(t);if(IC(t))return this.createVideoClone(t);if(_C(t))return this.createStyleClone(t);var r=t.cloneNode(!1);return Td(r)&&(Td(t)&&t.currentSrc&&t.currentSrc!==t.src&&(r.src=t.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),OC(r)?this.createCustomElementClone(r):r},A.prototype.createCustomElementClone=function(t){var r=document.createElement("html2canvascustomelement");return Id(t.style,r),r},A.prototype.createStyleClone=function(t){try{var r=t.sheet;if(r&&r.cssRules){var i=[].slice.call(r.cssRules,0).reduce(function(l,c){return c&&typeof c.cssText=="string"?l+c.cssText:l},""),s=t.cloneNode(!1);return s.textContent=i,s}}catch(l){if(this.context.logger.error("Unable to access cssRules property",l),l.name!=="SecurityError")throw l}return t.cloneNode(!1)},A.prototype.createCanvasClone=function(t){var r;if(this.options.inlineImages&&t.ownerDocument){var i=t.ownerDocument.createElement("img");try{return i.src=t.toDataURL(),i}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var s=t.cloneNode(!1);try{s.width=t.width,s.height=t.height;var l=t.getContext("2d"),c=s.getContext("2d");if(c)if(!this.options.allowTaint&&l)c.putImageData(l.getImageData(0,0,t.width,t.height),0,0);else{var u=(r=t.getContext("webgl2"))!==null&&r!==void 0?r:t.getContext("webgl");if(u){var f=u.getContextAttributes();f?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}c.drawImage(t,0,0)}return s}catch{this.context.logger.info("Unable to clone canvas as it is tainted",t)}return s},A.prototype.createVideoClone=function(t){var r=t.ownerDocument.createElement("canvas");r.width=t.offsetWidth,r.height=t.offsetHeight;var i=r.getContext("2d");try{return i&&(i.drawImage(t,0,0,r.width,r.height),this.options.allowTaint||i.getImageData(0,0,r.width,r.height)),r}catch{this.context.logger.info("Unable to clone video as it is tainted",t)}var s=t.ownerDocument.createElement("canvas");return s.width=t.offsetWidth,s.height=t.offsetHeight,s},A.prototype.appendChildNode=function(t,r,i){(!Ri(r)||!Q9(r)&&!r.hasAttribute(VC)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!Ri(r)||!_C(r))&&t.appendChild(this.cloneNode(r,i))},A.prototype.cloneChildNodes=function(t,r,i){for(var s=this,l=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;l;l=l.nextSibling)if(Ri(l)&&MC(l)&&typeof l.assignedNodes=="function"){var c=l.assignedNodes();c.length&&c.forEach(function(u){return s.appendChildNode(r,u,i)})}else this.appendChildNode(r,l,i)},A.prototype.cloneNode=function(t,r){if(FC(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var i=t.ownerDocument.defaultView;if(i&&Ri(t)&&(Ud(t)||Do(t))){var s=this.createElementClone(t);s.style.transitionProperty="none";var l=i.getComputedStyle(t),c=i.getComputedStyle(t,":before"),u=i.getComputedStyle(t,":after");this.referenceElement===t&&Ud(s)&&(this.clonedReferenceElement=s),Fd(s)&&j9(s);var f=this.counters.parse(new rC(this.context,l)),h=this.resolvePseudoContent(t,s,c,_s.BEFORE);OC(t)&&(r=!0),IC(t)||this.cloneChildNodes(t,s,r),h&&s.insertBefore(h,s.firstChild);var m=this.resolvePseudoContent(t,s,u,_s.AFTER);return m&&s.appendChild(m),this.counters.pop(f),(l&&(this.options.copyStyles||Do(t))&&!HC(t)||r)&&Id(l,s),(t.scrollTop!==0||t.scrollLeft!==0)&&this.scrolledElements.push([s,t.scrollLeft,t.scrollTop]),(ko(t)||jo(t))&&(ko(s)||jo(s))&&(s.value=t.value),s}return t.cloneNode(!1)},A.prototype.resolvePseudoContent=function(t,r,i,s){var l=this;if(i){var c=i.content,u=r.ownerDocument;if(!(!u||!c||c==="none"||c==="-moz-alt-content"||i.display==="none")){this.counters.parse(new rC(this.context,i));var f=new vT(this.context,i),h=u.createElement("html2canvaspseudoelement");Id(i,h),f.content.forEach(function(B){if(B.type===0)h.appendChild(u.createTextNode(B.value));else if(B.type===22){var w=u.createElement("img");w.src=B.value,w.style.opacity="1",h.appendChild(w)}else if(B.type===18){if(B.name==="attr"){var C=B.values.filter(le);C.length&&h.appendChild(u.createTextNode(t.getAttribute(C[0].value)||""))}else if(B.name==="counter"){var E=B.values.filter(Mi),v=E[0],F=E[1];if(v&&le(v)){var Q=l.counters.getCounterValue(v.value),I=F&&le(F)?dd.parse(l.context,F.value):3;h.appendChild(u.createTextNode(Hs(Q,I,!1)))}}else if(B.name==="counters"){var O=B.values.filter(Mi),v=O[0],K=O[1],F=O[2];if(v&&le(v)){var j=l.counters.getCounterValues(v.value),T=F&&le(F)?dd.parse(l.context,F.value):3,L=K&&K.type===0?K.value:"",R=j.map(function(nA){return Hs(nA,T,!1)}).join(L);h.appendChild(u.createTextNode(R))}}}else if(B.type===20)switch(B.value){case"open-quote":h.appendChild(u.createTextNode(nC(f.quotes,l.quoteDepth++,!0)));break;case"close-quote":h.appendChild(u.createTextNode(nC(f.quotes,--l.quoteDepth,!1)));break;default:h.appendChild(u.createTextNode(B.value))}}),h.className=Hd+" "+_d;var m=s===_s.BEFORE?" "+Hd:" "+_d;return Do(r)?r.className.baseValue+=m:r.className+=m,h}}},A.destroy=function(t){return t.parentNode?(t.parentNode.removeChild(t),!0):!1},A})(),_s;(function(A){A[A.BEFORE=0]="BEFORE",A[A.AFTER=1]="AFTER"})(_s||(_s={}));var N9=function(A,t){var r=A.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=t.width.toString(),r.height=t.height.toString(),r.scrolling="no",r.setAttribute(VC,"true"),A.body.appendChild(r),r},I9=function(A){return new Promise(function(t){if(A.complete){t();return}if(!A.src){t();return}A.onload=t,A.onerror=t})},H9=function(A){return Promise.all([].slice.call(A.images,0).map(I9))},_9=function(A){return new Promise(function(t,r){var i=A.contentWindow;if(!i)return r("No window assigned for iframe");var s=i.document;i.onload=A.onload=function(){i.onload=A.onload=null;var l=setInterval(function(){s.body.childNodes.length>0&&s.readyState==="complete"&&(clearInterval(l),t(A))},50)}})},M9=["all","d","content"],Id=function(A,t){for(var r=A.length-1;r>=0;r--){var i=A.item(r);M9.indexOf(i)===-1&&t.style.setProperty(i,A.getPropertyValue(i))}return t},O9=function(A){var t="";return A&&(t+="<!DOCTYPE ",A.name&&(t+=A.name),A.internalSubset&&(t+=A.internalSubset),A.publicId&&(t+='"'+A.publicId+'"'),A.systemId&&(t+='"'+A.systemId+'"'),t+=">"),t},R9=function(A,t,r){A&&A.defaultView&&(t!==A.defaultView.pageXOffset||r!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(t,r)},L9=function(A){var t=A[0],r=A[1],i=A[2];t.scrollLeft=r,t.scrollTop=i},D9=":before",k9=":after",Hd="___html2canvas___pseudoelement_before",_d="___html2canvas___pseudoelement_after",zC=`{
|
|
101
|
+
`}),r}function IB(A){let t=0,r=A.charCodeAt(t);for(;r===9||r===32;)t++,r=A.charCodeAt(t);return A.slice(t)}function NB(A,t){const r=S3(A,t),i=r.one(A,void 0),s=g3(r),l=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return s&&l.children.push({type:"text",value:`
|
|
102
|
+
`},s),l}function I3(A,t){return A&&"run"in A?async function(r,i){const s=NB(r,{file:i,...t});await A.run(s,i)}:function(r,i){return NB(r,{file:i,...A||t})}}function HB(A){if(A)throw A}var Sf,_B;function N3(){if(_B)return Sf;_B=1;var A=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},l=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var m=A.call(h,"constructor"),B=h.constructor&&h.constructor.prototype&&A.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!B)return!1;var w;for(w in h);return typeof w>"u"||A.call(h,w)},c=function(h,m){r&&m.name==="__proto__"?r(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},u=function(h,m){if(m==="__proto__")if(A.call(h,m)){if(i)return i(h,m).value}else return;return h[m]};return Sf=function f(){var h,m,B,w,C,E,v=arguments[0],F=1,Q=arguments.length,N=!1;for(typeof v=="boolean"&&(N=v,v=arguments[1]||{},F=2),(v==null||typeof v!="object"&&typeof v!="function")&&(v={});F<Q;++F)if(h=arguments[F],h!=null)for(m in h)B=u(v,m),w=u(h,m),v!==w&&(N&&w&&(l(w)||(C=s(w)))?(C?(C=!1,E=B&&s(B)?B:[]):E=B&&l(B)?B:{},c(v,{name:m,newValue:f(N,E,w)})):typeof w<"u"&&c(v,{name:m,newValue:w}));return v},Sf}var H3=N3();const Qf=lu(H3);function Uf(A){if(typeof A!="object"||A===null)return!1;const t=Object.getPrototypeOf(A);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in A)&&!(Symbol.iterator in A)}function _3(){const A=[],t={run:r,use:i};return t;function r(...s){let l=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);u(null,...s);function u(f,...h){const m=A[++l];let B=-1;if(f){c(f);return}for(;++B<s.length;)(h[B]===null||h[B]===void 0)&&(h[B]=s[B]);s=h,m?M3(m,u)(...h):c(null,...h)}}function i(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return A.push(s),t}}function M3(A,t){let r;return i;function i(...c){const u=A.length>c.length;let f;u&&c.push(s);try{f=A.apply(this,c)}catch(h){const m=h;if(u&&r)throw m;return s(m)}u||(f&&f.then&&typeof f.then=="function"?f.then(l,s):f instanceof Error?s(f):l(f))}function s(c,...u){r||(r=!0,t(c,...u))}function l(c){s(null,c)}}const gn={basename:O3,dirname:R3,extname:L3,join:D3,sep:"/"};function O3(A,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ds(A);let r=0,i=-1,s=A.length,l;if(t===void 0||t.length===0||t.length>A.length){for(;s--;)if(A.codePointAt(s)===47){if(l){r=s+1;break}}else i<0&&(l=!0,i=s+1);return i<0?"":A.slice(r,i)}if(t===A)return"";let c=-1,u=t.length-1;for(;s--;)if(A.codePointAt(s)===47){if(l){r=s+1;break}}else c<0&&(l=!0,c=s+1),u>-1&&(A.codePointAt(s)===t.codePointAt(u--)?u<0&&(i=s):(u=-1,i=c));return r===i?i=c:i<0&&(i=A.length),A.slice(r,i)}function R3(A){if(ds(A),A.length===0)return".";let t=-1,r=A.length,i;for(;--r;)if(A.codePointAt(r)===47){if(i){t=r;break}}else i||(i=!0);return t<0?A.codePointAt(0)===47?"/":".":t===1&&A.codePointAt(0)===47?"//":A.slice(0,t)}function L3(A){ds(A);let t=A.length,r=-1,i=0,s=-1,l=0,c;for(;t--;){const u=A.codePointAt(t);if(u===47){if(c){i=t+1;break}continue}r<0&&(c=!0,r=t+1),u===46?s<0?s=t:l!==1&&(l=1):s>-1&&(l=-1)}return s<0||r<0||l===0||l===1&&s===r-1&&s===i+1?"":A.slice(s,r)}function D3(...A){let t=-1,r;for(;++t<A.length;)ds(A[t]),A[t]&&(r=r===void 0?A[t]:r+"/"+A[t]);return r===void 0?".":k3(r)}function k3(A){ds(A);const t=A.codePointAt(0)===47;let r=j3(A,!t);return r.length===0&&!t&&(r="."),r.length>0&&A.codePointAt(A.length-1)===47&&(r+="/"),t?"/"+r:r}function j3(A,t){let r="",i=0,s=-1,l=0,c=-1,u,f;for(;++c<=A.length;){if(c<A.length)u=A.codePointAt(c);else{if(u===47)break;u=47}if(u===47){if(!(s===c-1||l===1))if(s!==c-1&&l===2){if(r.length<2||i!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(f=r.lastIndexOf("/"),f!==r.length-1){f<0?(r="",i=0):(r=r.slice(0,f),i=r.length-1-r.lastIndexOf("/")),s=c,l=0;continue}}else if(r.length>0){r="",i=0,s=c,l=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+A.slice(s+1,c):r=A.slice(s+1,c),i=c-s-1;s=c,l=0}else u===46&&l>-1?l++:l=-1}return r}function ds(A){if(typeof A!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(A))}const K3={cwd:V3};function V3(){return"/"}function Ff(A){return!!(A!==null&&typeof A=="object"&&"href"in A&&A.href&&"protocol"in A&&A.protocol&&A.auth===void 0)}function G3(A){if(typeof A=="string")A=new URL(A);else if(!Ff(A)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+A+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(A.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return z3(A)}function z3(A){if(A.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=A.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const i=t.codePointAt(r+2);if(i===70||i===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(t)}const Tf=["history","path","basename","stem","extname","dirname"];class MB{constructor(t){let r;t?Ff(t)?r={path:t}:typeof t=="string"||P3(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":K3.cwd(),this.data={},this.history=[],this.messages=[];let i=-1;for(;++i<Tf.length;){const l=Tf[i];l in r&&r[l]!==void 0&&r[l]!==null&&(this[l]=l==="history"?[...r[l]]:r[l])}let s;for(s in r)Tf.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?gn.basename(this.path):void 0}set basename(t){Nf(t,"basename"),If(t,"basename"),this.path=gn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?gn.dirname(this.path):void 0}set dirname(t){OB(this.basename,"dirname"),this.path=gn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?gn.extname(this.path):void 0}set extname(t){if(If(t,"extname"),OB(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=gn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ff(t)&&(t=G3(t)),Nf(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?gn.basename(this.path,this.extname):void 0}set stem(t){Nf(t,"stem"),If(t,"stem"),this.path=gn.join(this.dirname||"",t+(this.extname||""))}fail(t,r,i){const s=this.message(t,r,i);throw s.fatal=!0,s}info(t,r,i){const s=this.message(t,r,i);return s.fatal=void 0,s}message(t,r,i){const s=new it(t,r,i);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function If(A,t){if(A&&A.includes(gn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+gn.sep+"`")}function Nf(A,t){if(!A)throw new Error("`"+t+"` cannot be empty")}function OB(A,t){if(!A)throw new Error("Setting `"+t+"` requires `path` to be set too")}function P3(A){return!!(A&&typeof A=="object"&&"byteLength"in A&&"byteOffset"in A)}const Y3=(function(A){const i=this.constructor.prototype,s=i[A],l=function(){return s.apply(l,arguments)};return Object.setPrototypeOf(l,i),l}),X3={}.hasOwnProperty;class Hf extends Y3{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=_3()}copy(){const t=new Hf;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];t.use(...i)}return t.data(Qf(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(Of("data",this.frozen),this.namespace[t]=r,this):X3.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Of("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const s=r.call(t,...i);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Jl(t),i=this.parser||this.Parser;return _f("parse",i),i(String(r),r)}process(t,r){const i=this;return this.freeze(),_f("process",this.parser||this.Parser),Mf("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(l,c){const u=Jl(t),f=i.parse(u);i.run(f,u,function(m,B,w){if(m||!B||!w)return h(m);const C=B,E=i.stringify(C,w);Z3(E)?w.value=E:w.result=E,h(m,w)});function h(m,B){m||!B?c(m):l?l(B):r(void 0,B)}}}processSync(t){let r=!1,i;return this.freeze(),_f("processSync",this.parser||this.Parser),Mf("processSync",this.compiler||this.Compiler),this.process(t,s),LB("processSync","process",r),i;function s(l,c){r=!0,HB(l),i=c}}run(t,r,i){RB(t),this.freeze();const s=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?l(void 0,i):new Promise(l);function l(c,u){const f=Jl(r);s.run(t,f,h);function h(m,B,w){const C=B||t;m?u(m):c?c(C):i(void 0,C,w)}}}runSync(t,r){let i=!1,s;return this.run(t,r,l),LB("runSync","run",i),s;function l(c,u){HB(c),s=u,i=!0}}stringify(t,r){this.freeze();const i=Jl(r),s=this.compiler||this.Compiler;return Mf("stringify",s),RB(t),s(t,i)}use(t,...r){const i=this.attachers,s=this.namespace;if(Of("use",this.frozen),t!=null)if(typeof t=="function")f(t,r);else if(typeof t=="object")Array.isArray(t)?u(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(h){if(typeof h=="function")f(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[m,...B]=h;f(m,B)}else c(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function c(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");u(h.plugins),h.settings&&(s.settings=Qf(!0,s.settings,h.settings))}function u(h){let m=-1;if(h!=null)if(Array.isArray(h))for(;++m<h.length;){const B=h[m];l(B)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function f(h,m){let B=-1,w=-1;for(;++B<i.length;)if(i[B][0]===h){w=B;break}if(w===-1)i.push([h,...m]);else if(m.length>0){let[C,...E]=m;const v=i[w][1];Uf(v)&&Uf(C)&&(C=Qf(!0,v,C)),i[w]=[h,C,...E]}}}}const q3=new Hf().freeze();function _f(A,t){if(typeof t!="function")throw new TypeError("Cannot `"+A+"` without `parser`")}function Mf(A,t){if(typeof t!="function")throw new TypeError("Cannot `"+A+"` without `compiler`")}function Of(A,t){if(t)throw new Error("Cannot call `"+A+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function RB(A){if(!Uf(A)||typeof A.type!="string")throw new TypeError("Expected node, got `"+A+"`")}function LB(A,t,r){if(!r)throw new Error("`"+A+"` finished async. Use `"+t+"` instead")}function Jl(A){return J3(A)?A:new MB(A)}function J3(A){return!!(A&&typeof A=="object"&&"message"in A&&"messages"in A)}function Z3(A){return typeof A=="string"||W3(A)}function W3(A){return!!(A&&typeof A=="object"&&"byteLength"in A&&"byteOffset"in A)}const DB=[],kB={allowDangerousHtml:!0},$3=/^(https?|ircs?|mailto|xmpp)$/i,A6=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function jB(A){const t=e6(A),r=t6(A);return n6(t.runSync(t.parse(r),r),A)}function e6(A){const t=A.rehypePlugins||DB,r=A.remarkPlugins||DB,i=A.remarkRehypeOptions?{...A.remarkRehypeOptions,...kB}:kB;return q3().use(OU).use(r).use(I3,i).use(t)}function t6(A){const t=A.children||"",r=new MB;return typeof t=="string"&&(r.value=t),r}function n6(A,t){const r=t.allowedElements,i=t.allowElement,s=t.components,l=t.disallowedElements,c=t.skipHtml,u=t.unwrapDisallowed,f=t.urlTransform||r6;for(const m of A6);return TB(A,h),bS(A,{Fragment:g.Fragment,components:s,ignoreInvalidStyle:!0,jsx:g.jsx,jsxs:g.jsxs,passKeys:!0,passNode:!0});function h(m,B,w){if(m.type==="raw"&&w&&typeof B=="number")return c?w.children.splice(B,1):w.children[B]={type:"text",value:m.value},B;if(m.type==="element"){let C;for(C in ff)if(Object.hasOwn(ff,C)&&Object.hasOwn(m.properties,C)){const E=m.properties[C],v=ff[C];(v===null||v.includes(m.tagName))&&(m.properties[C]=f(String(E||""),C,m))}}if(m.type==="element"){let C=r?!r.includes(m.tagName):l?l.includes(m.tagName):!1;if(!C&&i&&typeof B=="number"&&(C=!i(m,B,w)),C&&w&&typeof B=="number")return u&&m.children?w.children.splice(B,1,...m.children):w.children.splice(B,1),B}}}function r6(A){const t=A.indexOf(":"),r=A.indexOf("?"),i=A.indexOf("#"),s=A.indexOf("/");return t===-1||s!==-1&&t>s||r!==-1&&t>r||i!==-1&&t>i||$3.test(A.slice(0,t))?A:""}const i6=b.lazy(()=>Promise.resolve().then(()=>E6).then(A=>({default:A.Pills}))),a6=b.lazy(()=>Promise.resolve().then(()=>_6).then(A=>({default:A.MultiSelectGroup}))),s6=b.lazy(()=>Promise.resolve().then(()=>R6).then(A=>({default:A.FocusCarousel}))),l6=b.lazy(()=>Promise.resolve().then(()=>k6).then(A=>({default:A.DoctorCard}))),o6=b.lazy(()=>Promise.resolve().then(()=>V6).then(A=>({default:A.CardList}))),c6=b.lazy(()=>Promise.resolve().then(()=>X6).then(A=>({default:A.MediaCard})));function Je({className:A}){return g.jsx("div",{className:mA("relative overflow-hidden bg-surface-secondary","before:absolute before:inset-0","before:-translate-x-full before:animate-[shimmer_1.4s_infinite]","before:bg-gradient-to-r before:from-transparent before:via-white/40 before:to-transparent",A)})}function Ti({variant:A}){return A==="pill"?g.jsxs("div",{className:"flex flex-wrap gap-2 mt-3","aria-busy":!0,"aria-label":"Loading options",children:[g.jsx(Zl,{}),g.jsx(Je,{className:"h-8 w-20 rounded-full"}),g.jsx(Je,{className:"h-8 w-24 rounded-full"}),g.jsx(Je,{className:"h-8 w-16 rounded-full"})]}):A==="media"?g.jsxs("div",{className:"mt-3 w-56 rounded-xl border border-border-subtle bg-surface p-3","aria-busy":!0,"aria-label":"Loading media",children:[g.jsx(Zl,{}),g.jsx(Je,{className:"h-24 w-full rounded-lg"}),g.jsxs("div",{className:"mt-3 space-y-2",children:[g.jsx(Je,{className:"h-3 w-3/4 rounded"}),g.jsx(Je,{className:"h-3 w-1/2 rounded"})]})]}):A==="input"?g.jsxs("div",{className:"mt-3 w-full rounded-xl border border-primary/30 bg-elicitationBg p-4","aria-busy":!0,"aria-label":"Loading input",children:[g.jsx(Zl,{}),g.jsx(Je,{className:"h-3 w-32 rounded mb-3"}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Je,{className:"h-9 w-full rounded-lg"}),g.jsx(Je,{className:"h-9 w-full rounded-lg"}),g.jsx(Je,{className:"h-9 w-full rounded-lg"})]}),g.jsx(Je,{className:"mt-4 h-9 w-full rounded-lg"})]}):g.jsxs("div",{className:"mt-3 w-72 rounded-xl border border-border-subtle bg-surface p-4","aria-busy":!0,"aria-label":"Loading card",children:[g.jsx(Zl,{}),g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx(Je,{className:"h-10 w-10 rounded-full"}),g.jsxs("div",{className:"flex-1 space-y-2",children:[g.jsx(Je,{className:"h-3 w-3/4 rounded"}),g.jsx(Je,{className:"h-3 w-1/2 rounded"})]})]}),g.jsxs("div",{className:"mt-4 space-y-2",children:[g.jsx(Je,{className:"h-3 w-full rounded"}),g.jsx(Je,{className:"h-3 w-5/6 rounded"})]}),g.jsx(Je,{className:"mt-4 h-9 w-28 rounded-lg"})]})}function Zl(){return g.jsx("style",{children:"@keyframes shimmer { 100% { transform: translateX(100%); } }"})}function u6({messageId:A,tool_key:t,entry:r,onSendMessage:i,disabled:s}){const[l,c]=b.useState([]),[u,f]=b.useState({}),h=r.component,m=r.disabled,B=b.useMemo(()=>r.ui_input,[r.ui_input]);b.useEffect(()=>{h===hA.SYNAPSE_COMPONENTS.DOCTOR_CARD&&B?.doctor_details&&f(B.doctor_details)},[h,B?.doctor_details]);const w=async j=>{await i({message:j.value,messageId:A,toolCalled:!0,selectedComponent:j,tool_key:t})},C=async(j,K,T)=>{await i({toolCalled:!0,selectedComponent:j,selected_id:j.doctor_id,message:K,tool_key:t,messageId:A,...T&&{tool_result:T}})},E=async()=>{l.length!==0&&await i({message:l.join(", "),messageId:A,toolCalled:!0,tool_key:t})},v=()=>{const j=h===hA.SYNAPSE_COMPONENTS.MULTI&&B?.options;return j?Array.isArray(j)?j.map((K,T)=>({id:`option-${T}`,label:K.label,value:K.value})):Object.keys(j).map((K,T)=>({id:`option-${T}`,label:K,value:K})):[]},F=b.useMemo(()=>{if(h===hA.SYNAPSE_COMPONENTS.DOCTOR_CARD)return B?.doctors?.filter(K=>!!K&&!!K.doctor_id)},[h,B?.doctors]);if(!h)return null;const Q=h===hA.SYNAPSE_COMPONENTS.PILL?B?.options:void 0,N=h===hA.SYNAPSE_COMPONENTS.CARD?B?.cards:void 0,O=h===hA.SYNAPSE_COMPONENTS.MEDIA_CARD?B?.media_card:void 0;return g.jsxs("div",{className:"flex justify-end",children:[Q&&g.jsx(b.Suspense,{fallback:g.jsx(Ti,{variant:"pill"}),children:g.jsx("div",{className:`flex ${Q.length>3?"flex-col":"flex-wrap"} gap-2 mt-3`,children:Q.map((j,K)=>g.jsx(i6,{disabled:m||s,text:j?.label||"",onClick:()=>w(j),className:"cursor-pointer"},K))})}),h===hA.SYNAPSE_COMPONENTS.MULTI&&B?.options&&g.jsx(b.Suspense,{fallback:g.jsx(Ti,{variant:"input"}),children:g.jsxs("div",{className:"mt-3 space-y-3 break-words overflow-wrap-anywhere whitespace-pre-wrap bg-elicitationBg border border-primary/40 rounded-xl p-4",children:[g.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Select multiple options:"}),g.jsx(a6,{options:v(),selectedValues:l,onSelectionChange:c,disabled:m||s}),g.jsx(jA,{onClick:E,disabled:l.length===0||m||s,className:mA("w-full rounded-lg px-4 py-2 text-sm font-medium transition-all","bg-primary hover:bg-primary/90 text-primary-foreground","disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-primary/50 disabled:text-primary-foreground","shadow-sm hover:shadow-md active:scale-[0.98] "),children:"Confirm"})]})}),F&&F.length>0?g.jsx(b.Suspense,{fallback:g.jsx(Ti,{variant:"card"}),children:g.jsx(s6,{count:F.length,renderItem:(j,K)=>{const T=F[j];return g.jsx(b.Suspense,{fallback:g.jsx(Ti,{variant:"card"}),children:g.jsx(l6,{doctor:T,doctorDetails:u?.[T.doctor_id],disabled:s,onSelect:C,isActive:K})},T.doctor_id)}})}):null,N&&g.jsx(b.Suspense,{fallback:g.jsx(Ti,{variant:"card"}),children:g.jsx(o6,{cards:N,onSelect:async j=>{await i({...j,toolCalled:!0,tool_key:t,messageId:A})},orientation:r.orientation,disabled:m||s})}),O&&g.jsx(b.Suspense,{fallback:g.jsx(Ti,{variant:"media"}),children:g.jsx("div",{className:"mt-3",children:g.jsx(c6,{card:O})})})]})}function f6({id:A,role:t,content:r,files:i,isLastMessage:s,progressMessage:l,toolKeys:c,elicitationState:u,toolCallStatus:f,onSendMessage:h,onToggleFeedback:m,disabled:B,onClearElicitationState:w,isAuthComponent:C,isFullScreen:E}){const v=t==="user",[F,Q]=b.useState(hA.USER_FEEDBACK.NONE),N=qA(K=>K.isStreaming),O=K=>{Q(K),m(K)},j=!!(r?.trim()||i&&i.length>0||f||l);return g.jsxs(g.Fragment,{children:[j&&g.jsx("div",{className:mA("flex",v?"justify-end":"justify-start"),children:g.jsx("div",{className:mA("flex gap-3",v?"flex-row-reverse":"flex-row",v?"max-w-[60%]":E?"w-full":"max-w-xs"),children:g.jsxs("div",{className:"flex flex-col",children:[g.jsxs(Pr,{className:mA("px-4 py-2 rounded-lg shadow-none break-words overflow-wrap-anywhere whitespace-pre-wrap",v?"bg-primary text-primary-foreground shadow-sm":mA("text-foreground shadow-sm bg-botMessage blur-xs border border-black-200 dark:border-white-200"),E&&!v&&"!bg-transparent !shadow-none !border-0 !rounded-none !px-0 !py-0 !backdrop-blur-none !blur-none text-black-900"),children:[f&&!v&&g.jsx("div",{className:"text-xs text-muted-foreground mb-2 pb-2 border-b border-border-subtle",children:f}),!f&&l&&!v&&s&&g.jsx("p",{className:"text-sm font-medium text-muted-foreground pb-2",children:l}),r&&g.jsx("div",{className:mA("markdown-content",E&&!v?"text-base leading-6":"text-sm"),children:g.jsx(jB,{children:`${r} ${!v&&N&&s?"...":""}`})}),i&&i.length>0&&g.jsx("div",{className:"mt-2",children:g.jsx(Zu,{files:i,isPreview:!1,className:""})}),l&&!v&&s&&g.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:l})]}),!v&&!N&&s&&r&&F===hA.USER_FEEDBACK.NONE&&g.jsx("div",{className:"flex items-center gap-2 self-start mt-1",children:g.jsxs("div",{className:"flex items-center gap-1",children:[g.jsx(jA,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-black-500 dark:text-white-500 hover:text-foreground",onClick:()=>O(hA.USER_FEEDBACK.LIKE),children:g.jsx(jp,{className:"h-3 w-3"})}),g.jsx(jA,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-black-500 dark:text-white-500 hover:text-foreground",onClick:()=>O(hA.USER_FEEDBACK.DISLIKE),children:g.jsx(Kp,{className:"h-3 w-3"})})]})}),!v&&!N&&s&&F===hA.USER_FEEDBACK.LIKE&&g.jsx("div",{className:"flex items-center gap-2 self-start mt-1",children:g.jsx(jA,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-primary",disabled:!0,children:g.jsx(jp,{className:"h-3 w-3"})})}),!v&&!N&&s&&F===hA.USER_FEEDBACK.DISLIKE&&g.jsx("div",{className:"flex items-center gap-2 self-start mt-1",children:g.jsx(jA,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-primary",disabled:!0,children:g.jsx(Kp,{className:"h-3 w-3"})})}),C&&s&&c?.length?g.jsx("div",{className:"flex items-center gap-2 self-start mt-1",children:g.jsx(jA,{variant:"link",size:"sm",className:"h-6 px-0 text-[12px] font-medium text-primary border-b border-dashed border-primary rounded-none bg-transparent no-underline hover:no-underline hover:bg-transparent active:bg-transparent focus-visible:bg-transparent rounded-none",onClick:()=>{const K=c[c.length-1];K&&u[K].active&&w(K,"Cancel OTP Verification")},children:"Cancel OTP Verification"})}):null]})})}),c?.map(K=>{const T=u[K];return T?g.jsx(u6,{messageId:A,tool_key:K,entry:T,onSendMessage:h,disabled:B||T.disabled},K):null})]})}function d6({messages:A,onSendMessage:t,onToggleFeedback:r,onClearElicitationState:i,isAuthComponent:s,isFullScreen:l}){const c=qA(B=>B.isWaitingForResponse),u=qA(B=>B.connectionStatus),f=qA(B=>B.elicitationState),h=u===qe.CONNECTED,m=qA(B=>B.progressMessage);return g.jsxs(g.Fragment,{children:[(A&&A.length>0||m)&&g.jsx(g.Fragment,{children:A.map((B,w)=>g.jsx("div",{className:"animate-slideUp scroll-mt-[80px] min-w-0 overflow-hidden",id:w===A.length-1?"last-message":void 0,children:g.jsx(f6,{id:B.id,role:B.role,content:B.content,files:B.files||[],toolKeys:B.tool_keys,elicitationState:f,timestamp:B.timestamp,onSendMessage:t,isLastMessage:w===A.length-1,progressMessage:m,toolCallStatus:B.toolCallStatus,disabled:!h,onToggleFeedback:C=>r(C,B.id),onClearElicitationState:i,isAuthComponent:s,isFullScreen:l})},B.id))}),c&&g.jsx(h6,{})]})}function h6(){return g.jsx("div",{className:"animate-slideUp",children:g.jsx("div",{className:"flex justify-start",children:g.jsx("div",{className:"flex gap-3",children:g.jsx(Pr,{className:"px-4 py-2 rounded-lg shadow-none bg-botMessage backdrop-blur-sm text-text-primary shadow-sm",children:g.jsx("div",{className:"flex items-center gap-1.5","aria-label":"Bot is typing",children:[0,1,2].map(A=>g.jsx("span",{className:"w-2 h-2 rounded-full bg-foreground animate-pulse",style:{animationDelay:`${A*150}ms`}},A))})})})})})}const g6=Object.freeze(Object.defineProperty({__proto__:null,default:d6},Symbol.toStringTag,{value:"Module"}));function p6({message:A,onDismiss:t}){return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"pointer-events-none absolute inset-0 z-[55] bg-black-600","aria-hidden":!0}),g.jsx("div",{className:"pointer-events-none absolute inset-x-3 top-3 z-[60]",role:"presentation",children:g.jsxs("div",{role:"alertdialog","aria-modal":"true","aria-labelledby":"synapse-disp-toast-msg",className:"pointer-events-auto flex w-full flex-row items-center gap-3 rounded-lg border border-border bg-surface p-3 text-left text-foreground opacity-100",onClick:r=>r.stopPropagation(),children:[g.jsx("p",{id:"synapse-disp-toast-msg",className:"min-w-0 flex-1 text-sm font-medium whitespace-pre-wrap",children:A}),g.jsx("button",{type:"button",onClick:t,className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-muted-foreground hover:bg-muted hover:text-foreground","aria-label":"Close",children:g.jsx(ts,{className:"h-4 w-4",strokeWidth:2.5})})]})})]})}function m6(){const A=qA(i=>i.toastMessage),t=qA(i=>i.setToastMessage),r=b.useCallback(()=>{t(null)},[t]);return b.useEffect(()=>{if(!A)return;const i=window.setTimeout(r,3e3);return()=>window.clearTimeout(i)},[A,r]),A?g.jsx(p6,{message:A,onDismiss:r}):null}const B6=Object.freeze(Object.defineProperty({__proto__:null,default:m6},Symbol.toStringTag,{value:"Module"}));function C6({className:A="",onRetry:t,showRetryButton:r,startNewConnection:i,clearError:s,error:l,isConnected:c}){const{isOnline:u}=gm(),[f,h]=b.useState(!0);return b.useEffect(()=>{if(!i&&!r&&!!l){h(!0);const w=setTimeout(()=>h(!1),5e3);return()=>clearTimeout(w)}h(!0)},[l,i,r]),i?g.jsx("div",{className:mA("flex flex-col items-center synapse-chat-widget-footer px-3 pt-3 pb-2 ",A),children:g.jsx("p",{className:"text-text-secondary text-sm max-w-sm mx-auto text-center w-250 mx-4 text-balance",children:"The conversation is now closed. Start a new session to continue."})}):r&&l?.title?g.jsx("div",{className:mA("mx-4 mb-3 p-2 bg-surface border border-[#F7B500] rounded-lg",A),children:g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"w-5 h-5 bg-[#F7B500] rounded-full flex items-center justify-center flex-shrink-0",children:g.jsx("span",{className:"text-primary-foreground text-sm font-bold",children:"!"})}),g.jsxs("div",{className:"flex-1",children:[g.jsx("div",{className:"text-text-primary font-semibold text-sm",children:l?.title}),g.jsx("div",{className:"text-text-secondary text-xs mt-1",children:l?.description??"Please check your connection and try again"})]}),g.jsxs("button",{onClick:()=>{s(),t?.()},className:"px-4 py-2 bg-primary text-primary-foreground text-sm font-semibold rounded-lg hover:bg-primary/90 transition-colors flex items-center gap-2 flex-shrink-0",children:[g.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})}),"Retry"]})]})}):c&&u&&!l?.title||!i&&!r&&!f||!c&&!l?.title?null:g.jsx("div",{className:mA("mx-4 mb-3 p-2 bg-surface border border-border-subtle rounded-lg transition-opacity duration-500",A),children:g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"w-5 h-5 bg-primary rounded-full flex items-center justify-center flex-shrink-0",children:g.jsx("span",{className:"text-primary-foreground text-sm font-bold",children:"!"})}),g.jsxs("div",{className:"flex-1",children:[g.jsx("div",{className:"text-text-primary font-semibold text-sm",children:u?l?.title:"No internet connection"}),g.jsx("div",{className:"text-text-secondary text-xs mt-1",children:u?l?.description??"Please wait while we try to connect":"Please check your internet connection"})]}),!u&&g.jsx("div",{className:"flex-shrink-0",children:g.jsx("div",{className:"w-6 h-6 border-2 border-primary border-t-transparent rounded-full animate-spin"})})]})})}const w6=Object.freeze(Object.defineProperty({__proto__:null,ConnectionStatus:C6},Symbol.toStringTag,{value:"Module"}));function y6({text:A,maxWidth:t="200px",className:r="",icon:i,onClick:s,disabled:l=!1}){const[c,u]=b.useState(!1),f=b.useRef(null),h=b.useRef(null);return b.useEffect(()=>{const m=()=>{if(f.current&&h.current){const B=f.current.offsetWidth,w=h.current.scrollWidth;u(w>B)}};return m(),window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)},[A,t]),A?g.jsxs("div",{ref:f,onClick:l?void 0:s,className:mA("inline-flex items-center gap-2 rounded-lg border border-primary bg-elicitationBg px-3 py-2 shadow-sm text-xs text-primary cursor-pointer",r,l?"opacity-50 cursor-not-allowed":""),style:{maxWidth:t,WebkitTapHighlightColor:"transparent",outline:"none"},title:A,children:[i&&g.jsx("span",{className:"text-primary",children:i}),g.jsx("div",{className:"pill-marquee-wrapper",children:g.jsx("span",{ref:h,className:mA("block whitespace-normal",c?"pill-marquee":""),children:A})})]}):null}const E6=Object.freeze(Object.defineProperty({__proto__:null,Pills:y6},Symbol.toStringTag,{value:"Module"}));var v6=Zg[" useInsertionEffect ".trim().toString()]||$n;function b6({prop:A,defaultProp:t,onChange:r=()=>{},caller:i}){const[s,l,c]=x6({defaultProp:t,onChange:r}),u=A!==void 0,f=u?A:s;{const m=b.useRef(A!==void 0);b.useEffect(()=>{const B=m.current;if(B!==u){const w=B?"controlled":"uncontrolled",C=u?"controlled":"uncontrolled"}m.current=u},[u,i])}const h=b.useCallback(m=>{if(u){const B=S6(m)?m(A):m;B!==A&&c.current?.(B)}else l(m)},[u,A,l,c]);return[f,h]}function x6({defaultProp:A,onChange:t}){const[r,i]=b.useState(A),s=b.useRef(r),l=b.useRef(t);return v6(()=>{l.current=t},[t]),b.useEffect(()=>{s.current!==r&&(l.current?.(r),s.current=r)},[r,s]),[r,i,l]}function S6(A){return typeof A=="function"}function Q6(A){const t=b.useRef({value:A,previous:A});return b.useMemo(()=>(t.current.value!==A&&(t.current.previous=t.current.value,t.current.value=A),t.current.previous),[A])}function U6(A){const[t,r]=b.useState(void 0);return $n(()=>{if(A){r({width:A.offsetWidth,height:A.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const l=s[0];let c,u;if("borderBoxSize"in l){const f=l.borderBoxSize,h=Array.isArray(f)?f[0]:f;c=h.inlineSize,u=h.blockSize}else c=A.offsetWidth,u=A.offsetHeight;r({width:c,height:u})});return i.observe(A,{box:"border-box"}),()=>i.unobserve(A)}else r(void 0)},[A]),t}var Wl="Checkbox",[F6]=i0(Wl),[T6,Rf]=F6(Wl);function I6(A){const{__scopeCheckbox:t,checked:r,children:i,defaultChecked:s,disabled:l,form:c,name:u,onCheckedChange:f,required:h,value:m="on",internal_do_not_use_render:B}=A,[w,C]=b6({prop:r,defaultProp:s??!1,onChange:f,caller:Wl}),[E,v]=b.useState(null),[F,Q]=b.useState(null),N=b.useRef(!1),O=E?!!c||!!E.closest("form"):!0,j={checked:w,disabled:l,setChecked:C,control:E,setControl:v,name:u,form:c,value:m,hasConsumerStoppedPropagationRef:N,required:h,defaultChecked:ar(s)?!1:s,isFormControl:O,bubbleInput:F,setBubbleInput:Q};return g.jsx(T6,{scope:t,...j,children:N6(B)?B(j):i})}var KB="CheckboxTrigger",VB=b.forwardRef(({__scopeCheckbox:A,onKeyDown:t,onClick:r,...i},s)=>{const{control:l,value:c,disabled:u,checked:f,required:h,setControl:m,setChecked:B,hasConsumerStoppedPropagationRef:w,isFormControl:C,bubbleInput:E}=Rf(KB,A),v=bn(s,m),F=b.useRef(f);return b.useEffect(()=>{const Q=l?.form;if(Q){const N=()=>B(F.current);return Q.addEventListener("reset",N),()=>Q.removeEventListener("reset",N)}},[l,B]),g.jsx(Wn.button,{type:"button",role:"checkbox","aria-checked":ar(f)?"mixed":f,"aria-required":h,"data-state":XB(f),"data-disabled":u?"":void 0,disabled:u,value:c,...i,ref:v,onKeyDown:xn(t,Q=>{Q.key==="Enter"&&Q.preventDefault()}),onClick:xn(r,Q=>{B(N=>ar(N)?!0:!N),E&&C&&(w.current=Q.isPropagationStopped(),w.current||Q.stopPropagation())})})});VB.displayName=KB;var Lf=b.forwardRef((A,t)=>{const{__scopeCheckbox:r,name:i,checked:s,defaultChecked:l,required:c,disabled:u,value:f,onCheckedChange:h,form:m,...B}=A;return g.jsx(I6,{__scopeCheckbox:r,checked:s,defaultChecked:l,disabled:u,required:c,onCheckedChange:h,name:i,form:m,value:f,internal_do_not_use_render:({isFormControl:w})=>g.jsxs(g.Fragment,{children:[g.jsx(VB,{...B,ref:t,__scopeCheckbox:r}),w&&g.jsx(YB,{__scopeCheckbox:r})]})})});Lf.displayName=Wl;var GB="CheckboxIndicator",zB=b.forwardRef((A,t)=>{const{__scopeCheckbox:r,forceMount:i,...s}=A,l=Rf(GB,r);return g.jsx(Bi,{present:i||ar(l.checked)||l.checked===!0,children:g.jsx(Wn.span,{"data-state":XB(l.checked),"data-disabled":l.disabled?"":void 0,...s,ref:t,style:{pointerEvents:"none",...A.style}})})});zB.displayName=GB;var PB="CheckboxBubbleInput",YB=b.forwardRef(({__scopeCheckbox:A,...t},r)=>{const{control:i,hasConsumerStoppedPropagationRef:s,checked:l,defaultChecked:c,required:u,disabled:f,name:h,value:m,form:B,bubbleInput:w,setBubbleInput:C}=Rf(PB,A),E=bn(r,C),v=Q6(l),F=U6(i);b.useEffect(()=>{const N=w;if(!N)return;const O=window.HTMLInputElement.prototype,K=Object.getOwnPropertyDescriptor(O,"checked").set,T=!s.current;if(v!==l&&K){const L=new Event("click",{bubbles:T});N.indeterminate=ar(l),K.call(N,ar(l)?!1:l),N.dispatchEvent(L)}},[w,v,l,s]);const Q=b.useRef(ar(l)?!1:l);return g.jsx(Wn.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??Q.current,required:u,disabled:f,name:h,value:m,form:B,...t,tabIndex:-1,ref:E,style:{...t.style,...F,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});YB.displayName=PB;function N6(A){return typeof A=="function"}function ar(A){return A==="indeterminate"}function XB(A){return ar(A)?"indeterminate":A?"checked":"unchecked"}const Df=b.forwardRef(({className:A,...t},r)=>g.jsx(Lf,{ref:r,className:mA("grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",A),...t,children:g.jsx(zB,{className:mA("grid place-content-center text-current"),children:g.jsx(_u,{className:"h-4 w-4"})})}));Df.displayName=Lf.displayName;function H6({options:A,selectedValues:t,onSelectionChange:r,additionalOption:i,className:s,required:l=!0,maxSelections:c,disabled:u}){const f=i?{id:`extra-${i}`,label:i==="all_of_the_above"?"All of the above":"None of the above",value:i==="all_of_the_above"?"All of the above":"None of the above"}:null,h=v=>f?v.filter(F=>F!==f.value):v,m=v=>f?i==="none_of_the_above"?v?[f.value]:[]:i==="all_of_the_above"?v?[...A.map(F=>F.value),f.value]:h(t):v?[...t,f.value]:h(t):t,B=(v,F)=>{const Q=f?h(t):t;return F?c&&Q.length>=c?null:[...Q,v]:Q.filter(N=>N!==v)},w=v=>!(l&&v.length===0&&t.length===1),C=(v,F)=>{const N=f&&v===f.value?m(F):B(v,F);N!==null&&w(N)&&r(N)},E=f?t.filter(v=>v!==f.value).length:t.length;return A.length?g.jsxs("div",{className:mA(s),children:[g.jsxs("div",{className:"space-y-3",children:[A.map(v=>{const F=u||c&&E>=c&&!t.includes(v.value);let Q=t.includes(v.value);return g.jsxs("div",{className:"flex items-center space-x-3",children:[g.jsx(Df,{id:v.id,checked:Q,disabled:!!F,onCheckedChange:N=>C(v.value,!!N),className:"mt-0.5 border border-muted-foreground text-primary-foreground"}),g.jsx("label",{htmlFor:v.id,className:mA("text-sm font-normal leading-4 cursor-pointer",F?"text-muted-foreground cursor-not-allowed":Q?"text-primary":"text-secondary-foreground"),children:v.label})]},v.id)}),f&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"border-t border-border-medium my-3"}),g.jsxs("div",{className:"flex items-center space-x-3",children:[g.jsx(Df,{id:f.id,checked:t.includes(f.value),onCheckedChange:v=>C(f.value,v),className:"mt-0.5 border border-muted-foreground"}),g.jsx("label",{htmlFor:f.id,className:"text-sm font-medium leading-none cursor-pointer text-secondary-foreground",children:f.label})]})]})]}),c&&E>=c&&g.jsx("p",{className:"text-sm text-blue-600 mt-3",children:c===1?"You can select only 1 option":`Maximum ${c} selections allowed`})]}):null}const _6=Object.freeze(Object.defineProperty({__proto__:null,MultiSelectGroup:H6},Symbol.toStringTag,{value:"Module"})),qB=12,M6=.76,O6=3;function JB({count:A,renderItem:t,className:r}){const[i,s]=b.useState(0),[l,c]=b.useState(0),[u,f]=b.useState(()=>Math.min(O6,A)),h=b.useRef(null),m=b.useRef(0),B=b.useRef(0);if(b.useEffect(()=>{f(F=>Math.max(F,Math.min(i+2,A)))},[i,A]),b.useLayoutEffect(()=>{const F=h.current;if(!F)return;c(F.clientWidth);const Q=new ResizeObserver(([N])=>c(N.contentRect.width));return Q.observe(F),()=>Q.disconnect()},[]),A===0)return null;const w=F=>s(Math.max(0,Math.min(A-1,F)));if(A===1)return g.jsx("div",{className:r??"mt-3",children:t(0,!0)});const C=l*M6,E=(l-C)/2,v=l>0?E-i*(C+qB):0;return g.jsx("div",{ref:h,className:mA("mt-3 w-full",r),children:l>0&&g.jsxs("div",{className:"relative w-full",children:[g.jsx("div",{className:"w-full overflow-hidden py-3",onTouchStart:F=>{m.current=F.touches[0].clientX,B.current=F.touches[0].clientY},onTouchEnd:F=>{const Q=F.changedTouches[0].clientX-m.current,N=F.changedTouches[0].clientY-B.current;Math.abs(Q)>Math.abs(N)&&Math.abs(Q)>50&&w(i+(Q<0?1:-1))},children:g.jsx("div",{className:"flex items-center",style:{transform:`translateX(${v}px)`,transition:"transform 400ms cubic-bezier(0.4, 0, 0.2, 1)",gap:`${qB}px`},"aria-live":"polite",children:Array.from({length:u},(F,Q)=>{const N=Q===i;return g.jsx("div",{"aria-hidden":!N,style:{flex:`0 0 ${C}px`,position:"relative",opacity:N?1:.6,transform:N?"scale(1.05)":"scale(0.9)",zIndex:N?20:10,transition:"all 400ms cubic-bezier(0.4, 0, 0.2, 1)",borderRadius:12},children:t(Q,N)},Q)})})}),i>0&&g.jsx("button",{type:"button","aria-label":"Previous",onClick:()=>w(i-1),className:"absolute left-0 top-1/2 -translate-y-1/2 z-10 h-10 w-10 p-2 flex items-center justify-center rounded-full bg-background/90 shadow-md border border-primary text-primary hover:bg-muted transition-colors",children:g.jsx(Rp,{size:18})}),i<A-1&&g.jsx("button",{type:"button","aria-label":"Next",onClick:()=>w(i+1),className:"absolute right-0 top-1/2 -translate-y-1/2 z-10 h-10 w-10 p-2 flex items-center justify-center rounded-full bg-background/90 shadow-md border border-primary text-primary hover:bg-muted transition-colors",children:g.jsx(Lp,{size:18})})]})})}const R6=Object.freeze(Object.defineProperty({__proto__:null,FocusCarousel:JB},Symbol.toStringTag,{value:"Module"}));function L6({value:A,onValueChange:t,placeholder:r="Select an option",className:i,triggerClassName:s,contentClassName:l,disabled:c=!1,options:u=[],size:f="default",icon:h}){const[m,B]=b.useState(!1),w=b.useRef(null),C=b.useRef(null),E=u.find(Q=>Q.value===A);b.useEffect(()=>{const Q=N=>{m&&N.key==="Escape"&&(B(!1),C.current?.focus())};return document.addEventListener("keydown",Q),()=>{document.removeEventListener("keydown",Q)}},[m]);const v=Q=>{t?.(Q),B(!1),C.current?.focus()},F=()=>{c||B(!m)};return g.jsxs("div",{className:mA("relative w-full",i),children:[g.jsxs("button",{ref:C,type:"button",onClick:F,disabled:c,className:mA('border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*="text-"])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-full items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 overflow-hidden',f==="default"?"min-h-9":"min-h-8",s),"aria-expanded":m,"aria-haspopup":"listbox",children:[h,g.jsx("span",{className:mA("flex-1 text-left min-w-0 overflow-hidden break-words line-clamp-2",!E&&"text-muted-foreground"),children:E?E.label:r}),g.jsx(es,{className:mA("size-4 opacity-50 pointer-events-none shrink-0 transition-transform duration-200",m&&"rotate-180")})]}),m&&g.jsx("div",{ref:w,className:mA("bg-surface text-foreground animate-in fade-in-0 zoom-in-95 slide-in-from-top-2 relative z-50 max-h-[136px] min-w-[8rem] w-full overflow-x-hidden overflow-y-auto overscroll-contain rounded-md shadow-md mt-1",l),role:"listbox",children:g.jsx("div",{className:"p-1",children:u.length===0?g.jsx("div",{className:"px-3 py-2 text-sm text-muted-foreground text-center",children:"No options available"}):u.map(Q=>{const N=Q.value===A;return g.jsxs("div",{onClick:()=>v(Q.value),className:mA("relative flex w-full cursor-pointer items-center gap-1 rounded-sm py-2.5 px-3 text-sm outline-none select-none transition-colors duration-150","hover:bg-accent hover:text-accent-foreground","focus-visible:bg-accent focus-visible:text-accent-foreground","active:bg-accent/80",N&&"bg-accent/50 text-foreground",c&&"pointer-events-none opacity-50 cursor-not-allowed"),role:"option","aria-selected":N,tabIndex:c?-1:0,onKeyDown:O=>{(O.key==="Enter"||O.key===" ")&&(O.preventDefault(),c||v(Q.value))},children:[g.jsx("span",{className:"flex-1 text-left min-w-0 break-words line-clamp-2",children:Q.label}),N&&g.jsx("span",{className:"absolute right-3 flex size-4 items-center justify-center shrink-0 pointer-events-none",children:g.jsx(_u,{className:"size-4 text-foreground"})})]},Q.value)})})})]})}function D6({doctor:A,doctorDetails:t,onSelect:r,disabled:i,isActive:s=!0}){const l=b.useMemo(()=>{if(t?.hospitals?.[0]?.hospital_id)return t?.hospitals?.[0]?.hospital_id},[t?.hospitals]),[c,u]=b.useState(l),[f,h]=b.useState(!1),[m,B]=b.useState(null),[w,C]=b.useState(null),[E,v]=b.useState(0),[F,Q]=b.useState(!1),[N,O]=b.useState(!1),[j,K]=b.useState(!1),[T,L]=b.useState(!1),R=b.useRef(!1),_=b.useRef(null);b.useEffect(()=>{u(l)},[l]);const X=A.availability??[],nA=b.useCallback(async()=>{if(!j&&(O(!0),!X.length&&r&&t)){K(!0);try{await r({...A,hospital_id:c})}finally{K(!1)}}},[N,j,r,t,X.length,c]),z=b.useCallback(U=>{t&&(u(U),B(null),C(null),v(0),R.current=!1,r?.({...A,hospital_id:U}))},[A,r,t]);b.useEffect(()=>{s||O(!1)},[s]),b.useEffect(()=>{if(!N||!X.length||R.current)return;R.current=!0;const U=A.preferred_date||X[0]?.date;U&&(B(S=>S??U),X.find(S=>S.date===U)?.slots?.length||r?.({...A,hospital_id:c,preferred_date:U}))},[X,N]);const lA=b.useMemo(()=>X.find(U=>U.date===m)?.slots??[],[X,m]);b.useLayoutEffect(()=>{const U=_.current;U&&(U.scrollTop=0,L(U.scrollHeight>U.clientHeight+2))},[m,lA.length]);const Z=b.useCallback(()=>{const U=_.current;U&&L(U.scrollTop+U.clientHeight<U.scrollHeight-4)},[]),eA=()=>{_.current?.scrollBy({top:120,behavior:"smooth"})},D=b.useMemo(()=>{if(!X.length)return[];const U=Math.min(E+3,X.length);return X.slice(E,U).map(M=>{if(M.date)return{...M,...hx(M.date)}})},[X,E]),W=E>0,AA=E<Math.max(0,(X||[]).length-3),gA=b.useCallback(async U=>{B(U),C(null);const M=X.find(S=>S.date===U);if(!(M?.slots?.length||Array.isArray(M?.slots)&&M?.slots.length===0)){h(!0);try{await r?.({...A,hospital_id:c,preferred_date:U})}catch{}finally{h(!1)}}},[A,c,r,X]),I=()=>{if(!w||!m||F)return;Q(!0);const U=A.cta?.text;r?.({...A,hospital_id:c,preferred_date:m,preferred_slot_time:w},`${U||`I want to book an appointment with Dr. ${t?.name}`} on ${m} at ${w}.`,A.cta?.tool_result)};return t?g.jsxs(Pr,{className:"max-w-md rounded-xl border border-black-200 dark:border-white-200 shadow-none p-0 bg-elicitationBg overflow-hidden",children:[g.jsxs(Lu,{className:"flex flex-row items-center gap-3 bg-primary/[20%] rounded-t-xl p-2 border-b border-border-subtle overflow-hidden",children:[g.jsxs(Vu,{className:"h-12 w-12 ring-2 ring-primary/20 flex-shrink-0",children:[t.profile_pic&&g.jsx(sm,{src:t.profile_pic,alt:`${t.name} profile photo`,crossOrigin:"anonymous"}),g.jsx(Gu,{className:"bg-secondary text-primary",children:dx(t.name)})]}),g.jsxs("div",{className:"min-w-0",children:[g.jsxs("div",{className:"flex flex-wrap items-baseline gap-2",children:[g.jsx("h3",{className:"text-base font-bold text-slate-900",children:t.name}),t.profile_link&&g.jsx("a",{href:t.profile_link,target:"_blank",rel:"noreferrer","aria-label":"View profile",className:"text-primary hover:text-primary/70 transition-colors",children:g.jsx(rb,{className:"h-3.5 w-3.5","aria-hidden":!0})})]}),g.jsxs("p",{className:"mt-0.5 text-xs text-slate-600 line-clamp-1",children:[t.specialty,t.experience&&g.jsxs(g.Fragment,{children:[" • ",t.experience]})]})]})]}),g.jsxs(Ll,{className:"p-3",children:[g.jsxs("div",{className:"grid gap-2 pb-2 border-b border-border-subtle",children:[t.timings&&g.jsxs("div",{className:"flex items-start gap-2 min-w-0",children:[g.jsx(Ab,{className:"h-3.5 w-3.5 text-primary mt-0.5 flex-shrink-0","aria-hidden":!0}),g.jsx("span",{className:"text-text-secondary text-xs line-clamp-1 min-w-0",children:t.timings})]}),t.languages&&g.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[g.jsx(sb,{className:"h-3.5 w-3.5 text-primary flex-shrink-0","aria-hidden":!0}),g.jsx("span",{className:"text-text-secondary text-xs line-clamp-1 min-w-0",children:t.languages})]}),t.hospitals?.length>1&&c?g.jsx(L6,{options:t.hospitals.map(U=>({value:U.hospital_id,label:U.name||""})),placeholder:"Select Hospital",disabled:i,onValueChange:z,value:c,triggerClassName:"h-8 text-xs px-3 rounded-lg border-border text-primary font-medium",icon:g.jsx(Rl,{className:"h-3.5 w-3.5 text-primary flex-shrink-0","aria-hidden":!0})}):g.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[g.jsx(Rl,{className:"h-3.5 w-3.5 text-primary flex-shrink-0","aria-hidden":!0}),g.jsx("span",{className:"text-text-secondary text-xs line-clamp-1 min-w-0",children:t.hospitals?.[0]?.name||""})]})]}),N?j?g.jsx("p",{className:"pt-3 text-sm text-text-secondary text-center",children:"Loading..."}):X.length>0?g.jsxs("div",{className:"pt-3",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(jA,{type:"button",variant:"outline",size:"icon",onClick:()=>{v(U=>Math.max(0,U-3)),C(null)},disabled:i||!W,"aria-label":"Previous 3 days",className:"h-8 w-8 flex-shrink-0 rounded-md border-primary/20 bg-surface text-primary hover:bg-surface-secondary disabled:opacity-50",children:g.jsx(Rp,{className:"h-4 w-4"})}),g.jsx("div",{className:"flex-1 grid grid-cols-3 gap-1 min-w-0",children:D.map((U,M)=>{if(!U||!U.date)return null;const S=m===U.date,aA=(U?.slots||[]).length>0;return g.jsxs(jA,{type:"button",variant:"outline",onClick:()=>U.date&&gA(U.date),disabled:i,"aria-current":S?"date":void 0,className:mA("flex flex-col items-center justify-center h-12 rounded-lg border-2 p-2 gap-0.5 min-w-0 transition-all",S?"border-primary border-2 ring-2 ring-primary/20 bg-primary/[20%] shadow-sm hover:text-accent-foreground":aA?"border-primary/30 bg-elicitationBg hover:bg-primary/10 hover:text-accent-foreground hover:border-primary/40":"border-border bg-elicitationBg opacity-60 hover:bg-primary/10 hover:text-accent-foreground hover:border-primary/30"),children:[g.jsx("span",{className:mA("text-[10px] tracking-wide w-full text-center font-medium"),children:U.weekday}),g.jsx("span",{className:mA("text-xs font-bold w-full text-center"),children:U.dayNum})]},`${U.date}-${M}`)})}),g.jsx(jA,{type:"button",variant:"outline",size:"icon",onClick:()=>{v(U=>Math.min(Math.max(0,X.length-3),U+3)),C(null)},disabled:i||!AA,"aria-label":"Next 3 days",className:"h-8 w-8 flex-shrink-0 rounded-md border-primary/20 bg-surface text-primary hover:bg-surface-secondary disabled:opacity-50",children:g.jsx(Lp,{className:"h-4 w-4"})})]}),m&&g.jsx("div",{className:"mt-2",children:lA.length>0?g.jsxs("div",{className:"relative",children:[g.jsx("div",{ref:_,onScroll:Z,className:"grid grid-cols-3 gap-2 overflow-y-auto overscroll-contain",style:{maxHeight:"108px"},children:lA.map((U,M)=>{if(!U)return null;const S=w===U;return g.jsx(jA,{type:"button",variant:"outline",onClick:()=>C(U),"aria-pressed":S,disabled:i,className:mA("h-9 rounded-lg px-2 text-xs font-medium transition-all",S?"border-primary bg-primary/20 text-primary shadow-sm hover:bg-primary/10":"border-border bg-elicitationBg text-text-primary hover:bg-primary/10 hover:border-primary/30"),children:g.jsx("span",{children:U})},U||`slot-${M}`)})}),T&&g.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-12 bg-gradient-to-t from-elicitationBg via-elicitationBg to-transparent pointer-events-none flex items-end justify-center pb-1",children:g.jsxs("button",{type:"button",onClick:eA,className:"pointer-events-auto flex items-center gap-1 text-xs font-semibold text-primary hover:text-primary/80 transition-colors",children:[g.jsx(es,{className:"h-3.5 w-3.5","aria-hidden":!0}),"More slots"]})})]}):f?g.jsx("p",{className:"text-sm text-text-secondary px-1",children:"Fetching slots..."}):g.jsx("p",{className:"text-sm text-text-secondary px-1",children:"No slots available."})}),g.jsxs(jA,{type:"button",onClick:I,disabled:!w||i||F,"aria-disabled":!w||F,className:`w-full h-10 gap-2 bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-60 shadow-sm font-semibold ${T?"":" mt-2"}`,children:[A.cta?.title||"Book appointment",g.jsx(Z4,{className:"h-4 w-4","aria-hidden":!0})]})]}):g.jsx("p",{className:"pt-3 text-sm text-text-secondary text-center",children:"No slots available."}):g.jsx("div",{className:"pt-3",children:g.jsxs(jA,{type:"button",variant:"outline",onClick:nA,disabled:i||j,className:"w-full h-8 gap-1.5 text-xs border-primary/40 text-primary hover:bg-primary/10 disabled:opacity-60 font-medium rounded-lg",children:[j?"Loading...":"Show available slots",g.jsx(es,{className:"h-3.5 w-3.5","aria-hidden":!0})]})})]})]}):null}const k6=Object.freeze(Object.defineProperty({__proto__:null,DoctorCard:D6},Symbol.toStringTag,{value:"Module"})),j6={voucher:pb,pharmacy:Op,hospital:Op,map:ob,location_pin:Rl,"location pin":Rl,check:_u,calendar:W4,rupee:ab,dollar:eb,euro:nb};function $l({name:A,className:t,size:r=16}){const i=A?.trim().toLowerCase().replace(/\s+/g,"_");if(!i)return null;const s=j6[i];if(s)return g.jsx(s,{className:t,size:r,"aria-hidden":!0})}function ZB({card:A,onSelect:t,disabled:r=!1}){const{title:i,tags:s,icon:l,img:c,description:u,banner_text:f,items:h,primary_cta:m,secondary_cta:B}=A,w=E=>{if(!r&&(E.link&&window.open(E.link,"_blank","noopener,noreferrer"),E.text||E.title)){let v=!1;A?.primary_cta?.tool_result&&(v=!0),t?.({message:E.text||E.title,selectedCard:A?.title,selectedComponent:A,selected_id:A.card_id,...v?{tool_result:A.primary_cta?.tool_result}:{}})}},C=!!c;return g.jsxs(Pr,{className:"w-full h-full flex flex-col overflow-hidden rounded-xl border border-black-200 dark:border-white-200 bg-elicitationBg text-card-foreground shadow-none",children:[g.jsxs(Lu,{className:`flex flex-row items-center justify-between gap-3 p-3 ${C?"bg-primary/[20%]":""}`,children:[g.jsxs("div",{className:"min-w-0 flex-1 overflow-hidden",children:[i?g.jsx(Yp,{className:"text-base font-bold leading-tight tracking-tight truncate",children:i}):null,s?g.jsx("p",{className:"mt-1 text-sm text-muted-foreground truncate",children:s}):null]}),C?g.jsx("div",{className:"shrink-0",children:g.jsx("img",{src:c,alt:i??"profile",className:"h-16 w-16 rounded-full object-cover border-2 border-background"})}):l?g.jsx("div",{className:"shrink-0 text-muted-foreground",children:g.jsx($l,{name:l,size:24,className:"text-primary"})}):null]}),g.jsxs(Ll,{className:"flex-1 space-y-3 pt-3 overflow-hidden",children:[u?g.jsx("div",{className:"text-sm text-foreground leading-snug prose prose-sm max-w-none prose-strong:font-semibold prose-p:my-0 break-words",children:g.jsx(jB,{children:u})}):null,f?g.jsx("div",{className:"rounded-full px-4 py-2 text-center text-sm font-semibold bg-primary/15 text-primary truncate",children:f}):null,h?.length?g.jsx("div",{className:"flex flex-col gap-y-1",children:h.map((E,v)=>g.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-foreground min-w-0",children:[E.icon?g.jsx($l,{name:E.icon,size:12,className:"shrink-0 text-muted-foreground"}):null,g.jsx("span",{className:"truncate",children:E.text})]},v))}):null]}),m?.title||B?.title?g.jsxs(Xp,{className:"flex justify-center flex-wrap gap-2 pt-0",children:[m&&g.jsxs(jA,{type:"button",variant:"default",size:"sm",className:`gap-1.5 truncate ${B?"":"w-full"}`,disabled:r,onClick:()=>w(m),children:[m.icon?g.jsx($l,{name:m.icon,size:14,className:"shrink-0"}):null,g.jsx("span",{className:"truncate",children:m.title})]}),B&&g.jsxs(jA,{type:"button",variant:"outline",size:"sm",className:"gap-1.5 truncate",disabled:r,onClick:()=>w(B),children:[B.icon?g.jsx($l,{name:B.icon,size:14,className:"shrink-0"}):null,g.jsx("span",{className:"truncate",children:B.title})]})]}):null]})}function K6({cards:A,onSelect:t,disabled:r=!1,className:i,orientation:s="vertical"}){const[l,c]=b.useState(!1),u=b.useRef(!1);if(!A?.length)return g.jsx("p",{className:"text-sm text-muted-foreground py-2",children:"No options available."});const f=async h=>{u.current||(u.current=!0,c(!0),await t?.(h))};return s!=="horizontal"?g.jsx("div",{className:i??"flex flex-col gap-3 mt-3",children:A.map((h,m)=>g.jsx(ZB,{card:h,onSelect:f,disabled:r||l},h.card_id||m))}):g.jsx(JB,{count:A.length,renderItem:h=>g.jsx(ZB,{card:A[h],onSelect:f,disabled:r||l})})}const V6=Object.freeze(Object.defineProperty({__proto__:null,CardList:K6},Symbol.toStringTag,{value:"Module"}));function WB(A){return A.toLowerCase().endsWith(".pdf")}function G6(A){const t=document?.createElement("a");t.href=A,t.download=A.split("/").pop()??"download.pdf",t.target="_blank",t.click(),document?.body?.removeChild(t)}async function z6(A){if(!A.current)return;const t=(await Promise.resolve().then(()=>ew)).default,r=await t(A.current,{useCORS:!0}),i=document.createElement("a");i.href=r.toDataURL("image/png"),i.download="card.png",i.click()}async function P6(A){if(!A.current)return;const t=(await Promise.resolve().then(()=>ew)).default,r=await t(A.current,{useCORS:!0}),i=document.createElement("a");i.href=r.toDataURL("image/png"),i.download=`screenshot-${Date.now()}.png`,i.click()}function Y6({card:A}){const{title:t,description:r,tags_text:i,banner_text:s,action:l,link:c}=A,u=b.useRef(null),f=c&&!WB(c),h=()=>{l==="screenshot"?P6(u):l==="download"&&(c&&WB(c)?G6(c):z6(u))};return g.jsxs("div",{className:"flex flex-col gap-2",children:[g.jsx(Pr,{ref:u,className:"overflow-hidden rounded-xl border border-border bg-elicitationBg text-card-foreground shadow-sm",children:g.jsxs(Ll,{className:"p-3 space-y-2",children:[g.jsxs("div",{className:`flex items-start gap-3 ${f?"justify-between":"justify-center"}`,children:[g.jsxs("div",{className:`space-y-2 ${f?"min-w-0 flex-1":"flex flex-col items-center"}`,children:[t&&g.jsx("span",{className:"inline-block rounded-full px-3 py-1 text-sm font-semibold bg-primary text-primary-foreground",children:t}),r&&g.jsx("p",{className:`text-sm text-foreground leading-snug ${f?"":"text-center"}`,children:r}),s&&g.jsx("span",{className:"inline-block rounded-full px-3 py-1 text-xs font-semibold bg-green-600 text-white",children:s})]}),f&&g.jsx("div",{className:"shrink-0 h-24 w-24 rounded-lg overflow-hidden border border-border",children:g.jsx("img",{src:c,alt:t??"media",className:"h-full w-full object-cover"})})]}),i&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"border-t border-border"}),g.jsx("p",{className:"text-xs text-muted-foreground",children:i})]})]})}),l&&g.jsx("div",{className:"flex justify-end",children:g.jsxs(jA,{type:"button",variant:"outline",size:"sm",className:"rounded-md px-5 gap-1.5",onClick:h,children:[l==="screenshot"?g.jsx($4,{className:"h-4 w-4"}):g.jsx(tb,{className:"h-4 w-4"}),l==="screenshot"?"Screenshot":"Download"]})})]})}const X6=Object.freeze(Object.defineProperty({__proto__:null,MediaCard:Y6},Symbol.toStringTag,{value:"Module"}));var kf=function(A,t){return kf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},kf(A,t)};function nn(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");kf(A,t);function r(){this.constructor=A}A.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var jf=function(){return jf=Object.assign||function(t){for(var r,i=1,s=arguments.length;i<s;i++){r=arguments[i];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(t[l]=r[l])}return t},jf.apply(this,arguments)};function lt(A,t,r,i){function s(l){return l instanceof r?l:new r(function(c){c(l)})}return new(r||(r=Promise))(function(l,c){function u(m){try{h(i.next(m))}catch(B){c(B)}}function f(m){try{h(i.throw(m))}catch(B){c(B)}}function h(m){m.done?l(m.value):s(m.value).then(u,f)}h((i=i.apply(A,[])).next())})}function at(A,t){var r={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},i,s,l,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(h){return function(m){return f([h,m])}}function f(h){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,s&&(l=h[0]&2?s.return:h[0]?s.throw||((l=s.return)&&l.call(s),0):s.next)&&!(l=l.call(s,h[1])).done)return l;switch(s=0,l&&(h=[h[0]&2,l.value]),h[0]){case 0:case 1:l=h;break;case 4:return r.label++,{value:h[1],done:!1};case 5:r.label++,s=h[1],h=[0];continue;case 7:h=r.ops.pop(),r.trys.pop();continue;default:if(l=r.trys,!(l=l.length>0&&l[l.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!l||h[1]>l[0]&&h[1]<l[3])){r.label=h[1];break}if(h[0]===6&&r.label<l[1]){r.label=l[1],l=h;break}if(l&&r.label<l[2]){r.label=l[2],r.ops.push(h);break}l[2]&&r.ops.pop(),r.trys.pop();continue}h=t.call(A,r)}catch(m){h=[6,m],s=0}finally{i=l=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}}function bH(A,t,r){if(arguments.length===2)for(var i=0,s=t.length,l;i<s;i++)(l||!(i in t))&&(l||(l=Array.prototype.slice.call(t,0,i)),l[i]=t[i]);return A.concat(l||t)}for(var Qn=(function(){function A(t,r,i,s){this.left=t,this.top=r,this.width=i,this.height=s}return A.prototype.add=function(t,r,i,s){return new A(this.left+t,this.top+r,this.width+i,this.height+s)},A.fromClientRect=function(t,r){return new A(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height)},A.fromDOMRectList=function(t,r){var i=Array.from(r).find(function(s){return s.width!==0});return i?new A(i.left+t.windowBounds.left,i.top+t.windowBounds.top,i.width,i.height):A.EMPTY},A.EMPTY=new A(0,0,0,0),A})(),Ao=function(A,t){return Qn.fromClientRect(A,t.getBoundingClientRect())},q6=function(A){var t=A.body,r=A.documentElement;if(!t||!r)throw new Error("Unable to get document size");var i=Math.max(Math.max(t.scrollWidth,r.scrollWidth),Math.max(t.offsetWidth,r.offsetWidth),Math.max(t.clientWidth,r.clientWidth)),s=Math.max(Math.max(t.scrollHeight,r.scrollHeight),Math.max(t.offsetHeight,r.offsetHeight),Math.max(t.clientHeight,r.clientHeight));return new Qn(0,0,i,s)},eo=function(A){for(var t=[],r=0,i=A.length;r<i;){var s=A.charCodeAt(r++);if(s>=55296&&s<=56319&&r<i){var l=A.charCodeAt(r++);(l&64512)===56320?t.push(((s&1023)<<10)+(l&1023)+65536):(t.push(s),r--)}else t.push(s)}return t},Ue=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var r=A.length;if(!r)return"";for(var i=[],s=-1,l="";++s<r;){var c=A[s];c<=65535?i.push(c):(c-=65536,i.push((c>>10)+55296,c%1024+56320)),(s+1===r||i.length>16384)&&(l+=String.fromCharCode.apply(String,i),i.length=0)}return l},$B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",J6=typeof Uint8Array>"u"?[]:new Uint8Array(256),to=0;to<$B.length;to++)J6[$B.charCodeAt(to)]=to;for(var A1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hs=typeof Uint8Array>"u"?[]:new Uint8Array(256),no=0;no<A1.length;no++)hs[A1.charCodeAt(no)]=no;for(var Z6=function(A){var t=A.length*.75,r=A.length,i,s=0,l,c,u,f;A[A.length-1]==="="&&(t--,A[A.length-2]==="="&&t--);var h=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),m=Array.isArray(h)?h:new Uint8Array(h);for(i=0;i<r;i+=4)l=hs[A.charCodeAt(i)],c=hs[A.charCodeAt(i+1)],u=hs[A.charCodeAt(i+2)],f=hs[A.charCodeAt(i+3)],m[s++]=l<<2|c>>4,m[s++]=(c&15)<<4|u>>2,m[s++]=(u&3)<<6|f&63;return h},W6=function(A){for(var t=A.length,r=[],i=0;i<t;i+=2)r.push(A[i+1]<<8|A[i]);return r},$6=function(A){for(var t=A.length,r=[],i=0;i<t;i+=4)r.push(A[i+3]<<24|A[i+2]<<16|A[i+1]<<8|A[i]);return r},Xr=5,Kf=11,Vf=2,A5=Kf-Xr,e1=65536>>Xr,e5=1<<Xr,Gf=e5-1,t5=1024>>Xr,n5=e1+t5,r5=n5,i5=32,a5=r5+i5,s5=65536>>Kf,l5=1<<A5,o5=l5-1,t1=function(A,t,r){return A.slice?A.slice(t,r):new Uint16Array(Array.prototype.slice.call(A,t,r))},c5=function(A,t,r){return A.slice?A.slice(t,r):new Uint32Array(Array.prototype.slice.call(A,t,r))},u5=function(A,t){var r=Z6(A),i=Array.isArray(r)?$6(r):new Uint32Array(r),s=Array.isArray(r)?W6(r):new Uint16Array(r),l=24,c=t1(s,l/2,i[4]/2),u=i[5]===2?t1(s,(l+i[4])/2):c5(i,Math.ceil((l+i[4])/4));return new f5(i[0],i[1],i[2],i[3],c,u)},f5=(function(){function A(t,r,i,s,l,c){this.initialValue=t,this.errorValue=r,this.highStart=i,this.highValueIndex=s,this.index=l,this.data=c}return A.prototype.get=function(t){var r;if(t>=0){if(t<55296||t>56319&&t<=65535)return r=this.index[t>>Xr],r=(r<<Vf)+(t&Gf),this.data[r];if(t<=65535)return r=this.index[e1+(t-55296>>Xr)],r=(r<<Vf)+(t&Gf),this.data[r];if(t<this.highStart)return r=a5-s5+(t>>Kf),r=this.index[r],r+=t>>Xr&o5,r=this.index[r],r=(r<<Vf)+(t&Gf),this.data[r];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),n1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d5=typeof Uint8Array>"u"?[]:new Uint8Array(256),ro=0;ro<n1.length;ro++)d5[n1.charCodeAt(ro)]=ro;var h5="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",r1=50,g5=1,i1=2,a1=3,p5=4,m5=5,s1=7,l1=8,o1=9,sr=10,zf=11,c1=12,Pf=13,B5=14,gs=15,Yf=16,io=17,ps=18,C5=19,u1=20,Xf=21,ms=22,qf=23,Ii=24,Qt=25,Bs=26,Cs=27,Ni=28,w5=29,qr=30,y5=31,ao=32,so=33,Jf=34,Zf=35,Wf=36,ws=37,$f=38,lo=39,oo=40,Ad=41,f1=42,E5=43,v5=[9001,65288],d1="!",GA="×",co="÷",ed=u5(h5),Un=[qr,Wf],td=[g5,i1,a1,m5],h1=[sr,l1],g1=[Cs,Bs],b5=td.concat(h1),p1=[$f,lo,oo,Jf,Zf],x5=[gs,Pf],S5=function(A,t){t===void 0&&(t="strict");var r=[],i=[],s=[];return A.forEach(function(l,c){var u=ed.get(l);if(u>r1?(s.push(!0),u-=r1):s.push(!1),["normal","auto","loose"].indexOf(t)!==-1&&[8208,8211,12316,12448].indexOf(l)!==-1)return i.push(c),r.push(Yf);if(u===p5||u===zf){if(c===0)return i.push(c),r.push(qr);var f=r[c-1];return b5.indexOf(f)===-1?(i.push(i[c-1]),r.push(f)):(i.push(c),r.push(qr))}if(i.push(c),u===y5)return r.push(t==="strict"?Xf:ws);if(u===f1||u===w5)return r.push(qr);if(u===E5)return l>=131072&&l<=196605||l>=196608&&l<=262141?r.push(ws):r.push(qr);r.push(u)}),[i,r,s]},nd=function(A,t,r,i){var s=i[r];if(Array.isArray(A)?A.indexOf(s)!==-1:A===s)for(var l=r;l<=i.length;){l++;var c=i[l];if(c===t)return!0;if(c!==sr)break}if(s===sr)for(var l=r;l>0;){l--;var u=i[l];if(Array.isArray(A)?A.indexOf(u)!==-1:A===u)for(var f=r;f<=i.length;){f++;var c=i[f];if(c===t)return!0;if(c!==sr)break}if(u!==sr)break}return!1},m1=function(A,t){for(var r=A;r>=0;){var i=t[r];if(i===sr)r--;else return i}return 0},Q5=function(A,t,r,i,s){if(r[i]===0)return GA;var l=i-1;if(Array.isArray(s)&&s[l]===!0)return GA;var c=l-1,u=l+1,f=t[l],h=c>=0?t[c]:0,m=t[u];if(f===i1&&m===a1)return GA;if(td.indexOf(f)!==-1)return d1;if(td.indexOf(m)!==-1||h1.indexOf(m)!==-1)return GA;if(m1(l,t)===l1)return co;if(ed.get(A[l])===zf||(f===ao||f===so)&&ed.get(A[u])===zf||f===s1||m===s1||f===o1||[sr,Pf,gs].indexOf(f)===-1&&m===o1||[io,ps,C5,Ii,Ni].indexOf(m)!==-1||m1(l,t)===ms||nd(qf,ms,l,t)||nd([io,ps],Xf,l,t)||nd(c1,c1,l,t))return GA;if(f===sr)return co;if(f===qf||m===qf)return GA;if(m===Yf||f===Yf)return co;if([Pf,gs,Xf].indexOf(m)!==-1||f===B5||h===Wf&&x5.indexOf(f)!==-1||f===Ni&&m===Wf||m===u1||Un.indexOf(m)!==-1&&f===Qt||Un.indexOf(f)!==-1&&m===Qt||f===Cs&&[ws,ao,so].indexOf(m)!==-1||[ws,ao,so].indexOf(f)!==-1&&m===Bs||Un.indexOf(f)!==-1&&g1.indexOf(m)!==-1||g1.indexOf(f)!==-1&&Un.indexOf(m)!==-1||[Cs,Bs].indexOf(f)!==-1&&(m===Qt||[ms,gs].indexOf(m)!==-1&&t[u+1]===Qt)||[ms,gs].indexOf(f)!==-1&&m===Qt||f===Qt&&[Qt,Ni,Ii].indexOf(m)!==-1)return GA;if([Qt,Ni,Ii,io,ps].indexOf(m)!==-1)for(var B=l;B>=0;){var w=t[B];if(w===Qt)return GA;if([Ni,Ii].indexOf(w)!==-1)B--;else break}if([Cs,Bs].indexOf(m)!==-1)for(var B=[io,ps].indexOf(f)!==-1?c:l;B>=0;){var w=t[B];if(w===Qt)return GA;if([Ni,Ii].indexOf(w)!==-1)B--;else break}if($f===f&&[$f,lo,Jf,Zf].indexOf(m)!==-1||[lo,Jf].indexOf(f)!==-1&&[lo,oo].indexOf(m)!==-1||[oo,Zf].indexOf(f)!==-1&&m===oo||p1.indexOf(f)!==-1&&[u1,Bs].indexOf(m)!==-1||p1.indexOf(m)!==-1&&f===Cs||Un.indexOf(f)!==-1&&Un.indexOf(m)!==-1||f===Ii&&Un.indexOf(m)!==-1||Un.concat(Qt).indexOf(f)!==-1&&m===ms&&v5.indexOf(A[u])===-1||Un.concat(Qt).indexOf(m)!==-1&&f===ps)return GA;if(f===Ad&&m===Ad){for(var C=r[l],E=1;C>0&&(C--,t[C]===Ad);)E++;if(E%2!==0)return GA}return f===ao&&m===so?GA:co},U5=function(A,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var r=S5(A,t.lineBreak),i=r[0],s=r[1],l=r[2];(t.wordBreak==="break-all"||t.wordBreak==="break-word")&&(s=s.map(function(u){return[Qt,qr,f1].indexOf(u)!==-1?ws:u}));var c=t.wordBreak==="keep-all"?l.map(function(u,f){return u&&A[f]>=19968&&A[f]<=40959}):void 0;return[i,s,c]},F5=(function(){function A(t,r,i,s){this.codePoints=t,this.required=r===d1,this.start=i,this.end=s}return A.prototype.slice=function(){return Ue.apply(void 0,this.codePoints.slice(this.start,this.end))},A})(),T5=function(A,t){var r=eo(A),i=U5(r,t),s=i[0],l=i[1],c=i[2],u=r.length,f=0,h=0;return{next:function(){if(h>=u)return{done:!0,value:null};for(var m=GA;h<u&&(m=Q5(r,l,s,++h,c))===GA;);if(m!==GA||h===u){var B=new F5(r,m,f,h);return f=h,{value:B,done:!1}}return{done:!0,value:null}}}},I5=1,N5=2,ys=4,B1=8,uo=10,C1=47,Es=92,H5=9,_5=32,fo=34,vs=61,M5=35,O5=36,R5=37,ho=39,go=40,bs=41,L5=95,ht=45,D5=33,k5=60,j5=62,K5=64,V5=91,G5=93,z5=61,P5=123,po=63,Y5=125,w1=124,X5=126,q5=128,y1=65533,rd=42,Jr=43,J5=44,Z5=58,W5=59,xs=46,$5=0,AF=8,eF=11,tF=14,nF=31,rF=127,pn=-1,E1=48,v1=97,b1=101,iF=102,aF=117,sF=122,x1=65,S1=69,Q1=70,lF=85,oF=90,st=function(A){return A>=E1&&A<=57},cF=function(A){return A>=55296&&A<=57343},Hi=function(A){return st(A)||A>=x1&&A<=Q1||A>=v1&&A<=iF},uF=function(A){return A>=v1&&A<=sF},fF=function(A){return A>=x1&&A<=oF},dF=function(A){return uF(A)||fF(A)},hF=function(A){return A>=q5},mo=function(A){return A===uo||A===H5||A===_5},Bo=function(A){return dF(A)||hF(A)||A===L5},U1=function(A){return Bo(A)||st(A)||A===ht},gF=function(A){return A>=$5&&A<=AF||A===eF||A>=tF&&A<=nF||A===rF},lr=function(A,t){return A!==Es?!1:t!==uo},Co=function(A,t,r){return A===ht?Bo(t)||lr(t,r):Bo(A)?!0:!!(A===Es&&lr(A,t))},id=function(A,t,r){return A===Jr||A===ht?st(t)?!0:t===xs&&st(r):st(A===xs?t:A)},pF=function(A){var t=0,r=1;(A[t]===Jr||A[t]===ht)&&(A[t]===ht&&(r=-1),t++);for(var i=[];st(A[t]);)i.push(A[t++]);var s=i.length?parseInt(Ue.apply(void 0,i),10):0;A[t]===xs&&t++;for(var l=[];st(A[t]);)l.push(A[t++]);var c=l.length,u=c?parseInt(Ue.apply(void 0,l),10):0;(A[t]===S1||A[t]===b1)&&t++;var f=1;(A[t]===Jr||A[t]===ht)&&(A[t]===ht&&(f=-1),t++);for(var h=[];st(A[t]);)h.push(A[t++]);var m=h.length?parseInt(Ue.apply(void 0,h),10):0;return r*(s+u*Math.pow(10,-c))*Math.pow(10,f*m)},mF={type:2},BF={type:3},CF={type:4},wF={type:13},yF={type:8},EF={type:21},vF={type:9},bF={type:10},xF={type:11},SF={type:12},QF={type:14},wo={type:23},UF={type:1},FF={type:25},TF={type:24},IF={type:26},NF={type:27},HF={type:28},_F={type:29},MF={type:31},ad={type:32},F1=(function(){function A(){this._value=[]}return A.prototype.write=function(t){this._value=this._value.concat(eo(t))},A.prototype.read=function(){for(var t=[],r=this.consumeToken();r!==ad;)t.push(r),r=this.consumeToken();return t},A.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case fo:return this.consumeStringToken(fo);case M5:var r=this.peekCodePoint(0),i=this.peekCodePoint(1),s=this.peekCodePoint(2);if(U1(r)||lr(i,s)){var l=Co(r,i,s)?N5:I5,c=this.consumeName();return{type:5,value:c,flags:l}}break;case O5:if(this.peekCodePoint(0)===vs)return this.consumeCodePoint(),wF;break;case ho:return this.consumeStringToken(ho);case go:return mF;case bs:return BF;case rd:if(this.peekCodePoint(0)===vs)return this.consumeCodePoint(),QF;break;case Jr:if(id(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case J5:return CF;case ht:var u=t,f=this.peekCodePoint(0),h=this.peekCodePoint(1);if(id(u,f,h))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(Co(u,f,h))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(f===ht&&h===j5)return this.consumeCodePoint(),this.consumeCodePoint(),TF;break;case xs:if(id(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case C1:if(this.peekCodePoint(0)===rd)for(this.consumeCodePoint();;){var m=this.consumeCodePoint();if(m===rd&&(m=this.consumeCodePoint(),m===C1))return this.consumeToken();if(m===pn)return this.consumeToken()}break;case Z5:return IF;case W5:return NF;case k5:if(this.peekCodePoint(0)===D5&&this.peekCodePoint(1)===ht&&this.peekCodePoint(2)===ht)return this.consumeCodePoint(),this.consumeCodePoint(),FF;break;case K5:var B=this.peekCodePoint(0),w=this.peekCodePoint(1),C=this.peekCodePoint(2);if(Co(B,w,C)){var c=this.consumeName();return{type:7,value:c}}break;case V5:return HF;case Es:if(lr(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case G5:return _F;case z5:if(this.peekCodePoint(0)===vs)return this.consumeCodePoint(),yF;break;case P5:return xF;case Y5:return SF;case aF:case lF:var E=this.peekCodePoint(0),v=this.peekCodePoint(1);return E===Jr&&(Hi(v)||v===po)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case w1:if(this.peekCodePoint(0)===vs)return this.consumeCodePoint(),vF;if(this.peekCodePoint(0)===w1)return this.consumeCodePoint(),EF;break;case X5:if(this.peekCodePoint(0)===vs)return this.consumeCodePoint(),bF;break;case pn:return ad}return mo(t)?(this.consumeWhiteSpace(),MF):st(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):Bo(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:Ue(t)}},A.prototype.consumeCodePoint=function(){var t=this._value.shift();return typeof t>"u"?-1:t},A.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},A.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},A.prototype.consumeUnicodeRangeToken=function(){for(var t=[],r=this.consumeCodePoint();Hi(r)&&t.length<6;)t.push(r),r=this.consumeCodePoint();for(var i=!1;r===po&&t.length<6;)t.push(r),r=this.consumeCodePoint(),i=!0;if(i){var s=parseInt(Ue.apply(void 0,t.map(function(f){return f===po?E1:f})),16),l=parseInt(Ue.apply(void 0,t.map(function(f){return f===po?Q1:f})),16);return{type:30,start:s,end:l}}var c=parseInt(Ue.apply(void 0,t),16);if(this.peekCodePoint(0)===ht&&Hi(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var u=[];Hi(r)&&u.length<6;)u.push(r),r=this.consumeCodePoint();var l=parseInt(Ue.apply(void 0,u),16);return{type:30,start:c,end:l}}else return{type:30,start:c,end:c}},A.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return t.toLowerCase()==="url"&&this.peekCodePoint(0)===go?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===go?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},A.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===pn)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===ho||r===fo){var i=this.consumeStringToken(this.consumeCodePoint());return i.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===pn||this.peekCodePoint(0)===bs)?(this.consumeCodePoint(),{type:22,value:i.value}):(this.consumeBadUrlRemnants(),wo)}for(;;){var s=this.consumeCodePoint();if(s===pn||s===bs)return{type:22,value:Ue.apply(void 0,t)};if(mo(s))return this.consumeWhiteSpace(),this.peekCodePoint(0)===pn||this.peekCodePoint(0)===bs?(this.consumeCodePoint(),{type:22,value:Ue.apply(void 0,t)}):(this.consumeBadUrlRemnants(),wo);if(s===fo||s===ho||s===go||gF(s))return this.consumeBadUrlRemnants(),wo;if(s===Es)if(lr(s,this.peekCodePoint(0)))t.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),wo;else t.push(s)}},A.prototype.consumeWhiteSpace=function(){for(;mo(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===bs||t===pn)return;lr(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(t){for(var r=5e4,i="";t>0;){var s=Math.min(r,t);i+=Ue.apply(void 0,this._value.splice(0,s)),t-=s}return this._value.shift(),i},A.prototype.consumeStringToken=function(t){var r="",i=0;do{var s=this._value[i];if(s===pn||s===void 0||s===t)return r+=this.consumeStringSlice(i),{type:0,value:r};if(s===uo)return this._value.splice(0,i),UF;if(s===Es){var l=this._value[i+1];l!==pn&&l!==void 0&&(l===uo?(r+=this.consumeStringSlice(i),i=-1,this._value.shift()):lr(s,l)&&(r+=this.consumeStringSlice(i),r+=Ue(this.consumeEscapedCodePoint()),i=-1))}i++}while(!0)},A.prototype.consumeNumber=function(){var t=[],r=ys,i=this.peekCodePoint(0);for((i===Jr||i===ht)&&t.push(this.consumeCodePoint());st(this.peekCodePoint(0));)t.push(this.consumeCodePoint());i=this.peekCodePoint(0);var s=this.peekCodePoint(1);if(i===xs&&st(s))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),r=B1;st(this.peekCodePoint(0));)t.push(this.consumeCodePoint());i=this.peekCodePoint(0),s=this.peekCodePoint(1);var l=this.peekCodePoint(2);if((i===S1||i===b1)&&((s===Jr||s===ht)&&st(l)||st(s)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),r=B1;st(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[pF(t),r]},A.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),r=t[0],i=t[1],s=this.peekCodePoint(0),l=this.peekCodePoint(1),c=this.peekCodePoint(2);if(Co(s,l,c)){var u=this.consumeName();return{type:15,number:r,flags:i,unit:u}}return s===R5?(this.consumeCodePoint(),{type:16,number:r,flags:i}):{type:17,number:r,flags:i}},A.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(Hi(t)){for(var r=Ue(t);Hi(this.peekCodePoint(0))&&r.length<6;)r+=Ue(this.consumeCodePoint());mo(this.peekCodePoint(0))&&this.consumeCodePoint();var i=parseInt(r,16);return i===0||cF(i)||i>1114111?y1:i}return t===pn?y1:t},A.prototype.consumeName=function(){for(var t="";;){var r=this.consumeCodePoint();if(U1(r))t+=Ue(r);else if(lr(r,this.peekCodePoint(0)))t+=Ue(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),t}},A})(),T1=(function(){function A(t){this._tokens=t}return A.create=function(t){var r=new F1;return r.write(t),new A(r.read())},A.parseValue=function(t){return A.create(t).parseComponentValue()},A.parseValues=function(t){return A.create(t).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var t=this.consumeToken();t.type===31;)t=this.consumeToken();if(t.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var r=this.consumeComponentValue();do t=this.consumeToken();while(t.type===31);if(t.type===32)return r;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var t=[];;){var r=this.consumeComponentValue();if(r.type===32)return t;t.push(r),t.push()}},A.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},A.prototype.consumeSimpleBlock=function(t){for(var r={type:t,values:[]},i=this.consumeToken();;){if(i.type===32||RF(i,t))return r;this.reconsumeToken(i),r.values.push(this.consumeComponentValue()),i=this.consumeToken()}},A.prototype.consumeFunction=function(t){for(var r={name:t.value,values:[],type:18};;){var i=this.consumeToken();if(i.type===32||i.type===3)return r;this.reconsumeToken(i),r.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var t=this._tokens.shift();return typeof t>"u"?ad:t},A.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},A})(),Ss=function(A){return A.type===15},_i=function(A){return A.type===17},se=function(A){return A.type===20},OF=function(A){return A.type===0},sd=function(A,t){return se(A)&&A.value===t},I1=function(A){return A.type!==31},Mi=function(A){return A.type!==31&&A.type!==4},mn=function(A){var t=[],r=[];return A.forEach(function(i){if(i.type===4){if(r.length===0)throw new Error("Error parsing function args, zero tokens for arg");t.push(r),r=[];return}i.type!==31&&r.push(i)}),r.length&&t.push(r),t},RF=function(A,t){return t===11&&A.type===12||t===28&&A.type===29?!0:t===2&&A.type===3},or=function(A){return A.type===17||A.type===15},Me=function(A){return A.type===16||or(A)},N1=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},Ze={type:17,number:0,flags:ys},ld={type:16,number:50,flags:ys},cr={type:16,number:100,flags:ys},Qs=function(A,t,r){var i=A[0],s=A[1];return[Be(i,t),Be(typeof s<"u"?s:i,r)]},Be=function(A,t){if(A.type===16)return A.number/100*t;if(Ss(A))switch(A.unit){case"rem":case"em":return 16*A.number;case"px":default:return A.number}return A.number},H1="deg",_1="grad",M1="rad",O1="turn",yo={name:"angle",parse:function(A,t){if(t.type===15)switch(t.unit){case H1:return Math.PI*t.number/180;case _1:return Math.PI/200*t.number;case M1:return t.number;case O1:return Math.PI*2*t.number}throw new Error("Unsupported angle type")}},R1=function(A){return A.type===15&&(A.unit===H1||A.unit===_1||A.unit===M1||A.unit===O1)},L1=function(A){var t=A.filter(se).map(function(r){return r.value}).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Ze,Ze];case"to top":case"bottom":return kt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Ze,cr];case"to right":case"left":return kt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[cr,cr];case"to bottom":case"top":return kt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[cr,Ze];case"to left":case"right":return kt(270)}return 0},kt=function(A){return Math.PI*A/180},ur={name:"color",parse:function(A,t){if(t.type===18){var r=LF[t.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return r(A,t.values)}if(t.type===5){if(t.value.length===3){var i=t.value.substring(0,1),s=t.value.substring(1,2),l=t.value.substring(2,3);return dr(parseInt(i+i,16),parseInt(s+s,16),parseInt(l+l,16),1)}if(t.value.length===4){var i=t.value.substring(0,1),s=t.value.substring(1,2),l=t.value.substring(2,3),c=t.value.substring(3,4);return dr(parseInt(i+i,16),parseInt(s+s,16),parseInt(l+l,16),parseInt(c+c,16)/255)}if(t.value.length===6){var i=t.value.substring(0,2),s=t.value.substring(2,4),l=t.value.substring(4,6);return dr(parseInt(i,16),parseInt(s,16),parseInt(l,16),1)}if(t.value.length===8){var i=t.value.substring(0,2),s=t.value.substring(2,4),l=t.value.substring(4,6),c=t.value.substring(6,8);return dr(parseInt(i,16),parseInt(s,16),parseInt(l,16),parseInt(c,16)/255)}}if(t.type===20){var u=Fn[t.value.toUpperCase()];if(typeof u<"u")return u}return Fn.TRANSPARENT}},fr=function(A){return(255&A)===0},Ge=function(A){var t=255&A,r=255&A>>8,i=255&A>>16,s=255&A>>24;return t<255?"rgba("+s+","+i+","+r+","+t/255+")":"rgb("+s+","+i+","+r+")"},dr=function(A,t,r,i){return(A<<24|t<<16|r<<8|Math.round(i*255)<<0)>>>0},D1=function(A,t){if(A.type===17)return A.number;if(A.type===16){var r=t===3?1:255;return t===3?A.number/100*r:Math.round(A.number/100*r)}return 0},k1=function(A,t){var r=t.filter(Mi);if(r.length===3){var i=r.map(D1),s=i[0],l=i[1],c=i[2];return dr(s,l,c,1)}if(r.length===4){var u=r.map(D1),s=u[0],l=u[1],c=u[2],f=u[3];return dr(s,l,c,f)}return 0};function od(A,t,r){return r<0&&(r+=1),r>=1&&(r-=1),r<.16666666666666666?(t-A)*r*6+A:r<.5?t:r<.6666666666666666?(t-A)*6*(.6666666666666666-r)+A:A}var j1=function(A,t){var r=t.filter(Mi),i=r[0],s=r[1],l=r[2],c=r[3],u=(i.type===17?kt(i.number):yo.parse(A,i))/(Math.PI*2),f=Me(s)?s.number/100:0,h=Me(l)?l.number/100:0,m=typeof c<"u"&&Me(c)?Be(c,1):1;if(f===0)return dr(h*255,h*255,h*255,1);var B=h<=.5?h*(f+1):h+f-h*f,w=h*2-B,C=od(w,B,u+1/3),E=od(w,B,u),v=od(w,B,u-1/3);return dr(C*255,E*255,v*255,m)},LF={hsl:j1,hsla:j1,rgb:k1,rgba:k1},Us=function(A,t){return ur.parse(A,T1.create(t).parseComponentValue())},Fn={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},DF={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,t){return t.map(function(r){if(se(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},kF={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Eo=function(A,t){var r=ur.parse(A,t[0]),i=t[1];return i&&Me(i)?{color:r,stop:i}:{color:r,stop:null}},K1=function(A,t){var r=A[0],i=A[A.length-1];r.stop===null&&(r.stop=Ze),i.stop===null&&(i.stop=cr);for(var s=[],l=0,c=0;c<A.length;c++){var u=A[c].stop;if(u!==null){var f=Be(u,t);f>l?s.push(f):s.push(l),l=f}else s.push(null)}for(var h=null,c=0;c<s.length;c++){var m=s[c];if(m===null)h===null&&(h=c);else if(h!==null){for(var B=c-h,w=s[h-1],C=(m-w)/(B+1),E=1;E<=B;E++)s[h+E-1]=C*E;h=null}}return A.map(function(v,F){var Q=v.color;return{color:Q,stop:Math.max(Math.min(1,s[F]/t),0)}})},jF=function(A,t,r){var i=t/2,s=r/2,l=Be(A[0],t)-i,c=s-Be(A[1],r);return(Math.atan2(c,l)+Math.PI*2)%(Math.PI*2)},KF=function(A,t,r){var i=typeof A=="number"?A:jF(A,t,r),s=Math.abs(t*Math.sin(i))+Math.abs(r*Math.cos(i)),l=t/2,c=r/2,u=s/2,f=Math.sin(i-Math.PI/2)*u,h=Math.cos(i-Math.PI/2)*u;return[s,l-h,l+h,c-f,c+f]},rn=function(A,t){return Math.sqrt(A*A+t*t)},V1=function(A,t,r,i,s){var l=[[0,0],[0,t],[A,0],[A,t]];return l.reduce(function(c,u){var f=u[0],h=u[1],m=rn(r-f,i-h);return(s?m<c.optimumDistance:m>c.optimumDistance)?{optimumCorner:u,optimumDistance:m}:c},{optimumDistance:s?1/0:-1/0,optimumCorner:null}).optimumCorner},VF=function(A,t,r,i,s){var l=0,c=0;switch(A.size){case 0:A.shape===0?l=c=Math.min(Math.abs(t),Math.abs(t-i),Math.abs(r),Math.abs(r-s)):A.shape===1&&(l=Math.min(Math.abs(t),Math.abs(t-i)),c=Math.min(Math.abs(r),Math.abs(r-s)));break;case 2:if(A.shape===0)l=c=Math.min(rn(t,r),rn(t,r-s),rn(t-i,r),rn(t-i,r-s));else if(A.shape===1){var u=Math.min(Math.abs(r),Math.abs(r-s))/Math.min(Math.abs(t),Math.abs(t-i)),f=V1(i,s,t,r,!0),h=f[0],m=f[1];l=rn(h-t,(m-r)/u),c=u*l}break;case 1:A.shape===0?l=c=Math.max(Math.abs(t),Math.abs(t-i),Math.abs(r),Math.abs(r-s)):A.shape===1&&(l=Math.max(Math.abs(t),Math.abs(t-i)),c=Math.max(Math.abs(r),Math.abs(r-s)));break;case 3:if(A.shape===0)l=c=Math.max(rn(t,r),rn(t,r-s),rn(t-i,r),rn(t-i,r-s));else if(A.shape===1){var u=Math.max(Math.abs(r),Math.abs(r-s))/Math.max(Math.abs(t),Math.abs(t-i)),B=V1(i,s,t,r,!1),h=B[0],m=B[1];l=rn(h-t,(m-r)/u),c=u*l}break}return Array.isArray(A.size)&&(l=Be(A.size[0],i),c=A.size.length===2?Be(A.size[1],s):l),[l,c]},GF=function(A,t){var r=kt(180),i=[];return mn(t).forEach(function(s,l){if(l===0){var c=s[0];if(c.type===20&&c.value==="to"){r=L1(s);return}else if(R1(c)){r=yo.parse(A,c);return}}var u=Eo(A,s);i.push(u)}),{angle:r,stops:i,type:1}},vo=function(A,t){var r=kt(180),i=[];return mn(t).forEach(function(s,l){if(l===0){var c=s[0];if(c.type===20&&["top","left","right","bottom"].indexOf(c.value)!==-1){r=L1(s);return}else if(R1(c)){r=(yo.parse(A,c)+kt(270))%kt(360);return}}var u=Eo(A,s);i.push(u)}),{angle:r,stops:i,type:1}},zF=function(A,t){var r=kt(180),i=[],s=1,l=0,c=3,u=[];return mn(t).forEach(function(f,h){var m=f[0];if(h===0){if(se(m)&&m.value==="linear"){s=1;return}else if(se(m)&&m.value==="radial"){s=2;return}}if(m.type===18){if(m.name==="from"){var B=ur.parse(A,m.values[0]);i.push({stop:Ze,color:B})}else if(m.name==="to"){var B=ur.parse(A,m.values[0]);i.push({stop:cr,color:B})}else if(m.name==="color-stop"){var w=m.values.filter(Mi);if(w.length===2){var B=ur.parse(A,w[1]),C=w[0];_i(C)&&i.push({stop:{type:16,number:C.number*100,flags:C.flags},color:B})}}}}),s===1?{angle:(r+kt(180))%kt(360),stops:i,type:s}:{size:c,shape:l,stops:i,position:u,type:s}},G1="closest-side",z1="farthest-side",P1="closest-corner",Y1="farthest-corner",X1="circle",q1="ellipse",J1="cover",Z1="contain",PF=function(A,t){var r=0,i=3,s=[],l=[];return mn(t).forEach(function(c,u){var f=!0;if(u===0){var h=!1;f=c.reduce(function(B,w){if(h)if(se(w))switch(w.value){case"center":return l.push(ld),B;case"top":case"left":return l.push(Ze),B;case"right":case"bottom":return l.push(cr),B}else(Me(w)||or(w))&&l.push(w);else if(se(w))switch(w.value){case X1:return r=0,!1;case q1:return r=1,!1;case"at":return h=!0,!1;case G1:return i=0,!1;case J1:case z1:return i=1,!1;case Z1:case P1:return i=2,!1;case Y1:return i=3,!1}else if(or(w)||Me(w))return Array.isArray(i)||(i=[]),i.push(w),!1;return B},f)}if(f){var m=Eo(A,c);s.push(m)}}),{size:i,shape:r,stops:s,position:l,type:2}},bo=function(A,t){var r=0,i=3,s=[],l=[];return mn(t).forEach(function(c,u){var f=!0;if(u===0?f=c.reduce(function(m,B){if(se(B))switch(B.value){case"center":return l.push(ld),!1;case"top":case"left":return l.push(Ze),!1;case"right":case"bottom":return l.push(cr),!1}else if(Me(B)||or(B))return l.push(B),!1;return m},f):u===1&&(f=c.reduce(function(m,B){if(se(B))switch(B.value){case X1:return r=0,!1;case q1:return r=1,!1;case Z1:case G1:return i=0,!1;case z1:return i=1,!1;case P1:return i=2,!1;case J1:case Y1:return i=3,!1}else if(or(B)||Me(B))return Array.isArray(i)||(i=[]),i.push(B),!1;return m},f)),f){var h=Eo(A,c);s.push(h)}}),{size:i,shape:r,stops:s,position:l,type:2}},YF=function(A){return A.type===1},XF=function(A){return A.type===2},cd={name:"image",parse:function(A,t){if(t.type===22){var r={url:t.value,type:0};return A.cache.addImage(t.value),r}if(t.type===18){var i=W1[t.name];if(typeof i>"u")throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return i(A,t.values)}throw new Error("Unsupported image type "+t.type)}};function qF(A){return!(A.type===20&&A.value==="none")&&(A.type!==18||!!W1[A.name])}var W1={"linear-gradient":GF,"-moz-linear-gradient":vo,"-ms-linear-gradient":vo,"-o-linear-gradient":vo,"-webkit-linear-gradient":vo,"radial-gradient":PF,"-moz-radial-gradient":bo,"-ms-radial-gradient":bo,"-o-radial-gradient":bo,"-webkit-radial-gradient":bo,"-webkit-gradient":zF},JF={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,t){if(t.length===0)return[];var r=t[0];return r.type===20&&r.value==="none"?[]:t.filter(function(i){return Mi(i)&&qF(i)}).map(function(i){return cd.parse(A,i)})}},ZF={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,t){return t.map(function(r){if(se(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},WF={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,t){return mn(t).map(function(r){return r.filter(Me)}).map(N1)}},$F={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,t){return mn(t).map(function(r){return r.filter(se).map(function(i){return i.value}).join(" ")}).map(A8)}},A8=function(A){switch(A){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Oi;(function(A){A.AUTO="auto",A.CONTAIN="contain",A.COVER="cover"})(Oi||(Oi={}));var e8={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,t){return mn(t).map(function(r){return r.filter(t8)})}},t8=function(A){return se(A)||Me(A)},xo=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},n8=xo("top"),r8=xo("right"),i8=xo("bottom"),a8=xo("left"),So=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(t,r){return N1(r.filter(Me))}}},s8=So("top-left"),l8=So("top-right"),o8=So("bottom-right"),c8=So("bottom-left"),Qo=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,r){switch(r){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},u8=Qo("top"),f8=Qo("right"),d8=Qo("bottom"),h8=Qo("left"),Uo=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,r){return Ss(r)?r.number:0}}},g8=Uo("top"),p8=Uo("right"),m8=Uo("bottom"),B8=Uo("left"),C8={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},w8={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},y8={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,t){return t.filter(se).reduce(function(r,i){return r|E8(i.value)},0)}},E8=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},v8={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},b8={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,t){return t.type===20&&t.value==="normal"?0:t.type===17||t.type===15?t.number:0}},Fo;(function(A){A.NORMAL="normal",A.STRICT="strict"})(Fo||(Fo={}));var x8={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"strict":return Fo.STRICT;case"normal":default:return Fo.NORMAL}}},S8={name:"line-height",initialValue:"normal",prefix:!1,type:4},$1=function(A,t){return se(A)&&A.value==="normal"?1.2*t:A.type===17?t*A.number:Me(A)?Be(A,t):t},Q8={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,t){return t.type===20&&t.value==="none"?null:cd.parse(A,t)}},U8={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},ud={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},To=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},F8=To("top"),T8=To("right"),I8=To("bottom"),N8=To("left"),H8={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,t){return t.filter(se).map(function(r){switch(r.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},_8={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},Io=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},M8=Io("top"),O8=Io("right"),R8=Io("bottom"),L8=Io("left"),D8={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},k8={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},j8={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,t){return t.length===1&&sd(t[0],"none")?[]:mn(t).map(function(r){for(var i={color:Fn.TRANSPARENT,offsetX:Ze,offsetY:Ze,blur:Ze},s=0,l=0;l<r.length;l++){var c=r[l];or(c)?(s===0?i.offsetX=c:s===1?i.offsetY=c:i.blur=c,s++):i.color=ur.parse(A,c)}return i})}},K8={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},V8={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(A,t){if(t.type===20&&t.value==="none")return null;if(t.type===18){var r=P8[t.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return r(t.values)}return null}},G8=function(A){var t=A.filter(function(r){return r.type===17}).map(function(r){return r.number});return t.length===6?t:null},z8=function(A){var t=A.filter(function(f){return f.type===17}).map(function(f){return f.number}),r=t[0],i=t[1],s=t[4],l=t[5],c=t[12],u=t[13];return t.length===16?[r,i,s,l,c,u]:null},P8={matrix:G8,matrix3d:z8},AC={type:16,number:50,flags:ys},Y8=[AC,AC],X8={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,t){var r=t.filter(Me);return r.length!==2?Y8:[r[0],r[1]]}},q8={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Fs;(function(A){A.NORMAL="normal",A.BREAK_ALL="break-all",A.KEEP_ALL="keep-all"})(Fs||(Fs={}));for(var J8={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"break-all":return Fs.BREAK_ALL;case"keep-all":return Fs.KEEP_ALL;case"normal":default:return Fs.NORMAL}}},Z8={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,t){if(t.type===20)return{auto:!0,order:0};if(_i(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},eC={name:"time",parse:function(A,t){if(t.type===15)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},W8={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,t){return _i(t)?t.number:1}},$8={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},AT={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,t){return t.filter(se).map(function(r){switch(r.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(r){return r!==0})}},eT={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,t){var r=[],i=[];return t.forEach(function(s){switch(s.type){case 20:case 0:r.push(s.value);break;case 17:r.push(s.number.toString());break;case 4:i.push(r.join(" ")),r.length=0;break}}),r.length&&i.push(r.join(" ")),i.map(function(s){return s.indexOf(" ")===-1?s:"'"+s+"'"})}},tT={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},nT={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,t){if(_i(t))return t.number;if(se(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},rT={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,t){return t.filter(se).map(function(r){return r.value})}},iT={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Ke=function(A,t){return(A&t)!==0},aT={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(A,t){if(t.length===0)return[];var r=t[0];return r.type===20&&r.value==="none"?[]:t}},sT={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,t){if(t.length===0)return null;var r=t[0];if(r.type===20&&r.value==="none")return null;for(var i=[],s=t.filter(I1),l=0;l<s.length;l++){var c=s[l],u=s[l+1];if(c.type===20){var f=u&&_i(u)?u.number:1;i.push({counter:c.value,increment:f})}}return i}},lT={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(A,t){if(t.length===0)return[];for(var r=[],i=t.filter(I1),s=0;s<i.length;s++){var l=i[s],c=i[s+1];if(se(l)&&l.value!=="none"){var u=c&&_i(c)?c.number:0;r.push({counter:l.value,reset:u})}}return r}},oT={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(A,t){return t.filter(Ss).map(function(r){return eC.parse(A,r)})}},cT={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(A,t){if(t.length===0)return null;var r=t[0];if(r.type===20&&r.value==="none")return null;var i=[],s=t.filter(OF);if(s.length%2!==0)return null;for(var l=0;l<s.length;l+=2){var c=s[l].value,u=s[l+1].value;i.push({open:c,close:u})}return i}},tC=function(A,t,r){if(!A)return"";var i=A[Math.min(t,A.length-1)];return i?r?i.open:i.close:""},uT={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,t){return t.length===1&&sd(t[0],"none")?[]:mn(t).map(function(r){for(var i={color:255,offsetX:Ze,offsetY:Ze,blur:Ze,spread:Ze,inset:!1},s=0,l=0;l<r.length;l++){var c=r[l];sd(c,"inset")?i.inset=!0:or(c)?(s===0?i.offsetX=c:s===1?i.offsetY=c:s===2?i.blur=c:i.spread=c,s++):i.color=ur.parse(A,c)}return i})}},fT={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(A,t){var r=[0,1,2],i=[];return t.filter(se).forEach(function(s){switch(s.value){case"stroke":i.push(1);break;case"fill":i.push(0);break;case"markers":i.push(2);break}}),r.forEach(function(s){i.indexOf(s)===-1&&i.push(s)}),i}},dT={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},hT={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(A,t){return Ss(t)?t.number:0}},gT=(function(){function A(t,r){var i,s;this.animationDuration=CA(t,oT,r.animationDuration),this.backgroundClip=CA(t,DF,r.backgroundClip),this.backgroundColor=CA(t,kF,r.backgroundColor),this.backgroundImage=CA(t,JF,r.backgroundImage),this.backgroundOrigin=CA(t,ZF,r.backgroundOrigin),this.backgroundPosition=CA(t,WF,r.backgroundPosition),this.backgroundRepeat=CA(t,$F,r.backgroundRepeat),this.backgroundSize=CA(t,e8,r.backgroundSize),this.borderTopColor=CA(t,n8,r.borderTopColor),this.borderRightColor=CA(t,r8,r.borderRightColor),this.borderBottomColor=CA(t,i8,r.borderBottomColor),this.borderLeftColor=CA(t,a8,r.borderLeftColor),this.borderTopLeftRadius=CA(t,s8,r.borderTopLeftRadius),this.borderTopRightRadius=CA(t,l8,r.borderTopRightRadius),this.borderBottomRightRadius=CA(t,o8,r.borderBottomRightRadius),this.borderBottomLeftRadius=CA(t,c8,r.borderBottomLeftRadius),this.borderTopStyle=CA(t,u8,r.borderTopStyle),this.borderRightStyle=CA(t,f8,r.borderRightStyle),this.borderBottomStyle=CA(t,d8,r.borderBottomStyle),this.borderLeftStyle=CA(t,h8,r.borderLeftStyle),this.borderTopWidth=CA(t,g8,r.borderTopWidth),this.borderRightWidth=CA(t,p8,r.borderRightWidth),this.borderBottomWidth=CA(t,m8,r.borderBottomWidth),this.borderLeftWidth=CA(t,B8,r.borderLeftWidth),this.boxShadow=CA(t,uT,r.boxShadow),this.color=CA(t,C8,r.color),this.direction=CA(t,w8,r.direction),this.display=CA(t,y8,r.display),this.float=CA(t,v8,r.cssFloat),this.fontFamily=CA(t,eT,r.fontFamily),this.fontSize=CA(t,tT,r.fontSize),this.fontStyle=CA(t,iT,r.fontStyle),this.fontVariant=CA(t,rT,r.fontVariant),this.fontWeight=CA(t,nT,r.fontWeight),this.letterSpacing=CA(t,b8,r.letterSpacing),this.lineBreak=CA(t,x8,r.lineBreak),this.lineHeight=CA(t,S8,r.lineHeight),this.listStyleImage=CA(t,Q8,r.listStyleImage),this.listStylePosition=CA(t,U8,r.listStylePosition),this.listStyleType=CA(t,ud,r.listStyleType),this.marginTop=CA(t,F8,r.marginTop),this.marginRight=CA(t,T8,r.marginRight),this.marginBottom=CA(t,I8,r.marginBottom),this.marginLeft=CA(t,N8,r.marginLeft),this.opacity=CA(t,W8,r.opacity);var l=CA(t,H8,r.overflow);this.overflowX=l[0],this.overflowY=l[l.length>1?1:0],this.overflowWrap=CA(t,_8,r.overflowWrap),this.paddingTop=CA(t,M8,r.paddingTop),this.paddingRight=CA(t,O8,r.paddingRight),this.paddingBottom=CA(t,R8,r.paddingBottom),this.paddingLeft=CA(t,L8,r.paddingLeft),this.paintOrder=CA(t,fT,r.paintOrder),this.position=CA(t,k8,r.position),this.textAlign=CA(t,D8,r.textAlign),this.textDecorationColor=CA(t,$8,(i=r.textDecorationColor)!==null&&i!==void 0?i:r.color),this.textDecorationLine=CA(t,AT,(s=r.textDecorationLine)!==null&&s!==void 0?s:r.textDecoration),this.textShadow=CA(t,j8,r.textShadow),this.textTransform=CA(t,K8,r.textTransform),this.transform=CA(t,V8,r.transform),this.transformOrigin=CA(t,X8,r.transformOrigin),this.visibility=CA(t,q8,r.visibility),this.webkitTextStrokeColor=CA(t,dT,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=CA(t,hT,r.webkitTextStrokeWidth),this.wordBreak=CA(t,J8,r.wordBreak),this.zIndex=CA(t,Z8,r.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},A.prototype.isTransparent=function(){return fr(this.backgroundColor)},A.prototype.isTransformed=function(){return this.transform!==null},A.prototype.isPositioned=function(){return this.position!==0},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return this.float!==0},A.prototype.isInlineLevel=function(){return Ke(this.display,4)||Ke(this.display,33554432)||Ke(this.display,268435456)||Ke(this.display,536870912)||Ke(this.display,67108864)||Ke(this.display,134217728)},A})(),pT=(function(){function A(t,r){this.content=CA(t,aT,r.content),this.quotes=CA(t,cT,r.quotes)}return A})(),nC=(function(){function A(t,r){this.counterIncrement=CA(t,sT,r.counterIncrement),this.counterReset=CA(t,lT,r.counterReset)}return A})(),CA=function(A,t,r){var i=new F1,s=r!==null&&typeof r<"u"?r.toString():t.initialValue;i.write(s);var l=new T1(i.read());switch(t.type){case 2:var c=l.parseComponentValue();return t.parse(A,se(c)?c.value:t.initialValue);case 0:return t.parse(A,l.parseComponentValue());case 1:return t.parse(A,l.parseComponentValues());case 4:return l.parseComponentValue();case 3:switch(t.format){case"angle":return yo.parse(A,l.parseComponentValue());case"color":return ur.parse(A,l.parseComponentValue());case"image":return cd.parse(A,l.parseComponentValue());case"length":var u=l.parseComponentValue();return or(u)?u:Ze;case"length-percentage":var f=l.parseComponentValue();return Me(f)?f:Ze;case"time":return eC.parse(A,l.parseComponentValue())}break}},mT="data-html2canvas-debug",BT=function(A){var t=A.getAttribute(mT);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},fd=function(A,t){var r=BT(A);return r===1||t===r},Bn=(function(){function A(t,r){this.context=t,this.textNodes=[],this.elements=[],this.flags=0,fd(r,3),this.styles=new gT(t,window.getComputedStyle(r,null)),Sd(r)&&(this.styles.animationDuration.some(function(i){return i>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=Ao(this.context,r),fd(r,4)&&(this.flags|=16)}return A})(),CT="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",rC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ts=typeof Uint8Array>"u"?[]:new Uint8Array(256),No=0;No<rC.length;No++)Ts[rC.charCodeAt(No)]=No;for(var wT=function(A){var t=A.length*.75,r=A.length,i,s=0,l,c,u,f;A[A.length-1]==="="&&(t--,A[A.length-2]==="="&&t--);var h=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),m=Array.isArray(h)?h:new Uint8Array(h);for(i=0;i<r;i+=4)l=Ts[A.charCodeAt(i)],c=Ts[A.charCodeAt(i+1)],u=Ts[A.charCodeAt(i+2)],f=Ts[A.charCodeAt(i+3)],m[s++]=l<<2|c>>4,m[s++]=(c&15)<<4|u>>2,m[s++]=(u&3)<<6|f&63;return h},yT=function(A){for(var t=A.length,r=[],i=0;i<t;i+=2)r.push(A[i+1]<<8|A[i]);return r},ET=function(A){for(var t=A.length,r=[],i=0;i<t;i+=4)r.push(A[i+3]<<24|A[i+2]<<16|A[i+1]<<8|A[i]);return r},Zr=5,dd=11,hd=2,vT=dd-Zr,iC=65536>>Zr,bT=1<<Zr,gd=bT-1,xT=1024>>Zr,ST=iC+xT,QT=ST,UT=32,FT=QT+UT,TT=65536>>dd,IT=1<<vT,NT=IT-1,aC=function(A,t,r){return A.slice?A.slice(t,r):new Uint16Array(Array.prototype.slice.call(A,t,r))},HT=function(A,t,r){return A.slice?A.slice(t,r):new Uint32Array(Array.prototype.slice.call(A,t,r))},_T=function(A,t){var r=wT(A),i=Array.isArray(r)?ET(r):new Uint32Array(r),s=Array.isArray(r)?yT(r):new Uint16Array(r),l=24,c=aC(s,l/2,i[4]/2),u=i[5]===2?aC(s,(l+i[4])/2):HT(i,Math.ceil((l+i[4])/4));return new MT(i[0],i[1],i[2],i[3],c,u)},MT=(function(){function A(t,r,i,s,l,c){this.initialValue=t,this.errorValue=r,this.highStart=i,this.highValueIndex=s,this.index=l,this.data=c}return A.prototype.get=function(t){var r;if(t>=0){if(t<55296||t>56319&&t<=65535)return r=this.index[t>>Zr],r=(r<<hd)+(t&gd),this.data[r];if(t<=65535)return r=this.index[iC+(t-55296>>Zr)],r=(r<<hd)+(t&gd),this.data[r];if(t<this.highStart)return r=FT-TT+(t>>dd),r=this.index[r],r+=t>>Zr&NT,r=this.index[r],r=(r<<hd)+(t&gd),this.data[r];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),sC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",OT=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ho=0;Ho<sC.length;Ho++)OT[sC.charCodeAt(Ho)]=Ho;var RT=1,pd=2,md=3,lC=4,oC=5,LT=7,cC=8,Bd=9,Cd=10,uC=11,fC=12,dC=13,hC=14,wd=15,DT=function(A){for(var t=[],r=0,i=A.length;r<i;){var s=A.charCodeAt(r++);if(s>=55296&&s<=56319&&r<i){var l=A.charCodeAt(r++);(l&64512)===56320?t.push(((s&1023)<<10)+(l&1023)+65536):(t.push(s),r--)}else t.push(s)}return t},kT=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var r=A.length;if(!r)return"";for(var i=[],s=-1,l="";++s<r;){var c=A[s];c<=65535?i.push(c):(c-=65536,i.push((c>>10)+55296,c%1024+56320)),(s+1===r||i.length>16384)&&(l+=String.fromCharCode.apply(String,i),i.length=0)}return l},jT=_T(CT),jt="×",yd="÷",KT=function(A){return jT.get(A)},VT=function(A,t,r){var i=r-2,s=t[i],l=t[r-1],c=t[r];if(l===pd&&c===md)return jt;if(l===pd||l===md||l===lC||c===pd||c===md||c===lC)return yd;if(l===cC&&[cC,Bd,uC,fC].indexOf(c)!==-1||(l===uC||l===Bd)&&(c===Bd||c===Cd)||(l===fC||l===Cd)&&c===Cd||c===dC||c===oC||c===LT||l===RT)return jt;if(l===dC&&c===hC){for(;s===oC;)s=t[--i];if(s===hC)return jt}if(l===wd&&c===wd){for(var u=0;s===wd;)u++,s=t[--i];if(u%2===0)return jt}return yd},GT=function(A){var t=DT(A),r=t.length,i=0,s=0,l=t.map(KT);return{next:function(){if(i>=r)return{done:!0,value:null};for(var c=jt;i<r&&(c=VT(t,l,++i))===jt;);if(c!==jt||i===r){var u=kT.apply(null,t.slice(s,i));return s=i,{value:u,done:!1}}return{done:!0,value:null}}}},zT=function(A){for(var t=GT(A),r=[],i;!(i=t.next()).done;)i.value&&r.push(i.value.slice());return r},PT=function(A){var t=123;if(A.createRange){var r=A.createRange();if(r.getBoundingClientRect){var i=A.createElement("boundtest");i.style.height=t+"px",i.style.display="block",A.body.appendChild(i),r.selectNode(i);var s=r.getBoundingClientRect(),l=Math.round(s.height);if(A.body.removeChild(i),l===t)return!0}}return!1},YT=function(A){var t=A.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",A.body.appendChild(t);var r=A.createRange();t.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var i=t.firstChild,s=eo(i.data).map(function(f){return Ue(f)}),l=0,c={},u=s.every(function(f,h){r.setStart(i,l),r.setEnd(i,l+f.length);var m=r.getBoundingClientRect();l+=f.length;var B=m.x>c.x||m.y>c.y;return c=m,h===0?!0:B});return A.body.removeChild(t),u},XT=function(){return typeof new Image().crossOrigin<"u"},qT=function(){return typeof new XMLHttpRequest().responseType=="string"},JT=function(A){var t=new Image,r=A.createElement("canvas"),i=r.getContext("2d");if(!i)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{i.drawImage(t,0,0),r.toDataURL()}catch{return!1}return!0},gC=function(A){return A[0]===0&&A[1]===255&&A[2]===0&&A[3]===255},ZT=function(A){var t=A.createElement("canvas"),r=100;t.width=r,t.height=r;var i=t.getContext("2d");if(!i)return Promise.reject(!1);i.fillStyle="rgb(0, 255, 0)",i.fillRect(0,0,r,r);var s=new Image,l=t.toDataURL();s.src=l;var c=Ed(r,r,0,0,s);return i.fillStyle="red",i.fillRect(0,0,r,r),pC(c).then(function(u){i.drawImage(u,0,0);var f=i.getImageData(0,0,r,r).data;i.fillStyle="red",i.fillRect(0,0,r,r);var h=A.createElement("div");return h.style.backgroundImage="url("+l+")",h.style.height=r+"px",gC(f)?pC(Ed(r,r,0,0,h)):Promise.reject(!1)}).then(function(u){return i.drawImage(u,0,0),gC(i.getImageData(0,0,r,r).data)}).catch(function(){return!1})},Ed=function(A,t,r,i,s){var l="http://www.w3.org/2000/svg",c=document.createElementNS(l,"svg"),u=document.createElementNS(l,"foreignObject");return c.setAttributeNS(null,"width",A.toString()),c.setAttributeNS(null,"height",t.toString()),u.setAttributeNS(null,"width","100%"),u.setAttributeNS(null,"height","100%"),u.setAttributeNS(null,"x",r.toString()),u.setAttributeNS(null,"y",i.toString()),u.setAttributeNS(null,"externalResourcesRequired","true"),c.appendChild(u),u.appendChild(s),c},pC=function(A){return new Promise(function(t,r){var i=new Image;i.onload=function(){return t(i)},i.onerror=r,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},We={get SUPPORT_RANGE_BOUNDS(){var A=PT(document);return Object.defineProperty(We,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=We.SUPPORT_RANGE_BOUNDS&&YT(document);return Object.defineProperty(We,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=JT(document);return Object.defineProperty(We,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A=typeof Array.from=="function"&&typeof window.fetch=="function"?ZT(document):Promise.resolve(!1);return Object.defineProperty(We,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=XT();return Object.defineProperty(We,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A=qT();return Object.defineProperty(We,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(We,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(We,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},Is=(function(){function A(t,r){this.text=t,this.bounds=r}return A})(),WT=function(A,t,r,i){var s=e9(t,r),l=[],c=0;return s.forEach(function(u){if(r.textDecorationLine.length||u.trim().length>0)if(We.SUPPORT_RANGE_BOUNDS){var f=mC(i,c,u.length).getClientRects();if(f.length>1){var h=vd(u),m=0;h.forEach(function(w){l.push(new Is(w,Qn.fromDOMRectList(A,mC(i,m+c,w.length).getClientRects()))),m+=w.length})}else l.push(new Is(u,Qn.fromDOMRectList(A,f)))}else{var B=i.splitText(u.length);l.push(new Is(u,$T(A,i))),i=B}else We.SUPPORT_RANGE_BOUNDS||(i=i.splitText(u.length));c+=u.length}),l},$T=function(A,t){var r=t.ownerDocument;if(r){var i=r.createElement("html2canvaswrapper");i.appendChild(t.cloneNode(!0));var s=t.parentNode;if(s){s.replaceChild(i,t);var l=Ao(A,i);return i.firstChild&&s.replaceChild(i.firstChild,i),l}}return Qn.EMPTY},mC=function(A,t,r){var i=A.ownerDocument;if(!i)throw new Error("Node has no owner document");var s=i.createRange();return s.setStart(A,t),s.setEnd(A,t+r),s},vd=function(A){if(We.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(A)).map(function(r){return r.segment})}return zT(A)},A9=function(A,t){if(We.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(A)).map(function(i){return i.segment})}return n9(A,t)},e9=function(A,t){return t.letterSpacing!==0?vd(A):A9(A,t)},t9=[32,160,4961,65792,65793,4153,4241],n9=function(A,t){for(var r=T5(A,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap==="break-word"?"break-word":t.wordBreak}),i=[],s,l=function(){if(s.value){var c=s.value.slice(),u=eo(c),f="";u.forEach(function(h){t9.indexOf(h)===-1?f+=Ue(h):(f.length&&i.push(f),i.push(Ue(h)),f="")}),f.length&&i.push(f)}};!(s=r.next()).done;)l();return i},r9=(function(){function A(t,r,i){this.text=i9(r.data,i.textTransform),this.textBounds=WT(t,this.text,i,r)}return A})(),i9=function(A,t){switch(t){case 1:return A.toLowerCase();case 3:return A.replace(a9,s9);case 2:return A.toUpperCase();default:return A}},a9=/(^|\s|:|-|\(|\))([a-z])/g,s9=function(A,t,r){return A.length>0?t+r.toUpperCase():A},BC=(function(A){nn(t,A);function t(r,i){var s=A.call(this,r,i)||this;return s.src=i.currentSrc||i.src,s.intrinsicWidth=i.naturalWidth,s.intrinsicHeight=i.naturalHeight,s.context.cache.addImage(s.src),s}return t})(Bn),CC=(function(A){nn(t,A);function t(r,i){var s=A.call(this,r,i)||this;return s.canvas=i,s.intrinsicWidth=i.width,s.intrinsicHeight=i.height,s}return t})(Bn),wC=(function(A){nn(t,A);function t(r,i){var s=A.call(this,r,i)||this,l=new XMLSerializer,c=Ao(r,i);return i.setAttribute("width",c.width+"px"),i.setAttribute("height",c.height+"px"),s.svg="data:image/svg+xml,"+encodeURIComponent(l.serializeToString(i)),s.intrinsicWidth=i.width.baseVal.value,s.intrinsicHeight=i.height.baseVal.value,s.context.cache.addImage(s.svg),s}return t})(Bn),yC=(function(A){nn(t,A);function t(r,i){var s=A.call(this,r,i)||this;return s.value=i.value,s}return t})(Bn),bd=(function(A){nn(t,A);function t(r,i){var s=A.call(this,r,i)||this;return s.start=i.start,s.reversed=typeof i.reversed=="boolean"&&i.reversed===!0,s}return t})(Bn),l9=[{type:15,flags:0,unit:"px",number:3}],o9=[{type:16,flags:0,number:50}],c9=function(A){return A.width>A.height?new Qn(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new Qn(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A},u9=function(A){var t=A.type===f9?new Array(A.value.length+1).join("•"):A.value;return t.length===0?A.placeholder||"":t},_o="checkbox",Mo="radio",f9="password",EC=707406591,xd=(function(A){nn(t,A);function t(r,i){var s=A.call(this,r,i)||this;switch(s.type=i.type.toLowerCase(),s.checked=i.checked,s.value=u9(i),(s.type===_o||s.type===Mo)&&(s.styles.backgroundColor=3739148031,s.styles.borderTopColor=s.styles.borderRightColor=s.styles.borderBottomColor=s.styles.borderLeftColor=2779096575,s.styles.borderTopWidth=s.styles.borderRightWidth=s.styles.borderBottomWidth=s.styles.borderLeftWidth=1,s.styles.borderTopStyle=s.styles.borderRightStyle=s.styles.borderBottomStyle=s.styles.borderLeftStyle=1,s.styles.backgroundClip=[0],s.styles.backgroundOrigin=[0],s.bounds=c9(s.bounds)),s.type){case _o:s.styles.borderTopRightRadius=s.styles.borderTopLeftRadius=s.styles.borderBottomRightRadius=s.styles.borderBottomLeftRadius=l9;break;case Mo:s.styles.borderTopRightRadius=s.styles.borderTopLeftRadius=s.styles.borderBottomRightRadius=s.styles.borderBottomLeftRadius=o9;break}return s}return t})(Bn),vC=(function(A){nn(t,A);function t(r,i){var s=A.call(this,r,i)||this,l=i.options[i.selectedIndex||0];return s.value=l&&l.text||"",s}return t})(Bn),bC=(function(A){nn(t,A);function t(r,i){var s=A.call(this,r,i)||this;return s.value=i.value,s}return t})(Bn),xC=(function(A){nn(t,A);function t(r,i){var s=A.call(this,r,i)||this;s.src=i.src,s.width=parseInt(i.width,10)||0,s.height=parseInt(i.height,10)||0,s.backgroundColor=s.styles.backgroundColor;try{if(i.contentWindow&&i.contentWindow.document&&i.contentWindow.document.documentElement){s.tree=QC(r,i.contentWindow.document.documentElement);var l=i.contentWindow.document.documentElement?Us(r,getComputedStyle(i.contentWindow.document.documentElement).backgroundColor):Fn.TRANSPARENT,c=i.contentWindow.document.body?Us(r,getComputedStyle(i.contentWindow.document.body).backgroundColor):Fn.TRANSPARENT;s.backgroundColor=fr(l)?fr(c)?s.styles.backgroundColor:c:l}}catch{}return s}return t})(Bn),d9=["OL","UL","MENU"],Oo=function(A,t,r,i){for(var s=t.firstChild,l=void 0;s;s=l)if(l=s.nextSibling,UC(s)&&s.data.trim().length>0)r.textNodes.push(new r9(A,s,r.styles));else if(Ri(s))if(_C(s)&&s.assignedNodes)s.assignedNodes().forEach(function(u){return Oo(A,u,r,i)});else{var c=SC(A,s);c.styles.isVisible()&&(h9(s,c,i)?c.flags|=4:g9(c.styles)&&(c.flags|=2),d9.indexOf(s.tagName)!==-1&&(c.flags|=8),r.elements.push(c),s.shadowRoot?Oo(A,s.shadowRoot,c,i):!Lo(s)&&!FC(s)&&!Do(s)&&Oo(A,s,c,i))}},SC=function(A,t){return Ud(t)?new BC(A,t):TC(t)?new CC(A,t):FC(t)?new wC(A,t):p9(t)?new yC(A,t):m9(t)?new bd(A,t):B9(t)?new xd(A,t):Do(t)?new vC(A,t):Lo(t)?new bC(A,t):NC(t)?new xC(A,t):new Bn(A,t)},QC=function(A,t){var r=SC(A,t);return r.flags|=4,Oo(A,t,r,r),r},h9=function(A,t,r){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||Qd(A)&&r.styles.isTransparent()},g9=function(A){return A.isPositioned()||A.isFloating()},UC=function(A){return A.nodeType===Node.TEXT_NODE},Ri=function(A){return A.nodeType===Node.ELEMENT_NODE},Sd=function(A){return Ri(A)&&typeof A.style<"u"&&!Ro(A)},Ro=function(A){return typeof A.className=="object"},p9=function(A){return A.tagName==="LI"},m9=function(A){return A.tagName==="OL"},B9=function(A){return A.tagName==="INPUT"},C9=function(A){return A.tagName==="HTML"},FC=function(A){return A.tagName==="svg"},Qd=function(A){return A.tagName==="BODY"},TC=function(A){return A.tagName==="CANVAS"},IC=function(A){return A.tagName==="VIDEO"},Ud=function(A){return A.tagName==="IMG"},NC=function(A){return A.tagName==="IFRAME"},HC=function(A){return A.tagName==="STYLE"},w9=function(A){return A.tagName==="SCRIPT"},Lo=function(A){return A.tagName==="TEXTAREA"},Do=function(A){return A.tagName==="SELECT"},_C=function(A){return A.tagName==="SLOT"},MC=function(A){return A.tagName.indexOf("-")>0},y9=(function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(t){var r=this.counters[t];return r&&r.length?r[r.length-1]:1},A.prototype.getCounterValues=function(t){var r=this.counters[t];return r||[]},A.prototype.pop=function(t){var r=this;t.forEach(function(i){return r.counters[i].pop()})},A.prototype.parse=function(t){var r=this,i=t.counterIncrement,s=t.counterReset,l=!0;i!==null&&i.forEach(function(u){var f=r.counters[u.counter];f&&u.increment!==0&&(l=!1,f.length||f.push(1),f[Math.max(0,f.length-1)]+=u.increment)});var c=[];return l&&s.forEach(function(u){var f=r.counters[u.counter];c.push(u.counter),f||(f=r.counters[u.counter]=[]),f.push(u.reset)}),c},A})(),OC={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},RC={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},E9={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},v9={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Li=function(A,t,r,i,s,l){return A<t||A>r?Hs(A,s,l.length>0):i.integers.reduce(function(c,u,f){for(;A>=u;)A-=u,c+=i.values[f];return c},"")+l},LC=function(A,t,r,i){var s="";do r||A--,s=i(A)+s,A/=t;while(A*t>=t);return s},Fe=function(A,t,r,i,s){var l=r-t+1;return(A<0?"-":"")+(LC(Math.abs(A),l,i,function(c){return Ue(Math.floor(c%l)+t)})+s)},Wr=function(A,t,r){r===void 0&&(r=". ");var i=t.length;return LC(Math.abs(A),i,!1,function(s){return t[Math.floor(s%i)]})+r},Di=1,hr=2,gr=4,Ns=8,Tn=function(A,t,r,i,s,l){if(A<-9999||A>9999)return Hs(A,4,s.length>0);var c=Math.abs(A),u=s;if(c===0)return t[0]+u;for(var f=0;c>0&&f<=4;f++){var h=c%10;h===0&&Ke(l,Di)&&u!==""?u=t[h]+u:h>1||h===1&&f===0||h===1&&f===1&&Ke(l,hr)||h===1&&f===1&&Ke(l,gr)&&A>100||h===1&&f>1&&Ke(l,Ns)?u=t[h]+(f>0?r[f-1]:"")+u:h===1&&f>0&&(u=r[f-1]+u),c=Math.floor(c/10)}return(A<0?i:"")+u},DC="十百千萬",kC="拾佰仟萬",jC="マイナス",Fd="마이너스",Hs=function(A,t,r){var i=r?". ":"",s=r?"、":"",l=r?", ":"",c=r?" ":"";switch(t){case 0:return"•"+c;case 1:return"◦"+c;case 2:return"◾"+c;case 5:var u=Fe(A,48,57,!0,i);return u.length<4?"0"+u:u;case 4:return Wr(A,"〇一二三四五六七八九",s);case 6:return Li(A,1,3999,OC,3,i).toLowerCase();case 7:return Li(A,1,3999,OC,3,i);case 8:return Fe(A,945,969,!1,i);case 9:return Fe(A,97,122,!1,i);case 10:return Fe(A,65,90,!1,i);case 11:return Fe(A,1632,1641,!0,i);case 12:case 49:return Li(A,1,9999,RC,3,i);case 35:return Li(A,1,9999,RC,3,i).toLowerCase();case 13:return Fe(A,2534,2543,!0,i);case 14:case 30:return Fe(A,6112,6121,!0,i);case 15:return Wr(A,"子丑寅卯辰巳午未申酉戌亥",s);case 16:return Wr(A,"甲乙丙丁戊己庚辛壬癸",s);case 17:case 48:return Tn(A,"零一二三四五六七八九",DC,"負",s,hr|gr|Ns);case 47:return Tn(A,"零壹貳參肆伍陸柒捌玖",kC,"負",s,Di|hr|gr|Ns);case 42:return Tn(A,"零一二三四五六七八九",DC,"负",s,hr|gr|Ns);case 41:return Tn(A,"零壹贰叁肆伍陆柒捌玖",kC,"负",s,Di|hr|gr|Ns);case 26:return Tn(A,"〇一二三四五六七八九","十百千万",jC,s,0);case 25:return Tn(A,"零壱弐参四伍六七八九","拾百千万",jC,s,Di|hr|gr);case 31:return Tn(A,"영일이삼사오육칠팔구","십백천만",Fd,l,Di|hr|gr);case 33:return Tn(A,"零一二三四五六七八九","十百千萬",Fd,l,0);case 32:return Tn(A,"零壹貳參四五六七八九","拾百千",Fd,l,Di|hr|gr);case 18:return Fe(A,2406,2415,!0,i);case 20:return Li(A,1,19999,v9,3,i);case 21:return Fe(A,2790,2799,!0,i);case 22:return Fe(A,2662,2671,!0,i);case 22:return Li(A,1,10999,E9,3,i);case 23:return Wr(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Wr(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Fe(A,3302,3311,!0,i);case 28:return Wr(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",s);case 29:return Wr(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",s);case 34:return Fe(A,3792,3801,!0,i);case 37:return Fe(A,6160,6169,!0,i);case 38:return Fe(A,4160,4169,!0,i);case 39:return Fe(A,2918,2927,!0,i);case 40:return Fe(A,1776,1785,!0,i);case 43:return Fe(A,3046,3055,!0,i);case 44:return Fe(A,3174,3183,!0,i);case 45:return Fe(A,3664,3673,!0,i);case 46:return Fe(A,3872,3881,!0,i);case 3:default:return Fe(A,48,57,!0,i)}},KC="data-html2canvas-ignore",VC=(function(){function A(t,r,i){if(this.context=t,this.options=i,this.scrolledElements=[],this.referenceElement=r,this.counters=new y9,this.quoteDepth=0,!r.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(r.ownerDocument.documentElement,!1)}return A.prototype.toIFrame=function(t,r){var i=this,s=b9(t,r);if(!s.contentWindow)return Promise.reject("Unable to find iframe window");var l=t.defaultView.pageXOffset,c=t.defaultView.pageYOffset,u=s.contentWindow,f=u.document,h=Q9(s).then(function(){return lt(i,void 0,void 0,function(){var m,B;return at(this,function(w){switch(w.label){case 0:return this.scrolledElements.forEach(I9),u&&(u.scrollTo(r.left,r.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(u.scrollY!==r.top||u.scrollX!==r.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(u.scrollX-r.left,u.scrollY-r.top,0,0))),m=this.options.onclone,B=this.clonedReferenceElement,typeof B>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:f.fonts&&f.fonts.ready?[4,f.fonts.ready]:[3,2];case 1:w.sent(),w.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,S9(f)]:[3,4];case 3:w.sent(),w.label=4;case 4:return typeof m=="function"?[2,Promise.resolve().then(function(){return m(f,B)}).then(function(){return s})]:[2,s]}})})});return f.open(),f.write(F9(document.doctype)+"<html></html>"),T9(this.referenceElement.ownerDocument,l,c),f.replaceChild(f.adoptNode(this.documentElement),f.documentElement),f.close(),h},A.prototype.createElementClone=function(t){if(fd(t,2),TC(t))return this.createCanvasClone(t);if(IC(t))return this.createVideoClone(t);if(HC(t))return this.createStyleClone(t);var r=t.cloneNode(!1);return Ud(r)&&(Ud(t)&&t.currentSrc&&t.currentSrc!==t.src&&(r.src=t.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),MC(r)?this.createCustomElementClone(r):r},A.prototype.createCustomElementClone=function(t){var r=document.createElement("html2canvascustomelement");return Td(t.style,r),r},A.prototype.createStyleClone=function(t){try{var r=t.sheet;if(r&&r.cssRules){var i=[].slice.call(r.cssRules,0).reduce(function(l,c){return c&&typeof c.cssText=="string"?l+c.cssText:l},""),s=t.cloneNode(!1);return s.textContent=i,s}}catch(l){if(this.context.logger.error("Unable to access cssRules property",l),l.name!=="SecurityError")throw l}return t.cloneNode(!1)},A.prototype.createCanvasClone=function(t){var r;if(this.options.inlineImages&&t.ownerDocument){var i=t.ownerDocument.createElement("img");try{return i.src=t.toDataURL(),i}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var s=t.cloneNode(!1);try{s.width=t.width,s.height=t.height;var l=t.getContext("2d"),c=s.getContext("2d");if(c)if(!this.options.allowTaint&&l)c.putImageData(l.getImageData(0,0,t.width,t.height),0,0);else{var u=(r=t.getContext("webgl2"))!==null&&r!==void 0?r:t.getContext("webgl");if(u){var f=u.getContextAttributes();f?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}c.drawImage(t,0,0)}return s}catch{this.context.logger.info("Unable to clone canvas as it is tainted",t)}return s},A.prototype.createVideoClone=function(t){var r=t.ownerDocument.createElement("canvas");r.width=t.offsetWidth,r.height=t.offsetHeight;var i=r.getContext("2d");try{return i&&(i.drawImage(t,0,0,r.width,r.height),this.options.allowTaint||i.getImageData(0,0,r.width,r.height)),r}catch{this.context.logger.info("Unable to clone video as it is tainted",t)}var s=t.ownerDocument.createElement("canvas");return s.width=t.offsetWidth,s.height=t.offsetHeight,s},A.prototype.appendChildNode=function(t,r,i){(!Ri(r)||!w9(r)&&!r.hasAttribute(KC)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!Ri(r)||!HC(r))&&t.appendChild(this.cloneNode(r,i))},A.prototype.cloneChildNodes=function(t,r,i){for(var s=this,l=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;l;l=l.nextSibling)if(Ri(l)&&_C(l)&&typeof l.assignedNodes=="function"){var c=l.assignedNodes();c.length&&c.forEach(function(u){return s.appendChildNode(r,u,i)})}else this.appendChildNode(r,l,i)},A.prototype.cloneNode=function(t,r){if(UC(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var i=t.ownerDocument.defaultView;if(i&&Ri(t)&&(Sd(t)||Ro(t))){var s=this.createElementClone(t);s.style.transitionProperty="none";var l=i.getComputedStyle(t),c=i.getComputedStyle(t,":before"),u=i.getComputedStyle(t,":after");this.referenceElement===t&&Sd(s)&&(this.clonedReferenceElement=s),Qd(s)&&_9(s);var f=this.counters.parse(new nC(this.context,l)),h=this.resolvePseudoContent(t,s,c,_s.BEFORE);MC(t)&&(r=!0),IC(t)||this.cloneChildNodes(t,s,r),h&&s.insertBefore(h,s.firstChild);var m=this.resolvePseudoContent(t,s,u,_s.AFTER);return m&&s.appendChild(m),this.counters.pop(f),(l&&(this.options.copyStyles||Ro(t))&&!NC(t)||r)&&Td(l,s),(t.scrollTop!==0||t.scrollLeft!==0)&&this.scrolledElements.push([s,t.scrollLeft,t.scrollTop]),(Lo(t)||Do(t))&&(Lo(s)||Do(s))&&(s.value=t.value),s}return t.cloneNode(!1)},A.prototype.resolvePseudoContent=function(t,r,i,s){var l=this;if(i){var c=i.content,u=r.ownerDocument;if(!(!u||!c||c==="none"||c==="-moz-alt-content"||i.display==="none")){this.counters.parse(new nC(this.context,i));var f=new pT(this.context,i),h=u.createElement("html2canvaspseudoelement");Td(i,h),f.content.forEach(function(B){if(B.type===0)h.appendChild(u.createTextNode(B.value));else if(B.type===22){var w=u.createElement("img");w.src=B.value,w.style.opacity="1",h.appendChild(w)}else if(B.type===18){if(B.name==="attr"){var C=B.values.filter(se);C.length&&h.appendChild(u.createTextNode(t.getAttribute(C[0].value)||""))}else if(B.name==="counter"){var E=B.values.filter(Mi),v=E[0],F=E[1];if(v&&se(v)){var Q=l.counters.getCounterValue(v.value),N=F&&se(F)?ud.parse(l.context,F.value):3;h.appendChild(u.createTextNode(Hs(Q,N,!1)))}}else if(B.name==="counters"){var O=B.values.filter(Mi),v=O[0],j=O[1],F=O[2];if(v&&se(v)){var K=l.counters.getCounterValues(v.value),T=F&&se(F)?ud.parse(l.context,F.value):3,L=j&&j.type===0?j.value:"",R=K.map(function(nA){return Hs(nA,T,!1)}).join(L);h.appendChild(u.createTextNode(R))}}}else if(B.type===20)switch(B.value){case"open-quote":h.appendChild(u.createTextNode(tC(f.quotes,l.quoteDepth++,!0)));break;case"close-quote":h.appendChild(u.createTextNode(tC(f.quotes,--l.quoteDepth,!1)));break;default:h.appendChild(u.createTextNode(B.value))}}),h.className=Id+" "+Nd;var m=s===_s.BEFORE?" "+Id:" "+Nd;return Ro(r)?r.className.baseValue+=m:r.className+=m,h}}},A.destroy=function(t){return t.parentNode?(t.parentNode.removeChild(t),!0):!1},A})(),_s;(function(A){A[A.BEFORE=0]="BEFORE",A[A.AFTER=1]="AFTER"})(_s||(_s={}));var b9=function(A,t){var r=A.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=t.width.toString(),r.height=t.height.toString(),r.scrolling="no",r.setAttribute(KC,"true"),A.body.appendChild(r),r},x9=function(A){return new Promise(function(t){if(A.complete){t();return}if(!A.src){t();return}A.onload=t,A.onerror=t})},S9=function(A){return Promise.all([].slice.call(A.images,0).map(x9))},Q9=function(A){return new Promise(function(t,r){var i=A.contentWindow;if(!i)return r("No window assigned for iframe");var s=i.document;i.onload=A.onload=function(){i.onload=A.onload=null;var l=setInterval(function(){s.body.childNodes.length>0&&s.readyState==="complete"&&(clearInterval(l),t(A))},50)}})},U9=["all","d","content"],Td=function(A,t){for(var r=A.length-1;r>=0;r--){var i=A.item(r);U9.indexOf(i)===-1&&t.style.setProperty(i,A.getPropertyValue(i))}return t},F9=function(A){var t="";return A&&(t+="<!DOCTYPE ",A.name&&(t+=A.name),A.internalSubset&&(t+=A.internalSubset),A.publicId&&(t+='"'+A.publicId+'"'),A.systemId&&(t+='"'+A.systemId+'"'),t+=">"),t},T9=function(A,t,r){A&&A.defaultView&&(t!==A.defaultView.pageXOffset||r!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(t,r)},I9=function(A){var t=A[0],r=A[1],i=A[2];t.scrollLeft=r,t.scrollTop=i},N9=":before",H9=":after",Id="___html2canvas___pseudoelement_before",Nd="___html2canvas___pseudoelement_after",GC=`{
|
|
101
103
|
content: "" !important;
|
|
102
104
|
display: none !important;
|
|
103
|
-
}`,
|
|
104
|
-
.`+_d+k9+zC)},K9=function(A,t){var r=A.ownerDocument;if(r){var i=r.createElement("style");i.textContent=t,A.appendChild(i)}},PC=(function(){function A(){}return A.getOrigin=function(t){var r=A._link;return r?(r.href=t,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},A.isSameOrigin=function(t){return A.getOrigin(t)===A._origin},A.setContext=function(t){A._link=t.document.createElement("a"),A._origin=A.getOrigin(t.location.href)},A._origin="about:blank",A})(),V9=(function(){function A(t,r){this.context=t,this._options=r,this._cache={}}return A.prototype.addImage=function(t){var r=Promise.resolve();return this.has(t)||(Od(t)||Y9(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),r},A.prototype.match=function(t){return this._cache[t]},A.prototype.loadImage=function(t){return lt(this,void 0,void 0,function(){var r,i,s,l,c=this;return at(this,function(u){switch(u.label){case 0:return r=PC.isSameOrigin(t),i=!Md(t)&&this._options.useCORS===!0&&We.SUPPORT_CORS_IMAGES&&!r,s=!Md(t)&&!r&&!Od(t)&&typeof this._options.proxy=="string"&&We.SUPPORT_CORS_XHR&&!i,!r&&this._options.allowTaint===!1&&!Md(t)&&!Od(t)&&!s&&!i?[2]:(l=t,s?[4,this.proxy(l)]:[3,2]);case 1:l=u.sent(),u.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(f,h){var m=new Image;m.onload=function(){return f(m)},m.onerror=h,(X9(l)||i)&&(m.crossOrigin="anonymous"),m.src=l,m.complete===!0&&setTimeout(function(){return f(m)},500),c._options.imageTimeout>0&&setTimeout(function(){return h("Timed out ("+c._options.imageTimeout+"ms) loading image")},c._options.imageTimeout)})];case 3:return[2,u.sent()]}})})},A.prototype.has=function(t){return typeof this._cache[t]<"u"},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(t){var r=this,i=this._options.proxy;if(!i)throw new Error("No proxy defined");var s=t.substring(0,256);return new Promise(function(l,c){var u=We.SUPPORT_RESPONSE_TYPE?"blob":"text",f=new XMLHttpRequest;f.onload=function(){if(f.status===200)if(u==="text")l(f.response);else{var B=new FileReader;B.addEventListener("load",function(){return l(B.result)},!1),B.addEventListener("error",function(w){return c(w)},!1),B.readAsDataURL(f.response)}else c("Failed to proxy resource "+s+" with status code "+f.status)},f.onerror=c;var h=i.indexOf("?")>-1?"&":"?";if(f.open("GET",""+i+h+"url="+encodeURIComponent(t)+"&responseType="+u),u!=="text"&&f instanceof XMLHttpRequest&&(f.responseType=u),r._options.imageTimeout){var m=r._options.imageTimeout;f.timeout=m,f.ontimeout=function(){return c("Timed out ("+m+"ms) proxying "+s)}}f.send()})},A})(),G9=/^data:image\/svg\+xml/i,z9=/^data:image\/.*;base64,/i,P9=/^data:image\/.*/i,Y9=function(A){return We.SUPPORT_SVG_DRAWING||!q9(A)},Md=function(A){return P9.test(A)},X9=function(A){return z9.test(A)},Od=function(A){return A.substr(0,4)==="blob"},q9=function(A){return A.substr(-3).toLowerCase()==="svg"||G9.test(A)},BA=(function(){function A(t,r){this.type=0,this.x=t,this.y=r}return A.prototype.add=function(t,r){return new A(this.x+t,this.y+r)},A})(),ki=function(A,t,r){return new BA(A.x+(t.x-A.x)*r,A.y+(t.y-A.y)*r)},Ko=(function(){function A(t,r,i,s){this.type=1,this.start=t,this.startControl=r,this.endControl=i,this.end=s}return A.prototype.subdivide=function(t,r){var i=ki(this.start,this.startControl,t),s=ki(this.startControl,this.endControl,t),l=ki(this.endControl,this.end,t),c=ki(i,s,t),u=ki(s,l,t),f=ki(c,u,t);return r?new A(this.start,i,c,f):new A(f,u,l,this.end)},A.prototype.add=function(t,r){return new A(this.start.add(t,r),this.startControl.add(t,r),this.endControl.add(t,r),this.end.add(t,r))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A})(),Kt=function(A){return A.type===1},J9=(function(){function A(t){var r=t.styles,i=t.bounds,s=Qs(r.borderTopLeftRadius,i.width,i.height),l=s[0],c=s[1],u=Qs(r.borderTopRightRadius,i.width,i.height),f=u[0],h=u[1],m=Qs(r.borderBottomRightRadius,i.width,i.height),B=m[0],w=m[1],C=Qs(r.borderBottomLeftRadius,i.width,i.height),E=C[0],v=C[1],F=[];F.push((l+f)/i.width),F.push((E+B)/i.width),F.push((c+v)/i.height),F.push((h+w)/i.height);var Q=Math.max.apply(Math,F);Q>1&&(l/=Q,c/=Q,f/=Q,h/=Q,B/=Q,w/=Q,E/=Q,v/=Q);var I=i.width-f,O=i.height-w,K=i.width-B,j=i.height-v,T=r.borderTopWidth,L=r.borderRightWidth,R=r.borderBottomWidth,_=r.borderLeftWidth,X=Be(r.paddingTop,t.bounds.width),nA=Be(r.paddingRight,t.bounds.width),z=Be(r.paddingBottom,t.bounds.width),lA=Be(r.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=l>0||c>0?Ee(i.left+_/3,i.top+T/3,l-_/3,c-T/3,ie.TOP_LEFT):new BA(i.left+_/3,i.top+T/3),this.topRightBorderDoubleOuterBox=l>0||c>0?Ee(i.left+I,i.top+T/3,f-L/3,h-T/3,ie.TOP_RIGHT):new BA(i.left+i.width-L/3,i.top+T/3),this.bottomRightBorderDoubleOuterBox=B>0||w>0?Ee(i.left+K,i.top+O,B-L/3,w-R/3,ie.BOTTOM_RIGHT):new BA(i.left+i.width-L/3,i.top+i.height-R/3),this.bottomLeftBorderDoubleOuterBox=E>0||v>0?Ee(i.left+_/3,i.top+j,E-_/3,v-R/3,ie.BOTTOM_LEFT):new BA(i.left+_/3,i.top+i.height-R/3),this.topLeftBorderDoubleInnerBox=l>0||c>0?Ee(i.left+_*2/3,i.top+T*2/3,l-_*2/3,c-T*2/3,ie.TOP_LEFT):new BA(i.left+_*2/3,i.top+T*2/3),this.topRightBorderDoubleInnerBox=l>0||c>0?Ee(i.left+I,i.top+T*2/3,f-L*2/3,h-T*2/3,ie.TOP_RIGHT):new BA(i.left+i.width-L*2/3,i.top+T*2/3),this.bottomRightBorderDoubleInnerBox=B>0||w>0?Ee(i.left+K,i.top+O,B-L*2/3,w-R*2/3,ie.BOTTOM_RIGHT):new BA(i.left+i.width-L*2/3,i.top+i.height-R*2/3),this.bottomLeftBorderDoubleInnerBox=E>0||v>0?Ee(i.left+_*2/3,i.top+j,E-_*2/3,v-R*2/3,ie.BOTTOM_LEFT):new BA(i.left+_*2/3,i.top+i.height-R*2/3),this.topLeftBorderStroke=l>0||c>0?Ee(i.left+_/2,i.top+T/2,l-_/2,c-T/2,ie.TOP_LEFT):new BA(i.left+_/2,i.top+T/2),this.topRightBorderStroke=l>0||c>0?Ee(i.left+I,i.top+T/2,f-L/2,h-T/2,ie.TOP_RIGHT):new BA(i.left+i.width-L/2,i.top+T/2),this.bottomRightBorderStroke=B>0||w>0?Ee(i.left+K,i.top+O,B-L/2,w-R/2,ie.BOTTOM_RIGHT):new BA(i.left+i.width-L/2,i.top+i.height-R/2),this.bottomLeftBorderStroke=E>0||v>0?Ee(i.left+_/2,i.top+j,E-_/2,v-R/2,ie.BOTTOM_LEFT):new BA(i.left+_/2,i.top+i.height-R/2),this.topLeftBorderBox=l>0||c>0?Ee(i.left,i.top,l,c,ie.TOP_LEFT):new BA(i.left,i.top),this.topRightBorderBox=f>0||h>0?Ee(i.left+I,i.top,f,h,ie.TOP_RIGHT):new BA(i.left+i.width,i.top),this.bottomRightBorderBox=B>0||w>0?Ee(i.left+K,i.top+O,B,w,ie.BOTTOM_RIGHT):new BA(i.left+i.width,i.top+i.height),this.bottomLeftBorderBox=E>0||v>0?Ee(i.left,i.top+j,E,v,ie.BOTTOM_LEFT):new BA(i.left,i.top+i.height),this.topLeftPaddingBox=l>0||c>0?Ee(i.left+_,i.top+T,Math.max(0,l-_),Math.max(0,c-T),ie.TOP_LEFT):new BA(i.left+_,i.top+T),this.topRightPaddingBox=f>0||h>0?Ee(i.left+Math.min(I,i.width-L),i.top+T,I>i.width+L?0:Math.max(0,f-L),Math.max(0,h-T),ie.TOP_RIGHT):new BA(i.left+i.width-L,i.top+T),this.bottomRightPaddingBox=B>0||w>0?Ee(i.left+Math.min(K,i.width-_),i.top+Math.min(O,i.height-R),Math.max(0,B-L),Math.max(0,w-R),ie.BOTTOM_RIGHT):new BA(i.left+i.width-L,i.top+i.height-R),this.bottomLeftPaddingBox=E>0||v>0?Ee(i.left+_,i.top+Math.min(j,i.height-R),Math.max(0,E-_),Math.max(0,v-R),ie.BOTTOM_LEFT):new BA(i.left+_,i.top+i.height-R),this.topLeftContentBox=l>0||c>0?Ee(i.left+_+lA,i.top+T+X,Math.max(0,l-(_+lA)),Math.max(0,c-(T+X)),ie.TOP_LEFT):new BA(i.left+_+lA,i.top+T+X),this.topRightContentBox=f>0||h>0?Ee(i.left+Math.min(I,i.width+_+lA),i.top+T+X,I>i.width+_+lA?0:f-_+lA,h-(T+X),ie.TOP_RIGHT):new BA(i.left+i.width-(L+nA),i.top+T+X),this.bottomRightContentBox=B>0||w>0?Ee(i.left+Math.min(K,i.width-(_+lA)),i.top+Math.min(O,i.height+T+X),Math.max(0,B-(L+nA)),w-(R+z),ie.BOTTOM_RIGHT):new BA(i.left+i.width-(L+nA),i.top+i.height-(R+z)),this.bottomLeftContentBox=E>0||v>0?Ee(i.left+_+lA,i.top+j,Math.max(0,E-(_+lA)),v-(R+z),ie.BOTTOM_LEFT):new BA(i.left+_+lA,i.top+i.height-(R+z))}return A})(),ie;(function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(ie||(ie={}));var Ee=function(A,t,r,i,s){var l=4*((Math.sqrt(2)-1)/3),c=r*l,u=i*l,f=A+r,h=t+i;switch(s){case ie.TOP_LEFT:return new Ko(new BA(A,h),new BA(A,h-u),new BA(f-c,t),new BA(f,t));case ie.TOP_RIGHT:return new Ko(new BA(A,t),new BA(A+c,t),new BA(f,h-u),new BA(f,h));case ie.BOTTOM_RIGHT:return new Ko(new BA(f,t),new BA(f,t+u),new BA(A+c,h),new BA(A,h));case ie.BOTTOM_LEFT:default:return new Ko(new BA(f,h),new BA(f-c,h),new BA(A,t+u),new BA(A,t))}},Vo=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},Z9=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},Go=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},W9=(function(){function A(t,r,i){this.offsetX=t,this.offsetY=r,this.matrix=i,this.type=0,this.target=6}return A})(),zo=(function(){function A(t,r){this.path=t,this.target=r,this.type=1}return A})(),$9=(function(){function A(t){this.opacity=t,this.type=2,this.target=6}return A})(),A7=function(A){return A.type===0},YC=function(A){return A.type===1},e7=function(A){return A.type===2},XC=function(A,t){return A.length===t.length?A.some(function(r,i){return r===t[i]}):!1},t7=function(A,t,r,i,s){return A.map(function(l,c){switch(c){case 0:return l.add(t,r);case 1:return l.add(t+i,r);case 2:return l.add(t+i,r+s);case 3:return l.add(t,r+s)}return l})},qC=(function(){function A(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A})(),JC=(function(){function A(t,r){if(this.container=t,this.parent=r,this.effects=[],this.curves=new J9(this.container),this.container.styles.opacity<1&&this.effects.push(new $9(this.container.styles.opacity)),this.container.styles.transform!==null){var i=this.container.bounds.left+this.container.styles.transformOrigin[0].number,s=this.container.bounds.top+this.container.styles.transformOrigin[1].number,l=this.container.styles.transform;this.effects.push(new W9(i,s,l))}if(this.container.styles.overflowX!==0){var c=Vo(this.curves),u=Go(this.curves);XC(c,u)?this.effects.push(new zo(c,6)):(this.effects.push(new zo(c,2)),this.effects.push(new zo(u,4)))}}return A.prototype.getEffects=function(t){for(var r=[2,3].indexOf(this.container.styles.position)===-1,i=this.parent,s=this.effects.slice(0);i;){var l=i.effects.filter(function(f){return!YC(f)});if(r||i.container.styles.position!==0||!i.parent){if(s.unshift.apply(s,l),r=[2,3].indexOf(i.container.styles.position)===-1,i.container.styles.overflowX!==0){var c=Vo(i.curves),u=Go(i.curves);XC(c,u)||s.unshift(new zo(u,6))}}else s.unshift.apply(s,l);i=i.parent}return s.filter(function(f){return Ke(f.target,t)})},A})(),Rd=function(A,t,r,i){A.container.elements.forEach(function(s){var l=Ke(s.flags,4),c=Ke(s.flags,2),u=new JC(s,A);Ke(s.styles.display,2048)&&i.push(u);var f=Ke(s.flags,8)?[]:i;if(l||c){var h=l||s.styles.isPositioned()?r:t,m=new qC(u);if(s.styles.isPositioned()||s.styles.opacity<1||s.styles.isTransformed()){var B=s.styles.zIndex.order;if(B<0){var w=0;h.negativeZIndex.some(function(E,v){return B>E.element.container.styles.zIndex.order?(w=v,!1):w>0}),h.negativeZIndex.splice(w,0,m)}else if(B>0){var C=0;h.positiveZIndex.some(function(E,v){return B>=E.element.container.styles.zIndex.order?(C=v+1,!1):C>0}),h.positiveZIndex.splice(C,0,m)}else h.zeroOrAutoZIndexOrTransformedOrOpacity.push(m)}else s.styles.isFloating()?h.nonPositionedFloats.push(m):h.nonPositionedInlineLevel.push(m);Rd(u,m,l?m:r,f)}else s.styles.isInlineLevel()?t.inlineLevel.push(u):t.nonInlineLevel.push(u),Rd(u,t,r,f);Ke(s.flags,8)&&ZC(s,f)})},ZC=function(A,t){for(var r=A instanceof Sd?A.start:1,i=A instanceof Sd?A.reversed:!1,s=0;s<t.length;s++){var l=t[s];l.container instanceof EC&&typeof l.container.value=="number"&&l.container.value!==0&&(r=l.container.value),l.listValue=Hs(r,l.container.styles.listStyleType,!0),r+=i?-1:1}},n7=function(A){var t=new JC(A,null),r=new qC(t),i=[];return Rd(t,r,r,i),ZC(t.container,i),r},WC=function(A,t){switch(t){case 0:return Vt(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return Vt(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return Vt(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);case 3:default:return Vt(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},r7=function(A,t){switch(t){case 0:return Vt(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return Vt(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return Vt(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);case 3:default:return Vt(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}},i7=function(A,t){switch(t){case 0:return Vt(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return Vt(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return Vt(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);case 3:default:return Vt(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}},a7=function(A,t){switch(t){case 0:return Po(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return Po(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return Po(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);case 3:default:return Po(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}},Po=function(A,t){var r=[];return Kt(A)?r.push(A.subdivide(.5,!1)):r.push(A),Kt(t)?r.push(t.subdivide(.5,!0)):r.push(t),r},Vt=function(A,t,r,i){var s=[];return Kt(A)?s.push(A.subdivide(.5,!1)):s.push(A),Kt(r)?s.push(r.subdivide(.5,!0)):s.push(r),Kt(i)?s.push(i.subdivide(.5,!0).reverse()):s.push(i),Kt(t)?s.push(t.subdivide(.5,!1).reverse()):s.push(t),s},$C=function(A){var t=A.bounds,r=A.styles;return t.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},Yo=function(A){var t=A.styles,r=A.bounds,i=Be(t.paddingLeft,r.width),s=Be(t.paddingRight,r.width),l=Be(t.paddingTop,r.width),c=Be(t.paddingBottom,r.width);return r.add(i+t.borderLeftWidth,l+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+i+s),-(t.borderTopWidth+t.borderBottomWidth+l+c))},s7=function(A,t){return A===0?t.bounds:A===2?Yo(t):$C(t)},l7=function(A,t){return A===0?t.bounds:A===2?Yo(t):$C(t)},Ld=function(A,t,r){var i=s7(Ki(A.styles.backgroundOrigin,t),A),s=l7(Ki(A.styles.backgroundClip,t),A),l=o7(Ki(A.styles.backgroundSize,t),r,i),c=l[0],u=l[1],f=Qs(Ki(A.styles.backgroundPosition,t),i.width-c,i.height-u),h=c7(Ki(A.styles.backgroundRepeat,t),f,l,i,s),m=Math.round(i.left+f[0]),B=Math.round(i.top+f[1]);return[h,m,B,c,u]},ji=function(A){return le(A)&&A.value===Oi.AUTO},Xo=function(A){return typeof A=="number"},o7=function(A,t,r){var i=t[0],s=t[1],l=t[2],c=A[0],u=A[1];if(!c)return[0,0];if(Me(c)&&u&&Me(u))return[Be(c,r.width),Be(u,r.height)];var f=Xo(l);if(le(c)&&(c.value===Oi.CONTAIN||c.value===Oi.COVER)){if(Xo(l)){var h=r.width/r.height;return h<l!=(c.value===Oi.COVER)?[r.width,r.width/l]:[r.height*l,r.height]}return[r.width,r.height]}var m=Xo(i),B=Xo(s),w=m||B;if(ji(c)&&(!u||ji(u))){if(m&&B)return[i,s];if(!f&&!w)return[r.width,r.height];if(w&&f){var C=m?i:s*l,E=B?s:i/l;return[C,E]}var v=m?i:r.width,F=B?s:r.height;return[v,F]}if(f){var Q=0,I=0;return Me(c)?Q=Be(c,r.width):Me(u)&&(I=Be(u,r.height)),ji(c)?Q=I*l:(!u||ji(u))&&(I=Q/l),[Q,I]}var O=null,K=null;if(Me(c)?O=Be(c,r.width):u&&Me(u)&&(K=Be(u,r.height)),O!==null&&(!u||ji(u))&&(K=m&&B?O/i*s:r.height),K!==null&&ji(c)&&(O=m&&B?K/s*i:r.width),O!==null&&K!==null)return[O,K];throw new Error("Unable to calculate background-size for element")},Ki=function(A,t){var r=A[t];return typeof r>"u"?A[0]:r},c7=function(A,t,r,i,s){var l=t[0],c=t[1],u=r[0],f=r[1];switch(A){case 2:return[new BA(Math.round(i.left),Math.round(i.top+c)),new BA(Math.round(i.left+i.width),Math.round(i.top+c)),new BA(Math.round(i.left+i.width),Math.round(f+i.top+c)),new BA(Math.round(i.left),Math.round(f+i.top+c))];case 3:return[new BA(Math.round(i.left+l),Math.round(i.top)),new BA(Math.round(i.left+l+u),Math.round(i.top)),new BA(Math.round(i.left+l+u),Math.round(i.height+i.top)),new BA(Math.round(i.left+l),Math.round(i.height+i.top))];case 1:return[new BA(Math.round(i.left+l),Math.round(i.top+c)),new BA(Math.round(i.left+l+u),Math.round(i.top+c)),new BA(Math.round(i.left+l+u),Math.round(i.top+c+f)),new BA(Math.round(i.left+l),Math.round(i.top+c+f))];default:return[new BA(Math.round(s.left),Math.round(s.top)),new BA(Math.round(s.left+s.width),Math.round(s.top)),new BA(Math.round(s.left+s.width),Math.round(s.height+s.top)),new BA(Math.round(s.left),Math.round(s.height+s.top))]}},u7="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Aw="Hidden Text",f7=(function(){function A(t){this._data={},this._document=t}return A.prototype.parseMetrics=function(t,r){var i=this._document.createElement("div"),s=this._document.createElement("img"),l=this._document.createElement("span"),c=this._document.body;i.style.visibility="hidden",i.style.fontFamily=t,i.style.fontSize=r,i.style.margin="0",i.style.padding="0",i.style.whiteSpace="nowrap",c.appendChild(i),s.src=u7,s.width=1,s.height=1,s.style.margin="0",s.style.padding="0",s.style.verticalAlign="baseline",l.style.fontFamily=t,l.style.fontSize=r,l.style.margin="0",l.style.padding="0",l.appendChild(this._document.createTextNode(Aw)),i.appendChild(l),i.appendChild(s);var u=s.offsetTop-l.offsetTop+2;i.removeChild(l),i.appendChild(this._document.createTextNode(Aw)),i.style.lineHeight="normal",s.style.verticalAlign="super";var f=s.offsetTop-i.offsetTop+2;return c.removeChild(i),{baseline:u,middle:f}},A.prototype.getMetrics=function(t,r){var i=t+" "+r;return typeof this._data[i]>"u"&&(this._data[i]=this.parseMetrics(t,r)),this._data[i]},A})(),ew=(function(){function A(t,r){this.context=t,this.options=r}return A})(),d7=1e4,h7=(function(A){nn(t,A);function t(r,i){var s=A.call(this,r,i)||this;return s._activeEffects=[],s.canvas=i.canvas?i.canvas:document.createElement("canvas"),s.ctx=s.canvas.getContext("2d"),i.canvas||(s.canvas.width=Math.floor(i.width*i.scale),s.canvas.height=Math.floor(i.height*i.scale),s.canvas.style.width=i.width+"px",s.canvas.style.height=i.height+"px"),s.fontMetrics=new f7(document),s.ctx.scale(s.options.scale,s.options.scale),s.ctx.translate(-i.x,-i.y),s.ctx.textBaseline="bottom",s._activeEffects=[],s.context.logger.debug("Canvas renderer initialized ("+i.width+"x"+i.height+") with scale "+i.scale),s}return t.prototype.applyEffects=function(r){for(var i=this;this._activeEffects.length;)this.popEffect();r.forEach(function(s){return i.applyEffect(s)})},t.prototype.applyEffect=function(r){this.ctx.save(),e7(r)&&(this.ctx.globalAlpha=r.opacity),A7(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),YC(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(r){return lt(this,void 0,void 0,function(){var i;return at(this,function(s){switch(s.label){case 0:return i=r.element.container.styles,i.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:s.sent(),s.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(r){return lt(this,void 0,void 0,function(){return at(this,function(i){switch(i.label){case 0:return Ke(r.container.flags,16),r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return i.sent(),[4,this.renderNodeContent(r)];case 2:i.sent(),i.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(r,i,s){var l=this;if(i===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+s);else{var c=xd(r.text);c.reduce(function(u,f){return l.ctx.fillText(f,u,r.bounds.top+s),u+l.ctx.measureText(f).width},r.bounds.left)}},t.prototype.createFontStyle=function(r){var i=r.fontVariant.filter(function(c){return c==="normal"||c==="small-caps"}).join(""),s=C7(r.fontFamily).join(", "),l=Ss(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,i,r.fontWeight,l,s].join(" "),s,l]},t.prototype.renderTextNode=function(r,i){return lt(this,void 0,void 0,function(){var s,l,c,u,f,h,m,B,w=this;return at(this,function(C){return s=this.createFontStyle(i),l=s[0],c=s[1],u=s[2],this.ctx.font=l,this.ctx.direction=i.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",f=this.fontMetrics.getMetrics(c,u),h=f.baseline,m=f.middle,B=i.paintOrder,r.textBounds.forEach(function(E){B.forEach(function(v){switch(v){case 0:w.ctx.fillStyle=Ge(i.color),w.renderTextWithLetterSpacing(E,i.letterSpacing,h);var F=i.textShadow;F.length&&E.text.trim().length&&(F.slice(0).reverse().forEach(function(Q){w.ctx.shadowColor=Ge(Q.color),w.ctx.shadowOffsetX=Q.offsetX.number*w.options.scale,w.ctx.shadowOffsetY=Q.offsetY.number*w.options.scale,w.ctx.shadowBlur=Q.blur.number,w.renderTextWithLetterSpacing(E,i.letterSpacing,h)}),w.ctx.shadowColor="",w.ctx.shadowOffsetX=0,w.ctx.shadowOffsetY=0,w.ctx.shadowBlur=0),i.textDecorationLine.length&&(w.ctx.fillStyle=Ge(i.textDecorationColor||i.color),i.textDecorationLine.forEach(function(Q){switch(Q){case 1:w.ctx.fillRect(E.bounds.left,Math.round(E.bounds.top+h),E.bounds.width,1);break;case 2:w.ctx.fillRect(E.bounds.left,Math.round(E.bounds.top),E.bounds.width,1);break;case 3:w.ctx.fillRect(E.bounds.left,Math.ceil(E.bounds.top+m),E.bounds.width,1);break}}));break;case 1:i.webkitTextStrokeWidth&&E.text.trim().length&&(w.ctx.strokeStyle=Ge(i.webkitTextStrokeColor),w.ctx.lineWidth=i.webkitTextStrokeWidth,w.ctx.lineJoin=window.chrome?"miter":"round",w.ctx.strokeText(E.text,E.bounds.left,E.bounds.top+h)),w.ctx.strokeStyle="",w.ctx.lineWidth=0,w.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(r,i,s){if(s&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var l=Yo(r),c=Go(i);this.path(c),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(s,0,0,r.intrinsicWidth,r.intrinsicHeight,l.left,l.top,l.width,l.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(r){return lt(this,void 0,void 0,function(){var i,s,l,c,u,f,I,I,h,m,B,w,K,C,E,j,v,F,Q,I,O,K,j;return at(this,function(T){switch(T.label){case 0:this.applyEffects(r.getEffects(4)),i=r.container,s=r.curves,l=i.styles,c=0,u=i.textNodes,T.label=1;case 1:return c<u.length?(f=u[c],[4,this.renderTextNode(f,l)]):[3,4];case 2:T.sent(),T.label=3;case 3:return c++,[3,1];case 4:if(!(i instanceof CC))return[3,8];T.label=5;case 5:return T.trys.push([5,7,,8]),[4,this.context.cache.match(i.src)];case 6:return I=T.sent(),this.renderReplacedElement(i,s,I),[3,8];case 7:return T.sent(),this.context.logger.error("Error loading image "+i.src),[3,8];case 8:if(i instanceof wC&&this.renderReplacedElement(i,s,i.canvas),!(i instanceof yC))return[3,12];T.label=9;case 9:return T.trys.push([9,11,,12]),[4,this.context.cache.match(i.svg)];case 10:return I=T.sent(),this.renderReplacedElement(i,s,I),[3,12];case 11:return T.sent(),this.context.logger.error("Error loading svg "+i.svg.substring(0,255)),[3,12];case 12:return i instanceof SC&&i.tree?(h=new t(this.context,{scale:this.options.scale,backgroundColor:i.backgroundColor,x:0,y:0,width:i.width,height:i.height}),[4,h.render(i.tree)]):[3,14];case 13:m=T.sent(),i.width&&i.height&&this.ctx.drawImage(m,0,0,i.width,i.height,i.bounds.left,i.bounds.top,i.bounds.width,i.bounds.height),T.label=14;case 14:if(i instanceof Qd&&(B=Math.min(i.bounds.width,i.bounds.height),i.type===Oo?i.checked&&(this.ctx.save(),this.path([new BA(i.bounds.left+B*.39363,i.bounds.top+B*.79),new BA(i.bounds.left+B*.16,i.bounds.top+B*.5549),new BA(i.bounds.left+B*.27347,i.bounds.top+B*.44071),new BA(i.bounds.left+B*.39694,i.bounds.top+B*.5649),new BA(i.bounds.left+B*.72983,i.bounds.top+B*.23),new BA(i.bounds.left+B*.84,i.bounds.top+B*.34085),new BA(i.bounds.left+B*.39363,i.bounds.top+B*.79)]),this.ctx.fillStyle=Ge(vC),this.ctx.fill(),this.ctx.restore()):i.type===Ro&&i.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(i.bounds.left+B/2,i.bounds.top+B/2,B/4,0,Math.PI*2,!0),this.ctx.fillStyle=Ge(vC),this.ctx.fill(),this.ctx.restore())),g7(i)&&i.value.length){switch(w=this.createFontStyle(l),K=w[0],C=w[1],E=this.fontMetrics.getMetrics(K,C).baseline,this.ctx.font=K,this.ctx.fillStyle=Ge(l.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=m7(i.styles.textAlign),j=Yo(i),v=0,i.styles.textAlign){case 1:v+=j.width/2;break;case 2:v+=j.width;break}F=j.add(v,0,0,-j.height/2+1),this.ctx.save(),this.path([new BA(j.left,j.top),new BA(j.left+j.width,j.top),new BA(j.left+j.width,j.top+j.height),new BA(j.left,j.top+j.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Ns(i.value,F),l.letterSpacing,E),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Ke(i.styles.display,2048))return[3,20];if(i.styles.listStyleImage===null)return[3,19];if(Q=i.styles.listStyleImage,Q.type!==0)return[3,18];I=void 0,O=Q.url,T.label=15;case 15:return T.trys.push([15,17,,18]),[4,this.context.cache.match(O)];case 16:return I=T.sent(),this.ctx.drawImage(I,i.bounds.left-(I.width+10),i.bounds.top),[3,18];case 17:return T.sent(),this.context.logger.error("Error loading list-style-image "+O),[3,18];case 18:return[3,20];case 19:r.listValue&&i.styles.listStyleType!==-1&&(K=this.createFontStyle(l)[0],this.ctx.font=K,this.ctx.fillStyle=Ge(l.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",j=new Qn(i.bounds.left,i.bounds.top+Be(i.styles.paddingTop,i.bounds.width),i.bounds.width,AC(l.lineHeight,l.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Ns(r.listValue,j),l.letterSpacing,AC(l.lineHeight,l.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),T.label=20;case 20:return[2]}})})},t.prototype.renderStackContent=function(r){return lt(this,void 0,void 0,function(){var i,s,Q,l,c,Q,u,f,Q,h,m,Q,B,w,Q,C,E,Q,v,F,Q;return at(this,function(I){switch(I.label){case 0:return Ke(r.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:I.sent(),i=0,s=r.negativeZIndex,I.label=2;case 2:return i<s.length?(Q=s[i],[4,this.renderStack(Q)]):[3,5];case 3:I.sent(),I.label=4;case 4:return i++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:I.sent(),l=0,c=r.nonInlineLevel,I.label=7;case 7:return l<c.length?(Q=c[l],[4,this.renderNode(Q)]):[3,10];case 8:I.sent(),I.label=9;case 9:return l++,[3,7];case 10:u=0,f=r.nonPositionedFloats,I.label=11;case 11:return u<f.length?(Q=f[u],[4,this.renderStack(Q)]):[3,14];case 12:I.sent(),I.label=13;case 13:return u++,[3,11];case 14:h=0,m=r.nonPositionedInlineLevel,I.label=15;case 15:return h<m.length?(Q=m[h],[4,this.renderStack(Q)]):[3,18];case 16:I.sent(),I.label=17;case 17:return h++,[3,15];case 18:B=0,w=r.inlineLevel,I.label=19;case 19:return B<w.length?(Q=w[B],[4,this.renderNode(Q)]):[3,22];case 20:I.sent(),I.label=21;case 21:return B++,[3,19];case 22:C=0,E=r.zeroOrAutoZIndexOrTransformedOrOpacity,I.label=23;case 23:return C<E.length?(Q=E[C],[4,this.renderStack(Q)]):[3,26];case 24:I.sent(),I.label=25;case 25:return C++,[3,23];case 26:v=0,F=r.positiveZIndex,I.label=27;case 27:return v<F.length?(Q=F[v],[4,this.renderStack(Q)]):[3,30];case 28:I.sent(),I.label=29;case 29:return v++,[3,27];case 30:return[2]}})})},t.prototype.mask=function(r){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(r.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(r){this.ctx.beginPath(),this.formatPath(r),this.ctx.closePath()},t.prototype.formatPath=function(r){var i=this;r.forEach(function(s,l){var c=Kt(s)?s.start:s;l===0?i.ctx.moveTo(c.x,c.y):i.ctx.lineTo(c.x,c.y),Kt(s)&&i.ctx.bezierCurveTo(s.startControl.x,s.startControl.y,s.endControl.x,s.endControl.y,s.end.x,s.end.y)})},t.prototype.renderRepeat=function(r,i,s,l){this.path(r),this.ctx.fillStyle=i,this.ctx.translate(s,l),this.ctx.fill(),this.ctx.translate(-s,-l)},t.prototype.resizeImage=function(r,i,s){var l;if(r.width===i&&r.height===s)return r;var c=(l=this.canvas.ownerDocument)!==null&&l!==void 0?l:document,u=c.createElement("canvas");u.width=Math.max(1,i),u.height=Math.max(1,s);var f=u.getContext("2d");return f.drawImage(r,0,0,r.width,r.height,0,0,i,s),u},t.prototype.renderBackgroundImage=function(r){return lt(this,void 0,void 0,function(){var i,s,l,c,u,f;return at(this,function(h){switch(h.label){case 0:i=r.styles.backgroundImage.length-1,s=function(m){var B,w,C,X,D,W,lA,Z,R,E,X,D,W,lA,Z,v,F,Q,I,O,K,j,T,L,R,_,X,nA,z,lA,Z,eA,D,W,AA,gA,N,U,M,S,aA,uA;return at(this,function(fA){switch(fA.label){case 0:if(m.type!==0)return[3,5];B=void 0,w=m.url,fA.label=1;case 1:return fA.trys.push([1,3,,4]),[4,l.context.cache.match(w)];case 2:return B=fA.sent(),[3,4];case 3:return fA.sent(),l.context.logger.error("Error loading background-image "+w),[3,4];case 4:return B&&(C=Ld(r,i,[B.width,B.height,B.width/B.height]),X=C[0],D=C[1],W=C[2],lA=C[3],Z=C[4],R=l.ctx.createPattern(l.resizeImage(B,lA,Z),"repeat"),l.renderRepeat(X,R,D,W)),[3,6];case 5:A8(m)?(E=Ld(r,i,[null,null,null]),X=E[0],D=E[1],W=E[2],lA=E[3],Z=E[4],v=qF(m.angle,lA,Z),F=v[0],Q=v[1],I=v[2],O=v[3],K=v[4],j=document.createElement("canvas"),j.width=lA,j.height=Z,T=j.getContext("2d"),L=T.createLinearGradient(Q,O,I,K),V1(m.stops,F).forEach(function(pA){return L.addColorStop(pA.stop,Ge(pA.color))}),T.fillStyle=L,T.fillRect(0,0,lA,Z),lA>0&&Z>0&&(R=l.ctx.createPattern(j,"repeat"),l.renderRepeat(X,R,D,W))):e8(m)&&(_=Ld(r,i,[null,null,null]),X=_[0],nA=_[1],z=_[2],lA=_[3],Z=_[4],eA=m.position.length===0?[cd]:m.position,D=Be(eA[0],lA),W=Be(eA[eA.length-1],Z),AA=JF(m,D,W,lA,Z),gA=AA[0],N=AA[1],gA>0&&N>0&&(U=l.ctx.createRadialGradient(nA+D,z+W,0,nA+D,z+W,gA),V1(m.stops,gA*2).forEach(function(pA){return U.addColorStop(pA.stop,Ge(pA.color))}),l.path(X),l.ctx.fillStyle=U,gA!==N?(M=r.bounds.left+.5*r.bounds.width,S=r.bounds.top+.5*r.bounds.height,aA=N/gA,uA=1/aA,l.ctx.save(),l.ctx.translate(M,S),l.ctx.transform(1,0,0,aA,0,0),l.ctx.translate(-M,-S),l.ctx.fillRect(nA,uA*(z-S)+S,lA,Z*uA),l.ctx.restore()):l.ctx.fill())),fA.label=6;case 6:return i--,[2]}})},l=this,c=0,u=r.styles.backgroundImage.slice(0).reverse(),h.label=1;case 1:return c<u.length?(f=u[c],[5,s(f)]):[3,4];case 2:h.sent(),h.label=3;case 3:return c++,[3,1];case 4:return[2]}})})},t.prototype.renderSolidBorder=function(r,i,s){return lt(this,void 0,void 0,function(){return at(this,function(l){return this.path(WC(s,i)),this.ctx.fillStyle=Ge(r),this.ctx.fill(),[2]})})},t.prototype.renderDoubleBorder=function(r,i,s,l){return lt(this,void 0,void 0,function(){var c,u;return at(this,function(f){switch(f.label){case 0:return i<3?[4,this.renderSolidBorder(r,s,l)]:[3,2];case 1:return f.sent(),[2];case 2:return c=r7(l,s),this.path(c),this.ctx.fillStyle=Ge(r),this.ctx.fill(),u=i7(l,s),this.path(u),this.ctx.fill(),[2]}})})},t.prototype.renderNodeBackgroundAndBorders=function(r){return lt(this,void 0,void 0,function(){var i,s,l,c,u,f,h,m,B=this;return at(this,function(w){switch(w.label){case 0:return this.applyEffects(r.getEffects(2)),i=r.container.styles,s=!fr(i.backgroundColor)||i.backgroundImage.length,l=[{style:i.borderTopStyle,color:i.borderTopColor,width:i.borderTopWidth},{style:i.borderRightStyle,color:i.borderRightColor,width:i.borderRightWidth},{style:i.borderBottomStyle,color:i.borderBottomColor,width:i.borderBottomWidth},{style:i.borderLeftStyle,color:i.borderLeftColor,width:i.borderLeftWidth}],c=p7(Ki(i.backgroundClip,0),r.curves),s||i.boxShadow.length?(this.ctx.save(),this.path(c),this.ctx.clip(),fr(i.backgroundColor)||(this.ctx.fillStyle=Ge(i.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(r.container)]):[3,2];case 1:w.sent(),this.ctx.restore(),i.boxShadow.slice(0).reverse().forEach(function(C){B.ctx.save();var E=Vo(r.curves),v=C.inset?0:d7,F=t7(E,-v+(C.inset?1:-1)*C.spread.number,(C.inset?1:-1)*C.spread.number,C.spread.number*(C.inset?-2:2),C.spread.number*(C.inset?-2:2));C.inset?(B.path(E),B.ctx.clip(),B.mask(F)):(B.mask(E),B.ctx.clip(),B.path(F)),B.ctx.shadowOffsetX=C.offsetX.number+v,B.ctx.shadowOffsetY=C.offsetY.number,B.ctx.shadowColor=Ge(C.color),B.ctx.shadowBlur=C.blur.number,B.ctx.fillStyle=C.inset?Ge(C.color):"rgba(0,0,0,1)",B.ctx.fill(),B.ctx.restore()}),w.label=2;case 2:u=0,f=0,h=l,w.label=3;case 3:return f<h.length?(m=h[f],m.style!==0&&!fr(m.color)&&m.width>0?m.style!==2?[3,5]:[4,this.renderDashedDottedBorder(m.color,m.width,u,r.curves,2)]:[3,11]):[3,13];case 4:return w.sent(),[3,11];case 5:return m.style!==3?[3,7]:[4,this.renderDashedDottedBorder(m.color,m.width,u,r.curves,3)];case 6:return w.sent(),[3,11];case 7:return m.style!==4?[3,9]:[4,this.renderDoubleBorder(m.color,m.width,u,r.curves)];case 8:return w.sent(),[3,11];case 9:return[4,this.renderSolidBorder(m.color,u,r.curves)];case 10:w.sent(),w.label=11;case 11:u++,w.label=12;case 12:return f++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(r,i,s,l,c){return lt(this,void 0,void 0,function(){var u,f,h,m,B,w,C,E,v,F,Q,I,O,K,j,T,j,T;return at(this,function(L){return this.ctx.save(),u=a7(l,s),f=WC(l,s),c===2&&(this.path(f),this.ctx.clip()),Kt(f[0])?(h=f[0].start.x,m=f[0].start.y):(h=f[0].x,m=f[0].y),Kt(f[1])?(B=f[1].end.x,w=f[1].end.y):(B=f[1].x,w=f[1].y),s===0||s===2?C=Math.abs(h-B):C=Math.abs(m-w),this.ctx.beginPath(),c===3?this.formatPath(u):this.formatPath(f.slice(0,2)),E=i<3?i*3:i*2,v=i<3?i*2:i,c===3&&(E=i,v=i),F=!0,C<=E*2?F=!1:C<=E*2+v?(Q=C/(2*E+v),E*=Q,v*=Q):(I=Math.floor((C+v)/(E+v)),O=(C-I*E)/(I-1),K=(C-(I+1)*E)/I,v=K<=0||Math.abs(v-O)<Math.abs(v-K)?O:K),F&&(c===3?this.ctx.setLineDash([0,E+v]):this.ctx.setLineDash([E,v])),c===3?(this.ctx.lineCap="round",this.ctx.lineWidth=i):this.ctx.lineWidth=i*2+1.1,this.ctx.strokeStyle=Ge(r),this.ctx.stroke(),this.ctx.setLineDash([]),c===2&&(Kt(f[0])&&(j=f[3],T=f[0],this.ctx.beginPath(),this.formatPath([new BA(j.end.x,j.end.y),new BA(T.start.x,T.start.y)]),this.ctx.stroke()),Kt(f[1])&&(j=f[1],T=f[2],this.ctx.beginPath(),this.formatPath([new BA(j.end.x,j.end.y),new BA(T.start.x,T.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},t.prototype.render=function(r){return lt(this,void 0,void 0,function(){var i;return at(this,function(s){switch(s.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Ge(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),i=n7(r),[4,this.renderStack(i)];case 1:return s.sent(),this.applyEffects([]),[2,this.canvas]}})})},t})(ew),g7=function(A){return A instanceof xC||A instanceof bC?!0:A instanceof Qd&&A.type!==Ro&&A.type!==Oo},p7=function(A,t){switch(A){case 0:return Vo(t);case 2:return Z9(t);case 1:default:return Go(t)}},m7=function(A){switch(A){case 1:return"center";case 2:return"right";case 0:default:return"left"}},B7=["-apple-system","system-ui"],C7=function(A){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?A.filter(function(t){return B7.indexOf(t)===-1}):A},w7=(function(A){nn(t,A);function t(r,i){var s=A.call(this,r,i)||this;return s.canvas=i.canvas?i.canvas:document.createElement("canvas"),s.ctx=s.canvas.getContext("2d"),s.options=i,s.canvas.width=Math.floor(i.width*i.scale),s.canvas.height=Math.floor(i.height*i.scale),s.canvas.style.width=i.width+"px",s.canvas.style.height=i.height+"px",s.ctx.scale(s.options.scale,s.options.scale),s.ctx.translate(-i.x,-i.y),s.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+i.width+"x"+i.height+" at "+i.x+","+i.y+") with scale "+i.scale),s}return t.prototype.render=function(r){return lt(this,void 0,void 0,function(){var i,s;return at(this,function(l){switch(l.label){case 0:return i=bd(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,y7(i)];case 1:return s=l.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Ge(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(s,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},t})(ew),y7=function(A){return new Promise(function(t,r){var i=new Image;i.onload=function(){t(i)},i.onerror=r,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},E7=(function(){function A(t){var r=t.id,i=t.enabled;this.id=r,this.enabled=i,this.start=Date.now()}return A.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"||this.info.apply(this,t))},A.prototype.getTime=function(){return Date.now()-this.start},A.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&typeof window<"u"&&window.console},A.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"||this.info.apply(this,t))},A.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"||this.info.apply(this,t))},A.instances={},A})(),v7=(function(){function A(t,r){var i;this.windowBounds=r,this.instanceName="#"+A.instanceCount++,this.logger=new E7({id:this.instanceName,enabled:t.logging}),this.cache=(i=t.cache)!==null&&i!==void 0?i:new V9(this,t)}return A.instanceCount=1,A})(),b7=function(A,t){return t===void 0&&(t={}),x7(A,t)};typeof window<"u"&&PC.setContext(window);var x7=function(A,t){return lt(void 0,void 0,void 0,function(){var r,i,s,l,c,u,f,h,m,B,w,C,E,v,F,Q,I,O,K,j,L,T,L,R,_,X,nA,z,lA,Z,eA,D,W,AA,gA,N,U,M,S,aA;return at(this,function(uA){switch(uA.label){case 0:if(!A||typeof A!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(r=A.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(i=r.defaultView,!i)throw new Error("Document is not attached to a Window");return s={allowTaint:(R=t.allowTaint)!==null&&R!==void 0?R:!1,imageTimeout:(_=t.imageTimeout)!==null&&_!==void 0?_:15e3,proxy:t.proxy,useCORS:(X=t.useCORS)!==null&&X!==void 0?X:!1},l=Vf({logging:(nA=t.logging)!==null&&nA!==void 0?nA:!0,cache:t.cache},s),c={windowWidth:(z=t.windowWidth)!==null&&z!==void 0?z:i.innerWidth,windowHeight:(lA=t.windowHeight)!==null&&lA!==void 0?lA:i.innerHeight,scrollX:(Z=t.scrollX)!==null&&Z!==void 0?Z:i.pageXOffset,scrollY:(eA=t.scrollY)!==null&&eA!==void 0?eA:i.pageYOffset},u=new Qn(c.scrollX,c.scrollY,c.windowWidth,c.windowHeight),f=new v7(l,u),h=(D=t.foreignObjectRendering)!==null&&D!==void 0?D:!1,m={allowTaint:(W=t.allowTaint)!==null&&W!==void 0?W:!1,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:h,copyStyles:h},f.logger.debug("Starting document clone with size "+u.width+"x"+u.height+" scrolled to "+-u.left+","+-u.top),B=new GC(f,A,m),w=B.clonedReferenceElement,w?[4,B.toIFrame(r,u)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return C=uA.sent(),E=Fd(w)||S9(w)?t5(w.ownerDocument):to(f,w),v=E.width,F=E.height,Q=E.left,I=E.top,O=S7(f,w,t.backgroundColor),K={canvas:t.canvas,backgroundColor:O,scale:(gA=(AA=t.scale)!==null&&AA!==void 0?AA:i.devicePixelRatio)!==null&&gA!==void 0?gA:1,x:((N=t.x)!==null&&N!==void 0?N:0)+Q,y:((U=t.y)!==null&&U!==void 0?U:0)+I,width:(M=t.width)!==null&&M!==void 0?M:Math.ceil(v),height:(S=t.height)!==null&&S!==void 0?S:Math.ceil(F)},h?(f.logger.debug("Document cloned, using foreign object rendering"),L=new w7(f,K),[4,L.render(w)]):[3,3];case 2:return j=uA.sent(),[3,5];case 3:return f.logger.debug("Document cloned, element located at "+Q+","+I+" with size "+v+"x"+F+" using computed rendering"),f.logger.debug("Starting DOM parsing"),T=UC(f,w),O===T.styles.backgroundColor&&(T.styles.backgroundColor=Fn.TRANSPARENT),f.logger.debug("Starting renderer for element at "+K.x+","+K.y+" with size "+K.width+"x"+K.height),L=new h7(f,K),[4,L.render(T)];case 4:j=uA.sent(),uA.label=5;case 5:return(!((aA=t.removeContainer)!==null&&aA!==void 0)||aA)&&(GC.destroy(C)||f.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),f.logger.debug("Finished rendering"),[2,j]}})})},S7=function(A,t,r){var i=t.ownerDocument,s=i.documentElement?Us(A,getComputedStyle(i.documentElement).backgroundColor):Fn.TRANSPARENT,l=i.body?Us(A,getComputedStyle(i.body).backgroundColor):Fn.TRANSPARENT,c=typeof r=="string"?Us(A,r):r===null?Fn.TRANSPARENT:4294967295;return t===i.documentElement?fr(s)?fr(l)?c:l:s:c};const tw=Object.freeze(Object.defineProperty({__proto__:null,default:b7},Symbol.toStringTag,{value:"Module"}));return ou.renderMedAssist=wm,Object.defineProperty(ou,Symbol.toStringTag,{value:"Module"}),ou})({});
|
|
105
|
+
}`,_9=function(A){M9(A,"."+Id+N9+GC+`
|
|
106
|
+
.`+Nd+H9+GC)},M9=function(A,t){var r=A.ownerDocument;if(r){var i=r.createElement("style");i.textContent=t,A.appendChild(i)}},zC=(function(){function A(){}return A.getOrigin=function(t){var r=A._link;return r?(r.href=t,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},A.isSameOrigin=function(t){return A.getOrigin(t)===A._origin},A.setContext=function(t){A._link=t.document.createElement("a"),A._origin=A.getOrigin(t.location.href)},A._origin="about:blank",A})(),O9=(function(){function A(t,r){this.context=t,this._options=r,this._cache={}}return A.prototype.addImage=function(t){var r=Promise.resolve();return this.has(t)||(_d(t)||k9(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),r},A.prototype.match=function(t){return this._cache[t]},A.prototype.loadImage=function(t){return lt(this,void 0,void 0,function(){var r,i,s,l,c=this;return at(this,function(u){switch(u.label){case 0:return r=zC.isSameOrigin(t),i=!Hd(t)&&this._options.useCORS===!0&&We.SUPPORT_CORS_IMAGES&&!r,s=!Hd(t)&&!r&&!_d(t)&&typeof this._options.proxy=="string"&&We.SUPPORT_CORS_XHR&&!i,!r&&this._options.allowTaint===!1&&!Hd(t)&&!_d(t)&&!s&&!i?[2]:(l=t,s?[4,this.proxy(l)]:[3,2]);case 1:l=u.sent(),u.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(f,h){var m=new Image;m.onload=function(){return f(m)},m.onerror=h,(j9(l)||i)&&(m.crossOrigin="anonymous"),m.src=l,m.complete===!0&&setTimeout(function(){return f(m)},500),c._options.imageTimeout>0&&setTimeout(function(){return h("Timed out ("+c._options.imageTimeout+"ms) loading image")},c._options.imageTimeout)})];case 3:return[2,u.sent()]}})})},A.prototype.has=function(t){return typeof this._cache[t]<"u"},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(t){var r=this,i=this._options.proxy;if(!i)throw new Error("No proxy defined");var s=t.substring(0,256);return new Promise(function(l,c){var u=We.SUPPORT_RESPONSE_TYPE?"blob":"text",f=new XMLHttpRequest;f.onload=function(){if(f.status===200)if(u==="text")l(f.response);else{var B=new FileReader;B.addEventListener("load",function(){return l(B.result)},!1),B.addEventListener("error",function(w){return c(w)},!1),B.readAsDataURL(f.response)}else c("Failed to proxy resource "+s+" with status code "+f.status)},f.onerror=c;var h=i.indexOf("?")>-1?"&":"?";if(f.open("GET",""+i+h+"url="+encodeURIComponent(t)+"&responseType="+u),u!=="text"&&f instanceof XMLHttpRequest&&(f.responseType=u),r._options.imageTimeout){var m=r._options.imageTimeout;f.timeout=m,f.ontimeout=function(){return c("Timed out ("+m+"ms) proxying "+s)}}f.send()})},A})(),R9=/^data:image\/svg\+xml/i,L9=/^data:image\/.*;base64,/i,D9=/^data:image\/.*/i,k9=function(A){return We.SUPPORT_SVG_DRAWING||!K9(A)},Hd=function(A){return D9.test(A)},j9=function(A){return L9.test(A)},_d=function(A){return A.substr(0,4)==="blob"},K9=function(A){return A.substr(-3).toLowerCase()==="svg"||R9.test(A)},BA=(function(){function A(t,r){this.type=0,this.x=t,this.y=r}return A.prototype.add=function(t,r){return new A(this.x+t,this.y+r)},A})(),ki=function(A,t,r){return new BA(A.x+(t.x-A.x)*r,A.y+(t.y-A.y)*r)},ko=(function(){function A(t,r,i,s){this.type=1,this.start=t,this.startControl=r,this.endControl=i,this.end=s}return A.prototype.subdivide=function(t,r){var i=ki(this.start,this.startControl,t),s=ki(this.startControl,this.endControl,t),l=ki(this.endControl,this.end,t),c=ki(i,s,t),u=ki(s,l,t),f=ki(c,u,t);return r?new A(this.start,i,c,f):new A(f,u,l,this.end)},A.prototype.add=function(t,r){return new A(this.start.add(t,r),this.startControl.add(t,r),this.endControl.add(t,r),this.end.add(t,r))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A})(),Kt=function(A){return A.type===1},V9=(function(){function A(t){var r=t.styles,i=t.bounds,s=Qs(r.borderTopLeftRadius,i.width,i.height),l=s[0],c=s[1],u=Qs(r.borderTopRightRadius,i.width,i.height),f=u[0],h=u[1],m=Qs(r.borderBottomRightRadius,i.width,i.height),B=m[0],w=m[1],C=Qs(r.borderBottomLeftRadius,i.width,i.height),E=C[0],v=C[1],F=[];F.push((l+f)/i.width),F.push((E+B)/i.width),F.push((c+v)/i.height),F.push((h+w)/i.height);var Q=Math.max.apply(Math,F);Q>1&&(l/=Q,c/=Q,f/=Q,h/=Q,B/=Q,w/=Q,E/=Q,v/=Q);var N=i.width-f,O=i.height-w,j=i.width-B,K=i.height-v,T=r.borderTopWidth,L=r.borderRightWidth,R=r.borderBottomWidth,_=r.borderLeftWidth,X=Be(r.paddingTop,t.bounds.width),nA=Be(r.paddingRight,t.bounds.width),z=Be(r.paddingBottom,t.bounds.width),lA=Be(r.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=l>0||c>0?Ee(i.left+_/3,i.top+T/3,l-_/3,c-T/3,re.TOP_LEFT):new BA(i.left+_/3,i.top+T/3),this.topRightBorderDoubleOuterBox=l>0||c>0?Ee(i.left+N,i.top+T/3,f-L/3,h-T/3,re.TOP_RIGHT):new BA(i.left+i.width-L/3,i.top+T/3),this.bottomRightBorderDoubleOuterBox=B>0||w>0?Ee(i.left+j,i.top+O,B-L/3,w-R/3,re.BOTTOM_RIGHT):new BA(i.left+i.width-L/3,i.top+i.height-R/3),this.bottomLeftBorderDoubleOuterBox=E>0||v>0?Ee(i.left+_/3,i.top+K,E-_/3,v-R/3,re.BOTTOM_LEFT):new BA(i.left+_/3,i.top+i.height-R/3),this.topLeftBorderDoubleInnerBox=l>0||c>0?Ee(i.left+_*2/3,i.top+T*2/3,l-_*2/3,c-T*2/3,re.TOP_LEFT):new BA(i.left+_*2/3,i.top+T*2/3),this.topRightBorderDoubleInnerBox=l>0||c>0?Ee(i.left+N,i.top+T*2/3,f-L*2/3,h-T*2/3,re.TOP_RIGHT):new BA(i.left+i.width-L*2/3,i.top+T*2/3),this.bottomRightBorderDoubleInnerBox=B>0||w>0?Ee(i.left+j,i.top+O,B-L*2/3,w-R*2/3,re.BOTTOM_RIGHT):new BA(i.left+i.width-L*2/3,i.top+i.height-R*2/3),this.bottomLeftBorderDoubleInnerBox=E>0||v>0?Ee(i.left+_*2/3,i.top+K,E-_*2/3,v-R*2/3,re.BOTTOM_LEFT):new BA(i.left+_*2/3,i.top+i.height-R*2/3),this.topLeftBorderStroke=l>0||c>0?Ee(i.left+_/2,i.top+T/2,l-_/2,c-T/2,re.TOP_LEFT):new BA(i.left+_/2,i.top+T/2),this.topRightBorderStroke=l>0||c>0?Ee(i.left+N,i.top+T/2,f-L/2,h-T/2,re.TOP_RIGHT):new BA(i.left+i.width-L/2,i.top+T/2),this.bottomRightBorderStroke=B>0||w>0?Ee(i.left+j,i.top+O,B-L/2,w-R/2,re.BOTTOM_RIGHT):new BA(i.left+i.width-L/2,i.top+i.height-R/2),this.bottomLeftBorderStroke=E>0||v>0?Ee(i.left+_/2,i.top+K,E-_/2,v-R/2,re.BOTTOM_LEFT):new BA(i.left+_/2,i.top+i.height-R/2),this.topLeftBorderBox=l>0||c>0?Ee(i.left,i.top,l,c,re.TOP_LEFT):new BA(i.left,i.top),this.topRightBorderBox=f>0||h>0?Ee(i.left+N,i.top,f,h,re.TOP_RIGHT):new BA(i.left+i.width,i.top),this.bottomRightBorderBox=B>0||w>0?Ee(i.left+j,i.top+O,B,w,re.BOTTOM_RIGHT):new BA(i.left+i.width,i.top+i.height),this.bottomLeftBorderBox=E>0||v>0?Ee(i.left,i.top+K,E,v,re.BOTTOM_LEFT):new BA(i.left,i.top+i.height),this.topLeftPaddingBox=l>0||c>0?Ee(i.left+_,i.top+T,Math.max(0,l-_),Math.max(0,c-T),re.TOP_LEFT):new BA(i.left+_,i.top+T),this.topRightPaddingBox=f>0||h>0?Ee(i.left+Math.min(N,i.width-L),i.top+T,N>i.width+L?0:Math.max(0,f-L),Math.max(0,h-T),re.TOP_RIGHT):new BA(i.left+i.width-L,i.top+T),this.bottomRightPaddingBox=B>0||w>0?Ee(i.left+Math.min(j,i.width-_),i.top+Math.min(O,i.height-R),Math.max(0,B-L),Math.max(0,w-R),re.BOTTOM_RIGHT):new BA(i.left+i.width-L,i.top+i.height-R),this.bottomLeftPaddingBox=E>0||v>0?Ee(i.left+_,i.top+Math.min(K,i.height-R),Math.max(0,E-_),Math.max(0,v-R),re.BOTTOM_LEFT):new BA(i.left+_,i.top+i.height-R),this.topLeftContentBox=l>0||c>0?Ee(i.left+_+lA,i.top+T+X,Math.max(0,l-(_+lA)),Math.max(0,c-(T+X)),re.TOP_LEFT):new BA(i.left+_+lA,i.top+T+X),this.topRightContentBox=f>0||h>0?Ee(i.left+Math.min(N,i.width+_+lA),i.top+T+X,N>i.width+_+lA?0:f-_+lA,h-(T+X),re.TOP_RIGHT):new BA(i.left+i.width-(L+nA),i.top+T+X),this.bottomRightContentBox=B>0||w>0?Ee(i.left+Math.min(j,i.width-(_+lA)),i.top+Math.min(O,i.height+T+X),Math.max(0,B-(L+nA)),w-(R+z),re.BOTTOM_RIGHT):new BA(i.left+i.width-(L+nA),i.top+i.height-(R+z)),this.bottomLeftContentBox=E>0||v>0?Ee(i.left+_+lA,i.top+K,Math.max(0,E-(_+lA)),v-(R+z),re.BOTTOM_LEFT):new BA(i.left+_+lA,i.top+i.height-(R+z))}return A})(),re;(function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(re||(re={}));var Ee=function(A,t,r,i,s){var l=4*((Math.sqrt(2)-1)/3),c=r*l,u=i*l,f=A+r,h=t+i;switch(s){case re.TOP_LEFT:return new ko(new BA(A,h),new BA(A,h-u),new BA(f-c,t),new BA(f,t));case re.TOP_RIGHT:return new ko(new BA(A,t),new BA(A+c,t),new BA(f,h-u),new BA(f,h));case re.BOTTOM_RIGHT:return new ko(new BA(f,t),new BA(f,t+u),new BA(A+c,h),new BA(A,h));case re.BOTTOM_LEFT:default:return new ko(new BA(f,h),new BA(f-c,h),new BA(A,t+u),new BA(A,t))}},jo=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},G9=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},Ko=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},z9=(function(){function A(t,r,i){this.offsetX=t,this.offsetY=r,this.matrix=i,this.type=0,this.target=6}return A})(),Vo=(function(){function A(t,r){this.path=t,this.target=r,this.type=1}return A})(),P9=(function(){function A(t){this.opacity=t,this.type=2,this.target=6}return A})(),Y9=function(A){return A.type===0},PC=function(A){return A.type===1},X9=function(A){return A.type===2},YC=function(A,t){return A.length===t.length?A.some(function(r,i){return r===t[i]}):!1},q9=function(A,t,r,i,s){return A.map(function(l,c){switch(c){case 0:return l.add(t,r);case 1:return l.add(t+i,r);case 2:return l.add(t+i,r+s);case 3:return l.add(t,r+s)}return l})},XC=(function(){function A(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A})(),qC=(function(){function A(t,r){if(this.container=t,this.parent=r,this.effects=[],this.curves=new V9(this.container),this.container.styles.opacity<1&&this.effects.push(new P9(this.container.styles.opacity)),this.container.styles.transform!==null){var i=this.container.bounds.left+this.container.styles.transformOrigin[0].number,s=this.container.bounds.top+this.container.styles.transformOrigin[1].number,l=this.container.styles.transform;this.effects.push(new z9(i,s,l))}if(this.container.styles.overflowX!==0){var c=jo(this.curves),u=Ko(this.curves);YC(c,u)?this.effects.push(new Vo(c,6)):(this.effects.push(new Vo(c,2)),this.effects.push(new Vo(u,4)))}}return A.prototype.getEffects=function(t){for(var r=[2,3].indexOf(this.container.styles.position)===-1,i=this.parent,s=this.effects.slice(0);i;){var l=i.effects.filter(function(f){return!PC(f)});if(r||i.container.styles.position!==0||!i.parent){if(s.unshift.apply(s,l),r=[2,3].indexOf(i.container.styles.position)===-1,i.container.styles.overflowX!==0){var c=jo(i.curves),u=Ko(i.curves);YC(c,u)||s.unshift(new Vo(u,6))}}else s.unshift.apply(s,l);i=i.parent}return s.filter(function(f){return Ke(f.target,t)})},A})(),Md=function(A,t,r,i){A.container.elements.forEach(function(s){var l=Ke(s.flags,4),c=Ke(s.flags,2),u=new qC(s,A);Ke(s.styles.display,2048)&&i.push(u);var f=Ke(s.flags,8)?[]:i;if(l||c){var h=l||s.styles.isPositioned()?r:t,m=new XC(u);if(s.styles.isPositioned()||s.styles.opacity<1||s.styles.isTransformed()){var B=s.styles.zIndex.order;if(B<0){var w=0;h.negativeZIndex.some(function(E,v){return B>E.element.container.styles.zIndex.order?(w=v,!1):w>0}),h.negativeZIndex.splice(w,0,m)}else if(B>0){var C=0;h.positiveZIndex.some(function(E,v){return B>=E.element.container.styles.zIndex.order?(C=v+1,!1):C>0}),h.positiveZIndex.splice(C,0,m)}else h.zeroOrAutoZIndexOrTransformedOrOpacity.push(m)}else s.styles.isFloating()?h.nonPositionedFloats.push(m):h.nonPositionedInlineLevel.push(m);Md(u,m,l?m:r,f)}else s.styles.isInlineLevel()?t.inlineLevel.push(u):t.nonInlineLevel.push(u),Md(u,t,r,f);Ke(s.flags,8)&&JC(s,f)})},JC=function(A,t){for(var r=A instanceof bd?A.start:1,i=A instanceof bd?A.reversed:!1,s=0;s<t.length;s++){var l=t[s];l.container instanceof yC&&typeof l.container.value=="number"&&l.container.value!==0&&(r=l.container.value),l.listValue=Hs(r,l.container.styles.listStyleType,!0),r+=i?-1:1}},J9=function(A){var t=new qC(A,null),r=new XC(t),i=[];return Md(t,r,r,i),JC(t.container,i),r},ZC=function(A,t){switch(t){case 0:return Vt(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return Vt(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return Vt(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);case 3:default:return Vt(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},Z9=function(A,t){switch(t){case 0:return Vt(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return Vt(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return Vt(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);case 3:default:return Vt(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}},W9=function(A,t){switch(t){case 0:return Vt(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return Vt(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return Vt(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);case 3:default:return Vt(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}},$9=function(A,t){switch(t){case 0:return Go(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return Go(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return Go(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);case 3:default:return Go(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}},Go=function(A,t){var r=[];return Kt(A)?r.push(A.subdivide(.5,!1)):r.push(A),Kt(t)?r.push(t.subdivide(.5,!0)):r.push(t),r},Vt=function(A,t,r,i){var s=[];return Kt(A)?s.push(A.subdivide(.5,!1)):s.push(A),Kt(r)?s.push(r.subdivide(.5,!0)):s.push(r),Kt(i)?s.push(i.subdivide(.5,!0).reverse()):s.push(i),Kt(t)?s.push(t.subdivide(.5,!1).reverse()):s.push(t),s},WC=function(A){var t=A.bounds,r=A.styles;return t.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},zo=function(A){var t=A.styles,r=A.bounds,i=Be(t.paddingLeft,r.width),s=Be(t.paddingRight,r.width),l=Be(t.paddingTop,r.width),c=Be(t.paddingBottom,r.width);return r.add(i+t.borderLeftWidth,l+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+i+s),-(t.borderTopWidth+t.borderBottomWidth+l+c))},A7=function(A,t){return A===0?t.bounds:A===2?zo(t):WC(t)},e7=function(A,t){return A===0?t.bounds:A===2?zo(t):WC(t)},Od=function(A,t,r){var i=A7(Ki(A.styles.backgroundOrigin,t),A),s=e7(Ki(A.styles.backgroundClip,t),A),l=t7(Ki(A.styles.backgroundSize,t),r,i),c=l[0],u=l[1],f=Qs(Ki(A.styles.backgroundPosition,t),i.width-c,i.height-u),h=n7(Ki(A.styles.backgroundRepeat,t),f,l,i,s),m=Math.round(i.left+f[0]),B=Math.round(i.top+f[1]);return[h,m,B,c,u]},ji=function(A){return se(A)&&A.value===Oi.AUTO},Po=function(A){return typeof A=="number"},t7=function(A,t,r){var i=t[0],s=t[1],l=t[2],c=A[0],u=A[1];if(!c)return[0,0];if(Me(c)&&u&&Me(u))return[Be(c,r.width),Be(u,r.height)];var f=Po(l);if(se(c)&&(c.value===Oi.CONTAIN||c.value===Oi.COVER)){if(Po(l)){var h=r.width/r.height;return h<l!=(c.value===Oi.COVER)?[r.width,r.width/l]:[r.height*l,r.height]}return[r.width,r.height]}var m=Po(i),B=Po(s),w=m||B;if(ji(c)&&(!u||ji(u))){if(m&&B)return[i,s];if(!f&&!w)return[r.width,r.height];if(w&&f){var C=m?i:s*l,E=B?s:i/l;return[C,E]}var v=m?i:r.width,F=B?s:r.height;return[v,F]}if(f){var Q=0,N=0;return Me(c)?Q=Be(c,r.width):Me(u)&&(N=Be(u,r.height)),ji(c)?Q=N*l:(!u||ji(u))&&(N=Q/l),[Q,N]}var O=null,j=null;if(Me(c)?O=Be(c,r.width):u&&Me(u)&&(j=Be(u,r.height)),O!==null&&(!u||ji(u))&&(j=m&&B?O/i*s:r.height),j!==null&&ji(c)&&(O=m&&B?j/s*i:r.width),O!==null&&j!==null)return[O,j];throw new Error("Unable to calculate background-size for element")},Ki=function(A,t){var r=A[t];return typeof r>"u"?A[0]:r},n7=function(A,t,r,i,s){var l=t[0],c=t[1],u=r[0],f=r[1];switch(A){case 2:return[new BA(Math.round(i.left),Math.round(i.top+c)),new BA(Math.round(i.left+i.width),Math.round(i.top+c)),new BA(Math.round(i.left+i.width),Math.round(f+i.top+c)),new BA(Math.round(i.left),Math.round(f+i.top+c))];case 3:return[new BA(Math.round(i.left+l),Math.round(i.top)),new BA(Math.round(i.left+l+u),Math.round(i.top)),new BA(Math.round(i.left+l+u),Math.round(i.height+i.top)),new BA(Math.round(i.left+l),Math.round(i.height+i.top))];case 1:return[new BA(Math.round(i.left+l),Math.round(i.top+c)),new BA(Math.round(i.left+l+u),Math.round(i.top+c)),new BA(Math.round(i.left+l+u),Math.round(i.top+c+f)),new BA(Math.round(i.left+l),Math.round(i.top+c+f))];default:return[new BA(Math.round(s.left),Math.round(s.top)),new BA(Math.round(s.left+s.width),Math.round(s.top)),new BA(Math.round(s.left+s.width),Math.round(s.height+s.top)),new BA(Math.round(s.left),Math.round(s.height+s.top))]}},r7="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",$C="Hidden Text",i7=(function(){function A(t){this._data={},this._document=t}return A.prototype.parseMetrics=function(t,r){var i=this._document.createElement("div"),s=this._document.createElement("img"),l=this._document.createElement("span"),c=this._document.body;i.style.visibility="hidden",i.style.fontFamily=t,i.style.fontSize=r,i.style.margin="0",i.style.padding="0",i.style.whiteSpace="nowrap",c.appendChild(i),s.src=r7,s.width=1,s.height=1,s.style.margin="0",s.style.padding="0",s.style.verticalAlign="baseline",l.style.fontFamily=t,l.style.fontSize=r,l.style.margin="0",l.style.padding="0",l.appendChild(this._document.createTextNode($C)),i.appendChild(l),i.appendChild(s);var u=s.offsetTop-l.offsetTop+2;i.removeChild(l),i.appendChild(this._document.createTextNode($C)),i.style.lineHeight="normal",s.style.verticalAlign="super";var f=s.offsetTop-i.offsetTop+2;return c.removeChild(i),{baseline:u,middle:f}},A.prototype.getMetrics=function(t,r){var i=t+" "+r;return typeof this._data[i]>"u"&&(this._data[i]=this.parseMetrics(t,r)),this._data[i]},A})(),Aw=(function(){function A(t,r){this.context=t,this.options=r}return A})(),a7=1e4,s7=(function(A){nn(t,A);function t(r,i){var s=A.call(this,r,i)||this;return s._activeEffects=[],s.canvas=i.canvas?i.canvas:document.createElement("canvas"),s.ctx=s.canvas.getContext("2d"),i.canvas||(s.canvas.width=Math.floor(i.width*i.scale),s.canvas.height=Math.floor(i.height*i.scale),s.canvas.style.width=i.width+"px",s.canvas.style.height=i.height+"px"),s.fontMetrics=new i7(document),s.ctx.scale(s.options.scale,s.options.scale),s.ctx.translate(-i.x,-i.y),s.ctx.textBaseline="bottom",s._activeEffects=[],s.context.logger.debug("Canvas renderer initialized ("+i.width+"x"+i.height+") with scale "+i.scale),s}return t.prototype.applyEffects=function(r){for(var i=this;this._activeEffects.length;)this.popEffect();r.forEach(function(s){return i.applyEffect(s)})},t.prototype.applyEffect=function(r){this.ctx.save(),X9(r)&&(this.ctx.globalAlpha=r.opacity),Y9(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),PC(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(r){return lt(this,void 0,void 0,function(){var i;return at(this,function(s){switch(s.label){case 0:return i=r.element.container.styles,i.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:s.sent(),s.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(r){return lt(this,void 0,void 0,function(){return at(this,function(i){switch(i.label){case 0:return Ke(r.container.flags,16),r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return i.sent(),[4,this.renderNodeContent(r)];case 2:i.sent(),i.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(r,i,s){var l=this;if(i===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+s);else{var c=vd(r.text);c.reduce(function(u,f){return l.ctx.fillText(f,u,r.bounds.top+s),u+l.ctx.measureText(f).width},r.bounds.left)}},t.prototype.createFontStyle=function(r){var i=r.fontVariant.filter(function(c){return c==="normal"||c==="small-caps"}).join(""),s=f7(r.fontFamily).join(", "),l=Ss(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,i,r.fontWeight,l,s].join(" "),s,l]},t.prototype.renderTextNode=function(r,i){return lt(this,void 0,void 0,function(){var s,l,c,u,f,h,m,B,w=this;return at(this,function(C){return s=this.createFontStyle(i),l=s[0],c=s[1],u=s[2],this.ctx.font=l,this.ctx.direction=i.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",f=this.fontMetrics.getMetrics(c,u),h=f.baseline,m=f.middle,B=i.paintOrder,r.textBounds.forEach(function(E){B.forEach(function(v){switch(v){case 0:w.ctx.fillStyle=Ge(i.color),w.renderTextWithLetterSpacing(E,i.letterSpacing,h);var F=i.textShadow;F.length&&E.text.trim().length&&(F.slice(0).reverse().forEach(function(Q){w.ctx.shadowColor=Ge(Q.color),w.ctx.shadowOffsetX=Q.offsetX.number*w.options.scale,w.ctx.shadowOffsetY=Q.offsetY.number*w.options.scale,w.ctx.shadowBlur=Q.blur.number,w.renderTextWithLetterSpacing(E,i.letterSpacing,h)}),w.ctx.shadowColor="",w.ctx.shadowOffsetX=0,w.ctx.shadowOffsetY=0,w.ctx.shadowBlur=0),i.textDecorationLine.length&&(w.ctx.fillStyle=Ge(i.textDecorationColor||i.color),i.textDecorationLine.forEach(function(Q){switch(Q){case 1:w.ctx.fillRect(E.bounds.left,Math.round(E.bounds.top+h),E.bounds.width,1);break;case 2:w.ctx.fillRect(E.bounds.left,Math.round(E.bounds.top),E.bounds.width,1);break;case 3:w.ctx.fillRect(E.bounds.left,Math.ceil(E.bounds.top+m),E.bounds.width,1);break}}));break;case 1:i.webkitTextStrokeWidth&&E.text.trim().length&&(w.ctx.strokeStyle=Ge(i.webkitTextStrokeColor),w.ctx.lineWidth=i.webkitTextStrokeWidth,w.ctx.lineJoin=window.chrome?"miter":"round",w.ctx.strokeText(E.text,E.bounds.left,E.bounds.top+h)),w.ctx.strokeStyle="",w.ctx.lineWidth=0,w.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(r,i,s){if(s&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var l=zo(r),c=Ko(i);this.path(c),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(s,0,0,r.intrinsicWidth,r.intrinsicHeight,l.left,l.top,l.width,l.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(r){return lt(this,void 0,void 0,function(){var i,s,l,c,u,f,N,N,h,m,B,w,j,C,E,K,v,F,Q,N,O,j,K;return at(this,function(T){switch(T.label){case 0:this.applyEffects(r.getEffects(4)),i=r.container,s=r.curves,l=i.styles,c=0,u=i.textNodes,T.label=1;case 1:return c<u.length?(f=u[c],[4,this.renderTextNode(f,l)]):[3,4];case 2:T.sent(),T.label=3;case 3:return c++,[3,1];case 4:if(!(i instanceof BC))return[3,8];T.label=5;case 5:return T.trys.push([5,7,,8]),[4,this.context.cache.match(i.src)];case 6:return N=T.sent(),this.renderReplacedElement(i,s,N),[3,8];case 7:return T.sent(),this.context.logger.error("Error loading image "+i.src),[3,8];case 8:if(i instanceof CC&&this.renderReplacedElement(i,s,i.canvas),!(i instanceof wC))return[3,12];T.label=9;case 9:return T.trys.push([9,11,,12]),[4,this.context.cache.match(i.svg)];case 10:return N=T.sent(),this.renderReplacedElement(i,s,N),[3,12];case 11:return T.sent(),this.context.logger.error("Error loading svg "+i.svg.substring(0,255)),[3,12];case 12:return i instanceof xC&&i.tree?(h=new t(this.context,{scale:this.options.scale,backgroundColor:i.backgroundColor,x:0,y:0,width:i.width,height:i.height}),[4,h.render(i.tree)]):[3,14];case 13:m=T.sent(),i.width&&i.height&&this.ctx.drawImage(m,0,0,i.width,i.height,i.bounds.left,i.bounds.top,i.bounds.width,i.bounds.height),T.label=14;case 14:if(i instanceof xd&&(B=Math.min(i.bounds.width,i.bounds.height),i.type===_o?i.checked&&(this.ctx.save(),this.path([new BA(i.bounds.left+B*.39363,i.bounds.top+B*.79),new BA(i.bounds.left+B*.16,i.bounds.top+B*.5549),new BA(i.bounds.left+B*.27347,i.bounds.top+B*.44071),new BA(i.bounds.left+B*.39694,i.bounds.top+B*.5649),new BA(i.bounds.left+B*.72983,i.bounds.top+B*.23),new BA(i.bounds.left+B*.84,i.bounds.top+B*.34085),new BA(i.bounds.left+B*.39363,i.bounds.top+B*.79)]),this.ctx.fillStyle=Ge(EC),this.ctx.fill(),this.ctx.restore()):i.type===Mo&&i.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(i.bounds.left+B/2,i.bounds.top+B/2,B/4,0,Math.PI*2,!0),this.ctx.fillStyle=Ge(EC),this.ctx.fill(),this.ctx.restore())),l7(i)&&i.value.length){switch(w=this.createFontStyle(l),j=w[0],C=w[1],E=this.fontMetrics.getMetrics(j,C).baseline,this.ctx.font=j,this.ctx.fillStyle=Ge(l.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=c7(i.styles.textAlign),K=zo(i),v=0,i.styles.textAlign){case 1:v+=K.width/2;break;case 2:v+=K.width;break}F=K.add(v,0,0,-K.height/2+1),this.ctx.save(),this.path([new BA(K.left,K.top),new BA(K.left+K.width,K.top),new BA(K.left+K.width,K.top+K.height),new BA(K.left,K.top+K.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Is(i.value,F),l.letterSpacing,E),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Ke(i.styles.display,2048))return[3,20];if(i.styles.listStyleImage===null)return[3,19];if(Q=i.styles.listStyleImage,Q.type!==0)return[3,18];N=void 0,O=Q.url,T.label=15;case 15:return T.trys.push([15,17,,18]),[4,this.context.cache.match(O)];case 16:return N=T.sent(),this.ctx.drawImage(N,i.bounds.left-(N.width+10),i.bounds.top),[3,18];case 17:return T.sent(),this.context.logger.error("Error loading list-style-image "+O),[3,18];case 18:return[3,20];case 19:r.listValue&&i.styles.listStyleType!==-1&&(j=this.createFontStyle(l)[0],this.ctx.font=j,this.ctx.fillStyle=Ge(l.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",K=new Qn(i.bounds.left,i.bounds.top+Be(i.styles.paddingTop,i.bounds.width),i.bounds.width,$1(l.lineHeight,l.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Is(r.listValue,K),l.letterSpacing,$1(l.lineHeight,l.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),T.label=20;case 20:return[2]}})})},t.prototype.renderStackContent=function(r){return lt(this,void 0,void 0,function(){var i,s,Q,l,c,Q,u,f,Q,h,m,Q,B,w,Q,C,E,Q,v,F,Q;return at(this,function(N){switch(N.label){case 0:return Ke(r.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:N.sent(),i=0,s=r.negativeZIndex,N.label=2;case 2:return i<s.length?(Q=s[i],[4,this.renderStack(Q)]):[3,5];case 3:N.sent(),N.label=4;case 4:return i++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:N.sent(),l=0,c=r.nonInlineLevel,N.label=7;case 7:return l<c.length?(Q=c[l],[4,this.renderNode(Q)]):[3,10];case 8:N.sent(),N.label=9;case 9:return l++,[3,7];case 10:u=0,f=r.nonPositionedFloats,N.label=11;case 11:return u<f.length?(Q=f[u],[4,this.renderStack(Q)]):[3,14];case 12:N.sent(),N.label=13;case 13:return u++,[3,11];case 14:h=0,m=r.nonPositionedInlineLevel,N.label=15;case 15:return h<m.length?(Q=m[h],[4,this.renderStack(Q)]):[3,18];case 16:N.sent(),N.label=17;case 17:return h++,[3,15];case 18:B=0,w=r.inlineLevel,N.label=19;case 19:return B<w.length?(Q=w[B],[4,this.renderNode(Q)]):[3,22];case 20:N.sent(),N.label=21;case 21:return B++,[3,19];case 22:C=0,E=r.zeroOrAutoZIndexOrTransformedOrOpacity,N.label=23;case 23:return C<E.length?(Q=E[C],[4,this.renderStack(Q)]):[3,26];case 24:N.sent(),N.label=25;case 25:return C++,[3,23];case 26:v=0,F=r.positiveZIndex,N.label=27;case 27:return v<F.length?(Q=F[v],[4,this.renderStack(Q)]):[3,30];case 28:N.sent(),N.label=29;case 29:return v++,[3,27];case 30:return[2]}})})},t.prototype.mask=function(r){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(r.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(r){this.ctx.beginPath(),this.formatPath(r),this.ctx.closePath()},t.prototype.formatPath=function(r){var i=this;r.forEach(function(s,l){var c=Kt(s)?s.start:s;l===0?i.ctx.moveTo(c.x,c.y):i.ctx.lineTo(c.x,c.y),Kt(s)&&i.ctx.bezierCurveTo(s.startControl.x,s.startControl.y,s.endControl.x,s.endControl.y,s.end.x,s.end.y)})},t.prototype.renderRepeat=function(r,i,s,l){this.path(r),this.ctx.fillStyle=i,this.ctx.translate(s,l),this.ctx.fill(),this.ctx.translate(-s,-l)},t.prototype.resizeImage=function(r,i,s){var l;if(r.width===i&&r.height===s)return r;var c=(l=this.canvas.ownerDocument)!==null&&l!==void 0?l:document,u=c.createElement("canvas");u.width=Math.max(1,i),u.height=Math.max(1,s);var f=u.getContext("2d");return f.drawImage(r,0,0,r.width,r.height,0,0,i,s),u},t.prototype.renderBackgroundImage=function(r){return lt(this,void 0,void 0,function(){var i,s,l,c,u,f;return at(this,function(h){switch(h.label){case 0:i=r.styles.backgroundImage.length-1,s=function(m){var B,w,C,X,D,W,lA,Z,R,E,X,D,W,lA,Z,v,F,Q,N,O,j,K,T,L,R,_,X,nA,z,lA,Z,eA,D,W,AA,gA,I,U,M,S,aA,uA;return at(this,function(fA){switch(fA.label){case 0:if(m.type!==0)return[3,5];B=void 0,w=m.url,fA.label=1;case 1:return fA.trys.push([1,3,,4]),[4,l.context.cache.match(w)];case 2:return B=fA.sent(),[3,4];case 3:return fA.sent(),l.context.logger.error("Error loading background-image "+w),[3,4];case 4:return B&&(C=Od(r,i,[B.width,B.height,B.width/B.height]),X=C[0],D=C[1],W=C[2],lA=C[3],Z=C[4],R=l.ctx.createPattern(l.resizeImage(B,lA,Z),"repeat"),l.renderRepeat(X,R,D,W)),[3,6];case 5:YF(m)?(E=Od(r,i,[null,null,null]),X=E[0],D=E[1],W=E[2],lA=E[3],Z=E[4],v=KF(m.angle,lA,Z),F=v[0],Q=v[1],N=v[2],O=v[3],j=v[4],K=document.createElement("canvas"),K.width=lA,K.height=Z,T=K.getContext("2d"),L=T.createLinearGradient(Q,O,N,j),K1(m.stops,F).forEach(function(pA){return L.addColorStop(pA.stop,Ge(pA.color))}),T.fillStyle=L,T.fillRect(0,0,lA,Z),lA>0&&Z>0&&(R=l.ctx.createPattern(K,"repeat"),l.renderRepeat(X,R,D,W))):XF(m)&&(_=Od(r,i,[null,null,null]),X=_[0],nA=_[1],z=_[2],lA=_[3],Z=_[4],eA=m.position.length===0?[ld]:m.position,D=Be(eA[0],lA),W=Be(eA[eA.length-1],Z),AA=VF(m,D,W,lA,Z),gA=AA[0],I=AA[1],gA>0&&I>0&&(U=l.ctx.createRadialGradient(nA+D,z+W,0,nA+D,z+W,gA),K1(m.stops,gA*2).forEach(function(pA){return U.addColorStop(pA.stop,Ge(pA.color))}),l.path(X),l.ctx.fillStyle=U,gA!==I?(M=r.bounds.left+.5*r.bounds.width,S=r.bounds.top+.5*r.bounds.height,aA=I/gA,uA=1/aA,l.ctx.save(),l.ctx.translate(M,S),l.ctx.transform(1,0,0,aA,0,0),l.ctx.translate(-M,-S),l.ctx.fillRect(nA,uA*(z-S)+S,lA,Z*uA),l.ctx.restore()):l.ctx.fill())),fA.label=6;case 6:return i--,[2]}})},l=this,c=0,u=r.styles.backgroundImage.slice(0).reverse(),h.label=1;case 1:return c<u.length?(f=u[c],[5,s(f)]):[3,4];case 2:h.sent(),h.label=3;case 3:return c++,[3,1];case 4:return[2]}})})},t.prototype.renderSolidBorder=function(r,i,s){return lt(this,void 0,void 0,function(){return at(this,function(l){return this.path(ZC(s,i)),this.ctx.fillStyle=Ge(r),this.ctx.fill(),[2]})})},t.prototype.renderDoubleBorder=function(r,i,s,l){return lt(this,void 0,void 0,function(){var c,u;return at(this,function(f){switch(f.label){case 0:return i<3?[4,this.renderSolidBorder(r,s,l)]:[3,2];case 1:return f.sent(),[2];case 2:return c=Z9(l,s),this.path(c),this.ctx.fillStyle=Ge(r),this.ctx.fill(),u=W9(l,s),this.path(u),this.ctx.fill(),[2]}})})},t.prototype.renderNodeBackgroundAndBorders=function(r){return lt(this,void 0,void 0,function(){var i,s,l,c,u,f,h,m,B=this;return at(this,function(w){switch(w.label){case 0:return this.applyEffects(r.getEffects(2)),i=r.container.styles,s=!fr(i.backgroundColor)||i.backgroundImage.length,l=[{style:i.borderTopStyle,color:i.borderTopColor,width:i.borderTopWidth},{style:i.borderRightStyle,color:i.borderRightColor,width:i.borderRightWidth},{style:i.borderBottomStyle,color:i.borderBottomColor,width:i.borderBottomWidth},{style:i.borderLeftStyle,color:i.borderLeftColor,width:i.borderLeftWidth}],c=o7(Ki(i.backgroundClip,0),r.curves),s||i.boxShadow.length?(this.ctx.save(),this.path(c),this.ctx.clip(),fr(i.backgroundColor)||(this.ctx.fillStyle=Ge(i.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(r.container)]):[3,2];case 1:w.sent(),this.ctx.restore(),i.boxShadow.slice(0).reverse().forEach(function(C){B.ctx.save();var E=jo(r.curves),v=C.inset?0:a7,F=q9(E,-v+(C.inset?1:-1)*C.spread.number,(C.inset?1:-1)*C.spread.number,C.spread.number*(C.inset?-2:2),C.spread.number*(C.inset?-2:2));C.inset?(B.path(E),B.ctx.clip(),B.mask(F)):(B.mask(E),B.ctx.clip(),B.path(F)),B.ctx.shadowOffsetX=C.offsetX.number+v,B.ctx.shadowOffsetY=C.offsetY.number,B.ctx.shadowColor=Ge(C.color),B.ctx.shadowBlur=C.blur.number,B.ctx.fillStyle=C.inset?Ge(C.color):"rgba(0,0,0,1)",B.ctx.fill(),B.ctx.restore()}),w.label=2;case 2:u=0,f=0,h=l,w.label=3;case 3:return f<h.length?(m=h[f],m.style!==0&&!fr(m.color)&&m.width>0?m.style!==2?[3,5]:[4,this.renderDashedDottedBorder(m.color,m.width,u,r.curves,2)]:[3,11]):[3,13];case 4:return w.sent(),[3,11];case 5:return m.style!==3?[3,7]:[4,this.renderDashedDottedBorder(m.color,m.width,u,r.curves,3)];case 6:return w.sent(),[3,11];case 7:return m.style!==4?[3,9]:[4,this.renderDoubleBorder(m.color,m.width,u,r.curves)];case 8:return w.sent(),[3,11];case 9:return[4,this.renderSolidBorder(m.color,u,r.curves)];case 10:w.sent(),w.label=11;case 11:u++,w.label=12;case 12:return f++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(r,i,s,l,c){return lt(this,void 0,void 0,function(){var u,f,h,m,B,w,C,E,v,F,Q,N,O,j,K,T,K,T;return at(this,function(L){return this.ctx.save(),u=$9(l,s),f=ZC(l,s),c===2&&(this.path(f),this.ctx.clip()),Kt(f[0])?(h=f[0].start.x,m=f[0].start.y):(h=f[0].x,m=f[0].y),Kt(f[1])?(B=f[1].end.x,w=f[1].end.y):(B=f[1].x,w=f[1].y),s===0||s===2?C=Math.abs(h-B):C=Math.abs(m-w),this.ctx.beginPath(),c===3?this.formatPath(u):this.formatPath(f.slice(0,2)),E=i<3?i*3:i*2,v=i<3?i*2:i,c===3&&(E=i,v=i),F=!0,C<=E*2?F=!1:C<=E*2+v?(Q=C/(2*E+v),E*=Q,v*=Q):(N=Math.floor((C+v)/(E+v)),O=(C-N*E)/(N-1),j=(C-(N+1)*E)/N,v=j<=0||Math.abs(v-O)<Math.abs(v-j)?O:j),F&&(c===3?this.ctx.setLineDash([0,E+v]):this.ctx.setLineDash([E,v])),c===3?(this.ctx.lineCap="round",this.ctx.lineWidth=i):this.ctx.lineWidth=i*2+1.1,this.ctx.strokeStyle=Ge(r),this.ctx.stroke(),this.ctx.setLineDash([]),c===2&&(Kt(f[0])&&(K=f[3],T=f[0],this.ctx.beginPath(),this.formatPath([new BA(K.end.x,K.end.y),new BA(T.start.x,T.start.y)]),this.ctx.stroke()),Kt(f[1])&&(K=f[1],T=f[2],this.ctx.beginPath(),this.formatPath([new BA(K.end.x,K.end.y),new BA(T.start.x,T.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},t.prototype.render=function(r){return lt(this,void 0,void 0,function(){var i;return at(this,function(s){switch(s.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Ge(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),i=J9(r),[4,this.renderStack(i)];case 1:return s.sent(),this.applyEffects([]),[2,this.canvas]}})})},t})(Aw),l7=function(A){return A instanceof bC||A instanceof vC?!0:A instanceof xd&&A.type!==Mo&&A.type!==_o},o7=function(A,t){switch(A){case 0:return jo(t);case 2:return G9(t);case 1:default:return Ko(t)}},c7=function(A){switch(A){case 1:return"center";case 2:return"right";case 0:default:return"left"}},u7=["-apple-system","system-ui"],f7=function(A){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?A.filter(function(t){return u7.indexOf(t)===-1}):A},d7=(function(A){nn(t,A);function t(r,i){var s=A.call(this,r,i)||this;return s.canvas=i.canvas?i.canvas:document.createElement("canvas"),s.ctx=s.canvas.getContext("2d"),s.options=i,s.canvas.width=Math.floor(i.width*i.scale),s.canvas.height=Math.floor(i.height*i.scale),s.canvas.style.width=i.width+"px",s.canvas.style.height=i.height+"px",s.ctx.scale(s.options.scale,s.options.scale),s.ctx.translate(-i.x,-i.y),s.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+i.width+"x"+i.height+" at "+i.x+","+i.y+") with scale "+i.scale),s}return t.prototype.render=function(r){return lt(this,void 0,void 0,function(){var i,s;return at(this,function(l){switch(l.label){case 0:return i=Ed(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,h7(i)];case 1:return s=l.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Ge(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(s,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},t})(Aw),h7=function(A){return new Promise(function(t,r){var i=new Image;i.onload=function(){t(i)},i.onerror=r,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},g7=(function(){function A(t){var r=t.id,i=t.enabled;this.id=r,this.enabled=i,this.start=Date.now()}return A.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"||this.info.apply(this,t))},A.prototype.getTime=function(){return Date.now()-this.start},A.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&typeof window<"u"&&window.console},A.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"||this.info.apply(this,t))},A.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"||this.info.apply(this,t))},A.instances={},A})(),p7=(function(){function A(t,r){var i;this.windowBounds=r,this.instanceName="#"+A.instanceCount++,this.logger=new g7({id:this.instanceName,enabled:t.logging}),this.cache=(i=t.cache)!==null&&i!==void 0?i:new O9(this,t)}return A.instanceCount=1,A})(),m7=function(A,t){return t===void 0&&(t={}),B7(A,t)};typeof window<"u"&&zC.setContext(window);var B7=function(A,t){return lt(void 0,void 0,void 0,function(){var r,i,s,l,c,u,f,h,m,B,w,C,E,v,F,Q,N,O,j,K,L,T,L,R,_,X,nA,z,lA,Z,eA,D,W,AA,gA,I,U,M,S,aA;return at(this,function(uA){switch(uA.label){case 0:if(!A||typeof A!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(r=A.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(i=r.defaultView,!i)throw new Error("Document is not attached to a Window");return s={allowTaint:(R=t.allowTaint)!==null&&R!==void 0?R:!1,imageTimeout:(_=t.imageTimeout)!==null&&_!==void 0?_:15e3,proxy:t.proxy,useCORS:(X=t.useCORS)!==null&&X!==void 0?X:!1},l=jf({logging:(nA=t.logging)!==null&&nA!==void 0?nA:!0,cache:t.cache},s),c={windowWidth:(z=t.windowWidth)!==null&&z!==void 0?z:i.innerWidth,windowHeight:(lA=t.windowHeight)!==null&&lA!==void 0?lA:i.innerHeight,scrollX:(Z=t.scrollX)!==null&&Z!==void 0?Z:i.pageXOffset,scrollY:(eA=t.scrollY)!==null&&eA!==void 0?eA:i.pageYOffset},u=new Qn(c.scrollX,c.scrollY,c.windowWidth,c.windowHeight),f=new p7(l,u),h=(D=t.foreignObjectRendering)!==null&&D!==void 0?D:!1,m={allowTaint:(W=t.allowTaint)!==null&&W!==void 0?W:!1,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:h,copyStyles:h},f.logger.debug("Starting document clone with size "+u.width+"x"+u.height+" scrolled to "+-u.left+","+-u.top),B=new VC(f,A,m),w=B.clonedReferenceElement,w?[4,B.toIFrame(r,u)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return C=uA.sent(),E=Qd(w)||C9(w)?q6(w.ownerDocument):Ao(f,w),v=E.width,F=E.height,Q=E.left,N=E.top,O=C7(f,w,t.backgroundColor),j={canvas:t.canvas,backgroundColor:O,scale:(gA=(AA=t.scale)!==null&&AA!==void 0?AA:i.devicePixelRatio)!==null&&gA!==void 0?gA:1,x:((I=t.x)!==null&&I!==void 0?I:0)+Q,y:((U=t.y)!==null&&U!==void 0?U:0)+N,width:(M=t.width)!==null&&M!==void 0?M:Math.ceil(v),height:(S=t.height)!==null&&S!==void 0?S:Math.ceil(F)},h?(f.logger.debug("Document cloned, using foreign object rendering"),L=new d7(f,j),[4,L.render(w)]):[3,3];case 2:return K=uA.sent(),[3,5];case 3:return f.logger.debug("Document cloned, element located at "+Q+","+N+" with size "+v+"x"+F+" using computed rendering"),f.logger.debug("Starting DOM parsing"),T=QC(f,w),O===T.styles.backgroundColor&&(T.styles.backgroundColor=Fn.TRANSPARENT),f.logger.debug("Starting renderer for element at "+j.x+","+j.y+" with size "+j.width+"x"+j.height),L=new s7(f,j),[4,L.render(T)];case 4:K=uA.sent(),uA.label=5;case 5:return(!((aA=t.removeContainer)!==null&&aA!==void 0)||aA)&&(VC.destroy(C)||f.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),f.logger.debug("Finished rendering"),[2,K]}})})},C7=function(A,t,r){var i=t.ownerDocument,s=i.documentElement?Us(A,getComputedStyle(i.documentElement).backgroundColor):Fn.TRANSPARENT,l=i.body?Us(A,getComputedStyle(i.body).backgroundColor):Fn.TRANSPARENT,c=typeof r=="string"?Us(A,r):r===null?Fn.TRANSPARENT:4294967295;return t===i.documentElement?fr(s)?fr(l)?c:l:s:c};const ew=Object.freeze(Object.defineProperty({__proto__:null,default:m7},Symbol.toStringTag,{value:"Module"}));return su.renderMedAssist=Bm,Object.defineProperty(su,Symbol.toStringTag,{value:"Module"}),su})({});
|