@assistrio/chat-widget 0.1.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/README.md +88 -0
- package/dist/api.d.ts +3 -0
- package/dist/api.d.ts.map +1 -0
- package/dist/assistrio-chat.css +2 -0
- package/dist/assistrio-chat.js +37 -0
- package/dist/bootstrap.d.ts +9 -0
- package/dist/bootstrap.d.ts.map +1 -0
- package/dist/browser.d.ts +12 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/components/AdminLiveChatAdapter.d.ts +38 -0
- package/dist/components/AdminLiveChatAdapter.d.ts.map +1 -0
- package/dist/components/chat-ui/Chat.d.ts +117 -0
- package/dist/components/chat-ui/Chat.d.ts.map +1 -0
- package/dist/components/chat-ui/ChatBubble.d.ts +36 -0
- package/dist/components/chat-ui/ChatBubble.d.ts.map +1 -0
- package/dist/components/chat-ui/ChatComposer.d.ts +34 -0
- package/dist/components/chat-ui/ChatComposer.d.ts.map +1 -0
- package/dist/components/chat-ui/ChatHeader.d.ts +54 -0
- package/dist/components/chat-ui/ChatHeader.d.ts.map +1 -0
- package/dist/components/chat-ui/ChatLauncherBubble.d.ts +41 -0
- package/dist/components/chat-ui/ChatLauncherBubble.d.ts.map +1 -0
- package/dist/components/chat-ui/ChatMessages.d.ts +45 -0
- package/dist/components/chat-ui/ChatMessages.d.ts.map +1 -0
- package/dist/components/chat-ui/ChatSources.d.ts +12 -0
- package/dist/components/chat-ui/ChatSources.d.ts.map +1 -0
- package/dist/components/chat-ui/ChatWithLauncher.d.ts +22 -0
- package/dist/components/chat-ui/ChatWithLauncher.d.ts.map +1 -0
- package/dist/components/chat-ui/index.d.ts +19 -0
- package/dist/components/chat-ui/index.d.ts.map +1 -0
- package/dist/components/chat-ui/types.d.ts +42 -0
- package/dist/components/chat-ui/types.d.ts.map +1 -0
- package/dist/components/chat-ui/utils.d.ts +4 -0
- package/dist/components/chat-ui/utils.d.ts.map +1 -0
- package/dist/config.d.ts +5 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/hooks/usePreferredColorScheme.d.ts +5 -0
- package/dist/hooks/usePreferredColorScheme.d.ts.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +30 -0
- package/dist/index.mjs.map +7 -0
- package/dist/lib/apiFetch.d.ts +6 -0
- package/dist/lib/apiFetch.d.ts.map +1 -0
- package/dist/lib/preview-display-merge.d.ts +8 -0
- package/dist/lib/preview-display-merge.d.ts.map +1 -0
- package/dist/lib/welcomeMessage.d.ts +9 -0
- package/dist/lib/welcomeMessage.d.ts.map +1 -0
- package/dist/models/botChatUI.d.ts +54 -0
- package/dist/models/botChatUI.d.ts.map +1 -0
- package/dist/normalize.d.ts +3 -0
- package/dist/normalize.d.ts.map +1 -0
- package/dist/types.d.ts +128 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/widget-root.d.ts +6 -0
- package/dist/widget-root.d.ts.map +1 -0
- package/package.json +60 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";var AssistrioChat=(()=>{var lb=Object.create;var Zu=Object.defineProperty;var nb=Object.getOwnPropertyDescriptor;var rb=Object.getOwnPropertyNames;var ub=Object.getPrototypeOf,ob=Object.prototype.hasOwnProperty;var ft=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Vp=(e,t)=>{for(var a in t)Zu(e,a,{get:t[a],enumerable:!0})},Xp=(e,t,a,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of rb(t))!ob.call(e,n)&&n!==a&&Zu(e,n,{get:()=>t[n],enumerable:!(l=nb(t,n))||l.enumerable});return e};var J=(e,t,a)=>(a=e!=null?lb(ub(e)):{},Xp(t||!e||!e.__esModule?Zu(a,"default",{value:e,enumerable:!0}):a,e)),ib=e=>Xp(Zu({},"__esModule",{value:!0}),e);var tm=ft(be=>{"use strict";function Ls(e,t){var a=e.length;e.push(t);e:for(;0<a;){var l=a-1>>>1,n=e[l];if(0<Ku(n,t))e[l]=t,e[a]=n,a=l;else break e}}function ia(e){return e.length===0?null:e[0]}function Ju(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var l=0,n=e.length,r=n>>>1;l<r;){var u=2*(l+1)-1,o=e[u],i=u+1,s=e[i];if(0>Ku(o,a))i<n&&0>Ku(s,o)?(e[l]=s,e[i]=a,l=i):(e[l]=o,e[u]=a,l=u);else if(i<n&&0>Ku(s,a))e[l]=s,e[i]=a,l=i;else break e}}return t}function Ku(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}be.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(jp=performance,be.unstable_now=function(){return jp.now()}):(hs=Date,Qp=hs.now(),be.unstable_now=function(){return hs.now()-Qp});var jp,hs,Qp,va=[],el=[],sb=1,Ft=null,ut=3,ys=!1,Ar=!1,Tr=!1,Cs=!1,Kp=typeof setTimeout=="function"?setTimeout:null,Wp=typeof clearTimeout=="function"?clearTimeout:null,Yp=typeof setImmediate!="undefined"?setImmediate:null;function Wu(e){for(var t=ia(el);t!==null;){if(t.callback===null)Ju(el);else if(t.startTime<=e)Ju(el),t.sortIndex=t.expirationTime,Ls(va,t);else break;t=ia(el)}}function Ss(e){if(Tr=!1,Wu(e),!Ar)if(ia(va)!==null)Ar=!0,In||(In=!0,bn());else{var t=ia(el);t!==null&&bs(Ss,t.startTime-e)}}var In=!1,Mr=-1,Jp=5,$p=-1;function em(){return Cs?!0:!(be.unstable_now()-$p<Jp)}function gs(){if(Cs=!1,In){var e=be.unstable_now();$p=e;var t=!0;try{e:{Ar=!1,Tr&&(Tr=!1,Wp(Mr),Mr=-1),ys=!0;var a=ut;try{t:{for(Wu(e),Ft=ia(va);Ft!==null&&!(Ft.expirationTime>e&&em());){var l=Ft.callback;if(typeof l=="function"){Ft.callback=null,ut=Ft.priorityLevel;var n=l(Ft.expirationTime<=e);if(e=be.unstable_now(),typeof n=="function"){Ft.callback=n,Wu(e),t=!0;break t}Ft===ia(va)&&Ju(va),Wu(e)}else Ju(va);Ft=ia(va)}if(Ft!==null)t=!0;else{var r=ia(el);r!==null&&bs(Ss,r.startTime-e),t=!1}}break e}finally{Ft=null,ut=a,ys=!1}t=void 0}}finally{t?bn():In=!1}}}var bn;typeof Yp=="function"?bn=function(){Yp(gs)}:typeof MessageChannel!="undefined"?(xs=new MessageChannel,Zp=xs.port2,xs.port1.onmessage=gs,bn=function(){Zp.postMessage(null)}):bn=function(){Kp(gs,0)};var xs,Zp;function bs(e,t){Mr=Kp(function(){e(be.unstable_now())},t)}be.unstable_IdlePriority=5;be.unstable_ImmediatePriority=1;be.unstable_LowPriority=4;be.unstable_NormalPriority=3;be.unstable_Profiling=null;be.unstable_UserBlockingPriority=2;be.unstable_cancelCallback=function(e){e.callback=null};be.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Jp=0<e?Math.floor(1e3/e):5};be.unstable_getCurrentPriorityLevel=function(){return ut};be.unstable_next=function(e){switch(ut){case 1:case 2:case 3:var t=3;break;default:t=ut}var a=ut;ut=t;try{return e()}finally{ut=a}};be.unstable_requestPaint=function(){Cs=!0};be.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=ut;ut=e;try{return t()}finally{ut=a}};be.unstable_scheduleCallback=function(e,t,a){var l=be.unstable_now();switch(typeof a=="object"&&a!==null?(a=a.delay,a=typeof a=="number"&&0<a?l+a:l):a=l,e){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=a+n,e={id:sb++,callback:t,priorityLevel:e,startTime:a,expirationTime:n,sortIndex:-1},a>l?(e.sortIndex=a,Ls(el,e),ia(va)===null&&e===ia(el)&&(Tr?(Wp(Mr),Mr=-1):Tr=!0,bs(Ss,a-l))):(e.sortIndex=n,Ls(va,e),Ar||ys||(Ar=!0,In||(In=!0,bn()))),e};be.unstable_shouldYield=em;be.unstable_wrapCallback=function(e){var t=ut;return function(){var a=ut;ut=t;try{return e.apply(this,arguments)}finally{ut=a}}}});var lm=ft((k2,am)=>{"use strict";am.exports=tm()});var mm=ft(j=>{"use strict";var ks=Symbol.for("react.transitional.element"),fb=Symbol.for("react.portal"),cb=Symbol.for("react.fragment"),db=Symbol.for("react.strict_mode"),pb=Symbol.for("react.profiler"),mb=Symbol.for("react.consumer"),hb=Symbol.for("react.context"),gb=Symbol.for("react.forward_ref"),xb=Symbol.for("react.suspense"),Lb=Symbol.for("react.memo"),im=Symbol.for("react.lazy"),yb=Symbol.for("react.activity"),nm=Symbol.iterator;function Cb(e){return e===null||typeof e!="object"?null:(e=nm&&e[nm]||e["@@iterator"],typeof e=="function"?e:null)}var sm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fm=Object.assign,cm={};function kn(e,t,a){this.props=e,this.context=t,this.refs=cm,this.updater=a||sm}kn.prototype.isReactComponent={};kn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};kn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function dm(){}dm.prototype=kn.prototype;function ws(e,t,a){this.props=e,this.context=t,this.refs=cm,this.updater=a||sm}var As=ws.prototype=new dm;As.constructor=ws;fm(As,kn.prototype);As.isPureReactComponent=!0;var rm=Array.isArray;function vs(){}var xe={H:null,A:null,T:null,S:null},pm=Object.prototype.hasOwnProperty;function Ts(e,t,a){var l=a.ref;return{$$typeof:ks,type:e,key:t,ref:l!==void 0?l:null,props:a}}function Sb(e,t){return Ts(e.type,t,e.props)}function Ms(e){return typeof e=="object"&&e!==null&&e.$$typeof===ks}function bb(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var um=/\/+/g;function Is(e,t){return typeof e=="object"&&e!==null&&e.key!=null?bb(""+e.key):t.toString(36)}function Ib(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(vs,vs):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function vn(e,t,a,l,n){var r=typeof e;(r==="undefined"||r==="boolean")&&(e=null);var u=!1;if(e===null)u=!0;else switch(r){case"bigint":case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case ks:case fb:u=!0;break;case im:return u=e._init,vn(u(e._payload),t,a,l,n)}}if(u)return n=n(e),u=l===""?"."+Is(e,0):l,rm(n)?(a="",u!=null&&(a=u.replace(um,"$&/")+"/"),vn(n,t,a,"",function(s){return s})):n!=null&&(Ms(n)&&(n=Sb(n,a+(n.key==null||e&&e.key===n.key?"":(""+n.key).replace(um,"$&/")+"/")+u)),t.push(n)),1;u=0;var o=l===""?".":l+":";if(rm(e))for(var i=0;i<e.length;i++)l=e[i],r=o+Is(l,i),u+=vn(l,t,a,r,n);else if(i=Cb(e),typeof i=="function")for(e=i.call(e),i=0;!(l=e.next()).done;)l=l.value,r=o+Is(l,i++),u+=vn(l,t,a,r,n);else if(r==="object"){if(typeof e.then=="function")return vn(Ib(e),t,a,l,n);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return u}function $u(e,t,a){if(e==null)return e;var l=[],n=0;return vn(e,l,"","",function(r){return t.call(a,r,n++)}),l}function vb(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(a){(e._status===0||e._status===-1)&&(e._status=1,e._result=a)},function(a){(e._status===0||e._status===-1)&&(e._status=2,e._result=a)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var om=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},kb={map:$u,forEach:function(e,t,a){$u(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return $u(e,function(){t++}),t},toArray:function(e){return $u(e,function(t){return t})||[]},only:function(e){if(!Ms(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};j.Activity=yb;j.Children=kb;j.Component=kn;j.Fragment=cb;j.Profiler=pb;j.PureComponent=ws;j.StrictMode=db;j.Suspense=xb;j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=xe;j.__COMPILER_RUNTIME={__proto__:null,c:function(e){return xe.H.useMemoCache(e)}};j.cache=function(e){return function(){return e.apply(null,arguments)}};j.cacheSignal=function(){return null};j.cloneElement=function(e,t,a){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var l=fm({},e.props),n=e.key;if(t!=null)for(r in t.key!==void 0&&(n=""+t.key),t)!pm.call(t,r)||r==="key"||r==="__self"||r==="__source"||r==="ref"&&t.ref===void 0||(l[r]=t[r]);var r=arguments.length-2;if(r===1)l.children=a;else if(1<r){for(var u=Array(r),o=0;o<r;o++)u[o]=arguments[o+2];l.children=u}return Ts(e.type,n,l)};j.createContext=function(e){return e={$$typeof:hb,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:mb,_context:e},e};j.createElement=function(e,t,a){var l,n={},r=null;if(t!=null)for(l in t.key!==void 0&&(r=""+t.key),t)pm.call(t,l)&&l!=="key"&&l!=="__self"&&l!=="__source"&&(n[l]=t[l]);var u=arguments.length-2;if(u===1)n.children=a;else if(1<u){for(var o=Array(u),i=0;i<u;i++)o[i]=arguments[i+2];n.children=o}if(e&&e.defaultProps)for(l in u=e.defaultProps,u)n[l]===void 0&&(n[l]=u[l]);return Ts(e,r,n)};j.createRef=function(){return{current:null}};j.forwardRef=function(e){return{$$typeof:gb,render:e}};j.isValidElement=Ms;j.lazy=function(e){return{$$typeof:im,_payload:{_status:-1,_result:e},_init:vb}};j.memo=function(e,t){return{$$typeof:Lb,type:e,compare:t===void 0?null:t}};j.startTransition=function(e){var t=xe.T,a={};xe.T=a;try{var l=e(),n=xe.S;n!==null&&n(a,l),typeof l=="object"&&l!==null&&typeof l.then=="function"&&l.then(vs,om)}catch(r){om(r)}finally{t!==null&&a.types!==null&&(t.types=a.types),xe.T=t}};j.unstable_useCacheRefresh=function(){return xe.H.useCacheRefresh()};j.use=function(e){return xe.H.use(e)};j.useActionState=function(e,t,a){return xe.H.useActionState(e,t,a)};j.useCallback=function(e,t){return xe.H.useCallback(e,t)};j.useContext=function(e){return xe.H.useContext(e)};j.useDebugValue=function(){};j.useDeferredValue=function(e,t){return xe.H.useDeferredValue(e,t)};j.useEffect=function(e,t){return xe.H.useEffect(e,t)};j.useEffectEvent=function(e){return xe.H.useEffectEvent(e)};j.useId=function(){return xe.H.useId()};j.useImperativeHandle=function(e,t,a){return xe.H.useImperativeHandle(e,t,a)};j.useInsertionEffect=function(e,t){return xe.H.useInsertionEffect(e,t)};j.useLayoutEffect=function(e,t){return xe.H.useLayoutEffect(e,t)};j.useMemo=function(e,t){return xe.H.useMemo(e,t)};j.useOptimistic=function(e,t){return xe.H.useOptimistic(e,t)};j.useReducer=function(e,t,a){return xe.H.useReducer(e,t,a)};j.useRef=function(e){return xe.H.useRef(e)};j.useState=function(e){return xe.H.useState(e)};j.useSyncExternalStore=function(e,t,a){return xe.H.useSyncExternalStore(e,t,a)};j.useTransition=function(){return xe.H.useTransition()};j.version="19.2.4"});var We=ft((A2,hm)=>{"use strict";hm.exports=mm()});var xm=ft(dt=>{"use strict";var wb=We();function gm(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function tl(){}var ct={d:{f:tl,r:function(){throw Error(gm(522))},D:tl,C:tl,L:tl,m:tl,X:tl,S:tl,M:tl},p:0,findDOMNode:null},Ab=Symbol.for("react.portal");function Tb(e,t,a){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ab,key:l==null?null:""+l,children:e,containerInfo:t,implementation:a}}var Dr=wb.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function eo(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ct;dt.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(gm(299));return Tb(e,t,null,a)};dt.flushSync=function(e){var t=Dr.T,a=ct.p;try{if(Dr.T=null,ct.p=2,e)return e()}finally{Dr.T=t,ct.p=a,ct.d.f()}};dt.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,ct.d.C(e,t))};dt.prefetchDNS=function(e){typeof e=="string"&&ct.d.D(e)};dt.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var a=t.as,l=eo(a,t.crossOrigin),n=typeof t.integrity=="string"?t.integrity:void 0,r=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;a==="style"?ct.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:l,integrity:n,fetchPriority:r}):a==="script"&&ct.d.X(e,{crossOrigin:l,integrity:n,fetchPriority:r,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};dt.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var a=eo(t.as,t.crossOrigin);ct.d.M(e,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&ct.d.M(e)};dt.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var a=t.as,l=eo(a,t.crossOrigin);ct.d.L(e,a,{crossOrigin:l,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};dt.preloadModule=function(e,t){if(typeof e=="string")if(t){var a=eo(t.as,t.crossOrigin);ct.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else ct.d.m(e)};dt.requestFormReset=function(e){ct.d.r(e)};dt.unstable_batchedUpdates=function(e,t){return e(t)};dt.useFormState=function(e,t,a){return Dr.H.useFormState(e,t,a)};dt.useFormStatus=function(){return Dr.H.useHostTransitionStatus()};dt.version="19.2.4"});var Cm=ft((M2,ym)=>{"use strict";function Lm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Lm)}catch(e){console.error(e)}}Lm(),ym.exports=xm()});var BL=ft(wi=>{"use strict";var Ve=lm(),jh=We(),Mb=Cm();function T(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Qh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function gu(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function Yh(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Zh(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Sm(e){if(gu(e)!==e)throw Error(T(188))}function Db(e){var t=e.alternate;if(!t){if(t=gu(e),t===null)throw Error(T(188));return t!==e?null:e}for(var a=e,l=t;;){var n=a.return;if(n===null)break;var r=n.alternate;if(r===null){if(l=n.return,l!==null){a=l;continue}break}if(n.child===r.child){for(r=n.child;r;){if(r===a)return Sm(n),e;if(r===l)return Sm(n),t;r=r.sibling}throw Error(T(188))}if(a.return!==l.return)a=n,l=r;else{for(var u=!1,o=n.child;o;){if(o===a){u=!0,a=n,l=r;break}if(o===l){u=!0,l=n,a=r;break}o=o.sibling}if(!u){for(o=r.child;o;){if(o===a){u=!0,a=r,l=n;break}if(o===l){u=!0,l=r,a=n;break}o=o.sibling}if(!u)throw Error(T(189))}}if(a.alternate!==l)throw Error(T(190))}if(a.tag!==3)throw Error(T(188));return a.stateNode.current===a?e:t}function Kh(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Kh(e),t!==null)return t;e=e.sibling}return null}var Ce=Object.assign,Eb=Symbol.for("react.element"),to=Symbol.for("react.transitional.element"),Fr=Symbol.for("react.portal"),En=Symbol.for("react.fragment"),Wh=Symbol.for("react.strict_mode"),ff=Symbol.for("react.profiler"),Jh=Symbol.for("react.consumer"),Ba=Symbol.for("react.context"),rc=Symbol.for("react.forward_ref"),cf=Symbol.for("react.suspense"),df=Symbol.for("react.suspense_list"),uc=Symbol.for("react.memo"),al=Symbol.for("react.lazy"),pf=Symbol.for("react.activity"),Bb=Symbol.for("react.memo_cache_sentinel"),bm=Symbol.iterator;function Er(e){return e===null||typeof e!="object"?null:(e=bm&&e[bm]||e["@@iterator"],typeof e=="function"?e:null)}var Rb=Symbol.for("react.client.reference");function mf(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Rb?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case En:return"Fragment";case ff:return"Profiler";case Wh:return"StrictMode";case cf:return"Suspense";case df:return"SuspenseList";case pf:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Fr:return"Portal";case Ba:return e.displayName||"Context";case Jh:return(e._context.displayName||"Context")+".Consumer";case rc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case uc:return t=e.displayName||null,t!==null?t:mf(e.type)||"Memo";case al:t=e._payload,e=e._init;try{return mf(e(t))}catch(a){}}return null}var Pr=Array.isArray,_=jh.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe=Mb.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Vl={pending:!1,data:null,method:null,action:null},hf=[],Bn=-1;function pa(e){return{current:e}}function Ze(e){0>Bn||(e.current=hf[Bn],hf[Bn]=null,Bn--)}function he(e,t){Bn++,hf[Bn]=e.current,e.current=t}var da=pa(null),au=pa(null),pl=pa(null),zo=pa(null);function qo(e,t){switch(he(pl,t),he(au,e),he(da,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Mh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Mh(t),e=LL(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Ze(da),he(da,e)}function Kn(){Ze(da),Ze(au),Ze(pl)}function gf(e){e.memoizedState!==null&&he(zo,e);var t=da.current,a=LL(t,e.type);t!==a&&(he(au,e),he(da,a))}function Ho(e){au.current===e&&(Ze(da),Ze(au)),zo.current===e&&(Ze(zo),pu._currentValue=Vl)}var Ds,Im;function Ul(e){if(Ds===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Ds=t&&t[1]||"",Im=-1<a.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+Ds+e+Im}var Es=!1;function Bs(e,t){if(!e||Es)return"";Es=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(d){var p=d}Reflect.construct(e,[],c)}else{try{c.call()}catch(d){p=d}e.call(c.prototype)}}else{try{throw Error()}catch(d){p=d}(c=e())&&typeof c.catch=="function"&&c.catch(function(){})}}catch(d){if(d&&p&&typeof d.stack=="string")return[d.stack,p.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=l.DetermineComponentFrameRoot(),u=r[0],o=r[1];if(u&&o){var i=u.split(`
|
|
4
|
+
`),s=o.split(`
|
|
5
|
+
`);for(n=l=0;l<i.length&&!i[l].includes("DetermineComponentFrameRoot");)l++;for(;n<s.length&&!s[n].includes("DetermineComponentFrameRoot");)n++;if(l===i.length||n===s.length)for(l=i.length-1,n=s.length-1;1<=l&&0<=n&&i[l]!==s[n];)n--;for(;1<=l&&0<=n;l--,n--)if(i[l]!==s[n]){if(l!==1||n!==1)do if(l--,n--,0>n||i[l]!==s[n]){var f=`
|
|
6
|
+
`+i[l].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=l&&0<=n);break}}}finally{Es=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ul(a):""}function Ob(e,t){switch(e.tag){case 26:case 27:case 5:return Ul(e.type);case 16:return Ul("Lazy");case 13:return e.child!==t&&t!==null?Ul("Suspense Fallback"):Ul("Suspense");case 19:return Ul("SuspenseList");case 0:case 15:return Bs(e.type,!1);case 11:return Bs(e.type.render,!1);case 1:return Bs(e.type,!0);case 31:return Ul("Activity");default:return""}}function vm(e){try{var t="",a=null;do t+=Ob(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
|
|
7
|
+
Error generating stack: `+l.message+`
|
|
8
|
+
`+l.stack}}var xf=Object.prototype.hasOwnProperty,oc=Ve.unstable_scheduleCallback,Rs=Ve.unstable_cancelCallback,zb=Ve.unstable_shouldYield,qb=Ve.unstable_requestPaint,Mt=Ve.unstable_now,Hb=Ve.unstable_getCurrentPriorityLevel,$h=Ve.unstable_ImmediatePriority,eg=Ve.unstable_UserBlockingPriority,Fo=Ve.unstable_NormalPriority,Fb=Ve.unstable_LowPriority,tg=Ve.unstable_IdlePriority,Pb=Ve.log,Ub=Ve.unstable_setDisableYieldValue,xu=null,Dt=null;function il(e){if(typeof Pb=="function"&&Ub(e),Dt&&typeof Dt.setStrictMode=="function")try{Dt.setStrictMode(xu,e)}catch(t){}}var Et=Math.clz32?Math.clz32:Gb,Nb=Math.log,_b=Math.LN2;function Gb(e){return e>>>=0,e===0?32:31-(Nb(e)/_b|0)|0}var ao=256,lo=262144,no=4194304;function Nl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function fi(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var n=0,r=e.suspendedLanes,u=e.pingedLanes;e=e.warmLanes;var o=l&134217727;return o!==0?(l=o&~r,l!==0?n=Nl(l):(u&=o,u!==0?n=Nl(u):a||(a=o&~e,a!==0&&(n=Nl(a))))):(o=l&~r,o!==0?n=Nl(o):u!==0?n=Nl(u):a||(a=l&~e,a!==0&&(n=Nl(a)))),n===0?0:t!==0&&t!==n&&(t&r)===0&&(r=n&-n,a=t&-t,r>=a||r===32&&(a&4194048)!==0)?t:n}function Lu(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Vb(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ag(){var e=no;return no<<=1,(no&62914560)===0&&(no=4194304),e}function Os(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function yu(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Xb(e,t,a,l,n,r){var u=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 o=e.entanglements,i=e.expirationTimes,s=e.hiddenUpdates;for(a=u&~a;0<a;){var f=31-Et(a),c=1<<f;o[f]=0,i[f]=-1;var p=s[f];if(p!==null)for(s[f]=null,f=0;f<p.length;f++){var d=p[f];d!==null&&(d.lane&=-536870913)}a&=~c}l!==0&&lg(e,l,0),r!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=r&~(u&~t))}function lg(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Et(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function ng(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-Et(a),n=1<<l;n&t|e[l]&t&&(e[l]|=t),a&=~n}}function rg(e,t){var a=t&-t;return a=(a&42)!==0?1:ic(a),(a&(e.suspendedLanes|t))!==0?0:a}function ic(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 sc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ug(){var e=oe.p;return e!==0?e:(e=window.event,e===void 0?32:ML(e.type))}function km(e,t){var a=oe.p;try{return oe.p=e,t()}finally{oe.p=a}}var wl=Math.random().toString(36).slice(2),$e="__reactFiber$"+wl,St="__reactProps$"+wl,or="__reactContainer$"+wl,Lf="__reactEvents$"+wl,jb="__reactListeners$"+wl,Qb="__reactHandles$"+wl,wm="__reactResources$"+wl,Cu="__reactMarker$"+wl;function fc(e){delete e[$e],delete e[St],delete e[Lf],delete e[jb],delete e[Qb]}function Rn(e){var t=e[$e];if(t)return t;for(var a=e.parentNode;a;){if(t=a[or]||a[$e]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Oh(e);e!==null;){if(a=e[$e])return a;e=Oh(e)}return t}e=a,a=e.parentNode}return null}function ir(e){if(e=e[$e]||e[or]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ur(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(T(33))}function Gn(e){var t=e[wm];return t||(t=e[wm]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ye(e){e[Cu]=!0}var og=new Set,ig={};function en(e,t){Wn(e,t),Wn(e+"Capture",t)}function Wn(e,t){for(ig[e]=t,e=0;e<t.length;e++)og.add(t[e])}var Yb=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]*$"),Am={},Tm={};function Zb(e){return xf.call(Tm,e)?!0:xf.call(Am,e)?!1:Yb.test(e)?Tm[e]=!0:(Am[e]=!0,!1)}function Co(e,t,a){if(Zb(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function ro(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function ka(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function Ut(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kb(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l!="undefined"&&typeof l.get=="function"&&typeof l.set=="function"){var n=l.get,r=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(u){a=""+u,r.call(this,u)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(u){a=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yf(e){if(!e._valueTracker){var t=sg(e)?"checked":"value";e._valueTracker=Kb(e,t,""+e[t])}}function fg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=sg(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function Po(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}var Wb=/[\n"\\]/g;function Gt(e){return e.replace(Wb,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Cf(e,t,a,l,n,r,u,o){e.name="",u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"?e.type=u:e.removeAttribute("type"),t!=null?u==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ut(t)):e.value!==""+Ut(t)&&(e.value=""+Ut(t)):u!=="submit"&&u!=="reset"||e.removeAttribute("value"),t!=null?Sf(e,u,Ut(t)):a!=null?Sf(e,u,Ut(a)):l!=null&&e.removeAttribute("value"),n==null&&r!=null&&(e.defaultChecked=!!r),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+Ut(o):e.removeAttribute("name")}function cg(e,t,a,l,n,r,u,o){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||a!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){yf(e);return}a=a!=null?""+Ut(a):"",t=t!=null?""+Ut(t):a,o||t===e.value||(e.value=t),e.defaultValue=t}l=l!=null?l:n,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=o?e.checked:!!l,e.defaultChecked=!!l,u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.name=u),yf(e)}function Sf(e,t,a){t==="number"&&Po(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Vn(e,t,a,l){if(e=e.options,t){t={};for(var n=0;n<a.length;n++)t["$"+a[n]]=!0;for(a=0;a<e.length;a++)n=t.hasOwnProperty("$"+e[a].value),e[a].selected!==n&&(e[a].selected=n),n&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Ut(a),t=null,n=0;n<e.length;n++){if(e[n].value===a){e[n].selected=!0,l&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function dg(e,t,a){if(t!=null&&(t=""+Ut(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Ut(a):""}function pg(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(T(92));if(Pr(l)){if(1<l.length)throw Error(T(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Ut(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),yf(e)}function Jn(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Jb=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 Mm(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||Jb.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function mg(e,t,a){if(t!=null&&typeof t!="object")throw Error(T(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var n in t)l=t[n],t.hasOwnProperty(n)&&a[n]!==l&&Mm(e,n,l)}else for(var r in t)t.hasOwnProperty(r)&&Mm(e,r,t[r])}function cc(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 $b=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"]]),e0=/^[\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 So(e){return e0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ra(){}var bf=null;function dc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var On=null,Xn=null;function Dm(e){var t=ir(e);if(t&&(e=t.stateNode)){var a=e[St]||null;e:switch(e=t.stateNode,t.type){case"input":if(Cf(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Gt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var n=l[St]||null;if(!n)throw Error(T(90));Cf(l,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&fg(l)}break e;case"textarea":dg(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Vn(e,!!a.multiple,t,!1)}}}var zs=!1;function hg(e,t,a){if(zs)return e(t,a);zs=!0;try{var l=e(t);return l}finally{if(zs=!1,(On!==null||Xn!==null)&&(bi(),On&&(t=On,e=Xn,Xn=On=null,Dm(t),e)))for(t=0;t<e.length;t++)Dm(e[t])}}function lu(e,t){var a=e.stateNode;if(a===null)return null;var l=a[St]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(T(231,t,typeof a));return a}var Fa=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),If=!1;if(Fa)try{wn={},Object.defineProperty(wn,"passive",{get:function(){If=!0}}),window.addEventListener("test",wn,wn),window.removeEventListener("test",wn,wn)}catch(e){If=!1}var wn,sl=null,pc=null,bo=null;function gg(){if(bo)return bo;var e,t=pc,a=t.length,l,n="value"in sl?sl.value:sl.textContent,r=n.length;for(e=0;e<a&&t[e]===n[e];e++);var u=a-e;for(l=1;l<=u&&t[a-l]===n[r-l];l++);return bo=n.slice(e,1<l?1-l:void 0)}function Io(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function uo(){return!0}function Em(){return!1}function bt(e){function t(a,l,n,r,u){this._reactName=a,this._targetInst=n,this.type=l,this.nativeEvent=r,this.target=u,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(a=e[o],this[o]=a?a(r):r[o]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?uo:Em,this.isPropagationStopped=Em,this}return Ce(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=uo)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=uo)},persist:function(){},isPersistent:uo}),t}var tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ci=bt(tn),Su=Ce({},tn,{view:0,detail:0}),t0=bt(Su),qs,Hs,Br,di=Ce({},Su,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mc,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!==Br&&(Br&&e.type==="mousemove"?(qs=e.screenX-Br.screenX,Hs=e.screenY-Br.screenY):Hs=qs=0,Br=e),qs)},movementY:function(e){return"movementY"in e?e.movementY:Hs}}),Bm=bt(di),a0=Ce({},di,{dataTransfer:0}),l0=bt(a0),n0=Ce({},Su,{relatedTarget:0}),Fs=bt(n0),r0=Ce({},tn,{animationName:0,elapsedTime:0,pseudoElement:0}),u0=bt(r0),o0=Ce({},tn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),i0=bt(o0),s0=Ce({},tn,{data:0}),Rm=bt(s0),f0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},c0={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"},d0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function p0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=d0[e])?!!t[e]:!1}function mc(){return p0}var m0=Ce({},Su,{key:function(e){if(e.key){var t=f0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Io(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?c0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mc,charCode:function(e){return e.type==="keypress"?Io(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Io(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),h0=bt(m0),g0=Ce({},di,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Om=bt(g0),x0=Ce({},Su,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mc}),L0=bt(x0),y0=Ce({},tn,{propertyName:0,elapsedTime:0,pseudoElement:0}),C0=bt(y0),S0=Ce({},di,{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}),b0=bt(S0),I0=Ce({},tn,{newState:0,oldState:0}),v0=bt(I0),k0=[9,13,27,32],hc=Fa&&"CompositionEvent"in window,Gr=null;Fa&&"documentMode"in document&&(Gr=document.documentMode);var w0=Fa&&"TextEvent"in window&&!Gr,xg=Fa&&(!hc||Gr&&8<Gr&&11>=Gr),zm=" ",qm=!1;function Lg(e,t){switch(e){case"keyup":return k0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zn=!1;function A0(e,t){switch(e){case"compositionend":return yg(t);case"keypress":return t.which!==32?null:(qm=!0,zm);case"textInput":return e=t.data,e===zm&&qm?null:e;default:return null}}function T0(e,t){if(zn)return e==="compositionend"||!hc&&Lg(e,t)?(e=gg(),bo=pc=sl=null,zn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return xg&&t.locale!=="ko"?null:t.data;default:return null}}var M0={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 Hm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!M0[e.type]:t==="textarea"}function Cg(e,t,a,l){On?Xn?Xn.push(l):Xn=[l]:On=l,t=li(t,"onChange"),0<t.length&&(a=new ci("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Vr=null,nu=null;function D0(e){hL(e,0)}function pi(e){var t=Ur(e);if(fg(t))return e}function Fm(e,t){if(e==="change")return t}var Sg=!1;Fa&&(Fa?(io="oninput"in document,io||(Ps=document.createElement("div"),Ps.setAttribute("oninput","return;"),io=typeof Ps.oninput=="function"),oo=io):oo=!1,Sg=oo&&(!document.documentMode||9<document.documentMode));var oo,io,Ps;function Pm(){Vr&&(Vr.detachEvent("onpropertychange",bg),nu=Vr=null)}function bg(e){if(e.propertyName==="value"&&pi(nu)){var t=[];Cg(t,nu,e,dc(e)),hg(D0,t)}}function E0(e,t,a){e==="focusin"?(Pm(),Vr=t,nu=a,Vr.attachEvent("onpropertychange",bg)):e==="focusout"&&Pm()}function B0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return pi(nu)}function R0(e,t){if(e==="click")return pi(t)}function O0(e,t){if(e==="input"||e==="change")return pi(t)}function z0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Rt=typeof Object.is=="function"?Object.is:z0;function ru(e,t){if(Rt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var n=a[l];if(!xf.call(t,n)||!Rt(e[n],t[n]))return!1}return!0}function Um(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nm(e,t){var a=Um(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Um(a)}}function Ig(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ig(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vg(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Po(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch(l){a=!1}if(a)e=t.contentWindow;else break;t=Po(e.document)}return t}function gc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var q0=Fa&&"documentMode"in document&&11>=document.documentMode,qn=null,vf=null,Xr=null,kf=!1;function _m(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;kf||qn==null||qn!==Po(l)||(l=qn,"selectionStart"in l&&gc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Xr&&ru(Xr,l)||(Xr=l,l=li(vf,"onSelect"),0<l.length&&(t=new ci("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=qn)))}function Pl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Hn={animationend:Pl("Animation","AnimationEnd"),animationiteration:Pl("Animation","AnimationIteration"),animationstart:Pl("Animation","AnimationStart"),transitionrun:Pl("Transition","TransitionRun"),transitionstart:Pl("Transition","TransitionStart"),transitioncancel:Pl("Transition","TransitionCancel"),transitionend:Pl("Transition","TransitionEnd")},Us={},kg={};Fa&&(kg=document.createElement("div").style,"AnimationEvent"in window||(delete Hn.animationend.animation,delete Hn.animationiteration.animation,delete Hn.animationstart.animation),"TransitionEvent"in window||delete Hn.transitionend.transition);function an(e){if(Us[e])return Us[e];if(!Hn[e])return e;var t=Hn[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in kg)return Us[e]=t[a];return e}var wg=an("animationend"),Ag=an("animationiteration"),Tg=an("animationstart"),H0=an("transitionrun"),F0=an("transitionstart"),P0=an("transitioncancel"),Mg=an("transitionend"),Dg=new Map,wf="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(" ");wf.push("scrollEnd");function na(e,t){Dg.set(e,t),en(t,[e])}var Uo=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Pt=[],Fn=0,xc=0;function mi(){for(var e=Fn,t=xc=Fn=0;t<e;){var a=Pt[t];Pt[t++]=null;var l=Pt[t];Pt[t++]=null;var n=Pt[t];Pt[t++]=null;var r=Pt[t];if(Pt[t++]=null,l!==null&&n!==null){var u=l.pending;u===null?n.next=n:(n.next=u.next,u.next=n),l.pending=n}r!==0&&Eg(a,n,r)}}function hi(e,t,a,l){Pt[Fn++]=e,Pt[Fn++]=t,Pt[Fn++]=a,Pt[Fn++]=l,xc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Lc(e,t,a,l){return hi(e,t,a,l),No(e)}function ln(e,t){return hi(e,null,null,t),No(e)}function Eg(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var n=!1,r=e.return;r!==null;)r.childLanes|=a,l=r.alternate,l!==null&&(l.childLanes|=a),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(n=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,n&&t!==null&&(n=31-Et(a),e=r.hiddenUpdates,l=e[n],l===null?e[n]=[t]:l.push(t),t.lane=a|536870912),r):null}function No(e){if(50<eu)throw eu=0,Qf=null,Error(T(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Pn={};function U0(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,a,l){return new U0(e,t,a,l)}function yc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function za(e,t){var a=e.alternate;return a===null?(a=At(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,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,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Bg(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=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,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function vo(e,t,a,l,n,r){var u=0;if(l=e,typeof e=="function")yc(e)&&(u=1);else if(typeof e=="string")u=GI(e,a,da.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case pf:return e=At(31,a,t,n),e.elementType=pf,e.lanes=r,e;case En:return Xl(a.children,n,r,t);case Wh:u=8,n|=24;break;case ff:return e=At(12,a,t,n|2),e.elementType=ff,e.lanes=r,e;case cf:return e=At(13,a,t,n),e.elementType=cf,e.lanes=r,e;case df:return e=At(19,a,t,n),e.elementType=df,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ba:u=10;break e;case Jh:u=9;break e;case rc:u=11;break e;case uc:u=14;break e;case al:u=16,l=null;break e}u=29,a=Error(T(130,e===null?"null":typeof e,"")),l=null}return t=At(u,a,t,n),t.elementType=e,t.type=l,t.lanes=r,t}function Xl(e,t,a,l){return e=At(7,e,l,t),e.lanes=a,e}function Ns(e,t,a){return e=At(6,e,null,t),e.lanes=a,e}function Rg(e){var t=At(18,null,null,0);return t.stateNode=e,t}function _s(e,t,a){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Gm=new WeakMap;function Vt(e,t){if(typeof e=="object"&&e!==null){var a=Gm.get(e);return a!==void 0?a:(t={value:e,source:t,stack:vm(t)},Gm.set(e,t),t)}return{value:e,source:t,stack:vm(t)}}var Un=[],Nn=0,_o=null,uu=0,Nt=[],_t=0,bl=null,sa=1,fa="";function Da(e,t){Un[Nn++]=uu,Un[Nn++]=_o,_o=e,uu=t}function Og(e,t,a){Nt[_t++]=sa,Nt[_t++]=fa,Nt[_t++]=bl,bl=e;var l=sa;e=fa;var n=32-Et(l)-1;l&=~(1<<n),a+=1;var r=32-Et(t)+n;if(30<r){var u=n-n%5;r=(l&(1<<u)-1).toString(32),l>>=u,n-=u,sa=1<<32-Et(t)+n|a<<n|l,fa=r+e}else sa=1<<r|a<<n|l,fa=e}function Cc(e){e.return!==null&&(Da(e,1),Og(e,1,0))}function Sc(e){for(;e===_o;)_o=Un[--Nn],Un[Nn]=null,uu=Un[--Nn],Un[Nn]=null;for(;e===bl;)bl=Nt[--_t],Nt[_t]=null,fa=Nt[--_t],Nt[_t]=null,sa=Nt[--_t],Nt[_t]=null}function zg(e,t){Nt[_t++]=sa,Nt[_t++]=fa,Nt[_t++]=bl,sa=t.id,fa=t.overflow,bl=e}var et=null,ye=null,le=!1,ml=null,Xt=!1,Af=Error(T(519));function Il(e){var t=Error(T(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ou(Vt(t,e)),Af}function Vm(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[$e]=e,t[St]=l,a){case"dialog":ee("cancel",t),ee("close",t);break;case"iframe":case"object":case"embed":ee("load",t);break;case"video":case"audio":for(a=0;a<cu.length;a++)ee(cu[a],t);break;case"source":ee("error",t);break;case"img":case"image":case"link":ee("error",t),ee("load",t);break;case"details":ee("toggle",t);break;case"input":ee("invalid",t),cg(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":ee("invalid",t);break;case"textarea":ee("invalid",t),pg(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||xL(t.textContent,a)?(l.popover!=null&&(ee("beforetoggle",t),ee("toggle",t)),l.onScroll!=null&&ee("scroll",t),l.onScrollEnd!=null&&ee("scrollend",t),l.onClick!=null&&(t.onclick=Ra),t=!0):t=!1,t||Il(e,!0)}function Xm(e){for(et=e.return;et;)switch(et.tag){case 5:case 31:case 13:Xt=!1;return;case 27:case 3:Xt=!0;return;default:et=et.return}}function An(e){if(e!==et)return!1;if(!le)return Xm(e),le=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Jf(e.type,e.memoizedProps)),a=!a),a&&ye&&Il(e),Xm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(T(317));ye=Rh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(T(317));ye=Rh(e)}else t===27?(t=ye,Al(e.type)?(e=ac,ac=null,ye=e):ye=t):ye=et?Qt(e.stateNode.nextSibling):null;return!0}function Zl(){ye=et=null,le=!1}function Gs(){var e=ml;return e!==null&&(yt===null?yt=e:yt.push.apply(yt,e),ml=null),e}function ou(e){ml===null?ml=[e]:ml.push(e)}var Tf=pa(null),nn=null,Oa=null;function nl(e,t,a){he(Tf,t._currentValue),t._currentValue=a}function qa(e){e._currentValue=Tf.current,Ze(Tf)}function Mf(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Df(e,t,a,l){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var r=n.dependencies;if(r!==null){var u=n.child;r=r.firstContext;e:for(;r!==null;){var o=r;r=n;for(var i=0;i<t.length;i++)if(o.context===t[i]){r.lanes|=a,o=r.alternate,o!==null&&(o.lanes|=a),Mf(r.return,a,e),l||(u=null);break e}r=o.next}}else if(n.tag===18){if(u=n.return,u===null)throw Error(T(341));u.lanes|=a,r=u.alternate,r!==null&&(r.lanes|=a),Mf(u,a,e),u=null}else u=n.child;if(u!==null)u.return=n;else for(u=n;u!==null;){if(u===e){u=null;break}if(n=u.sibling,n!==null){n.return=u.return,u=n;break}u=u.return}n=u}}function sr(e,t,a,l){e=null;for(var n=t,r=!1;n!==null;){if(!r){if((n.flags&524288)!==0)r=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var u=n.alternate;if(u===null)throw Error(T(387));if(u=u.memoizedProps,u!==null){var o=n.type;Rt(n.pendingProps.value,u.value)||(e!==null?e.push(o):e=[o])}}else if(n===zo.current){if(u=n.alternate,u===null)throw Error(T(387));u.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(pu):e=[pu])}n=n.return}e!==null&&Df(t,e,a,l),t.flags|=262144}function Go(e){for(e=e.firstContext;e!==null;){if(!Rt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Kl(e){nn=e,Oa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function tt(e){return qg(nn,e)}function so(e,t){return nn===null&&Kl(e),qg(e,t)}function qg(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Oa===null){if(e===null)throw Error(T(308));Oa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Oa=Oa.next=t;return a}var N0=typeof AbortController!="undefined"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},_0=Ve.unstable_scheduleCallback,G0=Ve.unstable_NormalPriority,Ne={$$typeof:Ba,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function bc(){return{controller:new N0,data:new Map,refCount:0}}function bu(e){e.refCount--,e.refCount===0&&_0(G0,function(){e.controller.abort()})}var jr=null,Ef=0,$n=0,jn=null;function V0(e,t){if(jr===null){var a=jr=[];Ef=0,$n=Qc(),jn={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Ef++,t.then(jm,jm),t}function jm(){if(--Ef===0&&jr!==null){jn!==null&&(jn.status="fulfilled");var e=jr;jr=null,$n=0,jn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function X0(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(n){a.push(n)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var n=0;n<a.length;n++)(0,a[n])(t)},function(n){for(l.status="rejected",l.reason=n,n=0;n<a.length;n++)(0,a[n])(void 0)}),l}var Qm=_.S;_.S=function(e,t){Kx=Mt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&V0(e,t),Qm!==null&&Qm(e,t)};var jl=pa(null);function Ic(){var e=jl.current;return e!==null?e:me.pooledCache}function ko(e,t){t===null?he(jl,jl.current):he(jl,t.pool)}function Hg(){var e=Ic();return e===null?null:{parent:Ne._currentValue,pool:e}}var fr=Error(T(460)),vc=Error(T(474)),gi=Error(T(542)),Vo={then:function(){}};function Ym(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Fg(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Ra,Ra),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Km(e),e;default:if(typeof t.status=="string")t.then(Ra,Ra);else{if(e=me,e!==null&&100<e.shellSuspendCounter)throw Error(T(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=l}},function(l){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Km(e),e}throw Ql=t,fr}}function _l(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Ql=a,fr):a}}var Ql=null;function Zm(){if(Ql===null)throw Error(T(459));var e=Ql;return Ql=null,e}function Km(e){if(e===fr||e===gi)throw Error(T(483))}var Qn=null,iu=0;function fo(e){var t=iu;return iu+=1,Qn===null&&(Qn=[]),Fg(Qn,e,t)}function Rr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function co(e,t){throw t.$$typeof===Eb?Error(T(525)):(e=Object.prototype.toString.call(t),Error(T(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Pg(e){function t(m,h){if(e){var x=m.deletions;x===null?(m.deletions=[h],m.flags|=16):x.push(h)}}function a(m,h){if(!e)return null;for(;h!==null;)t(m,h),h=h.sibling;return null}function l(m){for(var h=new Map;m!==null;)m.key!==null?h.set(m.key,m):h.set(m.index,m),m=m.sibling;return h}function n(m,h){return m=za(m,h),m.index=0,m.sibling=null,m}function r(m,h,x){return m.index=x,e?(x=m.alternate,x!==null?(x=x.index,x<h?(m.flags|=67108866,h):x):(m.flags|=67108866,h)):(m.flags|=1048576,h)}function u(m){return e&&m.alternate===null&&(m.flags|=67108866),m}function o(m,h,x,b){return h===null||h.tag!==6?(h=Ns(x,m.mode,b),h.return=m,h):(h=n(h,x),h.return=m,h)}function i(m,h,x,b){var w=x.type;return w===En?f(m,h,x.props.children,b,x.key):h!==null&&(h.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===al&&_l(w)===h.type)?(h=n(h,x.props),Rr(h,x),h.return=m,h):(h=vo(x.type,x.key,x.props,null,m.mode,b),Rr(h,x),h.return=m,h)}function s(m,h,x,b){return h===null||h.tag!==4||h.stateNode.containerInfo!==x.containerInfo||h.stateNode.implementation!==x.implementation?(h=_s(x,m.mode,b),h.return=m,h):(h=n(h,x.children||[]),h.return=m,h)}function f(m,h,x,b,w){return h===null||h.tag!==7?(h=Xl(x,m.mode,b,w),h.return=m,h):(h=n(h,x),h.return=m,h)}function c(m,h,x){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return h=Ns(""+h,m.mode,x),h.return=m,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case to:return x=vo(h.type,h.key,h.props,null,m.mode,x),Rr(x,h),x.return=m,x;case Fr:return h=_s(h,m.mode,x),h.return=m,h;case al:return h=_l(h),c(m,h,x)}if(Pr(h)||Er(h))return h=Xl(h,m.mode,x,null),h.return=m,h;if(typeof h.then=="function")return c(m,fo(h),x);if(h.$$typeof===Ba)return c(m,so(m,h),x);co(m,h)}return null}function p(m,h,x,b){var w=h!==null?h.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return w!==null?null:o(m,h,""+x,b);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case to:return x.key===w?i(m,h,x,b):null;case Fr:return x.key===w?s(m,h,x,b):null;case al:return x=_l(x),p(m,h,x,b)}if(Pr(x)||Er(x))return w!==null?null:f(m,h,x,b,null);if(typeof x.then=="function")return p(m,h,fo(x),b);if(x.$$typeof===Ba)return p(m,h,so(m,x),b);co(m,x)}return null}function d(m,h,x,b,w){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return m=m.get(x)||null,o(h,m,""+b,w);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case to:return m=m.get(b.key===null?x:b.key)||null,i(h,m,b,w);case Fr:return m=m.get(b.key===null?x:b.key)||null,s(h,m,b,w);case al:return b=_l(b),d(m,h,x,b,w)}if(Pr(b)||Er(b))return m=m.get(x)||null,f(h,m,b,w,null);if(typeof b.then=="function")return d(m,h,x,fo(b),w);if(b.$$typeof===Ba)return d(m,h,x,so(h,b),w);co(h,b)}return null}function g(m,h,x,b){for(var w=null,I=null,A=h,E=h=0,M=null;A!==null&&E<x.length;E++){A.index>E?(M=A,A=null):M=A.sibling;var S=p(m,A,x[E],b);if(S===null){A===null&&(A=M);break}e&&A&&S.alternate===null&&t(m,A),h=r(S,h,E),I===null?w=S:I.sibling=S,I=S,A=M}if(E===x.length)return a(m,A),le&&Da(m,E),w;if(A===null){for(;E<x.length;E++)A=c(m,x[E],b),A!==null&&(h=r(A,h,E),I===null?w=A:I.sibling=A,I=A);return le&&Da(m,E),w}for(A=l(A);E<x.length;E++)M=d(A,m,E,x[E],b),M!==null&&(e&&M.alternate!==null&&A.delete(M.key===null?E:M.key),h=r(M,h,E),I===null?w=M:I.sibling=M,I=M);return e&&A.forEach(function(V){return t(m,V)}),le&&Da(m,E),w}function C(m,h,x,b){if(x==null)throw Error(T(151));for(var w=null,I=null,A=h,E=h=0,M=null,S=x.next();A!==null&&!S.done;E++,S=x.next()){A.index>E?(M=A,A=null):M=A.sibling;var V=p(m,A,S.value,b);if(V===null){A===null&&(A=M);break}e&&A&&V.alternate===null&&t(m,A),h=r(V,h,E),I===null?w=V:I.sibling=V,I=V,A=M}if(S.done)return a(m,A),le&&Da(m,E),w;if(A===null){for(;!S.done;E++,S=x.next())S=c(m,S.value,b),S!==null&&(h=r(S,h,E),I===null?w=S:I.sibling=S,I=S);return le&&Da(m,E),w}for(A=l(A);!S.done;E++,S=x.next())S=d(A,m,E,S.value,b),S!==null&&(e&&S.alternate!==null&&A.delete(S.key===null?E:S.key),h=r(S,h,E),I===null?w=S:I.sibling=S,I=S);return e&&A.forEach(function(N){return t(m,N)}),le&&Da(m,E),w}function v(m,h,x,b){if(typeof x=="object"&&x!==null&&x.type===En&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case to:e:{for(var w=x.key;h!==null;){if(h.key===w){if(w=x.type,w===En){if(h.tag===7){a(m,h.sibling),b=n(h,x.props.children),b.return=m,m=b;break e}}else if(h.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===al&&_l(w)===h.type){a(m,h.sibling),b=n(h,x.props),Rr(b,x),b.return=m,m=b;break e}a(m,h);break}else t(m,h);h=h.sibling}x.type===En?(b=Xl(x.props.children,m.mode,b,x.key),b.return=m,m=b):(b=vo(x.type,x.key,x.props,null,m.mode,b),Rr(b,x),b.return=m,m=b)}return u(m);case Fr:e:{for(w=x.key;h!==null;){if(h.key===w)if(h.tag===4&&h.stateNode.containerInfo===x.containerInfo&&h.stateNode.implementation===x.implementation){a(m,h.sibling),b=n(h,x.children||[]),b.return=m,m=b;break e}else{a(m,h);break}else t(m,h);h=h.sibling}b=_s(x,m.mode,b),b.return=m,m=b}return u(m);case al:return x=_l(x),v(m,h,x,b)}if(Pr(x))return g(m,h,x,b);if(Er(x)){if(w=Er(x),typeof w!="function")throw Error(T(150));return x=w.call(x),C(m,h,x,b)}if(typeof x.then=="function")return v(m,h,fo(x),b);if(x.$$typeof===Ba)return v(m,h,so(m,x),b);co(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,h!==null&&h.tag===6?(a(m,h.sibling),b=n(h,x),b.return=m,m=b):(a(m,h),b=Ns(x,m.mode,b),b.return=m,m=b),u(m)):a(m,h)}return function(m,h,x,b){try{iu=0;var w=v(m,h,x,b);return Qn=null,w}catch(A){if(A===fr||A===gi)throw A;var I=At(29,A,null,m.mode);return I.lanes=b,I.return=m,I}}}var Wl=Pg(!0),Ug=Pg(!1),ll=!1;function kc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Bf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function hl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function gl(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(ue&2)!==0){var n=l.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),l.pending=t,t=No(e),Eg(e,null,a),t}return hi(e,l,t,a),No(e)}function Qr(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,ng(e,a)}}function Vs(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var n=null,r=null;if(a=a.firstBaseUpdate,a!==null){do{var u={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};r===null?n=r=u:r=r.next=u,a=a.next}while(a!==null);r===null?n=r=t:r=r.next=t}else n=r=t;a={baseState:l.baseState,firstBaseUpdate:n,lastBaseUpdate:r,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Rf=!1;function Yr(){if(Rf){var e=jn;if(e!==null)throw e}}function Zr(e,t,a,l){Rf=!1;var n=e.updateQueue;ll=!1;var r=n.firstBaseUpdate,u=n.lastBaseUpdate,o=n.shared.pending;if(o!==null){n.shared.pending=null;var i=o,s=i.next;i.next=null,u===null?r=s:u.next=s,u=i;var f=e.alternate;f!==null&&(f=f.updateQueue,o=f.lastBaseUpdate,o!==u&&(o===null?f.firstBaseUpdate=s:o.next=s,f.lastBaseUpdate=i))}if(r!==null){var c=n.baseState;u=0,f=s=i=null,o=r;do{var p=o.lane&-536870913,d=p!==o.lane;if(d?(ae&p)===p:(l&p)===p){p!==0&&p===$n&&(Rf=!0),f!==null&&(f=f.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var g=e,C=o;p=t;var v=a;switch(C.tag){case 1:if(g=C.payload,typeof g=="function"){c=g.call(v,c,p);break e}c=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=C.payload,p=typeof g=="function"?g.call(v,c,p):g,p==null)break e;c=Ce({},c,p);break e;case 2:ll=!0}}p=o.callback,p!==null&&(e.flags|=64,d&&(e.flags|=8192),d=n.callbacks,d===null?n.callbacks=[p]:d.push(p))}else d={lane:p,tag:o.tag,payload:o.payload,callback:o.callback,next:null},f===null?(s=f=d,i=c):f=f.next=d,u|=p;if(o=o.next,o===null){if(o=n.shared.pending,o===null)break;d=o,o=d.next,d.next=null,n.lastBaseUpdate=d,n.shared.pending=null}}while(!0);f===null&&(i=c),n.baseState=i,n.firstBaseUpdate=s,n.lastBaseUpdate=f,r===null&&(n.shared.lanes=0),kl|=u,e.lanes=u,e.memoizedState=c}}function Ng(e,t){if(typeof e!="function")throw Error(T(191,e));e.call(t)}function _g(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Ng(a[e],t)}var er=pa(null),Xo=pa(0);function Wm(e,t){e=_a,he(Xo,e),he(er,t),_a=e|t.baseLanes}function Of(){he(Xo,_a),he(er,er.current)}function wc(){_a=Xo.current,Ze(er),Ze(Xo)}var Ot=pa(null),jt=null;function rl(e){var t=e.alternate;he(Oe,Oe.current&1),he(Ot,e),jt===null&&(t===null||er.current!==null||t.memoizedState!==null)&&(jt=e)}function zf(e){he(Oe,Oe.current),he(Ot,e),jt===null&&(jt=e)}function Gg(e){e.tag===22?(he(Oe,Oe.current),he(Ot,e),jt===null&&(jt=e)):ul(e)}function ul(){he(Oe,Oe.current),he(Ot,Ot.current)}function wt(e){Ze(Ot),jt===e&&(jt=null),Ze(Oe)}var Oe=pa(0);function jo(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||ec(a)||tc(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Pa=0,Z=null,pe=null,Pe=null,Qo=!1,Yn=!1,Jl=!1,Yo=0,su=0,Zn=null,j0=0;function Te(){throw Error(T(321))}function Ac(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Rt(e[a],t[a]))return!1;return!0}function Tc(e,t,a,l,n,r){return Pa=r,Z=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?Cx:Pc,Jl=!1,r=a(l,n),Jl=!1,Yn&&(r=Xg(t,a,l,n)),Vg(e),r}function Vg(e){_.H=fu;var t=pe!==null&&pe.next!==null;if(Pa=0,Pe=pe=Z=null,Qo=!1,su=0,Zn=null,t)throw Error(T(300));e===null||_e||(e=e.dependencies,e!==null&&Go(e)&&(_e=!0))}function Xg(e,t,a,l){Z=e;var n=0;do{if(Yn&&(Zn=null),su=0,Yn=!1,25<=n)throw Error(T(301));if(n+=1,Pe=pe=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}_.H=Sx,r=t(a,l)}while(Yn);return r}function Q0(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?Iu(t):t,e=e.useState()[0],(pe!==null?pe.memoizedState:null)!==e&&(Z.flags|=1024),t}function Mc(){var e=Yo!==0;return Yo=0,e}function Dc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Ec(e){if(Qo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Qo=!1}Pa=0,Pe=pe=Z=null,Yn=!1,su=Yo=0,Zn=null}function pt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pe===null?Z.memoizedState=Pe=e:Pe=Pe.next=e,Pe}function ze(){if(pe===null){var e=Z.alternate;e=e!==null?e.memoizedState:null}else e=pe.next;var t=Pe===null?Z.memoizedState:Pe.next;if(t!==null)Pe=t,pe=e;else{if(e===null)throw Z.alternate===null?Error(T(467)):Error(T(310));pe=e,e={memoizedState:pe.memoizedState,baseState:pe.baseState,baseQueue:pe.baseQueue,queue:pe.queue,next:null},Pe===null?Z.memoizedState=Pe=e:Pe=Pe.next=e}return Pe}function xi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Iu(e){var t=su;return su+=1,Zn===null&&(Zn=[]),e=Fg(Zn,e,t),t=Z,(Pe===null?t.memoizedState:Pe.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?Cx:Pc),e}function Li(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Iu(e);if(e.$$typeof===Ba)return tt(e)}throw Error(T(438,String(e)))}function Bc(e){var t=null,a=Z.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=Z.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=xi(),Z.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=Bb;return t.index++,a}function Ua(e,t){return typeof t=="function"?t(e):t}function wo(e){var t=ze();return Rc(t,pe,e)}function Rc(e,t,a){var l=e.queue;if(l===null)throw Error(T(311));l.lastRenderedReducer=a;var n=e.baseQueue,r=l.pending;if(r!==null){if(n!==null){var u=n.next;n.next=r.next,r.next=u}t.baseQueue=n=r,l.pending=null}if(r=e.baseState,n===null)e.memoizedState=r;else{t=n.next;var o=u=null,i=null,s=t,f=!1;do{var c=s.lane&-536870913;if(c!==s.lane?(ae&c)===c:(Pa&c)===c){var p=s.revertLane;if(p===0)i!==null&&(i=i.next={lane:0,revertLane:0,gesture:null,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),c===$n&&(f=!0);else if((Pa&p)===p){s=s.next,p===$n&&(f=!0);continue}else c={lane:0,revertLane:s.revertLane,gesture:null,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null},i===null?(o=i=c,u=r):i=i.next=c,Z.lanes|=p,kl|=p;c=s.action,Jl&&a(r,c),r=s.hasEagerState?s.eagerState:a(r,c)}else p={lane:c,revertLane:s.revertLane,gesture:s.gesture,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null},i===null?(o=i=p,u=r):i=i.next=p,Z.lanes|=c,kl|=c;s=s.next}while(s!==null&&s!==t);if(i===null?u=r:i.next=o,!Rt(r,e.memoizedState)&&(_e=!0,f&&(a=jn,a!==null)))throw a;e.memoizedState=r,e.baseState=u,e.baseQueue=i,l.lastRenderedState=r}return n===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Xs(e){var t=ze(),a=t.queue;if(a===null)throw Error(T(311));a.lastRenderedReducer=e;var l=a.dispatch,n=a.pending,r=t.memoizedState;if(n!==null){a.pending=null;var u=n=n.next;do r=e(r,u.action),u=u.next;while(u!==n);Rt(r,t.memoizedState)||(_e=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),a.lastRenderedState=r}return[r,l]}function jg(e,t,a){var l=Z,n=ze(),r=le;if(r){if(a===void 0)throw Error(T(407));a=a()}else a=t();var u=!Rt((pe||n).memoizedState,a);if(u&&(n.memoizedState=a,_e=!0),n=n.queue,Oc(Zg.bind(null,l,n,e),[e]),n.getSnapshot!==t||u||Pe!==null&&Pe.memoizedState.tag&1){if(l.flags|=2048,tr(9,{destroy:void 0},Yg.bind(null,l,n,a,t),null),me===null)throw Error(T(349));r||(Pa&127)!==0||Qg(l,t,a)}return a}function Qg(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Z.updateQueue,t===null?(t=xi(),Z.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Yg(e,t,a,l){t.value=a,t.getSnapshot=l,Kg(t)&&Wg(e)}function Zg(e,t,a){return a(function(){Kg(t)&&Wg(e)})}function Kg(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Rt(e,a)}catch(l){return!0}}function Wg(e){var t=ln(e,2);t!==null&&Ct(t,e,2)}function qf(e){var t=pt();if(typeof e=="function"){var a=e;if(e=a(),Jl){il(!0);try{a()}finally{il(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ua,lastRenderedState:e},t}function Jg(e,t,a,l){return e.baseState=a,Rc(e,pe,typeof l=="function"?l:Ua)}function Y0(e,t,a,l,n){if(Ci(e))throw Error(T(485));if(e=t.action,e!==null){var r={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(u){r.listeners.push(u)}};_.T!==null?a(!0):r.isTransition=!1,l(r),a=t.pending,a===null?(r.next=t.pending=r,$g(t,r)):(r.next=a.next,t.pending=a.next=r)}}function $g(e,t){var a=t.action,l=t.payload,n=e.state;if(t.isTransition){var r=_.T,u={};_.T=u;try{var o=a(n,l),i=_.S;i!==null&&i(u,o),Jm(e,t,o)}catch(s){Hf(e,t,s)}finally{r!==null&&u.types!==null&&(r.types=u.types),_.T=r}}else try{r=a(n,l),Jm(e,t,r)}catch(s){Hf(e,t,s)}}function Jm(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){$m(e,t,l)},function(l){return Hf(e,t,l)}):$m(e,t,a)}function $m(e,t,a){t.status="fulfilled",t.value=a,ex(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,$g(e,a)))}function Hf(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,ex(t),t=t.next;while(t!==l)}e.action=null}function ex(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function tx(e,t){return t}function eh(e,t){if(le){var a=me.formState;if(a!==null){e:{var l=Z;if(le){if(ye){t:{for(var n=ye,r=Xt;n.nodeType!==8;){if(!r){n=null;break t}if(n=Qt(n.nextSibling),n===null){n=null;break t}}r=n.data,n=r==="F!"||r==="F"?n:null}if(n){ye=Qt(n.nextSibling),l=n.data==="F!";break e}}Il(l)}l=!1}l&&(t=a[0])}}return a=pt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tx,lastRenderedState:t},a.queue=l,a=xx.bind(null,Z,l),l.dispatch=a,l=qf(!1),r=Fc.bind(null,Z,!1,l.queue),l=pt(),n={state:t,dispatch:null,action:e,pending:null},l.queue=n,a=Y0.bind(null,Z,n,r,a),n.dispatch=a,l.memoizedState=e,[t,a,!1]}function th(e){var t=ze();return ax(t,pe,e)}function ax(e,t,a){if(t=Rc(e,t,tx)[0],e=wo(Ua)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Iu(t)}catch(u){throw u===fr?gi:u}else l=t;t=ze();var n=t.queue,r=n.dispatch;return a!==t.memoizedState&&(Z.flags|=2048,tr(9,{destroy:void 0},Z0.bind(null,n,a),null)),[l,r,e]}function Z0(e,t){e.action=t}function ah(e){var t=ze(),a=pe;if(a!==null)return ax(t,a,e);ze(),t=t.memoizedState,a=ze();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function tr(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=Z.updateQueue,t===null&&(t=xi(),Z.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function lx(){return ze().memoizedState}function Ao(e,t,a,l){var n=pt();Z.flags|=e,n.memoizedState=tr(1|t,{destroy:void 0},a,l===void 0?null:l)}function yi(e,t,a,l){var n=ze();l=l===void 0?null:l;var r=n.memoizedState.inst;pe!==null&&l!==null&&Ac(l,pe.memoizedState.deps)?n.memoizedState=tr(t,r,a,l):(Z.flags|=e,n.memoizedState=tr(1|t,r,a,l))}function lh(e,t){Ao(8390656,8,e,t)}function Oc(e,t){yi(2048,8,e,t)}function K0(e){Z.flags|=4;var t=Z.updateQueue;if(t===null)t=xi(),Z.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function nx(e){var t=ze().memoizedState;return K0({ref:t,nextImpl:e}),function(){if((ue&2)!==0)throw Error(T(440));return t.impl.apply(void 0,arguments)}}function rx(e,t){return yi(4,2,e,t)}function ux(e,t){return yi(4,4,e,t)}function ox(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ix(e,t,a){a=a!=null?a.concat([e]):null,yi(4,4,ox.bind(null,t,e),a)}function zc(){}function sx(e,t){var a=ze();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&Ac(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function fx(e,t){var a=ze();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&Ac(t,l[1]))return l[0];if(l=e(),Jl){il(!0);try{e()}finally{il(!1)}}return a.memoizedState=[l,t],l}function qc(e,t,a){return a===void 0||(Pa&1073741824)!==0&&(ae&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Jx(),Z.lanes|=e,kl|=e,a)}function cx(e,t,a,l){return Rt(a,t)?a:er.current!==null?(e=qc(e,a,l),Rt(e,t)||(_e=!0),e):(Pa&42)===0||(Pa&1073741824)!==0&&(ae&261930)===0?(_e=!0,e.memoizedState=a):(e=Jx(),Z.lanes|=e,kl|=e,t)}function dx(e,t,a,l,n){var r=oe.p;oe.p=r!==0&&8>r?r:8;var u=_.T,o={};_.T=o,Fc(e,!1,t,a);try{var i=n(),s=_.S;if(s!==null&&s(o,i),i!==null&&typeof i=="object"&&typeof i.then=="function"){var f=X0(i,l);Kr(e,t,f,Bt(e))}else Kr(e,t,l,Bt(e))}catch(c){Kr(e,t,{then:function(){},status:"rejected",reason:c},Bt())}finally{oe.p=r,u!==null&&o.types!==null&&(u.types=o.types),_.T=u}}function W0(){}function Ff(e,t,a,l){if(e.tag!==5)throw Error(T(476));var n=px(e).queue;dx(e,n,t,Vl,a===null?W0:function(){return mx(e),a(l)})}function px(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Vl,baseState:Vl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ua,lastRenderedState:Vl},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ua,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function mx(e){var t=px(e);t.next===null&&(t=e.alternate.memoizedState),Kr(e,t.next.queue,{},Bt())}function Hc(){return tt(pu)}function hx(){return ze().memoizedState}function gx(){return ze().memoizedState}function J0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Bt();e=hl(a);var l=gl(t,e,a);l!==null&&(Ct(l,t,a),Qr(l,t,a)),t={cache:bc()},e.payload=t;return}t=t.return}}function $0(e,t,a){var l=Bt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ci(e)?Lx(t,a):(a=Lc(e,t,a,l),a!==null&&(Ct(a,e,l),yx(a,t,l)))}function xx(e,t,a){var l=Bt();Kr(e,t,a,l)}function Kr(e,t,a,l){var n={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ci(e))Lx(t,n);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var u=t.lastRenderedState,o=r(u,a);if(n.hasEagerState=!0,n.eagerState=o,Rt(o,u))return hi(e,t,n,0),me===null&&mi(),!1}catch(i){}if(a=Lc(e,t,n,l),a!==null)return Ct(a,e,l),yx(a,t,l),!0}return!1}function Fc(e,t,a,l){if(l={lane:2,revertLane:Qc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ci(e)){if(t)throw Error(T(479))}else t=Lc(e,a,l,2),t!==null&&Ct(t,e,2)}function Ci(e){var t=e.alternate;return e===Z||t!==null&&t===Z}function Lx(e,t){Yn=Qo=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function yx(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,ng(e,a)}}var fu={readContext:tt,use:Li,useCallback:Te,useContext:Te,useEffect:Te,useImperativeHandle:Te,useLayoutEffect:Te,useInsertionEffect:Te,useMemo:Te,useReducer:Te,useRef:Te,useState:Te,useDebugValue:Te,useDeferredValue:Te,useTransition:Te,useSyncExternalStore:Te,useId:Te,useHostTransitionStatus:Te,useFormState:Te,useActionState:Te,useOptimistic:Te,useMemoCache:Te,useCacheRefresh:Te};fu.useEffectEvent=Te;var Cx={readContext:tt,use:Li,useCallback:function(e,t){return pt().memoizedState=[e,t===void 0?null:t],e},useContext:tt,useEffect:lh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ao(4194308,4,ox.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ao(4194308,4,e,t)},useInsertionEffect:function(e,t){Ao(4,2,e,t)},useMemo:function(e,t){var a=pt();t=t===void 0?null:t;var l=e();if(Jl){il(!0);try{e()}finally{il(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=pt();if(a!==void 0){var n=a(t);if(Jl){il(!0);try{a(t)}finally{il(!1)}}}else n=t;return l.memoizedState=l.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},l.queue=e,e=e.dispatch=$0.bind(null,Z,e),[l.memoizedState,e]},useRef:function(e){var t=pt();return e={current:e},t.memoizedState=e},useState:function(e){e=qf(e);var t=e.queue,a=xx.bind(null,Z,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:zc,useDeferredValue:function(e,t){var a=pt();return qc(a,e,t)},useTransition:function(){var e=qf(!1);return e=dx.bind(null,Z,e.queue,!0,!1),pt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=Z,n=pt();if(le){if(a===void 0)throw Error(T(407));a=a()}else{if(a=t(),me===null)throw Error(T(349));(ae&127)!==0||Qg(l,t,a)}n.memoizedState=a;var r={value:a,getSnapshot:t};return n.queue=r,lh(Zg.bind(null,l,r,e),[e]),l.flags|=2048,tr(9,{destroy:void 0},Yg.bind(null,l,r,a,t),null),a},useId:function(){var e=pt(),t=me.identifierPrefix;if(le){var a=fa,l=sa;a=(l&~(1<<32-Et(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Yo++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=j0++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Hc,useFormState:eh,useActionState:eh,useOptimistic:function(e){var t=pt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Fc.bind(null,Z,!0,a),a.dispatch=t,[e,t]},useMemoCache:Bc,useCacheRefresh:function(){return pt().memoizedState=J0.bind(null,Z)},useEffectEvent:function(e){var t=pt(),a={impl:e};return t.memoizedState=a,function(){if((ue&2)!==0)throw Error(T(440));return a.impl.apply(void 0,arguments)}}},Pc={readContext:tt,use:Li,useCallback:sx,useContext:tt,useEffect:Oc,useImperativeHandle:ix,useInsertionEffect:rx,useLayoutEffect:ux,useMemo:fx,useReducer:wo,useRef:lx,useState:function(){return wo(Ua)},useDebugValue:zc,useDeferredValue:function(e,t){var a=ze();return cx(a,pe.memoizedState,e,t)},useTransition:function(){var e=wo(Ua)[0],t=ze().memoizedState;return[typeof e=="boolean"?e:Iu(e),t]},useSyncExternalStore:jg,useId:hx,useHostTransitionStatus:Hc,useFormState:th,useActionState:th,useOptimistic:function(e,t){var a=ze();return Jg(a,pe,e,t)},useMemoCache:Bc,useCacheRefresh:gx};Pc.useEffectEvent=nx;var Sx={readContext:tt,use:Li,useCallback:sx,useContext:tt,useEffect:Oc,useImperativeHandle:ix,useInsertionEffect:rx,useLayoutEffect:ux,useMemo:fx,useReducer:Xs,useRef:lx,useState:function(){return Xs(Ua)},useDebugValue:zc,useDeferredValue:function(e,t){var a=ze();return pe===null?qc(a,e,t):cx(a,pe.memoizedState,e,t)},useTransition:function(){var e=Xs(Ua)[0],t=ze().memoizedState;return[typeof e=="boolean"?e:Iu(e),t]},useSyncExternalStore:jg,useId:hx,useHostTransitionStatus:Hc,useFormState:ah,useActionState:ah,useOptimistic:function(e,t){var a=ze();return pe!==null?Jg(a,pe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Bc,useCacheRefresh:gx};Sx.useEffectEvent=nx;function js(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:Ce({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Pf={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Bt(),n=hl(l);n.payload=t,a!=null&&(n.callback=a),t=gl(e,n,l),t!==null&&(Ct(t,e,l),Qr(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Bt(),n=hl(l);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=gl(e,n,l),t!==null&&(Ct(t,e,l),Qr(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Bt(),l=hl(a);l.tag=2,t!=null&&(l.callback=t),t=gl(e,l,a),t!==null&&(Ct(t,e,a),Qr(t,e,a))}};function nh(e,t,a,l,n,r,u){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,r,u):t.prototype&&t.prototype.isPureReactComponent?!ru(a,l)||!ru(n,r):!0}function rh(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Pf.enqueueReplaceState(t,t.state,null)}function $l(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=Ce({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function bx(e){Uo(e)}function Ix(e){console.error(e)}function vx(e){Uo(e)}function Zo(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function uh(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Uf(e,t,a){return a=hl(a),a.tag=3,a.payload={element:null},a.callback=function(){Zo(e,t)},a}function kx(e){return e=hl(e),e.tag=3,e}function wx(e,t,a,l){var n=a.type.getDerivedStateFromError;if(typeof n=="function"){var r=l.value;e.payload=function(){return n(r)},e.callback=function(){uh(t,a,l)}}var u=a.stateNode;u!==null&&typeof u.componentDidCatch=="function"&&(e.callback=function(){uh(t,a,l),typeof n!="function"&&(xl===null?xl=new Set([this]):xl.add(this));var o=l.stack;this.componentDidCatch(l.value,{componentStack:o!==null?o:""})})}function eI(e,t,a,l,n){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&sr(t,a,n,!0),a=Ot.current,a!==null){switch(a.tag){case 31:case 13:return jt===null?ei():a.alternate===null&&Me===0&&(Me=3),a.flags&=-257,a.flags|=65536,a.lanes=n,l===Vo?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),lf(e,l,n)),!1;case 22:return a.flags|=65536,l===Vo?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),lf(e,l,n)),!1}throw Error(T(435,a.tag))}return lf(e,l,n),ei(),!1}if(le)return t=Ot.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,l!==Af&&(e=Error(T(422),{cause:l}),ou(Vt(e,a)))):(l!==Af&&(t=Error(T(423),{cause:l}),ou(Vt(t,a))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,l=Vt(l,a),n=Uf(e.stateNode,l,n),Vs(e,n),Me!==4&&(Me=2)),!1;var r=Error(T(520),{cause:l});if(r=Vt(r,a),$r===null?$r=[r]:$r.push(r),Me!==4&&(Me=2),t===null)return!0;l=Vt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=n&-n,a.lanes|=e,e=Uf(a.stateNode,l,e),Vs(a,e),!1;case 1:if(t=a.type,r=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(xl===null||!xl.has(r))))return a.flags|=65536,n&=-n,a.lanes|=n,n=kx(n),wx(n,e,a,l),Vs(a,n),!1}a=a.return}while(a!==null);return!1}var Uc=Error(T(461)),_e=!1;function Je(e,t,a,l){t.child=e===null?Ug(t,null,a,l):Wl(t,e.child,a,l)}function oh(e,t,a,l,n){a=a.render;var r=t.ref;if("ref"in l){var u={};for(var o in l)o!=="ref"&&(u[o]=l[o])}else u=l;return Kl(t),l=Tc(e,t,a,u,r,n),o=Mc(),e!==null&&!_e?(Dc(e,t,n),Na(e,t,n)):(le&&o&&Cc(t),t.flags|=1,Je(e,t,l,n),t.child)}function ih(e,t,a,l,n){if(e===null){var r=a.type;return typeof r=="function"&&!yc(r)&&r.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=r,Ax(e,t,r,l,n)):(e=vo(a.type,null,l,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!Nc(e,n)){var u=r.memoizedProps;if(a=a.compare,a=a!==null?a:ru,a(u,l)&&e.ref===t.ref)return Na(e,t,n)}return t.flags|=1,e=za(r,l),e.ref=t.ref,e.return=t,t.child=e}function Ax(e,t,a,l,n){if(e!==null){var r=e.memoizedProps;if(ru(r,l)&&e.ref===t.ref)if(_e=!1,t.pendingProps=l=r,Nc(e,n))(e.flags&131072)!==0&&(_e=!0);else return t.lanes=e.lanes,Na(e,t,n)}return Nf(e,t,a,l,n)}function Tx(e,t,a,l){var n=l.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(r=r!==null?r.baseLanes|a:a,e!==null){for(l=t.child=e.child,n=0;l!==null;)n=n|l.lanes|l.childLanes,l=l.sibling;l=n&~r}else l=0,t.child=null;return sh(e,t,r,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ko(t,r!==null?r.cachePool:null),r!==null?Wm(t,r):Of(),Gg(t);else return l=t.lanes=536870912,sh(e,t,r!==null?r.baseLanes|a:a,a,l)}else r!==null?(ko(t,r.cachePool),Wm(t,r),ul(t),t.memoizedState=null):(e!==null&&ko(t,null),Of(),ul(t));return Je(e,t,n,a),t.child}function Nr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function sh(e,t,a,l,n){var r=Ic();return r=r===null?null:{parent:Ne._currentValue,pool:r},t.memoizedState={baseLanes:a,cachePool:r},e!==null&&ko(t,null),Of(),Gg(t),e!==null&&sr(e,t,l,!0),t.childLanes=n,null}function To(e,t){return t=Ko({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function fh(e,t,a){return Wl(t,e.child,null,a),e=To(t,t.pendingProps),e.flags|=2,wt(t),t.memoizedState=null,e}function tI(e,t,a){var l=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(le){if(l.mode==="hidden")return e=To(t,l),t.lanes=536870912,Nr(null,e);if(zf(t),(e=ye)?(e=CL(e,Xt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:bl!==null?{id:sa,overflow:fa}:null,retryLane:536870912,hydrationErrors:null},a=Rg(e),a.return=t,t.child=a,et=t,ye=null)):e=null,e===null)throw Il(t);return t.lanes=536870912,null}return To(t,l)}var r=e.memoizedState;if(r!==null){var u=r.dehydrated;if(zf(t),n)if(t.flags&256)t.flags&=-257,t=fh(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(T(558));else if(_e||sr(e,t,a,!1),n=(a&e.childLanes)!==0,_e||n){if(l=me,l!==null&&(u=rg(l,a),u!==0&&u!==r.retryLane))throw r.retryLane=u,ln(e,u),Ct(l,e,u),Uc;ei(),t=fh(e,t,a)}else e=r.treeContext,ye=Qt(u.nextSibling),et=t,le=!0,ml=null,Xt=!1,e!==null&&zg(t,e),t=To(t,l),t.flags|=4096;return t}return e=za(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Mo(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(T(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Nf(e,t,a,l,n){return Kl(t),a=Tc(e,t,a,l,void 0,n),l=Mc(),e!==null&&!_e?(Dc(e,t,n),Na(e,t,n)):(le&&l&&Cc(t),t.flags|=1,Je(e,t,a,n),t.child)}function ch(e,t,a,l,n,r){return Kl(t),t.updateQueue=null,a=Xg(t,l,a,n),Vg(e),l=Mc(),e!==null&&!_e?(Dc(e,t,r),Na(e,t,r)):(le&&l&&Cc(t),t.flags|=1,Je(e,t,a,r),t.child)}function dh(e,t,a,l,n){if(Kl(t),t.stateNode===null){var r=Pn,u=a.contextType;typeof u=="object"&&u!==null&&(r=tt(u)),r=new a(l,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Pf,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=l,r.state=t.memoizedState,r.refs={},kc(t),u=a.contextType,r.context=typeof u=="object"&&u!==null?tt(u):Pn,r.state=t.memoizedState,u=a.getDerivedStateFromProps,typeof u=="function"&&(js(t,a,u,l),r.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(u=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),u!==r.state&&Pf.enqueueReplaceState(r,r.state,null),Zr(t,l,r,n),Yr(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){r=t.stateNode;var o=t.memoizedProps,i=$l(a,o);r.props=i;var s=r.context,f=a.contextType;u=Pn,typeof f=="object"&&f!==null&&(u=tt(f));var c=a.getDerivedStateFromProps;f=typeof c=="function"||typeof r.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,f||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(o||s!==u)&&rh(t,r,l,u),ll=!1;var p=t.memoizedState;r.state=p,Zr(t,l,r,n),Yr(),s=t.memoizedState,o||p!==s||ll?(typeof c=="function"&&(js(t,a,c,l),s=t.memoizedState),(i=ll||nh(t,a,i,l,p,s,u))?(f||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=s),r.props=l,r.state=s,r.context=u,l=i):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{r=t.stateNode,Bf(e,t),u=t.memoizedProps,f=$l(a,u),r.props=f,c=t.pendingProps,p=r.context,s=a.contextType,i=Pn,typeof s=="object"&&s!==null&&(i=tt(s)),o=a.getDerivedStateFromProps,(s=typeof o=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(u!==c||p!==i)&&rh(t,r,l,i),ll=!1,p=t.memoizedState,r.state=p,Zr(t,l,r,n),Yr();var d=t.memoizedState;u!==c||p!==d||ll||e!==null&&e.dependencies!==null&&Go(e.dependencies)?(typeof o=="function"&&(js(t,a,o,l),d=t.memoizedState),(f=ll||nh(t,a,f,l,p,d,i)||e!==null&&e.dependencies!==null&&Go(e.dependencies))?(s||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(l,d,i),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(l,d,i)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=d),r.props=l,r.state=d,r.context=i,l=f):(typeof r.componentDidUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),l=!1)}return r=l,Mo(e,t),l=(t.flags&128)!==0,r||l?(r=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&l?(t.child=Wl(t,e.child,null,n),t.child=Wl(t,null,a,n)):Je(e,t,a,n),t.memoizedState=r.state,e=t.child):e=Na(e,t,n),e}function ph(e,t,a,l){return Zl(),t.flags|=256,Je(e,t,a,l),t.child}var Qs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ys(e){return{baseLanes:e,cachePool:Hg()}}function Zs(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Tt),e}function Mx(e,t,a){var l=t.pendingProps,n=!1,r=(t.flags&128)!==0,u;if((u=r)||(u=e!==null&&e.memoizedState===null?!1:(Oe.current&2)!==0),u&&(n=!0,t.flags&=-129),u=(t.flags&32)!==0,t.flags&=-33,e===null){if(le){if(n?rl(t):ul(t),(e=ye)?(e=CL(e,Xt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:bl!==null?{id:sa,overflow:fa}:null,retryLane:536870912,hydrationErrors:null},a=Rg(e),a.return=t,t.child=a,et=t,ye=null)):e=null,e===null)throw Il(t);return tc(e)?t.lanes=32:t.lanes=536870912,null}var o=l.children;return l=l.fallback,n?(ul(t),n=t.mode,o=Ko({mode:"hidden",children:o},n),l=Xl(l,n,a,null),o.return=t,l.return=t,o.sibling=l,t.child=o,l=t.child,l.memoizedState=Ys(a),l.childLanes=Zs(e,u,a),t.memoizedState=Qs,Nr(null,l)):(rl(t),_f(t,o))}var i=e.memoizedState;if(i!==null&&(o=i.dehydrated,o!==null)){if(r)t.flags&256?(rl(t),t.flags&=-257,t=Ks(e,t,a)):t.memoizedState!==null?(ul(t),t.child=e.child,t.flags|=128,t=null):(ul(t),o=l.fallback,n=t.mode,l=Ko({mode:"visible",children:l.children},n),o=Xl(o,n,a,null),o.flags|=2,l.return=t,o.return=t,l.sibling=o,t.child=l,Wl(t,e.child,null,a),l=t.child,l.memoizedState=Ys(a),l.childLanes=Zs(e,u,a),t.memoizedState=Qs,t=Nr(null,l));else if(rl(t),tc(o)){if(u=o.nextSibling&&o.nextSibling.dataset,u)var s=u.dgst;u=s,l=Error(T(419)),l.stack="",l.digest=u,ou({value:l,source:null,stack:null}),t=Ks(e,t,a)}else if(_e||sr(e,t,a,!1),u=(a&e.childLanes)!==0,_e||u){if(u=me,u!==null&&(l=rg(u,a),l!==0&&l!==i.retryLane))throw i.retryLane=l,ln(e,l),Ct(u,e,l),Uc;ec(o)||ei(),t=Ks(e,t,a)}else ec(o)?(t.flags|=192,t.child=e.child,t=null):(e=i.treeContext,ye=Qt(o.nextSibling),et=t,le=!0,ml=null,Xt=!1,e!==null&&zg(t,e),t=_f(t,l.children),t.flags|=4096);return t}return n?(ul(t),o=l.fallback,n=t.mode,i=e.child,s=i.sibling,l=za(i,{mode:"hidden",children:l.children}),l.subtreeFlags=i.subtreeFlags&65011712,s!==null?o=za(s,o):(o=Xl(o,n,a,null),o.flags|=2),o.return=t,l.return=t,l.sibling=o,t.child=l,Nr(null,l),l=t.child,o=e.child.memoizedState,o===null?o=Ys(a):(n=o.cachePool,n!==null?(i=Ne._currentValue,n=n.parent!==i?{parent:i,pool:i}:n):n=Hg(),o={baseLanes:o.baseLanes|a,cachePool:n}),l.memoizedState=o,l.childLanes=Zs(e,u,a),t.memoizedState=Qs,Nr(e.child,l)):(rl(t),a=e.child,e=a.sibling,a=za(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(u=t.deletions,u===null?(t.deletions=[e],t.flags|=16):u.push(e)),t.child=a,t.memoizedState=null,a)}function _f(e,t){return t=Ko({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ko(e,t){return e=At(22,e,null,t),e.lanes=0,e}function Ks(e,t,a){return Wl(t,e.child,null,a),e=_f(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function mh(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Mf(e.return,t,a)}function Ws(e,t,a,l,n,r){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:n,treeForkCount:r}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=l,u.tail=a,u.tailMode=n,u.treeForkCount=r)}function Dx(e,t,a){var l=t.pendingProps,n=l.revealOrder,r=l.tail;l=l.children;var u=Oe.current,o=(u&2)!==0;if(o?(u=u&1|2,t.flags|=128):u&=1,he(Oe,u),Je(e,t,l,a),l=le?uu:0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&mh(e,a,t);else if(e.tag===19)mh(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(a=t.child,n=null;a!==null;)e=a.alternate,e!==null&&jo(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),Ws(t,!1,n,a,r,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&jo(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}Ws(t,!0,a,null,r,l);break;case"together":Ws(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Na(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),kl|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(sr(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(T(153));if(t.child!==null){for(e=t.child,a=za(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=za(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Nc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Go(e)))}function aI(e,t,a){switch(t.tag){case 3:qo(t,t.stateNode.containerInfo),nl(t,Ne,e.memoizedState.cache),Zl();break;case 27:case 5:gf(t);break;case 4:qo(t,t.stateNode.containerInfo);break;case 10:nl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,zf(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(rl(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Mx(e,t,a):(rl(t),e=Na(e,t,a),e!==null?e.sibling:null);rl(t);break;case 19:var n=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(sr(e,t,a,!1),l=(a&t.childLanes)!==0),n){if(l)return Dx(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),he(Oe,Oe.current),l)break;return null;case 22:return t.lanes=0,Tx(e,t,a,t.pendingProps);case 24:nl(t,Ne,e.memoizedState.cache)}return Na(e,t,a)}function Ex(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)_e=!0;else{if(!Nc(e,a)&&(t.flags&128)===0)return _e=!1,aI(e,t,a);_e=(e.flags&131072)!==0}else _e=!1,le&&(t.flags&1048576)!==0&&Og(t,uu,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=_l(t.elementType),t.type=e,typeof e=="function")yc(e)?(l=$l(e,l),t.tag=1,t=dh(null,t,e,l,a)):(t.tag=0,t=Nf(null,t,e,l,a));else{if(e!=null){var n=e.$$typeof;if(n===rc){t.tag=11,t=oh(null,t,e,l,a);break e}else if(n===uc){t.tag=14,t=ih(null,t,e,l,a);break e}}throw t=mf(e)||e,Error(T(306,t,""))}}return t;case 0:return Nf(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,n=$l(l,t.pendingProps),dh(e,t,l,n,a);case 3:e:{if(qo(t,t.stateNode.containerInfo),e===null)throw Error(T(387));l=t.pendingProps;var r=t.memoizedState;n=r.element,Bf(e,t),Zr(t,l,null,a);var u=t.memoizedState;if(l=u.cache,nl(t,Ne,l),l!==r.cache&&Df(t,[Ne],a,!0),Yr(),l=u.element,r.isDehydrated)if(r={element:l,isDehydrated:!1,cache:u.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=ph(e,t,l,a);break e}else if(l!==n){n=Vt(Error(T(424)),t),ou(n),t=ph(e,t,l,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,ye=Qt(e.firstChild),et=t,le=!0,ml=null,Xt=!0,a=Ug(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Zl(),l===n){t=Na(e,t,a);break e}Je(e,t,l,a)}t=t.child}return t;case 26:return Mo(e,t),e===null?(a=qh(t.type,null,t.pendingProps,null))?t.memoizedState=a:le||(a=t.type,e=t.pendingProps,l=ni(pl.current).createElement(a),l[$e]=t,l[St]=e,at(l,a,e),Ye(l),t.stateNode=l):t.memoizedState=qh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return gf(t),e===null&&le&&(l=t.stateNode=SL(t.type,t.pendingProps,pl.current),et=t,Xt=!0,n=ye,Al(t.type)?(ac=n,ye=Qt(l.firstChild)):ye=n),Je(e,t,t.pendingProps.children,a),Mo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&le&&((n=l=ye)&&(l=DI(l,t.type,t.pendingProps,Xt),l!==null?(t.stateNode=l,et=t,ye=Qt(l.firstChild),Xt=!1,n=!0):n=!1),n||Il(t)),gf(t),n=t.type,r=t.pendingProps,u=e!==null?e.memoizedProps:null,l=r.children,Jf(n,r)?l=null:u!==null&&Jf(n,u)&&(t.flags|=32),t.memoizedState!==null&&(n=Tc(e,t,Q0,null,null,a),pu._currentValue=n),Mo(e,t),Je(e,t,l,a),t.child;case 6:return e===null&&le&&((e=a=ye)&&(a=EI(a,t.pendingProps,Xt),a!==null?(t.stateNode=a,et=t,ye=null,e=!0):e=!1),e||Il(t)),null;case 13:return Mx(e,t,a);case 4:return qo(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Wl(t,null,l,a):Je(e,t,l,a),t.child;case 11:return oh(e,t,t.type,t.pendingProps,a);case 7:return Je(e,t,t.pendingProps,a),t.child;case 8:return Je(e,t,t.pendingProps.children,a),t.child;case 12:return Je(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,nl(t,t.type,l.value),Je(e,t,l.children,a),t.child;case 9:return n=t.type._context,l=t.pendingProps.children,Kl(t),n=tt(n),l=l(n),t.flags|=1,Je(e,t,l,a),t.child;case 14:return ih(e,t,t.type,t.pendingProps,a);case 15:return Ax(e,t,t.type,t.pendingProps,a);case 19:return Dx(e,t,a);case 31:return tI(e,t,a);case 22:return Tx(e,t,a,t.pendingProps);case 24:return Kl(t),l=tt(Ne),e===null?(n=Ic(),n===null&&(n=me,r=bc(),n.pooledCache=r,r.refCount++,r!==null&&(n.pooledCacheLanes|=a),n=r),t.memoizedState={parent:l,cache:n},kc(t),nl(t,Ne,n)):((e.lanes&a)!==0&&(Bf(e,t),Zr(t,null,null,a),Yr()),n=e.memoizedState,r=t.memoizedState,n.parent!==l?(n={parent:l,cache:l},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),nl(t,Ne,l)):(l=r.cache,nl(t,Ne,l),l!==n.cache&&Df(t,[Ne],a,!0))),Je(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(T(156,t.tag))}function wa(e){e.flags|=4}function Js(e,t,a,l,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(tL())e.flags|=8192;else throw Ql=Vo,vc}else e.flags&=-16777217}function hh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!vL(t))if(tL())e.flags|=8192;else throw Ql=Vo,vc}function po(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ag():536870912,e.lanes|=t,ar|=t)}function Or(e,t){if(!le)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Le(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags&65011712,l|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags,l|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function lI(e,t,a){var l=t.pendingProps;switch(Sc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Le(t),null;case 1:return Le(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),qa(Ne),Kn(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(An(t)?wa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Gs())),Le(t),null;case 26:var n=t.type,r=t.memoizedState;return e===null?(wa(t),r!==null?(Le(t),hh(t,r)):(Le(t),Js(t,n,null,l,a))):r?r!==e.memoizedState?(wa(t),Le(t),hh(t,r)):(Le(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&wa(t),Le(t),Js(t,n,e,l,a)),null;case 27:if(Ho(t),a=pl.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&wa(t);else{if(!l){if(t.stateNode===null)throw Error(T(166));return Le(t),null}e=da.current,An(t)?Vm(t,e):(e=SL(n,l,a),t.stateNode=e,wa(t))}return Le(t),null;case 5:if(Ho(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&wa(t);else{if(!l){if(t.stateNode===null)throw Error(T(166));return Le(t),null}if(r=da.current,An(t))Vm(t,r);else{var u=ni(pl.current);switch(r){case 1:r=u.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:r=u.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":r=u.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":r=u.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":r=u.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof l.is=="string"?u.createElement("select",{is:l.is}):u.createElement("select"),l.multiple?r.multiple=!0:l.size&&(r.size=l.size);break;default:r=typeof l.is=="string"?u.createElement(n,{is:l.is}):u.createElement(n)}}r[$e]=t,r[St]=l;e:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)r.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break e;for(;u.sibling===null;){if(u.return===null||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=r;e:switch(at(r,n,l),n){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&wa(t)}}return Le(t),Js(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&wa(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(T(166));if(e=pl.current,An(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,n=et,n!==null)switch(n.tag){case 27:case 5:l=n.memoizedProps}e[$e]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||xL(e.nodeValue,a)),e||Il(t,!0)}else e=ni(e).createTextNode(l),e[$e]=t,t.stateNode=e}return Le(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=An(t),a!==null){if(e===null){if(!l)throw Error(T(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(T(557));e[$e]=t}else Zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Le(t),e=!1}else a=Gs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(wt(t),t):(wt(t),null);if((t.flags&128)!==0)throw Error(T(558))}return Le(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=An(t),l!==null&&l.dehydrated!==null){if(e===null){if(!n)throw Error(T(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(T(317));n[$e]=t}else Zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Le(t),n=!1}else n=Gs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(wt(t),t):(wt(t),null)}return wt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,n=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(n=l.alternate.memoizedState.cachePool.pool),r=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(r=l.memoizedState.cachePool.pool),r!==n&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),po(t,t.updateQueue),Le(t),null);case 4:return Kn(),e===null&&Yc(t.stateNode.containerInfo),Le(t),null;case 10:return qa(t.type),Le(t),null;case 19:if(Ze(Oe),l=t.memoizedState,l===null)return Le(t),null;if(n=(t.flags&128)!==0,r=l.rendering,r===null)if(n)Or(l,!1);else{if(Me!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=jo(e),r!==null){for(t.flags|=128,Or(l,!1),e=r.updateQueue,t.updateQueue=e,po(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Bg(a,e),a=a.sibling;return he(Oe,Oe.current&1|2),le&&Da(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Mt()>Jo&&(t.flags|=128,n=!0,Or(l,!1),t.lanes=4194304)}else{if(!n)if(e=jo(r),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,po(t,e),Or(l,!0),l.tail===null&&l.tailMode==="hidden"&&!r.alternate&&!le)return Le(t),null}else 2*Mt()-l.renderingStartTime>Jo&&a!==536870912&&(t.flags|=128,n=!0,Or(l,!1),t.lanes=4194304);l.isBackwards?(r.sibling=t.child,t.child=r):(e=l.last,e!==null?e.sibling=r:t.child=r,l.last=r)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Mt(),e.sibling=null,a=Oe.current,he(Oe,n?a&1|2:a&1),le&&Da(t,l.treeForkCount),e):(Le(t),null);case 22:case 23:return wt(t),wc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Le(t),t.subtreeFlags&6&&(t.flags|=8192)):Le(t),a=t.updateQueue,a!==null&&po(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&Ze(jl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),qa(Ne),Le(t),null;case 25:return null;case 30:return null}throw Error(T(156,t.tag))}function nI(e,t){switch(Sc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qa(Ne),Kn(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ho(t),null;case 31:if(t.memoizedState!==null){if(wt(t),t.alternate===null)throw Error(T(340));Zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(wt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));Zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ze(Oe),null;case 4:return Kn(),null;case 10:return qa(t.type),null;case 22:case 23:return wt(t),wc(),e!==null&&Ze(jl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return qa(Ne),null;case 25:return null;default:return null}}function Bx(e,t){switch(Sc(t),t.tag){case 3:qa(Ne),Kn();break;case 26:case 27:case 5:Ho(t);break;case 4:Kn();break;case 31:t.memoizedState!==null&&wt(t);break;case 13:wt(t);break;case 19:Ze(Oe);break;case 10:qa(t.type);break;case 22:case 23:wt(t),wc(),e!==null&&Ze(jl);break;case 24:qa(Ne)}}function vu(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var n=l.next;a=n;do{if((a.tag&e)===e){l=void 0;var r=a.create,u=a.inst;l=r(),u.destroy=l}a=a.next}while(a!==n)}}catch(o){fe(t,t.return,o)}}function vl(e,t,a){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var r=n.next;l=r;do{if((l.tag&e)===e){var u=l.inst,o=u.destroy;if(o!==void 0){u.destroy=void 0,n=t;var i=a,s=o;try{s()}catch(f){fe(n,i,f)}}}l=l.next}while(l!==r)}}catch(f){fe(t,t.return,f)}}function Rx(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{_g(t,a)}catch(l){fe(e,e.return,l)}}}function Ox(e,t,a){a.props=$l(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){fe(e,t,l)}}function Wr(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(n){fe(e,t,n)}}function ca(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(n){fe(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(n){fe(e,t,n)}else a.current=null}function zx(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(n){fe(e,e.return,n)}}function $s(e,t,a){try{var l=e.stateNode;vI(l,e.type,a,t),l[St]=t}catch(n){fe(e,e.return,n)}}function qx(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Al(e.type)||e.tag===4}function ef(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qx(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&&Al(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gf(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Ra));else if(l!==4&&(l===27&&Al(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Gf(e,t,a),e=e.sibling;e!==null;)Gf(e,t,a),e=e.sibling}function Wo(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Al(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Wo(e,t,a),e=e.sibling;e!==null;)Wo(e,t,a),e=e.sibling}function Hx(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);at(t,l,a),t[$e]=e,t[St]=a}catch(r){fe(e,e.return,r)}}var Ea=!1,Ue=!1,tf=!1,gh=typeof WeakSet=="function"?WeakSet:Set,Qe=null;function rI(e,t){if(e=e.containerInfo,Kf=ii,e=vg(e),gc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var n=l.anchorOffset,r=l.focusNode;l=l.focusOffset;try{a.nodeType,r.nodeType}catch(C){a=null;break e}var u=0,o=-1,i=-1,s=0,f=0,c=e,p=null;t:for(;;){for(var d;c!==a||n!==0&&c.nodeType!==3||(o=u+n),c!==r||l!==0&&c.nodeType!==3||(i=u+l),c.nodeType===3&&(u+=c.nodeValue.length),(d=c.firstChild)!==null;)p=c,c=d;for(;;){if(c===e)break t;if(p===a&&++s===n&&(o=u),p===r&&++f===l&&(i=u),(d=c.nextSibling)!==null)break;c=p,p=c.parentNode}c=d}a=o===-1||i===-1?null:{start:o,end:i}}else a=null}a=a||{start:0,end:0}}else a=null;for(Wf={focusedElem:e,selectionRange:a},ii=!1,Qe=t;Qe!==null;)if(t=Qe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Qe=e;else for(;Qe!==null;){switch(t=Qe,r=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)n=e[a],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&r!==null){e=void 0,a=t,n=r.memoizedProps,r=r.memoizedState,l=a.stateNode;try{var g=$l(a.type,n);e=l.getSnapshotBeforeUpdate(g,r),l.__reactInternalSnapshotBeforeUpdate=e}catch(C){fe(a,a.return,C)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)$f(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":$f(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(T(163))}if(e=t.sibling,e!==null){e.return=t.return,Qe=e;break}Qe=t.return}}function Fx(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Ta(e,a),l&4&&vu(5,a);break;case 1:if(Ta(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(u){fe(a,a.return,u)}else{var n=$l(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(u){fe(a,a.return,u)}}l&64&&Rx(a),l&512&&Wr(a,a.return);break;case 3:if(Ta(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{_g(e,t)}catch(u){fe(a,a.return,u)}}break;case 27:t===null&&l&4&&Hx(a);case 26:case 5:Ta(e,a),t===null&&l&4&&zx(a),l&512&&Wr(a,a.return);break;case 12:Ta(e,a);break;case 31:Ta(e,a),l&4&&Nx(e,a);break;case 13:Ta(e,a),l&4&&_x(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=mI.bind(null,a),BI(e,a))));break;case 22:if(l=a.memoizedState!==null||Ea,!l){t=t!==null&&t.memoizedState!==null||Ue,n=Ea;var r=Ue;Ea=l,(Ue=t)&&!r?Ma(e,a,(a.subtreeFlags&8772)!==0):Ta(e,a),Ea=n,Ue=r}break;case 30:break;default:Ta(e,a)}}function Px(e){var t=e.alternate;t!==null&&(e.alternate=null,Px(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&fc(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ie=null,Lt=!1;function Aa(e,t,a){for(a=a.child;a!==null;)Ux(e,t,a),a=a.sibling}function Ux(e,t,a){if(Dt&&typeof Dt.onCommitFiberUnmount=="function")try{Dt.onCommitFiberUnmount(xu,a)}catch(r){}switch(a.tag){case 26:Ue||ca(a,t),Aa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ue||ca(a,t);var l=Ie,n=Lt;Al(a.type)&&(Ie=a.stateNode,Lt=!1),Aa(e,t,a),tu(a.stateNode),Ie=l,Lt=n;break;case 5:Ue||ca(a,t);case 6:if(l=Ie,n=Lt,Ie=null,Aa(e,t,a),Ie=l,Lt=n,Ie!==null)if(Lt)try{(Ie.nodeType===9?Ie.body:Ie.nodeName==="HTML"?Ie.ownerDocument.body:Ie).removeChild(a.stateNode)}catch(r){fe(a,t,r)}else try{Ie.removeChild(a.stateNode)}catch(r){fe(a,t,r)}break;case 18:Ie!==null&&(Lt?(e=Ie,Eh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),ur(e)):Eh(Ie,a.stateNode));break;case 4:l=Ie,n=Lt,Ie=a.stateNode.containerInfo,Lt=!0,Aa(e,t,a),Ie=l,Lt=n;break;case 0:case 11:case 14:case 15:vl(2,a,t),Ue||vl(4,a,t),Aa(e,t,a);break;case 1:Ue||(ca(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Ox(a,t,l)),Aa(e,t,a);break;case 21:Aa(e,t,a);break;case 22:Ue=(l=Ue)||a.memoizedState!==null,Aa(e,t,a),Ue=l;break;default:Aa(e,t,a)}}function Nx(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ur(e)}catch(a){fe(t,t.return,a)}}}function _x(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ur(e)}catch(a){fe(t,t.return,a)}}function uI(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new gh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new gh),t;default:throw Error(T(435,e.tag))}}function mo(e,t){var a=uI(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var n=hI.bind(null,e,l);l.then(n,n)}})}function gt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var n=a[l],r=e,u=t,o=u;e:for(;o!==null;){switch(o.tag){case 27:if(Al(o.type)){Ie=o.stateNode,Lt=!1;break e}break;case 5:Ie=o.stateNode,Lt=!1;break e;case 3:case 4:Ie=o.stateNode.containerInfo,Lt=!0;break e}o=o.return}if(Ie===null)throw Error(T(160));Ux(r,u,n),Ie=null,Lt=!1,r=n.alternate,r!==null&&(r.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Gx(t,e),t=t.sibling}var la=null;function Gx(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:gt(t,e),xt(e),l&4&&(vl(3,e,e.return),vu(3,e),vl(5,e,e.return));break;case 1:gt(t,e),xt(e),l&512&&(Ue||a===null||ca(a,a.return)),l&64&&Ea&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var n=la;if(gt(t,e),xt(e),l&512&&(Ue||a===null||ca(a,a.return)),l&4){var r=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,n=n.ownerDocument||n;t:switch(l){case"title":r=n.getElementsByTagName("title")[0],(!r||r[Cu]||r[$e]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=n.createElement(l),n.head.insertBefore(r,n.querySelector("head > title"))),at(r,l,a),r[$e]=e,Ye(r),l=r;break e;case"link":var u=Fh("link","href",n).get(l+(a.href||""));if(u){for(var o=0;o<u.length;o++)if(r=u[o],r.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&r.getAttribute("rel")===(a.rel==null?null:a.rel)&&r.getAttribute("title")===(a.title==null?null:a.title)&&r.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){u.splice(o,1);break t}}r=n.createElement(l),at(r,l,a),n.head.appendChild(r);break;case"meta":if(u=Fh("meta","content",n).get(l+(a.content||""))){for(o=0;o<u.length;o++)if(r=u[o],r.getAttribute("content")===(a.content==null?null:""+a.content)&&r.getAttribute("name")===(a.name==null?null:a.name)&&r.getAttribute("property")===(a.property==null?null:a.property)&&r.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&r.getAttribute("charset")===(a.charSet==null?null:a.charSet)){u.splice(o,1);break t}}r=n.createElement(l),at(r,l,a),n.head.appendChild(r);break;default:throw Error(T(468,l))}r[$e]=e,Ye(r),l=r}e.stateNode=l}else Ph(n,e.type,e.stateNode);else e.stateNode=Hh(n,l,e.memoizedProps);else r!==l?(r===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):r.count--,l===null?Ph(n,e.type,e.stateNode):Hh(n,l,e.memoizedProps)):l===null&&e.stateNode!==null&&$s(e,e.memoizedProps,a.memoizedProps)}break;case 27:gt(t,e),xt(e),l&512&&(Ue||a===null||ca(a,a.return)),a!==null&&l&4&&$s(e,e.memoizedProps,a.memoizedProps);break;case 5:if(gt(t,e),xt(e),l&512&&(Ue||a===null||ca(a,a.return)),e.flags&32){n=e.stateNode;try{Jn(n,"")}catch(g){fe(e,e.return,g)}}l&4&&e.stateNode!=null&&(n=e.memoizedProps,$s(e,n,a!==null?a.memoizedProps:n)),l&1024&&(tf=!0);break;case 6:if(gt(t,e),xt(e),l&4){if(e.stateNode===null)throw Error(T(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(g){fe(e,e.return,g)}}break;case 3:if(Bo=null,n=la,la=ri(t.containerInfo),gt(t,e),la=n,xt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{ur(t.containerInfo)}catch(g){fe(e,e.return,g)}tf&&(tf=!1,Vx(e));break;case 4:l=la,la=ri(e.stateNode.containerInfo),gt(t,e),xt(e),la=l;break;case 12:gt(t,e),xt(e);break;case 31:gt(t,e),xt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,mo(e,l)));break;case 13:gt(t,e),xt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Si=Mt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,mo(e,l)));break;case 22:n=e.memoizedState!==null;var i=a!==null&&a.memoizedState!==null,s=Ea,f=Ue;if(Ea=s||n,Ue=f||i,gt(t,e),Ue=f,Ea=s,xt(e),l&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(a===null||i||Ea||Ue||Gl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){i=a=t;try{if(r=i.stateNode,n)u=r.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none";else{o=i.stateNode;var c=i.memoizedProps.style,p=c!=null&&c.hasOwnProperty("display")?c.display:null;o.style.display=p==null||typeof p=="boolean"?"":(""+p).trim()}}catch(g){fe(i,i.return,g)}}}else if(t.tag===6){if(a===null){i=t;try{i.stateNode.nodeValue=n?"":i.memoizedProps}catch(g){fe(i,i.return,g)}}}else if(t.tag===18){if(a===null){i=t;try{var d=i.stateNode;n?Bh(d,!0):Bh(i.stateNode,!1)}catch(g){fe(i,i.return,g)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,mo(e,a))));break;case 19:gt(t,e),xt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,mo(e,l)));break;case 30:break;case 21:break;default:gt(t,e),xt(e)}}function xt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(qx(l)){a=l;break}l=l.return}if(a==null)throw Error(T(160));switch(a.tag){case 27:var n=a.stateNode,r=ef(e);Wo(e,r,n);break;case 5:var u=a.stateNode;a.flags&32&&(Jn(u,""),a.flags&=-33);var o=ef(e);Wo(e,o,u);break;case 3:case 4:var i=a.stateNode.containerInfo,s=ef(e);Gf(e,s,i);break;default:throw Error(T(161))}}catch(f){fe(e,e.return,f)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Vx(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Vx(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ta(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Fx(e,t.alternate,t),t=t.sibling}function Gl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:vl(4,t,t.return),Gl(t);break;case 1:ca(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Ox(t,t.return,a),Gl(t);break;case 27:tu(t.stateNode);case 26:case 5:ca(t,t.return),Gl(t);break;case 22:t.memoizedState===null&&Gl(t);break;case 30:Gl(t);break;default:Gl(t)}e=e.sibling}}function Ma(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,n=e,r=t,u=r.flags;switch(r.tag){case 0:case 11:case 15:Ma(n,r,a),vu(4,r);break;case 1:if(Ma(n,r,a),l=r,n=l.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(s){fe(l,l.return,s)}if(l=r,n=l.updateQueue,n!==null){var o=l.stateNode;try{var i=n.shared.hiddenCallbacks;if(i!==null)for(n.shared.hiddenCallbacks=null,n=0;n<i.length;n++)Ng(i[n],o)}catch(s){fe(l,l.return,s)}}a&&u&64&&Rx(r),Wr(r,r.return);break;case 27:Hx(r);case 26:case 5:Ma(n,r,a),a&&l===null&&u&4&&zx(r),Wr(r,r.return);break;case 12:Ma(n,r,a);break;case 31:Ma(n,r,a),a&&u&4&&Nx(n,r);break;case 13:Ma(n,r,a),a&&u&4&&_x(n,r);break;case 22:r.memoizedState===null&&Ma(n,r,a),Wr(r,r.return);break;case 30:break;default:Ma(n,r,a)}t=t.sibling}}function _c(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&bu(a))}function Gc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&bu(e))}function aa(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Xx(e,t,a,l),t=t.sibling}function Xx(e,t,a,l){var n=t.flags;switch(t.tag){case 0:case 11:case 15:aa(e,t,a,l),n&2048&&vu(9,t);break;case 1:aa(e,t,a,l);break;case 3:aa(e,t,a,l),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&bu(e)));break;case 12:if(n&2048){aa(e,t,a,l),e=t.stateNode;try{var r=t.memoizedProps,u=r.id,o=r.onPostCommit;typeof o=="function"&&o(u,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(i){fe(t,t.return,i)}}else aa(e,t,a,l);break;case 31:aa(e,t,a,l);break;case 13:aa(e,t,a,l);break;case 23:break;case 22:r=t.stateNode,u=t.alternate,t.memoizedState!==null?r._visibility&2?aa(e,t,a,l):Jr(e,t):r._visibility&2?aa(e,t,a,l):(r._visibility|=2,Mn(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),n&2048&&_c(u,t);break;case 24:aa(e,t,a,l),n&2048&&Gc(t.alternate,t);break;default:aa(e,t,a,l)}}function Mn(e,t,a,l,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,u=t,o=a,i=l,s=u.flags;switch(u.tag){case 0:case 11:case 15:Mn(r,u,o,i,n),vu(8,u);break;case 23:break;case 22:var f=u.stateNode;u.memoizedState!==null?f._visibility&2?Mn(r,u,o,i,n):Jr(r,u):(f._visibility|=2,Mn(r,u,o,i,n)),n&&s&2048&&_c(u.alternate,u);break;case 24:Mn(r,u,o,i,n),n&&s&2048&&Gc(u.alternate,u);break;default:Mn(r,u,o,i,n)}t=t.sibling}}function Jr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,n=l.flags;switch(l.tag){case 22:Jr(a,l),n&2048&&_c(l.alternate,l);break;case 24:Jr(a,l),n&2048&&Gc(l.alternate,l);break;default:Jr(a,l)}t=t.sibling}}var _r=8192;function Tn(e,t,a){if(e.subtreeFlags&_r)for(e=e.child;e!==null;)jx(e,t,a),e=e.sibling}function jx(e,t,a){switch(e.tag){case 26:Tn(e,t,a),e.flags&_r&&e.memoizedState!==null&&VI(a,la,e.memoizedState,e.memoizedProps);break;case 5:Tn(e,t,a);break;case 3:case 4:var l=la;la=ri(e.stateNode.containerInfo),Tn(e,t,a),la=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=_r,_r=16777216,Tn(e,t,a),_r=l):Tn(e,t,a));break;default:Tn(e,t,a)}}function Qx(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function zr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Qe=l,Zx(l,e)}Qx(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Yx(e),e=e.sibling}function Yx(e){switch(e.tag){case 0:case 11:case 15:zr(e),e.flags&2048&&vl(9,e,e.return);break;case 3:zr(e);break;case 12:zr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Do(e)):zr(e);break;default:zr(e)}}function Do(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Qe=l,Zx(l,e)}Qx(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:vl(8,t,t.return),Do(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Do(t));break;default:Do(t)}e=e.sibling}}function Zx(e,t){for(;Qe!==null;){var a=Qe;switch(a.tag){case 0:case 11:case 15:vl(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:bu(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Qe=l;else e:for(a=e;Qe!==null;){l=Qe;var n=l.sibling,r=l.return;if(Px(l),l===a){Qe=null;break e}if(n!==null){n.return=r,Qe=n;break e}Qe=r}}}var oI={getCacheForType:function(e){var t=tt(Ne),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return tt(Ne).controller.signal}},iI=typeof WeakMap=="function"?WeakMap:Map,ue=0,me=null,te=null,ae=0,se=0,kt=null,fl=!1,cr=!1,Vc=!1,_a=0,Me=0,kl=0,Yl=0,Xc=0,Tt=0,ar=0,$r=null,yt=null,Vf=!1,Si=0,Kx=0,Jo=1/0,$o=null,xl=null,Ge=0,Ll=null,lr=null,Ha=0,Xf=0,jf=null,Wx=null,eu=0,Qf=null;function Bt(){return(ue&2)!==0&&ae!==0?ae&-ae:_.T!==null?Qc():ug()}function Jx(){if(Tt===0)if((ae&536870912)===0||le){var e=lo;lo<<=1,(lo&3932160)===0&&(lo=262144),Tt=e}else Tt=536870912;return e=Ot.current,e!==null&&(e.flags|=32),Tt}function Ct(e,t,a){(e===me&&(se===2||se===9)||e.cancelPendingCommit!==null)&&(nr(e,0),cl(e,ae,Tt,!1)),yu(e,a),((ue&2)===0||e!==me)&&(e===me&&((ue&2)===0&&(Yl|=a),Me===4&&cl(e,ae,Tt,!1)),ma(e))}function $x(e,t,a){if((ue&6)!==0)throw Error(T(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Lu(e,t),n=l?cI(e,t):af(e,t,!0),r=l;do{if(n===0){cr&&!l&&cl(e,t,0,!1);break}else{if(a=e.current.alternate,r&&!sI(a)){n=af(e,t,!1),r=!1;continue}if(n===2){if(r=t,e.errorRecoveryDisabledLanes&r)var u=0;else u=e.pendingLanes&-536870913,u=u!==0?u:u&536870912?536870912:0;if(u!==0){t=u;e:{var o=e;n=$r;var i=o.current.memoizedState.isDehydrated;if(i&&(nr(o,u).flags|=256),u=af(o,u,!1),u!==2){if(Vc&&!i){o.errorRecoveryDisabledLanes|=r,Yl|=r,n=4;break e}r=yt,yt=n,r!==null&&(yt===null?yt=r:yt.push.apply(yt,r))}n=u}if(r=!1,n!==2)continue}}if(n===1){nr(e,0),cl(e,t,0,!0);break}e:{switch(l=e,r=n,r){case 0:case 1:throw Error(T(345));case 4:if((t&4194048)!==t)break;case 6:cl(l,t,Tt,!fl);break e;case 2:yt=null;break;case 3:case 5:break;default:throw Error(T(329))}if((t&62914560)===t&&(n=Si+300-Mt(),10<n)){if(cl(l,t,Tt,!fl),fi(l,0,!0)!==0)break e;Ha=t,l.timeoutHandle=yL(xh.bind(null,l,a,yt,$o,Vf,t,Tt,Yl,ar,fl,r,"Throttled",-0,0),n);break e}xh(l,a,yt,$o,Vf,t,Tt,Yl,ar,fl,r,null,-0,0)}}break}while(!0);ma(e)}function xh(e,t,a,l,n,r,u,o,i,s,f,c,p,d){if(e.timeoutHandle=-1,c=t.subtreeFlags,c&8192||(c&16785408)===16785408){c={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ra},jx(t,r,c);var g=(r&62914560)===r?Si-Mt():(r&4194048)===r?Kx-Mt():0;if(g=XI(c,g),g!==null){Ha=r,e.cancelPendingCommit=g(yh.bind(null,e,t,r,a,l,n,u,o,i,f,c,null,p,d)),cl(e,r,u,!s);return}}yh(e,t,r,a,l,n,u,o,i)}function sI(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var n=a[l],r=n.getSnapshot;n=n.value;try{if(!Rt(r(),n))return!1}catch(u){return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function cl(e,t,a,l){t&=~Xc,t&=~Yl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var n=t;0<n;){var r=31-Et(n),u=1<<r;l[r]=-1,n&=~u}a!==0&&lg(e,a,t)}function bi(){return(ue&6)===0?(ku(0,!1),!1):!0}function jc(){if(te!==null){if(se===0)var e=te.return;else e=te,Oa=nn=null,Ec(e),Qn=null,iu=0,e=te;for(;e!==null;)Bx(e.alternate,e),e=e.return;te=null}}function nr(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,AI(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Ha=0,jc(),me=e,te=a=za(e.current,null),ae=t,se=0,kt=null,fl=!1,cr=Lu(e,t),Vc=!1,ar=Tt=Xc=Yl=kl=Me=0,yt=$r=null,Vf=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var n=31-Et(l),r=1<<n;t|=e[n],l&=~r}return _a=t,mi(),a}function eL(e,t){Z=null,_.H=fu,t===fr||t===gi?(t=Zm(),se=3):t===vc?(t=Zm(),se=4):se=t===Uc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,kt=t,te===null&&(Me=1,Zo(e,Vt(t,e.current)))}function tL(){var e=Ot.current;return e===null?!0:(ae&4194048)===ae?jt===null:(ae&62914560)===ae||(ae&536870912)!==0?e===jt:!1}function aL(){var e=_.H;return _.H=fu,e===null?fu:e}function lL(){var e=_.A;return _.A=oI,e}function ei(){Me=4,fl||(ae&4194048)!==ae&&Ot.current!==null||(cr=!0),(kl&134217727)===0&&(Yl&134217727)===0||me===null||cl(me,ae,Tt,!1)}function af(e,t,a){var l=ue;ue|=2;var n=aL(),r=lL();(me!==e||ae!==t)&&($o=null,nr(e,t)),t=!1;var u=Me;e:do try{if(se!==0&&te!==null){var o=te,i=kt;switch(se){case 8:jc(),u=6;break e;case 3:case 2:case 9:case 6:Ot.current===null&&(t=!0);var s=se;if(se=0,kt=null,_n(e,o,i,s),a&&cr){u=0;break e}break;default:s=se,se=0,kt=null,_n(e,o,i,s)}}fI(),u=Me;break}catch(f){eL(e,f)}while(!0);return t&&e.shellSuspendCounter++,Oa=nn=null,ue=l,_.H=n,_.A=r,te===null&&(me=null,ae=0,mi()),u}function fI(){for(;te!==null;)nL(te)}function cI(e,t){var a=ue;ue|=2;var l=aL(),n=lL();me!==e||ae!==t?($o=null,Jo=Mt()+500,nr(e,t)):cr=Lu(e,t);e:do try{if(se!==0&&te!==null){t=te;var r=kt;t:switch(se){case 1:se=0,kt=null,_n(e,t,r,1);break;case 2:case 9:if(Ym(r)){se=0,kt=null,Lh(t);break}t=function(){se!==2&&se!==9||me!==e||(se=7),ma(e)},r.then(t,t);break e;case 3:se=7;break e;case 4:se=5;break e;case 7:Ym(r)?(se=0,kt=null,Lh(t)):(se=0,kt=null,_n(e,t,r,7));break;case 5:var u=null;switch(te.tag){case 26:u=te.memoizedState;case 5:case 27:var o=te;if(u?vL(u):o.stateNode.complete){se=0,kt=null;var i=o.sibling;if(i!==null)te=i;else{var s=o.return;s!==null?(te=s,Ii(s)):te=null}break t}}se=0,kt=null,_n(e,t,r,5);break;case 6:se=0,kt=null,_n(e,t,r,6);break;case 8:jc(),Me=6;break e;default:throw Error(T(462))}}dI();break}catch(f){eL(e,f)}while(!0);return Oa=nn=null,_.H=l,_.A=n,ue=a,te!==null?0:(me=null,ae=0,mi(),Me)}function dI(){for(;te!==null&&!zb();)nL(te)}function nL(e){var t=Ex(e.alternate,e,_a);e.memoizedProps=e.pendingProps,t===null?Ii(e):te=t}function Lh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=ch(a,t,t.pendingProps,t.type,void 0,ae);break;case 11:t=ch(a,t,t.pendingProps,t.type.render,t.ref,ae);break;case 5:Ec(t);default:Bx(a,t),t=te=Bg(t,_a),t=Ex(a,t,_a)}e.memoizedProps=e.pendingProps,t===null?Ii(e):te=t}function _n(e,t,a,l){Oa=nn=null,Ec(t),Qn=null,iu=0;var n=t.return;try{if(eI(e,n,t,a,ae)){Me=1,Zo(e,Vt(a,e.current)),te=null;return}}catch(r){if(n!==null)throw te=n,r;Me=1,Zo(e,Vt(a,e.current)),te=null;return}t.flags&32768?(le||l===1?e=!0:cr||(ae&536870912)!==0?e=!1:(fl=e=!0,(l===2||l===9||l===3||l===6)&&(l=Ot.current,l!==null&&l.tag===13&&(l.flags|=16384))),rL(t,e)):Ii(t)}function Ii(e){var t=e;do{if((t.flags&32768)!==0){rL(t,fl);return}e=t.return;var a=lI(t.alternate,t,_a);if(a!==null){te=a;return}if(t=t.sibling,t!==null){te=t;return}te=t=e}while(t!==null);Me===0&&(Me=5)}function rL(e,t){do{var a=nI(e.alternate,e);if(a!==null){a.flags&=32767,te=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){te=e;return}te=e=a}while(e!==null);Me=6,te=null}function yh(e,t,a,l,n,r,u,o,i){e.cancelPendingCommit=null;do vi();while(Ge!==0);if((ue&6)!==0)throw Error(T(327));if(t!==null){if(t===e.current)throw Error(T(177));if(r=t.lanes|t.childLanes,r|=xc,Xb(e,a,r,u,o,i),e===me&&(te=me=null,ae=0),lr=t,Ll=e,Ha=a,Xf=r,jf=n,Wx=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,gI(Fo,function(){return fL(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=_.T,_.T=null,n=oe.p,oe.p=2,u=ue,ue|=4;try{rI(e,t,a)}finally{ue=u,oe.p=n,_.T=l}}Ge=1,uL(),oL(),iL()}}function uL(){if(Ge===1){Ge=0;var e=Ll,t=lr,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=_.T,_.T=null;var l=oe.p;oe.p=2;var n=ue;ue|=4;try{Gx(t,e);var r=Wf,u=vg(e.containerInfo),o=r.focusedElem,i=r.selectionRange;if(u!==o&&o&&o.ownerDocument&&Ig(o.ownerDocument.documentElement,o)){if(i!==null&&gc(o)){var s=i.start,f=i.end;if(f===void 0&&(f=s),"selectionStart"in o)o.selectionStart=s,o.selectionEnd=Math.min(f,o.value.length);else{var c=o.ownerDocument||document,p=c&&c.defaultView||window;if(p.getSelection){var d=p.getSelection(),g=o.textContent.length,C=Math.min(i.start,g),v=i.end===void 0?C:Math.min(i.end,g);!d.extend&&C>v&&(u=v,v=C,C=u);var m=Nm(o,C),h=Nm(o,v);if(m&&h&&(d.rangeCount!==1||d.anchorNode!==m.node||d.anchorOffset!==m.offset||d.focusNode!==h.node||d.focusOffset!==h.offset)){var x=c.createRange();x.setStart(m.node,m.offset),d.removeAllRanges(),C>v?(d.addRange(x),d.extend(h.node,h.offset)):(x.setEnd(h.node,h.offset),d.addRange(x))}}}}for(c=[],d=o;d=d.parentNode;)d.nodeType===1&&c.push({element:d,left:d.scrollLeft,top:d.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<c.length;o++){var b=c[o];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}ii=!!Kf,Wf=Kf=null}finally{ue=n,oe.p=l,_.T=a}}e.current=t,Ge=2}}function oL(){if(Ge===2){Ge=0;var e=Ll,t=lr,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=_.T,_.T=null;var l=oe.p;oe.p=2;var n=ue;ue|=4;try{Fx(e,t.alternate,t)}finally{ue=n,oe.p=l,_.T=a}}Ge=3}}function iL(){if(Ge===4||Ge===3){Ge=0,qb();var e=Ll,t=lr,a=Ha,l=Wx;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ge=5:(Ge=0,lr=Ll=null,sL(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(xl=null),sc(a),t=t.stateNode,Dt&&typeof Dt.onCommitFiberRoot=="function")try{Dt.onCommitFiberRoot(xu,t,void 0,(t.current.flags&128)===128)}catch(i){}if(l!==null){t=_.T,n=oe.p,oe.p=2,_.T=null;try{for(var r=e.onRecoverableError,u=0;u<l.length;u++){var o=l[u];r(o.value,{componentStack:o.stack})}}finally{_.T=t,oe.p=n}}(Ha&3)!==0&&vi(),ma(e),n=e.pendingLanes,(a&261930)!==0&&(n&42)!==0?e===Qf?eu++:(eu=0,Qf=e):eu=0,ku(0,!1)}}function sL(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,bu(t)))}function vi(){return uL(),oL(),iL(),fL()}function fL(){if(Ge!==5)return!1;var e=Ll,t=Xf;Xf=0;var a=sc(Ha),l=_.T,n=oe.p;try{oe.p=32>a?32:a,_.T=null,a=jf,jf=null;var r=Ll,u=Ha;if(Ge=0,lr=Ll=null,Ha=0,(ue&6)!==0)throw Error(T(331));var o=ue;if(ue|=4,Yx(r.current),Xx(r,r.current,u,a),ue=o,ku(0,!1),Dt&&typeof Dt.onPostCommitFiberRoot=="function")try{Dt.onPostCommitFiberRoot(xu,r)}catch(i){}return!0}finally{oe.p=n,_.T=l,sL(e,t)}}function Ch(e,t,a){t=Vt(a,t),t=Uf(e.stateNode,t,2),e=gl(e,t,2),e!==null&&(yu(e,2),ma(e))}function fe(e,t,a){if(e.tag===3)Ch(e,e,a);else for(;t!==null;){if(t.tag===3){Ch(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(xl===null||!xl.has(l))){e=Vt(a,e),a=kx(2),l=gl(t,a,2),l!==null&&(wx(a,l,t,e),yu(l,2),ma(l));break}}t=t.return}}function lf(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new iI;var n=new Set;l.set(t,n)}else n=l.get(t),n===void 0&&(n=new Set,l.set(t,n));n.has(a)||(Vc=!0,n.add(a),e=pI.bind(null,e,t,a),t.then(e,e))}function pI(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,me===e&&(ae&a)===a&&(Me===4||Me===3&&(ae&62914560)===ae&&300>Mt()-Si?(ue&2)===0&&nr(e,0):Xc|=a,ar===ae&&(ar=0)),ma(e)}function cL(e,t){t===0&&(t=ag()),e=ln(e,t),e!==null&&(yu(e,t),ma(e))}function mI(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),cL(e,a)}function hI(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,n=e.memoizedState;n!==null&&(a=n.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(T(314))}l!==null&&l.delete(t),cL(e,a)}function gI(e,t){return oc(e,t)}var ti=null,Dn=null,Yf=!1,ai=!1,nf=!1,dl=0;function ma(e){e!==Dn&&e.next===null&&(Dn===null?ti=Dn=e:Dn=Dn.next=e),ai=!0,Yf||(Yf=!0,LI())}function ku(e,t){if(!nf&&ai){nf=!0;do for(var a=!1,l=ti;l!==null;){if(!t)if(e!==0){var n=l.pendingLanes;if(n===0)var r=0;else{var u=l.suspendedLanes,o=l.pingedLanes;r=(1<<31-Et(42|e)+1)-1,r&=n&~(u&~o),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(a=!0,Sh(l,r))}else r=ae,r=fi(l,l===me?r:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(r&3)===0||Lu(l,r)||(a=!0,Sh(l,r));l=l.next}while(a);nf=!1}}function xI(){dL()}function dL(){ai=Yf=!1;var e=0;dl!==0&&wI()&&(e=dl);for(var t=Mt(),a=null,l=ti;l!==null;){var n=l.next,r=pL(l,t);r===0?(l.next=null,a===null?ti=n:a.next=n,n===null&&(Dn=a)):(a=l,(e!==0||(r&3)!==0)&&(ai=!0)),l=n}Ge!==0&&Ge!==5||ku(e,!1),dl!==0&&(dl=0)}function pL(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,n=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var u=31-Et(r),o=1<<u,i=n[u];i===-1?((o&a)===0||(o&l)!==0)&&(n[u]=Vb(o,t)):i<=t&&(e.expiredLanes|=o),r&=~o}if(t=me,a=ae,a=fi(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(se===2||se===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Rs(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Lu(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Rs(l),sc(a)){case 2:case 8:a=eg;break;case 32:a=Fo;break;case 268435456:a=tg;break;default:a=Fo}return l=mL.bind(null,e),a=oc(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Rs(l),e.callbackPriority=2,e.callbackNode=null,2}function mL(e,t){if(Ge!==0&&Ge!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(vi()&&e.callbackNode!==a)return null;var l=ae;return l=fi(e,e===me?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:($x(e,l,t),pL(e,Mt()),e.callbackNode!=null&&e.callbackNode===a?mL.bind(null,e):null)}function Sh(e,t){if(vi())return null;$x(e,t,!0)}function LI(){TI(function(){(ue&6)!==0?oc($h,xI):dL()})}function Qc(){if(dl===0){var e=$n;e===0&&(e=ao,ao<<=1,(ao&261888)===0&&(ao=256)),dl=e}return dl}function bh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:So(""+e)}function Ih(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function yI(e,t,a,l,n){if(t==="submit"&&a&&a.stateNode===n){var r=bh((n[St]||null).action),u=l.submitter;u&&(t=(t=u[St]||null)?bh(t.formAction):u.getAttribute("formAction"),t!==null&&(r=t,u=null));var o=new ci("action","action",null,l,n);e.push({event:o,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(dl!==0){var i=u?Ih(n,u):new FormData(n);Ff(a,{pending:!0,data:i,method:n.method,action:r},null,i)}}else typeof r=="function"&&(o.preventDefault(),i=u?Ih(n,u):new FormData(n),Ff(a,{pending:!0,data:i,method:n.method,action:r},r,i))},currentTarget:n}]})}}for(ho=0;ho<wf.length;ho++)go=wf[ho],vh=go.toLowerCase(),kh=go[0].toUpperCase()+go.slice(1),na(vh,"on"+kh);var go,vh,kh,ho;na(wg,"onAnimationEnd");na(Ag,"onAnimationIteration");na(Tg,"onAnimationStart");na("dblclick","onDoubleClick");na("focusin","onFocus");na("focusout","onBlur");na(H0,"onTransitionRun");na(F0,"onTransitionStart");na(P0,"onTransitionCancel");na(Mg,"onTransitionEnd");Wn("onMouseEnter",["mouseout","mouseover"]);Wn("onMouseLeave",["mouseout","mouseover"]);Wn("onPointerEnter",["pointerout","pointerover"]);Wn("onPointerLeave",["pointerout","pointerover"]);en("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));en("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));en("onBeforeInput",["compositionend","keypress","textInput","paste"]);en("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));en("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));en("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var cu="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(" "),CI=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(cu));function hL(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],n=l.event;l=l.listeners;e:{var r=void 0;if(t)for(var u=l.length-1;0<=u;u--){var o=l[u],i=o.instance,s=o.currentTarget;if(o=o.listener,i!==r&&n.isPropagationStopped())break e;r=o,n.currentTarget=s;try{r(n)}catch(f){Uo(f)}n.currentTarget=null,r=i}else for(u=0;u<l.length;u++){if(o=l[u],i=o.instance,s=o.currentTarget,o=o.listener,i!==r&&n.isPropagationStopped())break e;r=o,n.currentTarget=s;try{r(n)}catch(f){Uo(f)}n.currentTarget=null,r=i}}}}function ee(e,t){var a=t[Lf];a===void 0&&(a=t[Lf]=new Set);var l=e+"__bubble";a.has(l)||(gL(t,e,2,!1),a.add(l))}function rf(e,t,a){var l=0;t&&(l|=4),gL(a,e,l,t)}var xo="_reactListening"+Math.random().toString(36).slice(2);function Yc(e){if(!e[xo]){e[xo]=!0,og.forEach(function(a){a!=="selectionchange"&&(CI.has(a)||rf(a,!1,e),rf(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xo]||(t[xo]=!0,rf("selectionchange",!1,t))}}function gL(e,t,a,l){switch(ML(t)){case 2:var n=YI;break;case 8:n=ZI;break;default:n=Jc}a=n.bind(null,t,a,e),n=void 0,!If||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),l?n!==void 0?e.addEventListener(t,a,{capture:!0,passive:n}):e.addEventListener(t,a,!0):n!==void 0?e.addEventListener(t,a,{passive:n}):e.addEventListener(t,a,!1)}function uf(e,t,a,l,n){var r=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var u=l.tag;if(u===3||u===4){var o=l.stateNode.containerInfo;if(o===n)break;if(u===4)for(u=l.return;u!==null;){var i=u.tag;if((i===3||i===4)&&u.stateNode.containerInfo===n)return;u=u.return}for(;o!==null;){if(u=Rn(o),u===null)return;if(i=u.tag,i===5||i===6||i===26||i===27){l=r=u;continue e}o=o.parentNode}}l=l.return}hg(function(){var s=r,f=dc(a),c=[];e:{var p=Dg.get(e);if(p!==void 0){var d=ci,g=e;switch(e){case"keypress":if(Io(a)===0)break e;case"keydown":case"keyup":d=h0;break;case"focusin":g="focus",d=Fs;break;case"focusout":g="blur",d=Fs;break;case"beforeblur":case"afterblur":d=Fs;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":d=Bm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=l0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=L0;break;case wg:case Ag:case Tg:d=u0;break;case Mg:d=C0;break;case"scroll":case"scrollend":d=t0;break;case"wheel":d=b0;break;case"copy":case"cut":case"paste":d=i0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=Om;break;case"toggle":case"beforetoggle":d=v0}var C=(t&4)!==0,v=!C&&(e==="scroll"||e==="scrollend"),m=C?p!==null?p+"Capture":null:p;C=[];for(var h=s,x;h!==null;){var b=h;if(x=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||x===null||m===null||(b=lu(h,m),b!=null&&C.push(du(h,b,x))),v)break;h=h.return}0<C.length&&(p=new d(p,g,null,a,f),c.push({event:p,listeners:C}))}}if((t&7)===0){e:{if(p=e==="mouseover"||e==="pointerover",d=e==="mouseout"||e==="pointerout",p&&a!==bf&&(g=a.relatedTarget||a.fromElement)&&(Rn(g)||g[or]))break e;if((d||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,d?(g=a.relatedTarget||a.toElement,d=s,g=g?Rn(g):null,g!==null&&(v=gu(g),C=g.tag,g!==v||C!==5&&C!==27&&C!==6)&&(g=null)):(d=null,g=s),d!==g)){if(C=Bm,b="onMouseLeave",m="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(C=Om,b="onPointerLeave",m="onPointerEnter",h="pointer"),v=d==null?p:Ur(d),x=g==null?p:Ur(g),p=new C(b,h+"leave",d,a,f),p.target=v,p.relatedTarget=x,b=null,Rn(f)===s&&(C=new C(m,h+"enter",g,a,f),C.target=x,C.relatedTarget=v,b=C),v=b,d&&g)t:{for(C=SI,m=d,h=g,x=0,b=m;b;b=C(b))x++;b=0;for(var w=h;w;w=C(w))b++;for(;0<x-b;)m=C(m),x--;for(;0<b-x;)h=C(h),b--;for(;x--;){if(m===h||h!==null&&m===h.alternate){C=m;break t}m=C(m),h=C(h)}C=null}else C=null;d!==null&&wh(c,p,d,C,!1),g!==null&&v!==null&&wh(c,v,g,C,!0)}}e:{if(p=s?Ur(s):window,d=p.nodeName&&p.nodeName.toLowerCase(),d==="select"||d==="input"&&p.type==="file")var I=Fm;else if(Hm(p))if(Sg)I=O0;else{I=B0;var A=E0}else d=p.nodeName,!d||d.toLowerCase()!=="input"||p.type!=="checkbox"&&p.type!=="radio"?s&&cc(s.elementType)&&(I=Fm):I=R0;if(I&&(I=I(e,s))){Cg(c,I,a,f);break e}A&&A(e,p,s),e==="focusout"&&s&&p.type==="number"&&s.memoizedProps.value!=null&&Sf(p,"number",p.value)}switch(A=s?Ur(s):window,e){case"focusin":(Hm(A)||A.contentEditable==="true")&&(qn=A,vf=s,Xr=null);break;case"focusout":Xr=vf=qn=null;break;case"mousedown":kf=!0;break;case"contextmenu":case"mouseup":case"dragend":kf=!1,_m(c,a,f);break;case"selectionchange":if(q0)break;case"keydown":case"keyup":_m(c,a,f)}var E;if(hc)e:{switch(e){case"compositionstart":var M="onCompositionStart";break e;case"compositionend":M="onCompositionEnd";break e;case"compositionupdate":M="onCompositionUpdate";break e}M=void 0}else zn?Lg(e,a)&&(M="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(M="onCompositionStart");M&&(xg&&a.locale!=="ko"&&(zn||M!=="onCompositionStart"?M==="onCompositionEnd"&&zn&&(E=gg()):(sl=f,pc="value"in sl?sl.value:sl.textContent,zn=!0)),A=li(s,M),0<A.length&&(M=new Rm(M,e,null,a,f),c.push({event:M,listeners:A}),E?M.data=E:(E=yg(a),E!==null&&(M.data=E)))),(E=w0?A0(e,a):T0(e,a))&&(M=li(s,"onBeforeInput"),0<M.length&&(A=new Rm("onBeforeInput","beforeinput",null,a,f),c.push({event:A,listeners:M}),A.data=E)),yI(c,e,s,a,f)}hL(c,t)})}function du(e,t,a){return{instance:e,listener:t,currentTarget:a}}function li(e,t){for(var a=t+"Capture",l=[];e!==null;){var n=e,r=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||r===null||(n=lu(e,a),n!=null&&l.unshift(du(e,n,r)),n=lu(e,t),n!=null&&l.push(du(e,n,r))),e.tag===3)return l;e=e.return}return[]}function SI(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function wh(e,t,a,l,n){for(var r=t._reactName,u=[];a!==null&&a!==l;){var o=a,i=o.alternate,s=o.stateNode;if(o=o.tag,i!==null&&i===l)break;o!==5&&o!==26&&o!==27||s===null||(i=s,n?(s=lu(a,r),s!=null&&u.unshift(du(a,s,i))):n||(s=lu(a,r),s!=null&&u.push(du(a,s,i)))),a=a.return}u.length!==0&&e.push({event:t,listeners:u})}var bI=/\r\n?/g,II=/\u0000|\uFFFD/g;function Ah(e){return(typeof e=="string"?e:""+e).replace(bI,`
|
|
9
|
+
`).replace(II,"")}function xL(e,t){return t=Ah(t),Ah(e)===t}function de(e,t,a,l,n,r){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Jn(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Jn(e,""+l);break;case"className":ro(e,"class",l);break;case"tabIndex":ro(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ro(e,a,l);break;case"style":mg(e,l,r);break;case"data":if(t!=="object"){ro(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=So(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(a==="formAction"?(t!=="input"&&de(e,t,"name",n.name,n,null),de(e,t,"formEncType",n.formEncType,n,null),de(e,t,"formMethod",n.formMethod,n,null),de(e,t,"formTarget",n.formTarget,n,null)):(de(e,t,"encType",n.encType,n,null),de(e,t,"method",n.method,n,null),de(e,t,"target",n.target,n,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=So(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=Ra);break;case"onScroll":l!=null&&ee("scroll",e);break;case"onScrollEnd":l!=null&&ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(T(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(T(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=So(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":ee("beforetoggle",e),ee("toggle",e),Co(e,"popover",l);break;case"xlinkActuate":ka(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":ka(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":ka(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":ka(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":ka(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":ka(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":ka(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":ka(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":ka(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Co(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=$b.get(a)||a,Co(e,a,l))}}function Zf(e,t,a,l,n,r){switch(a){case"style":mg(e,l,r);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(T(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(T(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Jn(e,l):(typeof l=="number"||typeof l=="bigint")&&Jn(e,""+l);break;case"onScroll":l!=null&&ee("scroll",e);break;case"onScrollEnd":l!=null&&ee("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Ra);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ig.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(n=a.endsWith("Capture"),t=a.slice(2,n?a.length-7:void 0),r=e[St]||null,r=r!=null?r[a]:null,typeof r=="function"&&e.removeEventListener(t,r,n),typeof l=="function")){typeof r!="function"&&r!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,n);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Co(e,a,l)}}}function at(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ee("error",e),ee("load",e);var l=!1,n=!1,r;for(r in a)if(a.hasOwnProperty(r)){var u=a[r];if(u!=null)switch(r){case"src":l=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(T(137,t));default:de(e,t,r,u,a,null)}}n&&de(e,t,"srcSet",a.srcSet,a,null),l&&de(e,t,"src",a.src,a,null);return;case"input":ee("invalid",e);var o=r=u=n=null,i=null,s=null;for(l in a)if(a.hasOwnProperty(l)){var f=a[l];if(f!=null)switch(l){case"name":n=f;break;case"type":u=f;break;case"checked":i=f;break;case"defaultChecked":s=f;break;case"value":r=f;break;case"defaultValue":o=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(T(137,t));break;default:de(e,t,l,f,a,null)}}cg(e,r,o,i,s,u,n,!1);return;case"select":ee("invalid",e),l=u=r=null;for(n in a)if(a.hasOwnProperty(n)&&(o=a[n],o!=null))switch(n){case"value":r=o;break;case"defaultValue":u=o;break;case"multiple":l=o;default:de(e,t,n,o,a,null)}t=r,a=u,e.multiple=!!l,t!=null?Vn(e,!!l,t,!1):a!=null&&Vn(e,!!l,a,!0);return;case"textarea":ee("invalid",e),r=n=l=null;for(u in a)if(a.hasOwnProperty(u)&&(o=a[u],o!=null))switch(u){case"value":l=o;break;case"defaultValue":n=o;break;case"children":r=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(T(91));break;default:de(e,t,u,o,a,null)}pg(e,l,n,r);return;case"option":for(i in a)a.hasOwnProperty(i)&&(l=a[i],l!=null)&&(i==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":de(e,t,i,l,a,null));return;case"dialog":ee("beforetoggle",e),ee("toggle",e),ee("cancel",e),ee("close",e);break;case"iframe":case"object":ee("load",e);break;case"video":case"audio":for(l=0;l<cu.length;l++)ee(cu[l],e);break;case"image":ee("error",e),ee("load",e);break;case"details":ee("toggle",e);break;case"embed":case"source":case"link":ee("error",e),ee("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(s in a)if(a.hasOwnProperty(s)&&(l=a[s],l!=null))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(T(137,t));default:de(e,t,s,l,a,null)}return;default:if(cc(t)){for(f in a)a.hasOwnProperty(f)&&(l=a[f],l!==void 0&&Zf(e,t,f,l,a,void 0));return}}for(o in a)a.hasOwnProperty(o)&&(l=a[o],l!=null&&de(e,t,o,l,a,null))}function vI(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,r=null,u=null,o=null,i=null,s=null,f=null;for(d in a){var c=a[d];if(a.hasOwnProperty(d)&&c!=null)switch(d){case"checked":break;case"value":break;case"defaultValue":i=c;default:l.hasOwnProperty(d)||de(e,t,d,null,l,c)}}for(var p in l){var d=l[p];if(c=a[p],l.hasOwnProperty(p)&&(d!=null||c!=null))switch(p){case"type":r=d;break;case"name":n=d;break;case"checked":s=d;break;case"defaultChecked":f=d;break;case"value":u=d;break;case"defaultValue":o=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(T(137,t));break;default:d!==c&&de(e,t,p,d,l,c)}}Cf(e,u,o,i,s,f,r,n);return;case"select":d=u=o=p=null;for(r in a)if(i=a[r],a.hasOwnProperty(r)&&i!=null)switch(r){case"value":break;case"multiple":d=i;default:l.hasOwnProperty(r)||de(e,t,r,null,l,i)}for(n in l)if(r=l[n],i=a[n],l.hasOwnProperty(n)&&(r!=null||i!=null))switch(n){case"value":p=r;break;case"defaultValue":o=r;break;case"multiple":u=r;default:r!==i&&de(e,t,n,r,l,i)}t=o,a=u,l=d,p!=null?Vn(e,!!a,p,!1):!!l!=!!a&&(t!=null?Vn(e,!!a,t,!0):Vn(e,!!a,a?[]:"",!1));return;case"textarea":d=p=null;for(o in a)if(n=a[o],a.hasOwnProperty(o)&&n!=null&&!l.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:de(e,t,o,null,l,n)}for(u in l)if(n=l[u],r=a[u],l.hasOwnProperty(u)&&(n!=null||r!=null))switch(u){case"value":p=n;break;case"defaultValue":d=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(T(91));break;default:n!==r&&de(e,t,u,n,l,r)}dg(e,p,d);return;case"option":for(var g in a)p=a[g],a.hasOwnProperty(g)&&p!=null&&!l.hasOwnProperty(g)&&(g==="selected"?e.selected=!1:de(e,t,g,null,l,p));for(i in l)p=l[i],d=a[i],l.hasOwnProperty(i)&&p!==d&&(p!=null||d!=null)&&(i==="selected"?e.selected=p&&typeof p!="function"&&typeof p!="symbol":de(e,t,i,p,l,d));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 C in a)p=a[C],a.hasOwnProperty(C)&&p!=null&&!l.hasOwnProperty(C)&&de(e,t,C,null,l,p);for(s in l)if(p=l[s],d=a[s],l.hasOwnProperty(s)&&p!==d&&(p!=null||d!=null))switch(s){case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(T(137,t));break;default:de(e,t,s,p,l,d)}return;default:if(cc(t)){for(var v in a)p=a[v],a.hasOwnProperty(v)&&p!==void 0&&!l.hasOwnProperty(v)&&Zf(e,t,v,void 0,l,p);for(f in l)p=l[f],d=a[f],!l.hasOwnProperty(f)||p===d||p===void 0&&d===void 0||Zf(e,t,f,p,l,d);return}}for(var m in a)p=a[m],a.hasOwnProperty(m)&&p!=null&&!l.hasOwnProperty(m)&&de(e,t,m,null,l,p);for(c in l)p=l[c],d=a[c],!l.hasOwnProperty(c)||p===d||p==null&&d==null||de(e,t,c,p,l,d)}function Th(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function kI(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var n=a[l],r=n.transferSize,u=n.initiatorType,o=n.duration;if(r&&o&&Th(u)){for(u=0,o=n.responseEnd,l+=1;l<a.length;l++){var i=a[l],s=i.startTime;if(s>o)break;var f=i.transferSize,c=i.initiatorType;f&&Th(c)&&(i=i.responseEnd,u+=f*(i<o?1:(o-s)/(i-s)))}if(--l,t+=8*(r+u)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Kf=null,Wf=null;function ni(e){return e.nodeType===9?e:e.ownerDocument}function Mh(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 LL(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Jf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var of=null;function wI(){var e=window.event;return e&&e.type==="popstate"?e===of?!1:(of=e,!0):(of=null,!1)}var yL=typeof setTimeout=="function"?setTimeout:void 0,AI=typeof clearTimeout=="function"?clearTimeout:void 0,Dh=typeof Promise=="function"?Promise:void 0,TI=typeof queueMicrotask=="function"?queueMicrotask:typeof Dh!="undefined"?function(e){return Dh.resolve(null).then(e).catch(MI)}:yL;function MI(e){setTimeout(function(){throw e})}function Al(e){return e==="head"}function Eh(e,t){var a=t,l=0;do{var n=a.nextSibling;if(e.removeChild(a),n&&n.nodeType===8)if(a=n.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(n),ur(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")tu(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,tu(a);for(var r=a.firstChild;r;){var u=r.nextSibling,o=r.nodeName;r[Cu]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&r.rel.toLowerCase()==="stylesheet"||a.removeChild(r),r=u}}else a==="body"&&tu(e.ownerDocument.body);a=n}while(a);ur(t)}function Bh(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function $f(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":$f(a),fc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function DI(e,t,a,l){for(;e.nodeType===1;){var n=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Cu])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=Qt(e.nextSibling),e===null)break}return null}function EI(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Qt(e.nextSibling),e===null))return null;return e}function CL(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Qt(e.nextSibling),e===null))return null;return e}function ec(e){return e.data==="$?"||e.data==="$~"}function tc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function BI(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Qt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var ac=null;function Rh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Qt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Oh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function SL(e,t,a){switch(t=ni(a),e){case"html":if(e=t.documentElement,!e)throw Error(T(452));return e;case"head":if(e=t.head,!e)throw Error(T(453));return e;case"body":if(e=t.body,!e)throw Error(T(454));return e;default:throw Error(T(451))}}function tu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);fc(e)}var Yt=new Map,zh=new Set;function ri(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ga=oe.d;oe.d={f:RI,r:OI,D:zI,C:qI,L:HI,m:FI,X:UI,S:PI,M:NI};function RI(){var e=Ga.f(),t=bi();return e||t}function OI(e){var t=ir(e);t!==null&&t.tag===5&&t.type==="form"?mx(t):Ga.r(e)}var dr=typeof document=="undefined"?null:document;function bL(e,t,a){var l=dr;if(l&&typeof t=="string"&&t){var n=Gt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a=="string"&&(n+='[crossorigin="'+a+'"]'),zh.has(n)||(zh.add(n),e={rel:e,crossOrigin:a,href:t},l.querySelector(n)===null&&(t=l.createElement("link"),at(t,"link",e),Ye(t),l.head.appendChild(t)))}}function zI(e){Ga.D(e),bL("dns-prefetch",e,null)}function qI(e,t){Ga.C(e,t),bL("preconnect",e,t)}function HI(e,t,a){Ga.L(e,t,a);var l=dr;if(l&&e&&t){var n='link[rel="preload"][as="'+Gt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(n+='[imagesrcset="'+Gt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(n+='[imagesizes="'+Gt(a.imageSizes)+'"]')):n+='[href="'+Gt(e)+'"]';var r=n;switch(t){case"style":r=rr(e);break;case"script":r=pr(e)}Yt.has(r)||(e=Ce({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Yt.set(r,e),l.querySelector(n)!==null||t==="style"&&l.querySelector(wu(r))||t==="script"&&l.querySelector(Au(r))||(t=l.createElement("link"),at(t,"link",e),Ye(t),l.head.appendChild(t)))}}function FI(e,t){Ga.m(e,t);var a=dr;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Gt(l)+'"][href="'+Gt(e)+'"]',r=n;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=pr(e)}if(!Yt.has(r)&&(e=Ce({rel:"modulepreload",href:e},t),Yt.set(r,e),a.querySelector(n)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Au(r)))return}l=a.createElement("link"),at(l,"link",e),Ye(l),a.head.appendChild(l)}}}function PI(e,t,a){Ga.S(e,t,a);var l=dr;if(l&&e){var n=Gn(l).hoistableStyles,r=rr(e);t=t||"default";var u=n.get(r);if(!u){var o={loading:0,preload:null};if(u=l.querySelector(wu(r)))o.loading=5;else{e=Ce({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Yt.get(r))&&Zc(e,a);var i=u=l.createElement("link");Ye(i),at(i,"link",e),i._p=new Promise(function(s,f){i.onload=s,i.onerror=f}),i.addEventListener("load",function(){o.loading|=1}),i.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Eo(u,t,l)}u={type:"stylesheet",instance:u,count:1,state:o},n.set(r,u)}}}function UI(e,t){Ga.X(e,t);var a=dr;if(a&&e){var l=Gn(a).hoistableScripts,n=pr(e),r=l.get(n);r||(r=a.querySelector(Au(n)),r||(e=Ce({src:e,async:!0},t),(t=Yt.get(n))&&Kc(e,t),r=a.createElement("script"),Ye(r),at(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(n,r))}}function NI(e,t){Ga.M(e,t);var a=dr;if(a&&e){var l=Gn(a).hoistableScripts,n=pr(e),r=l.get(n);r||(r=a.querySelector(Au(n)),r||(e=Ce({src:e,async:!0,type:"module"},t),(t=Yt.get(n))&&Kc(e,t),r=a.createElement("script"),Ye(r),at(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(n,r))}}function qh(e,t,a,l){var n=(n=pl.current)?ri(n):null;if(!n)throw Error(T(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=rr(a.href),a=Gn(n).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=rr(a.href);var r=Gn(n).hoistableStyles,u=r.get(e);if(u||(n=n.ownerDocument||n,u={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,u),(r=n.querySelector(wu(e)))&&!r._p&&(u.instance=r,u.state.loading=5),Yt.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},Yt.set(e,a),r||_I(n,e,a,u.state))),t&&l===null)throw Error(T(528,""));return u}if(t&&l!==null)throw Error(T(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=pr(a),a=Gn(n).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(T(444,e))}}function rr(e){return'href="'+Gt(e)+'"'}function wu(e){return'link[rel="stylesheet"]['+e+"]"}function IL(e){return Ce({},e,{"data-precedence":e.precedence,precedence:null})}function _I(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),at(t,"link",a),Ye(t),e.head.appendChild(t))}function pr(e){return'[src="'+Gt(e)+'"]'}function Au(e){return"script[async]"+e}function Hh(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Gt(a.href)+'"]');if(l)return t.instance=l,Ye(l),l;var n=Ce({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Ye(l),at(l,"style",n),Eo(l,a.precedence,e),t.instance=l;case"stylesheet":n=rr(a.href);var r=e.querySelector(wu(n));if(r)return t.state.loading|=4,t.instance=r,Ye(r),r;l=IL(a),(n=Yt.get(n))&&Zc(l,n),r=(e.ownerDocument||e).createElement("link"),Ye(r);var u=r;return u._p=new Promise(function(o,i){u.onload=o,u.onerror=i}),at(r,"link",l),t.state.loading|=4,Eo(r,a.precedence,e),t.instance=r;case"script":return r=pr(a.src),(n=e.querySelector(Au(r)))?(t.instance=n,Ye(n),n):(l=a,(n=Yt.get(r))&&(l=Ce({},a),Kc(l,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ye(n),at(n,"link",l),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(T(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Eo(l,a.precedence,e));return t.instance}function Eo(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=l.length?l[l.length-1]:null,r=n,u=0;u<l.length;u++){var o=l[u];if(o.dataset.precedence===t)r=o;else if(r!==n)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Zc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Kc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Bo=null;function Fh(e,t,a){if(Bo===null){var l=new Map,n=Bo=new Map;n.set(a,l)}else n=Bo,l=n.get(a),l||(l=new Map,n.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),n=0;n<a.length;n++){var r=a[n];if(!(r[Cu]||r[$e]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var u=r.getAttribute(t)||"";u=e+u;var o=l.get(u);o?o.push(r):l.set(u,[r])}}return l}function Ph(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function GI(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function vL(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function VI(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var n=rr(l.href),r=t.querySelector(wu(n));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ui.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=r,Ye(r);return}r=t.ownerDocument||t,l=IL(l),(n=Yt.get(n))&&Zc(l,n),r=r.createElement("link"),Ye(r);var u=r;u._p=new Promise(function(o,i){u.onload=o,u.onerror=i}),at(r,"link",l),a.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=ui.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var sf=0;function XI(e,t){return e.stylesheets&&e.count===0&&Ro(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&Ro(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&sf===0&&(sf=62500*kI());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ro(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>sf?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(n)}}:null}function ui(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ro(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var oi=null;function Ro(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,oi=new Map,t.forEach(jI,e),oi=null,ui.call(e))}function jI(e,t){if(!(t.state.loading&4)){var a=oi.get(e);if(a)var l=a.get(null);else{a=new Map,oi.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<n.length;r++){var u=n[r];(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")&&(a.set(u.dataset.precedence,u),l=u)}l&&a.set(null,l)}n=t.instance,u=n.getAttribute("data-precedence"),r=a.get(u)||l,r===l&&a.set(null,n),a.set(u,n),this.count++,l=ui.bind(this),n.addEventListener("load",l),n.addEventListener("error",l),r?r.parentNode.insertBefore(n,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var pu={$$typeof:Ba,Provider:null,Consumer:null,_currentValue:Vl,_currentValue2:Vl,_threadCount:0};function QI(e,t,a,l,n,r,u,o,i){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=Os(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Os(0),this.hiddenUpdates=Os(null),this.identifierPrefix=l,this.onUncaughtError=n,this.onCaughtError=r,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=i,this.incompleteTransitions=new Map}function kL(e,t,a,l,n,r,u,o,i,s,f,c){return e=new QI(e,t,a,u,i,s,f,c,o),t=1,r===!0&&(t|=24),r=At(3,null,null,t),e.current=r,r.stateNode=e,t=bc(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:l,isDehydrated:a,cache:t},kc(r),e}function wL(e){return e?(e=Pn,e):Pn}function AL(e,t,a,l,n,r){n=wL(n),l.context===null?l.context=n:l.pendingContext=n,l=hl(t),l.payload={element:a},r=r===void 0?null:r,r!==null&&(l.callback=r),a=gl(e,l,t),a!==null&&(Ct(a,e,t),Qr(a,e,t))}function Uh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Wc(e,t){Uh(e,t),(e=e.alternate)&&Uh(e,t)}function TL(e){if(e.tag===13||e.tag===31){var t=ln(e,67108864);t!==null&&Ct(t,e,67108864),Wc(e,67108864)}}function Nh(e){if(e.tag===13||e.tag===31){var t=Bt();t=ic(t);var a=ln(e,t);a!==null&&Ct(a,e,t),Wc(e,t)}}var ii=!0;function YI(e,t,a,l){var n=_.T;_.T=null;var r=oe.p;try{oe.p=2,Jc(e,t,a,l)}finally{oe.p=r,_.T=n}}function ZI(e,t,a,l){var n=_.T;_.T=null;var r=oe.p;try{oe.p=8,Jc(e,t,a,l)}finally{oe.p=r,_.T=n}}function Jc(e,t,a,l){if(ii){var n=lc(l);if(n===null)uf(e,t,l,si,a),_h(e,l);else if(WI(n,e,t,a,l))l.stopPropagation();else if(_h(e,l),t&4&&-1<KI.indexOf(e)){for(;n!==null;){var r=ir(n);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var u=Nl(r.pendingLanes);if(u!==0){var o=r;for(o.pendingLanes|=2,o.entangledLanes|=2;u;){var i=1<<31-Et(u);o.entanglements[1]|=i,u&=~i}ma(r),(ue&6)===0&&(Jo=Mt()+500,ku(0,!1))}}break;case 31:case 13:o=ln(r,2),o!==null&&Ct(o,r,2),bi(),Wc(r,2)}if(r=lc(l),r===null&&uf(e,t,l,si,a),r===n)break;n=r}n!==null&&l.stopPropagation()}else uf(e,t,l,null,a)}}function lc(e){return e=dc(e),$c(e)}var si=null;function $c(e){if(si=null,e=Rn(e),e!==null){var t=gu(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=Yh(t),e!==null)return e;e=null}else if(a===31){if(e=Zh(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return si=e,null}function ML(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(Hb()){case $h:return 2;case eg:return 8;case Fo:case Fb:return 32;case tg:return 268435456;default:return 32}default:return 32}}var nc=!1,yl=null,Cl=null,Sl=null,mu=new Map,hu=new Map,ol=[],KI="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 _h(e,t){switch(e){case"focusin":case"focusout":yl=null;break;case"dragenter":case"dragleave":Cl=null;break;case"mouseover":case"mouseout":Sl=null;break;case"pointerover":case"pointerout":mu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":hu.delete(t.pointerId)}}function qr(e,t,a,l,n,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:r,targetContainers:[n]},t!==null&&(t=ir(t),t!==null&&TL(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function WI(e,t,a,l,n){switch(t){case"focusin":return yl=qr(yl,e,t,a,l,n),!0;case"dragenter":return Cl=qr(Cl,e,t,a,l,n),!0;case"mouseover":return Sl=qr(Sl,e,t,a,l,n),!0;case"pointerover":var r=n.pointerId;return mu.set(r,qr(mu.get(r)||null,e,t,a,l,n)),!0;case"gotpointercapture":return r=n.pointerId,hu.set(r,qr(hu.get(r)||null,e,t,a,l,n)),!0}return!1}function DL(e){var t=Rn(e.target);if(t!==null){var a=gu(t);if(a!==null){if(t=a.tag,t===13){if(t=Yh(a),t!==null){e.blockedOn=t,km(e.priority,function(){Nh(a)});return}}else if(t===31){if(t=Zh(a),t!==null){e.blockedOn=t,km(e.priority,function(){Nh(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Oo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=lc(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);bf=l,a.target.dispatchEvent(l),bf=null}else return t=ir(a),t!==null&&TL(t),e.blockedOn=a,!1;t.shift()}return!0}function Gh(e,t,a){Oo(e)&&a.delete(t)}function JI(){nc=!1,yl!==null&&Oo(yl)&&(yl=null),Cl!==null&&Oo(Cl)&&(Cl=null),Sl!==null&&Oo(Sl)&&(Sl=null),mu.forEach(Gh),hu.forEach(Gh)}function Lo(e,t){e.blockedOn===t&&(e.blockedOn=null,nc||(nc=!0,Ve.unstable_scheduleCallback(Ve.unstable_NormalPriority,JI)))}var yo=null;function Vh(e){yo!==e&&(yo=e,Ve.unstable_scheduleCallback(Ve.unstable_NormalPriority,function(){yo===e&&(yo=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],n=e[t+2];if(typeof l!="function"){if($c(l||a)===null)continue;break}var r=ir(a);r!==null&&(e.splice(t,3),t-=3,Ff(r,{pending:!0,data:n,method:a.method,action:l},l,n))}}))}function ur(e){function t(i){return Lo(i,e)}yl!==null&&Lo(yl,e),Cl!==null&&Lo(Cl,e),Sl!==null&&Lo(Sl,e),mu.forEach(t),hu.forEach(t);for(var a=0;a<ol.length;a++){var l=ol[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ol.length&&(a=ol[0],a.blockedOn===null);)DL(a),a.blockedOn===null&&ol.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var n=a[l],r=a[l+1],u=n[St]||null;if(typeof r=="function")u||Vh(a);else if(u){var o=null;if(r&&r.hasAttribute("formAction")){if(n=r,u=r[St]||null)o=u.formAction;else if($c(n)!==null)continue}else o=u.action;typeof o=="function"?a[l+1]=o:(a.splice(l,3),l-=3),Vh(a)}}}function EL(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(u){return n=u})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function ed(e){this._internalRoot=e}ki.prototype.render=ed.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(T(409));var a=t.current,l=Bt();AL(a,l,e,t,null,null)};ki.prototype.unmount=ed.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;AL(e.current,2,null,e,null,null),bi(),t[or]=null}};function ki(e){this._internalRoot=e}ki.prototype.unstable_scheduleHydration=function(e){if(e){var t=ug();e={blockedOn:null,target:e,priority:t};for(var a=0;a<ol.length&&t!==0&&t<ol[a].priority;a++);ol.splice(a,0,e),a===0&&DL(e)}};var Xh=jh.version;if(Xh!=="19.2.4")throw Error(T(527,Xh,"19.2.4"));oe.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(T(188)):(e=Object.keys(e).join(","),Error(T(268,e)));return e=Db(t),e=e!==null?Kh(e):null,e=e===null?null:e.stateNode,e};var $I={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&(Hr=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Hr.isDisabled&&Hr.supportsFiber))try{xu=Hr.inject($I),Dt=Hr}catch(e){}var Hr;wi.createRoot=function(e,t){if(!Qh(e))throw Error(T(299));var a=!1,l="",n=bx,r=Ix,u=vx;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(u=t.onRecoverableError)),t=kL(e,1,!1,null,null,a,l,null,n,r,u,EL),e[or]=t.current,Yc(e),new ed(t)};wi.hydrateRoot=function(e,t,a){if(!Qh(e))throw Error(T(299));var l=!1,n="",r=bx,u=Ix,o=vx,i=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(u=a.onCaughtError),a.onRecoverableError!==void 0&&(o=a.onRecoverableError),a.formState!==void 0&&(i=a.formState)),t=kL(e,1,!0,t,a!=null?a:null,l,n,i,r,u,o,EL),t.context=wL(null),a=t.current,l=Bt(),l=ic(l),n=hl(l),n.callback=null,gl(a,n,l),a=l,t.current.lanes=a,yu(t,a),ma(t),e[or]=t.current,Yc(e),new ki(t)};wi.version="19.2.4"});var zL=ft((E2,OL)=>{"use strict";function RL(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(RL)}catch(e){console.error(e)}}RL(),OL.exports=BL()});var VL=ft(Di=>{"use strict";var t1=Symbol.for("react.transitional.element"),a1=Symbol.for("react.fragment");function GL(e,t,a){var l=null;if(a!==void 0&&(l=""+a),t.key!==void 0&&(l=""+t.key),"key"in t){a={};for(var n in t)n!=="key"&&(a[n]=t[n])}else a=t;return t=a.ref,{$$typeof:t1,type:e,key:l,ref:t!==void 0?t:null,props:a}}Di.Fragment=a1;Di.jsx=GL;Di.jsxs=GL});var De=ft((tT,XL)=>{"use strict";XL.exports=VL()});var uy=ft((sM,ry)=>{"use strict";var ty=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,L1=/\n/g,y1=/^\s*/,C1=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,S1=/^:\s*/,b1=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,I1=/^[;\s]*/,v1=/^\s+|\s+$/g,k1=`
|
|
10
|
+
`,ay="/",ly="*",on="",w1="comment",A1="declaration";function T1(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var a=1,l=1;function n(g){var C=g.match(L1);C&&(a+=C.length);var v=g.lastIndexOf(k1);l=~v?g.length-v:l+g.length}function r(){var g={line:a,column:l};return function(C){return C.position=new u(g),s(),C}}function u(g){this.start=g,this.end={line:a,column:l},this.source=t.source}u.prototype.content=e;function o(g){var C=new Error(t.source+":"+a+":"+l+": "+g);if(C.reason=g,C.filename=t.source,C.line=a,C.column=l,C.source=e,!t.silent)throw C}function i(g){var C=g.exec(e);if(C){var v=C[0];return n(v),e=e.slice(v.length),C}}function s(){i(y1)}function f(g){var C;for(g=g||[];C=c();)C!==!1&&g.push(C);return g}function c(){var g=r();if(!(ay!=e.charAt(0)||ly!=e.charAt(1))){for(var C=2;on!=e.charAt(C)&&(ly!=e.charAt(C)||ay!=e.charAt(C+1));)++C;if(C+=2,on===e.charAt(C-1))return o("End of comment missing");var v=e.slice(2,C-2);return l+=2,n(v),e=e.slice(C),l+=2,g({type:w1,comment:v})}}function p(){var g=r(),C=i(C1);if(C){if(c(),!i(S1))return o("property missing ':'");var v=i(b1),m=g({type:A1,property:ny(C[0].replace(ty,on)),value:v?ny(v[0].replace(ty,on)):on});return i(I1),m}}function d(){var g=[];f(g);for(var C;C=p();)C!==!1&&(g.push(C),f(g));return g}return s(),d()}function ny(e){return e?e.replace(v1,on):on}ry.exports=T1});var oy=ft(Bu=>{"use strict";var M1=Bu&&Bu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Bu,"__esModule",{value:!0});Bu.default=E1;var D1=M1(uy());function E1(e,t){let a=null;if(!e||typeof e!="string")return a;let l=(0,D1.default)(e),n=typeof t=="function";return l.forEach(r=>{if(r.type!=="declaration")return;let{property:u,value:o}=r;n?t(u,o,r):o&&(a=a||{},a[u]=o)}),a}});var sy=ft(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.camelCase=void 0;var B1=/^--[a-zA-Z0-9_-]+$/,R1=/-([a-z])/g,O1=/^[^-]+$/,z1=/^-(webkit|moz|ms|o|khtml)-/,q1=/^-(ms)-/,H1=function(e){return!e||O1.test(e)||B1.test(e)},F1=function(e,t){return t.toUpperCase()},iy=function(e,t){return"".concat(t,"-")},P1=function(e,t){return t===void 0&&(t={}),H1(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(q1,iy):e=e.replace(z1,iy),e.replace(R1,F1))};qi.camelCase=P1});var cy=ft((dd,fy)=>{"use strict";var U1=dd&&dd.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},N1=U1(oy()),_1=sy();function cd(e,t){var a={};return!e||typeof e!="string"||(0,N1.default)(e,function(l,n){l&&n&&(a[(0,_1.camelCase)(l,t)]=n)}),a}cd.default=cd;fy.exports=cd});var zC=ft((PO,OC)=>{"use strict";var us=Object.prototype.hasOwnProperty,RC=Object.prototype.toString,AC=Object.defineProperty,TC=Object.getOwnPropertyDescriptor,MC=function(t){return typeof Array.isArray=="function"?Array.isArray(t):RC.call(t)==="[object Array]"},DC=function(t){if(!t||RC.call(t)!=="[object Object]")return!1;var a=us.call(t,"constructor"),l=t.constructor&&t.constructor.prototype&&us.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!a&&!l)return!1;var n;for(n in t);return typeof n=="undefined"||us.call(t,n)},EC=function(t,a){AC&&a.name==="__proto__"?AC(t,a.name,{enumerable:!0,configurable:!0,value:a.newValue,writable:!0}):t[a.name]=a.newValue},BC=function(t,a){if(a==="__proto__")if(us.call(t,a)){if(TC)return TC(t,a).value}else return;return t[a]};OC.exports=function e(){var t,a,l,n,r,u,o=arguments[0],i=1,s=arguments.length,f=!1;for(typeof o=="boolean"&&(f=o,o=arguments[1]||{},i=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});i<s;++i)if(t=arguments[i],t!=null)for(a in t)l=BC(o,a),n=BC(t,a),o!==n&&(f&&n&&(DC(n)||(r=MC(n)))?(r?(r=!1,u=l&&MC(l)?l:[]):u=l&&DC(l)?l:{},EC(o,{name:a,newValue:e(f,u,n)})):typeof n!="undefined"&&EC(o,{name:a,newValue:n}));return o}});var b2={};var WS=J(zL(),1),Gp=J(We(),1);var La=J(We(),1);var $t=J(We(),1);var Ai=J(We(),1);function qL(){let[e,t]=(0,Ai.useState)("dark");return(0,Ai.useEffect)(()=>{if(typeof window=="undefined"||!window.matchMedia){t("dark");return}let a=window.matchMedia("(prefers-color-scheme: dark)"),l=()=>t(a.matches?"dark":"light");return l(),a.addEventListener("change",l),()=>a.removeEventListener("change",l)},[]),e}var Qu=J(We(),1);function H(...e){return e.filter(Boolean).join(" ")}var mr=J(We(),1);var Mi=J(We());var Ti=(...e)=>e.filter((t,a,l)=>!!t&&t.trim()!==""&&l.indexOf(t)===a).join(" ").trim();var HL=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var FL=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,l)=>l?l.toUpperCase():a.toLowerCase());var td=e=>{let t=FL(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Tu=J(We());var PL={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"};var UL=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var NL=(0,Tu.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:n="",children:r,iconNode:u,...o},i)=>(0,Tu.createElement)("svg",{ref:i,...PL,width:t,height:t,stroke:e,strokeWidth:l?Number(a)*24/Number(t):a,className:Ti("lucide",n),...!r&&!UL(o)&&{"aria-hidden":"true"},...o},[...u.map(([s,f])=>(0,Tu.createElement)(s,f)),...Array.isArray(r)?r:[r]]));var _L=(e,t)=>{let a=(0,Mi.forwardRef)(({className:l,...n},r)=>(0,Mi.createElement)(NL,{ref:r,iconNode:t,className:Ti(`lucide-${HL(td(e))}`,`lucide-${e}`,l),...n}));return a.displayName=td(e),a};var e1=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Mu=_L("bot",e1);var K=J(De(),1),l1=()=>(0,K.jsx)("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,K.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"})}),n1=()=>(0,K.jsx)("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,K.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h16"})}),r1=()=>(0,K.jsx)("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,K.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})}),u1=()=>(0,K.jsx)("svg",{className:"w-4 h-4 flex-shrink-0 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:(0,K.jsx)("path",{d:"M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"})}),o1=()=>(0,K.jsx)("svg",{className:"w-4 h-4 flex-shrink-0 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:(0,K.jsx)("path",{d:"M18 6L10 14M6 18L14 10"})}),i1=({dark:e=!0,blinking:t=!0})=>(0,K.jsx)("span",{className:H("absolute bottom-0 right-0 h-2 w-2 rounded-full ring-1 bg-emerald-500",t&&"animate-pulse",e?"ring-gray-900":"ring-white"),"aria-hidden":!0});function jL({dark:e=!0,onBack:t,showBackButton:a=!1,showAvatar:l=!0,avatar:n,title:r,subtitle:u,statusIndicator:o="none",liveIndicatorStyle:i="label",statusDotStyle:s="blinking",onMenu:f,showMenuExpand:c=!1,onMenuExpand:p,expandLabel:d="Expand chat",isExpanded:g=!1,menuQuickLinks:C,onClose:v,backLabel:m="Back",closeLabel:h="Close",menuLabel:x="Menu",liveLabel:b="Live",activeLabel:w="Active",className:I}){let A=o==="live"||o==="active",E=l&&A&&i==="dot-only",M=A&&i==="label",S=o==="active"?w:b,V=s!=="static",N=c||C&&C.length>0,q=N||f,[B,O]=(0,mr.useState)(!1),X=(0,mr.useRef)(null);(0,mr.useEffect)(()=>{if(!B)return;let ie=L=>{X.current&&!X.current.contains(L.target)&&O(!1)};return document.addEventListener("mousedown",ie),()=>document.removeEventListener("mousedown",ie)},[B]);let W=()=>{N?O(ie=>!ie):f==null||f()},ne=C!=null?C:[];return(0,K.jsxs)("header",{className:H("flex-shrink-0 flex items-center gap-3 border-b px-4 py-3",e?"border-gray-700 bg-gray-900/50":"border-gray-200 bg-gray-50",I),"aria-label":"Chat header",children:[a&&t?(0,K.jsx)("button",{type:"button",onClick:t,className:H("flex-shrink-0 rounded-lg p-2 transition-colors",e?"text-gray-400 hover:bg-gray-800 hover:text-gray-200":"text-gray-500 hover:bg-gray-200 hover:text-gray-800"),"aria-label":m,children:(0,K.jsx)(l1,{})}):null,l?(0,K.jsxs)("div",{className:"flex-shrink-0 relative w-10 h-10",...E&&{role:"status","aria-label":S},children:[(0,K.jsx)("div",{className:H("w-10 h-10 rounded-full overflow-hidden flex items-center justify-center text-lg border-[1px]",e?"bg-gray-700/80 border-gray-600/80":"bg-gray-100 border-gray-200"),children:n!=null?typeof n=="string"&&(n.startsWith("http")||n.startsWith("/"))?(0,K.jsx)("img",{src:n,alt:"",className:"w-full h-full object-cover"}):n:(0,K.jsx)(Mu,{className:H("w-6 h-6 flex-shrink-0",e?"text-gray-400":"text-gray-500"),"aria-hidden":!0})}),E?(0,K.jsx)(i1,{dark:e,blinking:V}):null]}):null,(0,K.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,K.jsxs)("div",{className:"flex items-center gap-2",children:[r?(0,K.jsx)("h2",{className:H("text-sm font-semibold truncate",e?"text-gray-100":"text-gray-900"),children:r}):null,M?(0,K.jsxs)("span",{className:"flex items-center gap-1.5 flex-shrink-0",role:"status","aria-label":S,children:[(0,K.jsx)("span",{className:H("h-2 w-2 rounded-full ring-1 flex-shrink-0 bg-emerald-500",V&&"animate-pulse",e?"ring-gray-900":"ring-white")}),(0,K.jsx)("span",{className:H("text-xs font-medium",e?"text-emerald-400":"text-emerald-600"),children:S})]}):null]}),u?(0,K.jsx)("p",{className:H("text-xs truncate mt-0.5",e?"text-gray-400":"text-gray-500"),children:u}):null]}),q?(0,K.jsxs)("div",{className:"flex-shrink-0 relative",ref:X,children:[(0,K.jsx)("button",{type:"button",onClick:W,className:H("rounded-lg p-2 transition-colors",e?"text-gray-400 hover:bg-gray-800 hover:text-gray-200":"text-gray-500 hover:bg-gray-200 hover:text-gray-800"),"aria-label":x,"aria-expanded":B,"aria-haspopup":"true",children:(0,K.jsx)(n1,{})}),N&&B?(0,K.jsxs)("div",{className:H("absolute right-0 top-full mt-1 min-w-[160px] max-w-[220px] rounded-lg border py-1 shadow-xl z-50",e?"border-gray-600 bg-gray-800":"border-gray-200 bg-white"),role:"menu",children:[c&&p?(0,K.jsxs)("button",{type:"button",role:"menuitem",onClick:()=>{p(),O(!1)},className:H("flex w-full items-center gap-2 px-4 py-2 text-left text-sm min-w-0",e?"text-gray-200 hover:bg-gray-700":"text-gray-800 hover:bg-gray-100"),children:[g?(0,K.jsx)(o1,{}):(0,K.jsx)(u1,{}),(0,K.jsx)("span",{className:"truncate",children:d})]}):null,ne.map((ie,L)=>(0,K.jsx)("a",{href:ie.route,role:"menuitem",className:H("flex w-full items-center gap-2 px-4 py-2 text-left text-sm min-w-0",e?"text-gray-200 hover:bg-gray-700":"text-gray-800 hover:bg-gray-100"),onClick:()=>O(!1),children:(0,K.jsx)("span",{className:"truncate min-w-0",children:ie.text})},L))]}):null]}):null,v?(0,K.jsx)("button",{type:"button",onClick:v,className:H("flex-shrink-0 rounded-lg p-2 transition-colors",e?"text-gray-400 hover:bg-gray-800 hover:text-gray-200":"text-gray-500 hover:bg-gray-200 hover:text-gray-800"),"aria-label":h,children:(0,K.jsx)(r1,{})}):null]})}var Wt=J(We(),1);var ms=J(We(),1);function QL(e,t){let a=t||{};return(e[e.length-1]===""?[...e,""]:e).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}var s1=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,f1=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,c1={};function Ei(e,t){return((t||c1).jsx?f1:s1).test(e)}var d1=/[ \t\n\f\r]/g;function ad(e){return typeof e=="object"?e.type==="text"?YL(e.value):!1:YL(e)}function YL(e){return e.replace(d1,"")===""}var Va=class{constructor(t,a,l){this.normal=a,this.property=t,l&&(this.space=l)}};Va.prototype.normal={};Va.prototype.property={};Va.prototype.space=void 0;function ld(e,t){let a={},l={};for(let n of e)Object.assign(a,n.property),Object.assign(l,n.normal);return new Va(a,l,t)}function Du(e){return e.toLowerCase()}var Ke=class{constructor(t,a){this.attribute=a,this.property=t}};Ke.prototype.attribute="";Ke.prototype.booleanish=!1;Ke.prototype.boolean=!1;Ke.prototype.commaOrSpaceSeparated=!1;Ke.prototype.commaSeparated=!1;Ke.prototype.defined=!1;Ke.prototype.mustUseProperty=!1;Ke.prototype.number=!1;Ke.prototype.overloadedBoolean=!1;Ke.prototype.property="";Ke.prototype.spaceSeparated=!1;Ke.prototype.space=void 0;var Eu={};Vp(Eu,{boolean:()=>Q,booleanish:()=>Ee,commaOrSpaceSeparated:()=>It,commaSeparated:()=>Tl,number:()=>D,overloadedBoolean:()=>Bi,spaceSeparated:()=>ce});var p1=0,Q=rn(),Ee=rn(),Bi=rn(),D=rn(),ce=rn(),Tl=rn(),It=rn();function rn(){return 2**++p1}var nd=Object.keys(Eu),un=class extends Ke{constructor(t,a,l,n){let r=-1;if(super(t,a),ZL(this,"space",n),typeof l=="number")for(;++r<nd.length;){let u=nd[r];ZL(this,nd[r],(l&Eu[u])===Eu[u])}}};un.prototype.defined=!0;function ZL(e,t,a){a&&(e[t]=a)}function Zt(e){let t={},a={};for(let[l,n]of Object.entries(e.properties)){let r=new un(l,e.transform(e.attributes||{},l),n,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(r.mustUseProperty=!0),t[l]=r,a[Du(l)]=l,a[Du(r.attribute)]=l}return new Va(t,a,e.space)}var rd=Zt({properties:{ariaActiveDescendant:null,ariaAtomic:Ee,ariaAutoComplete:null,ariaBusy:Ee,ariaChecked:Ee,ariaColCount:D,ariaColIndex:D,ariaColSpan:D,ariaControls:ce,ariaCurrent:null,ariaDescribedBy:ce,ariaDetails:null,ariaDisabled:Ee,ariaDropEffect:ce,ariaErrorMessage:null,ariaExpanded:Ee,ariaFlowTo:ce,ariaGrabbed:Ee,ariaHasPopup:null,ariaHidden:Ee,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ce,ariaLevel:D,ariaLive:null,ariaModal:Ee,ariaMultiLine:Ee,ariaMultiSelectable:Ee,ariaOrientation:null,ariaOwns:ce,ariaPlaceholder:null,ariaPosInSet:D,ariaPressed:Ee,ariaReadOnly:Ee,ariaRelevant:null,ariaRequired:Ee,ariaRoleDescription:ce,ariaRowCount:D,ariaRowIndex:D,ariaRowSpan:D,ariaSelected:Ee,ariaSetSize:D,ariaSort:null,ariaValueMax:D,ariaValueMin:D,ariaValueNow:D,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Ri(e,t){return t in e?e[t]:t}function Oi(e,t){return Ri(e,t.toLowerCase())}var KL=Zt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Tl,acceptCharset:ce,accessKey:ce,action:null,allow:null,allowFullScreen:Q,allowPaymentRequest:Q,allowUserMedia:Q,alt:null,as:null,async:Q,autoCapitalize:null,autoComplete:ce,autoFocus:Q,autoPlay:Q,blocking:ce,capture:null,charSet:null,checked:Q,cite:null,className:ce,cols:D,colSpan:null,content:null,contentEditable:Ee,controls:Q,controlsList:ce,coords:D|Tl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Q,defer:Q,dir:null,dirName:null,disabled:Q,download:Bi,draggable:Ee,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Q,formTarget:null,headers:ce,height:D,hidden:Bi,high:D,href:null,hrefLang:null,htmlFor:ce,httpEquiv:ce,id:null,imageSizes:null,imageSrcSet:null,inert:Q,inputMode:null,integrity:null,is:null,isMap:Q,itemId:null,itemProp:ce,itemRef:ce,itemScope:Q,itemType:ce,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Q,low:D,manifest:null,max:null,maxLength:D,media:null,method:null,min:null,minLength:D,multiple:Q,muted:Q,name:null,nonce:null,noModule:Q,noValidate:Q,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:Q,optimum:D,pattern:null,ping:ce,placeholder:null,playsInline:Q,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Q,referrerPolicy:null,rel:ce,required:Q,reversed:Q,rows:D,rowSpan:D,sandbox:ce,scope:null,scoped:Q,seamless:Q,selected:Q,shadowRootClonable:Q,shadowRootDelegatesFocus:Q,shadowRootMode:null,shape:null,size:D,sizes:null,slot:null,span:D,spellCheck:Ee,src:null,srcDoc:null,srcLang:null,srcSet:null,start:D,step:null,style:null,tabIndex:D,target:null,title:null,translate:null,type:null,typeMustMatch:Q,useMap:null,value:Ee,width:D,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ce,axis:null,background:null,bgColor:null,border:D,borderColor:null,bottomMargin:D,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Q,declare:Q,event:null,face:null,frame:null,frameBorder:null,hSpace:D,leftMargin:D,link:null,longDesc:null,lowSrc:null,marginHeight:D,marginWidth:D,noResize:Q,noHref:Q,noShade:Q,noWrap:Q,object:null,profile:null,prompt:null,rev:null,rightMargin:D,rules:null,scheme:null,scrolling:Ee,standby:null,summary:null,text:null,topMargin:D,valueType:null,version:null,vAlign:null,vLink:null,vSpace:D,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Q,disableRemotePlayback:Q,prefix:null,property:null,results:D,security:null,unselectable:null},space:"html",transform:Oi});var WL=Zt({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:It,accentHeight:D,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:D,amplitude:D,arabicForm:null,ascent:D,attributeName:null,attributeType:null,azimuth:D,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:D,by:null,calcMode:null,capHeight:D,className:ce,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:D,diffuseConstant:D,direction:null,display:null,dur:null,divisor:D,dominantBaseline:null,download:Q,dx:null,dy:null,edgeMode:null,editable:null,elevation:D,enableBackground:null,end:null,event:null,exponent:D,externalResourcesRequired:null,fill:null,fillOpacity:D,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:Tl,g2:Tl,glyphName:Tl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:D,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:D,horizOriginX:D,horizOriginY:D,id:null,ideographic:D,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:D,k:D,k1:D,k2:D,k3:D,k4:D,kernelMatrix:It,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:D,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:D,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:D,overlineThickness:D,paintOrder:null,panose1:null,path:null,pathLength:D,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ce,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:D,pointsAtY:D,pointsAtZ:D,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:It,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:It,rev:It,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:It,requiredFeatures:It,requiredFonts:It,requiredFormats:It,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:D,specularExponent:D,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:D,strikethroughThickness:D,string:null,stroke:null,strokeDashArray:It,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:D,strokeOpacity:D,strokeWidth:null,style:null,surfaceScale:D,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:It,tabIndex:D,tableValues:null,target:null,targetX:D,targetY:D,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:It,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:D,underlineThickness:D,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:D,values:null,vAlphabetic:D,vMathematical:D,vectorEffect:null,vHanging:D,vIdeographic:D,version:null,vertAdvY:D,vertOriginX:D,vertOriginY:D,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:D,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ri});var ud=Zt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}});var od=Zt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Oi});var id=Zt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}});var sd={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"};var m1=/[A-Z]/g,JL=/-[a-z]/g,h1=/^data[-\w.:]+$/i;function fd(e,t){let a=Du(t),l=t,n=Ke;if(a in e.normal)return e.property[e.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&h1.test(t)){if(t.charAt(4)==="-"){let r=t.slice(5).replace(JL,x1);l="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{let r=t.slice(4);if(!JL.test(r)){let u=r.replace(m1,g1);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}n=un}return new n(l,t)}function g1(e){return"-"+e.toLowerCase()}function x1(e){return e.charAt(1).toUpperCase()}var $L=ld([rd,KL,ud,od,id],"html"),zi=ld([rd,WL,ud,od,id],"svg");function ey(e){return e.join(" ").trim()}var hy=J(cy(),1);var Hi=dy("end"),hr=dy("start");function dy(e){return t;function t(a){let l=a&&a.position&&a.position[e]||{};if(typeof l.line=="number"&&l.line>0&&typeof l.column=="number"&&l.column>0)return{line:l.line,column:l.column,offset:typeof l.offset=="number"&&l.offset>-1?l.offset:void 0}}}function pd(e){let t=hr(e),a=Hi(e);if(t&&a)return{start:t,end:a}}function Ml(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?py(e.position):"start"in e||"end"in e?py(e):"line"in e||"column"in e?md(e):""}function md(e){return my(e&&e.line)+":"+my(e&&e.column)}function py(e){return md(e&&e.start)+"-"+md(e&&e.end)}function my(e){return e&&typeof e=="number"?e:1}var qe=class extends Error{constructor(t,a,l){super(),typeof a=="string"&&(l=a,a=void 0);let n="",r={},u=!1;if(a&&("line"in a&&"column"in a?r={place:a}:"start"in a&&"end"in a?r={place:a}:"type"in a?r={ancestors:[a],place:a.position}:r={...a}),typeof t=="string"?n=t:!r.cause&&t&&(u=!0,n=t.message,r.cause=t),!r.ruleId&&!r.source&&typeof l=="string"){let i=l.indexOf(":");i===-1?r.ruleId=l:(r.source=l.slice(0,i),r.ruleId=l.slice(i+1))}if(!r.place&&r.ancestors&&r.ancestors){let i=r.ancestors[r.ancestors.length-1];i&&(r.place=i.position)}let o=r.place&&"start"in r.place?r.place.start:r.place;this.ancestors=r.ancestors||void 0,this.cause=r.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=n,this.line=o?o.line:void 0,this.name=Ml(r.place)||"1:1",this.place=r.place||void 0,this.reason=this.message,this.ruleId=r.ruleId||void 0,this.source=r.source||void 0,this.stack=u&&r.cause&&typeof r.cause.stack=="string"?r.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};qe.prototype.file="";qe.prototype.name="";qe.prototype.reason="";qe.prototype.message="";qe.prototype.stack="";qe.prototype.column=void 0;qe.prototype.line=void 0;qe.prototype.ancestors=void 0;qe.prototype.cause=void 0;qe.prototype.fatal=void 0;qe.prototype.place=void 0;qe.prototype.ruleId=void 0;qe.prototype.source=void 0;var hd={}.hasOwnProperty,G1=new Map,V1=/[A-Z]/g,X1=new Set(["table","tbody","thead","tfoot","tr"]),j1=new Set(["td","th"]),gy="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function gd(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");let a=t.filePath||void 0,l;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");l=ev(a,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");l=$1(a,t.jsx,t.jsxs)}let n={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:l,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?zi:$L,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},r=xy(n,e,void 0);return r&&typeof r!="string"?r:n.create(e,n.Fragment,{children:r||void 0},void 0)}function xy(e,t,a){if(t.type==="element")return Q1(e,t,a);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Y1(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return K1(e,t,a);if(t.type==="mdxjsEsm")return Z1(e,t);if(t.type==="root")return W1(e,t,a);if(t.type==="text")return J1(e,t)}function Q1(e,t,a){let l=e.schema,n=l;t.tagName.toLowerCase()==="svg"&&l.space==="html"&&(n=zi,e.schema=n),e.ancestors.push(t);let r=yy(e,t.tagName,!1),u=tv(e,t),o=Ld(e,t);return X1.has(t.tagName)&&(o=o.filter(function(i){return typeof i=="string"?!ad(i):!0})),Ly(e,u,r,t),xd(u,o),e.ancestors.pop(),e.schema=l,e.create(t,r,u,a)}function Y1(e,t){if(t.data&&t.data.estree&&e.evaluater){let l=t.data.estree.body[0];return l.type,e.evaluater.evaluateExpression(l.expression)}Ru(e,t.position)}function Z1(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ru(e,t.position)}function K1(e,t,a){let l=e.schema,n=l;t.name==="svg"&&l.space==="html"&&(n=zi,e.schema=n),e.ancestors.push(t);let r=t.name===null?e.Fragment:yy(e,t.name,!0),u=av(e,t),o=Ld(e,t);return Ly(e,u,r,t),xd(u,o),e.ancestors.pop(),e.schema=l,e.create(t,r,u,a)}function W1(e,t,a){let l={};return xd(l,Ld(e,t)),e.create(t,e.Fragment,l,a)}function J1(e,t){return t.value}function Ly(e,t,a,l){typeof a!="string"&&a!==e.Fragment&&e.passNode&&(t.node=l)}function xd(e,t){if(t.length>0){let a=t.length>1?t:t[0];a&&(e.children=a)}}function $1(e,t,a){return l;function l(n,r,u,o){let s=Array.isArray(u.children)?a:t;return o?s(r,u,o):s(r,u)}}function ev(e,t){return a;function a(l,n,r,u){let o=Array.isArray(r.children),i=hr(l);return t(n,r,u,o,{columnNumber:i?i.column-1:void 0,fileName:e,lineNumber:i?i.line:void 0},void 0)}}function tv(e,t){let a={},l,n;for(n in t.properties)if(n!=="children"&&hd.call(t.properties,n)){let r=lv(e,n,t.properties[n]);if(r){let[u,o]=r;e.tableCellAlignToStyle&&u==="align"&&typeof o=="string"&&j1.has(t.tagName)?l=o:a[u]=o}}if(l){let r=a.style||(a.style={});r[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=l}return a}function av(e,t){let a={};for(let l of t.attributes)if(l.type==="mdxJsxExpressionAttribute")if(l.data&&l.data.estree&&e.evaluater){let r=l.data.estree.body[0];r.type;let u=r.expression;u.type;let o=u.properties[0];o.type,Object.assign(a,e.evaluater.evaluateExpression(o.argument))}else Ru(e,t.position);else{let n=l.name,r;if(l.value&&typeof l.value=="object")if(l.value.data&&l.value.data.estree&&e.evaluater){let o=l.value.data.estree.body[0];o.type,r=e.evaluater.evaluateExpression(o.expression)}else Ru(e,t.position);else r=l.value===null?!0:l.value;a[n]=r}return a}function Ld(e,t){let a=[],l=-1,n=e.passKeys?new Map:G1;for(;++l<t.children.length;){let r=t.children[l],u;if(e.passKeys){let i=r.type==="element"?r.tagName:r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement"?r.name:void 0;if(i){let s=n.get(i)||0;u=i+"-"+s,n.set(i,s+1)}}let o=xy(e,r,u);o!==void 0&&a.push(o)}return a}function lv(e,t,a){let l=fd(e.schema,t);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=l.commaSeparated?QL(a):ey(a)),l.property==="style"){let n=typeof a=="object"?a:nv(e,String(a));return e.stylePropertyNameCase==="css"&&(n=rv(n)),["style",n]}return[e.elementAttributeNameCase==="react"&&l.space?sd[l.property]||l.property:l.attribute,a]}}function nv(e,t){try{return(0,hy.default)(t,{reactCompat:!0})}catch(a){if(e.ignoreInvalidStyle)return{};let l=a,n=new qe("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=gy+"#cannot-parse-style-attribute",n}}function yy(e,t,a){let l;if(!a)l={type:"Literal",value:t};else if(t.includes(".")){let n=t.split("."),r=-1,u;for(;++r<n.length;){let o=Ei(n[r])?{type:"Identifier",name:n[r]}:{type:"Literal",value:n[r]};u=u?{type:"MemberExpression",object:u,property:o,computed:!!(r&&o.type==="Literal"),optional:!1}:o}l=u}else l=Ei(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(l.type==="Literal"){let n=l.value;return hd.call(e.components,n)?e.components[n]:n}if(e.evaluater)return e.evaluater.evaluateExpression(l);Ru(e)}function Ru(e,t){let a=new qe("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=gy+"#cannot-handle-mdx-estrees-without-createevaluater",a}function rv(e){let t={},a;for(a in e)hd.call(e,a)&&(t[uv(a)]=e[a]);return t}function uv(e){let t=e.replace(V1,ov);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function ov(e){return"-"+e.toLowerCase()}var Ou={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"]};var Cr=J(De(),1),XC=J(We(),1);var iv={};function sn(e,t){let a=t||iv,l=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,n=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return Sy(e,l,n)}function Sy(e,t,a){if(sv(e)){if("value"in e)return e.type==="html"&&!a?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Cy(e.children,t,a)}return Array.isArray(e)?Cy(e,t,a):""}function Cy(e,t,a){let l=[],n=-1;for(;++n<e.length;)l[n]=Sy(e[n],t,a);return l.join("")}function sv(e){return!!(e&&typeof e=="object")}var by=document.createElement("i");function gr(e){let t="&"+e+";";by.innerHTML=t;let a=by.textContent;return a.charCodeAt(a.length-1)===59&&e!=="semi"||a===t?!1:a}function He(e,t,a,l){let n=e.length,r=0,u;if(t<0?t=-t>n?0:n+t:t=t>n?n:t,a=a>0?a:0,l.length<1e4)u=Array.from(l),u.unshift(t,a),e.splice(...u);else for(a&&e.splice(t,a);r<l.length;)u=l.slice(r,r+1e4),u.unshift(t,0),e.splice(...u),r+=1e4,t+=1e4}function mt(e,t){return e.length>0?(He(e,e.length,0,t),e):t}var Iy={}.hasOwnProperty;function Fi(e){let t={},a=-1;for(;++a<e.length;)fv(t,e[a]);return t}function fv(e,t){let a;for(a in t){let n=(Iy.call(e,a)?e[a]:void 0)||(e[a]={}),r=t[a],u;if(r)for(u in r){Iy.call(n,u)||(n[u]=[]);let o=r[u];cv(n[u],Array.isArray(o)?o:o?[o]:[])}}}function cv(e,t){let a=-1,l=[];for(;++a<t.length;)(t[a].add==="after"?e:l).push(t[a]);He(e,0,0,l)}function Pi(e,t){let a=Number.parseInt(e,t);return a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"\uFFFD":String.fromCodePoint(a)}function ot(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Xe=Dl(/[A-Za-z]/),Be=Dl(/[\dA-Za-z]/),vy=Dl(/[#-'*+\--9=?A-Z^-~]/);function fn(e){return e!==null&&(e<32||e===127)}var zu=Dl(/\d/),ky=Dl(/[\dA-Fa-f]/),wy=Dl(/[!-/:-@[-`{-~]/);function z(e){return e!==null&&e<-2}function $(e){return e!==null&&(e<0||e===32)}function U(e){return e===-2||e===-1||e===32}var cn=Dl(/\p{P}|\p{S}/u),ha=Dl(/\s/);function Dl(e){return t;function t(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function Kt(e){let t=[],a=-1,l=0,n=0;for(;++a<e.length;){let r=e.charCodeAt(a),u="";if(r===37&&Be(e.charCodeAt(a+1))&&Be(e.charCodeAt(a+2)))n=2;else if(r<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(r))||(u=String.fromCharCode(r));else if(r>55295&&r<57344){let o=e.charCodeAt(a+1);r<56320&&o>56319&&o<57344?(u=String.fromCharCode(r,o),n=1):u="\uFFFD"}else u=String.fromCharCode(r);u&&(t.push(e.slice(l,a),encodeURIComponent(u)),l=a+n+1,u=""),n&&(a+=n,n=0)}return t.join("")+e.slice(l)}function P(e,t,a,l){let n=l?l-1:Number.POSITIVE_INFINITY,r=0;return u;function u(i){return U(i)?(e.enter(a),o(i)):t(i)}function o(i){return U(i)&&r++<n?(e.consume(i),o):(e.exit(a),t(i))}}var Ay={tokenize:dv};function dv(e){let t=e.attempt(this.parser.constructs.contentInitial,l,n),a;return t;function l(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),P(e,t,"linePrefix")}function n(o){return e.enter("paragraph"),r(o)}function r(o){let i=e.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=i),a=i,u(o)}function u(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return z(o)?(e.consume(o),e.exit("chunkText"),r):(e.consume(o),u)}}var My={tokenize:pv},Ty={tokenize:mv};function pv(e){let t=this,a=[],l=0,n,r,u;return o;function o(x){if(l<a.length){let b=a[l];return t.containerState=b[1],e.attempt(b[0].continuation,i,s)(x)}return s(x)}function i(x){if(l++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&h();let b=t.events.length,w=b,I;for(;w--;)if(t.events[w][0]==="exit"&&t.events[w][1].type==="chunkFlow"){I=t.events[w][1].end;break}m(l);let A=b;for(;A<t.events.length;)t.events[A][1].end={...I},A++;return He(t.events,w+1,0,t.events.slice(b)),t.events.length=A,s(x)}return o(x)}function s(x){if(l===a.length){if(!n)return p(x);if(n.currentConstruct&&n.currentConstruct.concrete)return g(x);t.interrupt=!!(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Ty,f,c)(x)}function f(x){return n&&h(),m(l),p(x)}function c(x){return t.parser.lazy[t.now().line]=l!==a.length,u=t.now().offset,g(x)}function p(x){return t.containerState={},e.attempt(Ty,d,g)(x)}function d(x){return l++,a.push([t.currentConstruct,t.containerState]),p(x)}function g(x){if(x===null){n&&h(),m(0),e.consume(x);return}return n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:n,contentType:"flow",previous:r}),C(x)}function C(x){if(x===null){v(e.exit("chunkFlow"),!0),m(0),e.consume(x);return}return z(x)?(e.consume(x),v(e.exit("chunkFlow")),l=0,t.interrupt=void 0,o):(e.consume(x),C)}function v(x,b){let w=t.sliceStream(x);if(b&&w.push(null),x.previous=r,r&&(r.next=x),r=x,n.defineSkip(x.start),n.write(w),t.parser.lazy[x.start.line]){let I=n.events.length;for(;I--;)if(n.events[I][1].start.offset<u&&(!n.events[I][1].end||n.events[I][1].end.offset>u))return;let A=t.events.length,E=A,M,S;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){if(M){S=t.events[E][1].end;break}M=!0}for(m(l),I=A;I<t.events.length;)t.events[I][1].end={...S},I++;He(t.events,E+1,0,t.events.slice(A)),t.events.length=I}}function m(x){let b=a.length;for(;b-- >x;){let w=a[b];t.containerState=w[1],w[0].exit.call(t,e)}a.length=x}function h(){n.write([null]),r=void 0,n=void 0,t.containerState._closeFlow=void 0}}function mv(e,t,a){return P(e,e.attempt(this.parser.constructs.document,t,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Xa(e){if(e===null||$(e)||ha(e))return 1;if(cn(e))return 2}function El(e,t,a){let l=[],n=-1;for(;++n<e.length;){let r=e[n].resolveAll;r&&!l.includes(r)&&(t=r(t,a),l.push(r))}return t}var qu={name:"attention",resolveAll:hv,tokenize:gv};function hv(e,t){let a=-1,l,n,r,u,o,i,s,f;for(;++a<e.length;)if(e[a][0]==="enter"&&e[a][1].type==="attentionSequence"&&e[a][1]._close){for(l=a;l--;)if(e[l][0]==="exit"&&e[l][1].type==="attentionSequence"&&e[l][1]._open&&t.sliceSerialize(e[l][1]).charCodeAt(0)===t.sliceSerialize(e[a][1]).charCodeAt(0)){if((e[l][1]._close||e[a][1]._open)&&(e[a][1].end.offset-e[a][1].start.offset)%3&&!((e[l][1].end.offset-e[l][1].start.offset+e[a][1].end.offset-e[a][1].start.offset)%3))continue;i=e[l][1].end.offset-e[l][1].start.offset>1&&e[a][1].end.offset-e[a][1].start.offset>1?2:1;let c={...e[l][1].end},p={...e[a][1].start};Dy(c,-i),Dy(p,i),u={type:i>1?"strongSequence":"emphasisSequence",start:c,end:{...e[l][1].end}},o={type:i>1?"strongSequence":"emphasisSequence",start:{...e[a][1].start},end:p},r={type:i>1?"strongText":"emphasisText",start:{...e[l][1].end},end:{...e[a][1].start}},n={type:i>1?"strong":"emphasis",start:{...u.start},end:{...o.end}},e[l][1].end={...u.start},e[a][1].start={...o.end},s=[],e[l][1].end.offset-e[l][1].start.offset&&(s=mt(s,[["enter",e[l][1],t],["exit",e[l][1],t]])),s=mt(s,[["enter",n,t],["enter",u,t],["exit",u,t],["enter",r,t]]),s=mt(s,El(t.parser.constructs.insideSpan.null,e.slice(l+1,a),t)),s=mt(s,[["exit",r,t],["enter",o,t],["exit",o,t],["exit",n,t]]),e[a][1].end.offset-e[a][1].start.offset?(f=2,s=mt(s,[["enter",e[a][1],t],["exit",e[a][1],t]])):f=0,He(e,l-1,a-l+3,s),a=l+s.length-f-2;break}}for(a=-1;++a<e.length;)e[a][1].type==="attentionSequence"&&(e[a][1].type="data");return e}function gv(e,t){let a=this.parser.constructs.attentionMarkers.null,l=this.previous,n=Xa(l),r;return u;function u(i){return r=i,e.enter("attentionSequence"),o(i)}function o(i){if(i===r)return e.consume(i),o;let s=e.exit("attentionSequence"),f=Xa(i),c=!f||f===2&&n||a.includes(i),p=!n||n===2&&f||a.includes(l);return s._open=!!(r===42?c:c&&(n||!p)),s._close=!!(r===42?p:p&&(f||!c)),t(i)}}function Dy(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var yd={name:"autolink",tokenize:xv};function xv(e,t,a){let l=0;return n;function n(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),r}function r(d){return Xe(d)?(e.consume(d),u):d===64?a(d):s(d)}function u(d){return d===43||d===45||d===46||Be(d)?(l=1,o(d)):s(d)}function o(d){return d===58?(e.consume(d),l=0,i):(d===43||d===45||d===46||Be(d))&&l++<32?(e.consume(d),o):(l=0,s(d))}function i(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||fn(d)?a(d):(e.consume(d),i)}function s(d){return d===64?(e.consume(d),f):vy(d)?(e.consume(d),s):a(d)}function f(d){return Be(d)?c(d):a(d)}function c(d){return d===46?(e.consume(d),l=0,f):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):p(d)}function p(d){if((d===45||Be(d))&&l++<63){let g=d===45?p:c;return e.consume(d),g}return a(d)}}var ga={partial:!0,tokenize:Lv};function Lv(e,t,a){return l;function l(r){return U(r)?P(e,n,"linePrefix")(r):n(r)}function n(r){return r===null||z(r)?t(r):a(r)}}var Ui={continuation:{tokenize:Cv},exit:Sv,name:"blockQuote",tokenize:yv};function yv(e,t,a){let l=this;return n;function n(u){if(u===62){let o=l.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),r}return a(u)}function r(u){return U(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function Cv(e,t,a){let l=this;return n;function n(u){return U(u)?P(e,r,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):r(u)}function r(u){return e.attempt(Ui,t,a)(u)}}function Sv(e){e.exit("blockQuote")}var Ni={name:"characterEscape",tokenize:bv};function bv(e,t,a){return l;function l(r){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(r),e.exit("escapeMarker"),n}function n(r){return wy(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):a(r)}}var _i={name:"characterReference",tokenize:Iv};function Iv(e,t,a){let l=this,n=0,r,u;return o;function o(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),i}function i(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),r=31,u=Be,f(c))}function s(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,u=ky,f):(e.enter("characterReferenceValue"),r=7,u=zu,f(c))}function f(c){if(c===59&&n){let p=e.exit("characterReferenceValue");return u===Be&&!gr(l.sliceSerialize(p))?a(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(c)&&n++<r?(e.consume(c),f):a(c)}}var Ey={partial:!0,tokenize:kv},Gi={concrete:!0,name:"codeFenced",tokenize:vv};function vv(e,t,a){let l=this,n={partial:!0,tokenize:w},r=0,u=0,o;return i;function i(I){return s(I)}function s(I){let A=l.events[l.events.length-1];return r=A&&A[1].type==="linePrefix"?A[2].sliceSerialize(A[1],!0).length:0,o=I,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(I)}function f(I){return I===o?(u++,e.consume(I),f):u<3?a(I):(e.exit("codeFencedFenceSequence"),U(I)?P(e,c,"whitespace")(I):c(I))}function c(I){return I===null||z(I)?(e.exit("codeFencedFence"),l.interrupt?t(I):e.check(Ey,C,b)(I)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(I))}function p(I){return I===null||z(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(I)):U(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),P(e,d,"whitespace")(I)):I===96&&I===o?a(I):(e.consume(I),p)}function d(I){return I===null||z(I)?c(I):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(I))}function g(I){return I===null||z(I)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(I)):I===96&&I===o?a(I):(e.consume(I),g)}function C(I){return e.attempt(n,b,v)(I)}function v(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),m}function m(I){return r>0&&U(I)?P(e,h,"linePrefix",r+1)(I):h(I)}function h(I){return I===null||z(I)?e.check(Ey,C,b)(I):(e.enter("codeFlowValue"),x(I))}function x(I){return I===null||z(I)?(e.exit("codeFlowValue"),h(I)):(e.consume(I),x)}function b(I){return e.exit("codeFenced"),t(I)}function w(I,A,E){let M=0;return S;function S(O){return I.enter("lineEnding"),I.consume(O),I.exit("lineEnding"),V}function V(O){return I.enter("codeFencedFence"),U(O)?P(I,N,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):N(O)}function N(O){return O===o?(I.enter("codeFencedFenceSequence"),q(O)):E(O)}function q(O){return O===o?(M++,I.consume(O),q):M>=u?(I.exit("codeFencedFenceSequence"),U(O)?P(I,B,"whitespace")(O):B(O)):E(O)}function B(O){return O===null||z(O)?(I.exit("codeFencedFence"),A(O)):E(O)}}}function kv(e,t,a){let l=this;return n;function n(u){return u===null?a(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),r)}function r(u){return l.parser.lazy[l.now().line]?a(u):t(u)}}var Hu={name:"codeIndented",tokenize:Av},wv={partial:!0,tokenize:Tv};function Av(e,t,a){let l=this;return n;function n(s){return e.enter("codeIndented"),P(e,r,"linePrefix",5)(s)}function r(s){let f=l.events[l.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?u(s):a(s)}function u(s){return s===null?i(s):z(s)?e.attempt(wv,u,i)(s):(e.enter("codeFlowValue"),o(s))}function o(s){return s===null||z(s)?(e.exit("codeFlowValue"),u(s)):(e.consume(s),o)}function i(s){return e.exit("codeIndented"),t(s)}}function Tv(e,t,a){let l=this;return n;function n(u){return l.parser.lazy[l.now().line]?a(u):z(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),n):P(e,r,"linePrefix",5)(u)}function r(u){let o=l.events[l.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(u):z(u)?n(u):a(u)}}var Cd={name:"codeText",previous:Dv,resolve:Mv,tokenize:Ev};function Mv(e){let t=e.length-4,a=3,l,n;if((e[a][1].type==="lineEnding"||e[a][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(l=a;++l<t;)if(e[l][1].type==="codeTextData"){e[a][1].type="codeTextPadding",e[t][1].type="codeTextPadding",a+=2,t-=2;break}}for(l=a-1,t++;++l<=t;)n===void 0?l!==t&&e[l][1].type!=="lineEnding"&&(n=l):(l===t||e[l][1].type==="lineEnding")&&(e[n][1].type="codeTextData",l!==n+2&&(e[n][1].end=e[l-1][1].end,e.splice(n+2,l-n-2),t-=l-n-2,l=n+2),n=void 0);return e}function Dv(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Ev(e,t,a){let l=this,n=0,r,u;return o;function o(p){return e.enter("codeText"),e.enter("codeTextSequence"),i(p)}function i(p){return p===96?(e.consume(p),n++,i):(e.exit("codeTextSequence"),s(p))}function s(p){return p===null?a(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),s):p===96?(u=e.enter("codeTextSequence"),r=0,c(p)):z(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),s):(e.enter("codeTextData"),f(p))}function f(p){return p===null||p===32||p===96||z(p)?(e.exit("codeTextData"),s(p)):(e.consume(p),f)}function c(p){return p===96?(e.consume(p),r++,c):r===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(u.type="codeTextData",f(p))}}var Vi=class{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,a){let l=a==null?Number.POSITIVE_INFINITY:a;return l<this.left.length?this.left.slice(t,l):t>this.left.length?this.right.slice(this.right.length-l+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-l+this.left.length).reverse())}splice(t,a,l){let n=a||0;this.setCursor(Math.trunc(t));let r=this.right.splice(this.right.length-n,Number.POSITIVE_INFINITY);return l&&Fu(this.left,l),r.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),Fu(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Fu(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){let a=this.left.splice(t,Number.POSITIVE_INFINITY);Fu(this.right,a.reverse())}else{let a=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Fu(this.left,a.reverse())}}};function Fu(e,t){let a=0;if(t.length<1e4)e.push(...t);else for(;a<t.length;)e.push(...t.slice(a,a+1e4)),a+=1e4}function Xi(e){let t={},a=-1,l,n,r,u,o,i,s,f=new Vi(e);for(;++a<f.length;){for(;a in t;)a=t[a];if(l=f.get(a),a&&l[1].type==="chunkFlow"&&f.get(a-1)[1].type==="listItemPrefix"&&(i=l[1]._tokenizer.events,r=0,r<i.length&&i[r][1].type==="lineEndingBlank"&&(r+=2),r<i.length&&i[r][1].type==="content"))for(;++r<i.length&&i[r][1].type!=="content";)i[r][1].type==="chunkText"&&(i[r][1]._isInFirstContentOfListItem=!0,r++);if(l[0]==="enter")l[1].contentType&&(Object.assign(t,Bv(f,a)),a=t[a],s=!0);else if(l[1]._container){for(r=a,n=void 0;r--;)if(u=f.get(r),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(n&&(f.get(n)[1].type="lineEndingBlank"),u[1].type="lineEnding",n=r);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;n&&(l[1].end={...f.get(n)[1].start},o=f.slice(n,a),o.unshift(l),f.splice(n,a-n+1,o))}}return He(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!s}function Bv(e,t){let a=e.get(t)[1],l=e.get(t)[2],n=t-1,r=[],u=a._tokenizer;u||(u=l.parser[a.contentType](a.start),a._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));let o=u.events,i=[],s={},f,c,p=-1,d=a,g=0,C=0,v=[C];for(;d;){for(;e.get(++n)[1]!==d;);r.push(n),d._tokenizer||(f=l.sliceStream(d),d.next||f.push(null),c&&u.defineSkip(d.start),d._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(f),d._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),c=d,d=d.next}for(d=a;++p<o.length;)o[p][0]==="exit"&&o[p-1][0]==="enter"&&o[p][1].type===o[p-1][1].type&&o[p][1].start.line!==o[p][1].end.line&&(C=p+1,v.push(C),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(u.events=[],d?(d._tokenizer=void 0,d.previous=void 0):v.pop(),p=v.length;p--;){let m=o.slice(v[p],v[p+1]),h=r.pop();i.push([h,h+m.length-1]),e.splice(h,2,m)}for(i.reverse(),p=-1;++p<i.length;)s[g+i[p][0]]=g+i[p][1],g+=i[p][1]-i[p][0]-1;return s}var Sd={resolve:Ov,tokenize:zv},Rv={partial:!0,tokenize:qv};function Ov(e){return Xi(e),e}function zv(e,t){let a;return l;function l(o){return e.enter("content"),a=e.enter("chunkContent",{contentType:"content"}),n(o)}function n(o){return o===null?r(o):z(o)?e.check(Rv,u,r)(o):(e.consume(o),n)}function r(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function u(o){return e.consume(o),e.exit("chunkContent"),a.next=e.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,n}}function qv(e,t,a){let l=this;return n;function n(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),P(e,r,"linePrefix")}function r(u){if(u===null||z(u))return a(u);let o=l.events[l.events.length-1];return!l.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(u):e.interrupt(l.parser.constructs.flow,a,t)(u)}}function ji(e,t,a,l,n,r,u,o,i){let s=i||Number.POSITIVE_INFINITY,f=0;return c;function c(m){return m===60?(e.enter(l),e.enter(n),e.enter(r),e.consume(m),e.exit(r),p):m===null||m===32||m===41||fn(m)?a(m):(e.enter(l),e.enter(u),e.enter(o),e.enter("chunkString",{contentType:"string"}),C(m))}function p(m){return m===62?(e.enter(r),e.consume(m),e.exit(r),e.exit(n),e.exit(l),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===62?(e.exit("chunkString"),e.exit(o),p(m)):m===null||m===60||z(m)?a(m):(e.consume(m),m===92?g:d)}function g(m){return m===60||m===62||m===92?(e.consume(m),d):d(m)}function C(m){return!f&&(m===null||m===41||$(m))?(e.exit("chunkString"),e.exit(o),e.exit(u),e.exit(l),t(m)):f<s&&m===40?(e.consume(m),f++,C):m===41?(e.consume(m),f--,C):m===null||m===32||m===40||fn(m)?a(m):(e.consume(m),m===92?v:C)}function v(m){return m===40||m===41||m===92?(e.consume(m),C):C(m)}}function Qi(e,t,a,l,n,r){let u=this,o=0,i;return s;function s(d){return e.enter(l),e.enter(n),e.consume(d),e.exit(n),e.enter(r),f}function f(d){return o>999||d===null||d===91||d===93&&!i||d===94&&!o&&"_hiddenFootnoteSupport"in u.parser.constructs?a(d):d===93?(e.exit(r),e.enter(n),e.consume(d),e.exit(n),e.exit(l),t):z(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===null||d===91||d===93||z(d)||o++>999?(e.exit("chunkString"),f(d)):(e.consume(d),i||(i=!U(d)),d===92?p:c)}function p(d){return d===91||d===92||d===93?(e.consume(d),o++,c):c(d)}}function Yi(e,t,a,l,n,r){let u;return o;function o(p){return p===34||p===39||p===40?(e.enter(l),e.enter(n),e.consume(p),e.exit(n),u=p===40?41:p,i):a(p)}function i(p){return p===u?(e.enter(n),e.consume(p),e.exit(n),e.exit(l),t):(e.enter(r),s(p))}function s(p){return p===u?(e.exit(r),i(u)):p===null?a(p):z(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),P(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===u||p===null||z(p)?(e.exit("chunkString"),s(p)):(e.consume(p),p===92?c:f)}function c(p){return p===u||p===92?(e.consume(p),f):f(p)}}function dn(e,t){let a;return l;function l(n){return z(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),a=!0,l):U(n)?P(e,l,a?"linePrefix":"lineSuffix")(n):t(n)}}var bd={name:"definition",tokenize:Fv},Hv={partial:!0,tokenize:Pv};function Fv(e,t,a){let l=this,n;return r;function r(d){return e.enter("definition"),u(d)}function u(d){return Qi.call(l,e,o,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function o(d){return n=ot(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),i):a(d)}function i(d){return $(d)?dn(e,s)(d):s(d)}function s(d){return ji(e,f,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function f(d){return e.attempt(Hv,c,c)(d)}function c(d){return U(d)?P(e,p,"whitespace")(d):p(d)}function p(d){return d===null||z(d)?(e.exit("definition"),l.parser.defined.push(n),t(d)):a(d)}}function Pv(e,t,a){return l;function l(o){return $(o)?dn(e,n)(o):a(o)}function n(o){return Yi(e,r,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function r(o){return U(o)?P(e,u,"whitespace")(o):u(o)}function u(o){return o===null||z(o)?t(o):a(o)}}var Id={name:"hardBreakEscape",tokenize:Uv};function Uv(e,t,a){return l;function l(r){return e.enter("hardBreakEscape"),e.consume(r),n}function n(r){return z(r)?(e.exit("hardBreakEscape"),t(r)):a(r)}}var vd={name:"headingAtx",resolve:Nv,tokenize:_v};function Nv(e,t){let a=e.length-2,l=3,n,r;return e[l][1].type==="whitespace"&&(l+=2),a-2>l&&e[a][1].type==="whitespace"&&(a-=2),e[a][1].type==="atxHeadingSequence"&&(l===a-1||a-4>l&&e[a-2][1].type==="whitespace")&&(a-=l+1===a?2:4),a>l&&(n={type:"atxHeadingText",start:e[l][1].start,end:e[a][1].end},r={type:"chunkText",start:e[l][1].start,end:e[a][1].end,contentType:"text"},He(e,l,a-l+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}function _v(e,t,a){let l=0;return n;function n(f){return e.enter("atxHeading"),r(f)}function r(f){return e.enter("atxHeadingSequence"),u(f)}function u(f){return f===35&&l++<6?(e.consume(f),u):f===null||$(f)?(e.exit("atxHeadingSequence"),o(f)):a(f)}function o(f){return f===35?(e.enter("atxHeadingSequence"),i(f)):f===null||z(f)?(e.exit("atxHeading"),t(f)):U(f)?P(e,o,"whitespace")(f):(e.enter("atxHeadingText"),s(f))}function i(f){return f===35?(e.consume(f),i):(e.exit("atxHeadingSequence"),o(f))}function s(f){return f===null||f===35||$(f)?(e.exit("atxHeadingText"),o(f)):(e.consume(f),s)}}var By=["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"],kd=["pre","script","style","textarea"];var wd={concrete:!0,name:"htmlFlow",resolveTo:Xv,tokenize:jv},Gv={partial:!0,tokenize:Yv},Vv={partial:!0,tokenize:Qv};function Xv(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function jv(e,t,a){let l=this,n,r,u,o,i;return s;function s(y){return f(y)}function f(y){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(y),c}function c(y){return y===33?(e.consume(y),p):y===47?(e.consume(y),r=!0,C):y===63?(e.consume(y),n=3,l.interrupt?t:L):Xe(y)?(e.consume(y),u=String.fromCharCode(y),v):a(y)}function p(y){return y===45?(e.consume(y),n=2,d):y===91?(e.consume(y),n=5,o=0,g):Xe(y)?(e.consume(y),n=4,l.interrupt?t:L):a(y)}function d(y){return y===45?(e.consume(y),l.interrupt?t:L):a(y)}function g(y){let ke="CDATA[";return y===ke.charCodeAt(o++)?(e.consume(y),o===ke.length?l.interrupt?t:N:g):a(y)}function C(y){return Xe(y)?(e.consume(y),u=String.fromCharCode(y),v):a(y)}function v(y){if(y===null||y===47||y===62||$(y)){let ke=y===47,nt=u.toLowerCase();return!ke&&!r&&kd.includes(nt)?(n=1,l.interrupt?t(y):N(y)):By.includes(u.toLowerCase())?(n=6,ke?(e.consume(y),m):l.interrupt?t(y):N(y)):(n=7,l.interrupt&&!l.parser.lazy[l.now().line]?a(y):r?h(y):x(y))}return y===45||Be(y)?(e.consume(y),u+=String.fromCharCode(y),v):a(y)}function m(y){return y===62?(e.consume(y),l.interrupt?t:N):a(y)}function h(y){return U(y)?(e.consume(y),h):S(y)}function x(y){return y===47?(e.consume(y),S):y===58||y===95||Xe(y)?(e.consume(y),b):U(y)?(e.consume(y),x):S(y)}function b(y){return y===45||y===46||y===58||y===95||Be(y)?(e.consume(y),b):w(y)}function w(y){return y===61?(e.consume(y),I):U(y)?(e.consume(y),w):x(y)}function I(y){return y===null||y===60||y===61||y===62||y===96?a(y):y===34||y===39?(e.consume(y),i=y,A):U(y)?(e.consume(y),I):E(y)}function A(y){return y===i?(e.consume(y),i=null,M):y===null||z(y)?a(y):(e.consume(y),A)}function E(y){return y===null||y===34||y===39||y===47||y===60||y===61||y===62||y===96||$(y)?w(y):(e.consume(y),E)}function M(y){return y===47||y===62||U(y)?x(y):a(y)}function S(y){return y===62?(e.consume(y),V):a(y)}function V(y){return y===null||z(y)?N(y):U(y)?(e.consume(y),V):a(y)}function N(y){return y===45&&n===2?(e.consume(y),X):y===60&&n===1?(e.consume(y),W):y===62&&n===4?(e.consume(y),re):y===63&&n===3?(e.consume(y),L):y===93&&n===5?(e.consume(y),ie):z(y)&&(n===6||n===7)?(e.exit("htmlFlowData"),e.check(Gv,ve,q)(y)):y===null||z(y)?(e.exit("htmlFlowData"),q(y)):(e.consume(y),N)}function q(y){return e.check(Vv,B,ve)(y)}function B(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),O}function O(y){return y===null||z(y)?q(y):(e.enter("htmlFlowData"),N(y))}function X(y){return y===45?(e.consume(y),L):N(y)}function W(y){return y===47?(e.consume(y),u="",ne):N(y)}function ne(y){if(y===62){let ke=u.toLowerCase();return kd.includes(ke)?(e.consume(y),re):N(y)}return Xe(y)&&u.length<8?(e.consume(y),u+=String.fromCharCode(y),ne):N(y)}function ie(y){return y===93?(e.consume(y),L):N(y)}function L(y){return y===62?(e.consume(y),re):y===45&&n===2?(e.consume(y),L):N(y)}function re(y){return y===null||z(y)?(e.exit("htmlFlowData"),ve(y)):(e.consume(y),re)}function ve(y){return e.exit("htmlFlow"),t(y)}}function Qv(e,t,a){let l=this;return n;function n(u){return z(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),r):a(u)}function r(u){return l.parser.lazy[l.now().line]?a(u):t(u)}}function Yv(e,t,a){return l;function l(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(ga,t,a)}}var Ad={name:"htmlText",tokenize:Zv};function Zv(e,t,a){let l=this,n,r,u;return o;function o(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),i}function i(L){return L===33?(e.consume(L),s):L===47?(e.consume(L),w):L===63?(e.consume(L),x):Xe(L)?(e.consume(L),E):a(L)}function s(L){return L===45?(e.consume(L),f):L===91?(e.consume(L),r=0,g):Xe(L)?(e.consume(L),h):a(L)}function f(L){return L===45?(e.consume(L),d):a(L)}function c(L){return L===null?a(L):L===45?(e.consume(L),p):z(L)?(u=c,W(L)):(e.consume(L),c)}function p(L){return L===45?(e.consume(L),d):c(L)}function d(L){return L===62?X(L):L===45?p(L):c(L)}function g(L){let re="CDATA[";return L===re.charCodeAt(r++)?(e.consume(L),r===re.length?C:g):a(L)}function C(L){return L===null?a(L):L===93?(e.consume(L),v):z(L)?(u=C,W(L)):(e.consume(L),C)}function v(L){return L===93?(e.consume(L),m):C(L)}function m(L){return L===62?X(L):L===93?(e.consume(L),m):C(L)}function h(L){return L===null||L===62?X(L):z(L)?(u=h,W(L)):(e.consume(L),h)}function x(L){return L===null?a(L):L===63?(e.consume(L),b):z(L)?(u=x,W(L)):(e.consume(L),x)}function b(L){return L===62?X(L):x(L)}function w(L){return Xe(L)?(e.consume(L),I):a(L)}function I(L){return L===45||Be(L)?(e.consume(L),I):A(L)}function A(L){return z(L)?(u=A,W(L)):U(L)?(e.consume(L),A):X(L)}function E(L){return L===45||Be(L)?(e.consume(L),E):L===47||L===62||$(L)?M(L):a(L)}function M(L){return L===47?(e.consume(L),X):L===58||L===95||Xe(L)?(e.consume(L),S):z(L)?(u=M,W(L)):U(L)?(e.consume(L),M):X(L)}function S(L){return L===45||L===46||L===58||L===95||Be(L)?(e.consume(L),S):V(L)}function V(L){return L===61?(e.consume(L),N):z(L)?(u=V,W(L)):U(L)?(e.consume(L),V):M(L)}function N(L){return L===null||L===60||L===61||L===62||L===96?a(L):L===34||L===39?(e.consume(L),n=L,q):z(L)?(u=N,W(L)):U(L)?(e.consume(L),N):(e.consume(L),B)}function q(L){return L===n?(e.consume(L),n=void 0,O):L===null?a(L):z(L)?(u=q,W(L)):(e.consume(L),q)}function B(L){return L===null||L===34||L===39||L===60||L===61||L===96?a(L):L===47||L===62||$(L)?M(L):(e.consume(L),B)}function O(L){return L===47||L===62||$(L)?M(L):a(L)}function X(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):a(L)}function W(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),ne}function ne(L){return U(L)?P(e,ie,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):ie(L)}function ie(L){return e.enter("htmlTextData"),u(L)}}var pn={name:"labelEnd",resolveAll:$v,resolveTo:ek,tokenize:tk},Kv={tokenize:ak},Wv={tokenize:lk},Jv={tokenize:nk};function $v(e){let t=-1,a=[];for(;++t<e.length;){let l=e[t][1];if(a.push(e[t]),l.type==="labelImage"||l.type==="labelLink"||l.type==="labelEnd"){let n=l.type==="labelImage"?4:2;l.type="data",t+=n}}return e.length!==a.length&&He(e,0,e.length,a),e}function ek(e,t){let a=e.length,l=0,n,r,u,o;for(;a--;)if(n=e[a][1],r){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;e[a][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(u){if(e[a][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(r=a,n.type!=="labelLink")){l=2;break}}else n.type==="labelEnd"&&(u=a);let i={type:e[r][1].type==="labelLink"?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[r][1].start},end:{...e[u][1].end}},f={type:"labelText",start:{...e[r+l+2][1].end},end:{...e[u-2][1].start}};return o=[["enter",i,t],["enter",s,t]],o=mt(o,e.slice(r+1,r+l+3)),o=mt(o,[["enter",f,t]]),o=mt(o,El(t.parser.constructs.insideSpan.null,e.slice(r+l+4,u-3),t)),o=mt(o,[["exit",f,t],e[u-2],e[u-1],["exit",s,t]]),o=mt(o,e.slice(u+1)),o=mt(o,[["exit",i,t]]),He(e,r,e.length,o),e}function tk(e,t,a){let l=this,n=l.events.length,r,u;for(;n--;)if((l.events[n][1].type==="labelImage"||l.events[n][1].type==="labelLink")&&!l.events[n][1]._balanced){r=l.events[n][1];break}return o;function o(p){return r?r._inactive?c(p):(u=l.parser.defined.includes(ot(l.sliceSerialize({start:r.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),i):a(p)}function i(p){return p===40?e.attempt(Kv,f,u?f:c)(p):p===91?e.attempt(Wv,f,u?s:c)(p):u?f(p):c(p)}function s(p){return e.attempt(Jv,f,c)(p)}function f(p){return t(p)}function c(p){return r._balanced=!0,a(p)}}function ak(e,t,a){return l;function l(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),n}function n(c){return $(c)?dn(e,r)(c):r(c)}function r(c){return c===41?f(c):ji(e,u,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function u(c){return $(c)?dn(e,i)(c):f(c)}function o(c){return a(c)}function i(c){return c===34||c===39||c===40?Yi(e,s,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function s(c){return $(c)?dn(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):a(c)}}function lk(e,t,a){let l=this;return n;function n(o){return Qi.call(l,e,r,u,"reference","referenceMarker","referenceString")(o)}function r(o){return l.parser.defined.includes(ot(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)))?t(o):a(o)}function u(o){return a(o)}}function nk(e,t,a){return l;function l(r){return e.enter("reference"),e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),n}function n(r){return r===93?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):a(r)}}var Td={name:"labelStartImage",resolveAll:pn.resolveAll,tokenize:rk};function rk(e,t,a){let l=this;return n;function n(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),r}function r(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),u):a(o)}function u(o){return o===94&&"_hiddenFootnoteSupport"in l.parser.constructs?a(o):t(o)}}var Md={name:"labelStartLink",resolveAll:pn.resolveAll,tokenize:uk};function uk(e,t,a){let l=this;return n;function n(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),r}function r(u){return u===94&&"_hiddenFootnoteSupport"in l.parser.constructs?a(u):t(u)}}var Pu={name:"lineEnding",tokenize:ok};function ok(e,t){return a;function a(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),P(e,t,"linePrefix")}}var mn={name:"thematicBreak",tokenize:ik};function ik(e,t,a){let l=0,n;return r;function r(s){return e.enter("thematicBreak"),u(s)}function u(s){return n=s,o(s)}function o(s){return s===n?(e.enter("thematicBreakSequence"),i(s)):l>=3&&(s===null||z(s))?(e.exit("thematicBreak"),t(s)):a(s)}function i(s){return s===n?(e.consume(s),l++,i):(e.exit("thematicBreakSequence"),U(s)?P(e,o,"whitespace")(s):o(s))}}var it={continuation:{tokenize:dk},exit:mk,name:"list",tokenize:ck},sk={partial:!0,tokenize:hk},fk={partial:!0,tokenize:pk};function ck(e,t,a){let l=this,n=l.events[l.events.length-1],r=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,u=0;return o;function o(d){let g=l.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!l.containerState.marker||d===l.containerState.marker:zu(d)){if(l.containerState.type||(l.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(mn,a,s)(d):s(d);if(!l.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),i(d)}return a(d)}function i(d){return zu(d)&&++u<10?(e.consume(d),i):(!l.interrupt||u<2)&&(l.containerState.marker?d===l.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),s(d)):a(d)}function s(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),l.containerState.marker=l.containerState.marker||d,e.check(ga,l.interrupt?a:f,e.attempt(sk,p,c))}function f(d){return l.containerState.initialBlankLine=!0,r++,p(d)}function c(d){return U(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),p):a(d)}function p(d){return l.containerState.size=r+l.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function dk(e,t,a){let l=this;return l.containerState._closeFlow=void 0,e.check(ga,n,r);function n(o){return l.containerState.furtherBlankLines=l.containerState.furtherBlankLines||l.containerState.initialBlankLine,P(e,t,"listItemIndent",l.containerState.size+1)(o)}function r(o){return l.containerState.furtherBlankLines||!U(o)?(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,u(o)):(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,e.attempt(fk,t,u)(o))}function u(o){return l.containerState._closeFlow=!0,l.interrupt=void 0,P(e,e.attempt(it,t,a),"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function pk(e,t,a){let l=this;return P(e,n,"listItemIndent",l.containerState.size+1);function n(r){let u=l.events[l.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===l.containerState.size?t(r):a(r)}}function mk(e){e.exit(this.containerState.type)}function hk(e,t,a){let l=this;return P(e,n,"listItemPrefixWhitespace",l.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function n(r){let u=l.events[l.events.length-1];return!U(r)&&u&&u[1].type==="listItemPrefixWhitespace"?t(r):a(r)}}var Zi={name:"setextUnderline",resolveTo:gk,tokenize:xk};function gk(e,t){let a=e.length,l,n,r;for(;a--;)if(e[a][0]==="enter"){if(e[a][1].type==="content"){l=a;break}e[a][1].type==="paragraph"&&(n=a)}else e[a][1].type==="content"&&e.splice(a,1),!r&&e[a][1].type==="definition"&&(r=a);let u={type:"setextHeading",start:{...e[l][1].start},end:{...e[e.length-1][1].end}};return e[n][1].type="setextHeadingText",r?(e.splice(n,0,["enter",u,t]),e.splice(r+1,0,["exit",e[l][1],t]),e[l][1].end={...e[r][1].end}):e[l][1]=u,e.push(["exit",u,t]),e}function xk(e,t,a){let l=this,n;return r;function r(s){let f=l.events.length,c;for(;f--;)if(l.events[f][1].type!=="lineEnding"&&l.events[f][1].type!=="linePrefix"&&l.events[f][1].type!=="content"){c=l.events[f][1].type==="paragraph";break}return!l.parser.lazy[l.now().line]&&(l.interrupt||c)?(e.enter("setextHeadingLine"),n=s,u(s)):a(s)}function u(s){return e.enter("setextHeadingLineSequence"),o(s)}function o(s){return s===n?(e.consume(s),o):(e.exit("setextHeadingLineSequence"),U(s)?P(e,i,"lineSuffix")(s):i(s))}function i(s){return s===null||z(s)?(e.exit("setextHeadingLine"),t(s)):a(s)}}var Ry={tokenize:Lk};function Lk(e){let t=this,a=e.attempt(ga,l,e.attempt(this.parser.constructs.flowInitial,n,P(e,e.attempt(this.parser.constructs.flow,n,e.attempt(Sd,n)),"linePrefix")));return a;function l(r){if(r===null){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,a}function n(r){if(r===null){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,a}}var Oy={resolveAll:Fy()},zy=Hy("string"),qy=Hy("text");function Hy(e){return{resolveAll:Fy(e==="text"?yk:void 0),tokenize:t};function t(a){let l=this,n=this.parser.constructs[e],r=a.attempt(n,u,o);return u;function u(f){return s(f)?r(f):o(f)}function o(f){if(f===null){a.consume(f);return}return a.enter("data"),a.consume(f),i}function i(f){return s(f)?(a.exit("data"),r(f)):(a.consume(f),i)}function s(f){if(f===null)return!0;let c=n[f],p=-1;if(c)for(;++p<c.length;){let d=c[p];if(!d.previous||d.previous.call(l,l.previous))return!0}return!1}}}function Fy(e){return t;function t(a,l){let n=-1,r;for(;++n<=a.length;)r===void 0?a[n]&&a[n][1].type==="data"&&(r=n,n++):(!a[n]||a[n][1].type!=="data")&&(n!==r+2&&(a[r][1].end=a[n-1][1].end,a.splice(r+2,n-r-2),n=r+2),r=void 0);return e?e(a,l):a}}function yk(e,t){let a=0;for(;++a<=e.length;)if((a===e.length||e[a][1].type==="lineEnding")&&e[a-1][1].type==="data"){let l=e[a-1][1],n=t.sliceStream(l),r=n.length,u=-1,o=0,i;for(;r--;){let s=n[r];if(typeof s=="string"){for(u=s.length;s.charCodeAt(u-1)===32;)o++,u--;if(u)break;u=-1}else if(s===-2)i=!0,o++;else if(s!==-1){r++;break}}if(t._contentTypeTextTrailing&&a===e.length&&(o=0),o){let s={type:a===e.length||i||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:r?u:l.start._bufferIndex+u,_index:l.start._index+r,line:l.end.line,column:l.end.column-o,offset:l.end.offset-o},end:{...l.end}};l.end={...s.start},l.start.offset===l.end.offset?Object.assign(l,s):(e.splice(a,0,["enter",s,t],["exit",s,t]),a+=2)}a++}return e}var Dd={};Vp(Dd,{attentionMarkers:()=>Ak,contentInitial:()=>Sk,disable:()=>Tk,document:()=>Ck,flow:()=>Ik,flowInitial:()=>bk,insideSpan:()=>wk,string:()=>vk,text:()=>kk});var Ck={42:it,43:it,45:it,48:it,49:it,50:it,51:it,52:it,53:it,54:it,55:it,56:it,57:it,62:Ui},Sk={91:bd},bk={[-2]:Hu,[-1]:Hu,32:Hu},Ik={35:vd,42:mn,45:[Zi,mn],60:wd,61:Zi,95:mn,96:Gi,126:Gi},vk={38:_i,92:Ni},kk={[-5]:Pu,[-4]:Pu,[-3]:Pu,33:Td,38:_i,42:qu,60:[yd,Ad],91:Md,92:[Id,Ni],93:pn,95:qu,96:Cd},wk={null:[qu,Oy]},Ak={null:[42,95]},Tk={null:[]};function Py(e,t,a){let l={_bufferIndex:-1,_index:0,line:a&&a.line||1,column:a&&a.column||1,offset:a&&a.offset||0},n={},r=[],u=[],o=[],i=!0,s={attempt:M(A),check:M(E),consume:b,enter:w,exit:I,interrupt:M(E,{interrupt:!0})},f={code:null,containerState:{},defineSkip:m,events:[],now:v,parser:e,previous:null,sliceSerialize:g,sliceStream:C,write:d},c=t.tokenize.call(f,s),p;return t.resolveAll&&r.push(t),f;function d(q){return u=mt(u,q),h(),u[u.length-1]!==null?[]:(S(t,0),f.events=El(r,f.events,f),f.events)}function g(q,B){return Dk(C(q),B)}function C(q){return Mk(u,q)}function v(){let{_bufferIndex:q,_index:B,line:O,column:X,offset:W}=l;return{_bufferIndex:q,_index:B,line:O,column:X,offset:W}}function m(q){n[q.line]=q.column,N()}function h(){let q;for(;l._index<u.length;){let B=u[l._index];if(typeof B=="string")for(q=l._index,l._bufferIndex<0&&(l._bufferIndex=0);l._index===q&&l._bufferIndex<B.length;)x(B.charCodeAt(l._bufferIndex));else x(B)}}function x(q){i=void 0,p=q,c=c(q)}function b(q){z(q)?(l.line++,l.column=1,l.offset+=q===-3?2:1,N()):q!==-1&&(l.column++,l.offset++),l._bufferIndex<0?l._index++:(l._bufferIndex++,l._bufferIndex===u[l._index].length&&(l._bufferIndex=-1,l._index++)),f.previous=q,i=!0}function w(q,B){let O=B||{};return O.type=q,O.start=v(),f.events.push(["enter",O,f]),o.push(O),O}function I(q){let B=o.pop();return B.end=v(),f.events.push(["exit",B,f]),B}function A(q,B){S(q,B.from)}function E(q,B){B.restore()}function M(q,B){return O;function O(X,W,ne){let ie,L,re,ve;return Array.isArray(X)?ke(X):"tokenize"in X?ke([X]):y(X);function y(Re){return Ca;function Ca(vt){let ea=vt!==null&&Re[vt],zt=vt!==null&&Re.null,Za=[...Array.isArray(ea)?ea:ea?[ea]:[],...Array.isArray(zt)?zt:zt?[zt]:[]];return ke(Za)(vt)}}function ke(Re){return ie=Re,L=0,Re.length===0?ne:nt(Re[L])}function nt(Re){return Ca;function Ca(vt){return ve=V(),re=Re,Re.partial||(f.currentConstruct=Re),Re.name&&f.parser.constructs.disable.null.includes(Re.name)?ya(vt):Re.tokenize.call(B?Object.assign(Object.create(f),B):f,s,Ya,ya)(vt)}}function Ya(Re){return i=!0,q(re,ve),W}function ya(Re){return i=!0,ve.restore(),++L<ie.length?nt(ie[L]):ne}}}function S(q,B){q.resolveAll&&!r.includes(q)&&r.push(q),q.resolve&&He(f.events,B,f.events.length-B,q.resolve(f.events.slice(B),f)),q.resolveTo&&(f.events=q.resolveTo(f.events,f))}function V(){let q=v(),B=f.previous,O=f.currentConstruct,X=f.events.length,W=Array.from(o);return{from:X,restore:ne};function ne(){l=q,f.previous=B,f.currentConstruct=O,f.events.length=X,o=W,N()}}function N(){l.line in n&&l.column<2&&(l.column=n[l.line],l.offset+=n[l.line]-1)}}function Mk(e,t){let a=t.start._index,l=t.start._bufferIndex,n=t.end._index,r=t.end._bufferIndex,u;if(a===n)u=[e[a].slice(l,r)];else{if(u=e.slice(a,n),l>-1){let o=u[0];typeof o=="string"?u[0]=o.slice(l):u.shift()}r>0&&u.push(e[n].slice(0,r))}return u}function Dk(e,t){let a=-1,l=[],n;for(;++a<e.length;){let r=e[a],u;if(typeof r=="string")u=r;else switch(r){case-5:{u="\r";break}case-4:{u=`
|
|
11
|
+
`;break}case-3:{u=`\r
|
|
12
|
+
`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&n)continue;u=" ";break}default:u=String.fromCharCode(r)}n=r===-2,l.push(u)}return l.join("")}function Ed(e){let l={constructs:Fi([Dd,...(e||{}).extensions||[]]),content:n(Ay),defined:[],document:n(My),flow:n(Ry),lazy:{},string:n(zy),text:n(qy)};return l;function n(r){return u;function u(o){return Py(l,r,o)}}}function Bd(e){for(;!Xi(e););return e}var Uy=/[\0\t\n\r]/g;function Rd(){let e=1,t="",a=!0,l;return n;function n(r,u,o){let i=[],s,f,c,p,d;for(r=t+(typeof r=="string"?r.toString():new TextDecoder(u||void 0).decode(r)),c=0,t="",a&&(r.charCodeAt(0)===65279&&c++,a=void 0);c<r.length;){if(Uy.lastIndex=c,s=Uy.exec(r),p=s&&s.index!==void 0?s.index:r.length,d=r.charCodeAt(p),!s){t=r.slice(c);break}if(d===10&&c===p&&l)i.push(-3),l=void 0;else switch(l&&(i.push(-5),l=void 0),c<p&&(i.push(r.slice(c,p)),e+=p-c),d){case 0:{i.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,i.push(-2);e++<f;)i.push(-1);break}case 10:{i.push(-4),e=1;break}default:l=!0,e=1}c=p+1}return o&&(l&&i.push(-5),t&&i.push(t),i.push(null)),i}}var Ek=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ny(e){return e.replace(Ek,Bk)}function Bk(e,t,a){if(t)return t;if(a.charCodeAt(0)===35){let n=a.charCodeAt(1),r=n===120||n===88;return Pi(a.slice(r?2:1),r?16:10)}return gr(a)||e}var Gy={}.hasOwnProperty;function Od(e,t,a){return t&&typeof t=="object"&&(a=t,t=void 0),Rk(a)(Bd(Ed(a).document().write(Rd()(e,t,!0))))}function Rk(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(qt),autolinkProtocol:M,autolinkEmail:M,atxHeading:r(Ka),blockQuote:r(vt),characterEscape:M,characterReference:M,codeFenced:r(ea),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:r(ea,u),codeText:r(zt,u),codeTextData:M,data:M,codeFlowValue:M,definition:r(Za),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:r(ua),hardBreakEscape:r(Fl),hardBreakTrailing:r(Fl),htmlFlow:r(oa,u),htmlFlowData:M,htmlText:r(oa,u),htmlTextData:M,image:r(yn),label:u,link:r(qt),listItem:r(rt),listItemValue:p,listOrdered:r(we,c),listUnordered:r(we),paragraph:r(ta),reference:y,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:r(Ka),strong:r(Sa),thematicBreak:r(Wa)},exit:{atxHeading:i(),atxHeadingSequence:w,autolink:i(),autolinkEmail:Ca,autolinkProtocol:Re,blockQuote:i(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:nt,characterReferenceMarkerNumeric:nt,characterReferenceValue:Ya,characterReference:ya,codeFenced:i(v),codeFencedFence:C,codeFencedFenceInfo:d,codeFencedFenceMeta:g,codeFlowValue:S,codeIndented:i(m),codeText:i(O),codeTextData:S,data:S,definition:i(),definitionDestinationString:b,definitionLabelString:h,definitionTitleString:x,emphasis:i(),hardBreakEscape:i(N),hardBreakTrailing:i(N),htmlFlow:i(q),htmlFlowData:S,htmlText:i(B),htmlTextData:S,image:i(W),label:ie,labelText:ne,lineEnding:V,link:i(X),listItem:i(),listOrdered:i(),listUnordered:i(),paragraph:i(),referenceString:ke,resourceDestinationString:L,resourceTitleString:re,resource:ve,setextHeading:i(E),setextHeadingLineSequence:A,setextHeadingText:I,strong:i(),thematicBreak:i()}};Vy(t,(e||{}).mdastExtensions||[]);let a={};return l;function l(k){let R={type:"root",children:[]},F={stack:[R],tokenStack:[],config:t,enter:o,exit:s,buffer:u,resume:f,data:a},Y=[],G=-1;for(;++G<k.length;)if(k[G][1].type==="listOrdered"||k[G][1].type==="listUnordered")if(k[G][0]==="enter")Y.push(G);else{let ht=Y.pop();G=n(k,ht,G)}for(G=-1;++G<k.length;){let ht=t[k[G][0]];Gy.call(ht,k[G][1].type)&&ht[k[G][1].type].call(Object.assign({sliceSerialize:k[G][2].sliceSerialize},F),k[G][1])}if(F.tokenStack.length>0){let ht=F.tokenStack[F.tokenStack.length-1];(ht[1]||_y).call(F,void 0,ht[0])}for(R.position={start:Bl(k.length>0?k[0][1].start:{line:1,column:1,offset:0}),end:Bl(k.length>0?k[k.length-2][1].end:{line:1,column:1,offset:0})},G=-1;++G<t.transforms.length;)R=t.transforms[G](R)||R;return R}function n(k,R,F){let Y=R-1,G=-1,ht=!1,ba,Ht,Ja,$a;for(;++Y<=F;){let Ae=k[Y];switch(Ae[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ae[0]==="enter"?G++:G--,$a=void 0;break}case"lineEndingBlank":{Ae[0]==="enter"&&(ba&&!$a&&!G&&!Ja&&(Ja=Y),$a=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:$a=void 0}if(!G&&Ae[0]==="enter"&&Ae[1].type==="listItemPrefix"||G===-1&&Ae[0]==="exit"&&(Ae[1].type==="listUnordered"||Ae[1].type==="listOrdered")){if(ba){let Sn=Y;for(Ht=void 0;Sn--;){let Ia=k[Sn];if(Ia[1].type==="lineEnding"||Ia[1].type==="lineEndingBlank"){if(Ia[0]==="exit")continue;Ht&&(k[Ht][1].type="lineEndingBlank",ht=!0),Ia[1].type="lineEnding",Ht=Sn}else if(!(Ia[1].type==="linePrefix"||Ia[1].type==="blockQuotePrefix"||Ia[1].type==="blockQuotePrefixWhitespace"||Ia[1].type==="blockQuoteMarker"||Ia[1].type==="listItemIndent"))break}Ja&&(!Ht||Ja<Ht)&&(ba._spread=!0),ba.end=Object.assign({},Ht?k[Ht][1].start:Ae[1].end),k.splice(Ht||Y,0,["exit",ba,Ae[2]]),Y++,F++}if(Ae[1].type==="listItemPrefix"){let Sn={type:"listItem",_spread:!1,start:Object.assign({},Ae[1].start),end:void 0};ba=Sn,k.splice(Y,0,["enter",Sn,Ae[2]]),Y++,F++,Ja=void 0,$a=!0}}}return k[R][1]._spread=ht,F}function r(k,R){return F;function F(Y){o.call(this,k(Y),Y),R&&R.call(this,Y)}}function u(){this.stack.push({type:"fragment",children:[]})}function o(k,R,F){this.stack[this.stack.length-1].children.push(k),this.stack.push(k),this.tokenStack.push([R,F||void 0]),k.position={start:Bl(R.start),end:void 0}}function i(k){return R;function R(F){k&&k.call(this,F),s.call(this,F)}}function s(k,R){let F=this.stack.pop(),Y=this.tokenStack.pop();if(Y)Y[0].type!==k.type&&(R?R.call(this,k,Y[0]):(Y[1]||_y).call(this,k,Y[0]));else throw new Error("Cannot close `"+k.type+"` ("+Ml({start:k.start,end:k.end})+"): it\u2019s not open");F.position.end=Bl(k.end)}function f(){return sn(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(k){if(this.data.expectingFirstListItemValue){let R=this.stack[this.stack.length-2];R.start=Number.parseInt(this.sliceSerialize(k),10),this.data.expectingFirstListItemValue=void 0}}function d(){let k=this.resume(),R=this.stack[this.stack.length-1];R.lang=k}function g(){let k=this.resume(),R=this.stack[this.stack.length-1];R.meta=k}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){let k=this.resume(),R=this.stack[this.stack.length-1];R.value=k.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){let k=this.resume(),R=this.stack[this.stack.length-1];R.value=k.replace(/(\r?\n|\r)$/g,"")}function h(k){let R=this.resume(),F=this.stack[this.stack.length-1];F.label=R,F.identifier=ot(this.sliceSerialize(k)).toLowerCase()}function x(){let k=this.resume(),R=this.stack[this.stack.length-1];R.title=k}function b(){let k=this.resume(),R=this.stack[this.stack.length-1];R.url=k}function w(k){let R=this.stack[this.stack.length-1];if(!R.depth){let F=this.sliceSerialize(k).length;R.depth=F}}function I(){this.data.setextHeadingSlurpLineEnding=!0}function A(k){let R=this.stack[this.stack.length-1];R.depth=this.sliceSerialize(k).codePointAt(0)===61?1:2}function E(){this.data.setextHeadingSlurpLineEnding=void 0}function M(k){let F=this.stack[this.stack.length-1].children,Y=F[F.length-1];(!Y||Y.type!=="text")&&(Y=Cn(),Y.position={start:Bl(k.start),end:void 0},F.push(Y)),this.stack.push(Y)}function S(k){let R=this.stack.pop();R.value+=this.sliceSerialize(k),R.position.end=Bl(k.end)}function V(k){let R=this.stack[this.stack.length-1];if(this.data.atHardBreak){let F=R.children[R.children.length-1];F.position.end=Bl(k.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(R.type)&&(M.call(this,k),S.call(this,k))}function N(){this.data.atHardBreak=!0}function q(){let k=this.resume(),R=this.stack[this.stack.length-1];R.value=k}function B(){let k=this.resume(),R=this.stack[this.stack.length-1];R.value=k}function O(){let k=this.resume(),R=this.stack[this.stack.length-1];R.value=k}function X(){let k=this.stack[this.stack.length-1];if(this.data.inReference){let R=this.data.referenceType||"shortcut";k.type+="Reference",k.referenceType=R,delete k.url,delete k.title}else delete k.identifier,delete k.label;this.data.referenceType=void 0}function W(){let k=this.stack[this.stack.length-1];if(this.data.inReference){let R=this.data.referenceType||"shortcut";k.type+="Reference",k.referenceType=R,delete k.url,delete k.title}else delete k.identifier,delete k.label;this.data.referenceType=void 0}function ne(k){let R=this.sliceSerialize(k),F=this.stack[this.stack.length-2];F.label=Ny(R),F.identifier=ot(R).toLowerCase()}function ie(){let k=this.stack[this.stack.length-1],R=this.resume(),F=this.stack[this.stack.length-1];if(this.data.inReference=!0,F.type==="link"){let Y=k.children;F.children=Y}else F.alt=R}function L(){let k=this.resume(),R=this.stack[this.stack.length-1];R.url=k}function re(){let k=this.resume(),R=this.stack[this.stack.length-1];R.title=k}function ve(){this.data.inReference=void 0}function y(){this.data.referenceType="collapsed"}function ke(k){let R=this.resume(),F=this.stack[this.stack.length-1];F.label=R,F.identifier=ot(this.sliceSerialize(k)).toLowerCase(),this.data.referenceType="full"}function nt(k){this.data.characterReferenceType=k.type}function Ya(k){let R=this.sliceSerialize(k),F=this.data.characterReferenceType,Y;F?(Y=Pi(R,F==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Y=gr(R);let G=this.stack[this.stack.length-1];G.value+=Y}function ya(k){let R=this.stack.pop();R.position.end=Bl(k.end)}function Re(k){S.call(this,k);let R=this.stack[this.stack.length-1];R.url=this.sliceSerialize(k)}function Ca(k){S.call(this,k);let R=this.stack[this.stack.length-1];R.url="mailto:"+this.sliceSerialize(k)}function vt(){return{type:"blockquote",children:[]}}function ea(){return{type:"code",lang:null,meta:null,value:""}}function zt(){return{type:"inlineCode",value:""}}function Za(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ua(){return{type:"emphasis",children:[]}}function Ka(){return{type:"heading",depth:0,children:[]}}function Fl(){return{type:"break"}}function oa(){return{type:"html",value:""}}function yn(){return{type:"image",title:null,url:"",alt:null}}function qt(){return{type:"link",title:null,url:"",children:[]}}function we(k){return{type:"list",ordered:k.type==="listOrdered",start:null,spread:k._spread,children:[]}}function rt(k){return{type:"listItem",spread:k._spread,checked:null,children:[]}}function ta(){return{type:"paragraph",children:[]}}function Sa(){return{type:"strong",children:[]}}function Cn(){return{type:"text",value:""}}function Wa(){return{type:"thematicBreak"}}}function Bl(e){return{line:e.line,column:e.column,offset:e.offset}}function Vy(e,t){let a=-1;for(;++a<t.length;){let l=t[a];Array.isArray(l)?Vy(e,l):Ok(e,l)}}function Ok(e,t){let a;for(a in t)if(Gy.call(t,a))switch(a){case"canContainEols":{let l=t[a];l&&e[a].push(...l);break}case"transforms":{let l=t[a];l&&e[a].push(...l);break}case"enter":case"exit":{let l=t[a];l&&Object.assign(e[a],l);break}}}function _y(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ml({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ml({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ml({start:t.start,end:t.end})+") is still open")}function Ki(e){let t=this;t.parser=a;function a(l){return Od(l,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Xy(e,t){let a={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,a),e.applyData(t,a)}function jy(e,t){let a={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,a),[e.applyData(t,a),{type:"text",value:`
|
|
13
|
+
`}]}function Qy(e,t){let a=t.value?t.value+`
|
|
14
|
+
`:"",l={},n=t.lang?t.lang.split(/\s+/):[];n.length>0&&(l.className=["language-"+n[0]]);let r={type:"element",tagName:"code",properties:l,children:[{type:"text",value:a}]};return t.meta&&(r.data={meta:t.meta}),e.patch(t,r),r=e.applyData(t,r),r={type:"element",tagName:"pre",properties:{},children:[r]},e.patch(t,r),r}function Yy(e,t){let a={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Zy(e,t){let a={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Ky(e,t){let a=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",l=String(t.identifier).toUpperCase(),n=Kt(l.toLowerCase()),r=e.footnoteOrder.indexOf(l),u,o=e.footnoteCounts.get(l);o===void 0?(o=0,e.footnoteOrder.push(l),u=e.footnoteOrder.length):u=r+1,o+=1,e.footnoteCounts.set(l,o);let i={type:"element",tagName:"a",properties:{href:"#"+a+"fn-"+n,id:a+"fnref-"+n+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,i);let s={type:"element",tagName:"sup",properties:{},children:[i]};return e.patch(t,s),e.applyData(t,s)}function Wy(e,t){let a={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Jy(e,t){if(e.options.allowDangerousHtml){let a={type:"raw",value:t.value};return e.patch(t,a),e.applyData(t,a)}}function Wi(e,t){let a=t.referenceType,l="]";if(a==="collapsed"?l+="[]":a==="full"&&(l+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+l}];let n=e.all(t),r=n[0];r&&r.type==="text"?r.value="["+r.value:n.unshift({type:"text",value:"["});let u=n[n.length-1];return u&&u.type==="text"?u.value+=l:n.push({type:"text",value:l}),n}function $y(e,t){let a=String(t.identifier).toUpperCase(),l=e.definitionById.get(a);if(!l)return Wi(e,t);let n={src:Kt(l.url||""),alt:t.alt};l.title!==null&&l.title!==void 0&&(n.title=l.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function eC(e,t){let a={src:Kt(t.url)};t.alt!==null&&t.alt!==void 0&&(a.alt=t.alt),t.title!==null&&t.title!==void 0&&(a.title=t.title);let l={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,l),e.applyData(t,l)}function tC(e,t){let a={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,a);let l={type:"element",tagName:"code",properties:{},children:[a]};return e.patch(t,l),e.applyData(t,l)}function aC(e,t){let a=String(t.identifier).toUpperCase(),l=e.definitionById.get(a);if(!l)return Wi(e,t);let n={href:Kt(l.url||"")};l.title!==null&&l.title!==void 0&&(n.title=l.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function lC(e,t){let a={href:Kt(t.url)};t.title!==null&&t.title!==void 0&&(a.title=t.title);let l={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function nC(e,t,a){let l=e.all(t),n=a?zk(a):rC(t),r={},u=[];if(typeof t.checked=="boolean"){let f=l[0],c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},l.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),r.className=["task-list-item"]}let o=-1;for(;++o<l.length;){let f=l[o];(n||o!==0||f.type!=="element"||f.tagName!=="p")&&u.push({type:"text",value:`
|
|
15
|
+
`}),f.type==="element"&&f.tagName==="p"&&!n?u.push(...f.children):u.push(f)}let i=l[l.length-1];i&&(n||i.type!=="element"||i.tagName!=="p")&&u.push({type:"text",value:`
|
|
16
|
+
`});let s={type:"element",tagName:"li",properties:r,children:u};return e.patch(t,s),e.applyData(t,s)}function zk(e){let t=!1;if(e.type==="list"){t=e.spread||!1;let a=e.children,l=-1;for(;!t&&++l<a.length;)t=rC(a[l])}return t}function rC(e){let t=e.spread;return t==null?e.children.length>1:t}function uC(e,t){let a={},l=e.all(t),n=-1;for(typeof t.start=="number"&&t.start!==1&&(a.start=t.start);++n<l.length;){let u=l[n];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){a.className=["contains-task-list"];break}}let r={type:"element",tagName:t.ordered?"ol":"ul",properties:a,children:e.wrap(l,!0)};return e.patch(t,r),e.applyData(t,r)}function oC(e,t){let a={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function iC(e,t){let a={type:"root",children:e.wrap(e.all(t))};return e.patch(t,a),e.applyData(t,a)}function sC(e,t){let a={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function fC(e,t){let a=e.all(t),l=a.shift(),n=[];if(l){let u={type:"element",tagName:"thead",properties:{},children:e.wrap([l],!0)};e.patch(t.children[0],u),n.push(u)}if(a.length>0){let u={type:"element",tagName:"tbody",properties:{},children:e.wrap(a,!0)},o=hr(t.children[1]),i=Hi(t.children[t.children.length-1]);o&&i&&(u.position={start:o,end:i}),n.push(u)}let r={type:"element",tagName:"table",properties:{},children:e.wrap(n,!0)};return e.patch(t,r),e.applyData(t,r)}function cC(e,t,a){let l=a?a.children:void 0,r=(l?l.indexOf(t):1)===0?"th":"td",u=a&&a.type==="table"?a.align:void 0,o=u?u.length:t.children.length,i=-1,s=[];for(;++i<o;){let c=t.children[i],p={},d=u?u[i]:void 0;d&&(p.align=d);let g={type:"element",tagName:r,properties:p,children:[]};c&&(g.children=e.all(c),e.patch(c,g),g=e.applyData(c,g)),s.push(g)}let f={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,f),e.applyData(t,f)}function dC(e,t){let a={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function mC(e){let t=String(e),a=/\r?\n|\r/g,l=a.exec(t),n=0,r=[];for(;l;)r.push(pC(t.slice(n,l.index),n>0,!0),l[0]),n=l.index+l[0].length,l=a.exec(t);return r.push(pC(t.slice(n),n>0,!1)),r.join("")}function pC(e,t,a){let l=0,n=e.length;if(t){let r=e.codePointAt(l);for(;r===9||r===32;)l++,r=e.codePointAt(l)}if(a){let r=e.codePointAt(n-1);for(;r===9||r===32;)n--,r=e.codePointAt(n-1)}return n>l?e.slice(l,n):""}function hC(e,t){let a={type:"text",value:mC(String(t.value))};return e.patch(t,a),e.applyData(t,a)}function gC(e,t){let a={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,a),e.applyData(t,a)}var xC={blockquote:Xy,break:jy,code:Qy,delete:Yy,emphasis:Zy,footnoteReference:Ky,heading:Wy,html:Jy,imageReference:$y,image:eC,inlineCode:tC,linkReference:aC,link:lC,listItem:nC,list:uC,paragraph:oC,root:iC,strong:sC,table:fC,tableCell:dC,tableRow:cC,text:hC,thematicBreak:gC,toml:Ji,yaml:Ji,definition:Ji,footnoteDefinition:Ji};function Ji(){}var LC=typeof self=="object"?self:globalThis,Pk=(e,t)=>{let a=(n,r)=>(e.set(r,n),n),l=n=>{if(e.has(n))return e.get(n);let[r,u]=t[n];switch(r){case 0:case-1:return a(u,n);case 1:{let o=a([],n);for(let i of u)o.push(l(i));return o}case 2:{let o=a({},n);for(let[i,s]of u)o[l(i)]=l(s);return o}case 3:return a(new Date(u),n);case 4:{let{source:o,flags:i}=u;return a(new RegExp(o,i),n)}case 5:{let o=a(new Map,n);for(let[i,s]of u)o.set(l(i),l(s));return o}case 6:{let o=a(new Set,n);for(let i of u)o.add(l(i));return o}case 7:{let{name:o,message:i}=u;return a(new LC[o](i),n)}case 8:return a(BigInt(u),n);case"BigInt":return a(Object(BigInt(u)),n);case"ArrayBuffer":return a(new Uint8Array(u).buffer,u);case"DataView":{let{buffer:o}=new Uint8Array(u);return a(new DataView(o),u)}}return a(new LC[r](u),n)};return l},Hd=e=>Pk(new Map,e)(0);var xr="",{toString:Uk}={},{keys:Nk}=Object,Uu=e=>{let t=typeof e;if(t!=="object"||!e)return[0,t];let a=Uk.call(e).slice(8,-1);switch(a){case"Array":return[1,xr];case"Object":return[2,xr];case"Date":return[3,xr];case"RegExp":return[4,xr];case"Map":return[5,xr];case"Set":return[6,xr];case"DataView":return[1,a]}return a.includes("Array")?[1,a]:a.includes("Error")?[7,a]:[2,a]},es=([e,t])=>e===0&&(t==="function"||t==="symbol"),_k=(e,t,a,l)=>{let n=(u,o)=>{let i=l.push(u)-1;return a.set(o,i),i},r=u=>{if(a.has(u))return a.get(u);let[o,i]=Uu(u);switch(o){case 0:{let f=u;switch(i){case"bigint":o=8,f=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+i);f=null;break;case"undefined":return n([-1],u)}return n([o,f],u)}case 1:{if(i){let p=u;return i==="DataView"?p=new Uint8Array(u.buffer):i==="ArrayBuffer"&&(p=new Uint8Array(u)),n([i,[...p]],u)}let f=[],c=n([o,f],u);for(let p of u)f.push(r(p));return c}case 2:{if(i)switch(i){case"BigInt":return n([i,u.toString()],u);case"Boolean":case"Number":case"String":return n([i,u.valueOf()],u)}if(t&&"toJSON"in u)return r(u.toJSON());let f=[],c=n([o,f],u);for(let p of Nk(u))(e||!es(Uu(u[p])))&&f.push([r(p),r(u[p])]);return c}case 3:return n([o,u.toISOString()],u);case 4:{let{source:f,flags:c}=u;return n([o,{source:f,flags:c}],u)}case 5:{let f=[],c=n([o,f],u);for(let[p,d]of u)(e||!(es(Uu(p))||es(Uu(d))))&&f.push([r(p),r(d)]);return c}case 6:{let f=[],c=n([o,f],u);for(let p of u)(e||!es(Uu(p)))&&f.push(r(p));return c}}let{message:s}=u;return n([o,{name:i,message:s}],u)};return r},Fd=(e,{json:t,lossy:a}={})=>{let l=[];return _k(!(t||a),!!t,new Map,l)(e),l};var Lr=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Hd(Fd(e,t)):structuredClone(e):(e,t)=>Hd(Fd(e,t));function Gk(e,t){let a=[{type:"text",value:"\u21A9"}];return t>1&&a.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),a}function Vk(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function IC(e){let t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=e.options.footnoteBackContent||Gk,l=e.options.footnoteBackLabel||Vk,n=e.options.footnoteLabel||"Footnotes",r=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[],i=-1;for(;++i<e.footnoteOrder.length;){let s=e.footnoteById.get(e.footnoteOrder[i]);if(!s)continue;let f=e.all(s),c=String(s.identifier).toUpperCase(),p=Kt(c.toLowerCase()),d=0,g=[],C=e.footnoteCounts.get(c);for(;C!==void 0&&++d<=C;){g.length>0&&g.push({type:"text",value:" "});let h=typeof a=="string"?a:a(i,d);typeof h=="string"&&(h={type:"text",value:h}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof l=="string"?l:l(i,d),className:["data-footnote-backref"]},children:Array.isArray(h)?h:[h]})}let v=f[f.length-1];if(v&&v.type==="element"&&v.tagName==="p"){let h=v.children[v.children.length-1];h&&h.type==="text"?h.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...g)}else f.push(...g);let m={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(f,!0)};e.patch(s,m),o.push(m)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:r,properties:{...Lr(u),id:"footnote-label"},children:[{type:"text",value:n}]},{type:"text",value:`
|
|
17
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
|
|
18
|
+
`}]}}var Rl=(function(e){if(e==null)return Yk;if(typeof e=="function")return ts(e);if(typeof e=="object")return Array.isArray(e)?Xk(e):jk(e);if(typeof e=="string")return Qk(e);throw new Error("Expected function, string, or object as test")});function Xk(e){let t=[],a=-1;for(;++a<e.length;)t[a]=Rl(e[a]);return ts(l);function l(...n){let r=-1;for(;++r<t.length;)if(t[r].apply(this,n))return!0;return!1}}function jk(e){let t=e;return ts(a);function a(l){let n=l,r;for(r in e)if(n[r]!==t[r])return!1;return!0}}function Qk(e){return ts(t);function t(a){return a&&a.type===e}}function ts(e){return t;function t(a,l,n){return!!(Zk(a)&&e.call(this,a,typeof l=="number"?l:void 0,n||void 0))}}function Yk(){return!0}function Zk(e){return e!==null&&typeof e=="object"&&"type"in e}var vC=[],as=!0,hn=!1,ls="skip";function Nu(e,t,a,l){let n;typeof t=="function"&&typeof a!="function"?(l=a,a=t):n=t;let r=Rl(n),u=l?-1:1;o(e,void 0,[])();function o(i,s,f){let c=i&&typeof i=="object"?i:{};if(typeof c.type=="string"){let d=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(i.type+(d?"<"+d+">":""))+")"})}return p;function p(){let d=vC,g,C,v;if((!t||r(i,s,f[f.length-1]||void 0))&&(d=Kk(a(i,f)),d[0]===hn))return d;if("children"in i&&i.children){let m=i;if(m.children&&d[0]!==ls)for(C=(l?m.children.length:-1)+u,v=f.concat(m);C>-1&&C<m.children.length;){let h=m.children[C];if(g=o(h,C,v)(),g[0]===hn)return g;C=typeof g[1]=="number"?g[1]:C+u}}return d}}}function Kk(e){return Array.isArray(e)?e:typeof e=="number"?[as,e]:e==null?vC:[e]}function gn(e,t,a,l){let n,r,u;typeof t=="function"&&typeof a!="function"?(r=void 0,u=t,n=a):(r=t,u=a,n=l),Nu(e,r,o,n);function o(i,s){let f=s[s.length-1],c=f?f.children.indexOf(i):void 0;return u(i,c,f)}}var Pd={}.hasOwnProperty,Wk={};function wC(e,t){let a=t||Wk,l=new Map,n=new Map,r=new Map,u={...xC,...a.handlers},o={all:s,applyData:$k,definitionById:l,footnoteById:n,footnoteCounts:r,footnoteOrder:[],handlers:u,one:i,options:a,patch:Jk,wrap:tw};return gn(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){let c=f.type==="definition"?l:n,p=String(f.identifier).toUpperCase();c.has(p)||c.set(p,f)}}),o;function i(f,c){let p=f.type,d=o.handlers[p];if(Pd.call(o.handlers,p)&&d)return d(o,f,c);if(o.options.passThrough&&o.options.passThrough.includes(p)){if("children"in f){let{children:C,...v}=f,m=Lr(v);return m.children=o.all(f),m}return Lr(f)}return(o.options.unknownHandler||ew)(o,f,c)}function s(f){let c=[];if("children"in f){let p=f.children,d=-1;for(;++d<p.length;){let g=o.one(p[d],f);if(g){if(d&&p[d-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=kC(g.value)),!Array.isArray(g)&&g.type==="element")){let C=g.children[0];C&&C.type==="text"&&(C.value=kC(C.value))}Array.isArray(g)?c.push(...g):c.push(g)}}}return c}}function Jk(e,t){e.position&&(t.position=pd(e))}function $k(e,t){let a=t;if(e&&e.data){let l=e.data.hName,n=e.data.hChildren,r=e.data.hProperties;if(typeof l=="string")if(a.type==="element")a.tagName=l;else{let u="children"in a?a.children:[a];a={type:"element",tagName:l,properties:{},children:u}}a.type==="element"&&r&&Object.assign(a.properties,Lr(r)),"children"in a&&a.children&&n!==null&&n!==void 0&&(a.children=n)}return a}function ew(e,t){let a=t.data||{},l="value"in t&&!(Pd.call(a,"hProperties")||Pd.call(a,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function tw(e,t){let a=[],l=-1;for(t&&a.push({type:"text",value:`
|
|
19
|
+
`});++l<e.length;)l&&a.push({type:"text",value:`
|
|
20
|
+
`}),a.push(e[l]);return t&&e.length>0&&a.push({type:"text",value:`
|
|
21
|
+
`}),a}function kC(e){let t=0,a=e.charCodeAt(t);for(;a===9||a===32;)t++,a=e.charCodeAt(t);return e.slice(t)}function ns(e,t){let a=wC(e,t),l=a.one(e,void 0),n=IC(a),r=Array.isArray(l)?{type:"root",children:l}:l||{type:"root",children:[]};return n&&("children"in r,r.children.push({type:"text",value:`
|
|
22
|
+
`},n)),r}function rs(e,t){return e&&"run"in e?async function(a,l){let n=ns(a,{file:l,...t});await e.run(n,l)}:function(a,l){return ns(a,{file:l,...e||t})}}function Ud(e){if(e)throw e}var is=J(zC(),1);function _u(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Nd(){let e=[],t={run:a,use:l};return t;function a(...n){let r=-1,u=n.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);o(null,...n);function o(i,...s){let f=e[++r],c=-1;if(i){u(i);return}for(;++c<n.length;)(s[c]===null||s[c]===void 0)&&(s[c]=n[c]);n=s,f?qC(f,o)(...s):u(null,...s)}}function l(n){if(typeof n!="function")throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function qC(e,t){let a;return l;function l(...u){let o=e.length>u.length,i;o&&u.push(n);try{i=e.apply(this,u)}catch(s){let f=s;if(o&&a)throw f;return n(f)}o||(i&&i.then&&typeof i.then=="function"?i.then(r,n):i instanceof Error?n(i):r(i))}function n(u,...o){a||(a=!0,t(u,...o))}function r(u){n(null,u)}}var ra={basename:aw,dirname:lw,extname:nw,join:rw,sep:"/"};function aw(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Gu(e);let a=0,l=-1,n=e.length,r;if(t===void 0||t.length===0||t.length>e.length){for(;n--;)if(e.codePointAt(n)===47){if(r){a=n+1;break}}else l<0&&(r=!0,l=n+1);return l<0?"":e.slice(a,l)}if(t===e)return"";let u=-1,o=t.length-1;for(;n--;)if(e.codePointAt(n)===47){if(r){a=n+1;break}}else u<0&&(r=!0,u=n+1),o>-1&&(e.codePointAt(n)===t.codePointAt(o--)?o<0&&(l=n):(o=-1,l=u));return a===l?l=u:l<0&&(l=e.length),e.slice(a,l)}function lw(e){if(Gu(e),e.length===0)return".";let t=-1,a=e.length,l;for(;--a;)if(e.codePointAt(a)===47){if(l){t=a;break}}else l||(l=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function nw(e){Gu(e);let t=e.length,a=-1,l=0,n=-1,r=0,u;for(;t--;){let o=e.codePointAt(t);if(o===47){if(u){l=t+1;break}continue}a<0&&(u=!0,a=t+1),o===46?n<0?n=t:r!==1&&(r=1):n>-1&&(r=-1)}return n<0||a<0||r===0||r===1&&n===a-1&&n===l+1?"":e.slice(n,a)}function rw(...e){let t=-1,a;for(;++t<e.length;)Gu(e[t]),e[t]&&(a=a===void 0?e[t]:a+"/"+e[t]);return a===void 0?".":uw(a)}function uw(e){Gu(e);let t=e.codePointAt(0)===47,a=ow(e,!t);return a.length===0&&!t&&(a="."),a.length>0&&e.codePointAt(e.length-1)===47&&(a+="/"),t?"/"+a:a}function ow(e,t){let a="",l=0,n=-1,r=0,u=-1,o,i;for(;++u<=e.length;){if(u<e.length)o=e.codePointAt(u);else{if(o===47)break;o=47}if(o===47){if(!(n===u-1||r===1))if(n!==u-1&&r===2){if(a.length<2||l!==2||a.codePointAt(a.length-1)!==46||a.codePointAt(a.length-2)!==46){if(a.length>2){if(i=a.lastIndexOf("/"),i!==a.length-1){i<0?(a="",l=0):(a=a.slice(0,i),l=a.length-1-a.lastIndexOf("/")),n=u,r=0;continue}}else if(a.length>0){a="",l=0,n=u,r=0;continue}}t&&(a=a.length>0?a+"/..":"..",l=2)}else a.length>0?a+="/"+e.slice(n+1,u):a=e.slice(n+1,u),l=u-n-1;n=u,r=0}else o===46&&r>-1?r++:r=-1}return a}function Gu(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var HC={cwd:iw};function iw(){return"/"}function yr(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function FC(e){if(typeof e=="string")e=new URL(e);else if(!yr(e)){let t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){let t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return sw(e)}function sw(e){if(e.hostname!==""){let l=new TypeError('File URL host must be "localhost" or empty on darwin');throw l.code="ERR_INVALID_FILE_URL_HOST",l}let t=e.pathname,a=-1;for(;++a<t.length;)if(t.codePointAt(a)===37&&t.codePointAt(a+1)===50){let l=t.codePointAt(a+2);if(l===70||l===102){let n=new TypeError("File URL path must not include encoded / characters");throw n.code="ERR_INVALID_FILE_URL_PATH",n}}return decodeURIComponent(t)}var _d=["history","path","basename","stem","extname","dirname"],xn=class{constructor(t){let a;t?yr(t)?a={path:t}:typeof t=="string"||fw(t)?a={value:t}:a=t:a={},this.cwd="cwd"in a?"":HC.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let l=-1;for(;++l<_d.length;){let r=_d[l];r in a&&a[r]!==void 0&&a[r]!==null&&(this[r]=r==="history"?[...a[r]]:a[r])}let n;for(n in a)_d.includes(n)||(this[n]=a[n])}get basename(){return typeof this.path=="string"?ra.basename(this.path):void 0}set basename(t){Vd(t,"basename"),Gd(t,"basename"),this.path=ra.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ra.dirname(this.path):void 0}set dirname(t){PC(this.basename,"dirname"),this.path=ra.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ra.extname(this.path):void 0}set extname(t){if(Gd(t,"extname"),PC(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=ra.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){yr(t)&&(t=FC(t)),Vd(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ra.basename(this.path,this.extname):void 0}set stem(t){Vd(t,"stem"),Gd(t,"stem"),this.path=ra.join(this.dirname||"",t+(this.extname||""))}fail(t,a,l){let n=this.message(t,a,l);throw n.fatal=!0,n}info(t,a,l){let n=this.message(t,a,l);return n.fatal=void 0,n}message(t,a,l){let n=new qe(t,a,l);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function Gd(e,t){if(e&&e.includes(ra.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ra.sep+"`")}function Vd(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function PC(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function fw(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var UC=(function(e){let l=this.constructor.prototype,n=l[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,l),r});var cw={}.hasOwnProperty,Yd=class e extends UC{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=Nd()}copy(){let t=new e,a=-1;for(;++a<this.attachers.length;){let l=this.attachers[a];t.use(...l)}return t.data((0,is.default)(!0,{},this.namespace)),t}data(t,a){return typeof t=="string"?arguments.length===2?(Qd("data",this.frozen),this.namespace[t]=a,this):cw.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Qd("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;let t=this;for(;++this.freezeIndex<this.attachers.length;){let[a,...l]=this.attachers[this.freezeIndex];if(l[0]===!1)continue;l[0]===!0&&(l[0]=void 0);let n=a.call(t,...l);typeof n=="function"&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();let a=os(t),l=this.parser||this.Parser;return Xd("parse",l),l(String(a),a)}process(t,a){let l=this;return this.freeze(),Xd("process",this.parser||this.Parser),jd("process",this.compiler||this.Compiler),a?n(void 0,a):new Promise(n);function n(r,u){let o=os(t),i=l.parse(o);l.run(i,o,function(f,c,p){if(f||!c||!p)return s(f);let d=c,g=l.stringify(d,p);pw(g)?p.value=g:p.result=g,s(f,p)});function s(f,c){f||!c?u(f):r?r(c):a(void 0,c)}}}processSync(t){let a=!1,l;return this.freeze(),Xd("processSync",this.parser||this.Parser),jd("processSync",this.compiler||this.Compiler),this.process(t,n),_C("processSync","process",a),l;function n(r,u){a=!0,Ud(r),l=u}}run(t,a,l){NC(t),this.freeze();let n=this.transformers;return!l&&typeof a=="function"&&(l=a,a=void 0),l?r(void 0,l):new Promise(r);function r(u,o){let i=os(a);n.run(t,i,s);function s(f,c,p){let d=c||t;f?o(f):u?u(d):l(void 0,d,p)}}}runSync(t,a){let l=!1,n;return this.run(t,a,r),_C("runSync","run",l),n;function r(u,o){Ud(u),n=o,l=!0}}stringify(t,a){this.freeze();let l=os(a),n=this.compiler||this.Compiler;return jd("stringify",n),NC(t),n(t,l)}use(t,...a){let l=this.attachers,n=this.namespace;if(Qd("use",this.frozen),t!=null)if(typeof t=="function")i(t,a);else if(typeof t=="object")Array.isArray(t)?o(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function r(s){if(typeof s=="function")i(s,[]);else if(typeof s=="object")if(Array.isArray(s)){let[f,...c]=s;i(f,c)}else u(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function u(s){if(!("plugins"in s)&&!("settings"in s))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");o(s.plugins),s.settings&&(n.settings=(0,is.default)(!0,n.settings,s.settings))}function o(s){let f=-1;if(s!=null)if(Array.isArray(s))for(;++f<s.length;){let c=s[f];r(c)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function i(s,f){let c=-1,p=-1;for(;++c<l.length;)if(l[c][0]===s){p=c;break}if(p===-1)l.push([s,...f]);else if(f.length>0){let[d,...g]=f,C=l[p][1];_u(C)&&_u(d)&&(d=(0,is.default)(!0,C,d)),l[p]=[s,d,...g]}}}},Zd=new Yd().freeze();function Xd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function jd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Qd(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function NC(e){if(!_u(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function _C(e,t,a){if(!a)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function os(e){return dw(e)?e:new xn(e)}function dw(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function pw(e){return typeof e=="string"||mw(e)}function mw(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var hw="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",GC=[],VC={allowDangerousHtml:!0},gw=/^(https?|ircs?|mailto|xmpp)$/i,xw=[{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 Kd(e){let t=Lw(e),a=yw(e);return Cw(t.runSync(t.parse(a),a),e)}function Lw(e){let t=e.rehypePlugins||GC,a=e.remarkPlugins||GC,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...VC}:VC;return Zd().use(Ki).use(a).use(rs,l).use(t)}function yw(e){let t=e.children||"",a=new xn;return typeof t=="string"?a.value=t:(""+t,void 0),a}function Cw(e,t){let a=t.allowedElements,l=t.allowElement,n=t.components,r=t.disallowedElements,u=t.skipHtml,o=t.unwrapDisallowed,i=t.urlTransform||jC;for(let f of xw)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+hw+f.id,void 0);return a&&r&&void 0,gn(e,s),gd(e,{Fragment:Cr.Fragment,components:n,ignoreInvalidStyle:!0,jsx:Cr.jsx,jsxs:Cr.jsxs,passKeys:!0,passNode:!0});function s(f,c,p){if(f.type==="raw"&&p&&typeof c=="number")return u?p.children.splice(c,1):p.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let d;for(d in Ou)if(Object.hasOwn(Ou,d)&&Object.hasOwn(f.properties,d)){let g=f.properties[d],C=Ou[d];(C===null||C.includes(f.tagName))&&(f.properties[d]=i(String(g||""),d,f))}}if(f.type==="element"){let d=a?!a.includes(f.tagName):r?r.includes(f.tagName):!1;if(!d&&l&&typeof c=="number"&&(d=!l(f,c,p)),d&&p&&typeof c=="number")return o&&f.children?p.children.splice(c,1,...f.children):p.children.splice(c,1),c}}}function jC(e){let t=e.indexOf(":"),a=e.indexOf("?"),l=e.indexOf("#"),n=e.indexOf("/");return t===-1||n!==-1&&t>n||a!==-1&&t>a||l!==-1&&t>l||gw.test(e.slice(0,t))?e:""}function Wd(e,t){let a=String(e);if(typeof t!="string")throw new TypeError("Expected character");let l=0,n=a.indexOf(t);for(;n!==-1;)l++,n=a.indexOf(t,n+t.length);return l}function Jd(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function $d(e,t,a){let n=Rl((a||{}).ignore||[]),r=Sw(t),u=-1;for(;++u<r.length;)Nu(e,"text",o);function o(s,f){let c=-1,p;for(;++c<f.length;){let d=f[c],g=p?p.children:void 0;if(n(d,g?g.indexOf(d):void 0,p))return;p=d}if(p)return i(s,f)}function i(s,f){let c=f[f.length-1],p=r[u][0],d=r[u][1],g=0,v=c.children.indexOf(s),m=!1,h=[];p.lastIndex=0;let x=p.exec(s.value);for(;x;){let b=x.index,w={index:x.index,input:x.input,stack:[...f,s]},I=d(...x,w);if(typeof I=="string"&&(I=I.length>0?{type:"text",value:I}:void 0),I===!1?p.lastIndex=b+1:(g!==b&&h.push({type:"text",value:s.value.slice(g,b)}),Array.isArray(I)?h.push(...I):I&&h.push(I),g=b+x[0].length,m=!0),!p.global)break;x=p.exec(s.value)}return m?(g<s.value.length&&h.push({type:"text",value:s.value.slice(g)}),c.children.splice(v,1,...h)):h=[s],v+h.length}}function Sw(e){let t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");let a=!e[0]||Array.isArray(e[0])?e:[e],l=-1;for(;++l<a.length;){let n=a[l];t.push([bw(n[0]),Iw(n[1])])}return t}function bw(e){return typeof e=="string"?new RegExp(Jd(e),"g"):e}function Iw(e){return typeof e=="function"?e:function(){return e}}var ep="phrasing",tp=["autolink","link","image","label"];function lp(){return{transforms:[Mw],enter:{literalAutolink:vw,literalAutolinkEmail:ap,literalAutolinkHttp:ap,literalAutolinkWww:ap},exit:{literalAutolink:Tw,literalAutolinkEmail:Aw,literalAutolinkHttp:kw,literalAutolinkWww:ww}}}function np(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ep,notInConstruct:tp},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ep,notInConstruct:tp},{character:":",before:"[ps]",after:"\\/",inConstruct:ep,notInConstruct:tp}]}}function vw(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ap(e){this.config.enter.autolinkProtocol.call(this,e)}function kw(e){this.config.exit.autolinkProtocol.call(this,e)}function ww(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Aw(e){this.config.exit.autolinkEmail.call(this,e)}function Tw(e){this.exit(e)}function Mw(e){$d(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Dw],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Ew]],{ignore:["link","linkReference"]})}function Dw(e,t,a,l,n){let r="";if(!QC(n)||(/^w/i.test(t)&&(a=t+a,t="",r="http://"),!Bw(a)))return!1;let u=Rw(a+l);if(!u[0])return!1;let o={type:"link",title:null,url:r+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[o,{type:"text",value:u[1]}]:o}function Ew(e,t,a,l){return!QC(l,!0)||/[-\d_]$/.test(a)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+a,children:[{type:"text",value:t+"@"+a}]}}function Bw(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Rw(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let a=t[0],l=a.indexOf(")"),n=Wd(e,"("),r=Wd(e,")");for(;l!==-1&&n>r;)e+=a.slice(0,l+1),a=a.slice(l+1),l=a.indexOf(")"),r++;return[e,a]}function QC(e,t){let a=e.input.charCodeAt(e.index-1);return(e.index===0||ha(a)||cn(a))&&(!t||a!==47)}YC.peek=_w;function Ow(){this.buffer()}function zw(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function qw(){this.buffer()}function Hw(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Fw(e){let t=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=ot(this.sliceSerialize(e)).toLowerCase(),a.label=t}function Pw(e){this.exit(e)}function Uw(e){let t=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=ot(this.sliceSerialize(e)).toLowerCase(),a.label=t}function Nw(e){this.exit(e)}function _w(){return"["}function YC(e,t,a,l){let n=a.createTracker(l),r=n.move("[^"),u=a.enter("footnoteReference"),o=a.enter("reference");return r+=n.move(a.safe(a.associationId(e),{after:"]",before:r})),o(),u(),r+=n.move("]"),r}function rp(){return{enter:{gfmFootnoteCallString:Ow,gfmFootnoteCall:zw,gfmFootnoteDefinitionLabelString:qw,gfmFootnoteDefinition:Hw},exit:{gfmFootnoteCallString:Fw,gfmFootnoteCall:Pw,gfmFootnoteDefinitionLabelString:Uw,gfmFootnoteDefinition:Nw}}}function up(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:a,footnoteReference:YC},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function a(l,n,r,u){let o=r.createTracker(u),i=o.move("[^"),s=r.enter("footnoteDefinition"),f=r.enter("label");return i+=o.move(r.safe(r.associationId(l),{before:i,after:"]"})),f(),i+=o.move("]:"),l.children&&l.children.length>0&&(o.shift(4),i+=o.move((t?`
|
|
23
|
+
`:" ")+r.indentLines(r.containerFlow(l,o.current()),t?ZC:Gw))),s(),i}}function Gw(e,t,a){return t===0?e:ZC(e,t,a)}function ZC(e,t,a){return(a?"":" ")+e}var Vw=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];KC.peek=Qw;function op(){return{canContainEols:["delete"],enter:{strikethrough:Xw},exit:{strikethrough:jw}}}function ip(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Vw}],handlers:{delete:KC}}}function Xw(e){this.enter({type:"delete",children:[]},e)}function jw(e){this.exit(e)}function KC(e,t,a,l){let n=a.createTracker(l),r=a.enter("strikethrough"),u=n.move("~~");return u+=a.containerPhrasing(e,{...n.current(),before:u,after:"~"}),u+=n.move("~~"),r(),u}function Qw(){return"~"}function Yw(e){return e.length}function JC(e,t){let a=t||{},l=(a.align||[]).concat(),n=a.stringLength||Yw,r=[],u=[],o=[],i=[],s=0,f=-1;for(;++f<e.length;){let C=[],v=[],m=-1;for(e[f].length>s&&(s=e[f].length);++m<e[f].length;){let h=Zw(e[f][m]);if(a.alignDelimiters!==!1){let x=n(h);v[m]=x,(i[m]===void 0||x>i[m])&&(i[m]=x)}C.push(h)}u[f]=C,o[f]=v}let c=-1;if(typeof l=="object"&&"length"in l)for(;++c<s;)r[c]=WC(l[c]);else{let C=WC(l);for(;++c<s;)r[c]=C}c=-1;let p=[],d=[];for(;++c<s;){let C=r[c],v="",m="";C===99?(v=":",m=":"):C===108?v=":":C===114&&(m=":");let h=a.alignDelimiters===!1?1:Math.max(1,i[c]-v.length-m.length),x=v+"-".repeat(h)+m;a.alignDelimiters!==!1&&(h=v.length+h+m.length,h>i[c]&&(i[c]=h),d[c]=h),p[c]=x}u.splice(1,0,p),o.splice(1,0,d),f=-1;let g=[];for(;++f<u.length;){let C=u[f],v=o[f];c=-1;let m=[];for(;++c<s;){let h=C[c]||"",x="",b="";if(a.alignDelimiters!==!1){let w=i[c]-(v[c]||0),I=r[c];I===114?x=" ".repeat(w):I===99?w%2?(x=" ".repeat(w/2+.5),b=" ".repeat(w/2-.5)):(x=" ".repeat(w/2),b=x):b=" ".repeat(w)}a.delimiterStart!==!1&&!c&&m.push("|"),a.padding!==!1&&!(a.alignDelimiters===!1&&h==="")&&(a.delimiterStart!==!1||c)&&m.push(" "),a.alignDelimiters!==!1&&m.push(x),m.push(h),a.alignDelimiters!==!1&&m.push(b),a.padding!==!1&&m.push(" "),(a.delimiterEnd!==!1||c!==s-1)&&m.push("|")}g.push(a.delimiterEnd===!1?m.join("").replace(/ +$/,""):m.join(""))}return g.join(`
|
|
24
|
+
`)}function Zw(e){return e==null?"":String(e)}function WC(e){let t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function $C(e,t,a,l){let n=a.enter("blockquote"),r=a.createTracker(l);r.move("> "),r.shift(2);let u=a.indentLines(a.containerFlow(e,r.current()),Kw);return n(),u}function Kw(e,t,a){return">"+(a?"":" ")+e}function tS(e,t){return eS(e,t.inConstruct,!0)&&!eS(e,t.notInConstruct,!1)}function eS(e,t,a){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return a;let l=-1;for(;++l<t.length;)if(e.includes(t[l]))return!0;return!1}function sp(e,t,a,l){let n=-1;for(;++n<a.unsafe.length;)if(a.unsafe[n].character===`
|
|
25
|
+
`&&tS(a.stack,a.unsafe[n]))return/[ \t]/.test(l.before)?"":" ";return`\\
|
|
26
|
+
`}function aS(e,t){let a=String(e),l=a.indexOf(t),n=l,r=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;l!==-1;)l===n?++r>u&&(u=r):r=1,n=l+t.length,l=a.indexOf(t,n);return u}function lS(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function nS(e){let t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function rS(e,t,a,l){let n=nS(a),r=e.value||"",u=n==="`"?"GraveAccent":"Tilde";if(lS(e,a)){let c=a.enter("codeIndented"),p=a.indentLines(r,Ww);return c(),p}let o=a.createTracker(l),i=n.repeat(Math.max(aS(r,n)+1,3)),s=a.enter("codeFenced"),f=o.move(i);if(e.lang){let c=a.enter(`codeFencedLang${u}`);f+=o.move(a.safe(e.lang,{before:f,after:" ",encode:["`"],...o.current()})),c()}if(e.lang&&e.meta){let c=a.enter(`codeFencedMeta${u}`);f+=o.move(" "),f+=o.move(a.safe(e.meta,{before:f,after:`
|
|
27
|
+
`,encode:["`"],...o.current()})),c()}return f+=o.move(`
|
|
28
|
+
`),r&&(f+=o.move(r+`
|
|
29
|
+
`)),f+=o.move(i),s(),f}function Ww(e,t,a){return(a?"":" ")+e}function Sr(e){let t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function uS(e,t,a,l){let n=Sr(a),r=n==='"'?"Quote":"Apostrophe",u=a.enter("definition"),o=a.enter("label"),i=a.createTracker(l),s=i.move("[");return s+=i.move(a.safe(a.associationId(e),{before:s,after:"]",...i.current()})),s+=i.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=a.enter("destinationLiteral"),s+=i.move("<"),s+=i.move(a.safe(e.url,{before:s,after:">",...i.current()})),s+=i.move(">")):(o=a.enter("destinationRaw"),s+=i.move(a.safe(e.url,{before:s,after:e.title?" ":`
|
|
30
|
+
`,...i.current()}))),o(),e.title&&(o=a.enter(`title${r}`),s+=i.move(" "+n),s+=i.move(a.safe(e.title,{before:s,after:n,...i.current()})),s+=i.move(n),o()),u(),s}function oS(e){let t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Ol(e){return"&#x"+e.toString(16).toUpperCase()+";"}function br(e,t,a){let l=Xa(e),n=Xa(t);return l===void 0?n===void 0?a==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:n===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:l===1?n===void 0?{inside:!1,outside:!1}:n===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:n===void 0?{inside:!1,outside:!1}:n===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}fp.peek=Jw;function fp(e,t,a,l){let n=oS(a),r=a.enter("emphasis"),u=a.createTracker(l),o=u.move(n),i=u.move(a.containerPhrasing(e,{after:n,before:o,...u.current()})),s=i.charCodeAt(0),f=br(l.before.charCodeAt(l.before.length-1),s,n);f.inside&&(i=Ol(s)+i.slice(1));let c=i.charCodeAt(i.length-1),p=br(l.after.charCodeAt(0),c,n);p.inside&&(i=i.slice(0,-1)+Ol(c));let d=u.move(n);return r(),a.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},o+i+d}function Jw(e,t,a){return a.options.emphasis||"*"}function iS(e,t){let a=!1;return gn(e,function(l){if("value"in l&&/\r?\n|\r/.test(l.value)||l.type==="break")return a=!0,hn}),!!((!e.depth||e.depth<3)&&sn(e)&&(t.options.setext||a))}function sS(e,t,a,l){let n=Math.max(Math.min(6,e.depth||1),1),r=a.createTracker(l);if(iS(e,a)){let f=a.enter("headingSetext"),c=a.enter("phrasing"),p=a.containerPhrasing(e,{...r.current(),before:`
|
|
31
|
+
`,after:`
|
|
32
|
+
`});return c(),f(),p+`
|
|
33
|
+
`+(n===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
|
|
34
|
+
`))+1))}let u="#".repeat(n),o=a.enter("headingAtx"),i=a.enter("phrasing");r.move(u+" ");let s=a.containerPhrasing(e,{before:"# ",after:`
|
|
35
|
+
`,...r.current()});return/^[\t ]/.test(s)&&(s=Ol(s.charCodeAt(0))+s.slice(1)),s=s?u+" "+s:u,a.options.closeAtx&&(s+=" "+u),i(),o(),s}cp.peek=$w;function cp(e){return e.value||""}function $w(){return"<"}dp.peek=eA;function dp(e,t,a,l){let n=Sr(a),r=n==='"'?"Quote":"Apostrophe",u=a.enter("image"),o=a.enter("label"),i=a.createTracker(l),s=i.move("![");return s+=i.move(a.safe(e.alt,{before:s,after:"]",...i.current()})),s+=i.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=a.enter("destinationLiteral"),s+=i.move("<"),s+=i.move(a.safe(e.url,{before:s,after:">",...i.current()})),s+=i.move(">")):(o=a.enter("destinationRaw"),s+=i.move(a.safe(e.url,{before:s,after:e.title?" ":")",...i.current()}))),o(),e.title&&(o=a.enter(`title${r}`),s+=i.move(" "+n),s+=i.move(a.safe(e.title,{before:s,after:n,...i.current()})),s+=i.move(n),o()),s+=i.move(")"),u(),s}function eA(){return"!"}pp.peek=tA;function pp(e,t,a,l){let n=e.referenceType,r=a.enter("imageReference"),u=a.enter("label"),o=a.createTracker(l),i=o.move("!["),s=a.safe(e.alt,{before:i,after:"]",...o.current()});i+=o.move(s+"]["),u();let f=a.stack;a.stack=[],u=a.enter("reference");let c=a.safe(a.associationId(e),{before:i,after:"]",...o.current()});return u(),a.stack=f,r(),n==="full"||!s||s!==c?i+=o.move(c+"]"):n==="shortcut"?i=i.slice(0,-1):i+=o.move("]"),i}function tA(){return"!"}mp.peek=aA;function mp(e,t,a){let l=e.value||"",n="`",r=-1;for(;new RegExp("(^|[^`])"+n+"([^`]|$)").test(l);)n+="`";for(/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^`|`$/.test(l))&&(l=" "+l+" ");++r<a.unsafe.length;){let u=a.unsafe[r],o=a.compilePattern(u),i;if(u.atBreak)for(;i=o.exec(l);){let s=i.index;l.charCodeAt(s)===10&&l.charCodeAt(s-1)===13&&s--,l=l.slice(0,s)+" "+l.slice(i.index+1)}}return n+l+n}function aA(){return"`"}function hp(e,t){let a=sn(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(a===e.url||"mailto:"+a===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}gp.peek=lA;function gp(e,t,a,l){let n=Sr(a),r=n==='"'?"Quote":"Apostrophe",u=a.createTracker(l),o,i;if(hp(e,a)){let f=a.stack;a.stack=[],o=a.enter("autolink");let c=u.move("<");return c+=u.move(a.containerPhrasing(e,{before:c,after:">",...u.current()})),c+=u.move(">"),o(),a.stack=f,c}o=a.enter("link"),i=a.enter("label");let s=u.move("[");return s+=u.move(a.containerPhrasing(e,{before:s,after:"](",...u.current()})),s+=u.move("]("),i(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(i=a.enter("destinationLiteral"),s+=u.move("<"),s+=u.move(a.safe(e.url,{before:s,after:">",...u.current()})),s+=u.move(">")):(i=a.enter("destinationRaw"),s+=u.move(a.safe(e.url,{before:s,after:e.title?" ":")",...u.current()}))),i(),e.title&&(i=a.enter(`title${r}`),s+=u.move(" "+n),s+=u.move(a.safe(e.title,{before:s,after:n,...u.current()})),s+=u.move(n),i()),s+=u.move(")"),o(),s}function lA(e,t,a){return hp(e,a)?"<":"["}xp.peek=nA;function xp(e,t,a,l){let n=e.referenceType,r=a.enter("linkReference"),u=a.enter("label"),o=a.createTracker(l),i=o.move("["),s=a.containerPhrasing(e,{before:i,after:"]",...o.current()});i+=o.move(s+"]["),u();let f=a.stack;a.stack=[],u=a.enter("reference");let c=a.safe(a.associationId(e),{before:i,after:"]",...o.current()});return u(),a.stack=f,r(),n==="full"||!s||s!==c?i+=o.move(c+"]"):n==="shortcut"?i=i.slice(0,-1):i+=o.move("]"),i}function nA(){return"["}function Ir(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function fS(e){let t=Ir(e),a=e.options.bulletOther;if(!a)return t==="*"?"-":"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(a===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+a+"`) to be different");return a}function cS(e){let t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function ss(e){let t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function dS(e,t,a,l){let n=a.enter("list"),r=a.bulletCurrent,u=e.ordered?cS(a):Ir(a),o=e.ordered?u==="."?")":".":fS(a),i=t&&a.bulletLastUsed?u===a.bulletLastUsed:!1;if(!e.ordered){let f=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&f&&(!f.children||!f.children[0])&&a.stack[a.stack.length-1]==="list"&&a.stack[a.stack.length-2]==="listItem"&&a.stack[a.stack.length-3]==="list"&&a.stack[a.stack.length-4]==="listItem"&&a.indexStack[a.indexStack.length-1]===0&&a.indexStack[a.indexStack.length-2]===0&&a.indexStack[a.indexStack.length-3]===0&&(i=!0),ss(a)===u&&f){let c=-1;for(;++c<e.children.length;){let p=e.children[c];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){i=!0;break}}}}i&&(u=o),a.bulletCurrent=u;let s=a.containerFlow(e,l);return a.bulletLastUsed=u,a.bulletCurrent=r,n(),s}function pS(e){let t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function mS(e,t,a,l){let n=pS(a),r=a.bulletCurrent||Ir(a);t&&t.type==="list"&&t.ordered&&(r=(typeof t.start=="number"&&t.start>-1?t.start:1)+(a.options.incrementListMarker===!1?0:t.children.indexOf(e))+r);let u=r.length+1;(n==="tab"||n==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(u=Math.ceil(u/4)*4);let o=a.createTracker(l);o.move(r+" ".repeat(u-r.length)),o.shift(u);let i=a.enter("listItem"),s=a.indentLines(a.containerFlow(e,o.current()),f);return i(),s;function f(c,p,d){return p?(d?"":" ".repeat(u))+c:(d?r:r+" ".repeat(u-r.length))+c}}function hS(e,t,a,l){let n=a.enter("paragraph"),r=a.enter("phrasing"),u=a.containerPhrasing(e,l);return r(),n(),u}var Lp=Rl(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function gS(e,t,a,l){return(e.children.some(function(u){return Lp(u)})?a.containerPhrasing:a.containerFlow).call(a,e,l)}function xS(e){let t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}yp.peek=rA;function yp(e,t,a,l){let n=xS(a),r=a.enter("strong"),u=a.createTracker(l),o=u.move(n+n),i=u.move(a.containerPhrasing(e,{after:n,before:o,...u.current()})),s=i.charCodeAt(0),f=br(l.before.charCodeAt(l.before.length-1),s,n);f.inside&&(i=Ol(s)+i.slice(1));let c=i.charCodeAt(i.length-1),p=br(l.after.charCodeAt(0),c,n);p.inside&&(i=i.slice(0,-1)+Ol(c));let d=u.move(n+n);return r(),a.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},o+i+d}function rA(e,t,a){return a.options.strong||"*"}function LS(e,t,a,l){return a.safe(e.value,l)}function yS(e){let t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function CS(e,t,a){let l=(ss(a)+(a.options.ruleSpaces?" ":"")).repeat(yS(a));return a.options.ruleSpaces?l.slice(0,-1):l}var Vu={blockquote:$C,break:sp,code:rS,definition:uS,emphasis:fp,hardBreak:sp,heading:sS,html:cp,image:dp,imageReference:pp,inlineCode:mp,link:gp,linkReference:xp,list:dS,listItem:mS,paragraph:hS,root:gS,strong:yp,text:LS,thematicBreak:CS};function Sp(){return{enter:{table:uA,tableData:SS,tableHeader:SS,tableRow:iA},exit:{codeText:sA,table:oA,tableData:Cp,tableHeader:Cp,tableRow:Cp}}}function uA(e){let t=e._align;this.enter({type:"table",align:t.map(function(a){return a==="none"?null:a}),children:[]},e),this.data.inTable=!0}function oA(e){this.exit(e),this.data.inTable=void 0}function iA(e){this.enter({type:"tableRow",children:[]},e)}function Cp(e){this.exit(e)}function SS(e){this.enter({type:"tableCell",children:[]},e)}function sA(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,fA));let a=this.stack[this.stack.length-1];a.type,a.value=t,this.exit(e)}function fA(e,t){return t==="|"?t:e}function bp(e){let t=e||{},a=t.tableCellPadding,l=t.tablePipeAlign,n=t.stringLength,r=a?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
36
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:u,tableCell:i,tableRow:o}};function u(d,g,C,v){return s(f(d,C,v),d.align)}function o(d,g,C,v){let m=c(d,C,v),h=s([m]);return h.slice(0,h.indexOf(`
|
|
37
|
+
`))}function i(d,g,C,v){let m=C.enter("tableCell"),h=C.enter("phrasing"),x=C.containerPhrasing(d,{...v,before:r,after:r});return h(),m(),x}function s(d,g){return JC(d,{align:g,alignDelimiters:l,padding:a,stringLength:n})}function f(d,g,C){let v=d.children,m=-1,h=[],x=g.enter("table");for(;++m<v.length;)h[m]=c(v[m],g,C);return x(),h}function c(d,g,C){let v=d.children,m=-1,h=[],x=g.enter("tableRow");for(;++m<v.length;)h[m]=i(v[m],d,g,C);return x(),h}function p(d,g,C){let v=Vu.inlineCode(d,g,C);return C.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function Ip(){return{exit:{taskListCheckValueChecked:bS,taskListCheckValueUnchecked:bS,paragraph:cA}}}function vp(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:dA}}}function bS(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function cA(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let a=this.stack[this.stack.length-1];a.type;let l=a.children[0];if(l&&l.type==="text"){let n=t.children,r=-1,u;for(;++r<n.length;){let o=n[r];if(o.type==="paragraph"){u=o;break}}u===a&&(l.value=l.value.slice(1),l.value.length===0?a.children.shift():a.position&&l.position&&typeof l.position.start.offset=="number"&&(l.position.start.column++,l.position.start.offset++,a.position.start=Object.assign({},l.position.start)))}}this.exit(e)}function dA(e,t,a,l){let n=e.children[0],r=typeof e.checked=="boolean"&&n&&n.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",o=a.createTracker(l);r&&o.move(u);let i=Vu.listItem(e,t,a,{...l,...o.current()});return r&&(i=i.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,s)),i;function s(f){return f+u}}function kp(){return[lp(),rp(),op(),Sp(),Ip()]}function wp(e){return{extensions:[np(),up(e),ip(),bp(e),vp()]}}var pA={tokenize:LA,partial:!0},IS={tokenize:yA,partial:!0},vS={tokenize:CA,partial:!0},kS={tokenize:SA,partial:!0},mA={tokenize:bA,partial:!0},wS={name:"wwwAutolink",tokenize:gA,previous:TS},AS={name:"protocolAutolink",tokenize:xA,previous:MS},ja={name:"emailAutolink",tokenize:hA,previous:DS},xa={};function Tp(){return{text:xa}}var Ln=48;for(;Ln<123;)xa[Ln]=ja,Ln++,Ln===58?Ln=65:Ln===91&&(Ln=97);xa[43]=ja;xa[45]=ja;xa[46]=ja;xa[95]=ja;xa[72]=[ja,AS];xa[104]=[ja,AS];xa[87]=[ja,wS];xa[119]=[ja,wS];function hA(e,t,a){let l=this,n,r;return u;function u(c){return!Ap(c)||!DS.call(l,l.previous)||Mp(l.events)?a(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(c))}function o(c){return Ap(c)?(e.consume(c),o):c===64?(e.consume(c),i):a(c)}function i(c){return c===46?e.check(mA,f,s)(c):c===45||c===95||Be(c)?(r=!0,e.consume(c),i):f(c)}function s(c){return e.consume(c),n=!0,i}function f(c){return r&&n&&Xe(l.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):a(c)}}function gA(e,t,a){let l=this;return n;function n(u){return u!==87&&u!==119||!TS.call(l,l.previous)||Mp(l.events)?a(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(pA,e.attempt(IS,e.attempt(vS,r),a),a)(u))}function r(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function xA(e,t,a){let l=this,n="",r=!1;return u;function u(c){return(c===72||c===104)&&MS.call(l,l.previous)&&!Mp(l.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),n+=String.fromCodePoint(c),e.consume(c),o):a(c)}function o(c){if(Xe(c)&&n.length<5)return n+=String.fromCodePoint(c),e.consume(c),o;if(c===58){let p=n.toLowerCase();if(p==="http"||p==="https")return e.consume(c),i}return a(c)}function i(c){return c===47?(e.consume(c),r?s:(r=!0,i)):a(c)}function s(c){return c===null||fn(c)||$(c)||ha(c)||cn(c)?a(c):e.attempt(IS,e.attempt(vS,f),a)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function LA(e,t,a){let l=0;return n;function n(u){return(u===87||u===119)&&l<3?(l++,e.consume(u),n):u===46&&l===3?(e.consume(u),r):a(u)}function r(u){return u===null?a(u):t(u)}}function yA(e,t,a){let l,n,r;return u;function u(s){return s===46||s===95?e.check(kS,i,o)(s):s===null||$(s)||ha(s)||s!==45&&cn(s)?i(s):(r=!0,e.consume(s),u)}function o(s){return s===95?l=!0:(n=l,l=void 0),e.consume(s),u}function i(s){return n||l||!r?a(s):t(s)}}function CA(e,t){let a=0,l=0;return n;function n(u){return u===40?(a++,e.consume(u),n):u===41&&l<a?r(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(kS,t,r)(u):u===null||$(u)||ha(u)?t(u):(e.consume(u),n)}function r(u){return u===41&&l++,e.consume(u),n}}function SA(e,t,a){return l;function l(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),l):o===38?(e.consume(o),r):o===93?(e.consume(o),n):o===60||o===null||$(o)||ha(o)?t(o):a(o)}function n(o){return o===null||o===40||o===91||$(o)||ha(o)?t(o):l(o)}function r(o){return Xe(o)?u(o):a(o)}function u(o){return o===59?(e.consume(o),l):Xe(o)?(e.consume(o),u):a(o)}}function bA(e,t,a){return l;function l(r){return e.consume(r),n}function n(r){return Be(r)?a(r):t(r)}}function TS(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||$(e)}function MS(e){return!Xe(e)}function DS(e){return!(e===47||Ap(e))}function Ap(e){return e===43||e===45||e===46||e===95||Be(e)}function Mp(e){let t=e.length,a=!1;for(;t--;){let l=e[t][1];if((l.type==="labelLink"||l.type==="labelImage")&&!l._balanced){a=!0;break}if(l._gfmAutolinkLiteralWalkedInto){a=!1;break}}return e.length>0&&!a&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),a}var IA={tokenize:DA,partial:!0};function Dp(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:AA,continuation:{tokenize:TA},exit:MA}},text:{91:{name:"gfmFootnoteCall",tokenize:wA},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:vA,resolveTo:kA}}}}function vA(e,t,a){let l=this,n=l.events.length,r=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]),u;for(;n--;){let i=l.events[n][1];if(i.type==="labelImage"){u=i;break}if(i.type==="gfmFootnoteCall"||i.type==="labelLink"||i.type==="label"||i.type==="image"||i.type==="link")break}return o;function o(i){if(!u||!u._balanced)return a(i);let s=ot(l.sliceSerialize({start:u.end,end:l.now()}));return s.codePointAt(0)!==94||!r.includes(s.slice(1))?a(i):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i))}}function kA(e,t){let a=e.length,l;for(;a--;)if(e[a][1].type==="labelImage"&&e[a][0]==="enter"){l=e[a][1];break}e[a+1][1].type="data",e[a+3][1].type="gfmFootnoteCallLabelMarker";let n={type:"gfmFootnoteCall",start:Object.assign({},e[a+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[a+3][1].end),end:Object.assign({},e[a+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;let u={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},i=[e[a+1],e[a+2],["enter",n,t],e[a+3],e[a+4],["enter",r,t],["exit",r,t],["enter",u,t],["enter",o,t],["exit",o,t],["exit",u,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(a,e.length-a+1,...i),e}function wA(e,t,a){let l=this,n=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]),r=0,u;return o;function o(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),i}function i(c){return c!==94?a(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(c){if(r>999||c===93&&!u||c===null||c===91||$(c))return a(c);if(c===93){e.exit("chunkString");let p=e.exit("gfmFootnoteCallString");return n.includes(ot(l.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):a(c)}return $(c)||(u=!0),r++,e.consume(c),c===92?f:s}function f(c){return c===91||c===92||c===93?(e.consume(c),r++,s):s(c)}}function AA(e,t,a){let l=this,n=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]),r,u=0,o;return i;function i(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):a(g)}function f(g){if(u>999||g===93&&!o||g===null||g===91||$(g))return a(g);if(g===93){e.exit("chunkString");let C=e.exit("gfmFootnoteDefinitionLabelString");return r=ot(l.sliceSerialize(C)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return $(g)||(o=!0),u++,e.consume(g),g===92?c:f}function c(g){return g===91||g===92||g===93?(e.consume(g),u++,f):f(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),n.includes(r)||n.push(r),P(e,d,"gfmFootnoteDefinitionWhitespace")):a(g)}function d(g){return t(g)}}function TA(e,t,a){return e.check(ga,t,e.attempt(IA,t,a))}function MA(e){e.exit("gfmFootnoteDefinition")}function DA(e,t,a){let l=this;return P(e,n,"gfmFootnoteDefinitionIndent",5);function n(r){let u=l.events[l.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?t(r):a(r)}}function Ep(e){let a=(e||{}).singleTilde,l={name:"strikethrough",tokenize:r,resolveAll:n};return a==null&&(a=!0),{text:{126:l},insideSpan:{null:[l]},attentionMarkers:{null:[126]}};function n(u,o){let i=-1;for(;++i<u.length;)if(u[i][0]==="enter"&&u[i][1].type==="strikethroughSequenceTemporary"&&u[i][1]._close){let s=i;for(;s--;)if(u[s][0]==="exit"&&u[s][1].type==="strikethroughSequenceTemporary"&&u[s][1]._open&&u[i][1].end.offset-u[i][1].start.offset===u[s][1].end.offset-u[s][1].start.offset){u[i][1].type="strikethroughSequence",u[s][1].type="strikethroughSequence";let f={type:"strikethrough",start:Object.assign({},u[s][1].start),end:Object.assign({},u[i][1].end)},c={type:"strikethroughText",start:Object.assign({},u[s][1].end),end:Object.assign({},u[i][1].start)},p=[["enter",f,o],["enter",u[s][1],o],["exit",u[s][1],o],["enter",c,o]],d=o.parser.constructs.insideSpan.null;d&&He(p,p.length,0,El(d,u.slice(s+1,i),o)),He(p,p.length,0,[["exit",c,o],["enter",u[i][1],o],["exit",u[i][1],o],["exit",f,o]]),He(u,s-1,i-s+3,p),i=s+p.length-2;break}}for(i=-1;++i<u.length;)u[i][1].type==="strikethroughSequenceTemporary"&&(u[i][1].type="data");return u}function r(u,o,i){let s=this.previous,f=this.events,c=0;return p;function p(g){return s===126&&f[f.length-1][1].type!=="characterEscape"?i(g):(u.enter("strikethroughSequenceTemporary"),d(g))}function d(g){let C=Xa(s);if(g===126)return c>1?i(g):(u.consume(g),c++,d);if(c<2&&!a)return i(g);let v=u.exit("strikethroughSequenceTemporary"),m=Xa(g);return v._open=!m||m===2&&!!C,v._close=!C||C===2&&!!m,o(g)}}}var fs=class{constructor(){this.map=[]}add(t,a,l){EA(this,t,a,l)}consume(t){if(this.map.sort(function(r,u){return r[0]-u[0]}),this.map.length===0)return;let a=this.map.length,l=[];for(;a>0;)a-=1,l.push(t.slice(this.map[a][0]+this.map[a][1]),this.map[a][2]),t.length=this.map[a][0];l.push(t.slice()),t.length=0;let n=l.pop();for(;n;){for(let r of n)t.push(r);n=l.pop()}this.map.length=0}};function EA(e,t,a,l){let n=0;if(!(a===0&&l.length===0)){for(;n<e.map.length;){if(e.map[n][0]===t){e.map[n][1]+=a,e.map[n][2].push(...l);return}n+=1}e.map.push([t,a,l])}}function ES(e,t){let a=!1,l=[];for(;t<e.length;){let n=e[t];if(a){if(n[0]==="enter")n[1].type==="tableContent"&&l.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(n[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){let r=l.length-1;l[r]=l[r]==="left"?"center":"right"}}else if(n[1].type==="tableDelimiterRow")break}else n[0]==="enter"&&n[1].type==="tableDelimiterRow"&&(a=!0);t+=1}return l}function Bp(){return{flow:{null:{name:"table",tokenize:BA,resolveAll:RA}}}}function BA(e,t,a){let l=this,n=0,r=0,u;return o;function o(S){let V=l.events.length-1;for(;V>-1;){let B=l.events[V][1].type;if(B==="lineEnding"||B==="linePrefix")V--;else break}let N=V>-1?l.events[V][1].type:null,q=N==="tableHead"||N==="tableRow"?I:i;return q===I&&l.parser.lazy[l.now().line]?a(S):q(S)}function i(S){return e.enter("tableHead"),e.enter("tableRow"),s(S)}function s(S){return S===124||(u=!0,r+=1),f(S)}function f(S){return S===null?a(S):z(S)?r>1?(r=0,l.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),d):a(S):U(S)?P(e,f,"whitespace")(S):(r+=1,u&&(u=!1,n+=1),S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),u=!0,f):(e.enter("data"),c(S)))}function c(S){return S===null||S===124||$(S)?(e.exit("data"),f(S)):(e.consume(S),S===92?p:c)}function p(S){return S===92||S===124?(e.consume(S),c):c(S)}function d(S){return l.interrupt=!1,l.parser.lazy[l.now().line]?a(S):(e.enter("tableDelimiterRow"),u=!1,U(S)?P(e,g,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):g(S))}function g(S){return S===45||S===58?v(S):S===124?(u=!0,e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),C):w(S)}function C(S){return U(S)?P(e,v,"whitespace")(S):v(S)}function v(S){return S===58?(r+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),m):S===45?(r+=1,m(S)):S===null||z(S)?b(S):w(S)}function m(S){return S===45?(e.enter("tableDelimiterFiller"),h(S)):w(S)}function h(S){return S===45?(e.consume(S),h):S===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(S))}function x(S){return U(S)?P(e,b,"whitespace")(S):b(S)}function b(S){return S===124?g(S):S===null||z(S)?!u||n!==r?w(S):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(S)):w(S)}function w(S){return a(S)}function I(S){return e.enter("tableRow"),A(S)}function A(S){return S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),A):S===null||z(S)?(e.exit("tableRow"),t(S)):U(S)?P(e,A,"whitespace")(S):(e.enter("data"),E(S))}function E(S){return S===null||S===124||$(S)?(e.exit("data"),A(S)):(e.consume(S),S===92?M:E)}function M(S){return S===92||S===124?(e.consume(S),E):E(S)}}function RA(e,t){let a=-1,l=!0,n=0,r=[0,0,0,0],u=[0,0,0,0],o=!1,i=0,s,f,c,p=new fs;for(;++a<e.length;){let d=e[a],g=d[1];d[0]==="enter"?g.type==="tableHead"?(o=!1,i!==0&&(BS(p,t,i,s,f),f=void 0,i=0),s={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(a,0,[["enter",s,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=!0,c=void 0,r=[0,0,0,0],u=[0,a+1,0,0],o&&(o=!1,f={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(a,0,[["enter",f,t]])),n=g.type==="tableDelimiterRow"?2:f?3:1):n&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(l=!1,u[2]===0&&(r[1]!==0&&(u[0]=u[1],c=cs(p,t,r,n,void 0,c),r=[0,0,0,0]),u[2]=a)):g.type==="tableCellDivider"&&(l?l=!1:(r[1]!==0&&(u[0]=u[1],c=cs(p,t,r,n,void 0,c)),r=u,u=[r[1],a,0,0])):g.type==="tableHead"?(o=!0,i=a):g.type==="tableRow"||g.type==="tableDelimiterRow"?(i=a,r[1]!==0?(u[0]=u[1],c=cs(p,t,r,n,a,c)):u[1]!==0&&(c=cs(p,t,u,n,a,c)),n=0):n&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(u[3]=a)}for(i!==0&&BS(p,t,i,s,f),p.consume(t.events),a=-1;++a<t.events.length;){let d=t.events[a];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=ES(t.events,a))}return e}function cs(e,t,a,l,n,r){let u=l===1?"tableHeader":l===2?"tableDelimiter":"tableData",o="tableContent";a[0]!==0&&(r.end=Object.assign({},vr(t.events,a[0])),e.add(a[0],0,[["exit",r,t]]));let i=vr(t.events,a[1]);if(r={type:u,start:Object.assign({},i),end:Object.assign({},i)},e.add(a[1],0,[["enter",r,t]]),a[2]!==0){let s=vr(t.events,a[2]),f=vr(t.events,a[3]),c={type:o,start:Object.assign({},s),end:Object.assign({},f)};if(e.add(a[2],0,[["enter",c,t]]),l!==2){let p=t.events[a[2]],d=t.events[a[3]];if(p[1].end=Object.assign({},d[1].end),p[1].type="chunkText",p[1].contentType="text",a[3]>a[2]+1){let g=a[2]+1,C=a[3]-a[2]-1;e.add(g,C,[])}}e.add(a[3]+1,0,[["exit",c,t]])}return n!==void 0&&(r.end=Object.assign({},vr(t.events,n)),e.add(n,0,[["exit",r,t]]),r=void 0),r}function BS(e,t,a,l,n){let r=[],u=vr(t.events,a);n&&(n.end=Object.assign({},u),r.push(["exit",n,t])),l.end=Object.assign({},u),r.push(["exit",l,t]),e.add(a+1,0,r)}function vr(e,t){let a=e[t],l=a[0]==="enter"?"start":"end";return a[1][l]}var OA={name:"tasklistCheck",tokenize:zA};function Rp(){return{text:{91:OA}}}function zA(e,t,a){let l=this;return n;function n(i){return l.previous!==null||!l._gfmTasklistFirstContentOfListItem?a(i):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(i),e.exit("taskListCheckMarker"),r)}function r(i){return $(i)?(e.enter("taskListCheckValueUnchecked"),e.consume(i),e.exit("taskListCheckValueUnchecked"),u):i===88||i===120?(e.enter("taskListCheckValueChecked"),e.consume(i),e.exit("taskListCheckValueChecked"),u):a(i)}function u(i){return i===93?(e.enter("taskListCheckMarker"),e.consume(i),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):a(i)}function o(i){return z(i)?t(i):U(i)?e.check({tokenize:qA},t,a)(i):a(i)}}function qA(e,t,a){return P(e,l,"whitespace");function l(n){return n===null?a(n):t(n)}}function RS(e){return Fi([Tp(),Dp(),Ep(e),Bp(),Rp()])}var HA={};function ds(e){let t=this,a=e||HA,l=t.data(),n=l.micromarkExtensions||(l.micromarkExtensions=[]),r=l.fromMarkdownExtensions||(l.fromMarkdownExtensions=[]),u=l.toMarkdownExtensions||(l.toMarkdownExtensions=[]);n.push(RS(a)),r.push(kp()),u.push(wp(a))}var ps=J(We(),1);var lt=J(De(),1);function FA({className:e}){return(0,lt.jsx)("svg",{className:e,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":!0,children:(0,lt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})})}function PA({open:e}){return(0,lt.jsx)("svg",{className:H("h-3.5 w-3.5 transition-transform",e&&"rotate-180"),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-hidden":!0,children:(0,lt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})}function UA(e){return Array.isArray(e)?e.filter(t=>t!=null&&typeof t=="object").map((t,a)=>({title:typeof t.title=="string"&&t.title.trim()?t.title.trim():`Source ${a+1}`,snippet:typeof t.snippet=="string"?t.snippet.trim():void 0,score:typeof t.score=="number"&&Number.isFinite(t.score)?t.score:void 0,documentId:typeof t.documentId=="string"?t.documentId:void 0,chunkId:typeof t.chunkId=="string"?t.chunkId:void 0,_key:[t.documentId,t.chunkId,a].filter(Boolean).join("_")||`src-${a}`})):[]}function OS({dark:e=!0,sources:t,messageId:a="sources",label:l="Sources",onSourceClick:n,className:r}){let[u,o]=(0,ps.useState)(!1),i=(0,ps.useMemo)(()=>UA(t),[t]);return i.length===0?null:(0,lt.jsxs)("div",{className:H("relative inline-flex",r),children:[(0,lt.jsxs)("button",{type:"button",onClick:()=>o(s=>!s),className:H("inline-flex items-center gap-1.5 rounded-md px-2 py-1 text-xs font-medium transition-colors",e?"text-gray-400 hover:bg-gray-700/60 hover:text-gray-300":"text-gray-500 hover:bg-gray-100 hover:text-gray-700"),"aria-expanded":u,"aria-controls":`chat-sources-${a}`,children:[(0,lt.jsx)(FA,{className:"h-3.5 w-3.5 flex-shrink-0 opacity-80"}),(0,lt.jsx)("span",{children:l}),(0,lt.jsx)("span",{className:H("rounded-full px-1.5 py-0.5 text-[10px] font-semibold tabular-nums",e?"bg-gray-600 text-gray-300":"bg-gray-200 text-gray-600"),children:i.length}),(0,lt.jsx)(PA,{open:u})]}),(0,lt.jsx)("div",{id:`chat-sources-${a}`,className:H("absolute left-0 top-full mt-2 min-w-[260px] max-w-[min(90vw,340px)] max-h-[55vh] flex flex-col z-50 rounded-xl border shadow-2xl overflow-hidden",u?"flex":"hidden",e?"bg-gray-800/95 border-gray-600/80 shadow-gray-950/30 backdrop-blur-sm":"bg-white border-gray-200 shadow-gray-900/10"),children:(0,lt.jsx)("ul",{className:"py-1 overflow-y-auto flex-1 min-h-0",role:"list",children:i.map(s=>(0,lt.jsx)("li",{children:n?(0,lt.jsx)("button",{type:"button",onClick:()=>{let{_key:f,...c}=s;n(c)},className:H("w-full text-left px-3 py-1.5 text-xs truncate block transition-colors",e?"text-gray-300 hover:bg-gray-700/60 hover:text-gray-100":"text-gray-700 hover:bg-gray-100","cursor-pointer focus:outline-none"),children:s.title}):(0,lt.jsx)("span",{className:H("block w-full text-left px-3 py-1.5 text-xs truncate",e?"text-gray-300":"text-gray-700"),children:s.title})},s._key))})})]})}var ge=J(De(),1);function zS(e){try{let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}catch(t){return e}}function qS({dark:e=!0,message:t,accentColor:a="#6366f1",showMetadata:l=!0,senderName:n,showSenderName:r=!0,showTime:u=!0,timePosition:o="top",bubbleBorderRadius:i=20,showCopyButton:s=!0,renderCopyInBubble:f=!0,allowMarkdown:c=!1,copyLabel:p="Copy",copiedLabel:d="Copied!",onCopy:g,showSources:C=!0,sourcesLabel:v="Sources",onSourceClick:m,className:h}){let[x,b]=(0,ms.useState)(!1),w=t.role==="user",I=t.role==="assistant",A=Math.max(0,Math.min(32,i!=null?i:20)),E=I&&n?n:w?"User":"Assistant",M=u&&o!=="bottom",S=u&&o==="bottom",V=(0,ms.useCallback)(async()=>{try{await navigator.clipboard.writeText(t.content),b(!0),g==null||g(t.id,t.content),setTimeout(()=>b(!1),1500)}catch(L){}},[t.id,t.content,g]),N=I&&c&&t.content,q=H("text-xs flex items-center gap-2",e?"text-gray-400":"text-gray-500",w&&"flex-row-reverse"),B=H("px-3 py-2.5 text-sm leading-relaxed text-left box-border","min-w-0 max-w-full w-full overflow-hidden","break-words",w&&"text-white",I&&(e?"bg-gray-700/80 text-gray-100 border border-gray-600":"bg-gray-100 text-gray-900 border border-gray-200")),O=w&&a?{backgroundColor:a,color:"#fff",borderRadius:`${A}px`}:{borderRadius:`${A}px`},X=H("text-left min-w-0 max-w-full w-full overflow-hidden chat-bubble-content","[&>*]:min-w-0 [&>*]:max-w-full",e?"[&>code]:bg-gray-600 [&>code]:text-gray-200":"[&>code]:bg-gray-300 [&>code]:text-gray-800","[&>code]:rounded [&>code]:px-1 [&>code]:py-0.5 [&>code]:break-all"),W="whitespace-pre-wrap min-w-0 max-w-full w-full overflow-hidden break-words chat-bubble-content",ne=H("flex items-start gap-2 w-full min-w-0 max-w-[85%]",w?"flex-row-reverse self-end":""),ie=H("flex flex-col gap-0.5 min-w-0 max-w-full w-full",w?"items-end":"items-start");return(0,ge.jsxs)("article",{className:H("flex flex-col gap-1",w?"items-end":"items-start",h),"data-message-id":t.id,"aria-label":`${E} message`,children:[l&&(r||M)&&(0,ge.jsxs)("div",{className:q,"aria-hidden":!0,children:[r&&(0,ge.jsx)("span",{children:E}),M&&(0,ge.jsx)("time",{dateTime:t.createdAt,children:zS(t.createdAt)})]}),(0,ge.jsxs)("div",{className:ne,children:[(0,ge.jsx)("div",{className:ie,children:(0,ge.jsx)("div",{className:B,style:O,role:"article",children:N?(0,ge.jsx)("div",{className:H(X,"prose prose-sm max-w-full dark:prose-invert","[&_a]:text-blue-400 [&_a]:underline [&_a]:break-all","[&_pre]:text-sm [&_pre]:max-w-full [&_pre]:overflow-x-auto [&_pre]:rounded","[&_table]:max-w-full [&_table]:block [&_table]:overflow-x-auto"),children:(0,ge.jsx)(Kd,{remarkPlugins:[ds],children:t.content})}):(0,ge.jsx)("div",{className:W,children:t.content})})}),I&&s&&t.content&&f&&(0,ge.jsx)("button",{type:"button",onClick:V,className:H("p-1.5 rounded transition-colors flex-shrink-0 mt-1",e?"text-gray-400 hover:text-gray-300 hover:bg-gray-700/50":"text-gray-500 hover:text-gray-700 hover:bg-gray-200"),"aria-label":x?d:p,title:x?d:p,children:x?(0,ge.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-hidden":!0,children:(0,ge.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})}):(0,ge.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-hidden":!0,children:(0,ge.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})})]}),(0,ge.jsxs)("div",{className:H("flex flex-wrap items-center gap-2 w-full min-w-0 max-w-[85%] mt-1.5",w?"justify-end":"justify-start"),"data-sources-row":!0,children:[I&&C&&t.sources&&t.sources.length>0&&(0,ge.jsx)(OS,{dark:e,sources:t.sources,messageId:t.id,label:v,onSourceClick:m,className:"flex-shrink-0"}),I&&s&&t.content&&!f&&(0,ge.jsx)("button",{type:"button",onClick:V,className:H("p-1.5 rounded transition-colors flex-shrink-0",e?"text-gray-400 hover:text-gray-300 hover:bg-gray-700/50":"text-gray-500 hover:text-gray-700 hover:bg-gray-200"),"aria-label":x?d:p,title:x?d:p,children:x?(0,ge.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-hidden":!0,children:(0,ge.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})}):(0,ge.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-hidden":!0,children:(0,ge.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})}),l&&S&&(0,ge.jsx)("span",{className:H("text-xs flex-shrink-0",e?"text-gray-400":"text-gray-500"),"aria-hidden":!0,children:(0,ge.jsx)("time",{dateTime:t.createdAt,children:zS(t.createdAt)})})]})]})}var Fe=J(De(),1),NA=80;function HS({dark:e=!0,messages:t,isSending:a=!1,accentColor:l="#6366f1",showMetadata:n=!0,senderName:r,showSenderName:u=!0,showTime:o=!0,timePosition:i="top",bubbleBorderRadius:s=20,showCopyButton:f=!0,showSources:c=!0,allowMarkdown:p=!1,copyLabel:d,copiedLabel:g,sourcesLabel:C,scrollToBottomLabel:v="Scroll to latest",showScrollToBottom:m=!0,showScrollbar:h=!0,emptyState:x,onSourceClick:b,suggestedQuestions:w,onSuggestedQuestionClick:I,compact:A=!1,className:E}){let M=(0,Wt.useRef)(null),S=(0,Wt.useRef)(null),V=(0,Wt.useRef)(!1),N=(0,Wt.useRef)(0),[q,B]=(0,Wt.useState)(!1),O=t.filter(L=>L.role!=="system"&&!(L.role==="assistant"&&L.status==="sending")),W=!O.some(L=>L.role==="user")&&!a&&w&&w.length>0&&I,ne=(0,Wt.useCallback)(()=>{var L;(L=M.current)==null||L.scrollIntoView({behavior:"smooth"}),V.current=!1,B(!1)},[]);(0,Wt.useEffect)(()=>{var nt;let L=S.current;if(!L)return;let re=N.current,ve=L.scrollHeight,y=L.scrollHeight-L.scrollTop-L.clientHeight<120,ke=ve>re;N.current=ve,ke&&(y||!V.current)&&((nt=M.current)==null||nt.scrollIntoView({behavior:"smooth"}))},[t,a]);let ie=(0,Wt.useCallback)(()=>{let L=S.current;if(!L)return;let ve=L.scrollHeight-L.scrollTop-L.clientHeight<NA;V.current=!ve,B(!ve)},[]);return(0,Fe.jsxs)("div",{className:"flex-1 min-h-0 flex flex-col relative",children:[(0,Fe.jsxs)("div",{ref:S,onScroll:ie,className:H("flex-1 overflow-y-auto overscroll-contain min-h-0 flex flex-col",h?"chat-ui-messages-scroll":"scrollbar-hide",A?"p-2 space-y-3":"p-4 space-y-4",E),style:{"--chat-accent":l,scrollbarColor:e?`${l} transparent`:`${l} transparent`},role:"log","aria-live":"polite","aria-label":"Chat messages",children:[O.length===0&&!W?a?null:(0,Fe.jsx)("div",{className:"flex flex-col items-center justify-center py-8 px-4 text-center",children:x!=null?x:(0,Fe.jsx)("p",{className:H("text-sm",e?"text-gray-400":"text-gray-500"),children:"Ask me anything\u2026"})}):null,O.length>0?O.map(L=>{let re=typeof L.id=="string"&&L.id.startsWith("welcome_"),ve=f&&!re,y=c&&L.sources&&L.sources.length>0||L.role==="assistant"&&ve&&!!L.content;return(0,Fe.jsx)("div",{className:H("flex flex-col w-full",L.role==="user"?"items-end":"items-start"),children:(0,Fe.jsx)("div",{className:H("space-y-0.5 w-full"),children:(0,Fe.jsx)(qS,{dark:e,message:L,accentColor:l,showMetadata:n,senderName:r,showSenderName:u,showTime:o,timePosition:i,bubbleBorderRadius:s,showCopyButton:ve,renderCopyInBubble:!y,allowMarkdown:p,copyLabel:d,copiedLabel:g,showSources:c,sourcesLabel:C,onSourceClick:b})})},L.id)}):null,W?(0,Fe.jsx)("div",{className:H("flex flex-col items-end justify-end pl-4 pr-0 pt-6 pb-0 mt-auto flex-shrink-0"),children:(0,Fe.jsx)("div",{className:"flex flex-wrap justify-end gap-2",children:w.map((L,re)=>(0,Fe.jsx)("button",{type:"button",onClick:()=>I(L),disabled:a,className:"border px-4 py-2.5 text-sm font-medium transition-colors text-left text-white disabled:opacity-50 disabled:cursor-not-allowed hover:opacity-90",style:{backgroundColor:l,borderColor:l,borderRadius:`${Math.max(0,Math.min(32,s!=null?s:20))}px`},children:L},re))})}):null,O.length>0&&a?(0,Fe.jsx)("div",{className:"flex justify-start items-center",role:"status","aria-live":"polite","aria-label":"Someone is typing",children:(0,Fe.jsxs)("div",{className:H("rounded-2xl px-4 py-3 flex items-center gap-1 border",e?"bg-gray-700/80 border-gray-600":"bg-gray-200 border-gray-300"),children:[(0,Fe.jsx)("span",{className:H("w-2 h-2 rounded-full animate-bounce [animation-delay:-0.3s]",e?"bg-gray-400":"bg-gray-500")}),(0,Fe.jsx)("span",{className:H("w-2 h-2 rounded-full animate-bounce [animation-delay:-0.15s]",e?"bg-gray-400":"bg-gray-500")}),(0,Fe.jsx)("span",{className:H("w-2 h-2 rounded-full animate-bounce",e?"bg-gray-400":"bg-gray-500")})]})}):null,O.length>0?(0,Fe.jsx)("div",{ref:M,"aria-hidden":!0}):null]}),m&&q?(0,Fe.jsxs)("button",{type:"button",onClick:ne,className:H("absolute bottom-3 left-1/2 -translate-x-1/2 z-10 flex items-center gap-1.5 rounded-full px-3 py-2 text-xs font-medium text-white shadow-lg transition-opacity hover:opacity-90 focus:outline-none focus:ring-2 focus:ring-offset-2",e?"focus:ring-offset-gray-900":"focus:ring-offset-white"),style:{backgroundColor:l},"aria-label":v,children:[(0,Fe.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,Fe.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 14l-7 7m0 0l-7-7m7 7V3"})}),v]}):null]})}var st=J(We(),1);var Se=J(De(),1),Xu=16,ju=32,_A=ju/Xu,GA=8,VA="https://cdn.jsdelivr.net/npm/emoji-picker-element@1/index.js";function FS({dark:e=!0,value:t,onChange:a,onSend:l,disabled:n=!1,placeholder:r="Type a message\u2026",sendLabel:u="Send",accentColor:o="#6366f1",inputMaxLength:i,maxComposerRows:s=GA,showAttach:f=!0,showEmoji:c=!0,showMic:p=!0,asSeparateBox:d=!0,composerBorderWidth:g=1,composerBorderColor:C="primary",onAttach:v,onEmoji:m,onMic:h,className:x}){let b=(0,st.useRef)(null),[w,I]=(0,st.useState)(!1),A=(0,st.useRef)(null),E=(0,st.useRef)(null),[M,S]=(0,st.useState)(!1);(0,st.useEffect)(()=>{if(typeof customElements=="undefined")return;if(customElements.get("emoji-picker")){S(!0);return}let B=document.createElement("script");return B.src=VA,B.type="module",B.async=!0,B.onload=()=>{customElements.whenDefined("emoji-picker").then(()=>S(!0))},document.head.appendChild(B),()=>{B.remove()}},[]);let V=(0,st.useCallback)(B=>{var X,W;let O=b.current;if(O){let ne=(X=O.selectionStart)!=null?X:t.length,ie=(W=O.selectionEnd)!=null?W:t.length,L=t.slice(0,ne)+B+t.slice(ie);a(L),setTimeout(()=>{O.focus();let re=ne+B.length;O.setSelectionRange(re,re)},0)}else a(t+B);I(!1),m==null||m()},[t,a,m]),N=(0,st.useRef)(V);N.current=V,(0,st.useEffect)(()=>{if(!w||!M||!E.current)return;let B=E.current,O=document.createElement("emoji-picker");O.setAttribute("class",e?"dark":"light");let X=W=>{var ne;(ne=W.detail)!=null&&ne.unicode&&N.current(W.detail.unicode)};return O.addEventListener("emoji-click",X),B.appendChild(O),()=>{O.removeEventListener("emoji-click",X),O.remove()}},[w,M,e]),(0,st.useEffect)(()=>{if(!w)return;let B=O=>{var X;A.current&&!A.current.contains(O.target)&&!((X=b.current)!=null&&X.contains(O.target))&&I(!1)};return document.addEventListener("mousedown",B),()=>document.removeEventListener("mousedown",B)},[w]);let q=(0,st.useCallback)(B=>{B.key==="Enter"&&!B.shiftKey&&(B.preventDefault(),!n&&t.trim()&&l())},[n,t,l]);return(0,st.useEffect)(()=>{let B=b.current;if(!B)return;if(!t.trim()){B.style.height=`${ju}px`;return}B.style.height="auto";let O=Math.min(s,Math.max(_A,Math.ceil(B.scrollHeight/Xu)));B.style.height=`${Math.max(ju,O*Xu)}px`},[t,s]),(0,Se.jsx)("div",{className:H("flex-shrink-0 p-3",d&&"border-t",d&&(e?"border-gray-700 bg-gray-900/30":"border-gray-200 bg-gray-50"),x),children:(0,Se.jsx)("form",{onSubmit:B=>{B.preventDefault(),!n&&t.trim()&&l()},className:"flex flex-col gap-2",children:(0,Se.jsx)("div",{className:H("rounded-xl border chat-composer-input-wrapper transition-[border-color,border-width]",g>=.5&&"chat-composer-input-wrapper--custom",e?"bg-gray-800/50":"bg-white"),style:(()=>{let B=C==="primary",O=e?"#4b5563":"#d1d5db",X=e?"#6b7280":"#9ca3af",W=g>=.5?g:1,ne=g>=.5?Math.min(g*1.5,5):1;return{borderWidth:W,borderStyle:"solid",borderColor:g>=.5&&B&&o?`${o}99`:O,"--chat-accent":o||"#6366f1","--composer-border-width":`${W}px`,"--composer-border-width-focus":`${ne}px`,"--composer-border-color-focus":g>=.5&&B?"var(--chat-accent)":X}})(),children:(0,Se.jsxs)("div",{className:"flex flex-row items-end gap-1 p-2",children:[(0,Se.jsxs)("div",{className:"flex flex-1 flex-col items-start min-w-0 gap-1",children:[(0,Se.jsx)("textarea",{ref:b,value:t,onChange:B=>a(B.target.value),onKeyDown:q,placeholder:r,rows:1,maxLength:i,disabled:n,className:H("flex-1 min-h-[32px] resize-none bg-transparent px-2 py-2 text-left w-full overflow-y-auto scrollbar-hide chat-composer-textarea","text-sm focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed",e?"text-gray-100 placeholder:text-gray-500":"text-gray-900 placeholder:text-gray-400"),"aria-label":r,style:{lineHeight:`${Xu}px`,height:`${ju}px`,minHeight:`${ju}px`,maxHeight:`${s*Xu}px`}}),(0,Se.jsxs)("div",{className:"flex items-center gap-0.5 flex-shrink-0 pb-0.5",children:[f?(0,Se.jsx)("button",{type:"button",onClick:v,className:H("p-2 rounded-lg transition-colors",e?"text-gray-400 hover:text-gray-300 hover:bg-gray-700/50":"text-gray-500 hover:text-gray-700 hover:bg-gray-200"),"aria-label":"Attach file",children:(0,Se.jsx)("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,Se.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.172 7l-6.586 6.586a2 2 0 102.828 2.828l6.414-6.586a4 4 0 00-5.656-5.656l-6.415 6.585a6 6 0 108.486 8.486L20.5 13"})})}):null,c?(0,Se.jsxs)("div",{className:"relative flex-shrink-0",ref:A,children:[(0,Se.jsx)("button",{type:"button",onClick:()=>I(B=>!B),className:H("p-2 rounded-lg transition-colors",e?"text-gray-400 hover:text-gray-300 hover:bg-gray-700/50":"text-gray-500 hover:text-gray-700 hover:bg-gray-200"),"aria-label":"Insert emoji","aria-expanded":w,children:(0,Se.jsx)("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,Se.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.828 14.828a4 4 0 01-5.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),w?(0,Se.jsx)("div",{className:H("absolute left-0 bottom-full mb-2 rounded-xl border shadow-lg z-[100] overflow-visible","min-w-[320px] min-h-[320px]",e?"border-gray-600 bg-gray-800":"border-gray-200 bg-white"),"aria-label":"Emoji picker",children:M?(0,Se.jsx)("div",{ref:E,className:"chat-emoji-picker-cdn w-full overflow-hidden rounded-xl [&::part(root)]:border-0"}):(0,Se.jsx)("div",{className:H("flex items-center justify-center p-8 text-sm",e?"text-gray-400":"text-gray-500"),children:"Loading emoji picker\u2026"})}):null]}):null,p?(0,Se.jsx)("button",{type:"button",onClick:h,className:H("p-2 rounded-lg transition-colors",e?"text-gray-400 hover:text-gray-300 hover:bg-gray-700/50":"text-gray-500 hover:text-gray-700 hover:bg-gray-200"),"aria-label":"Voice input",children:(0,Se.jsx)("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,Se.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0V8a5 5 0 0110 0v6z"})})}):null]})]}),(0,Se.jsx)("button",{type:"submit",disabled:n||!t.trim(),className:"flex-shrink-0 rounded-lg p-2 text-white transition-opacity disabled:opacity-50 disabled:cursor-not-allowed hover:opacity-90",style:{backgroundColor:o},"aria-label":u,children:(0,Se.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,Se.jsx)("path",{d:"M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"})})})]})})})})}var zl=J(De(),1);function Yu({width:e=400,height:t=700,dark:a=!0,accentColor:l="#6366f1",bubbleBorderRadius:n=20,showChatBorder:r=!0,showHeader:u=!0,showAvatarInHeader:o=!0,onBack:i,showBackButton:s=!1,avatar:f,title:c,subtitle:p,statusIndicator:d,showLive:g=!1,liveIndicatorStyle:C,statusDotStyle:v="blinking",showScrollToBottom:m=!0,showScrollbar:h=!0,composerAsSeparateBox:x=!0,composerBorderWidth:b=1,composerBorderColor:w="primary",onMenu:I,showMenuExpand:A,onMenuExpand:E,isExpanded:M,menuQuickLinks:S,onClose:V,messages:N,isSending:q=!1,showMetadata:B=!0,senderName:O,showSenderName:X=!0,showTime:W=!0,timePosition:ne="top",showCopyButton:ie=!0,showSources:L=!0,allowMarkdown:re=!1,emptyState:ve,onSourceClick:y,onSend:ke,composerPlaceholder:nt,inputMaxLength:Ya,maxComposerRows:ya,showAttach:Re=!0,showEmoji:Ca=!0,showMic:vt=!0,onAttach:ea,onEmoji:zt,onMic:Za,suggestedQuestions:ua,showSuggestedChips:Ka=!0,showComposerWithSuggestedQuestions:Fl=!1,onSuggestedQuestion:oa,showFooter:yn=!0,brandingMessage:qt,privacyText:we,compact:rt=!1,strings:ta={},className:Sa,style:Cn}){var Ht,Ja,$a;let[Wa,k]=(0,Qu.useState)(""),R=d!=null?d:g?"live":"none",F=(0,Qu.useCallback)(()=>{let Ae=Wa.trim();Ae&&(ke(Ae),k(""))},[Wa,ke]),Y=(0,Qu.useCallback)(Ae=>{oa==null||oa(Ae),k(Ae),ke(Ae),k("")},[oa,ke]),G={title:"Chat",subtitle:"",placeholder:"Type a message\u2026",send:"Send",copy:"Copy",copied:"Copied!",sourcesLabel:"Sources",scrollToBottomLabel:"Scroll to latest",privacyText:"Your conversations are private and secure.",back:"Back",close:"Close",menu:"Menu",live:"Live",active:"Active",expandLabel:"Expand chat",...ta},ba=!N.some(Ae=>Ae.role==="user")&&Ka&&ua&&ua.length>0&&!Fl;return(0,zl.jsxs)("div",{className:H("flex flex-col overflow-hidden shadow-xl rounded-2xl",a?"bg-gray-900 text-gray-100":"bg-white text-gray-900",Sa),style:{width:typeof e=="number"?`${e}px`:e,height:typeof t=="number"?`${t}px`:t,...r&&l?{border:`1px solid ${l}99`}:{},...Cn},role:"region","aria-label":"Chat",children:[u?(0,zl.jsx)(jL,{dark:a,showAvatar:o,onBack:i,showBackButton:s,avatar:f,title:c!=null?c:G.title,subtitle:p!=null?p:G.subtitle,statusIndicator:R,liveIndicatorStyle:C,statusDotStyle:v,onMenu:I,showMenuExpand:A,onMenuExpand:E,expandLabel:G.expandLabel,isExpanded:M,menuQuickLinks:S,onClose:V,backLabel:G.back,closeLabel:G.close,menuLabel:G.menu,liveLabel:G.live,activeLabel:(Ht=G.active)!=null?Ht:"Active"}):null,(0,zl.jsx)(HS,{dark:a,messages:N,isSending:q,accentColor:l,showMetadata:B,senderName:O,showSenderName:X,showTime:W,timePosition:ne,showCopyButton:ie,showSources:L,bubbleBorderRadius:n,allowMarkdown:re,copyLabel:G.copy,copiedLabel:G.copied,sourcesLabel:G.sourcesLabel,scrollToBottomLabel:G.scrollToBottomLabel,showScrollToBottom:m,showScrollbar:h,emptyState:ve,onSourceClick:y,suggestedQuestions:Ka&&ua&&ua.length>0?ua:void 0,onSuggestedQuestionClick:Y,compact:rt}),ba?null:(0,zl.jsx)(FS,{dark:a,value:Wa,onChange:k,onSend:F,disabled:q,placeholder:nt!=null?nt:G.placeholder,sendLabel:G.send,accentColor:l,inputMaxLength:Ya,maxComposerRows:ya,showAttach:Re,showEmoji:Ca,showMic:vt,asSeparateBox:x,composerBorderWidth:b,composerBorderColor:w,onAttach:ea,onEmoji:zt,onMic:Za,className:rt?"p-2":void 0}),yn&&((Ja=qt!=null?qt:we)!=null?Ja:G.privacyText)?(0,zl.jsx)("footer",{className:H("flex-shrink-0 text-center border-t rounded-b-2xl",a?"border-gray-700":"border-gray-200",rt?"px-2 py-1":"px-4 py-2"),children:(0,zl.jsx)("p",{className:H("text-xs","text-gray-500"),children:($a=qt!=null?qt:we)!=null?$a:G.privacyText})}):null]})}var Jt=J(De(),1),PS=()=>(0,Jt.jsx)("svg",{className:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:(0,Jt.jsx)("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})}),XA=()=>(0,Jt.jsx)("svg",{className:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:(0,Jt.jsx)("path",{d:"M18 6L6 18M6 6l12 12"})}),jA={"bottom-right":"bottom-4 right-4","bottom-left":"bottom-4 left-4","top-right":"top-4 right-4","top-left":"top-4 left-4"},QA={none:"",low:"shadow-[0_2px_12px_rgba(0,0,0,0.15)]",medium:"shadow-[0_10px_35px_rgba(0,0,0,0.28),0_0_0_1px_rgba(0,0,0,0.08)]",high:"shadow-[0_16px_48px_rgba(0,0,0,0.38),0_0_0_1px_rgba(0,0,0,0.1)]"};function US({isOpen:e,onToggle:t,accentColor:a="#6366f1",dark:l=!0,position:n="bottom-right",unreadCount:r,closedIcon:u,openIcon:o,avatar:i,alwaysShowSameIcon:s=!1,openLabel:f="Open chat",closeLabel:c="Close chat",inline:p=!1,size:d=48,shadowIntensity:g="medium",avatarWithBackground:C=!1,avatarRingWidth:v=18,className:m,style:h}){var S;let x=typeof r=="number"&&r>0&&!e,b=e?c:f,w=s||i!=null,I=g==="none"||g==="low"||g==="high"?g:"medium",A=w?(S=i!=null?i:u)!=null?S:(0,Jt.jsx)(PS,{}):e?o!=null?o:(0,Jt.jsx)(XA,{}):u!=null?u:(0,Jt.jsx)(PS,{}),E=typeof d=="number"&&d>0?Math.round(d):48,M=C&&i!=null&&typeof v=="number"&&v>=0&&v<=30?v:C&&i!=null?18:0;return(0,Jt.jsx)("button",{type:"button",onClick:t,"aria-label":b,"aria-expanded":e,className:H("flex items-center justify-center rounded-full transition-transform hover:scale-105 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 overflow-hidden",QA[I],l?"text-white focus-visible:ring-offset-gray-900":"text-white focus-visible:ring-offset-white",!p&&"fixed z-[9999]",!p&&jA[n],m),style:{width:E,height:E,backgroundColor:a,...h},children:(0,Jt.jsxs)("span",{className:H("relative flex items-center justify-center w-full h-full",(M>0,"[&>img]:w-full [&>img]:h-full [&>img]:object-cover [&>img]:rounded-full")),style:M>0?{padding:`${M}%`}:void 0,children:[A,x&&(0,Jt.jsx)("span",{className:"absolute -top-1.5 -right-1.5 min-w-[18px] h-[18px] px-1 flex items-center justify-center rounded-full text-xs font-semibold bg-white text-gray-900","aria-hidden":!0,children:r>99?"99+":r})]})})}var NS=J(We(),1);var ql=J(De(),1),YA={"bottom-right":"bottom-20 right-4","bottom-left":"bottom-20 left-4","top-right":"top-20 right-4","top-left":"top-20 left-4"};function Op({launcherPosition:e="bottom-right",launcherUnreadCount:t,launcherOpenLabel:a,launcherCloseLabel:l,defaultOpen:n=!1,accentColor:r="#6366f1",dark:u=!0,width:o=380,height:i=560,onClose:s,...f}){let[c,p]=(0,NS.useState)(n),d=()=>{p(!1),s==null||s()};return(0,ql.jsxs)(ql.Fragment,{children:[(0,ql.jsx)(US,{isOpen:c,onToggle:()=>p(g=>!g),accentColor:r,dark:u,position:e,unreadCount:t,openLabel:a,closeLabel:l}),c&&(0,ql.jsx)("div",{className:H("fixed z-[9998] flex flex-col overflow-hidden rounded-2xl shadow-2xl",YA[e],u?"bg-gray-900 border border-gray-700":"bg-white border border-gray-200"),style:{width:typeof o=="number"?`${o}px`:o,height:typeof i=="number"?`${i}px`:i},role:"dialog","aria-label":"Chat",children:(0,ql.jsx)(Yu,{...f,width:"100%",height:"100%",dark:u,accentColor:r,onClose:d,style:{border:"none",boxShadow:"none"}})})]})}function zp(e){return Array.isArray(e)?e.filter(t=>t!=null&&typeof t=="object").map((t,a)=>{let l=typeof t.title=="string"&&t.title.trim()?t.title.trim():typeof t.docTitle=="string"&&t.docTitle.trim()?t.docTitle.trim():`Source ${a+1}`,n=typeof t.snippet=="string"?t.snippet.trim()||void 0:typeof t.text=="string"?t.text.trim()||void 0:typeof t.preview=="string"&&t.preview.trim()||void 0,r=typeof t.documentId=="string"?t.documentId:typeof t.docId=="string"?t.docId:void 0,u=typeof t.chunkId=="string"?t.chunkId:void 0,o=typeof t.score=="number"&&Number.isFinite(t.score)?t.score:void 0;return{title:l,snippet:n,score:o,documentId:r,chunkId:u}}):[]}function _S(e,t){return fetch(e,{...t,credentials:"include"})}function GS(e,t){var r,u,o;let a=String((r=t.name)!=null?r:"").trim(),l=String((u=t.tagline)!=null?u:"").trim(),n=String((o=t.description)!=null?o:"").trim();return e.replace(/\{\{Name\}\}/g,a).replace(/\{\{Tagline\}\}/g,l).replace(/\{\{description\}\}/g,n)}var kr=J(De(),1);function qp(){return`msg_${Date.now()}_${Math.random().toString(36).slice(2,9)}`}function Hp(){return new Date().toISOString()}var ZA=80,KA=" - AI";function WA(e){if(typeof e.error=="string"&&e.error.trim())return e.error;switch(e.errorCode){case"BOT_NOT_PUBLISHED":return"This bot is not available for embedding right now.";case"INVALID_ACCESS_KEY":return"Chat access is invalid. Please verify your access key.";case"INVALID_SECRET_KEY":return"Chat access is invalid. Please verify your secret key.";case"VISITOR_ID_REQUIRED":return"A visitor session is required for this bot.";case"MESSAGE_LIMIT_REACHED":return"This bot has reached its message limit.";default:return"No response."}}function JA(e,t){let a=e.trim();return a.length<=t?a:a.slice(0,t).trimEnd().replace(/\s+\S*$/,"")+"\u2026"}var $A="#14B8A6";function e2(e,t){let a=typeof(e==null?void 0:e.primaryColor)=="string"&&/^#[0-9a-fA-F]{6}$/.test(e.primaryColor)?e.primaryColor:$A,l=e==null?void 0:e.backgroundStyle,n=l==="light"?!1:l==="dark"?!0:t==="dark",r=typeof(e==null?void 0:e.bubbleBorderRadius)=="number"?Math.max(0,Math.min(32,e.bubbleBorderRadius)):(e==null?void 0:e.bubbleStyle)==="squared"?0:20,u=(e==null?void 0:e.showBranding)!==!1;return{primaryColor:a,dark:n,bubbleBorderRadius:r,showBranding:u}}function t2(e){let t=e==null?void 0:e.composerBorderWidth;if(typeof t=="number"&&t>=0&&t<=6){let a=Number(t);return a>0&&a<.5?.5:Math.max(0,Math.min(6,a))}return(e==null?void 0:e.showComposerBorder)===!1?0:1}function VS({botId:e,mode:t="runtime",botName:a,avatarUrl:l,avatarEmoji:n,chatUI:r,tagline:u,description:o,welcomeMessage:i,suggestedQuestions:s,onClose:f,onBack:c,onMenu:p,expandHref:d,apiBaseUrl:g,chatPostPath:C,accessKey:v,secretKey:m,chatVisitorId:h,platformVisitorId:x,authToken:b,previewOverrides:w,debug:I=!0,footerPrivacyText:A,useFloatingLauncher:E=!1,className:M,style:S}){var Za,ua,Ka,Fl,oa,yn,qt;let V=t==="preview"?"/api/widget/preview/chat":"/api/chat/message",N=C!=null?C:V,q=g?`${g.replace(/\/+$/,"")}${N}`:N,B=(0,$t.useRef)(null),O=(0,$t.useMemo)(()=>{let we=(i!=null?i:"").trim();if(!we)return null;let rt=GS(we,{name:a,tagline:u,description:o});return{id:`welcome_${e}`,role:"assistant",content:rt,createdAt:new Date().toISOString(),status:"sent"}},[e,i,a,u,o]),X=qL(),[W,ne]=(0,$t.useState)(()=>O?[O]:[]),[ie,L]=(0,$t.useState)(!1),[re,ve]=(0,$t.useState)(!1),{primaryColor:y,dark:ke,bubbleBorderRadius:nt,showBranding:Ya}=e2(r,X);(0,$t.useEffect)(()=>{if(!O){ne(we=>{var rt,ta;return we.length===1&&((ta=(rt=we[0])==null?void 0:rt.id)!=null&&ta.startsWith("welcome_"))?[]:we});return}ne(we=>{var ta,Sa;let rt=we.length>0&&((Sa=(ta=we[0])==null?void 0:ta.id)!=null&&Sa.startsWith("welcome_"))?we.slice(1):we;return[O,...rt]})},[O]);let ya=(u!=null?u:"").trim()||(o!=null&&o.trim()?JA(o,ZA):"")||"Live test",Re=(0,$t.useCallback)(async we=>{var Sa,Cn,Wa;let rt=we.trim();if(!rt||ie)return;let ta={id:qp(),role:"user",content:rt,createdAt:Hp()};ne(k=>[...k,ta]),L(!0);try{let k={botId:e,message:rt,...B.current&&{conversationId:B.current},...v?{accessKey:v}:{},...t==="runtime"&&m?{secretKey:m}:{},...h?{chatVisitorId:h}:{},...x?{platformVisitorId:x}:{},...t==="preview"&&b?{authToken:b}:{},...t==="preview"&&w?{previewOverrides:w}:{}},R=g?await fetch(q,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(k)}):await _S(q,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(k)}),F=await R.json().catch(()=>({})),Y=(Wa=(Cn=(Sa=F.assistantMessage)!=null?Sa:F.reply)!=null?Cn:F.content)!=null?Wa:WA(F);F.conversationId&&(B.current=F.conversationId);let G={id:qp(),role:"assistant",content:typeof Y=="string"?Y:"No response.",createdAt:Hp(),sources:zp(F.sources),status:R.ok?"sent":"error"};ne(ht=>[...ht,G])}catch(k){let R=k instanceof Error?k.message:"Network error.",F={id:qp(),role:"assistant",content:R,createdAt:Hp(),status:"error"};ne(Y=>[...Y,F])}finally{L(!1)}},[q,ie,g,v,t,e,m,h,x,b,w]),Ca=Ya?A!=null?A:"Your test conversations are not stored.":void 0,vt=(r==null?void 0:r.launcherPosition)==="bottom-left"?"bottom-left":"bottom-right",ea=(r==null?void 0:r.showAvatarInHeader)!==!1?l?(0,kr.jsx)("img",{src:l,alt:"",className:"w-full h-full object-cover"}):n?(0,kr.jsx)("span",{className:"text-2xl","aria-hidden":!0,children:n}):void 0:void 0,zt={width:"100%",height:"100%",dark:ke,accentColor:y,bubbleBorderRadius:nt,showChatBorder:(r==null?void 0:r.showChatBorder)!==!1,showHeader:!0,showAvatarInHeader:(r==null?void 0:r.showAvatarInHeader)!==!1,showFooter:Ya,brandingMessage:((Za=r==null?void 0:r.brandingMessage)!=null?Za:"").trim()||void 0,privacyText:Ca,statusIndicator:(ua=r==null?void 0:r.statusIndicator)!=null?ua:"live",liveIndicatorStyle:(Ka=r==null?void 0:r.liveIndicatorStyle)!=null?Ka:"label",statusDotStyle:(Fl=r==null?void 0:r.statusDotStyle)!=null?Fl:"blinking",showScrollToBottom:(r==null?void 0:r.showScrollToBottom)!==!1,showScrollbar:(r==null?void 0:r.showScrollbar)!==!1,composerAsSeparateBox:(r==null?void 0:r.composerAsSeparateBox)!==!1,composerBorderWidth:t2(r),composerBorderColor:(r==null?void 0:r.composerBorderColor)==="default"?"default":"primary",showSuggestedChips:!!(s!=null&&s.length),suggestedQuestions:s,showComposerWithSuggestedQuestions:(r==null?void 0:r.showComposerWithSuggestedQuestions)===!0,onBack:c!=null?c:(()=>{}),onMenu:p,showMenuExpand:E?!1:(r==null?void 0:r.showMenuExpand)!==!1,onMenuExpand:E?void 0:()=>ve(we=>!we),isExpanded:E?void 0:re,menuQuickLinks:(oa=r==null?void 0:r.menuQuickLinks)!=null&&oa.length?r.menuQuickLinks:void 0,onClose:f!=null?f:(()=>{}),avatar:ea,title:a,subtitle:ya,messages:W,isSending:ie,onSend:Re,showMetadata:!0,senderName:((yn=r==null?void 0:r.senderName)!=null?yn:"").trim()?((qt=r==null?void 0:r.senderName)!=null?qt:"").trim():`${a}${KA}`,showSenderName:(r==null?void 0:r.showSenderName)!==!1,showTime:(r==null?void 0:r.showTime)!==!1,timePosition:(r==null?void 0:r.timePosition)==="bottom"?"bottom":"top",showCopyButton:(r==null?void 0:r.showCopyButton)!==!1,showSources:(r==null?void 0:r.showSources)!==!1,allowMarkdown:!0,strings:{title:a,subtitle:ya,placeholder:"Type a message\u2026",send:"Send",copy:"Copy",copied:"Copied!",sourcesLabel:"Sources",scrollToBottomLabel:"Scroll to latest",back:"Back",close:"Close",menu:"Menu",live:"Live",active:"Active",expandLabel:re?"Collapse":"Expand chat"},showAttach:(r==null?void 0:r.allowFileUpload)===!0,showEmoji:(r==null?void 0:r.showEmoji)!==!1,showMic:(r==null?void 0:r.showMic)===!0,onAttach:()=>{},onEmoji:()=>{},onMic:()=>{}};return E?(0,kr.jsx)(Op,{...zt,launcherPosition:vt,defaultOpen:!1,width:400,height:700,accentColor:y,dark:ke,onClose:f,className:M,style:S}):(0,kr.jsx)("div",{className:H("overflow-hidden",M),style:{width:re?560:400,height:re?"75vh":700,transition:"width 0.3s ease-out, height 0.3s ease-out",...S},children:(0,kr.jsx)(Yu,{...zt,showMenuExpand:(r==null?void 0:r.showMenuExpand)!==!1,onMenuExpand:()=>ve(we=>!we),isExpanded:re,strings:{...zt.strings,expandLabel:re?"Collapse":"Expand chat"},style:{border:"none",boxShadow:"none"}})})}function je(e){if(typeof e!="string")return;let t=e.trim();return t.length>0?t:void 0}function a2(e){return e.replace(/\/+$/,"")}function Fp(e){if(e==="left"||e==="right")return e}function XS(e){if(e==="runtime"||e==="preview")return e}function l2(e){if(!e||typeof e!="object")return{};let t=e,a=je(t.widgetInitPath),l=je(t.chatPostPath);return{botId:je(t.botId),apiBaseUrl:je(t.apiBaseUrl),mode:XS(t.mode),accessKey:je(t.accessKey),secretKey:je(t.secretKey),platformVisitorId:je(t.platformVisitorId),chatVisitorId:je(t.chatVisitorId),authToken:je(t.authToken),position:Fp(t.position),previewOverrides:t.previewOverrides&&typeof t.previewOverrides=="object"?t.previewOverrides:void 0,disableRemoteConfig:typeof t.disableRemoteConfig=="boolean"?t.disableRemoteConfig:void 0,...typeof t.sessionPreview=="boolean"?{sessionPreview:t.sessionPreview}:{},...typeof t.persistChatSession=="boolean"?{persistChatSession:t.persistChatSession}:{},...a?{widgetInitPath:a}:{},...l?{chatPostPath:l}:{}}}function n2(e){let t=je(e.botId),a=je(e.apiBaseUrl),l=Fp(e.position);if(!t)throw new Error("Embed config is invalid: botId is required.");if(!a)throw new Error("Embed config is invalid: apiBaseUrl is required.");if(e.position!=null&&!l)throw new Error('Embed config is invalid: position must be "left" or "right".')}function wr(e){var t;return n2(e),{botId:e.botId.trim(),apiBaseUrl:a2(e.apiBaseUrl.trim()),mode:(t=XS(e.mode))!=null?t:"runtime",accessKey:je(e.accessKey),secretKey:je(e.secretKey),widgetInitPath:je(e.widgetInitPath),chatPostPath:je(e.chatPostPath),platformVisitorId:je(e.platformVisitorId),chatVisitorId:je(e.chatVisitorId),authToken:je(e.authToken),sessionPreview:e.sessionPreview===!0,persistChatSession:typeof e.persistChatSession=="boolean"?e.persistChatSession:!je(e.authToken)&&e.sessionPreview!==!0,position:Fp(e.position),previewOverrides:e.previewOverrides,disableRemoteConfig:typeof e.disableRemoteConfig=="boolean"?e.disableRemoteConfig:void 0}}function jS(e){let t=l2(e);return wr(t)}function r2(e,t){return t==="preview"?`${e}/api/widget/preview/init`:`${e}/api/widget/init`}function u2(e,t){if(/^https?:\/\//i.test(t))return t;let a=e.replace(/\/+$/,""),l=t.startsWith("/")?t:`/${t}`;return`${a}${l}`}function o2(e){let t=typeof e.authToken=="string"?e.authToken.trim():"";return t||void 0}function QS(e){return{botId:e.botId,mode:"preview",...e.previewOverrides?{previewOverrides:e.previewOverrides}:{}}}function i2(e){var t;if(((t=e.mode)!=null?t:"runtime")==="preview"){let a=o2(e);return a?{...QS(e),authToken:a}:e.sessionPreview===!0?QS(e):{botId:e.botId,mode:"preview",...e.platformVisitorId?{platformVisitorId:e.platformVisitorId}:{},...e.chatVisitorId?{chatVisitorId:e.chatVisitorId}:{},...e.previewOverrides?{previewOverrides:e.previewOverrides}:{},...e.accessKey?{accessKey:e.accessKey}:{},...e.secretKey?{secretKey:e.secretKey}:{}}}return{botId:e.botId,mode:"runtime",...e.accessKey?{accessKey:e.accessKey}:{},...e.secretKey?{secretKey:e.secretKey}:{},...e.chatVisitorId?{chatVisitorId:e.chatVisitorId}:{}}}function s2(e,t){let a=new Headers(e);return t==null||new Headers(t).forEach((n,r)=>{a.set(r,n)}),a}async function YS(e,t){var c,p;let a=wr(e),l=(c=a.mode)!=null?c:"runtime",n=a.widgetInitPath?u2(a.apiBaseUrl,a.widgetInitPath):r2(a.apiBaseUrl,l),r=i2(a),{headers:u,...o}=t!=null?t:{},i=s2({"Content-Type":"application/json"},u),s=await fetch(n,{method:"POST",headers:i,body:JSON.stringify(r),...o,credentials:"include"}),f=null;try{f=await s.json()}catch(d){f=null}if(!s.ok){let d=typeof(f==null?void 0:f.errorCode)=="string"?f.errorCode:"",g=(f==null?void 0:f.error)||`Widget init failed with status ${s.status}`;throw new Error(d?`${g} (${d})`:g)}if(!f)throw new Error("Widget init failed: empty response.");if(f.status==="error"){let d=typeof f.errorCode=="string"?f.errorCode:"",g=(p=f.error)!=null?p:"Widget init failed.";throw new Error(d?`${g} (${d})`:g)}return f}function Pp(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function ZS(e,t){let a={...e};for(let[l,n]of Object.entries(t)){if(n===void 0)continue;let r=a[l];if(Pp(r)&&Pp(n)){a[l]=ZS(r,n);continue}a[l]=n}return a}function Qa(e){if(typeof e!="string")return;let t=e.trim();return t||void 0}function f2(e){var a,l,n,r;let t=(r=(n=(a=e.bot)==null?void 0:a.suggestedQuestions)!=null?n:(l=e.bot)==null?void 0:l.exampleQuestions)!=null?r:[];return Array.isArray(t)?t.map(u=>typeof u=="string"?u.trim():"").filter(Boolean).slice(0,6):[]}function KS(e,t){var s,f,c,p,d,g,C,v,m;if(!t)return e;let a=Pp((s=e.settings)==null?void 0:s.chatUI)?e.settings.chatUI:{},l=t.chatUI?ZS(a,t.chatUI):a;t.launcherPosition&&(l.launcherPosition=t.launcherPosition);let n=f2(e),r=Array.isArray(t.suggestedQuestions)?t.suggestedQuestions:n,u=(f=Qa(t.brandingMessage))!=null?f:Qa(l.brandingMessage),o=Qa(t.privacyText),i=(c=e.bot)!=null?c:{};return{...e,bot:{...i,name:(p=Qa(t.botName))!=null?p:typeof i.name=="string"?i.name:"",imageUrl:(d=Qa(t.avatarUrl))!=null?d:i.imageUrl,avatarEmoji:(g=Qa(t.avatarEmoji))!=null?g:i.avatarEmoji,tagline:(C=Qa(t.tagline))!=null?C:i.tagline,description:(v=Qa(t.description))!=null?v:i.description,welcomeMessage:(m=Qa(t.welcomeMessage))!=null?m:i.welcomeMessage,suggestedQuestions:r,exampleQuestions:r},settings:{...e.settings,chatUI:l,...u?{brandingMessage:u}:{},...o?{privacyText:o}:{}}}}var c2="Assistant",d2="#14B8A6";function p2(e){var a,l,n,r;let t=(r=(n=(a=e.bot)==null?void 0:a.suggestedQuestions)!=null?n:(l=e.bot)==null?void 0:l.exampleQuestions)!=null?r:[];return Array.isArray(t)?t.map(u=>typeof u=="string"?u.trim():"").filter(Boolean).slice(0,6):[]}function m2(e){var l,n;let t=(n=(l=e.settings)==null?void 0:l.chatUI)!=null?n:{},a=typeof t.primaryColor=="string"&&/^#[0-9a-fA-F]{6}$/.test(t.primaryColor)?t.primaryColor:d2;return{...t,primaryColor:a}}function h2(e){if(e==="left")return"bottom-left";if(e==="right")return"bottom-right"}function g2(e,t){var a;return e.launcherPosition==="bottom-left"||e.launcherPosition==="bottom-right"?e.launcherPosition:(a=h2(t.position))!=null?a:"bottom-right"}function Up(e,t){var r,u,o,i,s,f,c,p,d,g;let a=m2(e),l=g2(a,t),n=((u=(r=e.bot)==null?void 0:r.name)!=null?u:"").trim()||c2;return{botId:t.botId,botName:n,avatarUrl:(o=e.bot)==null?void 0:o.imageUrl,avatarEmoji:(i=e.bot)==null?void 0:i.avatarEmoji,tagline:(s=e.bot)==null?void 0:s.tagline,description:(f=e.bot)==null?void 0:f.description,welcomeMessage:(c=e.bot)==null?void 0:c.welcomeMessage,suggestedQuestions:p2(e),chatUI:{...a,launcherPosition:l},launcherPosition:l,brandingMessage:(d=(p=e.settings)==null?void 0:p.brandingMessage)!=null?d:a.brandingMessage,privacyText:(g=e.settings)==null?void 0:g.privacyText}}var Np=J(De(),1);function x2(e,t){return t==="preview"?`assistrio_chat_visitor_preview_id:${e}`:`assistrio_chat_visitor_id:${e}`}function L2(e){let t=e!=null?e:{};if(t.mode==="preview"){let{previewOverrides:a,...l}=t;return JSON.stringify(l)}return JSON.stringify(t)}function _p({rawConfig:e}){var d,g,C;let[t,a]=(0,La.useState)("loading"),[l,n]=(0,La.useState)(null),[r,u]=(0,La.useState)(null),o=JSON.stringify((d=e==null?void 0:e.previewOverrides)!=null?d:null),i=(0,La.useMemo)(()=>wr(e),[e,o]),s=(0,La.useMemo)(()=>L2(e),[e]);(0,La.useEffect)(()=>{let v=!1;return a("loading"),(async()=>{var m;try{let h=wr(e),x=(m=h.mode)!=null?m:"runtime",b=typeof h.authToken=="string"&&h.authToken.trim()!==""||h.sessionPreview===!0,w=x2(h.botId,x),I=h.persistChatSession!==!1,A=!b&&I&&typeof window!="undefined"?window.localStorage.getItem(w):null,E={...e,...A?{chatVisitorId:A}:{}};b&&delete E.chatVisitorId,x==="preview"&&delete E.previewOverrides;let M=await YS(E);if(v)return;n(M);let S=typeof M.chatVisitorId=="string"&&M.chatVisitorId.trim()?M.chatVisitorId:A;S&&(I&&window.localStorage.setItem(w,S),u(S)),a("ready")}catch(h){if(v)return;let x=h instanceof Error?h.message:"Chat unavailable.";typeof console!="undefined"&&console.error&&console.error("[Assistrio embed]",x),a("error")}})(),()=>{v=!0}},[s]);let f=(0,La.useMemo)(()=>{if(!l)return null;if(i.mode==="runtime")return Up(l,i);let v=KS(l,i.previewOverrides);return Up(v,i)},[l,i]),c=(e==null?void 0:e.position)==="left"?"bottom-4 left-4":"bottom-4 right-4";if(t==="loading")return(0,Np.jsx)("div",{"aria-hidden":!0,className:`fixed z-[9999] h-2 w-2 rounded-full bg-gray-400 opacity-50 ${c}`});if(t==="error"||!f||!r)return null;let p={...f.chatUI,...(g=f.brandingMessage)!=null&&g.trim()?{brandingMessage:f.brandingMessage.trim()}:{}};return(0,Np.jsx)(VS,{botId:f.botId,mode:(C=i.mode)!=null?C:"runtime",botName:f.botName,avatarUrl:f.avatarUrl,avatarEmoji:f.avatarEmoji,chatUI:p,tagline:f.tagline,description:f.description,welcomeMessage:f.welcomeMessage,suggestedQuestions:f.suggestedQuestions,apiBaseUrl:i.apiBaseUrl,chatPostPath:i.chatPostPath,accessKey:i.accessKey,secretKey:i.secretKey,chatVisitorId:r,platformVisitorId:i.platformVisitorId,authToken:i.authToken,previewOverrides:i.mode==="preview"?i.previewOverrides:void 0,debug:!1,footerPrivacyText:f.privacyText,useFloatingLauncher:!0})}var Hl=null,y2="assistrio-embed-widget-root";function JS(e){if(typeof document=="undefined")return;if(Hl){Hl.root.render(Gp.default.createElement(_p,{rawConfig:e}));return}let t=document.createElement("div");t.id=y2,document.body.appendChild(t);let a=(0,WS.createRoot)(t);a.render(Gp.default.createElement(_p,{rawConfig:e})),Hl={root:a,mountEl:t}}function $S(){Hl&&(Hl.root.unmount(),Hl.mountEl.remove(),Hl=null)}function eb(){return Hl!==null}function C2(e){var a;return{...typeof window!="undefined"?(a=window.AssistrioChatConfig)!=null?a:{}:{},...e}}function ab(e){try{let t=C2(e),a=jS(t);JS(a)}catch(t){let a=t instanceof Error?t.message:String(t);typeof console!="undefined"&&console.error&&console.error("[Assistrio Chat]",a)}}function tb(){typeof window!="undefined"&&window.AssistrioChatConfig&&ab()}function S2(){typeof window!="undefined"&&(window.AssistrioChat={mount:ab,unmount:$S,isMounted:eb})}S2();typeof document!="undefined"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",tb,{once:!0}):tb());return ib(b2);})();
|