@binarycheater/research-sidecar 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,321 @@
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const u of s.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(l){if(l.ep)return;l.ep=!0;const s=n(l);fetch(l.href,s)}})();function vc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ld={exports:{}},hs={};var Bg;function tb(){if(Bg)return hs;Bg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,l,s){var u=null;if(s!==void 0&&(u=""+s),l.key!==void 0&&(u=""+l.key),"key"in l){s={};for(var f in l)f!=="key"&&(s[f]=l[f])}else s=l;return l=s.ref,{$$typeof:e,type:i,key:u,ref:l!==void 0?l:null,props:s}}return hs.Fragment=t,hs.jsx=n,hs.jsxs=n,hs}var Lg;function nb(){return Lg||(Lg=1,ld.exports=tb()),ld.exports}var M=nb(),od={exports:{}},Ze={};var Hg;function rb(){if(Hg)return Ze;Hg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),v=Symbol.iterator;function x(j){return j===null||typeof j!="object"?null:(j=v&&j[v]||j["@@iterator"],typeof j=="function"?j:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,C={};function E(j,Q,_){this.props=j,this.context=Q,this.refs=C,this.updater=_||w}E.prototype.isReactComponent={},E.prototype.setState=function(j,Q){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,Q,"setState")},E.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function D(){}D.prototype=E.prototype;function T(j,Q,_){this.props=j,this.context=Q,this.refs=C,this.updater=_||w}var B=T.prototype=new D;B.constructor=T,A(B,E.prototype),B.isPureReactComponent=!0;var U=Array.isArray;function z(){}var I={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function $(j,Q,_){var se=_.ref;return{$$typeof:e,type:j,key:Q,ref:se!==void 0?se:null,props:_}}function V(j,Q){return $(j.type,Q,j.props)}function G(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function W(j){var Q={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(_){return Q[_]})}var ce=/\/+/g;function q(j,Q){return typeof j=="object"&&j!==null&&j.key!=null?W(""+j.key):Q.toString(36)}function F(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(z,z):(j.status="pending",j.then(function(Q){j.status==="pending"&&(j.status="fulfilled",j.value=Q)},function(Q){j.status==="pending"&&(j.status="rejected",j.reason=Q)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function L(j,Q,_,se,ve){var be=typeof j;(be==="undefined"||be==="boolean")&&(j=null);var we=!1;if(j===null)we=!0;else switch(be){case"bigint":case"string":case"number":we=!0;break;case"object":switch(j.$$typeof){case e:case t:we=!0;break;case p:return we=j._init,L(we(j._payload),Q,_,se,ve)}}if(we)return ve=ve(j),we=se===""?"."+q(j,0):se,U(ve)?(_="",we!=null&&(_=we.replace(ce,"$&/")+"/"),L(ve,Q,_,"",function(je){return je})):ve!=null&&(G(ve)&&(ve=V(ve,_+(ve.key==null||j&&j.key===ve.key?"":(""+ve.key).replace(ce,"$&/")+"/")+we)),Q.push(ve)),1;we=0;var ge=se===""?".":se+":";if(U(j))for(var ke=0;ke<j.length;ke++)se=j[ke],be=ge+q(se,ke),we+=L(se,Q,_,be,ve);else if(ke=x(j),typeof ke=="function")for(j=ke.call(j),ke=0;!(se=j.next()).done;)se=se.value,be=ge+q(se,ke++),we+=L(se,Q,_,be,ve);else if(be==="object"){if(typeof j.then=="function")return L(F(j),Q,_,se,ve);throw Q=String(j),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return we}function Y(j,Q,_){if(j==null)return j;var se=[],ve=0;return L(j,se,"","",function(be){return Q.call(_,be,ve++)}),se}function J(j){if(j._status===-1){var Q=j._result;Q=Q(),Q.then(function(_){(j._status===0||j._status===-1)&&(j._status=1,j._result=_)},function(_){(j._status===0||j._status===-1)&&(j._status=2,j._result=_)}),j._status===-1&&(j._status=0,j._result=Q)}if(j._status===1)return j._result.default;throw j._result}var ne=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},R={map:Y,forEach:function(j,Q,_){Y(j,function(){Q.apply(this,arguments)},_)},count:function(j){var Q=0;return Y(j,function(){Q++}),Q},toArray:function(j){return Y(j,function(Q){return Q})||[]},only:function(j){if(!G(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return Ze.Activity=m,Ze.Children=R,Ze.Component=E,Ze.Fragment=n,Ze.Profiler=l,Ze.PureComponent=T,Ze.StrictMode=i,Ze.Suspense=h,Ze.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,Ze.__COMPILER_RUNTIME={__proto__:null,c:function(j){return I.H.useMemoCache(j)}},Ze.cache=function(j){return function(){return j.apply(null,arguments)}},Ze.cacheSignal=function(){return null},Ze.cloneElement=function(j,Q,_){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var se=A({},j.props),ve=j.key;if(Q!=null)for(be in Q.key!==void 0&&(ve=""+Q.key),Q)!P.call(Q,be)||be==="key"||be==="__self"||be==="__source"||be==="ref"&&Q.ref===void 0||(se[be]=Q[be]);var be=arguments.length-2;if(be===1)se.children=_;else if(1<be){for(var we=Array(be),ge=0;ge<be;ge++)we[ge]=arguments[ge+2];se.children=we}return $(j.type,ve,se)},Ze.createContext=function(j){return j={$$typeof:u,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:s,_context:j},j},Ze.createElement=function(j,Q,_){var se,ve={},be=null;if(Q!=null)for(se in Q.key!==void 0&&(be=""+Q.key),Q)P.call(Q,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(ve[se]=Q[se]);var we=arguments.length-2;if(we===1)ve.children=_;else if(1<we){for(var ge=Array(we),ke=0;ke<we;ke++)ge[ke]=arguments[ke+2];ve.children=ge}if(j&&j.defaultProps)for(se in we=j.defaultProps,we)ve[se]===void 0&&(ve[se]=we[se]);return $(j,be,ve)},Ze.createRef=function(){return{current:null}},Ze.forwardRef=function(j){return{$$typeof:f,render:j}},Ze.isValidElement=G,Ze.lazy=function(j){return{$$typeof:p,_payload:{_status:-1,_result:j},_init:J}},Ze.memo=function(j,Q){return{$$typeof:d,type:j,compare:Q===void 0?null:Q}},Ze.startTransition=function(j){var Q=I.T,_={};I.T=_;try{var se=j(),ve=I.S;ve!==null&&ve(_,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(z,ne)}catch(be){ne(be)}finally{Q!==null&&_.types!==null&&(Q.types=_.types),I.T=Q}},Ze.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},Ze.use=function(j){return I.H.use(j)},Ze.useActionState=function(j,Q,_){return I.H.useActionState(j,Q,_)},Ze.useCallback=function(j,Q){return I.H.useCallback(j,Q)},Ze.useContext=function(j){return I.H.useContext(j)},Ze.useDebugValue=function(){},Ze.useDeferredValue=function(j,Q){return I.H.useDeferredValue(j,Q)},Ze.useEffect=function(j,Q){return I.H.useEffect(j,Q)},Ze.useEffectEvent=function(j){return I.H.useEffectEvent(j)},Ze.useId=function(){return I.H.useId()},Ze.useImperativeHandle=function(j,Q,_){return I.H.useImperativeHandle(j,Q,_)},Ze.useInsertionEffect=function(j,Q){return I.H.useInsertionEffect(j,Q)},Ze.useLayoutEffect=function(j,Q){return I.H.useLayoutEffect(j,Q)},Ze.useMemo=function(j,Q){return I.H.useMemo(j,Q)},Ze.useOptimistic=function(j,Q){return I.H.useOptimistic(j,Q)},Ze.useReducer=function(j,Q,_){return I.H.useReducer(j,Q,_)},Ze.useRef=function(j){return I.H.useRef(j)},Ze.useState=function(j){return I.H.useState(j)},Ze.useSyncExternalStore=function(j,Q,_){return I.H.useSyncExternalStore(j,Q,_)},Ze.useTransition=function(){return I.H.useTransition()},Ze.version="19.2.6",Ze}var jg;function Gs(){return jg||(jg=1,od.exports=rb()),od.exports}var ie=Gs();const ib=vc(ie);var sd={exports:{}},ds={},ud={exports:{}},cd={};var qg;function ab(){return qg||(qg=1,(function(e){function t(L,Y){var J=L.length;L.push(Y);e:for(;0<J;){var ne=J-1>>>1,R=L[ne];if(0<l(R,Y))L[ne]=Y,L[J]=R,J=ne;else break e}}function n(L){return L.length===0?null:L[0]}function i(L){if(L.length===0)return null;var Y=L[0],J=L.pop();if(J!==Y){L[0]=J;e:for(var ne=0,R=L.length,j=R>>>1;ne<j;){var Q=2*(ne+1)-1,_=L[Q],se=Q+1,ve=L[se];if(0>l(_,J))se<R&&0>l(ve,_)?(L[ne]=ve,L[se]=J,ne=se):(L[ne]=_,L[Q]=J,ne=Q);else if(se<R&&0>l(ve,J))L[ne]=ve,L[se]=J,ne=se;else break e}}return Y}function l(L,Y){var J=L.sortIndex-Y.sortIndex;return J!==0?J:L.id-Y.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var h=[],d=[],p=1,m=null,v=3,x=!1,w=!1,A=!1,C=!1,E=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function B(L){for(var Y=n(d);Y!==null;){if(Y.callback===null)i(d);else if(Y.startTime<=L)i(d),Y.sortIndex=Y.expirationTime,t(h,Y);else break;Y=n(d)}}function U(L){if(A=!1,B(L),!w)if(n(h)!==null)w=!0,z||(z=!0,W());else{var Y=n(d);Y!==null&&F(U,Y.startTime-L)}}var z=!1,I=-1,P=5,$=-1;function V(){return C?!0:!(e.unstable_now()-$<P)}function G(){if(C=!1,z){var L=e.unstable_now();$=L;var Y=!0;try{e:{w=!1,A&&(A=!1,D(I),I=-1),x=!0;var J=v;try{t:{for(B(L),m=n(h);m!==null&&!(m.expirationTime>L&&V());){var ne=m.callback;if(typeof ne=="function"){m.callback=null,v=m.priorityLevel;var R=ne(m.expirationTime<=L);if(L=e.unstable_now(),typeof R=="function"){m.callback=R,B(L),Y=!0;break t}m===n(h)&&i(h),B(L)}else i(h);m=n(h)}if(m!==null)Y=!0;else{var j=n(d);j!==null&&F(U,j.startTime-L),Y=!1}}break e}finally{m=null,v=J,x=!1}Y=void 0}}finally{Y?W():z=!1}}}var W;if(typeof T=="function")W=function(){T(G)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,q=ce.port2;ce.port1.onmessage=G,W=function(){q.postMessage(null)}}else W=function(){E(G,0)};function F(L,Y){I=E(function(){L(e.unstable_now())},Y)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(L){switch(v){case 1:case 2:case 3:var Y=3;break;default:Y=v}var J=v;v=Y;try{return L()}finally{v=J}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(L,Y){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var J=v;v=L;try{return Y()}finally{v=J}},e.unstable_scheduleCallback=function(L,Y,J){var ne=e.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?ne+J:ne):J=ne,L){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=J+R,L={id:p++,callback:Y,priorityLevel:L,startTime:J,expirationTime:R,sortIndex:-1},J>ne?(L.sortIndex=J,t(d,L),n(h)===null&&L===n(d)&&(A?(D(I),I=-1):A=!0,F(U,J-ne))):(L.sortIndex=R,t(h,L),w||x||(w=!0,z||(z=!0,W()))),L},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(L){var Y=v;return function(){var J=v;v=Y;try{return L.apply(this,arguments)}finally{v=J}}}})(cd)),cd}var Ig;function lb(){return Ig||(Ig=1,ud.exports=ab()),ud.exports}var fd={exports:{}},wn={};var Ug;function ob(){if(Ug)return wn;Ug=1;var e=Gs();function t(h){var d="https://react.dev/errors/"+h;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)d+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+h+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var i={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},l=Symbol.for("react.portal");function s(h,d,p){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:m==null?null:""+m,children:h,containerInfo:d,implementation:p}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,d){if(h==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return wn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,wn.createPortal=function(h,d){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return s(h,d,null,p)},wn.flushSync=function(h){var d=u.T,p=i.p;try{if(u.T=null,i.p=2,h)return h()}finally{u.T=d,i.p=p,i.d.f()}},wn.preconnect=function(h,d){typeof h=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,i.d.C(h,d))},wn.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},wn.preinit=function(h,d){if(typeof h=="string"&&d&&typeof d.as=="string"){var p=d.as,m=f(p,d.crossOrigin),v=typeof d.integrity=="string"?d.integrity:void 0,x=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;p==="style"?i.d.S(h,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:m,integrity:v,fetchPriority:x}):p==="script"&&i.d.X(h,{crossOrigin:m,integrity:v,fetchPriority:x,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},wn.preinitModule=function(h,d){if(typeof h=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var p=f(d.as,d.crossOrigin);i.d.M(h,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&i.d.M(h)},wn.preload=function(h,d){if(typeof h=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var p=d.as,m=f(p,d.crossOrigin);i.d.L(h,p,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},wn.preloadModule=function(h,d){if(typeof h=="string")if(d){var p=f(d.as,d.crossOrigin);i.d.m(h,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else i.d.m(h)},wn.requestFormReset=function(h){i.d.r(h)},wn.unstable_batchedUpdates=function(h,d){return h(d)},wn.useFormState=function(h,d,p){return u.H.useFormState(h,d,p)},wn.useFormStatus=function(){return u.H.useHostTransitionStatus()},wn.version="19.2.6",wn}var Fg;function Y6(){if(Fg)return fd.exports;Fg=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),fd.exports=ob(),fd.exports}var Vg;function sb(){if(Vg)return ds;Vg=1;var e=lb(),t=Gs(),n=Y6();function i(r){var a="https://react.dev/errors/"+r;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)a+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+r+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function s(r){var a=r,o=r;if(r.alternate)for(;a.return;)a=a.return;else{r=a;do a=r,(a.flags&4098)!==0&&(o=a.return),r=a.return;while(r)}return a.tag===3?o:null}function u(r){if(r.tag===13){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function f(r){if(r.tag===31){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function h(r){if(s(r)!==r)throw Error(i(188))}function d(r){var a=r.alternate;if(!a){if(a=s(r),a===null)throw Error(i(188));return a!==r?null:r}for(var o=r,c=a;;){var g=o.return;if(g===null)break;var y=g.alternate;if(y===null){if(c=g.return,c!==null){o=c;continue}break}if(g.child===y.child){for(y=g.child;y;){if(y===o)return h(g),r;if(y===c)return h(g),a;y=y.sibling}throw Error(i(188))}if(o.return!==c.return)o=g,c=y;else{for(var k=!1,O=g.child;O;){if(O===o){k=!0,o=g,c=y;break}if(O===c){k=!0,c=g,o=y;break}O=O.sibling}if(!k){for(O=y.child;O;){if(O===o){k=!0,o=y,c=g;break}if(O===c){k=!0,c=y,o=g;break}O=O.sibling}if(!k)throw Error(i(189))}}if(o.alternate!==c)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?r:a}function p(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r;for(r=r.child;r!==null;){if(a=p(r),a!==null)return a;r=r.sibling}return null}var m=Object.assign,v=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),T=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),V=Symbol.for("react.memo_cache_sentinel"),G=Symbol.iterator;function W(r){return r===null||typeof r!="object"?null:(r=G&&r[G]||r["@@iterator"],typeof r=="function"?r:null)}var ce=Symbol.for("react.client.reference");function q(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===ce?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case A:return"Fragment";case E:return"Profiler";case C:return"StrictMode";case U:return"Suspense";case z:return"SuspenseList";case $:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case w:return"Portal";case T:return r.displayName||"Context";case D:return(r._context.displayName||"Context")+".Consumer";case B:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case I:return a=r.displayName||null,a!==null?a:q(r.type)||"Memo";case P:a=r._payload,r=r._init;try{return q(r(a))}catch{}}return null}var F=Array.isArray,L=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},ne=[],R=-1;function j(r){return{current:r}}function Q(r){0>R||(r.current=ne[R],ne[R]=null,R--)}function _(r,a){R++,ne[R]=r.current,r.current=a}var se=j(null),ve=j(null),be=j(null),we=j(null);function ge(r,a){switch(_(be,a),_(ve,r),_(se,null),a.nodeType){case 9:case 11:r=(r=a.documentElement)&&(r=r.namespaceURI)?ig(r):0;break;default:if(r=a.tagName,a=a.namespaceURI)a=ig(a),r=ag(a,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}Q(se),_(se,r)}function ke(){Q(se),Q(ve),Q(be)}function je(r){r.memoizedState!==null&&_(we,r);var a=se.current,o=ag(a,r.type);a!==o&&(_(ve,r),_(se,o))}function qe(r){ve.current===r&&(Q(se),Q(ve)),we.current===r&&(Q(we),ss._currentValue=J)}var _e,Le;function Ye(r){if(_e===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);_e=a&&a[1]||"",Le=-1<o.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+_e+r+Le}var tt=!1;function et(r,a){if(!r||tt)return"";tt=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(a){var pe=function(){throw Error()};if(Object.defineProperty(pe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(pe,[])}catch(ue){var oe=ue}Reflect.construct(r,[],pe)}else{try{pe.call()}catch(ue){oe=ue}r.call(pe.prototype)}}else{try{throw Error()}catch(ue){oe=ue}(pe=r())&&typeof pe.catch=="function"&&pe.catch(function(){})}}catch(ue){if(ue&&oe&&typeof ue.stack=="string")return[ue.stack,oe.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=c.DetermineComponentFrameRoot(),k=y[0],O=y[1];if(k&&O){var K=k.split(`
4
+ `),le=O.split(`
5
+ `);for(g=c=0;c<K.length&&!K[c].includes("DetermineComponentFrameRoot");)c++;for(;g<le.length&&!le[g].includes("DetermineComponentFrameRoot");)g++;if(c===K.length||g===le.length)for(c=K.length-1,g=le.length-1;1<=c&&0<=g&&K[c]!==le[g];)g--;for(;1<=c&&0<=g;c--,g--)if(K[c]!==le[g]){if(c!==1||g!==1)do if(c--,g--,0>g||K[c]!==le[g]){var he=`
6
+ `+K[c].replace(" at new "," at ");return r.displayName&&he.includes("<anonymous>")&&(he=he.replace("<anonymous>",r.displayName)),he}while(1<=c&&0<=g);break}}}finally{tt=!1,Error.prepareStackTrace=o}return(o=r?r.displayName||r.name:"")?Ye(o):""}function ht(r,a){switch(r.tag){case 26:case 27:case 5:return Ye(r.type);case 16:return Ye("Lazy");case 13:return r.child!==a&&a!==null?Ye("Suspense Fallback"):Ye("Suspense");case 19:return Ye("SuspenseList");case 0:case 15:return et(r.type,!1);case 11:return et(r.type.render,!1);case 1:return et(r.type,!0);case 31:return Ye("Activity");default:return""}}function me(r){try{var a="",o=null;do a+=ht(r,o),o=r,r=r.return;while(r);return a}catch(c){return`
7
+ Error generating stack: `+c.message+`
8
+ `+c.stack}}var Ue=Object.prototype.hasOwnProperty,nt=e.unstable_scheduleCallback,At=e.unstable_cancelCallback,Ct=e.unstable_shouldYield,An=e.unstable_requestPaint,Ot=e.unstable_now,On=e.unstable_getCurrentPriorityLevel,fe=e.unstable_ImmediatePriority,Ee=e.unstable_UserBlockingPriority,Re=e.unstable_NormalPriority,$e=e.unstable_LowPriority,ot=e.unstable_IdlePriority,mn=e.log,$n=e.unstable_setDisableYieldValue,an=null,Rt=null;function ln(r){if(typeof mn=="function"&&$n(r),Rt&&typeof Rt.setStrictMode=="function")try{Rt.setStrictMode(an,r)}catch{}}var dt=Math.clz32?Math.clz32:wo,ur=Math.log,Cn=Math.LN2;function wo(r){return r>>>=0,r===0?32:31-(ur(r)/Cn|0)|0}var ye=256,Pe=262144,It=4194304;function xt(r){var a=r&42;if(a!==0)return a;switch(r&-r){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 r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function Zr(r,a,o){var c=r.pendingLanes;if(c===0)return 0;var g=0,y=r.suspendedLanes,k=r.pingedLanes;r=r.warmLanes;var O=c&134217727;return O!==0?(c=O&~y,c!==0?g=xt(c):(k&=O,k!==0?g=xt(k):o||(o=O&~r,o!==0&&(g=xt(o))))):(O=c&~y,O!==0?g=xt(O):k!==0?g=xt(k):o||(o=c&~r,o!==0&&(g=xt(o)))),g===0?0:a!==0&&a!==g&&(a&y)===0&&(y=g&-g,o=a&-a,y>=o||y===32&&(o&4194048)!==0)?a:g}function _r(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function xn(r,a){switch(r){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 zi(){var r=It;return It<<=1,(It&62914560)===0&&(It=4194304),r}function Sa(r){for(var a=[],o=0;31>o;o++)a.push(r);return a}function wr(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function al(r,a,o,c,g,y){var k=r.pendingLanes;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=o,r.entangledLanes&=o,r.errorRecoveryDisabledLanes&=o,r.shellSuspendCounter=0;var O=r.entanglements,K=r.expirationTimes,le=r.hiddenUpdates;for(o=k&~o;0<o;){var he=31-dt(o),pe=1<<he;O[he]=0,K[he]=-1;var oe=le[he];if(oe!==null)for(le[he]=null,he=0;he<oe.length;he++){var ue=oe[he];ue!==null&&(ue.lane&=-536870913)}o&=~pe}c!==0&&ll(r,c,0),y!==0&&g===0&&r.tag!==0&&(r.suspendedLanes|=y&~(k&~a))}function ll(r,a,o){r.pendingLanes|=a,r.suspendedLanes&=~a;var c=31-dt(a);r.entangledLanes|=a,r.entanglements[c]=r.entanglements[c]|1073741824|o&261930}function Xn(r,a){var o=r.entangledLanes|=a;for(r=r.entanglements;o;){var c=31-dt(o),g=1<<c;g&a|r[c]&a&&(r[c]|=a),o&=~g}}function ol(r,a){var o=a&-a;return o=(o&42)!==0?1:Ni(o),(o&(r.suspendedLanes|a))!==0?0:o}function Ni(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=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:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Di(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function on(){var r=Y.p;return r!==0?r:(r=window.event,r===void 0?32:Mg(r.type))}function sl(r,a){var o=Y.p;try{return Y.p=r,a()}finally{Y.p=o}}var Or=Math.random().toString(36).slice(2),sn="__reactFiber$"+Or,bn="__reactProps$"+Or,Qr="__reactContainer$"+Or,ul="__reactEvents$"+Or,au="__reactListeners$"+Or,Qc="__reactHandles$"+Or,lu="__reactResources$"+Or,ka="__reactMarker$"+Or;function So(r){delete r[sn],delete r[bn],delete r[ul],delete r[au],delete r[Qc]}function _i(r){var a=r[sn];if(a)return a;for(var o=r.parentNode;o;){if(a=o[Qr]||o[sn]){if(o=a.alternate,a.child!==null||o!==null&&o.child!==null)for(r=hg(r);r!==null;){if(o=r[sn])return o;r=hg(r)}return a}r=o,o=r.parentNode}return null}function Oi(r){if(r=r[sn]||r[Qr]){var a=r.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return r}return null}function Ri(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error(i(33))}function Bi(r){var a=r[lu];return a||(a=r[lu]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Pt(r){r[ka]=!0}var ou=new Set,su={};function Kr(r,a){Li(r,a),Li(r+"Capture",a)}function Li(r,a){for(su[r]=a,r=0;r<a.length;r++)ou.add(a[r])}var Kc=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]*$"),ko={},uu={};function Jc(r){return Ue.call(uu,r)?!0:Ue.call(ko,r)?!1:Kc.test(r)?uu[r]=!0:(ko[r]=!0,!1)}function cl(r,a,o){if(Jc(a))if(o===null)r.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":r.removeAttribute(a);return;case"boolean":var c=a.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){r.removeAttribute(a);return}}r.setAttribute(a,""+o)}}function fl(r,a,o){if(o===null)r.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(a);return}r.setAttribute(a,""+o)}}function Sr(r,a,o,c){if(c===null)r.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(o);return}r.setAttributeNS(a,o,""+c)}}function Rn(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function cu(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Wc(r,a,o){var c=Object.getOwnPropertyDescriptor(r.constructor.prototype,a);if(!r.hasOwnProperty(a)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var g=c.get,y=c.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return g.call(this)},set:function(k){o=""+k,y.call(this,k)}}),Object.defineProperty(r,a,{enumerable:c.enumerable}),{getValue:function(){return o},setValue:function(k){o=""+k},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function hl(r){if(!r._valueTracker){var a=cu(r)?"checked":"value";r._valueTracker=Wc(r,a,""+r[a])}}function fu(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var o=a.getValue(),c="";return r&&(c=cu(r)?r.checked?"true":"false":r.value),r=c,r!==o?(a.setValue(r),!0):!1}function Ea(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var ef=/[\n"\\]/g;function Bn(r){return r.replace(ef,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Aa(r,a,o,c,g,y,k,O){r.name="",k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?r.type=k:r.removeAttribute("type"),a!=null?k==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+Rn(a)):r.value!==""+Rn(a)&&(r.value=""+Rn(a)):k!=="submit"&&k!=="reset"||r.removeAttribute("value"),a!=null?Eo(r,k,Rn(a)):o!=null?Eo(r,k,Rn(o)):c!=null&&r.removeAttribute("value"),g==null&&y!=null&&(r.defaultChecked=!!y),g!=null&&(r.checked=g&&typeof g!="function"&&typeof g!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?r.name=""+Rn(O):r.removeAttribute("name")}function hu(r,a,o,c,g,y,k,O){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(r.type=y),a!=null||o!=null){if(!(y!=="submit"&&y!=="reset"||a!=null)){hl(r);return}o=o!=null?""+Rn(o):"",a=a!=null?""+Rn(a):o,O||a===r.value||(r.value=a),r.defaultValue=a}c=c??g,c=typeof c!="function"&&typeof c!="symbol"&&!!c,r.checked=O?r.checked:!!c,r.defaultChecked=!!c,k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&(r.name=k),hl(r)}function Eo(r,a,o){a==="number"&&Ea(r.ownerDocument)===r||r.defaultValue===""+o||(r.defaultValue=""+o)}function Jr(r,a,o,c){if(r=r.options,a){a={};for(var g=0;g<o.length;g++)a["$"+o[g]]=!0;for(o=0;o<r.length;o++)g=a.hasOwnProperty("$"+r[o].value),r[o].selected!==g&&(r[o].selected=g),g&&c&&(r[o].defaultSelected=!0)}else{for(o=""+Rn(o),a=null,g=0;g<r.length;g++){if(r[g].value===o){r[g].selected=!0,c&&(r[g].defaultSelected=!0);return}a!==null||r[g].disabled||(a=r[g])}a!==null&&(a.selected=!0)}}function Wm(r,a,o){if(a!=null&&(a=""+Rn(a),a!==r.value&&(r.value=a),o==null)){r.defaultValue!==a&&(r.defaultValue=a);return}r.defaultValue=o!=null?""+Rn(o):""}function ep(r,a,o,c){if(a==null){if(c!=null){if(o!=null)throw Error(i(92));if(F(c)){if(1<c.length)throw Error(i(93));c=c[0]}o=c}o==null&&(o=""),a=o}o=Rn(a),r.defaultValue=o,c=r.textContent,c===o&&c!==""&&c!==null&&(r.value=c),hl(r)}function dl(r,a){if(a){var o=r.firstChild;if(o&&o===r.lastChild&&o.nodeType===3){o.nodeValue=a;return}}r.textContent=a}var Qv=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 tp(r,a,o){var c=a.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?c?r.setProperty(a,""):a==="float"?r.cssFloat="":r[a]="":c?r.setProperty(a,o):typeof o!="number"||o===0||Qv.has(a)?a==="float"?r.cssFloat=o:r[a]=(""+o).trim():r[a]=o+"px"}function np(r,a,o){if(a!=null&&typeof a!="object")throw Error(i(62));if(r=r.style,o!=null){for(var c in o)!o.hasOwnProperty(c)||a!=null&&a.hasOwnProperty(c)||(c.indexOf("--")===0?r.setProperty(c,""):c==="float"?r.cssFloat="":r[c]="");for(var g in a)c=a[g],a.hasOwnProperty(g)&&o[g]!==c&&tp(r,g,c)}else for(var y in a)a.hasOwnProperty(y)&&tp(r,y,a[y])}function tf(r){if(r.indexOf("-")===-1)return!1;switch(r){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 Kv=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"]]),Jv=/^[\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 du(r){return Jv.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Wr(){}var nf=null;function rf(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var ml=null,pl=null;function rp(r){var a=Oi(r);if(a&&(r=a.stateNode)){var o=r[bn]||null;e:switch(r=a.stateNode,a.type){case"input":if(Aa(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),a=o.name,o.type==="radio"&&a!=null){for(o=r;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+Bn(""+a)+'"][type="radio"]'),a=0;a<o.length;a++){var c=o[a];if(c!==r&&c.form===r.form){var g=c[bn]||null;if(!g)throw Error(i(90));Aa(c,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(a=0;a<o.length;a++)c=o[a],c.form===r.form&&fu(c)}break e;case"textarea":Wm(r,o.value,o.defaultValue);break e;case"select":a=o.value,a!=null&&Jr(r,!!o.multiple,a,!1)}}}var af=!1;function ip(r,a,o){if(af)return r(a,o);af=!0;try{var c=r(a);return c}finally{if(af=!1,(ml!==null||pl!==null)&&(e0(),ml&&(a=ml,r=pl,pl=ml=null,rp(a),r)))for(a=0;a<r.length;a++)rp(r[a])}}function Ao(r,a){var o=r.stateNode;if(o===null)return null;var c=o[bn]||null;if(c===null)return null;o=c[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(r=r.type,c=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!c;break e;default:r=!1}if(r)return null;if(o&&typeof o!="function")throw Error(i(231,a,typeof o));return o}var ei=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lf=!1;if(ei)try{var Co={};Object.defineProperty(Co,"passive",{get:function(){lf=!0}}),window.addEventListener("test",Co,Co),window.removeEventListener("test",Co,Co)}catch{lf=!1}var Hi=null,of=null,mu=null;function ap(){if(mu)return mu;var r,a=of,o=a.length,c,g="value"in Hi?Hi.value:Hi.textContent,y=g.length;for(r=0;r<o&&a[r]===g[r];r++);var k=o-r;for(c=1;c<=k&&a[o-c]===g[y-c];c++);return mu=g.slice(r,1<c?1-c:void 0)}function pu(r){var a=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function gu(){return!0}function lp(){return!1}function Ln(r){function a(o,c,g,y,k){this._reactName=o,this._targetInst=g,this.type=c,this.nativeEvent=y,this.target=k,this.currentTarget=null;for(var O in r)r.hasOwnProperty(O)&&(o=r[O],this[O]=o?o(y):y[O]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?gu:lp,this.isPropagationStopped=lp,this}return m(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=gu)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=gu)},persist:function(){},isPersistent:gu}),a}var Ca={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yu=Ln(Ca),To=m({},Ca,{view:0,detail:0}),Wv=Ln(To),sf,uf,Mo,vu=m({},To,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ff,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Mo&&(Mo&&r.type==="mousemove"?(sf=r.screenX-Mo.screenX,uf=r.screenY-Mo.screenY):uf=sf=0,Mo=r),sf)},movementY:function(r){return"movementY"in r?r.movementY:uf}}),op=Ln(vu),e9=m({},vu,{dataTransfer:0}),t9=Ln(e9),n9=m({},To,{relatedTarget:0}),cf=Ln(n9),r9=m({},Ca,{animationName:0,elapsedTime:0,pseudoElement:0}),i9=Ln(r9),a9=m({},Ca,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),l9=Ln(a9),o9=m({},Ca,{data:0}),sp=Ln(o9),s9={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},u9={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"},c9={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function f9(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=c9[r])?!!a[r]:!1}function ff(){return f9}var h9=m({},To,{key:function(r){if(r.key){var a=s9[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=pu(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?u9[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ff,charCode:function(r){return r.type==="keypress"?pu(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?pu(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),d9=Ln(h9),m9=m({},vu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),up=Ln(m9),p9=m({},To,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ff}),g9=Ln(p9),y9=m({},Ca,{propertyName:0,elapsedTime:0,pseudoElement:0}),v9=Ln(y9),x9=m({},vu,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),b9=Ln(x9),w9=m({},Ca,{newState:0,oldState:0}),S9=Ln(w9),k9=[9,13,27,32],hf=ei&&"CompositionEvent"in window,zo=null;ei&&"documentMode"in document&&(zo=document.documentMode);var E9=ei&&"TextEvent"in window&&!zo,cp=ei&&(!hf||zo&&8<zo&&11>=zo),fp=" ",hp=!1;function dp(r,a){switch(r){case"keyup":return k9.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mp(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var gl=!1;function A9(r,a){switch(r){case"compositionend":return mp(a);case"keypress":return a.which!==32?null:(hp=!0,fp);case"textInput":return r=a.data,r===fp&&hp?null:r;default:return null}}function C9(r,a){if(gl)return r==="compositionend"||!hf&&dp(r,a)?(r=ap(),mu=of=Hi=null,gl=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return cp&&a.locale!=="ko"?null:a.data;default:return null}}var T9={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 pp(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!T9[r.type]:a==="textarea"}function gp(r,a,o,c){ml?pl?pl.push(c):pl=[c]:ml=c,a=o0(a,"onChange"),0<a.length&&(o=new yu("onChange","change",null,o,c),r.push({event:o,listeners:a}))}var No=null,Do=null;function M9(r){J2(r,0)}function xu(r){var a=Ri(r);if(fu(a))return r}function yp(r,a){if(r==="change")return a}var vp=!1;if(ei){var df;if(ei){var mf="oninput"in document;if(!mf){var xp=document.createElement("div");xp.setAttribute("oninput","return;"),mf=typeof xp.oninput=="function"}df=mf}else df=!1;vp=df&&(!document.documentMode||9<document.documentMode)}function bp(){No&&(No.detachEvent("onpropertychange",wp),Do=No=null)}function wp(r){if(r.propertyName==="value"&&xu(Do)){var a=[];gp(a,Do,r,rf(r)),ip(M9,a)}}function z9(r,a,o){r==="focusin"?(bp(),No=a,Do=o,No.attachEvent("onpropertychange",wp)):r==="focusout"&&bp()}function N9(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return xu(Do)}function D9(r,a){if(r==="click")return xu(a)}function _9(r,a){if(r==="input"||r==="change")return xu(a)}function O9(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var Pn=typeof Object.is=="function"?Object.is:O9;function _o(r,a){if(Pn(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var o=Object.keys(r),c=Object.keys(a);if(o.length!==c.length)return!1;for(c=0;c<o.length;c++){var g=o[c];if(!Ue.call(a,g)||!Pn(r[g],a[g]))return!1}return!0}function Sp(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function kp(r,a){var o=Sp(r);r=0;for(var c;o;){if(o.nodeType===3){if(c=r+o.textContent.length,r<=a&&c>=a)return{node:o,offset:a-r};r=c}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Sp(o)}}function Ep(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?Ep(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function Ap(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=Ea(r.document);a instanceof r.HTMLIFrameElement;){try{var o=typeof a.contentWindow.location.href=="string"}catch{o=!1}if(o)r=a.contentWindow;else break;a=Ea(r.document)}return a}function pf(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}var R9=ei&&"documentMode"in document&&11>=document.documentMode,yl=null,gf=null,Oo=null,yf=!1;function Cp(r,a,o){var c=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;yf||yl==null||yl!==Ea(c)||(c=yl,"selectionStart"in c&&pf(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Oo&&_o(Oo,c)||(Oo=c,c=o0(gf,"onSelect"),0<c.length&&(a=new yu("onSelect","select",null,a,o),r.push({event:a,listeners:c}),a.target=yl)))}function Ta(r,a){var o={};return o[r.toLowerCase()]=a.toLowerCase(),o["Webkit"+r]="webkit"+a,o["Moz"+r]="moz"+a,o}var vl={animationend:Ta("Animation","AnimationEnd"),animationiteration:Ta("Animation","AnimationIteration"),animationstart:Ta("Animation","AnimationStart"),transitionrun:Ta("Transition","TransitionRun"),transitionstart:Ta("Transition","TransitionStart"),transitioncancel:Ta("Transition","TransitionCancel"),transitionend:Ta("Transition","TransitionEnd")},vf={},Tp={};ei&&(Tp=document.createElement("div").style,"AnimationEvent"in window||(delete vl.animationend.animation,delete vl.animationiteration.animation,delete vl.animationstart.animation),"TransitionEvent"in window||delete vl.transitionend.transition);function Ma(r){if(vf[r])return vf[r];if(!vl[r])return r;var a=vl[r],o;for(o in a)if(a.hasOwnProperty(o)&&o in Tp)return vf[r]=a[o];return r}var Mp=Ma("animationend"),zp=Ma("animationiteration"),Np=Ma("animationstart"),B9=Ma("transitionrun"),L9=Ma("transitionstart"),H9=Ma("transitioncancel"),Dp=Ma("transitionend"),_p=new Map,xf="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(" ");xf.push("scrollEnd");function kr(r,a){_p.set(r,a),Kr(a,[r])}var bu=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},cr=[],xl=0,bf=0;function wu(){for(var r=xl,a=bf=xl=0;a<r;){var o=cr[a];cr[a++]=null;var c=cr[a];cr[a++]=null;var g=cr[a];cr[a++]=null;var y=cr[a];if(cr[a++]=null,c!==null&&g!==null){var k=c.pending;k===null?g.next=g:(g.next=k.next,k.next=g),c.pending=g}y!==0&&Op(o,g,y)}}function Su(r,a,o,c){cr[xl++]=r,cr[xl++]=a,cr[xl++]=o,cr[xl++]=c,bf|=c,r.lanes|=c,r=r.alternate,r!==null&&(r.lanes|=c)}function wf(r,a,o,c){return Su(r,a,o,c),ku(r)}function za(r,a){return Su(r,null,null,a),ku(r)}function Op(r,a,o){r.lanes|=o;var c=r.alternate;c!==null&&(c.lanes|=o);for(var g=!1,y=r.return;y!==null;)y.childLanes|=o,c=y.alternate,c!==null&&(c.childLanes|=o),y.tag===22&&(r=y.stateNode,r===null||r._visibility&1||(g=!0)),r=y,y=y.return;return r.tag===3?(y=r.stateNode,g&&a!==null&&(g=31-dt(o),r=y.hiddenUpdates,c=r[g],c===null?r[g]=[a]:c.push(a),a.lane=o|536870912),y):null}function ku(r){if(50<ts)throw ts=0,Nh=null,Error(i(185));for(var a=r.return;a!==null;)r=a,a=r.return;return r.tag===3?r.stateNode:null}var bl={};function j9(r,a,o,c){this.tag=r,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Zn(r,a,o,c){return new j9(r,a,o,c)}function Sf(r){return r=r.prototype,!(!r||!r.isReactComponent)}function ti(r,a){var o=r.alternate;return o===null?(o=Zn(r.tag,a,r.key,r.mode),o.elementType=r.elementType,o.type=r.type,o.stateNode=r.stateNode,o.alternate=r,r.alternate=o):(o.pendingProps=a,o.type=r.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=r.flags&65011712,o.childLanes=r.childLanes,o.lanes=r.lanes,o.child=r.child,o.memoizedProps=r.memoizedProps,o.memoizedState=r.memoizedState,o.updateQueue=r.updateQueue,a=r.dependencies,o.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},o.sibling=r.sibling,o.index=r.index,o.ref=r.ref,o.refCleanup=r.refCleanup,o}function Rp(r,a){r.flags&=65011714;var o=r.alternate;return o===null?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=o.childLanes,r.lanes=o.lanes,r.child=o.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=o.memoizedProps,r.memoizedState=o.memoizedState,r.updateQueue=o.updateQueue,r.type=o.type,a=o.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),r}function Eu(r,a,o,c,g,y){var k=0;if(c=r,typeof r=="function")Sf(r)&&(k=1);else if(typeof r=="string")k=Vx(r,o,se.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case $:return r=Zn(31,o,a,g),r.elementType=$,r.lanes=y,r;case A:return Na(o.children,g,y,a);case C:k=8,g|=24;break;case E:return r=Zn(12,o,a,g|2),r.elementType=E,r.lanes=y,r;case U:return r=Zn(13,o,a,g),r.elementType=U,r.lanes=y,r;case z:return r=Zn(19,o,a,g),r.elementType=z,r.lanes=y,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case T:k=10;break e;case D:k=9;break e;case B:k=11;break e;case I:k=14;break e;case P:k=16,c=null;break e}k=29,o=Error(i(130,r===null?"null":typeof r,"")),c=null}return a=Zn(k,o,a,g),a.elementType=r,a.type=c,a.lanes=y,a}function Na(r,a,o,c){return r=Zn(7,r,c,a),r.lanes=o,r}function kf(r,a,o){return r=Zn(6,r,null,a),r.lanes=o,r}function Bp(r){var a=Zn(18,null,null,0);return a.stateNode=r,a}function Ef(r,a,o){return a=Zn(4,r.children!==null?r.children:[],r.key,a),a.lanes=o,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}var Lp=new WeakMap;function fr(r,a){if(typeof r=="object"&&r!==null){var o=Lp.get(r);return o!==void 0?o:(a={value:r,source:a,stack:me(a)},Lp.set(r,a),a)}return{value:r,source:a,stack:me(a)}}var wl=[],Sl=0,Au=null,Ro=0,hr=[],dr=0,ji=null,Rr=1,Br="";function ni(r,a){wl[Sl++]=Ro,wl[Sl++]=Au,Au=r,Ro=a}function Hp(r,a,o){hr[dr++]=Rr,hr[dr++]=Br,hr[dr++]=ji,ji=r;var c=Rr;r=Br;var g=32-dt(c)-1;c&=~(1<<g),o+=1;var y=32-dt(a)+g;if(30<y){var k=g-g%5;y=(c&(1<<k)-1).toString(32),c>>=k,g-=k,Rr=1<<32-dt(a)+g|o<<g|c,Br=y+r}else Rr=1<<y|o<<g|c,Br=r}function Af(r){r.return!==null&&(ni(r,1),Hp(r,1,0))}function Cf(r){for(;r===Au;)Au=wl[--Sl],wl[Sl]=null,Ro=wl[--Sl],wl[Sl]=null;for(;r===ji;)ji=hr[--dr],hr[dr]=null,Br=hr[--dr],hr[dr]=null,Rr=hr[--dr],hr[dr]=null}function jp(r,a){hr[dr++]=Rr,hr[dr++]=Br,hr[dr++]=ji,Rr=a.id,Br=a.overflow,ji=r}var pn=null,Dt=null,ct=!1,qi=null,mr=!1,Tf=Error(i(519));function Ii(r){var a=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Bo(fr(a,r)),Tf}function qp(r){var a=r.stateNode,o=r.type,c=r.memoizedProps;switch(a[sn]=r,a[bn]=c,o){case"dialog":at("cancel",a),at("close",a);break;case"iframe":case"object":case"embed":at("load",a);break;case"video":case"audio":for(o=0;o<rs.length;o++)at(rs[o],a);break;case"source":at("error",a);break;case"img":case"image":case"link":at("error",a),at("load",a);break;case"details":at("toggle",a);break;case"input":at("invalid",a),hu(a,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":at("invalid",a);break;case"textarea":at("invalid",a),ep(a,c.value,c.defaultValue,c.children)}o=c.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||a.textContent===""+o||c.suppressHydrationWarning===!0||ng(a.textContent,o)?(c.popover!=null&&(at("beforetoggle",a),at("toggle",a)),c.onScroll!=null&&at("scroll",a),c.onScrollEnd!=null&&at("scrollend",a),c.onClick!=null&&(a.onclick=Wr),a=!0):a=!1,a||Ii(r,!0)}function Ip(r){for(pn=r.return;pn;)switch(pn.tag){case 5:case 31:case 13:mr=!1;return;case 27:case 3:mr=!0;return;default:pn=pn.return}}function kl(r){if(r!==pn)return!1;if(!ct)return Ip(r),ct=!0,!1;var a=r.tag,o;if((o=a!==3&&a!==27)&&((o=a===5)&&(o=r.type,o=!(o!=="form"&&o!=="button")||Gh(r.type,r.memoizedProps)),o=!o),o&&Dt&&Ii(r),Ip(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));Dt=fg(r)}else if(a===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));Dt=fg(r)}else a===27?(a=Dt,ea(r.type)?(r=Qh,Qh=null,Dt=r):Dt=a):Dt=pn?gr(r.stateNode.nextSibling):null;return!0}function Da(){Dt=pn=null,ct=!1}function Mf(){var r=qi;return r!==null&&(In===null?In=r:In.push.apply(In,r),qi=null),r}function Bo(r){qi===null?qi=[r]:qi.push(r)}var zf=j(null),_a=null,ri=null;function Ui(r,a,o){_(zf,a._currentValue),a._currentValue=o}function ii(r){r._currentValue=zf.current,Q(zf)}function Nf(r,a,o){for(;r!==null;){var c=r.alternate;if((r.childLanes&a)!==a?(r.childLanes|=a,c!==null&&(c.childLanes|=a)):c!==null&&(c.childLanes&a)!==a&&(c.childLanes|=a),r===o)break;r=r.return}}function Df(r,a,o,c){var g=r.child;for(g!==null&&(g.return=r);g!==null;){var y=g.dependencies;if(y!==null){var k=g.child;y=y.firstContext;e:for(;y!==null;){var O=y;y=g;for(var K=0;K<a.length;K++)if(O.context===a[K]){y.lanes|=o,O=y.alternate,O!==null&&(O.lanes|=o),Nf(y.return,o,r),c||(k=null);break e}y=O.next}}else if(g.tag===18){if(k=g.return,k===null)throw Error(i(341));k.lanes|=o,y=k.alternate,y!==null&&(y.lanes|=o),Nf(k,o,r),k=null}else k=g.child;if(k!==null)k.return=g;else for(k=g;k!==null;){if(k===r){k=null;break}if(g=k.sibling,g!==null){g.return=k.return,k=g;break}k=k.return}g=k}}function El(r,a,o,c){r=null;for(var g=a,y=!1;g!==null;){if(!y){if((g.flags&524288)!==0)y=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var k=g.alternate;if(k===null)throw Error(i(387));if(k=k.memoizedProps,k!==null){var O=g.type;Pn(g.pendingProps.value,k.value)||(r!==null?r.push(O):r=[O])}}else if(g===we.current){if(k=g.alternate,k===null)throw Error(i(387));k.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(r!==null?r.push(ss):r=[ss])}g=g.return}r!==null&&Df(a,r,o,c),a.flags|=262144}function Cu(r){for(r=r.firstContext;r!==null;){if(!Pn(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function Oa(r){_a=r,ri=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function gn(r){return Up(_a,r)}function Tu(r,a){return _a===null&&Oa(r),Up(r,a)}function Up(r,a){var o=a._currentValue;if(a={context:a,memoizedValue:o,next:null},ri===null){if(r===null)throw Error(i(308));ri=a,r.dependencies={lanes:0,firstContext:a},r.flags|=524288}else ri=ri.next=a;return o}var q9=typeof AbortController<"u"?AbortController:function(){var r=[],a=this.signal={aborted:!1,addEventListener:function(o,c){r.push(c)}};this.abort=function(){a.aborted=!0,r.forEach(function(o){return o()})}},I9=e.unstable_scheduleCallback,U9=e.unstable_NormalPriority,Zt={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _f(){return{controller:new q9,data:new Map,refCount:0}}function Lo(r){r.refCount--,r.refCount===0&&I9(U9,function(){r.controller.abort()})}var Ho=null,Of=0,Al=0,Cl=null;function F9(r,a){if(Ho===null){var o=Ho=[];Of=0,Al=Lh(),Cl={status:"pending",value:void 0,then:function(c){o.push(c)}}}return Of++,a.then(Fp,Fp),a}function Fp(){if(--Of===0&&Ho!==null){Cl!==null&&(Cl.status="fulfilled");var r=Ho;Ho=null,Al=0,Cl=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function V9(r,a){var o=[],c={status:"pending",value:null,reason:null,then:function(g){o.push(g)}};return r.then(function(){c.status="fulfilled",c.value=a;for(var g=0;g<o.length;g++)(0,o[g])(a)},function(g){for(c.status="rejected",c.reason=g,g=0;g<o.length;g++)(0,o[g])(void 0)}),c}var Vp=L.S;L.S=function(r,a){C2=Ot(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&F9(r,a),Vp!==null&&Vp(r,a)};var Ra=j(null);function Rf(){var r=Ra.current;return r!==null?r:Tt.pooledCache}function Mu(r,a){a===null?_(Ra,Ra.current):_(Ra,a.pool)}function Yp(){var r=Rf();return r===null?null:{parent:Zt._currentValue,pool:r}}var Tl=Error(i(460)),Bf=Error(i(474)),zu=Error(i(542)),Nu={then:function(){}};function Gp(r){return r=r.status,r==="fulfilled"||r==="rejected"}function $p(r,a,o){switch(o=r[o],o===void 0?r.push(a):o!==a&&(a.then(Wr,Wr),a=o),a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,Pp(r),r;default:if(typeof a.status=="string")a.then(Wr,Wr);else{if(r=Tt,r!==null&&100<r.shellSuspendCounter)throw Error(i(482));r=a,r.status="pending",r.then(function(c){if(a.status==="pending"){var g=a;g.status="fulfilled",g.value=c}},function(c){if(a.status==="pending"){var g=a;g.status="rejected",g.reason=c}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,Pp(r),r}throw La=a,Tl}}function Ba(r){try{var a=r._init;return a(r._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(La=o,Tl):o}}var La=null;function Xp(){if(La===null)throw Error(i(459));var r=La;return La=null,r}function Pp(r){if(r===Tl||r===zu)throw Error(i(483))}var Ml=null,jo=0;function Du(r){var a=jo;return jo+=1,Ml===null&&(Ml=[]),$p(Ml,r,a)}function qo(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function _u(r,a){throw a.$$typeof===v?Error(i(525)):(r=Object.prototype.toString.call(a),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":r)))}function Zp(r){function a(re,ee){if(r){var ae=re.deletions;ae===null?(re.deletions=[ee],re.flags|=16):ae.push(ee)}}function o(re,ee){if(!r)return null;for(;ee!==null;)a(re,ee),ee=ee.sibling;return null}function c(re){for(var ee=new Map;re!==null;)re.key!==null?ee.set(re.key,re):ee.set(re.index,re),re=re.sibling;return ee}function g(re,ee){return re=ti(re,ee),re.index=0,re.sibling=null,re}function y(re,ee,ae){return re.index=ae,r?(ae=re.alternate,ae!==null?(ae=ae.index,ae<ee?(re.flags|=67108866,ee):ae):(re.flags|=67108866,ee)):(re.flags|=1048576,ee)}function k(re){return r&&re.alternate===null&&(re.flags|=67108866),re}function O(re,ee,ae,de){return ee===null||ee.tag!==6?(ee=kf(ae,re.mode,de),ee.return=re,ee):(ee=g(ee,ae),ee.return=re,ee)}function K(re,ee,ae,de){var Ie=ae.type;return Ie===A?he(re,ee,ae.props.children,de,ae.key):ee!==null&&(ee.elementType===Ie||typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===P&&Ba(Ie)===ee.type)?(ee=g(ee,ae.props),qo(ee,ae),ee.return=re,ee):(ee=Eu(ae.type,ae.key,ae.props,null,re.mode,de),qo(ee,ae),ee.return=re,ee)}function le(re,ee,ae,de){return ee===null||ee.tag!==4||ee.stateNode.containerInfo!==ae.containerInfo||ee.stateNode.implementation!==ae.implementation?(ee=Ef(ae,re.mode,de),ee.return=re,ee):(ee=g(ee,ae.children||[]),ee.return=re,ee)}function he(re,ee,ae,de,Ie){return ee===null||ee.tag!==7?(ee=Na(ae,re.mode,de,Ie),ee.return=re,ee):(ee=g(ee,ae),ee.return=re,ee)}function pe(re,ee,ae){if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return ee=kf(""+ee,re.mode,ae),ee.return=re,ee;if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case x:return ae=Eu(ee.type,ee.key,ee.props,null,re.mode,ae),qo(ae,ee),ae.return=re,ae;case w:return ee=Ef(ee,re.mode,ae),ee.return=re,ee;case P:return ee=Ba(ee),pe(re,ee,ae)}if(F(ee)||W(ee))return ee=Na(ee,re.mode,ae,null),ee.return=re,ee;if(typeof ee.then=="function")return pe(re,Du(ee),ae);if(ee.$$typeof===T)return pe(re,Tu(re,ee),ae);_u(re,ee)}return null}function oe(re,ee,ae,de){var Ie=ee!==null?ee.key:null;if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return Ie!==null?null:O(re,ee,""+ae,de);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case x:return ae.key===Ie?K(re,ee,ae,de):null;case w:return ae.key===Ie?le(re,ee,ae,de):null;case P:return ae=Ba(ae),oe(re,ee,ae,de)}if(F(ae)||W(ae))return Ie!==null?null:he(re,ee,ae,de,null);if(typeof ae.then=="function")return oe(re,ee,Du(ae),de);if(ae.$$typeof===T)return oe(re,ee,Tu(re,ae),de);_u(re,ae)}return null}function ue(re,ee,ae,de,Ie){if(typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint")return re=re.get(ae)||null,O(ee,re,""+de,Ie);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case x:return re=re.get(de.key===null?ae:de.key)||null,K(ee,re,de,Ie);case w:return re=re.get(de.key===null?ae:de.key)||null,le(ee,re,de,Ie);case P:return de=Ba(de),ue(re,ee,ae,de,Ie)}if(F(de)||W(de))return re=re.get(ae)||null,he(ee,re,de,Ie,null);if(typeof de.then=="function")return ue(re,ee,ae,Du(de),Ie);if(de.$$typeof===T)return ue(re,ee,ae,Tu(ee,de),Ie);_u(ee,de)}return null}function De(re,ee,ae,de){for(var Ie=null,mt=null,Oe=ee,Ke=ee=0,ut=null;Oe!==null&&Ke<ae.length;Ke++){Oe.index>Ke?(ut=Oe,Oe=null):ut=Oe.sibling;var pt=oe(re,Oe,ae[Ke],de);if(pt===null){Oe===null&&(Oe=ut);break}r&&Oe&&pt.alternate===null&&a(re,Oe),ee=y(pt,ee,Ke),mt===null?Ie=pt:mt.sibling=pt,mt=pt,Oe=ut}if(Ke===ae.length)return o(re,Oe),ct&&ni(re,Ke),Ie;if(Oe===null){for(;Ke<ae.length;Ke++)Oe=pe(re,ae[Ke],de),Oe!==null&&(ee=y(Oe,ee,Ke),mt===null?Ie=Oe:mt.sibling=Oe,mt=Oe);return ct&&ni(re,Ke),Ie}for(Oe=c(Oe);Ke<ae.length;Ke++)ut=ue(Oe,re,Ke,ae[Ke],de),ut!==null&&(r&&ut.alternate!==null&&Oe.delete(ut.key===null?Ke:ut.key),ee=y(ut,ee,Ke),mt===null?Ie=ut:mt.sibling=ut,mt=ut);return r&&Oe.forEach(function(aa){return a(re,aa)}),ct&&ni(re,Ke),Ie}function Ve(re,ee,ae,de){if(ae==null)throw Error(i(151));for(var Ie=null,mt=null,Oe=ee,Ke=ee=0,ut=null,pt=ae.next();Oe!==null&&!pt.done;Ke++,pt=ae.next()){Oe.index>Ke?(ut=Oe,Oe=null):ut=Oe.sibling;var aa=oe(re,Oe,pt.value,de);if(aa===null){Oe===null&&(Oe=ut);break}r&&Oe&&aa.alternate===null&&a(re,Oe),ee=y(aa,ee,Ke),mt===null?Ie=aa:mt.sibling=aa,mt=aa,Oe=ut}if(pt.done)return o(re,Oe),ct&&ni(re,Ke),Ie;if(Oe===null){for(;!pt.done;Ke++,pt=ae.next())pt=pe(re,pt.value,de),pt!==null&&(ee=y(pt,ee,Ke),mt===null?Ie=pt:mt.sibling=pt,mt=pt);return ct&&ni(re,Ke),Ie}for(Oe=c(Oe);!pt.done;Ke++,pt=ae.next())pt=ue(Oe,re,Ke,pt.value,de),pt!==null&&(r&&pt.alternate!==null&&Oe.delete(pt.key===null?Ke:pt.key),ee=y(pt,ee,Ke),mt===null?Ie=pt:mt.sibling=pt,mt=pt);return r&&Oe.forEach(function(eb){return a(re,eb)}),ct&&ni(re,Ke),Ie}function Et(re,ee,ae,de){if(typeof ae=="object"&&ae!==null&&ae.type===A&&ae.key===null&&(ae=ae.props.children),typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case x:e:{for(var Ie=ae.key;ee!==null;){if(ee.key===Ie){if(Ie=ae.type,Ie===A){if(ee.tag===7){o(re,ee.sibling),de=g(ee,ae.props.children),de.return=re,re=de;break e}}else if(ee.elementType===Ie||typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===P&&Ba(Ie)===ee.type){o(re,ee.sibling),de=g(ee,ae.props),qo(de,ae),de.return=re,re=de;break e}o(re,ee);break}else a(re,ee);ee=ee.sibling}ae.type===A?(de=Na(ae.props.children,re.mode,de,ae.key),de.return=re,re=de):(de=Eu(ae.type,ae.key,ae.props,null,re.mode,de),qo(de,ae),de.return=re,re=de)}return k(re);case w:e:{for(Ie=ae.key;ee!==null;){if(ee.key===Ie)if(ee.tag===4&&ee.stateNode.containerInfo===ae.containerInfo&&ee.stateNode.implementation===ae.implementation){o(re,ee.sibling),de=g(ee,ae.children||[]),de.return=re,re=de;break e}else{o(re,ee);break}else a(re,ee);ee=ee.sibling}de=Ef(ae,re.mode,de),de.return=re,re=de}return k(re);case P:return ae=Ba(ae),Et(re,ee,ae,de)}if(F(ae))return De(re,ee,ae,de);if(W(ae)){if(Ie=W(ae),typeof Ie!="function")throw Error(i(150));return ae=Ie.call(ae),Ve(re,ee,ae,de)}if(typeof ae.then=="function")return Et(re,ee,Du(ae),de);if(ae.$$typeof===T)return Et(re,ee,Tu(re,ae),de);_u(re,ae)}return typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint"?(ae=""+ae,ee!==null&&ee.tag===6?(o(re,ee.sibling),de=g(ee,ae),de.return=re,re=de):(o(re,ee),de=kf(ae,re.mode,de),de.return=re,re=de),k(re)):o(re,ee)}return function(re,ee,ae,de){try{jo=0;var Ie=Et(re,ee,ae,de);return Ml=null,Ie}catch(Oe){if(Oe===Tl||Oe===zu)throw Oe;var mt=Zn(29,Oe,null,re.mode);return mt.lanes=de,mt.return=re,mt}}}var Ha=Zp(!0),Qp=Zp(!1),Fi=!1;function Lf(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hf(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function Vi(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function Yi(r,a,o){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(gt&2)!==0){var g=c.pending;return g===null?a.next=a:(a.next=g.next,g.next=a),c.pending=a,a=ku(r),Op(r,null,o),a}return Su(r,c,a,o),ku(r)}function Io(r,a,o){if(a=a.updateQueue,a!==null&&(a=a.shared,(o&4194048)!==0)){var c=a.lanes;c&=r.pendingLanes,o|=c,a.lanes=o,Xn(r,o)}}function jf(r,a){var o=r.updateQueue,c=r.alternate;if(c!==null&&(c=c.updateQueue,o===c)){var g=null,y=null;if(o=o.firstBaseUpdate,o!==null){do{var k={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};y===null?g=y=k:y=y.next=k,o=o.next}while(o!==null);y===null?g=y=a:y=y.next=a}else g=y=a;o={baseState:c.baseState,firstBaseUpdate:g,lastBaseUpdate:y,shared:c.shared,callbacks:c.callbacks},r.updateQueue=o;return}r=o.lastBaseUpdate,r===null?o.firstBaseUpdate=a:r.next=a,o.lastBaseUpdate=a}var qf=!1;function Uo(){if(qf){var r=Cl;if(r!==null)throw r}}function Fo(r,a,o,c){qf=!1;var g=r.updateQueue;Fi=!1;var y=g.firstBaseUpdate,k=g.lastBaseUpdate,O=g.shared.pending;if(O!==null){g.shared.pending=null;var K=O,le=K.next;K.next=null,k===null?y=le:k.next=le,k=K;var he=r.alternate;he!==null&&(he=he.updateQueue,O=he.lastBaseUpdate,O!==k&&(O===null?he.firstBaseUpdate=le:O.next=le,he.lastBaseUpdate=K))}if(y!==null){var pe=g.baseState;k=0,he=le=K=null,O=y;do{var oe=O.lane&-536870913,ue=oe!==O.lane;if(ue?(st&oe)===oe:(c&oe)===oe){oe!==0&&oe===Al&&(qf=!0),he!==null&&(he=he.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{var De=r,Ve=O;oe=a;var Et=o;switch(Ve.tag){case 1:if(De=Ve.payload,typeof De=="function"){pe=De.call(Et,pe,oe);break e}pe=De;break e;case 3:De.flags=De.flags&-65537|128;case 0:if(De=Ve.payload,oe=typeof De=="function"?De.call(Et,pe,oe):De,oe==null)break e;pe=m({},pe,oe);break e;case 2:Fi=!0}}oe=O.callback,oe!==null&&(r.flags|=64,ue&&(r.flags|=8192),ue=g.callbacks,ue===null?g.callbacks=[oe]:ue.push(oe))}else ue={lane:oe,tag:O.tag,payload:O.payload,callback:O.callback,next:null},he===null?(le=he=ue,K=pe):he=he.next=ue,k|=oe;if(O=O.next,O===null){if(O=g.shared.pending,O===null)break;ue=O,O=ue.next,ue.next=null,g.lastBaseUpdate=ue,g.shared.pending=null}}while(!0);he===null&&(K=pe),g.baseState=K,g.firstBaseUpdate=le,g.lastBaseUpdate=he,y===null&&(g.shared.lanes=0),Zi|=k,r.lanes=k,r.memoizedState=pe}}function Kp(r,a){if(typeof r!="function")throw Error(i(191,r));r.call(a)}function Jp(r,a){var o=r.callbacks;if(o!==null)for(r.callbacks=null,r=0;r<o.length;r++)Kp(o[r],a)}var zl=j(null),Ou=j(0);function Wp(r,a){r=di,_(Ou,r),_(zl,a),di=r|a.baseLanes}function If(){_(Ou,di),_(zl,zl.current)}function Uf(){di=Ou.current,Q(zl),Q(Ou)}var Qn=j(null),pr=null;function Gi(r){var a=r.alternate;_($t,$t.current&1),_(Qn,r),pr===null&&(a===null||zl.current!==null||a.memoizedState!==null)&&(pr=r)}function Ff(r){_($t,$t.current),_(Qn,r),pr===null&&(pr=r)}function e4(r){r.tag===22?(_($t,$t.current),_(Qn,r),pr===null&&(pr=r)):$i()}function $i(){_($t,$t.current),_(Qn,Qn.current)}function Kn(r){Q(Qn),pr===r&&(pr=null),Q($t)}var $t=j(0);function Ru(r){for(var a=r;a!==null;){if(a.tag===13){var o=a.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||Ph(o)||Zh(o)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var ai=0,Qe=null,St=null,Qt=null,Bu=!1,Nl=!1,ja=!1,Lu=0,Vo=0,Dl=null,Y9=0;function Vt(){throw Error(i(321))}function Vf(r,a){if(a===null)return!1;for(var o=0;o<a.length&&o<r.length;o++)if(!Pn(r[o],a[o]))return!1;return!0}function Yf(r,a,o,c,g,y){return ai=y,Qe=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,L.H=r===null||r.memoizedState===null?H4:ah,ja=!1,y=o(c,g),ja=!1,Nl&&(y=n4(a,o,c,g)),t4(r),y}function t4(r){L.H=$o;var a=St!==null&&St.next!==null;if(ai=0,Qt=St=Qe=null,Bu=!1,Vo=0,Dl=null,a)throw Error(i(300));r===null||Kt||(r=r.dependencies,r!==null&&Cu(r)&&(Kt=!0))}function n4(r,a,o,c){Qe=r;var g=0;do{if(Nl&&(Dl=null),Vo=0,Nl=!1,25<=g)throw Error(i(301));if(g+=1,Qt=St=null,r.updateQueue!=null){var y=r.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}L.H=j4,y=a(o,c)}while(Nl);return y}function G9(){var r=L.H,a=r.useState()[0];return a=typeof a.then=="function"?Yo(a):a,r=r.useState()[0],(St!==null?St.memoizedState:null)!==r&&(Qe.flags|=1024),a}function Gf(){var r=Lu!==0;return Lu=0,r}function $f(r,a,o){a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~o}function Xf(r){if(Bu){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}Bu=!1}ai=0,Qt=St=Qe=null,Nl=!1,Vo=Lu=0,Dl=null}function Tn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qt===null?Qe.memoizedState=Qt=r:Qt=Qt.next=r,Qt}function Xt(){if(St===null){var r=Qe.alternate;r=r!==null?r.memoizedState:null}else r=St.next;var a=Qt===null?Qe.memoizedState:Qt.next;if(a!==null)Qt=a,St=r;else{if(r===null)throw Qe.alternate===null?Error(i(467)):Error(i(310));St=r,r={memoizedState:St.memoizedState,baseState:St.baseState,baseQueue:St.baseQueue,queue:St.queue,next:null},Qt===null?Qe.memoizedState=Qt=r:Qt=Qt.next=r}return Qt}function Hu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Yo(r){var a=Vo;return Vo+=1,Dl===null&&(Dl=[]),r=$p(Dl,r,a),a=Qe,(Qt===null?a.memoizedState:Qt.next)===null&&(a=a.alternate,L.H=a===null||a.memoizedState===null?H4:ah),r}function ju(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Yo(r);if(r.$$typeof===T)return gn(r)}throw Error(i(438,String(r)))}function Pf(r){var a=null,o=Qe.updateQueue;if(o!==null&&(a=o.memoCache),a==null){var c=Qe.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(a={data:c.data.map(function(g){return g.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),o===null&&(o=Hu(),Qe.updateQueue=o),o.memoCache=a,o=a.data[a.index],o===void 0)for(o=a.data[a.index]=Array(r),c=0;c<r;c++)o[c]=V;return a.index++,o}function li(r,a){return typeof a=="function"?a(r):a}function qu(r){var a=Xt();return Zf(a,St,r)}function Zf(r,a,o){var c=r.queue;if(c===null)throw Error(i(311));c.lastRenderedReducer=o;var g=r.baseQueue,y=c.pending;if(y!==null){if(g!==null){var k=g.next;g.next=y.next,y.next=k}a.baseQueue=g=y,c.pending=null}if(y=r.baseState,g===null)r.memoizedState=y;else{a=g.next;var O=k=null,K=null,le=a,he=!1;do{var pe=le.lane&-536870913;if(pe!==le.lane?(st&pe)===pe:(ai&pe)===pe){var oe=le.revertLane;if(oe===0)K!==null&&(K=K.next={lane:0,revertLane:0,gesture:null,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null}),pe===Al&&(he=!0);else if((ai&oe)===oe){le=le.next,oe===Al&&(he=!0);continue}else pe={lane:0,revertLane:le.revertLane,gesture:null,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null},K===null?(O=K=pe,k=y):K=K.next=pe,Qe.lanes|=oe,Zi|=oe;pe=le.action,ja&&o(y,pe),y=le.hasEagerState?le.eagerState:o(y,pe)}else oe={lane:pe,revertLane:le.revertLane,gesture:le.gesture,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null},K===null?(O=K=oe,k=y):K=K.next=oe,Qe.lanes|=pe,Zi|=pe;le=le.next}while(le!==null&&le!==a);if(K===null?k=y:K.next=O,!Pn(y,r.memoizedState)&&(Kt=!0,he&&(o=Cl,o!==null)))throw o;r.memoizedState=y,r.baseState=k,r.baseQueue=K,c.lastRenderedState=y}return g===null&&(c.lanes=0),[r.memoizedState,c.dispatch]}function Qf(r){var a=Xt(),o=a.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=r;var c=o.dispatch,g=o.pending,y=a.memoizedState;if(g!==null){o.pending=null;var k=g=g.next;do y=r(y,k.action),k=k.next;while(k!==g);Pn(y,a.memoizedState)||(Kt=!0),a.memoizedState=y,a.baseQueue===null&&(a.baseState=y),o.lastRenderedState=y}return[y,c]}function r4(r,a,o){var c=Qe,g=Xt(),y=ct;if(y){if(o===void 0)throw Error(i(407));o=o()}else o=a();var k=!Pn((St||g).memoizedState,o);if(k&&(g.memoizedState=o,Kt=!0),g=g.queue,Wf(l4.bind(null,c,g,r),[r]),g.getSnapshot!==a||k||Qt!==null&&Qt.memoizedState.tag&1){if(c.flags|=2048,_l(9,{destroy:void 0},a4.bind(null,c,g,o,a),null),Tt===null)throw Error(i(349));y||(ai&127)!==0||i4(c,a,o)}return o}function i4(r,a,o){r.flags|=16384,r={getSnapshot:a,value:o},a=Qe.updateQueue,a===null?(a=Hu(),Qe.updateQueue=a,a.stores=[r]):(o=a.stores,o===null?a.stores=[r]:o.push(r))}function a4(r,a,o,c){a.value=o,a.getSnapshot=c,o4(a)&&s4(r)}function l4(r,a,o){return o(function(){o4(a)&&s4(r)})}function o4(r){var a=r.getSnapshot;r=r.value;try{var o=a();return!Pn(r,o)}catch{return!0}}function s4(r){var a=za(r,2);a!==null&&Un(a,r,2)}function Kf(r){var a=Tn();if(typeof r=="function"){var o=r;if(r=o(),ja){ln(!0);try{o()}finally{ln(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:li,lastRenderedState:r},a}function u4(r,a,o,c){return r.baseState=o,Zf(r,St,typeof c=="function"?c:li)}function $9(r,a,o,c,g){if(Fu(r))throw Error(i(485));if(r=a.action,r!==null){var y={payload:g,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(k){y.listeners.push(k)}};L.T!==null?o(!0):y.isTransition=!1,c(y),o=a.pending,o===null?(y.next=a.pending=y,c4(a,y)):(y.next=o.next,a.pending=o.next=y)}}function c4(r,a){var o=a.action,c=a.payload,g=r.state;if(a.isTransition){var y=L.T,k={};L.T=k;try{var O=o(g,c),K=L.S;K!==null&&K(k,O),f4(r,a,O)}catch(le){Jf(r,a,le)}finally{y!==null&&k.types!==null&&(y.types=k.types),L.T=y}}else try{y=o(g,c),f4(r,a,y)}catch(le){Jf(r,a,le)}}function f4(r,a,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(c){h4(r,a,c)},function(c){return Jf(r,a,c)}):h4(r,a,o)}function h4(r,a,o){a.status="fulfilled",a.value=o,d4(a),r.state=o,a=r.pending,a!==null&&(o=a.next,o===a?r.pending=null:(o=o.next,a.next=o,c4(r,o)))}function Jf(r,a,o){var c=r.pending;if(r.pending=null,c!==null){c=c.next;do a.status="rejected",a.reason=o,d4(a),a=a.next;while(a!==c)}r.action=null}function d4(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function m4(r,a){return a}function p4(r,a){if(ct){var o=Tt.formState;if(o!==null){e:{var c=Qe;if(ct){if(Dt){t:{for(var g=Dt,y=mr;g.nodeType!==8;){if(!y){g=null;break t}if(g=gr(g.nextSibling),g===null){g=null;break t}}y=g.data,g=y==="F!"||y==="F"?g:null}if(g){Dt=gr(g.nextSibling),c=g.data==="F!";break e}}Ii(c)}c=!1}c&&(a=o[0])}}return o=Tn(),o.memoizedState=o.baseState=a,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:m4,lastRenderedState:a},o.queue=c,o=R4.bind(null,Qe,c),c.dispatch=o,c=Kf(!1),y=ih.bind(null,Qe,!1,c.queue),c=Tn(),g={state:a,dispatch:null,action:r,pending:null},c.queue=g,o=$9.bind(null,Qe,g,y,o),g.dispatch=o,c.memoizedState=r,[a,o,!1]}function g4(r){var a=Xt();return y4(a,St,r)}function y4(r,a,o){if(a=Zf(r,a,m4)[0],r=qu(li)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var c=Yo(a)}catch(k){throw k===Tl?zu:k}else c=a;a=Xt();var g=a.queue,y=g.dispatch;return o!==a.memoizedState&&(Qe.flags|=2048,_l(9,{destroy:void 0},X9.bind(null,g,o),null)),[c,y,r]}function X9(r,a){r.action=a}function v4(r){var a=Xt(),o=St;if(o!==null)return y4(a,o,r);Xt(),a=a.memoizedState,o=Xt();var c=o.queue.dispatch;return o.memoizedState=r,[a,c,!1]}function _l(r,a,o,c){return r={tag:r,create:o,deps:c,inst:a,next:null},a=Qe.updateQueue,a===null&&(a=Hu(),Qe.updateQueue=a),o=a.lastEffect,o===null?a.lastEffect=r.next=r:(c=o.next,o.next=r,r.next=c,a.lastEffect=r),r}function x4(){return Xt().memoizedState}function Iu(r,a,o,c){var g=Tn();Qe.flags|=r,g.memoizedState=_l(1|a,{destroy:void 0},o,c===void 0?null:c)}function Uu(r,a,o,c){var g=Xt();c=c===void 0?null:c;var y=g.memoizedState.inst;St!==null&&c!==null&&Vf(c,St.memoizedState.deps)?g.memoizedState=_l(a,y,o,c):(Qe.flags|=r,g.memoizedState=_l(1|a,y,o,c))}function b4(r,a){Iu(8390656,8,r,a)}function Wf(r,a){Uu(2048,8,r,a)}function P9(r){Qe.flags|=4;var a=Qe.updateQueue;if(a===null)a=Hu(),Qe.updateQueue=a,a.events=[r];else{var o=a.events;o===null?a.events=[r]:o.push(r)}}function w4(r){var a=Xt().memoizedState;return P9({ref:a,nextImpl:r}),function(){if((gt&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}function S4(r,a){return Uu(4,2,r,a)}function k4(r,a){return Uu(4,4,r,a)}function E4(r,a){if(typeof a=="function"){r=r();var o=a(r);return function(){typeof o=="function"?o():a(null)}}if(a!=null)return r=r(),a.current=r,function(){a.current=null}}function A4(r,a,o){o=o!=null?o.concat([r]):null,Uu(4,4,E4.bind(null,a,r),o)}function eh(){}function C4(r,a){var o=Xt();a=a===void 0?null:a;var c=o.memoizedState;return a!==null&&Vf(a,c[1])?c[0]:(o.memoizedState=[r,a],r)}function T4(r,a){var o=Xt();a=a===void 0?null:a;var c=o.memoizedState;if(a!==null&&Vf(a,c[1]))return c[0];if(c=r(),ja){ln(!0);try{r()}finally{ln(!1)}}return o.memoizedState=[c,a],c}function th(r,a,o){return o===void 0||(ai&1073741824)!==0&&(st&261930)===0?r.memoizedState=a:(r.memoizedState=o,r=M2(),Qe.lanes|=r,Zi|=r,o)}function M4(r,a,o,c){return Pn(o,a)?o:zl.current!==null?(r=th(r,o,c),Pn(r,a)||(Kt=!0),r):(ai&42)===0||(ai&1073741824)!==0&&(st&261930)===0?(Kt=!0,r.memoizedState=o):(r=M2(),Qe.lanes|=r,Zi|=r,a)}function z4(r,a,o,c,g){var y=Y.p;Y.p=y!==0&&8>y?y:8;var k=L.T,O={};L.T=O,ih(r,!1,a,o);try{var K=g(),le=L.S;if(le!==null&&le(O,K),K!==null&&typeof K=="object"&&typeof K.then=="function"){var he=V9(K,c);Go(r,a,he,er(r))}else Go(r,a,c,er(r))}catch(pe){Go(r,a,{then:function(){},status:"rejected",reason:pe},er())}finally{Y.p=y,k!==null&&O.types!==null&&(k.types=O.types),L.T=k}}function Z9(){}function nh(r,a,o,c){if(r.tag!==5)throw Error(i(476));var g=N4(r).queue;z4(r,g,a,J,o===null?Z9:function(){return D4(r),o(c)})}function N4(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:li,lastRenderedState:J},next:null};var o={};return a.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:li,lastRenderedState:o},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function D4(r){var a=N4(r);a.next===null&&(a=r.alternate.memoizedState),Go(r,a.next.queue,{},er())}function rh(){return gn(ss)}function _4(){return Xt().memoizedState}function O4(){return Xt().memoizedState}function Q9(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var o=er();r=Vi(o);var c=Yi(a,r,o);c!==null&&(Un(c,a,o),Io(c,a,o)),a={cache:_f()},r.payload=a;return}a=a.return}}function K9(r,a,o){var c=er();o={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Fu(r)?B4(a,o):(o=wf(r,a,o,c),o!==null&&(Un(o,r,c),L4(o,a,c)))}function R4(r,a,o){var c=er();Go(r,a,o,c)}function Go(r,a,o,c){var g={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(Fu(r))B4(a,g);else{var y=r.alternate;if(r.lanes===0&&(y===null||y.lanes===0)&&(y=a.lastRenderedReducer,y!==null))try{var k=a.lastRenderedState,O=y(k,o);if(g.hasEagerState=!0,g.eagerState=O,Pn(O,k))return Su(r,a,g,0),Tt===null&&wu(),!1}catch{}if(o=wf(r,a,g,c),o!==null)return Un(o,r,c),L4(o,a,c),!0}return!1}function ih(r,a,o,c){if(c={lane:2,revertLane:Lh(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Fu(r)){if(a)throw Error(i(479))}else a=wf(r,o,c,2),a!==null&&Un(a,r,2)}function Fu(r){var a=r.alternate;return r===Qe||a!==null&&a===Qe}function B4(r,a){Nl=Bu=!0;var o=r.pending;o===null?a.next=a:(a.next=o.next,o.next=a),r.pending=a}function L4(r,a,o){if((o&4194048)!==0){var c=a.lanes;c&=r.pendingLanes,o|=c,a.lanes=o,Xn(r,o)}}var $o={readContext:gn,use:ju,useCallback:Vt,useContext:Vt,useEffect:Vt,useImperativeHandle:Vt,useLayoutEffect:Vt,useInsertionEffect:Vt,useMemo:Vt,useReducer:Vt,useRef:Vt,useState:Vt,useDebugValue:Vt,useDeferredValue:Vt,useTransition:Vt,useSyncExternalStore:Vt,useId:Vt,useHostTransitionStatus:Vt,useFormState:Vt,useActionState:Vt,useOptimistic:Vt,useMemoCache:Vt,useCacheRefresh:Vt};$o.useEffectEvent=Vt;var H4={readContext:gn,use:ju,useCallback:function(r,a){return Tn().memoizedState=[r,a===void 0?null:a],r},useContext:gn,useEffect:b4,useImperativeHandle:function(r,a,o){o=o!=null?o.concat([r]):null,Iu(4194308,4,E4.bind(null,a,r),o)},useLayoutEffect:function(r,a){return Iu(4194308,4,r,a)},useInsertionEffect:function(r,a){Iu(4,2,r,a)},useMemo:function(r,a){var o=Tn();a=a===void 0?null:a;var c=r();if(ja){ln(!0);try{r()}finally{ln(!1)}}return o.memoizedState=[c,a],c},useReducer:function(r,a,o){var c=Tn();if(o!==void 0){var g=o(a);if(ja){ln(!0);try{o(a)}finally{ln(!1)}}}else g=a;return c.memoizedState=c.baseState=g,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:g},c.queue=r,r=r.dispatch=K9.bind(null,Qe,r),[c.memoizedState,r]},useRef:function(r){var a=Tn();return r={current:r},a.memoizedState=r},useState:function(r){r=Kf(r);var a=r.queue,o=R4.bind(null,Qe,a);return a.dispatch=o,[r.memoizedState,o]},useDebugValue:eh,useDeferredValue:function(r,a){var o=Tn();return th(o,r,a)},useTransition:function(){var r=Kf(!1);return r=z4.bind(null,Qe,r.queue,!0,!1),Tn().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,o){var c=Qe,g=Tn();if(ct){if(o===void 0)throw Error(i(407));o=o()}else{if(o=a(),Tt===null)throw Error(i(349));(st&127)!==0||i4(c,a,o)}g.memoizedState=o;var y={value:o,getSnapshot:a};return g.queue=y,b4(l4.bind(null,c,y,r),[r]),c.flags|=2048,_l(9,{destroy:void 0},a4.bind(null,c,y,o,a),null),o},useId:function(){var r=Tn(),a=Tt.identifierPrefix;if(ct){var o=Br,c=Rr;o=(c&~(1<<32-dt(c)-1)).toString(32)+o,a="_"+a+"R_"+o,o=Lu++,0<o&&(a+="H"+o.toString(32)),a+="_"}else o=Y9++,a="_"+a+"r_"+o.toString(32)+"_";return r.memoizedState=a},useHostTransitionStatus:rh,useFormState:p4,useActionState:p4,useOptimistic:function(r){var a=Tn();a.memoizedState=a.baseState=r;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=o,a=ih.bind(null,Qe,!0,o),o.dispatch=a,[r,a]},useMemoCache:Pf,useCacheRefresh:function(){return Tn().memoizedState=Q9.bind(null,Qe)},useEffectEvent:function(r){var a=Tn(),o={impl:r};return a.memoizedState=o,function(){if((gt&2)!==0)throw Error(i(440));return o.impl.apply(void 0,arguments)}}},ah={readContext:gn,use:ju,useCallback:C4,useContext:gn,useEffect:Wf,useImperativeHandle:A4,useInsertionEffect:S4,useLayoutEffect:k4,useMemo:T4,useReducer:qu,useRef:x4,useState:function(){return qu(li)},useDebugValue:eh,useDeferredValue:function(r,a){var o=Xt();return M4(o,St.memoizedState,r,a)},useTransition:function(){var r=qu(li)[0],a=Xt().memoizedState;return[typeof r=="boolean"?r:Yo(r),a]},useSyncExternalStore:r4,useId:_4,useHostTransitionStatus:rh,useFormState:g4,useActionState:g4,useOptimistic:function(r,a){var o=Xt();return u4(o,St,r,a)},useMemoCache:Pf,useCacheRefresh:O4};ah.useEffectEvent=w4;var j4={readContext:gn,use:ju,useCallback:C4,useContext:gn,useEffect:Wf,useImperativeHandle:A4,useInsertionEffect:S4,useLayoutEffect:k4,useMemo:T4,useReducer:Qf,useRef:x4,useState:function(){return Qf(li)},useDebugValue:eh,useDeferredValue:function(r,a){var o=Xt();return St===null?th(o,r,a):M4(o,St.memoizedState,r,a)},useTransition:function(){var r=Qf(li)[0],a=Xt().memoizedState;return[typeof r=="boolean"?r:Yo(r),a]},useSyncExternalStore:r4,useId:_4,useHostTransitionStatus:rh,useFormState:v4,useActionState:v4,useOptimistic:function(r,a){var o=Xt();return St!==null?u4(o,St,r,a):(o.baseState=r,[r,o.queue.dispatch])},useMemoCache:Pf,useCacheRefresh:O4};j4.useEffectEvent=w4;function lh(r,a,o,c){a=r.memoizedState,o=o(c,a),o=o==null?a:m({},a,o),r.memoizedState=o,r.lanes===0&&(r.updateQueue.baseState=o)}var oh={enqueueSetState:function(r,a,o){r=r._reactInternals;var c=er(),g=Vi(c);g.payload=a,o!=null&&(g.callback=o),a=Yi(r,g,c),a!==null&&(Un(a,r,c),Io(a,r,c))},enqueueReplaceState:function(r,a,o){r=r._reactInternals;var c=er(),g=Vi(c);g.tag=1,g.payload=a,o!=null&&(g.callback=o),a=Yi(r,g,c),a!==null&&(Un(a,r,c),Io(a,r,c))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var o=er(),c=Vi(o);c.tag=2,a!=null&&(c.callback=a),a=Yi(r,c,o),a!==null&&(Un(a,r,o),Io(a,r,o))}};function q4(r,a,o,c,g,y,k){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,y,k):a.prototype&&a.prototype.isPureReactComponent?!_o(o,c)||!_o(g,y):!0}function I4(r,a,o,c){r=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(o,c),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(o,c),a.state!==r&&oh.enqueueReplaceState(a,a.state,null)}function qa(r,a){var o=a;if("ref"in a){o={};for(var c in a)c!=="ref"&&(o[c]=a[c])}if(r=r.defaultProps){o===a&&(o=m({},o));for(var g in r)o[g]===void 0&&(o[g]=r[g])}return o}function U4(r){bu(r)}function F4(r){console.error(r)}function V4(r){bu(r)}function Vu(r,a){try{var o=r.onUncaughtError;o(a.value,{componentStack:a.stack})}catch(c){setTimeout(function(){throw c})}}function Y4(r,a,o){try{var c=r.onCaughtError;c(o.value,{componentStack:o.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function sh(r,a,o){return o=Vi(o),o.tag=3,o.payload={element:null},o.callback=function(){Vu(r,a)},o}function G4(r){return r=Vi(r),r.tag=3,r}function $4(r,a,o,c){var g=o.type.getDerivedStateFromError;if(typeof g=="function"){var y=c.value;r.payload=function(){return g(y)},r.callback=function(){Y4(a,o,c)}}var k=o.stateNode;k!==null&&typeof k.componentDidCatch=="function"&&(r.callback=function(){Y4(a,o,c),typeof g!="function"&&(Qi===null?Qi=new Set([this]):Qi.add(this));var O=c.stack;this.componentDidCatch(c.value,{componentStack:O!==null?O:""})})}function J9(r,a,o,c,g){if(o.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(a=o.alternate,a!==null&&El(a,o,g,!0),o=Qn.current,o!==null){switch(o.tag){case 31:case 13:return pr===null?t0():o.alternate===null&&Yt===0&&(Yt=3),o.flags&=-257,o.flags|=65536,o.lanes=g,c===Nu?o.flags|=16384:(a=o.updateQueue,a===null?o.updateQueue=new Set([c]):a.add(c),Oh(r,c,g)),!1;case 22:return o.flags|=65536,c===Nu?o.flags|=16384:(a=o.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([c])},o.updateQueue=a):(o=a.retryQueue,o===null?a.retryQueue=new Set([c]):o.add(c)),Oh(r,c,g)),!1}throw Error(i(435,o.tag))}return Oh(r,c,g),t0(),!1}if(ct)return a=Qn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=g,c!==Tf&&(r=Error(i(422),{cause:c}),Bo(fr(r,o)))):(c!==Tf&&(a=Error(i(423),{cause:c}),Bo(fr(a,o))),r=r.current.alternate,r.flags|=65536,g&=-g,r.lanes|=g,c=fr(c,o),g=sh(r.stateNode,c,g),jf(r,g),Yt!==4&&(Yt=2)),!1;var y=Error(i(520),{cause:c});if(y=fr(y,o),es===null?es=[y]:es.push(y),Yt!==4&&(Yt=2),a===null)return!0;c=fr(c,o),o=a;do{switch(o.tag){case 3:return o.flags|=65536,r=g&-g,o.lanes|=r,r=sh(o.stateNode,c,r),jf(o,r),!1;case 1:if(a=o.type,y=o.stateNode,(o.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Qi===null||!Qi.has(y))))return o.flags|=65536,g&=-g,o.lanes|=g,g=G4(g),$4(g,r,o,c),jf(o,g),!1}o=o.return}while(o!==null);return!1}var uh=Error(i(461)),Kt=!1;function yn(r,a,o,c){a.child=r===null?Qp(a,null,o,c):Ha(a,r.child,o,c)}function X4(r,a,o,c,g){o=o.render;var y=a.ref;if("ref"in c){var k={};for(var O in c)O!=="ref"&&(k[O]=c[O])}else k=c;return Oa(a),c=Yf(r,a,o,k,y,g),O=Gf(),r!==null&&!Kt?($f(r,a,g),oi(r,a,g)):(ct&&O&&Af(a),a.flags|=1,yn(r,a,c,g),a.child)}function P4(r,a,o,c,g){if(r===null){var y=o.type;return typeof y=="function"&&!Sf(y)&&y.defaultProps===void 0&&o.compare===null?(a.tag=15,a.type=y,Z4(r,a,y,c,g)):(r=Eu(o.type,null,c,a,a.mode,g),r.ref=a.ref,r.return=a,a.child=r)}if(y=r.child,!yh(r,g)){var k=y.memoizedProps;if(o=o.compare,o=o!==null?o:_o,o(k,c)&&r.ref===a.ref)return oi(r,a,g)}return a.flags|=1,r=ti(y,c),r.ref=a.ref,r.return=a,a.child=r}function Z4(r,a,o,c,g){if(r!==null){var y=r.memoizedProps;if(_o(y,c)&&r.ref===a.ref)if(Kt=!1,a.pendingProps=c=y,yh(r,g))(r.flags&131072)!==0&&(Kt=!0);else return a.lanes=r.lanes,oi(r,a,g)}return ch(r,a,o,c,g)}function Q4(r,a,o,c){var g=c.children,y=r!==null?r.memoizedState:null;if(r===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((a.flags&128)!==0){if(y=y!==null?y.baseLanes|o:o,r!==null){for(c=a.child=r.child,g=0;c!==null;)g=g|c.lanes|c.childLanes,c=c.sibling;c=g&~y}else c=0,a.child=null;return K4(r,a,y,o,c)}if((o&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&Mu(a,y!==null?y.cachePool:null),y!==null?Wp(a,y):If(),e4(a);else return c=a.lanes=536870912,K4(r,a,y!==null?y.baseLanes|o:o,o,c)}else y!==null?(Mu(a,y.cachePool),Wp(a,y),$i(),a.memoizedState=null):(r!==null&&Mu(a,null),If(),$i());return yn(r,a,g,o),a.child}function Xo(r,a){return r!==null&&r.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function K4(r,a,o,c,g){var y=Rf();return y=y===null?null:{parent:Zt._currentValue,pool:y},a.memoizedState={baseLanes:o,cachePool:y},r!==null&&Mu(a,null),If(),e4(a),r!==null&&El(r,a,c,!0),a.childLanes=g,null}function Yu(r,a){return a=$u({mode:a.mode,children:a.children},r.mode),a.ref=r.ref,r.child=a,a.return=r,a}function J4(r,a,o){return Ha(a,r.child,null,o),r=Yu(a,a.pendingProps),r.flags|=2,Kn(a),a.memoizedState=null,r}function W9(r,a,o){var c=a.pendingProps,g=(a.flags&128)!==0;if(a.flags&=-129,r===null){if(ct){if(c.mode==="hidden")return r=Yu(a,c),a.lanes=536870912,Xo(null,r);if(Ff(a),(r=Dt)?(r=cg(r,mr),r=r!==null&&r.data==="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:ji!==null?{id:Rr,overflow:Br}:null,retryLane:536870912,hydrationErrors:null},o=Bp(r),o.return=a,a.child=o,pn=a,Dt=null)):r=null,r===null)throw Ii(a);return a.lanes=536870912,null}return Yu(a,c)}var y=r.memoizedState;if(y!==null){var k=y.dehydrated;if(Ff(a),g)if(a.flags&256)a.flags&=-257,a=J4(r,a,o);else if(a.memoizedState!==null)a.child=r.child,a.flags|=128,a=null;else throw Error(i(558));else if(Kt||El(r,a,o,!1),g=(o&r.childLanes)!==0,Kt||g){if(c=Tt,c!==null&&(k=ol(c,o),k!==0&&k!==y.retryLane))throw y.retryLane=k,za(r,k),Un(c,r,k),uh;t0(),a=J4(r,a,o)}else r=y.treeContext,Dt=gr(k.nextSibling),pn=a,ct=!0,qi=null,mr=!1,r!==null&&jp(a,r),a=Yu(a,c),a.flags|=4096;return a}return r=ti(r.child,{mode:c.mode,children:c.children}),r.ref=a.ref,a.child=r,r.return=a,r}function Gu(r,a){var o=a.ref;if(o===null)r!==null&&r.ref!==null&&(a.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(i(284));(r===null||r.ref!==o)&&(a.flags|=4194816)}}function ch(r,a,o,c,g){return Oa(a),o=Yf(r,a,o,c,void 0,g),c=Gf(),r!==null&&!Kt?($f(r,a,g),oi(r,a,g)):(ct&&c&&Af(a),a.flags|=1,yn(r,a,o,g),a.child)}function W4(r,a,o,c,g,y){return Oa(a),a.updateQueue=null,o=n4(a,c,o,g),t4(r),c=Gf(),r!==null&&!Kt?($f(r,a,y),oi(r,a,y)):(ct&&c&&Af(a),a.flags|=1,yn(r,a,o,y),a.child)}function e2(r,a,o,c,g){if(Oa(a),a.stateNode===null){var y=bl,k=o.contextType;typeof k=="object"&&k!==null&&(y=gn(k)),y=new o(c,y),a.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=oh,a.stateNode=y,y._reactInternals=a,y=a.stateNode,y.props=c,y.state=a.memoizedState,y.refs={},Lf(a),k=o.contextType,y.context=typeof k=="object"&&k!==null?gn(k):bl,y.state=a.memoizedState,k=o.getDerivedStateFromProps,typeof k=="function"&&(lh(a,o,k,c),y.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(k=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),k!==y.state&&oh.enqueueReplaceState(y,y.state,null),Fo(a,c,y,g),Uo(),y.state=a.memoizedState),typeof y.componentDidMount=="function"&&(a.flags|=4194308),c=!0}else if(r===null){y=a.stateNode;var O=a.memoizedProps,K=qa(o,O);y.props=K;var le=y.context,he=o.contextType;k=bl,typeof he=="object"&&he!==null&&(k=gn(he));var pe=o.getDerivedStateFromProps;he=typeof pe=="function"||typeof y.getSnapshotBeforeUpdate=="function",O=a.pendingProps!==O,he||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(O||le!==k)&&I4(a,y,c,k),Fi=!1;var oe=a.memoizedState;y.state=oe,Fo(a,c,y,g),Uo(),le=a.memoizedState,O||oe!==le||Fi?(typeof pe=="function"&&(lh(a,o,pe,c),le=a.memoizedState),(K=Fi||q4(a,o,K,c,oe,le,k))?(he||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(a.flags|=4194308)):(typeof y.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=c,a.memoizedState=le),y.props=c,y.state=le,y.context=k,c=K):(typeof y.componentDidMount=="function"&&(a.flags|=4194308),c=!1)}else{y=a.stateNode,Hf(r,a),k=a.memoizedProps,he=qa(o,k),y.props=he,pe=a.pendingProps,oe=y.context,le=o.contextType,K=bl,typeof le=="object"&&le!==null&&(K=gn(le)),O=o.getDerivedStateFromProps,(le=typeof O=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(k!==pe||oe!==K)&&I4(a,y,c,K),Fi=!1,oe=a.memoizedState,y.state=oe,Fo(a,c,y,g),Uo();var ue=a.memoizedState;k!==pe||oe!==ue||Fi||r!==null&&r.dependencies!==null&&Cu(r.dependencies)?(typeof O=="function"&&(lh(a,o,O,c),ue=a.memoizedState),(he=Fi||q4(a,o,he,c,oe,ue,K)||r!==null&&r.dependencies!==null&&Cu(r.dependencies))?(le||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(c,ue,K),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(c,ue,K)),typeof y.componentDidUpdate=="function"&&(a.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof y.componentDidUpdate!="function"||k===r.memoizedProps&&oe===r.memoizedState||(a.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||k===r.memoizedProps&&oe===r.memoizedState||(a.flags|=1024),a.memoizedProps=c,a.memoizedState=ue),y.props=c,y.state=ue,y.context=K,c=he):(typeof y.componentDidUpdate!="function"||k===r.memoizedProps&&oe===r.memoizedState||(a.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||k===r.memoizedProps&&oe===r.memoizedState||(a.flags|=1024),c=!1)}return y=c,Gu(r,a),c=(a.flags&128)!==0,y||c?(y=a.stateNode,o=c&&typeof o.getDerivedStateFromError!="function"?null:y.render(),a.flags|=1,r!==null&&c?(a.child=Ha(a,r.child,null,g),a.child=Ha(a,null,o,g)):yn(r,a,o,g),a.memoizedState=y.state,r=a.child):r=oi(r,a,g),r}function t2(r,a,o,c){return Da(),a.flags|=256,yn(r,a,o,c),a.child}var fh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function hh(r){return{baseLanes:r,cachePool:Yp()}}function dh(r,a,o){return r=r!==null?r.childLanes&~o:0,a&&(r|=Wn),r}function n2(r,a,o){var c=a.pendingProps,g=!1,y=(a.flags&128)!==0,k;if((k=y)||(k=r!==null&&r.memoizedState===null?!1:($t.current&2)!==0),k&&(g=!0,a.flags&=-129),k=(a.flags&32)!==0,a.flags&=-33,r===null){if(ct){if(g?Gi(a):$i(),(r=Dt)?(r=cg(r,mr),r=r!==null&&r.data!=="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:ji!==null?{id:Rr,overflow:Br}:null,retryLane:536870912,hydrationErrors:null},o=Bp(r),o.return=a,a.child=o,pn=a,Dt=null)):r=null,r===null)throw Ii(a);return Zh(r)?a.lanes=32:a.lanes=536870912,null}var O=c.children;return c=c.fallback,g?($i(),g=a.mode,O=$u({mode:"hidden",children:O},g),c=Na(c,g,o,null),O.return=a,c.return=a,O.sibling=c,a.child=O,c=a.child,c.memoizedState=hh(o),c.childLanes=dh(r,k,o),a.memoizedState=fh,Xo(null,c)):(Gi(a),mh(a,O))}var K=r.memoizedState;if(K!==null&&(O=K.dehydrated,O!==null)){if(y)a.flags&256?(Gi(a),a.flags&=-257,a=ph(r,a,o)):a.memoizedState!==null?($i(),a.child=r.child,a.flags|=128,a=null):($i(),O=c.fallback,g=a.mode,c=$u({mode:"visible",children:c.children},g),O=Na(O,g,o,null),O.flags|=2,c.return=a,O.return=a,c.sibling=O,a.child=c,Ha(a,r.child,null,o),c=a.child,c.memoizedState=hh(o),c.childLanes=dh(r,k,o),a.memoizedState=fh,a=Xo(null,c));else if(Gi(a),Zh(O)){if(k=O.nextSibling&&O.nextSibling.dataset,k)var le=k.dgst;k=le,c=Error(i(419)),c.stack="",c.digest=k,Bo({value:c,source:null,stack:null}),a=ph(r,a,o)}else if(Kt||El(r,a,o,!1),k=(o&r.childLanes)!==0,Kt||k){if(k=Tt,k!==null&&(c=ol(k,o),c!==0&&c!==K.retryLane))throw K.retryLane=c,za(r,c),Un(k,r,c),uh;Ph(O)||t0(),a=ph(r,a,o)}else Ph(O)?(a.flags|=192,a.child=r.child,a=null):(r=K.treeContext,Dt=gr(O.nextSibling),pn=a,ct=!0,qi=null,mr=!1,r!==null&&jp(a,r),a=mh(a,c.children),a.flags|=4096);return a}return g?($i(),O=c.fallback,g=a.mode,K=r.child,le=K.sibling,c=ti(K,{mode:"hidden",children:c.children}),c.subtreeFlags=K.subtreeFlags&65011712,le!==null?O=ti(le,O):(O=Na(O,g,o,null),O.flags|=2),O.return=a,c.return=a,c.sibling=O,a.child=c,Xo(null,c),c=a.child,O=r.child.memoizedState,O===null?O=hh(o):(g=O.cachePool,g!==null?(K=Zt._currentValue,g=g.parent!==K?{parent:K,pool:K}:g):g=Yp(),O={baseLanes:O.baseLanes|o,cachePool:g}),c.memoizedState=O,c.childLanes=dh(r,k,o),a.memoizedState=fh,Xo(r.child,c)):(Gi(a),o=r.child,r=o.sibling,o=ti(o,{mode:"visible",children:c.children}),o.return=a,o.sibling=null,r!==null&&(k=a.deletions,k===null?(a.deletions=[r],a.flags|=16):k.push(r)),a.child=o,a.memoizedState=null,o)}function mh(r,a){return a=$u({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function $u(r,a){return r=Zn(22,r,null,a),r.lanes=0,r}function ph(r,a,o){return Ha(a,r.child,null,o),r=mh(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function r2(r,a,o){r.lanes|=a;var c=r.alternate;c!==null&&(c.lanes|=a),Nf(r.return,a,o)}function gh(r,a,o,c,g,y){var k=r.memoizedState;k===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:c,tail:o,tailMode:g,treeForkCount:y}:(k.isBackwards=a,k.rendering=null,k.renderingStartTime=0,k.last=c,k.tail=o,k.tailMode=g,k.treeForkCount=y)}function i2(r,a,o){var c=a.pendingProps,g=c.revealOrder,y=c.tail;c=c.children;var k=$t.current,O=(k&2)!==0;if(O?(k=k&1|2,a.flags|=128):k&=1,_($t,k),yn(r,a,c,o),c=ct?Ro:0,!O&&r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&r2(r,o,a);else if(r.tag===19)r2(r,o,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(g){case"forwards":for(o=a.child,g=null;o!==null;)r=o.alternate,r!==null&&Ru(r)===null&&(g=o),o=o.sibling;o=g,o===null?(g=a.child,a.child=null):(g=o.sibling,o.sibling=null),gh(a,!1,g,o,y,c);break;case"backwards":case"unstable_legacy-backwards":for(o=null,g=a.child,a.child=null;g!==null;){if(r=g.alternate,r!==null&&Ru(r)===null){a.child=g;break}r=g.sibling,g.sibling=o,o=g,g=r}gh(a,!0,o,null,y,c);break;case"together":gh(a,!1,null,null,void 0,c);break;default:a.memoizedState=null}return a.child}function oi(r,a,o){if(r!==null&&(a.dependencies=r.dependencies),Zi|=a.lanes,(o&a.childLanes)===0)if(r!==null){if(El(r,a,o,!1),(o&a.childLanes)===0)return null}else return null;if(r!==null&&a.child!==r.child)throw Error(i(153));if(a.child!==null){for(r=a.child,o=ti(r,r.pendingProps),a.child=o,o.return=a;r.sibling!==null;)r=r.sibling,o=o.sibling=ti(r,r.pendingProps),o.return=a;o.sibling=null}return a.child}function yh(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&Cu(r)))}function ex(r,a,o){switch(a.tag){case 3:ge(a,a.stateNode.containerInfo),Ui(a,Zt,r.memoizedState.cache),Da();break;case 27:case 5:je(a);break;case 4:ge(a,a.stateNode.containerInfo);break;case 10:Ui(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Ff(a),null;break;case 13:var c=a.memoizedState;if(c!==null)return c.dehydrated!==null?(Gi(a),a.flags|=128,null):(o&a.child.childLanes)!==0?n2(r,a,o):(Gi(a),r=oi(r,a,o),r!==null?r.sibling:null);Gi(a);break;case 19:var g=(r.flags&128)!==0;if(c=(o&a.childLanes)!==0,c||(El(r,a,o,!1),c=(o&a.childLanes)!==0),g){if(c)return i2(r,a,o);a.flags|=128}if(g=a.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),_($t,$t.current),c)break;return null;case 22:return a.lanes=0,Q4(r,a,o,a.pendingProps);case 24:Ui(a,Zt,r.memoizedState.cache)}return oi(r,a,o)}function a2(r,a,o){if(r!==null)if(r.memoizedProps!==a.pendingProps)Kt=!0;else{if(!yh(r,o)&&(a.flags&128)===0)return Kt=!1,ex(r,a,o);Kt=(r.flags&131072)!==0}else Kt=!1,ct&&(a.flags&1048576)!==0&&Hp(a,Ro,a.index);switch(a.lanes=0,a.tag){case 16:e:{var c=a.pendingProps;if(r=Ba(a.elementType),a.type=r,typeof r=="function")Sf(r)?(c=qa(r,c),a.tag=1,a=e2(null,a,r,c,o)):(a.tag=0,a=ch(null,a,r,c,o));else{if(r!=null){var g=r.$$typeof;if(g===B){a.tag=11,a=X4(null,a,r,c,o);break e}else if(g===I){a.tag=14,a=P4(null,a,r,c,o);break e}}throw a=q(r)||r,Error(i(306,a,""))}}return a;case 0:return ch(r,a,a.type,a.pendingProps,o);case 1:return c=a.type,g=qa(c,a.pendingProps),e2(r,a,c,g,o);case 3:e:{if(ge(a,a.stateNode.containerInfo),r===null)throw Error(i(387));c=a.pendingProps;var y=a.memoizedState;g=y.element,Hf(r,a),Fo(a,c,null,o);var k=a.memoizedState;if(c=k.cache,Ui(a,Zt,c),c!==y.cache&&Df(a,[Zt],o,!0),Uo(),c=k.element,y.isDehydrated)if(y={element:c,isDehydrated:!1,cache:k.cache},a.updateQueue.baseState=y,a.memoizedState=y,a.flags&256){a=t2(r,a,c,o);break e}else if(c!==g){g=fr(Error(i(424)),a),Bo(g),a=t2(r,a,c,o);break e}else for(r=a.stateNode.containerInfo,r.nodeType===9?r=r.body:r=r.nodeName==="HTML"?r.ownerDocument.body:r,Dt=gr(r.firstChild),pn=a,ct=!0,qi=null,mr=!0,o=Qp(a,null,c,o),a.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Da(),c===g){a=oi(r,a,o);break e}yn(r,a,c,o)}a=a.child}return a;case 26:return Gu(r,a),r===null?(o=gg(a.type,null,a.pendingProps,null))?a.memoizedState=o:ct||(o=a.type,r=a.pendingProps,c=s0(be.current).createElement(o),c[sn]=a,c[bn]=r,vn(c,o,r),Pt(c),a.stateNode=c):a.memoizedState=gg(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return je(a),r===null&&ct&&(c=a.stateNode=dg(a.type,a.pendingProps,be.current),pn=a,mr=!0,g=Dt,ea(a.type)?(Qh=g,Dt=gr(c.firstChild)):Dt=g),yn(r,a,a.pendingProps.children,o),Gu(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&ct&&((g=c=Dt)&&(c=Nx(c,a.type,a.pendingProps,mr),c!==null?(a.stateNode=c,pn=a,Dt=gr(c.firstChild),mr=!1,g=!0):g=!1),g||Ii(a)),je(a),g=a.type,y=a.pendingProps,k=r!==null?r.memoizedProps:null,c=y.children,Gh(g,y)?c=null:k!==null&&Gh(g,k)&&(a.flags|=32),a.memoizedState!==null&&(g=Yf(r,a,G9,null,null,o),ss._currentValue=g),Gu(r,a),yn(r,a,c,o),a.child;case 6:return r===null&&ct&&((r=o=Dt)&&(o=Dx(o,a.pendingProps,mr),o!==null?(a.stateNode=o,pn=a,Dt=null,r=!0):r=!1),r||Ii(a)),null;case 13:return n2(r,a,o);case 4:return ge(a,a.stateNode.containerInfo),c=a.pendingProps,r===null?a.child=Ha(a,null,c,o):yn(r,a,c,o),a.child;case 11:return X4(r,a,a.type,a.pendingProps,o);case 7:return yn(r,a,a.pendingProps,o),a.child;case 8:return yn(r,a,a.pendingProps.children,o),a.child;case 12:return yn(r,a,a.pendingProps.children,o),a.child;case 10:return c=a.pendingProps,Ui(a,a.type,c.value),yn(r,a,c.children,o),a.child;case 9:return g=a.type._context,c=a.pendingProps.children,Oa(a),g=gn(g),c=c(g),a.flags|=1,yn(r,a,c,o),a.child;case 14:return P4(r,a,a.type,a.pendingProps,o);case 15:return Z4(r,a,a.type,a.pendingProps,o);case 19:return i2(r,a,o);case 31:return W9(r,a,o);case 22:return Q4(r,a,o,a.pendingProps);case 24:return Oa(a),c=gn(Zt),r===null?(g=Rf(),g===null&&(g=Tt,y=_f(),g.pooledCache=y,y.refCount++,y!==null&&(g.pooledCacheLanes|=o),g=y),a.memoizedState={parent:c,cache:g},Lf(a),Ui(a,Zt,g)):((r.lanes&o)!==0&&(Hf(r,a),Fo(a,null,null,o),Uo()),g=r.memoizedState,y=a.memoizedState,g.parent!==c?(g={parent:c,cache:c},a.memoizedState=g,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=g),Ui(a,Zt,c)):(c=y.cache,Ui(a,Zt,c),c!==g.cache&&Df(a,[Zt],o,!0))),yn(r,a,a.pendingProps.children,o),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function si(r){r.flags|=4}function vh(r,a,o,c,g){if((a=(r.mode&32)!==0)&&(a=!1),a){if(r.flags|=16777216,(g&335544128)===g)if(r.stateNode.complete)r.flags|=8192;else if(_2())r.flags|=8192;else throw La=Nu,Bf}else r.flags&=-16777217}function l2(r,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!wg(a))if(_2())r.flags|=8192;else throw La=Nu,Bf}function Xu(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?zi():536870912,r.lanes|=a,Ll|=a)}function Po(r,a){if(!ct)switch(r.tailMode){case"hidden":a=r.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?r.tail=null:o.sibling=null;break;case"collapsed":o=r.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?a||r.tail===null?r.tail=null:r.tail.sibling=null:c.sibling=null}}function _t(r){var a=r.alternate!==null&&r.alternate.child===r.child,o=0,c=0;if(a)for(var g=r.child;g!==null;)o|=g.lanes|g.childLanes,c|=g.subtreeFlags&65011712,c|=g.flags&65011712,g.return=r,g=g.sibling;else for(g=r.child;g!==null;)o|=g.lanes|g.childLanes,c|=g.subtreeFlags,c|=g.flags,g.return=r,g=g.sibling;return r.subtreeFlags|=c,r.childLanes=o,a}function tx(r,a,o){var c=a.pendingProps;switch(Cf(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(a),null;case 1:return _t(a),null;case 3:return o=a.stateNode,c=null,r!==null&&(c=r.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),ii(Zt),ke(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(r===null||r.child===null)&&(kl(a)?si(a):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Mf())),_t(a),null;case 26:var g=a.type,y=a.memoizedState;return r===null?(si(a),y!==null?(_t(a),l2(a,y)):(_t(a),vh(a,g,null,c,o))):y?y!==r.memoizedState?(si(a),_t(a),l2(a,y)):(_t(a),a.flags&=-16777217):(r=r.memoizedProps,r!==c&&si(a),_t(a),vh(a,g,r,c,o)),null;case 27:if(qe(a),o=be.current,g=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==c&&si(a);else{if(!c){if(a.stateNode===null)throw Error(i(166));return _t(a),null}r=se.current,kl(a)?qp(a):(r=dg(g,c,o),a.stateNode=r,si(a))}return _t(a),null;case 5:if(qe(a),g=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==c&&si(a);else{if(!c){if(a.stateNode===null)throw Error(i(166));return _t(a),null}if(y=se.current,kl(a))qp(a);else{var k=s0(be.current);switch(y){case 1:y=k.createElementNS("http://www.w3.org/2000/svg",g);break;case 2:y=k.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;default:switch(g){case"svg":y=k.createElementNS("http://www.w3.org/2000/svg",g);break;case"math":y=k.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;case"script":y=k.createElement("div"),y.innerHTML="<script><\/script>",y=y.removeChild(y.firstChild);break;case"select":y=typeof c.is=="string"?k.createElement("select",{is:c.is}):k.createElement("select"),c.multiple?y.multiple=!0:c.size&&(y.size=c.size);break;default:y=typeof c.is=="string"?k.createElement(g,{is:c.is}):k.createElement(g)}}y[sn]=a,y[bn]=c;e:for(k=a.child;k!==null;){if(k.tag===5||k.tag===6)y.appendChild(k.stateNode);else if(k.tag!==4&&k.tag!==27&&k.child!==null){k.child.return=k,k=k.child;continue}if(k===a)break e;for(;k.sibling===null;){if(k.return===null||k.return===a)break e;k=k.return}k.sibling.return=k.return,k=k.sibling}a.stateNode=y;e:switch(vn(y,g,c),g){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&si(a)}}return _t(a),vh(a,a.type,r===null?null:r.memoizedProps,a.pendingProps,o),null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==c&&si(a);else{if(typeof c!="string"&&a.stateNode===null)throw Error(i(166));if(r=be.current,kl(a)){if(r=a.stateNode,o=a.memoizedProps,c=null,g=pn,g!==null)switch(g.tag){case 27:case 5:c=g.memoizedProps}r[sn]=a,r=!!(r.nodeValue===o||c!==null&&c.suppressHydrationWarning===!0||ng(r.nodeValue,o)),r||Ii(a,!0)}else r=s0(r).createTextNode(c),r[sn]=a,a.stateNode=r}return _t(a),null;case 31:if(o=a.memoizedState,r===null||r.memoizedState!==null){if(c=kl(a),o!==null){if(r===null){if(!c)throw Error(i(318));if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(557));r[sn]=a}else Da(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;_t(a),r=!1}else o=Mf(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=o),r=!0;if(!r)return a.flags&256?(Kn(a),a):(Kn(a),null);if((a.flags&128)!==0)throw Error(i(558))}return _t(a),null;case 13:if(c=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(g=kl(a),c!==null&&c.dehydrated!==null){if(r===null){if(!g)throw Error(i(318));if(g=a.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(i(317));g[sn]=a}else Da(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;_t(a),g=!1}else g=Mf(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=g),g=!0;if(!g)return a.flags&256?(Kn(a),a):(Kn(a),null)}return Kn(a),(a.flags&128)!==0?(a.lanes=o,a):(o=c!==null,r=r!==null&&r.memoizedState!==null,o&&(c=a.child,g=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(g=c.alternate.memoizedState.cachePool.pool),y=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(y=c.memoizedState.cachePool.pool),y!==g&&(c.flags|=2048)),o!==r&&o&&(a.child.flags|=8192),Xu(a,a.updateQueue),_t(a),null);case 4:return ke(),r===null&&Ih(a.stateNode.containerInfo),_t(a),null;case 10:return ii(a.type),_t(a),null;case 19:if(Q($t),c=a.memoizedState,c===null)return _t(a),null;if(g=(a.flags&128)!==0,y=c.rendering,y===null)if(g)Po(c,!1);else{if(Yt!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(y=Ru(r),y!==null){for(a.flags|=128,Po(c,!1),r=y.updateQueue,a.updateQueue=r,Xu(a,r),a.subtreeFlags=0,r=o,o=a.child;o!==null;)Rp(o,r),o=o.sibling;return _($t,$t.current&1|2),ct&&ni(a,c.treeForkCount),a.child}r=r.sibling}c.tail!==null&&Ot()>Ju&&(a.flags|=128,g=!0,Po(c,!1),a.lanes=4194304)}else{if(!g)if(r=Ru(y),r!==null){if(a.flags|=128,g=!0,r=r.updateQueue,a.updateQueue=r,Xu(a,r),Po(c,!0),c.tail===null&&c.tailMode==="hidden"&&!y.alternate&&!ct)return _t(a),null}else 2*Ot()-c.renderingStartTime>Ju&&o!==536870912&&(a.flags|=128,g=!0,Po(c,!1),a.lanes=4194304);c.isBackwards?(y.sibling=a.child,a.child=y):(r=c.last,r!==null?r.sibling=y:a.child=y,c.last=y)}return c.tail!==null?(r=c.tail,c.rendering=r,c.tail=r.sibling,c.renderingStartTime=Ot(),r.sibling=null,o=$t.current,_($t,g?o&1|2:o&1),ct&&ni(a,c.treeForkCount),r):(_t(a),null);case 22:case 23:return Kn(a),Uf(),c=a.memoizedState!==null,r!==null?r.memoizedState!==null!==c&&(a.flags|=8192):c&&(a.flags|=8192),c?(o&536870912)!==0&&(a.flags&128)===0&&(_t(a),a.subtreeFlags&6&&(a.flags|=8192)):_t(a),o=a.updateQueue,o!==null&&Xu(a,o.retryQueue),o=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==o&&(a.flags|=2048),r!==null&&Q(Ra),null;case 24:return o=null,r!==null&&(o=r.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),ii(Zt),_t(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function nx(r,a){switch(Cf(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return ii(Zt),ke(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return qe(a),null;case 31:if(a.memoizedState!==null){if(Kn(a),a.alternate===null)throw Error(i(340));Da()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 13:if(Kn(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(i(340));Da()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return Q($t),null;case 4:return ke(),null;case 10:return ii(a.type),null;case 22:case 23:return Kn(a),Uf(),r!==null&&Q(Ra),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 24:return ii(Zt),null;case 25:return null;default:return null}}function o2(r,a){switch(Cf(a),a.tag){case 3:ii(Zt),ke();break;case 26:case 27:case 5:qe(a);break;case 4:ke();break;case 31:a.memoizedState!==null&&Kn(a);break;case 13:Kn(a);break;case 19:Q($t);break;case 10:ii(a.type);break;case 22:case 23:Kn(a),Uf(),r!==null&&Q(Ra);break;case 24:ii(Zt)}}function Zo(r,a){try{var o=a.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var g=c.next;o=g;do{if((o.tag&r)===r){c=void 0;var y=o.create,k=o.inst;c=y(),k.destroy=c}o=o.next}while(o!==g)}}catch(O){wt(a,a.return,O)}}function Xi(r,a,o){try{var c=a.updateQueue,g=c!==null?c.lastEffect:null;if(g!==null){var y=g.next;c=y;do{if((c.tag&r)===r){var k=c.inst,O=k.destroy;if(O!==void 0){k.destroy=void 0,g=a;var K=o,le=O;try{le()}catch(he){wt(g,K,he)}}}c=c.next}while(c!==y)}}catch(he){wt(a,a.return,he)}}function s2(r){var a=r.updateQueue;if(a!==null){var o=r.stateNode;try{Jp(a,o)}catch(c){wt(r,r.return,c)}}}function u2(r,a,o){o.props=qa(r.type,r.memoizedProps),o.state=r.memoizedState;try{o.componentWillUnmount()}catch(c){wt(r,a,c)}}function Qo(r,a){try{var o=r.ref;if(o!==null){switch(r.tag){case 26:case 27:case 5:var c=r.stateNode;break;case 30:c=r.stateNode;break;default:c=r.stateNode}typeof o=="function"?r.refCleanup=o(c):o.current=c}}catch(g){wt(r,a,g)}}function Lr(r,a){var o=r.ref,c=r.refCleanup;if(o!==null)if(typeof c=="function")try{c()}catch(g){wt(r,a,g)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(g){wt(r,a,g)}else o.current=null}function c2(r){var a=r.type,o=r.memoizedProps,c=r.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":o.autoFocus&&c.focus();break e;case"img":o.src?c.src=o.src:o.srcSet&&(c.srcset=o.srcSet)}}catch(g){wt(r,r.return,g)}}function xh(r,a,o){try{var c=r.stateNode;Ex(c,r.type,o,a),c[bn]=a}catch(g){wt(r,r.return,g)}}function f2(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&ea(r.type)||r.tag===4}function bh(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||f2(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&ea(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function wh(r,a,o){var c=r.tag;if(c===5||c===6)r=r.stateNode,a?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(r,a):(a=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,a.appendChild(r),o=o._reactRootContainer,o!=null||a.onclick!==null||(a.onclick=Wr));else if(c!==4&&(c===27&&ea(r.type)&&(o=r.stateNode,a=null),r=r.child,r!==null))for(wh(r,a,o),r=r.sibling;r!==null;)wh(r,a,o),r=r.sibling}function Pu(r,a,o){var c=r.tag;if(c===5||c===6)r=r.stateNode,a?o.insertBefore(r,a):o.appendChild(r);else if(c!==4&&(c===27&&ea(r.type)&&(o=r.stateNode),r=r.child,r!==null))for(Pu(r,a,o),r=r.sibling;r!==null;)Pu(r,a,o),r=r.sibling}function h2(r){var a=r.stateNode,o=r.memoizedProps;try{for(var c=r.type,g=a.attributes;g.length;)a.removeAttributeNode(g[0]);vn(a,c,o),a[sn]=r,a[bn]=o}catch(y){wt(r,r.return,y)}}var ui=!1,Jt=!1,Sh=!1,d2=typeof WeakSet=="function"?WeakSet:Set,dn=null;function rx(r,a){if(r=r.containerInfo,Vh=p0,r=Ap(r),pf(r)){if("selectionStart"in r)var o={start:r.selectionStart,end:r.selectionEnd};else e:{o=(o=r.ownerDocument)&&o.defaultView||window;var c=o.getSelection&&o.getSelection();if(c&&c.rangeCount!==0){o=c.anchorNode;var g=c.anchorOffset,y=c.focusNode;c=c.focusOffset;try{o.nodeType,y.nodeType}catch{o=null;break e}var k=0,O=-1,K=-1,le=0,he=0,pe=r,oe=null;t:for(;;){for(var ue;pe!==o||g!==0&&pe.nodeType!==3||(O=k+g),pe!==y||c!==0&&pe.nodeType!==3||(K=k+c),pe.nodeType===3&&(k+=pe.nodeValue.length),(ue=pe.firstChild)!==null;)oe=pe,pe=ue;for(;;){if(pe===r)break t;if(oe===o&&++le===g&&(O=k),oe===y&&++he===c&&(K=k),(ue=pe.nextSibling)!==null)break;pe=oe,oe=pe.parentNode}pe=ue}o=O===-1||K===-1?null:{start:O,end:K}}else o=null}o=o||{start:0,end:0}}else o=null;for(Yh={focusedElem:r,selectionRange:o},p0=!1,dn=a;dn!==null;)if(a=dn,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,dn=r;else for(;dn!==null;){switch(a=dn,y=a.alternate,r=a.flags,a.tag){case 0:if((r&4)!==0&&(r=a.updateQueue,r=r!==null?r.events:null,r!==null))for(o=0;o<r.length;o++)g=r[o],g.ref.impl=g.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&y!==null){r=void 0,o=a,g=y.memoizedProps,y=y.memoizedState,c=o.stateNode;try{var De=qa(o.type,g);r=c.getSnapshotBeforeUpdate(De,y),c.__reactInternalSnapshotBeforeUpdate=r}catch(Ve){wt(o,o.return,Ve)}}break;case 3:if((r&1024)!==0){if(r=a.stateNode.containerInfo,o=r.nodeType,o===9)Xh(r);else if(o===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":Xh(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(i(163))}if(r=a.sibling,r!==null){r.return=a.return,dn=r;break}dn=a.return}}function m2(r,a,o){var c=o.flags;switch(o.tag){case 0:case 11:case 15:fi(r,o),c&4&&Zo(5,o);break;case 1:if(fi(r,o),c&4)if(r=o.stateNode,a===null)try{r.componentDidMount()}catch(k){wt(o,o.return,k)}else{var g=qa(o.type,a.memoizedProps);a=a.memoizedState;try{r.componentDidUpdate(g,a,r.__reactInternalSnapshotBeforeUpdate)}catch(k){wt(o,o.return,k)}}c&64&&s2(o),c&512&&Qo(o,o.return);break;case 3:if(fi(r,o),c&64&&(r=o.updateQueue,r!==null)){if(a=null,o.child!==null)switch(o.child.tag){case 27:case 5:a=o.child.stateNode;break;case 1:a=o.child.stateNode}try{Jp(r,a)}catch(k){wt(o,o.return,k)}}break;case 27:a===null&&c&4&&h2(o);case 26:case 5:fi(r,o),a===null&&c&4&&c2(o),c&512&&Qo(o,o.return);break;case 12:fi(r,o);break;case 31:fi(r,o),c&4&&y2(r,o);break;case 13:fi(r,o),c&4&&v2(r,o),c&64&&(r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(o=hx.bind(null,o),_x(r,o))));break;case 22:if(c=o.memoizedState!==null||ui,!c){a=a!==null&&a.memoizedState!==null||Jt,g=ui;var y=Jt;ui=c,(Jt=a)&&!y?hi(r,o,(o.subtreeFlags&8772)!==0):fi(r,o),ui=g,Jt=y}break;case 30:break;default:fi(r,o)}}function p2(r){var a=r.alternate;a!==null&&(r.alternate=null,p2(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&So(a)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var Bt=null,Hn=!1;function ci(r,a,o){for(o=o.child;o!==null;)g2(r,a,o),o=o.sibling}function g2(r,a,o){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(an,o)}catch{}switch(o.tag){case 26:Jt||Lr(o,a),ci(r,a,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:Jt||Lr(o,a);var c=Bt,g=Hn;ea(o.type)&&(Bt=o.stateNode,Hn=!1),ci(r,a,o),as(o.stateNode),Bt=c,Hn=g;break;case 5:Jt||Lr(o,a);case 6:if(c=Bt,g=Hn,Bt=null,ci(r,a,o),Bt=c,Hn=g,Bt!==null)if(Hn)try{(Bt.nodeType===9?Bt.body:Bt.nodeName==="HTML"?Bt.ownerDocument.body:Bt).removeChild(o.stateNode)}catch(y){wt(o,a,y)}else try{Bt.removeChild(o.stateNode)}catch(y){wt(o,a,y)}break;case 18:Bt!==null&&(Hn?(r=Bt,sg(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,o.stateNode),Yl(r)):sg(Bt,o.stateNode));break;case 4:c=Bt,g=Hn,Bt=o.stateNode.containerInfo,Hn=!0,ci(r,a,o),Bt=c,Hn=g;break;case 0:case 11:case 14:case 15:Xi(2,o,a),Jt||Xi(4,o,a),ci(r,a,o);break;case 1:Jt||(Lr(o,a),c=o.stateNode,typeof c.componentWillUnmount=="function"&&u2(o,a,c)),ci(r,a,o);break;case 21:ci(r,a,o);break;case 22:Jt=(c=Jt)||o.memoizedState!==null,ci(r,a,o),Jt=c;break;default:ci(r,a,o)}}function y2(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Yl(r)}catch(o){wt(a,a.return,o)}}}function v2(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Yl(r)}catch(o){wt(a,a.return,o)}}function ix(r){switch(r.tag){case 31:case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new d2),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new d2),a;default:throw Error(i(435,r.tag))}}function Zu(r,a){var o=ix(r);a.forEach(function(c){if(!o.has(c)){o.add(c);var g=dx.bind(null,r,c);c.then(g,g)}})}function jn(r,a){var o=a.deletions;if(o!==null)for(var c=0;c<o.length;c++){var g=o[c],y=r,k=a,O=k;e:for(;O!==null;){switch(O.tag){case 27:if(ea(O.type)){Bt=O.stateNode,Hn=!1;break e}break;case 5:Bt=O.stateNode,Hn=!1;break e;case 3:case 4:Bt=O.stateNode.containerInfo,Hn=!0;break e}O=O.return}if(Bt===null)throw Error(i(160));g2(y,k,g),Bt=null,Hn=!1,y=g.alternate,y!==null&&(y.return=null),g.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)x2(a,r),a=a.sibling}var Er=null;function x2(r,a){var o=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:jn(a,r),qn(r),c&4&&(Xi(3,r,r.return),Zo(3,r),Xi(5,r,r.return));break;case 1:jn(a,r),qn(r),c&512&&(Jt||o===null||Lr(o,o.return)),c&64&&ui&&(r=r.updateQueue,r!==null&&(c=r.callbacks,c!==null&&(o=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=o===null?c:o.concat(c))));break;case 26:var g=Er;if(jn(a,r),qn(r),c&512&&(Jt||o===null||Lr(o,o.return)),c&4){var y=o!==null?o.memoizedState:null;if(c=r.memoizedState,o===null)if(c===null)if(r.stateNode===null){e:{c=r.type,o=r.memoizedProps,g=g.ownerDocument||g;t:switch(c){case"title":y=g.getElementsByTagName("title")[0],(!y||y[ka]||y[sn]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=g.createElement(c),g.head.insertBefore(y,g.querySelector("head > title"))),vn(y,c,o),y[sn]=r,Pt(y),c=y;break e;case"link":var k=xg("link","href",g).get(c+(o.href||""));if(k){for(var O=0;O<k.length;O++)if(y=k[O],y.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&y.getAttribute("rel")===(o.rel==null?null:o.rel)&&y.getAttribute("title")===(o.title==null?null:o.title)&&y.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){k.splice(O,1);break t}}y=g.createElement(c),vn(y,c,o),g.head.appendChild(y);break;case"meta":if(k=xg("meta","content",g).get(c+(o.content||""))){for(O=0;O<k.length;O++)if(y=k[O],y.getAttribute("content")===(o.content==null?null:""+o.content)&&y.getAttribute("name")===(o.name==null?null:o.name)&&y.getAttribute("property")===(o.property==null?null:o.property)&&y.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&y.getAttribute("charset")===(o.charSet==null?null:o.charSet)){k.splice(O,1);break t}}y=g.createElement(c),vn(y,c,o),g.head.appendChild(y);break;default:throw Error(i(468,c))}y[sn]=r,Pt(y),c=y}r.stateNode=c}else bg(g,r.type,r.stateNode);else r.stateNode=vg(g,c,r.memoizedProps);else y!==c?(y===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):y.count--,c===null?bg(g,r.type,r.stateNode):vg(g,c,r.memoizedProps)):c===null&&r.stateNode!==null&&xh(r,r.memoizedProps,o.memoizedProps)}break;case 27:jn(a,r),qn(r),c&512&&(Jt||o===null||Lr(o,o.return)),o!==null&&c&4&&xh(r,r.memoizedProps,o.memoizedProps);break;case 5:if(jn(a,r),qn(r),c&512&&(Jt||o===null||Lr(o,o.return)),r.flags&32){g=r.stateNode;try{dl(g,"")}catch(De){wt(r,r.return,De)}}c&4&&r.stateNode!=null&&(g=r.memoizedProps,xh(r,g,o!==null?o.memoizedProps:g)),c&1024&&(Sh=!0);break;case 6:if(jn(a,r),qn(r),c&4){if(r.stateNode===null)throw Error(i(162));c=r.memoizedProps,o=r.stateNode;try{o.nodeValue=c}catch(De){wt(r,r.return,De)}}break;case 3:if(f0=null,g=Er,Er=u0(a.containerInfo),jn(a,r),Er=g,qn(r),c&4&&o!==null&&o.memoizedState.isDehydrated)try{Yl(a.containerInfo)}catch(De){wt(r,r.return,De)}Sh&&(Sh=!1,b2(r));break;case 4:c=Er,Er=u0(r.stateNode.containerInfo),jn(a,r),qn(r),Er=c;break;case 12:jn(a,r),qn(r);break;case 31:jn(a,r),qn(r),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,Zu(r,c)));break;case 13:jn(a,r),qn(r),r.child.flags&8192&&r.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Ku=Ot()),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,Zu(r,c)));break;case 22:g=r.memoizedState!==null;var K=o!==null&&o.memoizedState!==null,le=ui,he=Jt;if(ui=le||g,Jt=he||K,jn(a,r),Jt=he,ui=le,qn(r),c&8192)e:for(a=r.stateNode,a._visibility=g?a._visibility&-2:a._visibility|1,g&&(o===null||K||ui||Jt||Ia(r)),o=null,a=r;;){if(a.tag===5||a.tag===26){if(o===null){K=o=a;try{if(y=K.stateNode,g)k=y.style,typeof k.setProperty=="function"?k.setProperty("display","none","important"):k.display="none";else{O=K.stateNode;var pe=K.memoizedProps.style,oe=pe!=null&&pe.hasOwnProperty("display")?pe.display:null;O.style.display=oe==null||typeof oe=="boolean"?"":(""+oe).trim()}}catch(De){wt(K,K.return,De)}}}else if(a.tag===6){if(o===null){K=a;try{K.stateNode.nodeValue=g?"":K.memoizedProps}catch(De){wt(K,K.return,De)}}}else if(a.tag===18){if(o===null){K=a;try{var ue=K.stateNode;g?ug(ue,!0):ug(K.stateNode,!1)}catch(De){wt(K,K.return,De)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===r)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;o===a&&(o=null),a=a.return}o===a&&(o=null),a.sibling.return=a.return,a=a.sibling}c&4&&(c=r.updateQueue,c!==null&&(o=c.retryQueue,o!==null&&(c.retryQueue=null,Zu(r,o))));break;case 19:jn(a,r),qn(r),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,Zu(r,c)));break;case 30:break;case 21:break;default:jn(a,r),qn(r)}}function qn(r){var a=r.flags;if(a&2){try{for(var o,c=r.return;c!==null;){if(f2(c)){o=c;break}c=c.return}if(o==null)throw Error(i(160));switch(o.tag){case 27:var g=o.stateNode,y=bh(r);Pu(r,y,g);break;case 5:var k=o.stateNode;o.flags&32&&(dl(k,""),o.flags&=-33);var O=bh(r);Pu(r,O,k);break;case 3:case 4:var K=o.stateNode.containerInfo,le=bh(r);wh(r,le,K);break;default:throw Error(i(161))}}catch(he){wt(r,r.return,he)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function b2(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;b2(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function fi(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)m2(r,a.alternate,a),a=a.sibling}function Ia(r){for(r=r.child;r!==null;){var a=r;switch(a.tag){case 0:case 11:case 14:case 15:Xi(4,a,a.return),Ia(a);break;case 1:Lr(a,a.return);var o=a.stateNode;typeof o.componentWillUnmount=="function"&&u2(a,a.return,o),Ia(a);break;case 27:as(a.stateNode);case 26:case 5:Lr(a,a.return),Ia(a);break;case 22:a.memoizedState===null&&Ia(a);break;case 30:Ia(a);break;default:Ia(a)}r=r.sibling}}function hi(r,a,o){for(o=o&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var c=a.alternate,g=r,y=a,k=y.flags;switch(y.tag){case 0:case 11:case 15:hi(g,y,o),Zo(4,y);break;case 1:if(hi(g,y,o),c=y,g=c.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(le){wt(c,c.return,le)}if(c=y,g=c.updateQueue,g!==null){var O=c.stateNode;try{var K=g.shared.hiddenCallbacks;if(K!==null)for(g.shared.hiddenCallbacks=null,g=0;g<K.length;g++)Kp(K[g],O)}catch(le){wt(c,c.return,le)}}o&&k&64&&s2(y),Qo(y,y.return);break;case 27:h2(y);case 26:case 5:hi(g,y,o),o&&c===null&&k&4&&c2(y),Qo(y,y.return);break;case 12:hi(g,y,o);break;case 31:hi(g,y,o),o&&k&4&&y2(g,y);break;case 13:hi(g,y,o),o&&k&4&&v2(g,y);break;case 22:y.memoizedState===null&&hi(g,y,o),Qo(y,y.return);break;case 30:break;default:hi(g,y,o)}a=a.sibling}}function kh(r,a){var o=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==o&&(r!=null&&r.refCount++,o!=null&&Lo(o))}function Eh(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&Lo(r))}function Ar(r,a,o,c){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)w2(r,a,o,c),a=a.sibling}function w2(r,a,o,c){var g=a.flags;switch(a.tag){case 0:case 11:case 15:Ar(r,a,o,c),g&2048&&Zo(9,a);break;case 1:Ar(r,a,o,c);break;case 3:Ar(r,a,o,c),g&2048&&(r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&Lo(r)));break;case 12:if(g&2048){Ar(r,a,o,c),r=a.stateNode;try{var y=a.memoizedProps,k=y.id,O=y.onPostCommit;typeof O=="function"&&O(k,a.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(K){wt(a,a.return,K)}}else Ar(r,a,o,c);break;case 31:Ar(r,a,o,c);break;case 13:Ar(r,a,o,c);break;case 23:break;case 22:y=a.stateNode,k=a.alternate,a.memoizedState!==null?y._visibility&2?Ar(r,a,o,c):Ko(r,a):y._visibility&2?Ar(r,a,o,c):(y._visibility|=2,Ol(r,a,o,c,(a.subtreeFlags&10256)!==0||!1)),g&2048&&kh(k,a);break;case 24:Ar(r,a,o,c),g&2048&&Eh(a.alternate,a);break;default:Ar(r,a,o,c)}}function Ol(r,a,o,c,g){for(g=g&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var y=r,k=a,O=o,K=c,le=k.flags;switch(k.tag){case 0:case 11:case 15:Ol(y,k,O,K,g),Zo(8,k);break;case 23:break;case 22:var he=k.stateNode;k.memoizedState!==null?he._visibility&2?Ol(y,k,O,K,g):Ko(y,k):(he._visibility|=2,Ol(y,k,O,K,g)),g&&le&2048&&kh(k.alternate,k);break;case 24:Ol(y,k,O,K,g),g&&le&2048&&Eh(k.alternate,k);break;default:Ol(y,k,O,K,g)}a=a.sibling}}function Ko(r,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var o=r,c=a,g=c.flags;switch(c.tag){case 22:Ko(o,c),g&2048&&kh(c.alternate,c);break;case 24:Ko(o,c),g&2048&&Eh(c.alternate,c);break;default:Ko(o,c)}a=a.sibling}}var Jo=8192;function Rl(r,a,o){if(r.subtreeFlags&Jo)for(r=r.child;r!==null;)S2(r,a,o),r=r.sibling}function S2(r,a,o){switch(r.tag){case 26:Rl(r,a,o),r.flags&Jo&&r.memoizedState!==null&&Yx(o,Er,r.memoizedState,r.memoizedProps);break;case 5:Rl(r,a,o);break;case 3:case 4:var c=Er;Er=u0(r.stateNode.containerInfo),Rl(r,a,o),Er=c;break;case 22:r.memoizedState===null&&(c=r.alternate,c!==null&&c.memoizedState!==null?(c=Jo,Jo=16777216,Rl(r,a,o),Jo=c):Rl(r,a,o));break;default:Rl(r,a,o)}}function k2(r){var a=r.alternate;if(a!==null&&(r=a.child,r!==null)){a.child=null;do a=r.sibling,r.sibling=null,r=a;while(r!==null)}}function Wo(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var c=a[o];dn=c,A2(c,r)}k2(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)E2(r),r=r.sibling}function E2(r){switch(r.tag){case 0:case 11:case 15:Wo(r),r.flags&2048&&Xi(9,r,r.return);break;case 3:Wo(r);break;case 12:Wo(r);break;case 22:var a=r.stateNode;r.memoizedState!==null&&a._visibility&2&&(r.return===null||r.return.tag!==13)?(a._visibility&=-3,Qu(r)):Wo(r);break;default:Wo(r)}}function Qu(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var c=a[o];dn=c,A2(c,r)}k2(r)}for(r=r.child;r!==null;){switch(a=r,a.tag){case 0:case 11:case 15:Xi(8,a,a.return),Qu(a);break;case 22:o=a.stateNode,o._visibility&2&&(o._visibility&=-3,Qu(a));break;default:Qu(a)}r=r.sibling}}function A2(r,a){for(;dn!==null;){var o=dn;switch(o.tag){case 0:case 11:case 15:Xi(8,o,a);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var c=o.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:Lo(o.memoizedState.cache)}if(c=o.child,c!==null)c.return=o,dn=c;else e:for(o=r;dn!==null;){c=dn;var g=c.sibling,y=c.return;if(p2(c),c===o){dn=null;break e}if(g!==null){g.return=y,dn=g;break e}dn=y}}}var ax={getCacheForType:function(r){var a=gn(Zt),o=a.data.get(r);return o===void 0&&(o=r(),a.data.set(r,o)),o},cacheSignal:function(){return gn(Zt).controller.signal}},lx=typeof WeakMap=="function"?WeakMap:Map,gt=0,Tt=null,it=null,st=0,bt=0,Jn=null,Pi=!1,Bl=!1,Ah=!1,di=0,Yt=0,Zi=0,Ua=0,Ch=0,Wn=0,Ll=0,es=null,In=null,Th=!1,Ku=0,C2=0,Ju=1/0,Wu=null,Qi=null,un=0,Ki=null,Hl=null,mi=0,Mh=0,zh=null,T2=null,ts=0,Nh=null;function er(){return(gt&2)!==0&&st!==0?st&-st:L.T!==null?Lh():on()}function M2(){if(Wn===0)if((st&536870912)===0||ct){var r=Pe;Pe<<=1,(Pe&3932160)===0&&(Pe=262144),Wn=r}else Wn=536870912;return r=Qn.current,r!==null&&(r.flags|=32),Wn}function Un(r,a,o){(r===Tt&&(bt===2||bt===9)||r.cancelPendingCommit!==null)&&(jl(r,0),Ji(r,st,Wn,!1)),wr(r,o),((gt&2)===0||r!==Tt)&&(r===Tt&&((gt&2)===0&&(Ua|=o),Yt===4&&Ji(r,st,Wn,!1)),Hr(r))}function z2(r,a,o){if((gt&6)!==0)throw Error(i(327));var c=!o&&(a&127)===0&&(a&r.expiredLanes)===0||_r(r,a),g=c?ux(r,a):_h(r,a,!0),y=c;do{if(g===0){Bl&&!c&&Ji(r,a,0,!1);break}else{if(o=r.current.alternate,y&&!ox(o)){g=_h(r,a,!1),y=!1;continue}if(g===2){if(y=a,r.errorRecoveryDisabledLanes&y)var k=0;else k=r.pendingLanes&-536870913,k=k!==0?k:k&536870912?536870912:0;if(k!==0){a=k;e:{var O=r;g=es;var K=O.current.memoizedState.isDehydrated;if(K&&(jl(O,k).flags|=256),k=_h(O,k,!1),k!==2){if(Ah&&!K){O.errorRecoveryDisabledLanes|=y,Ua|=y,g=4;break e}y=In,In=g,y!==null&&(In===null?In=y:In.push.apply(In,y))}g=k}if(y=!1,g!==2)continue}}if(g===1){jl(r,0),Ji(r,a,0,!0);break}e:{switch(c=r,y=g,y){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:Ji(c,a,Wn,!Pi);break e;case 2:In=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(g=Ku+300-Ot(),10<g)){if(Ji(c,a,Wn,!Pi),Zr(c,0,!0)!==0)break e;mi=a,c.timeoutHandle=lg(N2.bind(null,c,o,In,Wu,Th,a,Wn,Ua,Ll,Pi,y,"Throttled",-0,0),g);break e}N2(c,o,In,Wu,Th,a,Wn,Ua,Ll,Pi,y,null,-0,0)}}break}while(!0);Hr(r)}function N2(r,a,o,c,g,y,k,O,K,le,he,pe,oe,ue){if(r.timeoutHandle=-1,pe=a.subtreeFlags,pe&8192||(pe&16785408)===16785408){pe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Wr},S2(a,y,pe);var De=(y&62914560)===y?Ku-Ot():(y&4194048)===y?C2-Ot():0;if(De=Gx(pe,De),De!==null){mi=y,r.cancelPendingCommit=De(j2.bind(null,r,a,y,o,c,g,k,O,K,he,pe,null,oe,ue)),Ji(r,y,k,!le);return}}j2(r,a,y,o,c,g,k,O,K)}function ox(r){for(var a=r;;){var o=a.tag;if((o===0||o===11||o===15)&&a.flags&16384&&(o=a.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var c=0;c<o.length;c++){var g=o[c],y=g.getSnapshot;g=g.value;try{if(!Pn(y(),g))return!1}catch{return!1}}if(o=a.child,a.subtreeFlags&16384&&o!==null)o.return=a,a=o;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ji(r,a,o,c){a&=~Ch,a&=~Ua,r.suspendedLanes|=a,r.pingedLanes&=~a,c&&(r.warmLanes|=a),c=r.expirationTimes;for(var g=a;0<g;){var y=31-dt(g),k=1<<y;c[y]=-1,g&=~k}o!==0&&ll(r,o,a)}function e0(){return(gt&6)===0?(ns(0),!1):!0}function Dh(){if(it!==null){if(bt===0)var r=it.return;else r=it,ri=_a=null,Xf(r),Ml=null,jo=0,r=it;for(;r!==null;)o2(r.alternate,r),r=r.return;it=null}}function jl(r,a){var o=r.timeoutHandle;o!==-1&&(r.timeoutHandle=-1,Tx(o)),o=r.cancelPendingCommit,o!==null&&(r.cancelPendingCommit=null,o()),mi=0,Dh(),Tt=r,it=o=ti(r.current,null),st=a,bt=0,Jn=null,Pi=!1,Bl=_r(r,a),Ah=!1,Ll=Wn=Ch=Ua=Zi=Yt=0,In=es=null,Th=!1,(a&8)!==0&&(a|=a&32);var c=r.entangledLanes;if(c!==0)for(r=r.entanglements,c&=a;0<c;){var g=31-dt(c),y=1<<g;a|=r[g],c&=~y}return di=a,wu(),o}function D2(r,a){Qe=null,L.H=$o,a===Tl||a===zu?(a=Xp(),bt=3):a===Bf?(a=Xp(),bt=4):bt=a===uh?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Jn=a,it===null&&(Yt=1,Vu(r,fr(a,r.current)))}function _2(){var r=Qn.current;return r===null?!0:(st&4194048)===st?pr===null:(st&62914560)===st||(st&536870912)!==0?r===pr:!1}function O2(){var r=L.H;return L.H=$o,r===null?$o:r}function R2(){var r=L.A;return L.A=ax,r}function t0(){Yt=4,Pi||(st&4194048)!==st&&Qn.current!==null||(Bl=!0),(Zi&134217727)===0&&(Ua&134217727)===0||Tt===null||Ji(Tt,st,Wn,!1)}function _h(r,a,o){var c=gt;gt|=2;var g=O2(),y=R2();(Tt!==r||st!==a)&&(Wu=null,jl(r,a)),a=!1;var k=Yt;e:do try{if(bt!==0&&it!==null){var O=it,K=Jn;switch(bt){case 8:Dh(),k=6;break e;case 3:case 2:case 9:case 6:Qn.current===null&&(a=!0);var le=bt;if(bt=0,Jn=null,ql(r,O,K,le),o&&Bl){k=0;break e}break;default:le=bt,bt=0,Jn=null,ql(r,O,K,le)}}sx(),k=Yt;break}catch(he){D2(r,he)}while(!0);return a&&r.shellSuspendCounter++,ri=_a=null,gt=c,L.H=g,L.A=y,it===null&&(Tt=null,st=0,wu()),k}function sx(){for(;it!==null;)B2(it)}function ux(r,a){var o=gt;gt|=2;var c=O2(),g=R2();Tt!==r||st!==a?(Wu=null,Ju=Ot()+500,jl(r,a)):Bl=_r(r,a);e:do try{if(bt!==0&&it!==null){a=it;var y=Jn;t:switch(bt){case 1:bt=0,Jn=null,ql(r,a,y,1);break;case 2:case 9:if(Gp(y)){bt=0,Jn=null,L2(a);break}a=function(){bt!==2&&bt!==9||Tt!==r||(bt=7),Hr(r)},y.then(a,a);break e;case 3:bt=7;break e;case 4:bt=5;break e;case 7:Gp(y)?(bt=0,Jn=null,L2(a)):(bt=0,Jn=null,ql(r,a,y,7));break;case 5:var k=null;switch(it.tag){case 26:k=it.memoizedState;case 5:case 27:var O=it;if(k?wg(k):O.stateNode.complete){bt=0,Jn=null;var K=O.sibling;if(K!==null)it=K;else{var le=O.return;le!==null?(it=le,n0(le)):it=null}break t}}bt=0,Jn=null,ql(r,a,y,5);break;case 6:bt=0,Jn=null,ql(r,a,y,6);break;case 8:Dh(),Yt=6;break e;default:throw Error(i(462))}}cx();break}catch(he){D2(r,he)}while(!0);return ri=_a=null,L.H=c,L.A=g,gt=o,it!==null?0:(Tt=null,st=0,wu(),Yt)}function cx(){for(;it!==null&&!Ct();)B2(it)}function B2(r){var a=a2(r.alternate,r,di);r.memoizedProps=r.pendingProps,a===null?n0(r):it=a}function L2(r){var a=r,o=a.alternate;switch(a.tag){case 15:case 0:a=W4(o,a,a.pendingProps,a.type,void 0,st);break;case 11:a=W4(o,a,a.pendingProps,a.type.render,a.ref,st);break;case 5:Xf(a);default:o2(o,a),a=it=Rp(a,di),a=a2(o,a,di)}r.memoizedProps=r.pendingProps,a===null?n0(r):it=a}function ql(r,a,o,c){ri=_a=null,Xf(a),Ml=null,jo=0;var g=a.return;try{if(J9(r,g,a,o,st)){Yt=1,Vu(r,fr(o,r.current)),it=null;return}}catch(y){if(g!==null)throw it=g,y;Yt=1,Vu(r,fr(o,r.current)),it=null;return}a.flags&32768?(ct||c===1?r=!0:Bl||(st&536870912)!==0?r=!1:(Pi=r=!0,(c===2||c===9||c===3||c===6)&&(c=Qn.current,c!==null&&c.tag===13&&(c.flags|=16384))),H2(a,r)):n0(a)}function n0(r){var a=r;do{if((a.flags&32768)!==0){H2(a,Pi);return}r=a.return;var o=tx(a.alternate,a,di);if(o!==null){it=o;return}if(a=a.sibling,a!==null){it=a;return}it=a=r}while(a!==null);Yt===0&&(Yt=5)}function H2(r,a){do{var o=nx(r.alternate,r);if(o!==null){o.flags&=32767,it=o;return}if(o=r.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!a&&(r=r.sibling,r!==null)){it=r;return}it=r=o}while(r!==null);Yt=6,it=null}function j2(r,a,o,c,g,y,k,O,K){r.cancelPendingCommit=null;do r0();while(un!==0);if((gt&6)!==0)throw Error(i(327));if(a!==null){if(a===r.current)throw Error(i(177));if(y=a.lanes|a.childLanes,y|=bf,al(r,o,y,k,O,K),r===Tt&&(it=Tt=null,st=0),Hl=a,Ki=r,mi=o,Mh=y,zh=g,T2=c,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,mx(Re,function(){return V2(),null})):(r.callbackNode=null,r.callbackPriority=0),c=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||c){c=L.T,L.T=null,g=Y.p,Y.p=2,k=gt,gt|=4;try{rx(r,a,o)}finally{gt=k,Y.p=g,L.T=c}}un=1,q2(),I2(),U2()}}function q2(){if(un===1){un=0;var r=Ki,a=Hl,o=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||o){o=L.T,L.T=null;var c=Y.p;Y.p=2;var g=gt;gt|=4;try{x2(a,r);var y=Yh,k=Ap(r.containerInfo),O=y.focusedElem,K=y.selectionRange;if(k!==O&&O&&O.ownerDocument&&Ep(O.ownerDocument.documentElement,O)){if(K!==null&&pf(O)){var le=K.start,he=K.end;if(he===void 0&&(he=le),"selectionStart"in O)O.selectionStart=le,O.selectionEnd=Math.min(he,O.value.length);else{var pe=O.ownerDocument||document,oe=pe&&pe.defaultView||window;if(oe.getSelection){var ue=oe.getSelection(),De=O.textContent.length,Ve=Math.min(K.start,De),Et=K.end===void 0?Ve:Math.min(K.end,De);!ue.extend&&Ve>Et&&(k=Et,Et=Ve,Ve=k);var re=kp(O,Ve),ee=kp(O,Et);if(re&&ee&&(ue.rangeCount!==1||ue.anchorNode!==re.node||ue.anchorOffset!==re.offset||ue.focusNode!==ee.node||ue.focusOffset!==ee.offset)){var ae=pe.createRange();ae.setStart(re.node,re.offset),ue.removeAllRanges(),Ve>Et?(ue.addRange(ae),ue.extend(ee.node,ee.offset)):(ae.setEnd(ee.node,ee.offset),ue.addRange(ae))}}}}for(pe=[],ue=O;ue=ue.parentNode;)ue.nodeType===1&&pe.push({element:ue,left:ue.scrollLeft,top:ue.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<pe.length;O++){var de=pe[O];de.element.scrollLeft=de.left,de.element.scrollTop=de.top}}p0=!!Vh,Yh=Vh=null}finally{gt=g,Y.p=c,L.T=o}}r.current=a,un=2}}function I2(){if(un===2){un=0;var r=Ki,a=Hl,o=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||o){o=L.T,L.T=null;var c=Y.p;Y.p=2;var g=gt;gt|=4;try{m2(r,a.alternate,a)}finally{gt=g,Y.p=c,L.T=o}}un=3}}function U2(){if(un===4||un===3){un=0,An();var r=Ki,a=Hl,o=mi,c=T2;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?un=5:(un=0,Hl=Ki=null,F2(r,r.pendingLanes));var g=r.pendingLanes;if(g===0&&(Qi=null),Di(o),a=a.stateNode,Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(an,a,void 0,(a.current.flags&128)===128)}catch{}if(c!==null){a=L.T,g=Y.p,Y.p=2,L.T=null;try{for(var y=r.onRecoverableError,k=0;k<c.length;k++){var O=c[k];y(O.value,{componentStack:O.stack})}}finally{L.T=a,Y.p=g}}(mi&3)!==0&&r0(),Hr(r),g=r.pendingLanes,(o&261930)!==0&&(g&42)!==0?r===Nh?ts++:(ts=0,Nh=r):ts=0,ns(0)}}function F2(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,Lo(a)))}function r0(){return q2(),I2(),U2(),V2()}function V2(){if(un!==5)return!1;var r=Ki,a=Mh;Mh=0;var o=Di(mi),c=L.T,g=Y.p;try{Y.p=32>o?32:o,L.T=null,o=zh,zh=null;var y=Ki,k=mi;if(un=0,Hl=Ki=null,mi=0,(gt&6)!==0)throw Error(i(331));var O=gt;if(gt|=4,E2(y.current),w2(y,y.current,k,o),gt=O,ns(0,!1),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(an,y)}catch{}return!0}finally{Y.p=g,L.T=c,F2(r,a)}}function Y2(r,a,o){a=fr(o,a),a=sh(r.stateNode,a,2),r=Yi(r,a,2),r!==null&&(wr(r,2),Hr(r))}function wt(r,a,o){if(r.tag===3)Y2(r,r,o);else for(;a!==null;){if(a.tag===3){Y2(a,r,o);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Qi===null||!Qi.has(c))){r=fr(o,r),o=G4(2),c=Yi(a,o,2),c!==null&&($4(o,c,a,r),wr(c,2),Hr(c));break}}a=a.return}}function Oh(r,a,o){var c=r.pingCache;if(c===null){c=r.pingCache=new lx;var g=new Set;c.set(a,g)}else g=c.get(a),g===void 0&&(g=new Set,c.set(a,g));g.has(o)||(Ah=!0,g.add(o),r=fx.bind(null,r,a,o),a.then(r,r))}function fx(r,a,o){var c=r.pingCache;c!==null&&c.delete(a),r.pingedLanes|=r.suspendedLanes&o,r.warmLanes&=~o,Tt===r&&(st&o)===o&&(Yt===4||Yt===3&&(st&62914560)===st&&300>Ot()-Ku?(gt&2)===0&&jl(r,0):Ch|=o,Ll===st&&(Ll=0)),Hr(r)}function G2(r,a){a===0&&(a=zi()),r=za(r,a),r!==null&&(wr(r,a),Hr(r))}function hx(r){var a=r.memoizedState,o=0;a!==null&&(o=a.retryLane),G2(r,o)}function dx(r,a){var o=0;switch(r.tag){case 31:case 13:var c=r.stateNode,g=r.memoizedState;g!==null&&(o=g.retryLane);break;case 19:c=r.stateNode;break;case 22:c=r.stateNode._retryCache;break;default:throw Error(i(314))}c!==null&&c.delete(a),G2(r,o)}function mx(r,a){return nt(r,a)}var i0=null,Il=null,Rh=!1,a0=!1,Bh=!1,Wi=0;function Hr(r){r!==Il&&r.next===null&&(Il===null?i0=Il=r:Il=Il.next=r),a0=!0,Rh||(Rh=!0,gx())}function ns(r,a){if(!Bh&&a0){Bh=!0;do for(var o=!1,c=i0;c!==null;){if(r!==0){var g=c.pendingLanes;if(g===0)var y=0;else{var k=c.suspendedLanes,O=c.pingedLanes;y=(1<<31-dt(42|r)+1)-1,y&=g&~(k&~O),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(o=!0,Z2(c,y))}else y=st,y=Zr(c,c===Tt?y:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(y&3)===0||_r(c,y)||(o=!0,Z2(c,y));c=c.next}while(o);Bh=!1}}function px(){$2()}function $2(){a0=Rh=!1;var r=0;Wi!==0&&Cx()&&(r=Wi);for(var a=Ot(),o=null,c=i0;c!==null;){var g=c.next,y=X2(c,a);y===0?(c.next=null,o===null?i0=g:o.next=g,g===null&&(Il=o)):(o=c,(r!==0||(y&3)!==0)&&(a0=!0)),c=g}un!==0&&un!==5||ns(r),Wi!==0&&(Wi=0)}function X2(r,a){for(var o=r.suspendedLanes,c=r.pingedLanes,g=r.expirationTimes,y=r.pendingLanes&-62914561;0<y;){var k=31-dt(y),O=1<<k,K=g[k];K===-1?((O&o)===0||(O&c)!==0)&&(g[k]=xn(O,a)):K<=a&&(r.expiredLanes|=O),y&=~O}if(a=Tt,o=st,o=Zr(r,r===a?o:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),c=r.callbackNode,o===0||r===a&&(bt===2||bt===9)||r.cancelPendingCommit!==null)return c!==null&&c!==null&&At(c),r.callbackNode=null,r.callbackPriority=0;if((o&3)===0||_r(r,o)){if(a=o&-o,a===r.callbackPriority)return a;switch(c!==null&&At(c),Di(o)){case 2:case 8:o=Ee;break;case 32:o=Re;break;case 268435456:o=ot;break;default:o=Re}return c=P2.bind(null,r),o=nt(o,c),r.callbackPriority=a,r.callbackNode=o,a}return c!==null&&c!==null&&At(c),r.callbackPriority=2,r.callbackNode=null,2}function P2(r,a){if(un!==0&&un!==5)return r.callbackNode=null,r.callbackPriority=0,null;var o=r.callbackNode;if(r0()&&r.callbackNode!==o)return null;var c=st;return c=Zr(r,r===Tt?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),c===0?null:(z2(r,c,a),X2(r,Ot()),r.callbackNode!=null&&r.callbackNode===o?P2.bind(null,r):null)}function Z2(r,a){if(r0())return null;z2(r,a,!0)}function gx(){Mx(function(){(gt&6)!==0?nt(fe,px):$2()})}function Lh(){if(Wi===0){var r=Al;r===0&&(r=ye,ye<<=1,(ye&261888)===0&&(ye=256)),Wi=r}return Wi}function Q2(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:du(""+r)}function K2(r,a){var o=a.ownerDocument.createElement("input");return o.name=a.name,o.value=a.value,r.id&&o.setAttribute("form",r.id),a.parentNode.insertBefore(o,a),r=new FormData(r),o.parentNode.removeChild(o),r}function yx(r,a,o,c,g){if(a==="submit"&&o&&o.stateNode===g){var y=Q2((g[bn]||null).action),k=c.submitter;k&&(a=(a=k[bn]||null)?Q2(a.formAction):k.getAttribute("formAction"),a!==null&&(y=a,k=null));var O=new yu("action","action",null,c,g);r.push({event:O,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Wi!==0){var K=k?K2(g,k):new FormData(g);nh(o,{pending:!0,data:K,method:g.method,action:y},null,K)}}else typeof y=="function"&&(O.preventDefault(),K=k?K2(g,k):new FormData(g),nh(o,{pending:!0,data:K,method:g.method,action:y},y,K))},currentTarget:g}]})}}for(var Hh=0;Hh<xf.length;Hh++){var jh=xf[Hh],vx=jh.toLowerCase(),xx=jh[0].toUpperCase()+jh.slice(1);kr(vx,"on"+xx)}kr(Mp,"onAnimationEnd"),kr(zp,"onAnimationIteration"),kr(Np,"onAnimationStart"),kr("dblclick","onDoubleClick"),kr("focusin","onFocus"),kr("focusout","onBlur"),kr(B9,"onTransitionRun"),kr(L9,"onTransitionStart"),kr(H9,"onTransitionCancel"),kr(Dp,"onTransitionEnd"),Li("onMouseEnter",["mouseout","mouseover"]),Li("onMouseLeave",["mouseout","mouseover"]),Li("onPointerEnter",["pointerout","pointerover"]),Li("onPointerLeave",["pointerout","pointerover"]),Kr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Kr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Kr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Kr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Kr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Kr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var rs="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(" "),bx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(rs));function J2(r,a){a=(a&4)!==0;for(var o=0;o<r.length;o++){var c=r[o],g=c.event;c=c.listeners;e:{var y=void 0;if(a)for(var k=c.length-1;0<=k;k--){var O=c[k],K=O.instance,le=O.currentTarget;if(O=O.listener,K!==y&&g.isPropagationStopped())break e;y=O,g.currentTarget=le;try{y(g)}catch(he){bu(he)}g.currentTarget=null,y=K}else for(k=0;k<c.length;k++){if(O=c[k],K=O.instance,le=O.currentTarget,O=O.listener,K!==y&&g.isPropagationStopped())break e;y=O,g.currentTarget=le;try{y(g)}catch(he){bu(he)}g.currentTarget=null,y=K}}}}function at(r,a){var o=a[ul];o===void 0&&(o=a[ul]=new Set);var c=r+"__bubble";o.has(c)||(W2(a,r,2,!1),o.add(c))}function qh(r,a,o){var c=0;a&&(c|=4),W2(o,r,c,a)}var l0="_reactListening"+Math.random().toString(36).slice(2);function Ih(r){if(!r[l0]){r[l0]=!0,ou.forEach(function(o){o!=="selectionchange"&&(bx.has(o)||qh(o,!1,r),qh(o,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[l0]||(a[l0]=!0,qh("selectionchange",!1,a))}}function W2(r,a,o,c){switch(Mg(a)){case 2:var g=Px;break;case 8:g=Zx;break;default:g=td}o=g.bind(null,a,o,r),g=void 0,!lf||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(g=!0),c?g!==void 0?r.addEventListener(a,o,{capture:!0,passive:g}):r.addEventListener(a,o,!0):g!==void 0?r.addEventListener(a,o,{passive:g}):r.addEventListener(a,o,!1)}function Uh(r,a,o,c,g){var y=c;if((a&1)===0&&(a&2)===0&&c!==null)e:for(;;){if(c===null)return;var k=c.tag;if(k===3||k===4){var O=c.stateNode.containerInfo;if(O===g)break;if(k===4)for(k=c.return;k!==null;){var K=k.tag;if((K===3||K===4)&&k.stateNode.containerInfo===g)return;k=k.return}for(;O!==null;){if(k=_i(O),k===null)return;if(K=k.tag,K===5||K===6||K===26||K===27){c=y=k;continue e}O=O.parentNode}}c=c.return}ip(function(){var le=y,he=rf(o),pe=[];e:{var oe=_p.get(r);if(oe!==void 0){var ue=yu,De=r;switch(r){case"keypress":if(pu(o)===0)break e;case"keydown":case"keyup":ue=d9;break;case"focusin":De="focus",ue=cf;break;case"focusout":De="blur",ue=cf;break;case"beforeblur":case"afterblur":ue=cf;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ue=op;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ue=t9;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ue=g9;break;case Mp:case zp:case Np:ue=i9;break;case Dp:ue=v9;break;case"scroll":case"scrollend":ue=Wv;break;case"wheel":ue=b9;break;case"copy":case"cut":case"paste":ue=l9;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ue=up;break;case"toggle":case"beforetoggle":ue=S9}var Ve=(a&4)!==0,Et=!Ve&&(r==="scroll"||r==="scrollend"),re=Ve?oe!==null?oe+"Capture":null:oe;Ve=[];for(var ee=le,ae;ee!==null;){var de=ee;if(ae=de.stateNode,de=de.tag,de!==5&&de!==26&&de!==27||ae===null||re===null||(de=Ao(ee,re),de!=null&&Ve.push(is(ee,de,ae))),Et)break;ee=ee.return}0<Ve.length&&(oe=new ue(oe,De,null,o,he),pe.push({event:oe,listeners:Ve}))}}if((a&7)===0){e:{if(oe=r==="mouseover"||r==="pointerover",ue=r==="mouseout"||r==="pointerout",oe&&o!==nf&&(De=o.relatedTarget||o.fromElement)&&(_i(De)||De[Qr]))break e;if((ue||oe)&&(oe=he.window===he?he:(oe=he.ownerDocument)?oe.defaultView||oe.parentWindow:window,ue?(De=o.relatedTarget||o.toElement,ue=le,De=De?_i(De):null,De!==null&&(Et=s(De),Ve=De.tag,De!==Et||Ve!==5&&Ve!==27&&Ve!==6)&&(De=null)):(ue=null,De=le),ue!==De)){if(Ve=op,de="onMouseLeave",re="onMouseEnter",ee="mouse",(r==="pointerout"||r==="pointerover")&&(Ve=up,de="onPointerLeave",re="onPointerEnter",ee="pointer"),Et=ue==null?oe:Ri(ue),ae=De==null?oe:Ri(De),oe=new Ve(de,ee+"leave",ue,o,he),oe.target=Et,oe.relatedTarget=ae,de=null,_i(he)===le&&(Ve=new Ve(re,ee+"enter",De,o,he),Ve.target=ae,Ve.relatedTarget=Et,de=Ve),Et=de,ue&&De)t:{for(Ve=wx,re=ue,ee=De,ae=0,de=re;de;de=Ve(de))ae++;de=0;for(var Ie=ee;Ie;Ie=Ve(Ie))de++;for(;0<ae-de;)re=Ve(re),ae--;for(;0<de-ae;)ee=Ve(ee),de--;for(;ae--;){if(re===ee||ee!==null&&re===ee.alternate){Ve=re;break t}re=Ve(re),ee=Ve(ee)}Ve=null}else Ve=null;ue!==null&&eg(pe,oe,ue,Ve,!1),De!==null&&Et!==null&&eg(pe,Et,De,Ve,!0)}}e:{if(oe=le?Ri(le):window,ue=oe.nodeName&&oe.nodeName.toLowerCase(),ue==="select"||ue==="input"&&oe.type==="file")var mt=yp;else if(pp(oe))if(vp)mt=_9;else{mt=N9;var Oe=z9}else ue=oe.nodeName,!ue||ue.toLowerCase()!=="input"||oe.type!=="checkbox"&&oe.type!=="radio"?le&&tf(le.elementType)&&(mt=yp):mt=D9;if(mt&&(mt=mt(r,le))){gp(pe,mt,o,he);break e}Oe&&Oe(r,oe,le),r==="focusout"&&le&&oe.type==="number"&&le.memoizedProps.value!=null&&Eo(oe,"number",oe.value)}switch(Oe=le?Ri(le):window,r){case"focusin":(pp(Oe)||Oe.contentEditable==="true")&&(yl=Oe,gf=le,Oo=null);break;case"focusout":Oo=gf=yl=null;break;case"mousedown":yf=!0;break;case"contextmenu":case"mouseup":case"dragend":yf=!1,Cp(pe,o,he);break;case"selectionchange":if(R9)break;case"keydown":case"keyup":Cp(pe,o,he)}var Ke;if(hf)e:{switch(r){case"compositionstart":var ut="onCompositionStart";break e;case"compositionend":ut="onCompositionEnd";break e;case"compositionupdate":ut="onCompositionUpdate";break e}ut=void 0}else gl?dp(r,o)&&(ut="onCompositionEnd"):r==="keydown"&&o.keyCode===229&&(ut="onCompositionStart");ut&&(cp&&o.locale!=="ko"&&(gl||ut!=="onCompositionStart"?ut==="onCompositionEnd"&&gl&&(Ke=ap()):(Hi=he,of="value"in Hi?Hi.value:Hi.textContent,gl=!0)),Oe=o0(le,ut),0<Oe.length&&(ut=new sp(ut,r,null,o,he),pe.push({event:ut,listeners:Oe}),Ke?ut.data=Ke:(Ke=mp(o),Ke!==null&&(ut.data=Ke)))),(Ke=E9?A9(r,o):C9(r,o))&&(ut=o0(le,"onBeforeInput"),0<ut.length&&(Oe=new sp("onBeforeInput","beforeinput",null,o,he),pe.push({event:Oe,listeners:ut}),Oe.data=Ke)),yx(pe,r,le,o,he)}J2(pe,a)})}function is(r,a,o){return{instance:r,listener:a,currentTarget:o}}function o0(r,a){for(var o=a+"Capture",c=[];r!==null;){var g=r,y=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||y===null||(g=Ao(r,o),g!=null&&c.unshift(is(r,g,y)),g=Ao(r,a),g!=null&&c.push(is(r,g,y))),r.tag===3)return c;r=r.return}return[]}function wx(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function eg(r,a,o,c,g){for(var y=a._reactName,k=[];o!==null&&o!==c;){var O=o,K=O.alternate,le=O.stateNode;if(O=O.tag,K!==null&&K===c)break;O!==5&&O!==26&&O!==27||le===null||(K=le,g?(le=Ao(o,y),le!=null&&k.unshift(is(o,le,K))):g||(le=Ao(o,y),le!=null&&k.push(is(o,le,K)))),o=o.return}k.length!==0&&r.push({event:a,listeners:k})}var Sx=/\r\n?/g,kx=/\u0000|\uFFFD/g;function tg(r){return(typeof r=="string"?r:""+r).replace(Sx,`
9
+ `).replace(kx,"")}function ng(r,a){return a=tg(a),tg(r)===a}function kt(r,a,o,c,g,y){switch(o){case"children":typeof c=="string"?a==="body"||a==="textarea"&&c===""||dl(r,c):(typeof c=="number"||typeof c=="bigint")&&a!=="body"&&dl(r,""+c);break;case"className":fl(r,"class",c);break;case"tabIndex":fl(r,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":fl(r,o,c);break;case"style":np(r,c,y);break;case"data":if(a!=="object"){fl(r,"data",c);break}case"src":case"href":if(c===""&&(a!=="a"||o!=="href")){r.removeAttribute(o);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(o);break}c=du(""+c),r.setAttribute(o,c);break;case"action":case"formAction":if(typeof c=="function"){r.setAttribute(o,"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 y=="function"&&(o==="formAction"?(a!=="input"&&kt(r,a,"name",g.name,g,null),kt(r,a,"formEncType",g.formEncType,g,null),kt(r,a,"formMethod",g.formMethod,g,null),kt(r,a,"formTarget",g.formTarget,g,null)):(kt(r,a,"encType",g.encType,g,null),kt(r,a,"method",g.method,g,null),kt(r,a,"target",g.target,g,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(o);break}c=du(""+c),r.setAttribute(o,c);break;case"onClick":c!=null&&(r.onclick=Wr);break;case"onScroll":c!=null&&at("scroll",r);break;case"onScrollEnd":c!=null&&at("scrollend",r);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(o=c.__html,o!=null){if(g.children!=null)throw Error(i(60));r.innerHTML=o}}break;case"multiple":r.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":r.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){r.removeAttribute("xlink:href");break}o=du(""+c),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(o,""+c):r.removeAttribute(o);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":c&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(o,""):r.removeAttribute(o);break;case"capture":case"download":c===!0?r.setAttribute(o,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(o,c):r.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?r.setAttribute(o,c):r.removeAttribute(o);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?r.removeAttribute(o):r.setAttribute(o,c);break;case"popover":at("beforetoggle",r),at("toggle",r),cl(r,"popover",c);break;case"xlinkActuate":Sr(r,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":Sr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":Sr(r,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":Sr(r,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":Sr(r,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":Sr(r,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":Sr(r,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":Sr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":Sr(r,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":cl(r,"is",c);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=Kv.get(o)||o,cl(r,o,c))}}function Fh(r,a,o,c,g,y){switch(o){case"style":np(r,c,y);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(o=c.__html,o!=null){if(g.children!=null)throw Error(i(60));r.innerHTML=o}}break;case"children":typeof c=="string"?dl(r,c):(typeof c=="number"||typeof c=="bigint")&&dl(r,""+c);break;case"onScroll":c!=null&&at("scroll",r);break;case"onScrollEnd":c!=null&&at("scrollend",r);break;case"onClick":c!=null&&(r.onclick=Wr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!su.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(g=o.endsWith("Capture"),a=o.slice(2,g?o.length-7:void 0),y=r[bn]||null,y=y!=null?y[o]:null,typeof y=="function"&&r.removeEventListener(a,y,g),typeof c=="function")){typeof y!="function"&&y!==null&&(o in r?r[o]=null:r.hasAttribute(o)&&r.removeAttribute(o)),r.addEventListener(a,c,g);break e}o in r?r[o]=c:c===!0?r.setAttribute(o,""):cl(r,o,c)}}}function vn(r,a,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":at("error",r),at("load",r);var c=!1,g=!1,y;for(y in o)if(o.hasOwnProperty(y)){var k=o[y];if(k!=null)switch(y){case"src":c=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:kt(r,a,y,k,o,null)}}g&&kt(r,a,"srcSet",o.srcSet,o,null),c&&kt(r,a,"src",o.src,o,null);return;case"input":at("invalid",r);var O=y=k=g=null,K=null,le=null;for(c in o)if(o.hasOwnProperty(c)){var he=o[c];if(he!=null)switch(c){case"name":g=he;break;case"type":k=he;break;case"checked":K=he;break;case"defaultChecked":le=he;break;case"value":y=he;break;case"defaultValue":O=he;break;case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(i(137,a));break;default:kt(r,a,c,he,o,null)}}hu(r,y,O,K,le,k,g,!1);return;case"select":at("invalid",r),c=k=y=null;for(g in o)if(o.hasOwnProperty(g)&&(O=o[g],O!=null))switch(g){case"value":y=O;break;case"defaultValue":k=O;break;case"multiple":c=O;default:kt(r,a,g,O,o,null)}a=y,o=k,r.multiple=!!c,a!=null?Jr(r,!!c,a,!1):o!=null&&Jr(r,!!c,o,!0);return;case"textarea":at("invalid",r),y=g=c=null;for(k in o)if(o.hasOwnProperty(k)&&(O=o[k],O!=null))switch(k){case"value":c=O;break;case"defaultValue":g=O;break;case"children":y=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(i(91));break;default:kt(r,a,k,O,o,null)}ep(r,c,g,y);return;case"option":for(K in o)o.hasOwnProperty(K)&&(c=o[K],c!=null)&&(K==="selected"?r.selected=c&&typeof c!="function"&&typeof c!="symbol":kt(r,a,K,c,o,null));return;case"dialog":at("beforetoggle",r),at("toggle",r),at("cancel",r),at("close",r);break;case"iframe":case"object":at("load",r);break;case"video":case"audio":for(c=0;c<rs.length;c++)at(rs[c],r);break;case"image":at("error",r),at("load",r);break;case"details":at("toggle",r);break;case"embed":case"source":case"link":at("error",r),at("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(le in o)if(o.hasOwnProperty(le)&&(c=o[le],c!=null))switch(le){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:kt(r,a,le,c,o,null)}return;default:if(tf(a)){for(he in o)o.hasOwnProperty(he)&&(c=o[he],c!==void 0&&Fh(r,a,he,c,o,void 0));return}}for(O in o)o.hasOwnProperty(O)&&(c=o[O],c!=null&&kt(r,a,O,c,o,null))}function Ex(r,a,o,c){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,y=null,k=null,O=null,K=null,le=null,he=null;for(ue in o){var pe=o[ue];if(o.hasOwnProperty(ue)&&pe!=null)switch(ue){case"checked":break;case"value":break;case"defaultValue":K=pe;default:c.hasOwnProperty(ue)||kt(r,a,ue,null,c,pe)}}for(var oe in c){var ue=c[oe];if(pe=o[oe],c.hasOwnProperty(oe)&&(ue!=null||pe!=null))switch(oe){case"type":y=ue;break;case"name":g=ue;break;case"checked":le=ue;break;case"defaultChecked":he=ue;break;case"value":k=ue;break;case"defaultValue":O=ue;break;case"children":case"dangerouslySetInnerHTML":if(ue!=null)throw Error(i(137,a));break;default:ue!==pe&&kt(r,a,oe,ue,c,pe)}}Aa(r,k,O,K,le,he,y,g);return;case"select":ue=k=O=oe=null;for(y in o)if(K=o[y],o.hasOwnProperty(y)&&K!=null)switch(y){case"value":break;case"multiple":ue=K;default:c.hasOwnProperty(y)||kt(r,a,y,null,c,K)}for(g in c)if(y=c[g],K=o[g],c.hasOwnProperty(g)&&(y!=null||K!=null))switch(g){case"value":oe=y;break;case"defaultValue":O=y;break;case"multiple":k=y;default:y!==K&&kt(r,a,g,y,c,K)}a=O,o=k,c=ue,oe!=null?Jr(r,!!o,oe,!1):!!c!=!!o&&(a!=null?Jr(r,!!o,a,!0):Jr(r,!!o,o?[]:"",!1));return;case"textarea":ue=oe=null;for(O in o)if(g=o[O],o.hasOwnProperty(O)&&g!=null&&!c.hasOwnProperty(O))switch(O){case"value":break;case"children":break;default:kt(r,a,O,null,c,g)}for(k in c)if(g=c[k],y=o[k],c.hasOwnProperty(k)&&(g!=null||y!=null))switch(k){case"value":oe=g;break;case"defaultValue":ue=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(i(91));break;default:g!==y&&kt(r,a,k,g,c,y)}Wm(r,oe,ue);return;case"option":for(var De in o)oe=o[De],o.hasOwnProperty(De)&&oe!=null&&!c.hasOwnProperty(De)&&(De==="selected"?r.selected=!1:kt(r,a,De,null,c,oe));for(K in c)oe=c[K],ue=o[K],c.hasOwnProperty(K)&&oe!==ue&&(oe!=null||ue!=null)&&(K==="selected"?r.selected=oe&&typeof oe!="function"&&typeof oe!="symbol":kt(r,a,K,oe,c,ue));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 Ve in o)oe=o[Ve],o.hasOwnProperty(Ve)&&oe!=null&&!c.hasOwnProperty(Ve)&&kt(r,a,Ve,null,c,oe);for(le in c)if(oe=c[le],ue=o[le],c.hasOwnProperty(le)&&oe!==ue&&(oe!=null||ue!=null))switch(le){case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(i(137,a));break;default:kt(r,a,le,oe,c,ue)}return;default:if(tf(a)){for(var Et in o)oe=o[Et],o.hasOwnProperty(Et)&&oe!==void 0&&!c.hasOwnProperty(Et)&&Fh(r,a,Et,void 0,c,oe);for(he in c)oe=c[he],ue=o[he],!c.hasOwnProperty(he)||oe===ue||oe===void 0&&ue===void 0||Fh(r,a,he,oe,c,ue);return}}for(var re in o)oe=o[re],o.hasOwnProperty(re)&&oe!=null&&!c.hasOwnProperty(re)&&kt(r,a,re,null,c,oe);for(pe in c)oe=c[pe],ue=o[pe],!c.hasOwnProperty(pe)||oe===ue||oe==null&&ue==null||kt(r,a,pe,oe,c,ue)}function rg(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Ax(){if(typeof performance.getEntriesByType=="function"){for(var r=0,a=0,o=performance.getEntriesByType("resource"),c=0;c<o.length;c++){var g=o[c],y=g.transferSize,k=g.initiatorType,O=g.duration;if(y&&O&&rg(k)){for(k=0,O=g.responseEnd,c+=1;c<o.length;c++){var K=o[c],le=K.startTime;if(le>O)break;var he=K.transferSize,pe=K.initiatorType;he&&rg(pe)&&(K=K.responseEnd,k+=he*(K<O?1:(O-le)/(K-le)))}if(--c,a+=8*(y+k)/(g.duration/1e3),r++,10<r)break}}if(0<r)return a/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var Vh=null,Yh=null;function s0(r){return r.nodeType===9?r:r.ownerDocument}function ig(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ag(r,a){if(r===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&a==="foreignObject"?0:r}function Gh(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var $h=null;function Cx(){var r=window.event;return r&&r.type==="popstate"?r===$h?!1:($h=r,!0):($h=null,!1)}var lg=typeof setTimeout=="function"?setTimeout:void 0,Tx=typeof clearTimeout=="function"?clearTimeout:void 0,og=typeof Promise=="function"?Promise:void 0,Mx=typeof queueMicrotask=="function"?queueMicrotask:typeof og<"u"?function(r){return og.resolve(null).then(r).catch(zx)}:lg;function zx(r){setTimeout(function(){throw r})}function ea(r){return r==="head"}function sg(r,a){var o=a,c=0;do{var g=o.nextSibling;if(r.removeChild(o),g&&g.nodeType===8)if(o=g.data,o==="/$"||o==="/&"){if(c===0){r.removeChild(g),Yl(a);return}c--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")c++;else if(o==="html")as(r.ownerDocument.documentElement);else if(o==="head"){o=r.ownerDocument.head,as(o);for(var y=o.firstChild;y;){var k=y.nextSibling,O=y.nodeName;y[ka]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&y.rel.toLowerCase()==="stylesheet"||o.removeChild(y),y=k}}else o==="body"&&as(r.ownerDocument.body);o=g}while(o);Yl(a)}function ug(r,a){var o=r;r=0;do{var c=o.nextSibling;if(o.nodeType===1?a?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(a?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),c&&c.nodeType===8)if(o=c.data,o==="/$"){if(r===0)break;r--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||r++;o=c}while(o)}function Xh(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var o=a;switch(a=a.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":Xh(o),So(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}r.removeChild(o)}}function Nx(r,a,o,c){for(;r.nodeType===1;){var g=o;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!c&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(c){if(!r[ka])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(y=r.getAttribute("rel"),y==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(y!==g.rel||r.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||r.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||r.getAttribute("title")!==(g.title==null?null:g.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(y=r.getAttribute("src"),(y!==(g.src==null?null:g.src)||r.getAttribute("type")!==(g.type==null?null:g.type)||r.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&y&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){var y=g.name==null?null:""+g.name;if(g.type==="hidden"&&r.getAttribute("name")===y)return r}else return r;if(r=gr(r.nextSibling),r===null)break}return null}function Dx(r,a,o){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!o||(r=gr(r.nextSibling),r===null))return null;return r}function cg(r,a){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=gr(r.nextSibling),r===null))return null;return r}function Ph(r){return r.data==="$?"||r.data==="$~"}function Zh(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function _x(r,a){var o=r.ownerDocument;if(r.data==="$~")r._reactRetry=a;else if(r.data!=="$?"||o.readyState!=="loading")a();else{var c=function(){a(),o.removeEventListener("DOMContentLoaded",c)};o.addEventListener("DOMContentLoaded",c),r._reactRetry=c}}function gr(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return r}var Qh=null;function fg(r){r=r.nextSibling;for(var a=0;r;){if(r.nodeType===8){var o=r.data;if(o==="/$"||o==="/&"){if(a===0)return gr(r.nextSibling);a--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||a++}r=r.nextSibling}return null}function hg(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var o=r.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(a===0)return r;a--}else o!=="/$"&&o!=="/&"||a++}r=r.previousSibling}return null}function dg(r,a,o){switch(a=s0(o),r){case"html":if(r=a.documentElement,!r)throw Error(i(452));return r;case"head":if(r=a.head,!r)throw Error(i(453));return r;case"body":if(r=a.body,!r)throw Error(i(454));return r;default:throw Error(i(451))}}function as(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);So(r)}var yr=new Map,mg=new Set;function u0(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var pi=Y.d;Y.d={f:Ox,r:Rx,D:Bx,C:Lx,L:Hx,m:jx,X:Ix,S:qx,M:Ux};function Ox(){var r=pi.f(),a=e0();return r||a}function Rx(r){var a=Oi(r);a!==null&&a.tag===5&&a.type==="form"?D4(a):pi.r(r)}var Ul=typeof document>"u"?null:document;function pg(r,a,o){var c=Ul;if(c&&typeof a=="string"&&a){var g=Bn(a);g='link[rel="'+r+'"][href="'+g+'"]',typeof o=="string"&&(g+='[crossorigin="'+o+'"]'),mg.has(g)||(mg.add(g),r={rel:r,crossOrigin:o,href:a},c.querySelector(g)===null&&(a=c.createElement("link"),vn(a,"link",r),Pt(a),c.head.appendChild(a)))}}function Bx(r){pi.D(r),pg("dns-prefetch",r,null)}function Lx(r,a){pi.C(r,a),pg("preconnect",r,a)}function Hx(r,a,o){pi.L(r,a,o);var c=Ul;if(c&&r&&a){var g='link[rel="preload"][as="'+Bn(a)+'"]';a==="image"&&o&&o.imageSrcSet?(g+='[imagesrcset="'+Bn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(g+='[imagesizes="'+Bn(o.imageSizes)+'"]')):g+='[href="'+Bn(r)+'"]';var y=g;switch(a){case"style":y=Fl(r);break;case"script":y=Vl(r)}yr.has(y)||(r=m({rel:"preload",href:a==="image"&&o&&o.imageSrcSet?void 0:r,as:a},o),yr.set(y,r),c.querySelector(g)!==null||a==="style"&&c.querySelector(ls(y))||a==="script"&&c.querySelector(os(y))||(a=c.createElement("link"),vn(a,"link",r),Pt(a),c.head.appendChild(a)))}}function jx(r,a){pi.m(r,a);var o=Ul;if(o&&r){var c=a&&typeof a.as=="string"?a.as:"script",g='link[rel="modulepreload"][as="'+Bn(c)+'"][href="'+Bn(r)+'"]',y=g;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=Vl(r)}if(!yr.has(y)&&(r=m({rel:"modulepreload",href:r},a),yr.set(y,r),o.querySelector(g)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(os(y)))return}c=o.createElement("link"),vn(c,"link",r),Pt(c),o.head.appendChild(c)}}}function qx(r,a,o){pi.S(r,a,o);var c=Ul;if(c&&r){var g=Bi(c).hoistableStyles,y=Fl(r);a=a||"default";var k=g.get(y);if(!k){var O={loading:0,preload:null};if(k=c.querySelector(ls(y)))O.loading=5;else{r=m({rel:"stylesheet",href:r,"data-precedence":a},o),(o=yr.get(y))&&Kh(r,o);var K=k=c.createElement("link");Pt(K),vn(K,"link",r),K._p=new Promise(function(le,he){K.onload=le,K.onerror=he}),K.addEventListener("load",function(){O.loading|=1}),K.addEventListener("error",function(){O.loading|=2}),O.loading|=4,c0(k,a,c)}k={type:"stylesheet",instance:k,count:1,state:O},g.set(y,k)}}}function Ix(r,a){pi.X(r,a);var o=Ul;if(o&&r){var c=Bi(o).hoistableScripts,g=Vl(r),y=c.get(g);y||(y=o.querySelector(os(g)),y||(r=m({src:r,async:!0},a),(a=yr.get(g))&&Jh(r,a),y=o.createElement("script"),Pt(y),vn(y,"link",r),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},c.set(g,y))}}function Ux(r,a){pi.M(r,a);var o=Ul;if(o&&r){var c=Bi(o).hoistableScripts,g=Vl(r),y=c.get(g);y||(y=o.querySelector(os(g)),y||(r=m({src:r,async:!0,type:"module"},a),(a=yr.get(g))&&Jh(r,a),y=o.createElement("script"),Pt(y),vn(y,"link",r),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},c.set(g,y))}}function gg(r,a,o,c){var g=(g=be.current)?u0(g):null;if(!g)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(a=Fl(o.href),o=Bi(g).hoistableStyles,c=o.get(a),c||(c={type:"style",instance:null,count:0,state:null},o.set(a,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){r=Fl(o.href);var y=Bi(g).hoistableStyles,k=y.get(r);if(k||(g=g.ownerDocument||g,k={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(r,k),(y=g.querySelector(ls(r)))&&!y._p&&(k.instance=y,k.state.loading=5),yr.has(r)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},yr.set(r,o),y||Fx(g,r,o,k.state))),a&&c===null)throw Error(i(528,""));return k}if(a&&c!==null)throw Error(i(529,""));return null;case"script":return a=o.async,o=o.src,typeof o=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Vl(o),o=Bi(g).hoistableScripts,c=o.get(a),c||(c={type:"script",instance:null,count:0,state:null},o.set(a,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function Fl(r){return'href="'+Bn(r)+'"'}function ls(r){return'link[rel="stylesheet"]['+r+"]"}function yg(r){return m({},r,{"data-precedence":r.precedence,precedence:null})}function Fx(r,a,o,c){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?c.loading=1:(a=r.createElement("link"),c.preload=a,a.addEventListener("load",function(){return c.loading|=1}),a.addEventListener("error",function(){return c.loading|=2}),vn(a,"link",o),Pt(a),r.head.appendChild(a))}function Vl(r){return'[src="'+Bn(r)+'"]'}function os(r){return"script[async]"+r}function vg(r,a,o){if(a.count++,a.instance===null)switch(a.type){case"style":var c=r.querySelector('style[data-href~="'+Bn(o.href)+'"]');if(c)return a.instance=c,Pt(c),c;var g=m({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return c=(r.ownerDocument||r).createElement("style"),Pt(c),vn(c,"style",g),c0(c,o.precedence,r),a.instance=c;case"stylesheet":g=Fl(o.href);var y=r.querySelector(ls(g));if(y)return a.state.loading|=4,a.instance=y,Pt(y),y;c=yg(o),(g=yr.get(g))&&Kh(c,g),y=(r.ownerDocument||r).createElement("link"),Pt(y);var k=y;return k._p=new Promise(function(O,K){k.onload=O,k.onerror=K}),vn(y,"link",c),a.state.loading|=4,c0(y,o.precedence,r),a.instance=y;case"script":return y=Vl(o.src),(g=r.querySelector(os(y)))?(a.instance=g,Pt(g),g):(c=o,(g=yr.get(y))&&(c=m({},o),Jh(c,g)),r=r.ownerDocument||r,g=r.createElement("script"),Pt(g),vn(g,"link",c),r.head.appendChild(g),a.instance=g);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(c=a.instance,a.state.loading|=4,c0(c,o.precedence,r));return a.instance}function c0(r,a,o){for(var c=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=c.length?c[c.length-1]:null,y=g,k=0;k<c.length;k++){var O=c[k];if(O.dataset.precedence===a)y=O;else if(y!==g)break}y?y.parentNode.insertBefore(r,y.nextSibling):(a=o.nodeType===9?o.head:o,a.insertBefore(r,a.firstChild))}function Kh(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function Jh(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var f0=null;function xg(r,a,o){if(f0===null){var c=new Map,g=f0=new Map;g.set(o,c)}else g=f0,c=g.get(o),c||(c=new Map,g.set(o,c));if(c.has(r))return c;for(c.set(r,null),o=o.getElementsByTagName(r),g=0;g<o.length;g++){var y=o[g];if(!(y[ka]||y[sn]||r==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var k=y.getAttribute(a)||"";k=r+k;var O=c.get(k);O?O.push(y):c.set(k,[y])}}return c}function bg(r,a,o){r=r.ownerDocument||r,r.head.insertBefore(o,a==="title"?r.querySelector("head > title"):null)}function Vx(r,a,o){if(o===1||a.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(r=a.disabled,typeof a.precedence=="string"&&r==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function wg(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function Yx(r,a,o,c){if(o.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var g=Fl(c.href),y=a.querySelector(ls(g));if(y){a=y._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=h0.bind(r),a.then(r,r)),o.state.loading|=4,o.instance=y,Pt(y);return}y=a.ownerDocument||a,c=yg(c),(g=yr.get(g))&&Kh(c,g),y=y.createElement("link"),Pt(y);var k=y;k._p=new Promise(function(O,K){k.onload=O,k.onerror=K}),vn(y,"link",c),o.instance=y}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(o,a),(a=o.state.preload)&&(o.state.loading&3)===0&&(r.count++,o=h0.bind(r),a.addEventListener("load",o),a.addEventListener("error",o))}}var Wh=0;function Gx(r,a){return r.stylesheets&&r.count===0&&m0(r,r.stylesheets),0<r.count||0<r.imgCount?function(o){var c=setTimeout(function(){if(r.stylesheets&&m0(r,r.stylesheets),r.unsuspend){var y=r.unsuspend;r.unsuspend=null,y()}},6e4+a);0<r.imgBytes&&Wh===0&&(Wh=62500*Ax());var g=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&m0(r,r.stylesheets),r.unsuspend)){var y=r.unsuspend;r.unsuspend=null,y()}},(r.imgBytes>Wh?50:800)+a);return r.unsuspend=o,function(){r.unsuspend=null,clearTimeout(c),clearTimeout(g)}}:null}function h0(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)m0(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var d0=null;function m0(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,d0=new Map,a.forEach($x,r),d0=null,h0.call(r))}function $x(r,a){if(!(a.state.loading&4)){var o=d0.get(r);if(o)var c=o.get(null);else{o=new Map,d0.set(r,o);for(var g=r.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<g.length;y++){var k=g[y];(k.nodeName==="LINK"||k.getAttribute("media")!=="not all")&&(o.set(k.dataset.precedence,k),c=k)}c&&o.set(null,c)}g=a.instance,k=g.getAttribute("data-precedence"),y=o.get(k)||c,y===c&&o.set(null,g),o.set(k,g),this.count++,c=h0.bind(this),g.addEventListener("load",c),g.addEventListener("error",c),y?y.parentNode.insertBefore(g,y.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(g,r.firstChild)),a.state.loading|=4}}var ss={$$typeof:T,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function Xx(r,a,o,c,g,y,k,O,K){this.tag=1,this.containerInfo=r,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=Sa(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sa(0),this.hiddenUpdates=Sa(null),this.identifierPrefix=c,this.onUncaughtError=g,this.onCaughtError=y,this.onRecoverableError=k,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=K,this.incompleteTransitions=new Map}function Sg(r,a,o,c,g,y,k,O,K,le,he,pe){return r=new Xx(r,a,o,k,K,le,he,pe,O),a=1,y===!0&&(a|=24),y=Zn(3,null,null,a),r.current=y,y.stateNode=r,a=_f(),a.refCount++,r.pooledCache=a,a.refCount++,y.memoizedState={element:c,isDehydrated:o,cache:a},Lf(y),r}function kg(r){return r?(r=bl,r):bl}function Eg(r,a,o,c,g,y){g=kg(g),c.context===null?c.context=g:c.pendingContext=g,c=Vi(a),c.payload={element:o},y=y===void 0?null:y,y!==null&&(c.callback=y),o=Yi(r,c,a),o!==null&&(Un(o,r,a),Io(o,r,a))}function Ag(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var o=r.retryLane;r.retryLane=o!==0&&o<a?o:a}}function ed(r,a){Ag(r,a),(r=r.alternate)&&Ag(r,a)}function Cg(r){if(r.tag===13||r.tag===31){var a=za(r,67108864);a!==null&&Un(a,r,67108864),ed(r,67108864)}}function Tg(r){if(r.tag===13||r.tag===31){var a=er();a=Ni(a);var o=za(r,a);o!==null&&Un(o,r,a),ed(r,a)}}var p0=!0;function Px(r,a,o,c){var g=L.T;L.T=null;var y=Y.p;try{Y.p=2,td(r,a,o,c)}finally{Y.p=y,L.T=g}}function Zx(r,a,o,c){var g=L.T;L.T=null;var y=Y.p;try{Y.p=8,td(r,a,o,c)}finally{Y.p=y,L.T=g}}function td(r,a,o,c){if(p0){var g=nd(c);if(g===null)Uh(r,a,c,g0,o),zg(r,c);else if(Kx(g,r,a,o,c))c.stopPropagation();else if(zg(r,c),a&4&&-1<Qx.indexOf(r)){for(;g!==null;){var y=Oi(g);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var k=xt(y.pendingLanes);if(k!==0){var O=y;for(O.pendingLanes|=2,O.entangledLanes|=2;k;){var K=1<<31-dt(k);O.entanglements[1]|=K,k&=~K}Hr(y),(gt&6)===0&&(Ju=Ot()+500,ns(0))}}break;case 31:case 13:O=za(y,2),O!==null&&Un(O,y,2),e0(),ed(y,2)}if(y=nd(c),y===null&&Uh(r,a,c,g0,o),y===g)break;g=y}g!==null&&c.stopPropagation()}else Uh(r,a,c,null,o)}}function nd(r){return r=rf(r),rd(r)}var g0=null;function rd(r){if(g0=null,r=_i(r),r!==null){var a=s(r);if(a===null)r=null;else{var o=a.tag;if(o===13){if(r=u(a),r!==null)return r;r=null}else if(o===31){if(r=f(a),r!==null)return r;r=null}else if(o===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return g0=r,null}function Mg(r){switch(r){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(On()){case fe:return 2;case Ee:return 8;case Re:case $e:return 32;case ot:return 268435456;default:return 32}default:return 32}}var id=!1,ta=null,na=null,ra=null,us=new Map,cs=new Map,ia=[],Qx="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 zg(r,a){switch(r){case"focusin":case"focusout":ta=null;break;case"dragenter":case"dragleave":na=null;break;case"mouseover":case"mouseout":ra=null;break;case"pointerover":case"pointerout":us.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":cs.delete(a.pointerId)}}function fs(r,a,o,c,g,y){return r===null||r.nativeEvent!==y?(r={blockedOn:a,domEventName:o,eventSystemFlags:c,nativeEvent:y,targetContainers:[g]},a!==null&&(a=Oi(a),a!==null&&Cg(a)),r):(r.eventSystemFlags|=c,a=r.targetContainers,g!==null&&a.indexOf(g)===-1&&a.push(g),r)}function Kx(r,a,o,c,g){switch(a){case"focusin":return ta=fs(ta,r,a,o,c,g),!0;case"dragenter":return na=fs(na,r,a,o,c,g),!0;case"mouseover":return ra=fs(ra,r,a,o,c,g),!0;case"pointerover":var y=g.pointerId;return us.set(y,fs(us.get(y)||null,r,a,o,c,g)),!0;case"gotpointercapture":return y=g.pointerId,cs.set(y,fs(cs.get(y)||null,r,a,o,c,g)),!0}return!1}function Ng(r){var a=_i(r.target);if(a!==null){var o=s(a);if(o!==null){if(a=o.tag,a===13){if(a=u(o),a!==null){r.blockedOn=a,sl(r.priority,function(){Tg(o)});return}}else if(a===31){if(a=f(o),a!==null){r.blockedOn=a,sl(r.priority,function(){Tg(o)});return}}else if(a===3&&o.stateNode.current.memoizedState.isDehydrated){r.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}r.blockedOn=null}function y0(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var o=nd(r.nativeEvent);if(o===null){o=r.nativeEvent;var c=new o.constructor(o.type,o);nf=c,o.target.dispatchEvent(c),nf=null}else return a=Oi(o),a!==null&&Cg(a),r.blockedOn=o,!1;a.shift()}return!0}function Dg(r,a,o){y0(r)&&o.delete(a)}function Jx(){id=!1,ta!==null&&y0(ta)&&(ta=null),na!==null&&y0(na)&&(na=null),ra!==null&&y0(ra)&&(ra=null),us.forEach(Dg),cs.forEach(Dg)}function v0(r,a){r.blockedOn===a&&(r.blockedOn=null,id||(id=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Jx)))}var x0=null;function _g(r){x0!==r&&(x0=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){x0===r&&(x0=null);for(var a=0;a<r.length;a+=3){var o=r[a],c=r[a+1],g=r[a+2];if(typeof c!="function"){if(rd(c||o)===null)continue;break}var y=Oi(o);y!==null&&(r.splice(a,3),a-=3,nh(y,{pending:!0,data:g,method:o.method,action:c},c,g))}}))}function Yl(r){function a(K){return v0(K,r)}ta!==null&&v0(ta,r),na!==null&&v0(na,r),ra!==null&&v0(ra,r),us.forEach(a),cs.forEach(a);for(var o=0;o<ia.length;o++){var c=ia[o];c.blockedOn===r&&(c.blockedOn=null)}for(;0<ia.length&&(o=ia[0],o.blockedOn===null);)Ng(o),o.blockedOn===null&&ia.shift();if(o=(r.ownerDocument||r).$$reactFormReplay,o!=null)for(c=0;c<o.length;c+=3){var g=o[c],y=o[c+1],k=g[bn]||null;if(typeof y=="function")k||_g(o);else if(k){var O=null;if(y&&y.hasAttribute("formAction")){if(g=y,k=y[bn]||null)O=k.formAction;else if(rd(g)!==null)continue}else O=k.action;typeof O=="function"?o[c+1]=O:(o.splice(c,3),c-=3),_g(o)}}}function Og(){function r(y){y.canIntercept&&y.info==="react-transition"&&y.intercept({handler:function(){return new Promise(function(k){return g=k})},focusReset:"manual",scroll:"manual"})}function a(){g!==null&&(g(),g=null),c||setTimeout(o,20)}function o(){if(!c&&!navigation.transition){var y=navigation.currentEntry;y&&y.url!=null&&navigation.navigate(y.url,{state:y.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,g=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(o,100),function(){c=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),g!==null&&(g(),g=null)}}}function ad(r){this._internalRoot=r}b0.prototype.render=ad.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(i(409));var o=a.current,c=er();Eg(o,c,r,a,null,null)},b0.prototype.unmount=ad.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;Eg(r.current,2,null,r,null,null),e0(),a[Qr]=null}};function b0(r){this._internalRoot=r}b0.prototype.unstable_scheduleHydration=function(r){if(r){var a=on();r={blockedOn:null,target:r,priority:a};for(var o=0;o<ia.length&&a!==0&&a<ia[o].priority;o++);ia.splice(o,0,r),o===0&&Ng(r)}};var Rg=t.version;if(Rg!=="19.2.6")throw Error(i(527,Rg,"19.2.6"));Y.findDOMNode=function(r){var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=d(a),r=r!==null?p(r):null,r=r===null?null:r.stateNode,r};var Wx={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var w0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!w0.isDisabled&&w0.supportsFiber)try{an=w0.inject(Wx),Rt=w0}catch{}}return ds.createRoot=function(r,a){if(!l(r))throw Error(i(299));var o=!1,c="",g=U4,y=F4,k=V4;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(g=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(k=a.onRecoverableError)),a=Sg(r,1,!1,null,null,o,c,null,g,y,k,Og),r[Qr]=a.current,Ih(r),new ad(a)},ds.hydrateRoot=function(r,a,o){if(!l(r))throw Error(i(299));var c=!1,g="",y=U4,k=F4,O=V4,K=null;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(g=o.identifierPrefix),o.onUncaughtError!==void 0&&(y=o.onUncaughtError),o.onCaughtError!==void 0&&(k=o.onCaughtError),o.onRecoverableError!==void 0&&(O=o.onRecoverableError),o.formState!==void 0&&(K=o.formState)),a=Sg(r,1,!0,a,o??null,c,g,K,y,k,O,Og),a.context=kg(null),o=a.current,c=er(),c=Ni(c),g=Vi(c),g.callback=null,Yi(o,g,c),o=c,a.current.lanes=o,wr(a,o),Hr(a),r[Qr]=a.current,Ih(r),new b0(a)},ds.version="19.2.6",ds}var Yg;function ub(){if(Yg)return sd.exports;Yg=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),sd.exports=sb(),sd.exports}var cb=ub();async function cn(e,t){const n=await fetch(e,{...t,headers:{"Content-Type":"application/json",...t?.headers||{}}});if(!n.ok){const i=await n.json().catch(()=>({}));throw new Error(i.error||n.statusText)}return n.json()}function fa(e){return e instanceof Error?e.message:"Unknown error."}class $s{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}$s.prototype.normal={};$s.prototype.property={};$s.prototype.space=void 0;function G6(e,t){const n={},i={};for(const l of e)Object.assign(n,l.property),Object.assign(i,l.normal);return new $s(n,i,t)}function zs(e){return e.toLowerCase()}class Gn{constructor(t,n){this.attribute=n,this.property=t}}Gn.prototype.attribute="";Gn.prototype.booleanish=!1;Gn.prototype.boolean=!1;Gn.prototype.commaOrSpaceSeparated=!1;Gn.prototype.commaSeparated=!1;Gn.prototype.defined=!1;Gn.prototype.mustUseProperty=!1;Gn.prototype.number=!1;Gn.prototype.overloadedBoolean=!1;Gn.prototype.property="";Gn.prototype.spaceSeparated=!1;Gn.prototype.space=void 0;let fb=0;const Je=nl(),Wt=nl(),l1=nl(),Te=nl(),Nt=nl(),Jl=nl(),tr=nl();function nl(){return 2**++fb}const o1=Object.freeze(Object.defineProperty({__proto__:null,boolean:Je,booleanish:Wt,commaOrSpaceSeparated:tr,commaSeparated:Jl,number:Te,overloadedBoolean:l1,spaceSeparated:Nt},Symbol.toStringTag,{value:"Module"})),hd=Object.keys(o1);class W1 extends Gn{constructor(t,n,i,l){let s=-1;if(super(t,n),Gg(this,"space",l),typeof i=="number")for(;++s<hd.length;){const u=hd[s];Gg(this,hd[s],(i&o1[u])===o1[u])}}}W1.prototype.defined=!0;function Gg(e,t,n){n&&(e[t]=n)}function po(e){const t={},n={};for(const[i,l]of Object.entries(e.properties)){const s=new W1(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,n[zs(i)]=i,n[zs(s.attribute)]=i}return new $s(t,n,e.space)}const $6=po({properties:{ariaActiveDescendant:null,ariaAtomic:Wt,ariaAutoComplete:null,ariaBusy:Wt,ariaChecked:Wt,ariaColCount:Te,ariaColIndex:Te,ariaColSpan:Te,ariaControls:Nt,ariaCurrent:null,ariaDescribedBy:Nt,ariaDetails:null,ariaDisabled:Wt,ariaDropEffect:Nt,ariaErrorMessage:null,ariaExpanded:Wt,ariaFlowTo:Nt,ariaGrabbed:Wt,ariaHasPopup:null,ariaHidden:Wt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Nt,ariaLevel:Te,ariaLive:null,ariaModal:Wt,ariaMultiLine:Wt,ariaMultiSelectable:Wt,ariaOrientation:null,ariaOwns:Nt,ariaPlaceholder:null,ariaPosInSet:Te,ariaPressed:Wt,ariaReadOnly:Wt,ariaRelevant:null,ariaRequired:Wt,ariaRoleDescription:Nt,ariaRowCount:Te,ariaRowIndex:Te,ariaRowSpan:Te,ariaSelected:Wt,ariaSetSize:Te,ariaSort:null,ariaValueMax:Te,ariaValueMin:Te,ariaValueNow:Te,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function X6(e,t){return t in e?e[t]:t}function P6(e,t){return X6(e,t.toLowerCase())}const hb=po({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Jl,acceptCharset:Nt,accessKey:Nt,action:null,allow:null,allowFullScreen:Je,allowPaymentRequest:Je,allowUserMedia:Je,alt:null,as:null,async:Je,autoCapitalize:null,autoComplete:Nt,autoFocus:Je,autoPlay:Je,blocking:Nt,capture:null,charSet:null,checked:Je,cite:null,className:Nt,cols:Te,colSpan:null,content:null,contentEditable:Wt,controls:Je,controlsList:Nt,coords:Te|Jl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Je,defer:Je,dir:null,dirName:null,disabled:Je,download:l1,draggable:Wt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Je,formTarget:null,headers:Nt,height:Te,hidden:l1,high:Te,href:null,hrefLang:null,htmlFor:Nt,httpEquiv:Nt,id:null,imageSizes:null,imageSrcSet:null,inert:Je,inputMode:null,integrity:null,is:null,isMap:Je,itemId:null,itemProp:Nt,itemRef:Nt,itemScope:Je,itemType:Nt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Je,low:Te,manifest:null,max:null,maxLength:Te,media:null,method:null,min:null,minLength:Te,multiple:Je,muted:Je,name:null,nonce:null,noModule:Je,noValidate:Je,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:Je,optimum:Te,pattern:null,ping:Nt,placeholder:null,playsInline:Je,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Je,referrerPolicy:null,rel:Nt,required:Je,reversed:Je,rows:Te,rowSpan:Te,sandbox:Nt,scope:null,scoped:Je,seamless:Je,selected:Je,shadowRootClonable:Je,shadowRootDelegatesFocus:Je,shadowRootMode:null,shape:null,size:Te,sizes:null,slot:null,span:Te,spellCheck:Wt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Te,step:null,style:null,tabIndex:Te,target:null,title:null,translate:null,type:null,typeMustMatch:Je,useMap:null,value:Wt,width:Te,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Nt,axis:null,background:null,bgColor:null,border:Te,borderColor:null,bottomMargin:Te,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Je,declare:Je,event:null,face:null,frame:null,frameBorder:null,hSpace:Te,leftMargin:Te,link:null,longDesc:null,lowSrc:null,marginHeight:Te,marginWidth:Te,noResize:Je,noHref:Je,noShade:Je,noWrap:Je,object:null,profile:null,prompt:null,rev:null,rightMargin:Te,rules:null,scheme:null,scrolling:Wt,standby:null,summary:null,text:null,topMargin:Te,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Te,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Je,disableRemotePlayback:Je,prefix:null,property:null,results:Te,security:null,unselectable:null},space:"html",transform:P6}),db=po({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:tr,accentHeight:Te,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Te,amplitude:Te,arabicForm:null,ascent:Te,attributeName:null,attributeType:null,azimuth:Te,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Te,by:null,calcMode:null,capHeight:Te,className:Nt,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:Te,diffuseConstant:Te,direction:null,display:null,dur:null,divisor:Te,dominantBaseline:null,download:Je,dx:null,dy:null,edgeMode:null,editable:null,elevation:Te,enableBackground:null,end:null,event:null,exponent:Te,externalResourcesRequired:null,fill:null,fillOpacity:Te,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:Jl,g2:Jl,glyphName:Jl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Te,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Te,horizOriginX:Te,horizOriginY:Te,id:null,ideographic:Te,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Te,k:Te,k1:Te,k2:Te,k3:Te,k4:Te,kernelMatrix:tr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Te,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:Te,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:Te,overlineThickness:Te,paintOrder:null,panose1:null,path:null,pathLength:Te,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Nt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Te,pointsAtY:Te,pointsAtZ:Te,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tr,rev:tr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tr,requiredFeatures:tr,requiredFonts:tr,requiredFormats:tr,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:Te,specularExponent:Te,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Te,strikethroughThickness:Te,string:null,stroke:null,strokeDashArray:tr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Te,strokeOpacity:Te,strokeWidth:null,style:null,surfaceScale:Te,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tr,tabIndex:Te,tableValues:null,target:null,targetX:Te,targetY:Te,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Te,underlineThickness:Te,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Te,values:null,vAlphabetic:Te,vMathematical:Te,vectorEffect:null,vHanging:Te,vIdeographic:Te,version:null,vertAdvY:Te,vertOriginX:Te,vertOriginY:Te,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Te,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:X6}),Z6=po({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()}}),Q6=po({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:P6}),K6=po({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),mb={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"},pb=/[A-Z]/g,$g=/-[a-z]/g,gb=/^data[-\w.:]+$/i;function J6(e,t){const n=zs(t);let i=t,l=Gn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&gb.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace($g,vb);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!$g.test(s)){let u=s.replace(pb,yb);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}l=W1}return new l(i,t)}function yb(e){return"-"+e.toLowerCase()}function vb(e){return e.charAt(1).toUpperCase()}const W6=G6([$6,hb,Z6,Q6,K6],"html"),xc=G6([$6,db,Z6,Q6,K6],"svg");function Xg(e){const t=[],n=String(e||"");let i=n.indexOf(","),l=0,s=!1;for(;!s;){i===-1&&(i=n.length,s=!0);const u=n.slice(l,i).trim();(u||!s)&&t.push(u),l=i+1,i=n.indexOf(",",l)}return t}function xb(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Pg=/[#.]/g;function bb(e,t){const n=e||"",i={};let l=0,s,u;for(;l<n.length;){Pg.lastIndex=l;const f=Pg.exec(n),h=n.slice(l,f?f.index:n.length);h&&(s?s==="#"?i.id=h:Array.isArray(i.className)?i.className.push(h):i.className=[h]:u=h,l+=h.length),f&&(s=f[0],l++)}return{type:"element",tagName:u||t||"div",properties:i,children:[]}}function Zg(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function wb(e){return e.join(" ").trim()}function e7(e,t,n){const i=n?Ab(n):void 0;function l(s,u,...f){let h;if(s==null){h={type:"root",children:[]};const d=u;f.unshift(d)}else{h=bb(s,t);const d=h.tagName.toLowerCase(),p=i?i.get(d):void 0;if(h.tagName=p||d,Sb(u))f.unshift(u);else for(const[m,v]of Object.entries(u))kb(e,h.properties,m,v)}for(const d of f)s1(h.children,d);return h.type==="element"&&h.tagName==="template"&&(h.content={type:"root",children:h.children},h.children=[]),h}return l}function Sb(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const i of n){const l=t[i];if(l&&typeof l=="object"){if(!Array.isArray(l))return!0;const s=l;for(const u of s)if(typeof u!="number"&&typeof u!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function kb(e,t,n,i){const l=J6(e,n);let s;if(i!=null){if(typeof i=="number"){if(Number.isNaN(i))return;s=i}else typeof i=="boolean"?s=i:typeof i=="string"?l.spaceSeparated?s=Zg(i):l.commaSeparated?s=Xg(i):l.commaOrSpaceSeparated?s=Zg(Xg(i).join(" ")):s=Qg(l,l.property,i):Array.isArray(i)?s=[...i]:s=l.property==="style"?Eb(i):String(i);if(Array.isArray(s)){const u=[];for(const f of s)u.push(Qg(l,l.property,f));s=u}l.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[l.property]=s}}function s1(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)s1(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?s1(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Qg(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||zs(n)===zs(t)))return!0}return n}function Eb(e){const t=[];for(const[n,i]of Object.entries(e))t.push([n,i].join(": "));return t.join("; ")}function Ab(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Cb=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],Tb=e7(W6,"div"),Mb=e7(xc,"g",Cb),dd={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function zb(e,t){return t7(e,{})||{type:"root",children:[]}}function t7(e,t){const n=Nb(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function Nb(e,t){switch(e.nodeType){case 1:return Rb(e,t);case 3:return _b(e);case 8:return Ob(e);case 9:return Kg(e,t);case 10:return Db();case 11:return Kg(e,t);default:return}}function Kg(e,t){return{type:"root",children:n7(e,t)}}function Db(){return{type:"doctype"}}function _b(e){return{type:"text",value:e.nodeValue||""}}function Ob(e){return{type:"comment",value:e.nodeValue||""}}function Rb(e,t){const n=e.namespaceURI,i=n===dd.svg?Mb:Tb,l=n===dd.html?e.tagName.toLowerCase():e.tagName,s=n===dd.html&&l==="template"?e.content:e,u=e.getAttributeNames(),f={};let h=-1;for(;++h<u.length;)f[u[h]]=e.getAttribute(u[h])||"";return i(l,f,n7(s,t))}function n7(e,t){const n=e.childNodes,i=[];let l=-1;for(;++l<n.length;){const s=t7(n[l],t);s!==void 0&&i.push(s)}return i}new DOMParser;function Bb(e,t){const n=Lb(e);return zb(n)}function Lb(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const Xs=(function(e){if(e==null)return Ib;if(typeof e=="function")return bc(e);if(typeof e=="object")return Array.isArray(e)?Hb(e):jb(e);if(typeof e=="string")return qb(e);throw new Error("Expected function, string, or object as test")});function Hb(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Xs(e[n]);return bc(i);function i(...l){let s=-1;for(;++s<t.length;)if(t[s].apply(this,l))return!0;return!1}}function jb(e){const t=e;return bc(n);function n(i){const l=i;let s;for(s in e)if(l[s]!==t[s])return!1;return!0}}function qb(e){return bc(t);function t(n){return n&&n.type===e}}function bc(e){return t;function t(n,i,l){return!!(Ub(n)&&e.call(this,n,typeof i=="number"?i:void 0,l||void 0))}}function Ib(){return!0}function Ub(e){return e!==null&&typeof e=="object"&&"type"in e}const Jg=(function(e,t,n){const i=Xs(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(i(e.children[t],t,e))return e.children[t]}),rl=(function(e){if(e==null)return Yb;if(typeof e=="string")return Vb(e);if(typeof e=="object")return Fb(e);if(typeof e=="function")return em(e);throw new Error("Expected function, string, or array as `test`")});function Fb(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=rl(e[n]);return em(i);function i(...l){let s=-1;for(;++s<t.length;)if(t[s].apply(this,l))return!0;return!1}}function Vb(e){return em(t);function t(n){return n.tagName===e}}function em(e){return t;function t(n,i,l){return!!(Gb(n)&&e.call(this,n,typeof i=="number"?i:void 0,l||void 0))}}function Yb(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Gb(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const Wg=/\n/g,e3=/[\t ]+/g,u1=rl("br"),t3=rl(Wb),$b=rl("p"),n3=rl("tr"),Xb=rl(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",Jb,ew]),r7=rl(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function Pb(e,t){const n=t||{},i="children"in e?e.children:[],l=r7(e),s=l7(e,{whitespace:n.whitespace||"normal"}),u=[];(e.type==="text"||e.type==="comment")&&u.push(...a7(e,{breakBefore:!0,breakAfter:!0}));let f=-1;for(;++f<i.length;)u.push(...i7(i[f],e,{whitespace:s,breakBefore:f?void 0:l,breakAfter:f<i.length-1?u1(i[f+1]):l}));const h=[];let d;for(f=-1;++f<u.length;){const p=u[f];typeof p=="number"?d!==void 0&&p>d&&(d=p):p&&(d!==void 0&&d>-1&&h.push(`
10
+ `.repeat(d)||" "),d=-1,h.push(p))}return h.join("")}function i7(e,t,n){return e.type==="element"?Zb(e,t,n):e.type==="text"?n.whitespace==="normal"?a7(e,n):Qb(e):[]}function Zb(e,t,n){const i=l7(e,n),l=e.children||[];let s=-1,u=[];if(Xb(e))return u;let f,h;for(u1(e)||n3(e)&&Jg(t,e,n3)?h=`
11
+ `:$b(e)?(f=2,h=2):r7(e)&&(f=1,h=1);++s<l.length;)u=u.concat(i7(l[s],e,{whitespace:i,breakBefore:s?void 0:f,breakAfter:s<l.length-1?u1(l[s+1]):h}));return t3(e)&&Jg(t,e,t3)&&u.push(" "),f&&u.unshift(f),h&&u.push(h),u}function a7(e,t){const n=String(e.value),i=[],l=[];let s=0;for(;s<=n.length;){Wg.lastIndex=s;const h=Wg.exec(n),d=h&&"index"in h?h.index:n.length;i.push(Kb(n.slice(s,d).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),s===0?t.breakBefore:!0,d===n.length?t.breakAfter:!0)),s=d+1}let u=-1,f;for(;++u<i.length;)i[u].charCodeAt(i[u].length-1)===8203||u<i.length-1&&i[u+1].charCodeAt(0)===8203?(l.push(i[u]),f=void 0):i[u]?(typeof f=="number"&&l.push(f),l.push(i[u]),f=0):(u===0||u===i.length-1)&&l.push(0);return l}function Qb(e){return[String(e.value)]}function Kb(e,t,n){const i=[];let l=0,s;for(;l<e.length;){e3.lastIndex=l;const u=e3.exec(e);s=u?u.index:e.length,!l&&!s&&u&&!t&&i.push(""),l!==s&&i.push(e.slice(l,s)),l=u?s+u[0].length:s}return l!==s&&!n&&i.push(""),i.join(" ")}function l7(e,t){if(e.type==="element"){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function Jb(e){return!!(e.properties||{}).hidden}function Wb(e){return e.tagName==="td"||e.tagName==="th"}function ew(e){return e.tagName==="dialog"&&!(e.properties||{}).open}class Ae extends Error{constructor(t,n){var i="KaTeX parse error: "+t,l,s,u=n&&n.loc;if(u&&u.start<=u.end){var f=u.lexer.input;l=u.start,s=u.end,l===f.length?i+=" at end of input: ":i+=" at position "+(l+1)+": ";var h=f.slice(l,s).replace(/[^]/g,"$&̲"),d;l>15?d="…"+f.slice(l-15,l):d=f.slice(0,l);var p;s+15<f.length?p=f.slice(s,s+15)+"…":p=f.slice(s),i+=d+h+p}super(i),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,Ae.prototype),this.position=l,l!=null&&s!=null&&(this.length=s-l),this.rawMessage=t}}var tw=/([A-Z])/g,nw=e=>e.replace(tw,"-$1").toLowerCase(),rw={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},iw=/[&><"']/g,kn=e=>String(e).replace(iw,t=>rw[t]),V0=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?V0(e.body[0]):e:e.type==="font"?V0(e.body):e,aw=new Set(["mathord","textord","atom"]),Ei=e=>aw.has(V0(e).type),lw=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},c1={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function ow(e){if(typeof e!="string")return e.enum[0];switch(e){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}function sw(e){if(e.default!==void 0)return e.default;var t=Array.isArray(e.type)?e.type[0]:e.type;return ow(t)}function uw(e,t,n,i){var l=n[t];e[t]=l!==void 0?i.processor?i.processor(l):l:sw(i)}class tm{constructor(t){t===void 0&&(t={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n of Object.keys(c1)){var i=c1[n];i&&uw(this,n,t,i)}}reportNonstrict(t,n,i){var l=this.strict;if(typeof l=="function"&&(l=l(t,n,i)),!(!l||l==="ignore")){if(l===!0||l==="error")throw new Ae("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),i);l==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+l+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,i){var l=this.strict;if(typeof l=="function")try{l=l(t,n,i)}catch{l="error"}return!l||l==="ignore"?!1:l===!0||l==="error"?!0:l==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+l+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var n=lw(t.url);if(n==null)return!1;t.protocol=n}var i=typeof this.trust=="function"?this.trust(t):this.trust;return!!i}}class la{constructor(t,n,i){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=i}sup(){return qr[cw[this.id]]}sub(){return qr[fw[this.id]]}fracNum(){return qr[hw[this.id]]}fracDen(){return qr[dw[this.id]]}cramp(){return qr[mw[this.id]]}text(){return qr[pw[this.id]]}isTight(){return this.size>=2}}var nm=0,J0=1,Wl=2,bi=3,Ns=4,xr=5,no=6,Dn=7,qr=[new la(nm,0,!1),new la(J0,0,!0),new la(Wl,1,!1),new la(bi,1,!0),new la(Ns,2,!1),new la(xr,2,!0),new la(no,3,!1),new la(Dn,3,!0)],cw=[Ns,xr,Ns,xr,no,Dn,no,Dn],fw=[xr,xr,xr,xr,Dn,Dn,Dn,Dn],hw=[Wl,bi,Ns,xr,no,Dn,no,Dn],dw=[bi,bi,xr,xr,Dn,Dn,Dn,Dn],mw=[J0,J0,bi,bi,xr,xr,Dn,Dn],pw=[nm,J0,Wl,bi,Wl,bi,Wl,bi],Xe={DISPLAY:qr[nm],TEXT:qr[Wl],SCRIPT:qr[Ns],SCRIPTSCRIPT:qr[no]},f1=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function gw(e){for(var t=0;t<f1.length;t++)for(var n=f1[t],i=0;i<n.blocks.length;i++){var l=n.blocks[i];if(e>=l[0]&&e<=l[1])return n.name}return null}var Y0=[];f1.forEach(e=>e.blocks.forEach(t=>Y0.push(...t)));function o7(e){for(var t=0;t<Y0.length;t+=2)if(e>=Y0[t]&&e<=Y0[t+1])return!0;return!1}var fn=e=>e+" "+e,Gl=80,yw=function(t,n){return"M95,"+(622+t+n)+`
12
+ c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
13
+ c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
14
+ c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
15
+ s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
16
+ c69,-144,104.5,-217.7,106.5,-221
17
+ l`+t/2.075+" -"+t+`
18
+ c5.3,-9.3,12,-14,20,-14
19
+ H400000v`+(40+t)+`H845.2724
20
+ s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
21
+ c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
22
+ M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},vw=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119
23
+ c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
24
+ c340,-704.7,510.7,-1060.3,512,-1067
25
+ l`+t/2.084+" -"+t+`
26
+ c4.7,-7.3,11,-11,19,-11
27
+ H40000v`+(40+t)+`H1012.3
28
+ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
29
+ c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
30
+ s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
31
+ c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
32
+ M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},xw=function(t,n){return"M983 "+(10+t+n)+`
33
+ l`+t/3.13+" -"+t+`
34
+ c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
35
+ H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
36
+ s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
37
+ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
38
+ c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
39
+ c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
40
+ c53.7,-170.3,84.5,-266.8,92.5,-289.5z
41
+ M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},bw=function(t,n){return"M424,"+(2398+t+n)+`
42
+ c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
43
+ c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
44
+ s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
45
+ s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
46
+ l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
47
+ v`+(40+t)+`H1014.6
48
+ s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
49
+ c-2,6,-10,9,-24,9
50
+ c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+`
51
+ h400000v`+(40+t)+"h-400000z"},ww=function(t,n){return"M473,"+(2713+t+n)+`
52
+ c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
53
+ c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
54
+ s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
55
+ c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
56
+ c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
57
+ s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
58
+ 606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},Sw=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},kw=function(t,n,i){var l=i-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+`
59
+ H742v`+l+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
60
+ h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
61
+ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
62
+ 219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},Ew=function(t,n,i){n=1e3*n;var l="";switch(t){case"sqrtMain":l=yw(n,Gl);break;case"sqrtSize1":l=vw(n,Gl);break;case"sqrtSize2":l=xw(n,Gl);break;case"sqrtSize3":l=bw(n,Gl);break;case"sqrtSize4":l=ww(n,Gl);break;case"sqrtTall":l=kw(n,Gl,i)}return l},Aw=function(t,n){switch(t){case"⎜":return fn("M291 0 H417 V"+n+" H291z");case"∣":return fn("M145 0 H188 V"+n+" H145z");case"∥":return fn("M145 0 H188 V"+n+" H145z")+fn("M367 0 H410 V"+n+" H367z");case"⎟":return fn("M457 0 H583 V"+n+" H457z");case"⎢":return fn("M319 0 H403 V"+n+" H319z");case"⎥":return fn("M263 0 H347 V"+n+" H263z");case"⎪":return fn("M384 0 H504 V"+n+" H384z");case"⏐":return fn("M312 0 H355 V"+n+" H312z");case"‖":return fn("M257 0 H300 V"+n+" H257z")+fn("M478 0 H521 V"+n+" H478z");default:return""}},r3={doubleleftarrow:`M262 157
63
+ l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
64
+ 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
65
+ 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
66
+ c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
67
+ 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
68
+ -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
69
+ -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
70
+ m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
71
+ -10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
72
+ 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
73
+ -33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
74
+ -17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
75
+ -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
76
+ c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
77
+ -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
78
+ 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
79
+ -5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
80
+ c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
81
+ 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
82
+ 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
83
+ l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
84
+ -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
85
+ 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
86
+ 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
87
+ 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
88
+ -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
89
+ H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
90
+ 435 0h399565z`,leftgroupunder:`M400000 262
91
+ H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
92
+ 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
93
+ -3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
94
+ -18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
95
+ -196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
96
+ 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
97
+ -4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
98
+ -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
99
+ m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
100
+ 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
101
+ 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
102
+ -152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
103
+ 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
104
+ -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
105
+ v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
106
+ -83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
107
+ -68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
108
+ 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:fn("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:fn("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:fn("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:fn("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
109
+ -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
110
+ c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
111
+ 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:fn("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334
112
+ c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
113
+ -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
114
+ 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
115
+ 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
116
+ c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
117
+ 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
118
+ 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
119
+ -5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
120
+ -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
121
+ m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
122
+ 60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
123
+ -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
124
+ m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
125
+ c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
126
+ -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
127
+ m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
128
+ 85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
129
+ -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
130
+ m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
131
+ c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
132
+ -16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
133
+ 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
134
+ 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
135
+ -40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
136
+ -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
137
+ 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
138
+ -6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
139
+ s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
140
+ c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
141
+ 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
142
+ -174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
143
+ 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
144
+ 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
145
+ -3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
146
+ -10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
147
+ 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
148
+ -18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
149
+ 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
150
+ m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
151
+ 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
152
+ -7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
153
+ -27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
154
+ 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
155
+ 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
156
+ -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
157
+ m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
158
+ 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
159
+ -13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
160
+ 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:fn("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:fn("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:fn("M399995 440 h-120 V150 H0 v-120 H399995z"),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
161
+ 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
162
+ -52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
163
+ -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
164
+ 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
165
+ -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
166
+ -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
167
+ -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
168
+ 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
169
+ c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
170
+ 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
171
+ 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
172
+ -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
173
+ 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
174
+ -2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
175
+ 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
176
+ 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
177
+ -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
178
+ -8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
179
+ 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
180
+ c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
181
+ 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
182
+ -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
183
+ 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
184
+ 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
185
+ -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
186
+ -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
187
+ 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
188
+ 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
189
+ -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
190
+ 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
191
+ 10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
192
+ -1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
193
+ -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
194
+ H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
195
+ c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
196
+ c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
197
+ -11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
198
+ -11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
199
+ -11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
200
+ -5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
201
+ -11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
202
+ -11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
203
+ -11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
204
+ c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
205
+ c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
206
+ s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
207
+ 121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
208
+ s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
209
+ c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
210
+ M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
211
+ -27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
212
+ 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
213
+ -84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
214
+ -119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
215
+ -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
216
+ 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
217
+ c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
218
+ c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
219
+ c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
220
+ c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
221
+ M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
222
+ c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
223
+ -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
224
+ c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
225
+ M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
226
+ c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
227
+ 1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
228
+ -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
229
+ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
230
+ c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
231
+ -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
232
+ c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
233
+ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Cw=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84
234
+ H403z M403 1759 V0 H319 V1759 v`+n+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z
235
+ M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
236
+ c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
237
+ c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+" v585 h43z";case"doublevert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
238
+ c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
239
+ c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z
240
+ M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15
241
+ c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
242
+ c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+n+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+n+` v1715 h263 v84 H319z
243
+ MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z
244
+ MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z
245
+ M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z
246
+ M347 1759 V0 h-84 V1759 v`+n+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
247
+ c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
248
+ -36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
249
+ 949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
250
+ c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
251
+ -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
252
+ l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
253
+ -210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
254
+ 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
255
+ c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+`
256
+ c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
257
+ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
258
+ c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
259
+ c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
260
+ l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
261
+ -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};function Tw(e){return"toText"in e}class go{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t}toMarkup(){for(var t="",n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t}toText(){return this.children.map(t=>{if(Tw(t))return t.toText();throw new Error("Expected MathDomNode with toText, got "+t.constructor.name)}).join("")}}var h1={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Mw={ex:!0,em:!0,mu:!0},s7=function(t){return typeof t!="string"&&(t=t.unit),t in h1||t in Mw||t==="ex"},Ft=function(t,n){var i;if(t.unit in h1)i=h1[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")i=n.fontMetrics().cssEmPerMu;else{var l;if(n.style.isTight()?l=n.havingStyle(n.style.text()):l=n,t.unit==="ex")i=l.fontMetrics().xHeight;else if(t.unit==="em")i=l.fontMetrics().quad;else throw new Ae("Invalid unit: '"+t.unit+"'");l!==n&&(i*=l.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*i,n.maxSize)},Me=function(t){return+t.toFixed(4)+"em"},ga=function(t){return t.filter(n=>n).join(" ")},rm=function(t){var n="";for(var i of Object.keys(t)){var l=t[i];l!==void 0&&(n+=nw(i)+":"+l+";")}return n},u7=function(t,n,i){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=i||{},n){n.style.isTight()&&this.classes.push("mtight");var l=n.getColor();l&&(this.style.color=l)}},c7=function(t){var n=document.createElement(t);n.className=ga(this.classes),Object.assign(n.style,this.style);for(var i of Object.keys(this.attributes))n.setAttribute(i,this.attributes[i]);for(var l=0;l<this.children.length;l++)n.appendChild(this.children[l].toNode());return n},zw=/[\s"'>/=\x00-\x1f]/,f7=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+kn(ga(this.classes))+'"');var i=rm(this.style);i&&(n+=' style="'+kn(i)+'"');for(var l of Object.keys(this.attributes)){if(zw.test(l))throw new Ae("Invalid attribute name '"+l+"'");n+=" "+l+'="'+kn(this.attributes[l])+'"'}n+=">";for(var s=0;s<this.children.length;s++)n+=this.children[s].toMarkup();return n+="</"+t+">",n};class yo{constructor(t,n,i,l){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,u7.call(this,t,i,l),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return c7.call(this,"span")}toMarkup(){return f7.call(this,"span")}}class wc{constructor(t,n,i,l){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,u7.call(this,n,l),this.children=i||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return c7.call(this,"a")}toMarkup(){return f7.call(this,"a")}}class Nw{constructor(t,n,i){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=i}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");return t.src=this.src,t.alt=this.alt,t.className="mord",Object.assign(t.style,this.style),t}toMarkup(){var t='<img src="'+kn(this.src)+'"'+(' alt="'+kn(this.alt)+'"'),n=rm(this.style);return n&&(t+=' style="'+kn(n)+'"'),t+="'/>",t}}var Dw={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class ar{constructor(t,n,i,l,s,u,f,h){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=n||0,this.depth=i||0,this.italic=l||0,this.skew=s||0,this.width=u||0,this.classes=f||[],this.style=h||{},this.maxFontSize=0;var d=gw(this.text.charCodeAt(0));d&&this.classes.push(d+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Dw[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),n=null;return this.italic>0&&(n=document.createElement("span"),n.style.marginRight=Me(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=ga(this.classes)),Object.keys(this.style).length>0&&(n=n||document.createElement("span"),Object.assign(n.style,this.style)),n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="<span";this.classes.length&&(t=!0,n+=' class="',n+=kn(ga(this.classes)),n+='"');var i="";this.italic>0&&(i+="margin-right:"+Me(this.italic)+";"),i+=rm(this.style),i&&(t=!0,n+=' style="'+kn(i)+'"');var l=kn(this.text);return t?(n+=">",n+=l,n+="</span>",n):l}}class wi{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var i of Object.keys(this.attributes))n.setAttribute(i,this.attributes[i]);for(var l=0;l<this.children.length;l++)n.appendChild(this.children[l].toNode());return n}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var n of Object.keys(this.attributes))t+=" "+n+'="'+kn(this.attributes[n])+'"';t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</svg>",t}}class ya{constructor(t,n){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=n}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"path");return this.alternate?n.setAttribute("d",this.alternate):n.setAttribute("d",r3[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+kn(this.alternate)+'"/>':'<path d="'+kn(r3[this.pathName])+'"/>'}}class d1{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var i of Object.keys(this.attributes))n.setAttribute(i,this.attributes[i]);return n}toMarkup(){var t="<line";for(var n of Object.keys(this.attributes))t+=" "+n+'="'+kn(this.attributes[n])+'"';return t+="/>",t}}function _w(e){if(e instanceof ar)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function Ow(e){if(e instanceof yo)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var Rw=e=>e instanceof yo||e instanceof wc||e instanceof go,Ur={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},S0={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},i3={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function Bw(e,t){Ur[e]=t}function im(e,t,n){if(!Ur[t])throw new Error("Font metrics not found for font: "+t+".");var i=e.charCodeAt(0),l=Ur[t][i];if(!l&&e[0]in i3&&(i=i3[e[0]].charCodeAt(0),l=Ur[t][i]),!l&&n==="text"&&o7(i)&&(l=Ur[t][77]),l)return{depth:l[0],height:l[1],italic:l[2],skew:l[3],width:l[4]}}var md={};function Lw(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!md[t]){var n=md[t]={cssEmPerMu:S0.quad[t]/18};for(var i in S0)S0.hasOwnProperty(i)&&(n[i]=S0[i][t])}return md[t]}var Lt={math:{},text:{}};function b(e,t,n,i,l,s){Lt[e][l]={font:t,group:n,replace:i},s&&i&&(Lt[e][i]=Lt[e][l])}var S="math",xe="text",N="main",X="ams",jt="accent-token",Ne="bin",_n="close",vo="inner",Fe="mathord",nn="op-token",or="open",Ps="punct",Z="rel",Ai="spacing",te="textord";b(S,N,Z,"≡","\\equiv",!0);b(S,N,Z,"≺","\\prec",!0);b(S,N,Z,"≻","\\succ",!0);b(S,N,Z,"∼","\\sim",!0);b(S,N,Z,"⊥","\\perp");b(S,N,Z,"⪯","\\preceq",!0);b(S,N,Z,"⪰","\\succeq",!0);b(S,N,Z,"≃","\\simeq",!0);b(S,N,Z,"∣","\\mid",!0);b(S,N,Z,"≪","\\ll",!0);b(S,N,Z,"≫","\\gg",!0);b(S,N,Z,"≍","\\asymp",!0);b(S,N,Z,"∥","\\parallel");b(S,N,Z,"⋈","\\bowtie",!0);b(S,N,Z,"⌣","\\smile",!0);b(S,N,Z,"⊑","\\sqsubseteq",!0);b(S,N,Z,"⊒","\\sqsupseteq",!0);b(S,N,Z,"≐","\\doteq",!0);b(S,N,Z,"⌢","\\frown",!0);b(S,N,Z,"∋","\\ni",!0);b(S,N,Z,"∝","\\propto",!0);b(S,N,Z,"⊢","\\vdash",!0);b(S,N,Z,"⊣","\\dashv",!0);b(S,N,Z,"∋","\\owns");b(S,N,Ps,".","\\ldotp");b(S,N,Ps,"⋅","\\cdotp");b(S,N,Ps,"⋅","·");b(xe,N,te,"⋅","·");b(S,N,te,"#","\\#");b(xe,N,te,"#","\\#");b(S,N,te,"&","\\&");b(xe,N,te,"&","\\&");b(S,N,te,"ℵ","\\aleph",!0);b(S,N,te,"∀","\\forall",!0);b(S,N,te,"ℏ","\\hbar",!0);b(S,N,te,"∃","\\exists",!0);b(S,N,te,"∇","\\nabla",!0);b(S,N,te,"♭","\\flat",!0);b(S,N,te,"ℓ","\\ell",!0);b(S,N,te,"♮","\\natural",!0);b(S,N,te,"♣","\\clubsuit",!0);b(S,N,te,"℘","\\wp",!0);b(S,N,te,"♯","\\sharp",!0);b(S,N,te,"♢","\\diamondsuit",!0);b(S,N,te,"ℜ","\\Re",!0);b(S,N,te,"♡","\\heartsuit",!0);b(S,N,te,"ℑ","\\Im",!0);b(S,N,te,"♠","\\spadesuit",!0);b(S,N,te,"§","\\S",!0);b(xe,N,te,"§","\\S");b(S,N,te,"¶","\\P",!0);b(xe,N,te,"¶","\\P");b(S,N,te,"†","\\dag");b(xe,N,te,"†","\\dag");b(xe,N,te,"†","\\textdagger");b(S,N,te,"‡","\\ddag");b(xe,N,te,"‡","\\ddag");b(xe,N,te,"‡","\\textdaggerdbl");b(S,N,_n,"⎱","\\rmoustache",!0);b(S,N,or,"⎰","\\lmoustache",!0);b(S,N,_n,"⟯","\\rgroup",!0);b(S,N,or,"⟮","\\lgroup",!0);b(S,N,Ne,"∓","\\mp",!0);b(S,N,Ne,"⊖","\\ominus",!0);b(S,N,Ne,"⊎","\\uplus",!0);b(S,N,Ne,"⊓","\\sqcap",!0);b(S,N,Ne,"∗","\\ast");b(S,N,Ne,"⊔","\\sqcup",!0);b(S,N,Ne,"◯","\\bigcirc",!0);b(S,N,Ne,"∙","\\bullet",!0);b(S,N,Ne,"‡","\\ddagger");b(S,N,Ne,"≀","\\wr",!0);b(S,N,Ne,"⨿","\\amalg");b(S,N,Ne,"&","\\And");b(S,N,Z,"⟵","\\longleftarrow",!0);b(S,N,Z,"⇐","\\Leftarrow",!0);b(S,N,Z,"⟸","\\Longleftarrow",!0);b(S,N,Z,"⟶","\\longrightarrow",!0);b(S,N,Z,"⇒","\\Rightarrow",!0);b(S,N,Z,"⟹","\\Longrightarrow",!0);b(S,N,Z,"↔","\\leftrightarrow",!0);b(S,N,Z,"⟷","\\longleftrightarrow",!0);b(S,N,Z,"⇔","\\Leftrightarrow",!0);b(S,N,Z,"⟺","\\Longleftrightarrow",!0);b(S,N,Z,"↦","\\mapsto",!0);b(S,N,Z,"⟼","\\longmapsto",!0);b(S,N,Z,"↗","\\nearrow",!0);b(S,N,Z,"↩","\\hookleftarrow",!0);b(S,N,Z,"↪","\\hookrightarrow",!0);b(S,N,Z,"↘","\\searrow",!0);b(S,N,Z,"↼","\\leftharpoonup",!0);b(S,N,Z,"⇀","\\rightharpoonup",!0);b(S,N,Z,"↙","\\swarrow",!0);b(S,N,Z,"↽","\\leftharpoondown",!0);b(S,N,Z,"⇁","\\rightharpoondown",!0);b(S,N,Z,"↖","\\nwarrow",!0);b(S,N,Z,"⇌","\\rightleftharpoons",!0);b(S,X,Z,"≮","\\nless",!0);b(S,X,Z,"","\\@nleqslant");b(S,X,Z,"","\\@nleqq");b(S,X,Z,"⪇","\\lneq",!0);b(S,X,Z,"≨","\\lneqq",!0);b(S,X,Z,"","\\@lvertneqq");b(S,X,Z,"⋦","\\lnsim",!0);b(S,X,Z,"⪉","\\lnapprox",!0);b(S,X,Z,"⊀","\\nprec",!0);b(S,X,Z,"⋠","\\npreceq",!0);b(S,X,Z,"⋨","\\precnsim",!0);b(S,X,Z,"⪹","\\precnapprox",!0);b(S,X,Z,"≁","\\nsim",!0);b(S,X,Z,"","\\@nshortmid");b(S,X,Z,"∤","\\nmid",!0);b(S,X,Z,"⊬","\\nvdash",!0);b(S,X,Z,"⊭","\\nvDash",!0);b(S,X,Z,"⋪","\\ntriangleleft");b(S,X,Z,"⋬","\\ntrianglelefteq",!0);b(S,X,Z,"⊊","\\subsetneq",!0);b(S,X,Z,"","\\@varsubsetneq");b(S,X,Z,"⫋","\\subsetneqq",!0);b(S,X,Z,"","\\@varsubsetneqq");b(S,X,Z,"≯","\\ngtr",!0);b(S,X,Z,"","\\@ngeqslant");b(S,X,Z,"","\\@ngeqq");b(S,X,Z,"⪈","\\gneq",!0);b(S,X,Z,"≩","\\gneqq",!0);b(S,X,Z,"","\\@gvertneqq");b(S,X,Z,"⋧","\\gnsim",!0);b(S,X,Z,"⪊","\\gnapprox",!0);b(S,X,Z,"⊁","\\nsucc",!0);b(S,X,Z,"⋡","\\nsucceq",!0);b(S,X,Z,"⋩","\\succnsim",!0);b(S,X,Z,"⪺","\\succnapprox",!0);b(S,X,Z,"≆","\\ncong",!0);b(S,X,Z,"","\\@nshortparallel");b(S,X,Z,"∦","\\nparallel",!0);b(S,X,Z,"⊯","\\nVDash",!0);b(S,X,Z,"⋫","\\ntriangleright");b(S,X,Z,"⋭","\\ntrianglerighteq",!0);b(S,X,Z,"","\\@nsupseteqq");b(S,X,Z,"⊋","\\supsetneq",!0);b(S,X,Z,"","\\@varsupsetneq");b(S,X,Z,"⫌","\\supsetneqq",!0);b(S,X,Z,"","\\@varsupsetneqq");b(S,X,Z,"⊮","\\nVdash",!0);b(S,X,Z,"⪵","\\precneqq",!0);b(S,X,Z,"⪶","\\succneqq",!0);b(S,X,Z,"","\\@nsubseteqq");b(S,X,Ne,"⊴","\\unlhd");b(S,X,Ne,"⊵","\\unrhd");b(S,X,Z,"↚","\\nleftarrow",!0);b(S,X,Z,"↛","\\nrightarrow",!0);b(S,X,Z,"⇍","\\nLeftarrow",!0);b(S,X,Z,"⇏","\\nRightarrow",!0);b(S,X,Z,"↮","\\nleftrightarrow",!0);b(S,X,Z,"⇎","\\nLeftrightarrow",!0);b(S,X,Z,"△","\\vartriangle");b(S,X,te,"ℏ","\\hslash");b(S,X,te,"▽","\\triangledown");b(S,X,te,"◊","\\lozenge");b(S,X,te,"Ⓢ","\\circledS");b(S,X,te,"®","\\circledR");b(xe,X,te,"®","\\circledR");b(S,X,te,"∡","\\measuredangle",!0);b(S,X,te,"∄","\\nexists");b(S,X,te,"℧","\\mho");b(S,X,te,"Ⅎ","\\Finv",!0);b(S,X,te,"⅁","\\Game",!0);b(S,X,te,"‵","\\backprime");b(S,X,te,"▲","\\blacktriangle");b(S,X,te,"▼","\\blacktriangledown");b(S,X,te,"■","\\blacksquare");b(S,X,te,"⧫","\\blacklozenge");b(S,X,te,"★","\\bigstar");b(S,X,te,"∢","\\sphericalangle",!0);b(S,X,te,"∁","\\complement",!0);b(S,X,te,"ð","\\eth",!0);b(xe,N,te,"ð","ð");b(S,X,te,"╱","\\diagup");b(S,X,te,"╲","\\diagdown");b(S,X,te,"□","\\square");b(S,X,te,"□","\\Box");b(S,X,te,"◊","\\Diamond");b(S,X,te,"¥","\\yen",!0);b(xe,X,te,"¥","\\yen",!0);b(S,X,te,"✓","\\checkmark",!0);b(xe,X,te,"✓","\\checkmark");b(S,X,te,"ℶ","\\beth",!0);b(S,X,te,"ℸ","\\daleth",!0);b(S,X,te,"ℷ","\\gimel",!0);b(S,X,te,"ϝ","\\digamma",!0);b(S,X,te,"ϰ","\\varkappa");b(S,X,or,"┌","\\@ulcorner",!0);b(S,X,_n,"┐","\\@urcorner",!0);b(S,X,or,"└","\\@llcorner",!0);b(S,X,_n,"┘","\\@lrcorner",!0);b(S,X,Z,"≦","\\leqq",!0);b(S,X,Z,"⩽","\\leqslant",!0);b(S,X,Z,"⪕","\\eqslantless",!0);b(S,X,Z,"≲","\\lesssim",!0);b(S,X,Z,"⪅","\\lessapprox",!0);b(S,X,Z,"≊","\\approxeq",!0);b(S,X,Ne,"⋖","\\lessdot");b(S,X,Z,"⋘","\\lll",!0);b(S,X,Z,"≶","\\lessgtr",!0);b(S,X,Z,"⋚","\\lesseqgtr",!0);b(S,X,Z,"⪋","\\lesseqqgtr",!0);b(S,X,Z,"≑","\\doteqdot");b(S,X,Z,"≓","\\risingdotseq",!0);b(S,X,Z,"≒","\\fallingdotseq",!0);b(S,X,Z,"∽","\\backsim",!0);b(S,X,Z,"⋍","\\backsimeq",!0);b(S,X,Z,"⫅","\\subseteqq",!0);b(S,X,Z,"⋐","\\Subset",!0);b(S,X,Z,"⊏","\\sqsubset",!0);b(S,X,Z,"≼","\\preccurlyeq",!0);b(S,X,Z,"⋞","\\curlyeqprec",!0);b(S,X,Z,"≾","\\precsim",!0);b(S,X,Z,"⪷","\\precapprox",!0);b(S,X,Z,"⊲","\\vartriangleleft");b(S,X,Z,"⊴","\\trianglelefteq");b(S,X,Z,"⊨","\\vDash",!0);b(S,X,Z,"⊪","\\Vvdash",!0);b(S,X,Z,"⌣","\\smallsmile");b(S,X,Z,"⌢","\\smallfrown");b(S,X,Z,"≏","\\bumpeq",!0);b(S,X,Z,"≎","\\Bumpeq",!0);b(S,X,Z,"≧","\\geqq",!0);b(S,X,Z,"⩾","\\geqslant",!0);b(S,X,Z,"⪖","\\eqslantgtr",!0);b(S,X,Z,"≳","\\gtrsim",!0);b(S,X,Z,"⪆","\\gtrapprox",!0);b(S,X,Ne,"⋗","\\gtrdot");b(S,X,Z,"⋙","\\ggg",!0);b(S,X,Z,"≷","\\gtrless",!0);b(S,X,Z,"⋛","\\gtreqless",!0);b(S,X,Z,"⪌","\\gtreqqless",!0);b(S,X,Z,"≖","\\eqcirc",!0);b(S,X,Z,"≗","\\circeq",!0);b(S,X,Z,"≜","\\triangleq",!0);b(S,X,Z,"∼","\\thicksim");b(S,X,Z,"≈","\\thickapprox");b(S,X,Z,"⫆","\\supseteqq",!0);b(S,X,Z,"⋑","\\Supset",!0);b(S,X,Z,"⊐","\\sqsupset",!0);b(S,X,Z,"≽","\\succcurlyeq",!0);b(S,X,Z,"⋟","\\curlyeqsucc",!0);b(S,X,Z,"≿","\\succsim",!0);b(S,X,Z,"⪸","\\succapprox",!0);b(S,X,Z,"⊳","\\vartriangleright");b(S,X,Z,"⊵","\\trianglerighteq");b(S,X,Z,"⊩","\\Vdash",!0);b(S,X,Z,"∣","\\shortmid");b(S,X,Z,"∥","\\shortparallel");b(S,X,Z,"≬","\\between",!0);b(S,X,Z,"⋔","\\pitchfork",!0);b(S,X,Z,"∝","\\varpropto");b(S,X,Z,"◀","\\blacktriangleleft");b(S,X,Z,"∴","\\therefore",!0);b(S,X,Z,"∍","\\backepsilon");b(S,X,Z,"▶","\\blacktriangleright");b(S,X,Z,"∵","\\because",!0);b(S,X,Z,"⋘","\\llless");b(S,X,Z,"⋙","\\gggtr");b(S,X,Ne,"⊲","\\lhd");b(S,X,Ne,"⊳","\\rhd");b(S,X,Z,"≂","\\eqsim",!0);b(S,N,Z,"⋈","\\Join");b(S,X,Z,"≑","\\Doteq",!0);b(S,X,Ne,"∔","\\dotplus",!0);b(S,X,Ne,"∖","\\smallsetminus");b(S,X,Ne,"⋒","\\Cap",!0);b(S,X,Ne,"⋓","\\Cup",!0);b(S,X,Ne,"⩞","\\doublebarwedge",!0);b(S,X,Ne,"⊟","\\boxminus",!0);b(S,X,Ne,"⊞","\\boxplus",!0);b(S,X,Ne,"⋇","\\divideontimes",!0);b(S,X,Ne,"⋉","\\ltimes",!0);b(S,X,Ne,"⋊","\\rtimes",!0);b(S,X,Ne,"⋋","\\leftthreetimes",!0);b(S,X,Ne,"⋌","\\rightthreetimes",!0);b(S,X,Ne,"⋏","\\curlywedge",!0);b(S,X,Ne,"⋎","\\curlyvee",!0);b(S,X,Ne,"⊝","\\circleddash",!0);b(S,X,Ne,"⊛","\\circledast",!0);b(S,X,Ne,"⋅","\\centerdot");b(S,X,Ne,"⊺","\\intercal",!0);b(S,X,Ne,"⋒","\\doublecap");b(S,X,Ne,"⋓","\\doublecup");b(S,X,Ne,"⊠","\\boxtimes",!0);b(S,X,Z,"⇢","\\dashrightarrow",!0);b(S,X,Z,"⇠","\\dashleftarrow",!0);b(S,X,Z,"⇇","\\leftleftarrows",!0);b(S,X,Z,"⇆","\\leftrightarrows",!0);b(S,X,Z,"⇚","\\Lleftarrow",!0);b(S,X,Z,"↞","\\twoheadleftarrow",!0);b(S,X,Z,"↢","\\leftarrowtail",!0);b(S,X,Z,"↫","\\looparrowleft",!0);b(S,X,Z,"⇋","\\leftrightharpoons",!0);b(S,X,Z,"↶","\\curvearrowleft",!0);b(S,X,Z,"↺","\\circlearrowleft",!0);b(S,X,Z,"↰","\\Lsh",!0);b(S,X,Z,"⇈","\\upuparrows",!0);b(S,X,Z,"↿","\\upharpoonleft",!0);b(S,X,Z,"⇃","\\downharpoonleft",!0);b(S,N,Z,"⊶","\\origof",!0);b(S,N,Z,"⊷","\\imageof",!0);b(S,X,Z,"⊸","\\multimap",!0);b(S,X,Z,"↭","\\leftrightsquigarrow",!0);b(S,X,Z,"⇉","\\rightrightarrows",!0);b(S,X,Z,"⇄","\\rightleftarrows",!0);b(S,X,Z,"↠","\\twoheadrightarrow",!0);b(S,X,Z,"↣","\\rightarrowtail",!0);b(S,X,Z,"↬","\\looparrowright",!0);b(S,X,Z,"↷","\\curvearrowright",!0);b(S,X,Z,"↻","\\circlearrowright",!0);b(S,X,Z,"↱","\\Rsh",!0);b(S,X,Z,"⇊","\\downdownarrows",!0);b(S,X,Z,"↾","\\upharpoonright",!0);b(S,X,Z,"⇂","\\downharpoonright",!0);b(S,X,Z,"⇝","\\rightsquigarrow",!0);b(S,X,Z,"⇝","\\leadsto");b(S,X,Z,"⇛","\\Rrightarrow",!0);b(S,X,Z,"↾","\\restriction");b(S,N,te,"‘","`");b(S,N,te,"$","\\$");b(xe,N,te,"$","\\$");b(xe,N,te,"$","\\textdollar");b(S,N,te,"%","\\%");b(xe,N,te,"%","\\%");b(S,N,te,"_","\\_");b(xe,N,te,"_","\\_");b(xe,N,te,"_","\\textunderscore");b(S,N,te,"∠","\\angle",!0);b(S,N,te,"∞","\\infty",!0);b(S,N,te,"′","\\prime");b(S,N,te,"△","\\triangle");b(S,N,te,"Γ","\\Gamma",!0);b(S,N,te,"Δ","\\Delta",!0);b(S,N,te,"Θ","\\Theta",!0);b(S,N,te,"Λ","\\Lambda",!0);b(S,N,te,"Ξ","\\Xi",!0);b(S,N,te,"Π","\\Pi",!0);b(S,N,te,"Σ","\\Sigma",!0);b(S,N,te,"Υ","\\Upsilon",!0);b(S,N,te,"Φ","\\Phi",!0);b(S,N,te,"Ψ","\\Psi",!0);b(S,N,te,"Ω","\\Omega",!0);b(S,N,te,"A","Α");b(S,N,te,"B","Β");b(S,N,te,"E","Ε");b(S,N,te,"Z","Ζ");b(S,N,te,"H","Η");b(S,N,te,"I","Ι");b(S,N,te,"K","Κ");b(S,N,te,"M","Μ");b(S,N,te,"N","Ν");b(S,N,te,"O","Ο");b(S,N,te,"P","Ρ");b(S,N,te,"T","Τ");b(S,N,te,"X","Χ");b(S,N,te,"¬","\\neg",!0);b(S,N,te,"¬","\\lnot");b(S,N,te,"⊤","\\top");b(S,N,te,"⊥","\\bot");b(S,N,te,"∅","\\emptyset");b(S,X,te,"∅","\\varnothing");b(S,N,Fe,"α","\\alpha",!0);b(S,N,Fe,"β","\\beta",!0);b(S,N,Fe,"γ","\\gamma",!0);b(S,N,Fe,"δ","\\delta",!0);b(S,N,Fe,"ϵ","\\epsilon",!0);b(S,N,Fe,"ζ","\\zeta",!0);b(S,N,Fe,"η","\\eta",!0);b(S,N,Fe,"θ","\\theta",!0);b(S,N,Fe,"ι","\\iota",!0);b(S,N,Fe,"κ","\\kappa",!0);b(S,N,Fe,"λ","\\lambda",!0);b(S,N,Fe,"μ","\\mu",!0);b(S,N,Fe,"ν","\\nu",!0);b(S,N,Fe,"ξ","\\xi",!0);b(S,N,Fe,"ο","\\omicron",!0);b(S,N,Fe,"π","\\pi",!0);b(S,N,Fe,"ρ","\\rho",!0);b(S,N,Fe,"σ","\\sigma",!0);b(S,N,Fe,"τ","\\tau",!0);b(S,N,Fe,"υ","\\upsilon",!0);b(S,N,Fe,"ϕ","\\phi",!0);b(S,N,Fe,"χ","\\chi",!0);b(S,N,Fe,"ψ","\\psi",!0);b(S,N,Fe,"ω","\\omega",!0);b(S,N,Fe,"ε","\\varepsilon",!0);b(S,N,Fe,"ϑ","\\vartheta",!0);b(S,N,Fe,"ϖ","\\varpi",!0);b(S,N,Fe,"ϱ","\\varrho",!0);b(S,N,Fe,"ς","\\varsigma",!0);b(S,N,Fe,"φ","\\varphi",!0);b(S,N,Ne,"∗","*",!0);b(S,N,Ne,"+","+");b(S,N,Ne,"−","-",!0);b(S,N,Ne,"⋅","\\cdot",!0);b(S,N,Ne,"∘","\\circ",!0);b(S,N,Ne,"÷","\\div",!0);b(S,N,Ne,"±","\\pm",!0);b(S,N,Ne,"×","\\times",!0);b(S,N,Ne,"∩","\\cap",!0);b(S,N,Ne,"∪","\\cup",!0);b(S,N,Ne,"∖","\\setminus",!0);b(S,N,Ne,"∧","\\land");b(S,N,Ne,"∨","\\lor");b(S,N,Ne,"∧","\\wedge",!0);b(S,N,Ne,"∨","\\vee",!0);b(S,N,te,"√","\\surd");b(S,N,or,"⟨","\\langle",!0);b(S,N,or,"∣","\\lvert");b(S,N,or,"∥","\\lVert");b(S,N,_n,"?","?");b(S,N,_n,"!","!");b(S,N,_n,"⟩","\\rangle",!0);b(S,N,_n,"∣","\\rvert");b(S,N,_n,"∥","\\rVert");b(S,N,Z,"=","=");b(S,N,Z,":",":");b(S,N,Z,"≈","\\approx",!0);b(S,N,Z,"≅","\\cong",!0);b(S,N,Z,"≥","\\ge");b(S,N,Z,"≥","\\geq",!0);b(S,N,Z,"←","\\gets");b(S,N,Z,">","\\gt",!0);b(S,N,Z,"∈","\\in",!0);b(S,N,Z,"","\\@not");b(S,N,Z,"⊂","\\subset",!0);b(S,N,Z,"⊃","\\supset",!0);b(S,N,Z,"⊆","\\subseteq",!0);b(S,N,Z,"⊇","\\supseteq",!0);b(S,X,Z,"⊈","\\nsubseteq",!0);b(S,X,Z,"⊉","\\nsupseteq",!0);b(S,N,Z,"⊨","\\models");b(S,N,Z,"←","\\leftarrow",!0);b(S,N,Z,"≤","\\le");b(S,N,Z,"≤","\\leq",!0);b(S,N,Z,"<","\\lt",!0);b(S,N,Z,"→","\\rightarrow",!0);b(S,N,Z,"→","\\to");b(S,X,Z,"≱","\\ngeq",!0);b(S,X,Z,"≰","\\nleq",!0);b(S,N,Ai," ","\\ ");b(S,N,Ai," ","\\space");b(S,N,Ai," ","\\nobreakspace");b(xe,N,Ai," ","\\ ");b(xe,N,Ai," "," ");b(xe,N,Ai," ","\\space");b(xe,N,Ai," ","\\nobreakspace");b(S,N,Ai,"","\\nobreak");b(S,N,Ai,"","\\allowbreak");b(S,N,Ps,",",",");b(S,N,Ps,";",";");b(S,X,Ne,"⊼","\\barwedge",!0);b(S,X,Ne,"⊻","\\veebar",!0);b(S,N,Ne,"⊙","\\odot",!0);b(S,N,Ne,"⊕","\\oplus",!0);b(S,N,Ne,"⊗","\\otimes",!0);b(S,N,te,"∂","\\partial",!0);b(S,N,Ne,"⊘","\\oslash",!0);b(S,X,Ne,"⊚","\\circledcirc",!0);b(S,X,Ne,"⊡","\\boxdot",!0);b(S,N,Ne,"△","\\bigtriangleup");b(S,N,Ne,"▽","\\bigtriangledown");b(S,N,Ne,"†","\\dagger");b(S,N,Ne,"⋄","\\diamond");b(S,N,Ne,"⋆","\\star");b(S,N,Ne,"◃","\\triangleleft");b(S,N,Ne,"▹","\\triangleright");b(S,N,or,"{","\\{");b(xe,N,te,"{","\\{");b(xe,N,te,"{","\\textbraceleft");b(S,N,_n,"}","\\}");b(xe,N,te,"}","\\}");b(xe,N,te,"}","\\textbraceright");b(S,N,or,"{","\\lbrace");b(S,N,_n,"}","\\rbrace");b(S,N,or,"[","\\lbrack",!0);b(xe,N,te,"[","\\lbrack",!0);b(S,N,_n,"]","\\rbrack",!0);b(xe,N,te,"]","\\rbrack",!0);b(S,N,or,"(","\\lparen",!0);b(S,N,_n,")","\\rparen",!0);b(xe,N,te,"<","\\textless",!0);b(xe,N,te,">","\\textgreater",!0);b(S,N,or,"⌊","\\lfloor",!0);b(S,N,_n,"⌋","\\rfloor",!0);b(S,N,or,"⌈","\\lceil",!0);b(S,N,_n,"⌉","\\rceil",!0);b(S,N,te,"\\","\\backslash");b(S,N,te,"∣","|");b(S,N,te,"∣","\\vert");b(xe,N,te,"|","\\textbar",!0);b(S,N,te,"∥","\\|");b(S,N,te,"∥","\\Vert");b(xe,N,te,"∥","\\textbardbl");b(xe,N,te,"~","\\textasciitilde");b(xe,N,te,"\\","\\textbackslash");b(xe,N,te,"^","\\textasciicircum");b(S,N,Z,"↑","\\uparrow",!0);b(S,N,Z,"⇑","\\Uparrow",!0);b(S,N,Z,"↓","\\downarrow",!0);b(S,N,Z,"⇓","\\Downarrow",!0);b(S,N,Z,"↕","\\updownarrow",!0);b(S,N,Z,"⇕","\\Updownarrow",!0);b(S,N,nn,"∐","\\coprod");b(S,N,nn,"⋁","\\bigvee");b(S,N,nn,"⋀","\\bigwedge");b(S,N,nn,"⨄","\\biguplus");b(S,N,nn,"⋂","\\bigcap");b(S,N,nn,"⋃","\\bigcup");b(S,N,nn,"∫","\\int");b(S,N,nn,"∫","\\intop");b(S,N,nn,"∬","\\iint");b(S,N,nn,"∭","\\iiint");b(S,N,nn,"∏","\\prod");b(S,N,nn,"∑","\\sum");b(S,N,nn,"⨂","\\bigotimes");b(S,N,nn,"⨁","\\bigoplus");b(S,N,nn,"⨀","\\bigodot");b(S,N,nn,"∮","\\oint");b(S,N,nn,"∯","\\oiint");b(S,N,nn,"∰","\\oiiint");b(S,N,nn,"⨆","\\bigsqcup");b(S,N,nn,"∫","\\smallint");b(xe,N,vo,"…","\\textellipsis");b(S,N,vo,"…","\\mathellipsis");b(xe,N,vo,"…","\\ldots",!0);b(S,N,vo,"…","\\ldots",!0);b(S,N,vo,"⋯","\\@cdots",!0);b(S,N,vo,"⋱","\\ddots",!0);b(S,N,te,"⋮","\\varvdots");b(xe,N,te,"⋮","\\varvdots");b(S,N,jt,"ˊ","\\acute");b(S,N,jt,"ˋ","\\grave");b(S,N,jt,"¨","\\ddot");b(S,N,jt,"~","\\tilde");b(S,N,jt,"ˉ","\\bar");b(S,N,jt,"˘","\\breve");b(S,N,jt,"ˇ","\\check");b(S,N,jt,"^","\\hat");b(S,N,jt,"⃗","\\vec");b(S,N,jt,"˙","\\dot");b(S,N,jt,"˚","\\mathring");b(S,N,Fe,"","\\@imath");b(S,N,Fe,"","\\@jmath");b(S,N,te,"ı","ı");b(S,N,te,"ȷ","ȷ");b(xe,N,te,"ı","\\i",!0);b(xe,N,te,"ȷ","\\j",!0);b(xe,N,te,"ß","\\ss",!0);b(xe,N,te,"æ","\\ae",!0);b(xe,N,te,"œ","\\oe",!0);b(xe,N,te,"ø","\\o",!0);b(xe,N,te,"Æ","\\AE",!0);b(xe,N,te,"Œ","\\OE",!0);b(xe,N,te,"Ø","\\O",!0);b(xe,N,jt,"ˊ","\\'");b(xe,N,jt,"ˋ","\\`");b(xe,N,jt,"ˆ","\\^");b(xe,N,jt,"˜","\\~");b(xe,N,jt,"ˉ","\\=");b(xe,N,jt,"˘","\\u");b(xe,N,jt,"˙","\\.");b(xe,N,jt,"¸","\\c");b(xe,N,jt,"˚","\\r");b(xe,N,jt,"ˇ","\\v");b(xe,N,jt,"¨",'\\"');b(xe,N,jt,"˝","\\H");b(xe,N,jt,"◯","\\textcircled");var h7={"--":!0,"---":!0,"``":!0,"''":!0};b(xe,N,te,"–","--",!0);b(xe,N,te,"–","\\textendash");b(xe,N,te,"—","---",!0);b(xe,N,te,"—","\\textemdash");b(xe,N,te,"‘","`",!0);b(xe,N,te,"‘","\\textquoteleft");b(xe,N,te,"’","'",!0);b(xe,N,te,"’","\\textquoteright");b(xe,N,te,"“","``",!0);b(xe,N,te,"“","\\textquotedblleft");b(xe,N,te,"”","''",!0);b(xe,N,te,"”","\\textquotedblright");b(S,N,te,"°","\\degree",!0);b(xe,N,te,"°","\\degree");b(xe,N,te,"°","\\textdegree",!0);b(S,N,te,"£","\\pounds");b(S,N,te,"£","\\mathsterling",!0);b(xe,N,te,"£","\\pounds");b(xe,N,te,"£","\\textsterling",!0);b(S,X,te,"✠","\\maltese");b(xe,X,te,"✠","\\maltese");var a3='0123456789/@."';for(var pd=0;pd<a3.length;pd++){var l3=a3.charAt(pd);b(S,N,te,l3,l3)}var o3='0123456789!@*()-=+";:?/.,';for(var gd=0;gd<o3.length;gd++){var s3=o3.charAt(gd);b(xe,N,te,s3,s3)}var W0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var yd=0;yd<W0.length;yd++){var k0=W0.charAt(yd);b(S,N,Fe,k0,k0),b(xe,N,te,k0,k0)}b(S,X,te,"C","ℂ");b(xe,X,te,"C","ℂ");b(S,X,te,"H","ℍ");b(xe,X,te,"H","ℍ");b(S,X,te,"N","ℕ");b(xe,X,te,"N","ℕ");b(S,X,te,"P","ℙ");b(xe,X,te,"P","ℙ");b(S,X,te,"Q","ℚ");b(xe,X,te,"Q","ℚ");b(S,X,te,"R","ℝ");b(xe,X,te,"R","ℝ");b(S,X,te,"Z","ℤ");b(xe,X,te,"Z","ℤ");b(S,N,Fe,"h","ℎ");b(xe,N,Fe,"h","ℎ");var Ge;for(var Mn=0;Mn<W0.length;Mn++){var Gt=W0.charAt(Mn);Ge=String.fromCharCode(55349,56320+Mn),b(S,N,Fe,Gt,Ge),b(xe,N,te,Gt,Ge),Ge=String.fromCharCode(55349,56372+Mn),b(S,N,Fe,Gt,Ge),b(xe,N,te,Gt,Ge),Ge=String.fromCharCode(55349,56424+Mn),b(S,N,Fe,Gt,Ge),b(xe,N,te,Gt,Ge),Ge=String.fromCharCode(55349,56580+Mn),b(S,N,Fe,Gt,Ge),b(xe,N,te,Gt,Ge),Ge=String.fromCharCode(55349,56684+Mn),b(S,N,Fe,Gt,Ge),b(xe,N,te,Gt,Ge),Ge=String.fromCharCode(55349,56736+Mn),b(S,N,Fe,Gt,Ge),b(xe,N,te,Gt,Ge),Ge=String.fromCharCode(55349,56788+Mn),b(S,N,Fe,Gt,Ge),b(xe,N,te,Gt,Ge),Ge=String.fromCharCode(55349,56840+Mn),b(S,N,Fe,Gt,Ge),b(xe,N,te,Gt,Ge),Ge=String.fromCharCode(55349,56944+Mn),b(S,N,Fe,Gt,Ge),b(xe,N,te,Gt,Ge),Mn<26&&(Ge=String.fromCharCode(55349,56632+Mn),b(S,N,Fe,Gt,Ge),b(xe,N,te,Gt,Ge),Ge=String.fromCharCode(55349,56476+Mn),b(S,N,Fe,Gt,Ge),b(xe,N,te,Gt,Ge))}Ge="𝕜";b(S,N,Fe,"k",Ge);b(xe,N,te,"k",Ge);for(var Fa=0;Fa<10;Fa++){var oa=Fa.toString();Ge=String.fromCharCode(55349,57294+Fa),b(S,N,Fe,oa,Ge),b(xe,N,te,oa,Ge),Ge=String.fromCharCode(55349,57314+Fa),b(S,N,Fe,oa,Ge),b(xe,N,te,oa,Ge),Ge=String.fromCharCode(55349,57324+Fa),b(S,N,Fe,oa,Ge),b(xe,N,te,oa,Ge),Ge=String.fromCharCode(55349,57334+Fa),b(S,N,Fe,oa,Ge),b(xe,N,te,oa,Ge)}var m1="ÐÞþ";for(var vd=0;vd<m1.length;vd++){var E0=m1.charAt(vd);b(S,N,Fe,E0,E0),b(xe,N,te,E0,E0)}var p1={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},u3={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},c3={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},Hw={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},$a={mathClass:"",textClass:"",font:""},f3={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},h3={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},d3={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},g1={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},y1={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},m3={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},v1={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},p3=[p1,p1,u3,u3,c3,c3,Hw,$a,$a,$a,f3,f3,h3,h3,d3,d3,g1,g1,y1,y1,m3,m3,$a,$a,v1,v1],jw=[p1,$a,g1,y1,v1],qw=e=>{var t=e.charCodeAt(0),n=e.charCodeAt(1),i=(t-55296)*1024+(n-56320)+65536;if(119808<=i&&i<120484){var l=Math.floor((i-119808)/26);return p3[l]}else if(120782<=i&&i<=120831){var s=Math.floor((i-120782)/10);return jw[s]}else{if(i===120485||i===120486)return p3[0];if(120486<i&&i<120782)return $a;throw new Ae("Unsupported character: "+e)}},Sc=function(t,n,i){if(Lt[i][t]){var l=Lt[i][t].replace;l&&(t=l)}return{value:t,metrics:im(t,n,i)}},zn=function(t,n,i,l,s){var u=Sc(t,n,i),f=u.metrics;t=u.value;var h;if(f){var d=f.italic;(i==="text"||l&&l.font==="mathit")&&(d=0),h=new ar(t,f.height,f.depth,d,f.skew,f.width,s)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+n+"' and mode '"+i+"'")),h=new ar(t,0,0,0,0,0,s);if(l){h.maxFontSize=l.sizeMultiplier,l.style.isTight()&&h.classes.push("mtight");var p=l.getColor();p&&(h.style.color=p)}return h},am=function(t,n,i,l){return l===void 0&&(l=[]),i.font==="boldsymbol"&&Sc(t,"Main-Bold",n).metrics?zn(t,"Main-Bold",n,i,l.concat(["mathbf"])):t==="\\"||Lt[n][t].font==="main"?zn(t,"Main-Regular",n,i,l):zn(t,"AMS-Regular",n,i,l.concat(["amsrm"]))},Iw=function(t,n,i){return i!=="textord"&&Sc(t,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},kc=function(t,n,i){var l=t.mode,s=t.text,u=["mord"],{font:f,fontFamily:h,fontWeight:d,fontShape:p}=n,m=l==="math"||l==="text"&&!!f,v=m?f:h,x="",w="";if(s.charCodeAt(0)===55349){var A=qw(s);x=A.font,w=A[l+"Class"]}if(x)return zn(s,x,l,n,u.concat(w));if(v){var C,E;if(v==="boldsymbol"){var D=Iw(s,l,i);C=D.fontName,E=[D.fontClass]}else m?(C=x1[f].fontName,E=[f]):(C=A0(h,d,p),E=[h,d,p]);if(Sc(s,C,l).metrics)return zn(s,C,l,n,u.concat(E));if(h7.hasOwnProperty(s)&&C.slice(0,10)==="Typewriter"){for(var T=[],B=0;B<s.length;B++)T.push(zn(s[B],C,l,n,u.concat(E)));return Ci(T)}}if(i==="mathord")return zn(s,"Math-Italic",l,n,u.concat(["mathnormal"]));if(i==="textord"){var U=Lt[l][s]&&Lt[l][s].font;if(U==="ams"){var z=A0("amsrm",d,p);return zn(s,z,l,n,u.concat("amsrm",d,p))}else if(U==="main"||!U){var I=A0("textrm",d,p);return zn(s,I,l,n,u.concat(d,p))}else{var P=A0(U,d,p);return zn(s,P,l,n,u.concat(P,d,p))}}else throw new Error("unexpected type: "+i+" in makeOrd")},Uw=(e,t)=>{if(ga(e.classes)!==ga(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass("mathnormal"))return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var i of Object.keys(e.style))if(e.style[i]!==t.style[i])return!1;for(var l of Object.keys(t.style))if(e.style[l]!==t.style[l])return!1;return!0},d7=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],i=e[t+1];n instanceof ar&&i instanceof ar&&Uw(n,i)&&(n.text+=i.text,n.height=Math.max(n.height,i.height),n.depth=Math.max(n.depth,i.depth),n.italic=i.italic,e.splice(t+1,1),t--)}return e},lm=function(t){for(var n=0,i=0,l=0,s=0;s<t.children.length;s++){var u=t.children[s];u.height>n&&(n=u.height),u.depth>i&&(i=u.depth),u.maxFontSize>l&&(l=u.maxFontSize)}t.height=n,t.depth=i,t.maxFontSize=l},Se=function(t,n,i,l){var s=new yo(t,n,i,l);return lm(s),s},va=(e,t,n,i)=>new yo(e,t,n,i),ro=function(t,n,i){var l=Se([t],[],n);return l.height=Math.max(i||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),l.style.borderBottomWidth=Me(l.height),l.maxFontSize=1,l},Fw=function(t,n,i,l){var s=new wc(t,n,i,l);return lm(s),s},Ci=function(t){var n=new go(t);return lm(n),n},io=function(t,n){return t instanceof go?Se([],[t],n):t},Vw=function(t){if(t.positionType==="individualShift"){for(var n=t.children,i=[n[0]],l=-n[0].shift-n[0].elem.depth,s=l,u=1;u<n.length;u++){var f=-n[u].shift-s-n[u].elem.depth,h=f-(n[u-1].elem.height+n[u-1].elem.depth);s=s+f,i.push({type:"kern",size:h}),i.push(n[u])}return{children:i,depth:l}}var d;if(t.positionType==="top"){for(var p=t.positionData,m=0;m<t.children.length;m++){var v=t.children[m];p-=v.type==="kern"?v.size:v.elem.height+v.elem.depth}d=p}else if(t.positionType==="bottom")d=-t.positionData;else{var x=t.children[0];if(x.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")d=-x.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")d=-x.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:d}},yt=function(t,n){for(var{children:i,depth:l}=Vw(t),s=0,u=0;u<i.length;u++){var f=i[u];if(f.type==="elem"){var h=f.elem;s=Math.max(s,h.maxFontSize,h.height)}}s+=2;var d=Se(["pstrut"],[]);d.style.height=Me(s);for(var p=[],m=l,v=l,x=l,w=0;w<i.length;w++){var A=i[w];if(A.type==="kern")x+=A.size;else{var C=A.elem,E=A.wrapperClasses||[],D=A.wrapperStyle||{},T=Se(E,[d,C],void 0,D);T.style.top=Me(-s-x-C.depth),A.marginLeft&&(T.style.marginLeft=A.marginLeft),A.marginRight&&(T.style.marginRight=A.marginRight),p.push(T),x+=C.height+C.depth}m=Math.min(m,x),v=Math.max(v,x)}var B=Se(["vlist"],p);B.style.height=Me(v);var U;if(m<0){var z=Se([],[]),I=Se(["vlist"],[z]);I.style.height=Me(-m);var P=Se(["vlist-s"],[new ar("​")]);U=[Se(["vlist-r"],[B,P]),Se(["vlist-r"],[I])]}else U=[Se(["vlist-r"],[B])];var $=Se(["vlist-t"],U);return U.length===2&&$.classes.push("vlist-t2"),$.height=v,$.depth=-m,$},m7=(e,t)=>{var n=Se(["mspace"],[],t),i=Ft(e,t);return n.style.marginRight=Me(i),n},A0=(e,t,n)=>{var i,l;switch(e){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=e}return t==="textbf"&&n==="textit"?l="BoldItalic":t==="textbf"?l="Bold":n==="textit"?l="Italic":l="Regular",i+"-"+l},x1={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},p7={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},g7=function(t,n){var[i,l,s]=p7[t],u=new ya(i),f=new wi([u],{width:Me(l),height:Me(s),style:"width:"+Me(l),viewBox:"0 0 "+1e3*l+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),h=va(["overlay"],[f],n);return h.height=s,h.style.height=Me(s),h.style.width=Me(l),h},Ut={number:3,unit:"mu"},Va={number:4,unit:"mu"},gi={number:5,unit:"mu"},Yw={mord:{mop:Ut,mbin:Va,mrel:gi,minner:Ut},mop:{mord:Ut,mop:Ut,mrel:gi,minner:Ut},mbin:{mord:Va,mop:Va,mopen:Va,minner:Va},mrel:{mord:gi,mop:gi,mopen:gi,minner:gi},mopen:{},mclose:{mop:Ut,mbin:Va,mrel:gi,minner:Ut},mpunct:{mord:Ut,mop:Ut,mrel:gi,mopen:Ut,mclose:Ut,mpunct:Ut,minner:Ut},minner:{mord:Ut,mop:Ut,mbin:Va,mrel:gi,mopen:Ut,mpunct:Ut,minner:Ut}},Gw={mord:{mop:Ut},mop:{mord:Ut,mop:Ut},mbin:{},mrel:{},mopen:{},mclose:{mop:Ut},mpunct:{},minner:{mop:Ut}},y7={},ec={},tc={};function ze(e){for(var{type:t,names:n,props:i,handler:l,htmlBuilder:s,mathmlBuilder:u}=e,f={type:t,numArgs:i.numArgs,argTypes:i.argTypes,allowedInArgument:!!i.allowedInArgument,allowedInText:!!i.allowedInText,allowedInMath:i.allowedInMath===void 0?!0:i.allowedInMath,numOptionalArgs:i.numOptionalArgs||0,infix:!!i.infix,primitive:!!i.primitive,handler:l},h=0;h<n.length;++h)y7[n[h]]=f;t&&(s&&(ec[t]=s),u&&(tc[t]=u))}function il(e){var{type:t,htmlBuilder:n,mathmlBuilder:i}=e;ze({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:i})}var nc=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},en=function(t){return t.type==="ordgroup"?t.body:[t]},$w=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),Xw=new Set(["rightmost","mrel","mclose","mpunct"]),Pw={display:Xe.DISPLAY,text:Xe.TEXT,script:Xe.SCRIPT,scriptscript:Xe.SCRIPTSCRIPT},Zw={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},hn=function(t,n,i,l){l===void 0&&(l=[null,null]);for(var s=[],u=0;u<t.length;u++){var f=vt(t[u],n);if(f instanceof go){var h=f.children;s.push(...h)}else s.push(f)}if(d7(s),!i)return s;var d=n;if(t.length===1){var p=t[0];p.type==="sizing"?d=n.havingSize(p.size):p.type==="styling"&&(d=n.havingStyle(Pw[p.style]))}var m=Se([l[0]||"leftmost"],[],n),v=Se([l[1]||"rightmost"],[],n),x=i==="root";return b1(s,(w,A)=>{var C=A.classes[0],E=w.classes[0];C==="mbin"&&Xw.has(E)?A.classes[0]="mord":E==="mbin"&&$w.has(C)&&(w.classes[0]="mord")},{node:m},v,x),b1(s,(w,A)=>{var C,E,D=S1(A),T=S1(w),B=D&&T?w.hasClass("mtight")?(C=Gw[D])==null?void 0:C[T]:(E=Yw[D])==null?void 0:E[T]:null;if(B)return m7(B,d)},{node:m},v,x),s},b1=function(t,n,i,l,s){l&&t.push(l);for(var u=0;u<t.length;u++){var f=t[u],h=v7(f);if(h){b1(h.children,n,i,null,s);continue}var d=!f.hasClass("mspace");if(d){var p=n(f,i.node);p&&(i.insertAfter?i.insertAfter(p):(t.unshift(p),u++))}d?i.node=f:s&&f.hasClass("newline")&&(i.node=Se(["leftmost"])),i.insertAfter=(m=>v=>{t.splice(m+1,0,v),u++})(u)}l&&t.pop()},v7=function(t){return t instanceof go||t instanceof wc||t instanceof yo&&t.hasClass("enclosing")?t:null},w1=function(t,n){var i=v7(t);if(i){var l=i.children;if(l.length){if(n==="right")return w1(l[l.length-1],"right");if(n==="left")return w1(l[0],"left")}}return t},S1=function(t,n){if(!t)return null;n&&(t=w1(t,n));var i=t.classes[0];return Zw[i]||null},Ds=function(t,n){var i=["nulldelimiter"].concat(t.baseSizingClasses());return Se(n.concat(i))},vt=function(t,n,i){if(!t)return Se();if(ec[t.type]){var l=ec[t.type](t,n);if(i&&n.size!==i.size){l=Se(n.sizingClasses(i),[l],n);var s=n.sizeMultiplier/i.sizeMultiplier;l.height*=s,l.depth*=s}return l}else throw new Ae("Got group of unknown type: '"+t.type+"'")};function C0(e,t){var n=Se(["base"],e,t),i=Se(["strut"]);return i.style.height=Me(n.height+n.depth),n.depth&&(i.style.verticalAlign=Me(-n.depth)),n.children.unshift(i),n}function k1(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var i=hn(e,t,"root"),l;i.length===2&&i[1].hasClass("tag")&&(l=i.pop());for(var s=[],u=[],f=0;f<i.length;f++)if(u.push(i[f]),i[f].hasClass("mbin")||i[f].hasClass("mrel")||i[f].hasClass("allowbreak")){for(var h=!1;f<i.length-1&&i[f+1].hasClass("mspace")&&!i[f+1].hasClass("newline");)f++,u.push(i[f]),i[f].hasClass("nobreak")&&(h=!0);h||(s.push(C0(u,t)),u=[])}else i[f].hasClass("newline")&&(u.pop(),u.length>0&&(s.push(C0(u,t)),u=[]),s.push(i[f]));u.length>0&&s.push(C0(u,t));var d;n?(d=C0(hn(n,t,!0),t),d.classes=["tag"],s.push(d)):l&&s.push(l);var p=Se(["katex-html"],s);if(p.setAttribute("aria-hidden","true"),d){var m=d.children[0];m.style.height=Me(p.height+p.depth),p.depth&&(m.style.verticalAlign=Me(-p.depth))}return p}function x7(e){return new go(e)}class Ce{constructor(t,n,i){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=i||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=ga(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof tn&&this.children[i+1]instanceof tn){for(var l=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof tn;)l+=this.children[++i].toText();t.appendChild(new tn(l).toNode())}else t.appendChild(this.children[i].toNode());return t}toMarkup(){var t="<"+this.type;for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="',t+=kn(this.attributes[n]),t+='"');this.classes.length>0&&(t+=' class ="'+kn(ga(this.classes))+'"'),t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class tn{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return kn(this.toText())}toText(){return this.text}}class b7{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Me(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Me(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var Qw=new Set(["\\imath","\\jmath"]),Kw=new Set(["mrow","mtable"]),br=function(t,n,i){return Lt[n][t]&&Lt[n][t].replace&&t.charCodeAt(0)!==55349&&!(h7.hasOwnProperty(t)&&i&&(i.fontFamily&&i.fontFamily.slice(4,6)==="tt"||i.font&&i.font.slice(4,6)==="tt"))&&(t=Lt[n][t].replace),new tn(t)},om=function(t){return t.length===1?t[0]:new Ce("mrow",t)},Jw={mathit:"italic",boldsymbol:e=>e.type==="textord"?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},sm=(e,t)=>{if(e.mode==="text"){if(t.fontFamily==="texttt")return"monospace";if(t.fontFamily==="textsf")return t.fontShape==="textit"&&t.fontWeight==="textbf"?"sans-serif-bold-italic":t.fontShape==="textit"?"sans-serif-italic":t.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(t.fontShape==="textit"&&t.fontWeight==="textbf")return"bold-italic";if(t.fontShape==="textit")return"italic";if(t.fontWeight==="textbf")return"bold"}var n=t.font;if(!n||n==="mathnormal")return null;var i=e.mode,l=Jw[n];if(l)return typeof l=="function"?l(e):l;var s=e.text;if(Qw.has(s))return null;if(Lt[i][s]){var u=Lt[i][s].replace;u&&(s=u)}var f=x1[n].fontName;return im(s,f,i)?x1[n].variant:null};function xd(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof tn&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var n=e.children[0];return n instanceof tn&&n.text===","}else return!1}var sr=function(t,n,i){if(t.length===1){var l=Mt(t[0],n);return i&&l instanceof Ce&&l.type==="mo"&&(l.setAttribute("lspace","0em"),l.setAttribute("rspace","0em")),[l]}for(var s=[],u,f=0;f<t.length;f++){var h=Mt(t[f],n);if(h instanceof Ce&&u instanceof Ce){if(h.type==="mtext"&&u.type==="mtext"&&h.getAttribute("mathvariant")===u.getAttribute("mathvariant")){u.children.push(...h.children);continue}else if(h.type==="mn"&&u.type==="mn"){u.children.push(...h.children);continue}else if(xd(h)&&u.type==="mn"){u.children.push(...h.children);continue}else if(h.type==="mn"&&xd(u))h.children=[...u.children,...h.children],s.pop();else if((h.type==="msup"||h.type==="msub")&&h.children.length>=1&&(u.type==="mn"||xd(u))){var d=h.children[0];d instanceof Ce&&d.type==="mn"&&(d.children=[...u.children,...d.children],s.pop())}else if(u.type==="mi"&&u.children.length===1){var p=u.children[0];if(p instanceof tn&&p.text==="̸"&&(h.type==="mo"||h.type==="mi"||h.type==="mn")){var m=h.children[0];m instanceof tn&&m.text.length>0&&(m.text=m.text.slice(0,1)+"̸"+m.text.slice(1),s.pop())}}}s.push(h),u=h}return s},xa=function(t,n,i){return om(sr(t,n,i))},Mt=function(t,n){if(!t)return new Ce("mrow");if(tc[t.type])return tc[t.type](t,n);throw new Ae("Got group of unknown type: '"+t.type+"'")};function g3(e,t,n,i,l){var s=sr(e,n),u;s.length===1&&s[0]instanceof Ce&&Kw.has(s[0].type)?u=s[0]:u=new Ce("mrow",s);var f=new Ce("annotation",[new tn(t)]);f.setAttribute("encoding","application/x-tex");var h=new Ce("semantics",[u,f]),d=new Ce("math",[h]);d.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),i&&d.setAttribute("display","block");var p=l?"katex":"katex-mathml";return Se([p],[d])}var Ww=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],y3=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],v3=function(t,n){return n.size<2?t:Ww[t-1][n.size-1]};class vi{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||vi.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=y3[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(n,t),new vi(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:v3(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:y3[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=v3(vi.BASESIZE,t);return this.size===n&&this.textSize===vi.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==vi.BASESIZE?["sizing","reset-size"+this.size,"size"+vi.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Lw(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}vi.BASESIZE=6;var w7=function(t){return new vi({style:t.displayMode?Xe.DISPLAY:Xe.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},S7=function(t,n){if(n.displayMode){var i=["katex-display"];n.leqno&&i.push("leqno"),n.fleqn&&i.push("fleqn"),t=Se(i,[t])}return t},eS=function(t,n,i){var l=w7(i),s;if(i.output==="mathml")return g3(t,n,l,i.displayMode,!0);if(i.output==="html"){var u=k1(t,l);s=Se(["katex"],[u])}else{var f=g3(t,n,l,i.displayMode,!1),h=k1(t,l);s=Se(["katex"],[f,h])}return S7(s,i)},tS=function(t,n,i){var l=w7(i),s=k1(t,l),u=Se(["katex"],[s]);return S7(u,i)},nS={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},Ec=function(t){var n=new Ce("mo",[new tn(nS[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},rS={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},iS=new Set(["widehat","widecheck","widetilde","utilde"]),Ac=function(t,n){function i(){var f=4e5,h=t.label.slice(1);if(iS.has(h)&&"base"in t){var d=t.base.type==="ordgroup"?t.base.body.length:1,p,m,v;if(d>5)h==="widehat"||h==="widecheck"?(p=420,f=2364,v=.42,m=h+"4"):(p=312,f=2340,v=.34,m="tilde4");else{var x=[1,1,2,2,3,3][d];h==="widehat"||h==="widecheck"?(f=[0,1062,2364,2364,2364][x],p=[0,239,300,360,420][x],v=[0,.24,.3,.3,.36,.42][x],m=h+x):(f=[0,600,1033,2339,2340][x],p=[0,260,286,306,312][x],v=[0,.26,.286,.3,.306,.34][x],m="tilde"+x)}var w=new ya(m),A=new wi([w],{width:"100%",height:Me(v),viewBox:"0 0 "+f+" "+p,preserveAspectRatio:"none"});return{span:va([],[A],n),minWidth:0,height:v}}else{var C=[],E=rS[h];if(!E)throw new Error('No SVG data for "'+h+'".');var[D,T,B]=E,U=B/1e3,z=D.length,I,P;if(z===1){if(E.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+h+'".');I=["hide-tail"],P=[E[3]]}else if(z===2)I=["halfarrow-left","halfarrow-right"],P=["xMinYMin","xMaxYMin"];else if(z===3)I=["brace-left","brace-center","brace-right"],P=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
262
+ `+z+" children.");for(var $=0;$<z;$++){var V=new ya(D[$]),G=new wi([V],{width:"400em",height:Me(U),viewBox:"0 0 "+f+" "+B,preserveAspectRatio:P[$]+" slice"}),W=va([I[$]],[G],n);if(z===1)return{span:W,minWidth:T,height:U};W.style.height=Me(U),C.push(W)}return{span:Se(["stretchy"],C,n),minWidth:T,height:U}}}var{span:l,minWidth:s,height:u}=i();return l.height=u,l.style.height=Me(u),s>0&&(l.style.minWidth=Me(s)),l},aS=function(t,n,i,l,s){var u,f=t.height+t.depth+i+l;if(/fbox|color|angl/.test(n)){if(u=Se(["stretchy",n],[],s),n==="fbox"){var h=s.color&&s.getColor();h&&(u.style.borderColor=h)}}else{var d=[];/^[bx]cancel$/.test(n)&&d.push(new d1({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&d.push(new d1({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var p=new wi(d,{width:"100%",height:Me(f)});u=va([],[p],s)}return u.height=f,u.style.height=Me(f),u},lS={bin:1,close:1,inner:1,open:1,punct:1,rel:1},oS={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function sS(e){return e in lS}function We(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Cc(e){var t=Tc(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Tc(e){return e&&(e.type==="atom"||oS.hasOwnProperty(e.type))?e:null}var k7=e=>{if(e instanceof ar)return e;if(Rw(e)&&e.children.length===1)return k7(e.children[0])},um=(e,t)=>{var n,i,l;e&&e.type==="supsub"?(i=We(e.base,"accent"),n=i.base,e.base=n,l=Ow(vt(e,t)),e.base=i):(i=We(e,"accent"),n=i.base);var s=vt(n,t.havingCrampedStyle()),u=i.isShifty&&Ei(n),f=0;if(u){var h,d;f=(h=(d=k7(s))==null?void 0:d.skew)!=null?h:0}var p=i.label==="\\c",m=p?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight),v;if(i.isStretchy)v=Ac(i,t),v=yt({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:v,wrapperClasses:["svg-align"],wrapperStyle:f>0?{width:"calc(100% - "+Me(2*f)+")",marginLeft:Me(2*f)}:void 0}]});else{var x,w;i.label==="\\vec"?(x=g7("vec",t),w=p7.vec[1]):(x=kc({mode:i.mode,text:i.label},t,"textord"),x=_w(x),x.italic=0,w=x.width,p&&(m+=x.depth)),v=Se(["accent-body"],[x]);var A=i.label==="\\textcircled";A&&(v.classes.push("accent-full"),m=s.height);var C=f;A||(C-=w/2),v.style.left=Me(C),i.label==="\\textcircled"&&(v.style.top=".2em"),v=yt({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-m},{type:"elem",elem:v}]})}var E=Se(["mord","accent"],[v],t);return l?(l.children[0]=E,l.height=Math.max(E.height,l.height),l.classes[0]="mord",l):E},E7=(e,t)=>{var n=e.isStretchy?Ec(e.label):new Ce("mo",[br(e.label,e.mode)]),i=new Ce("mover",[Mt(e.base,t),n]);return i.setAttribute("accent","true"),i},uS=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ze({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=nc(t[0]),i=!uS.test(e.funcName),l=!i||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:i,isShifty:l,base:n}},htmlBuilder:um,mathmlBuilder:E7});ze({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],i=e.parser.mode;return i==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),i="text"),{type:"accent",mode:i,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:um,mathmlBuilder:E7});ze({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:i}=e,l=t[0];return{type:"accentUnder",mode:n.mode,label:i,base:l}},htmlBuilder:(e,t)=>{var n=vt(e.base,t),i=Ac(e,t),l=e.label==="\\utilde"?.12:0,s=yt({positionType:"top",positionData:n.height,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:l},{type:"elem",elem:n}]});return Se(["mord","accentunder"],[s],t)},mathmlBuilder:(e,t)=>{var n=Ec(e.label),i=new Ce("munder",[Mt(e.base,t),n]);return i.setAttribute("accentunder","true"),i}});var T0=e=>{var t=new Ce("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ze({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:i,funcName:l}=e;return{type:"xArrow",mode:i.mode,label:l,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,i=t.havingStyle(n.sup()),l=io(vt(e.body,i,t),t),s=e.label.slice(0,2)==="\\x"?"x":"cd";l.classes.push(s+"-arrow-pad");var u;e.below&&(i=t.havingStyle(n.sub()),u=io(vt(e.below,i,t),t),u.classes.push(s+"-arrow-pad"));var f=Ac(e,t),h=-t.fontMetrics().axisHeight+.5*f.height,d=-t.fontMetrics().axisHeight-.5*f.height-.111;(l.depth>.25||e.label==="\\xleftequilibrium")&&(d-=l.depth);var p;if(u){var m=-t.fontMetrics().axisHeight+u.height+.5*f.height+.111;p=yt({positionType:"individualShift",children:[{type:"elem",elem:l,shift:d},{type:"elem",elem:f,shift:h,wrapperClasses:["svg-align"]},{type:"elem",elem:u,shift:m}]})}else p=yt({positionType:"individualShift",children:[{type:"elem",elem:l,shift:d},{type:"elem",elem:f,shift:h,wrapperClasses:["svg-align"]}]});return Se(["mrel","x-arrow"],[p],t)},mathmlBuilder(e,t){var n=Ec(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var i;if(e.body){var l=T0(Mt(e.body,t));if(e.below){var s=T0(Mt(e.below,t));i=new Ce("munderover",[n,s,l])}else i=new Ce("mover",[n,l])}else if(e.below){var u=T0(Mt(e.below,t));i=new Ce("munder",[n,u])}else i=T0(),i=new Ce("mover",[n,i]);return i}});function A7(e,t){var n=hn(e.body,t,!0);return Se([e.mclass],n,t)}function C7(e,t){var n,i=sr(e.body,t);return e.mclass==="minner"?n=new Ce("mpadded",i):e.mclass==="mord"?e.isCharacterBox?(n=i[0],n.type="mi"):n=new Ce("mi",i):(e.isCharacterBox?(n=i[0],n.type="mo"):n=new Ce("mo",i),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}ze({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:i}=e,l=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+i.slice(5),body:en(l),isCharacterBox:Ei(l)}},htmlBuilder:A7,mathmlBuilder:C7});var Mc=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};ze({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:Mc(t[0]),body:en(t[1]),isCharacterBox:Ei(t[1])}}});ze({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:i}=e,l=t[1],s=t[0],u;i!=="\\stackrel"?u=Mc(l):u="mrel";var f={type:"op",mode:l.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:i!=="\\stackrel",body:en(l)},h={type:"supsub",mode:s.mode,base:f,sup:i==="\\underset"?null:s,sub:i==="\\underset"?s:null};return{type:"mclass",mode:n.mode,mclass:u,body:[h],isCharacterBox:Ei(h)}},htmlBuilder:A7,mathmlBuilder:C7});ze({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:Mc(t[0]),body:en(t[0])}},htmlBuilder(e,t){var n=hn(e.body,t,!0),i=Se([e.mclass],n,t);return i.style.textShadow="0.02em 0.01em 0.04px",i},mathmlBuilder(e,t){var n=sr(e.body,t),i=new Ce("mstyle",n);return i.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),i}});var cS={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},x3=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),b3=e=>e.type==="textord"&&e.text==="@",fS=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function hS(e,t,n){var i=cS[e];switch(i){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(i,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var l=n.callFunction("\\\\cdleft",[t[0]],[]),s={type:"atom",text:i,mode:"math",family:"rel"},u=n.callFunction("\\Big",[s],[]),f=n.callFunction("\\\\cdright",[t[1]],[]),h={type:"ordgroup",mode:"math",body:[l,u,f]};return n.callFunction("\\\\cdparent",[h],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var d={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[d],[])}default:return{type:"textord",text:" ",mode:"math"}}}function dS(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Ae("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var i=[],l=[i],s=0;s<t.length;s++){for(var u=t[s],f=x3(),h=0;h<u.length;h++)if(!b3(u[h]))f.body.push(u[h]);else{i.push(f),h+=1;var d=Cc(u[h]).text,p=new Array(2);if(p[0]={type:"ordgroup",mode:"math",body:[]},p[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(d))if("<>AV".includes(d))for(var m=0;m<2;m++){for(var v=!0,x=h+1;x<u.length;x++){if(fS(u[x],d)){v=!1,h=x;break}if(b3(u[x]))throw new Ae("Missing a "+d+" character to complete a CD arrow.",u[x]);p[m].body.push(u[x])}if(v)throw new Ae("Missing a "+d+" character to complete a CD arrow.",u[h])}else throw new Ae('Expected one of "<>AV=|." after @',u[h]);var w=hS(d,p,e),A={type:"styling",body:[w],mode:"math",style:"display",resetFont:!0};i.push(A),f=x3()}s%2===0?i.push(f):i.shift(),i=[],l.push(i)}e.gullet.endGroup(),e.gullet.endGroup();var C=new Array(l[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:l,arraystretch:1,addJot:!0,rowGaps:[null],cols:C,colSeparationType:"CD",hLinesBeforeRow:new Array(l.length+1).fill([])}}ze({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:i}=e;return{type:"cdlabel",mode:n.mode,side:i.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),i=io(vt(e.label,n,t),t);return i.classes.push("cd-label-"+e.side),i.style.bottom=Me(.8-i.depth),i.height=0,i.depth=0,i},mathmlBuilder(e,t){var n=new Ce("mrow",[Mt(e.label,t)]);return n=new Ce("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new Ce("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});ze({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=io(vt(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new Ce("mrow",[Mt(e.fragment,t)])}});ze({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,i=We(t[0],"ordgroup"),l=i.body,s="",u=0;u<l.length;u++){var f=We(l[u],"textord");s+=f.text}var h=parseInt(s),d;if(isNaN(h))throw new Ae("\\@char has non-numeric argument "+s);if(h<0||h>=1114111)throw new Ae("\\@char with invalid code point "+s);return h<=65535?d=String.fromCharCode(h):(h-=65536,d=String.fromCharCode((h>>10)+55296,(h&1023)+56320)),{type:"textord",mode:n.mode,text:d}}});var T7=(e,t)=>{var n=hn(e.body,t.withColor(e.color),!1);return Ci(n)},M7=(e,t)=>{var n=sr(e.body,t.withColor(e.color)),i=new Ce("mstyle",n);return i.setAttribute("mathcolor",e.color),i};ze({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,i=We(t[0],"color-token").color,l=t[1];return{type:"color",mode:n.mode,color:i,body:en(l)}},htmlBuilder:T7,mathmlBuilder:M7});ze({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:i}=e,l=We(t[0],"color-token").color;n.gullet.macros.set("\\current@color",l);var s=n.parseExpression(!0,i);return{type:"color",mode:n.mode,color:l,body:s}},htmlBuilder:T7,mathmlBuilder:M7});ze({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:i}=e,l=i.gullet.future().text==="["?i.parseSizeGroup(!0):null,s=!i.settings.displayMode||!i.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:i.mode,newLine:s,size:l&&We(l,"size").value}},htmlBuilder(e,t){var n=Se(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=Me(Ft(e.size,t)))),n},mathmlBuilder(e,t){var n=new Ce("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",Me(Ft(e.size,t)))),n}});var E1={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},z7=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Ae("Expected a control sequence",e);return t},mS=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},N7=(e,t,n,i)=>{var l=e.gullet.macros.get(n.text);l==null&&(n.noexpand=!0,l={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,l,i)};ze({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var i=t.fetch();if(E1[i.text])return(n==="\\global"||n==="\\\\globallong")&&(i.text=E1[i.text]),We(t.parseFunction(),"internal");throw new Ae("Invalid token after macro prefix",i)}});ze({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=t.gullet.popToken(),l=i.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(l))throw new Ae("Expected a control sequence",i);for(var s=0,u,f=[[]];t.gullet.future().text!=="{";)if(i=t.gullet.popToken(),i.text==="#"){if(t.gullet.future().text==="{"){u=t.gullet.future(),f[s].push("{");break}if(i=t.gullet.popToken(),!/^[1-9]$/.test(i.text))throw new Ae('Invalid argument number "'+i.text+'"');if(parseInt(i.text)!==s+1)throw new Ae('Argument number "'+i.text+'" out of order');s++,f.push([])}else{if(i.text==="EOF")throw new Ae("Expected a macro definition");f[s].push(i.text)}var{tokens:h}=t.gullet.consumeArg();return u&&h.unshift(u),(n==="\\edef"||n==="\\xdef")&&(h=t.gullet.expandTokens(h),h.reverse()),t.gullet.macros.set(l,{tokens:h,numArgs:s,delimiters:f},n===E1[n]),{type:"internal",mode:t.mode}}});ze({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=z7(t.gullet.popToken());t.gullet.consumeSpaces();var l=mS(t);return N7(t,i,l,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});ze({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=z7(t.gullet.popToken()),l=t.gullet.popToken(),s=t.gullet.popToken();return N7(t,i,s,n==="\\\\globalfuture"),t.gullet.pushToken(s),t.gullet.pushToken(l),{type:"internal",mode:t.mode}}});var bs=function(t,n,i){var l=Lt.math[t]&&Lt.math[t].replace,s=im(l||t,n,i);if(!s)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return s},cm=function(t,n,i,l){var s=i.havingBaseStyle(n),u=Se(l.concat(s.sizingClasses(i)),[t],i),f=s.sizeMultiplier/i.sizeMultiplier;return u.height*=f,u.depth*=f,u.maxFontSize=s.sizeMultiplier,u},D7=function(t,n,i){var l=n.havingBaseStyle(i),s=(1-n.sizeMultiplier/l.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Me(s),t.height-=s,t.depth+=s},pS=function(t,n,i,l,s,u){var f=zn(t,"Main-Regular",s,l),h=cm(f,n,l,u);return D7(h,l,n),h},gS=function(t,n,i,l){return zn(t,"Size"+n+"-Regular",i,l)},_7=function(t,n,i,l,s,u){var f=gS(t,n,s,l),h=cm(Se(["delimsizing","size"+n],[f],l),Xe.TEXT,l,u);return i&&D7(h,l,Xe.TEXT),h},bd=function(t,n,i){var l;n==="Size1-Regular"?l="delim-size1":l="delim-size4";var s=Se(["delimsizinginner",l],[Se([],[zn(t,n,i)])]);return{type:"elem",elem:s}},wd=function(t,n,i){var l=Ur["Size4-Regular"][t.charCodeAt(0)]?Ur["Size4-Regular"][t.charCodeAt(0)][4]:Ur["Size1-Regular"][t.charCodeAt(0)][4],s=new ya("inner",Aw(t,Math.round(1e3*n))),u=new wi([s],{width:Me(l),height:Me(n),style:"width:"+Me(l),viewBox:"0 0 "+1e3*l+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),f=va([],[u],i);return f.height=n,f.style.height=Me(n),f.style.width=Me(l),{type:"elem",elem:f}},A1=.008,M0={type:"kern",size:-1*A1},yS=new Set(["|","\\lvert","\\rvert","\\vert"]),vS=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),O7=function(t,n,i,l,s,u){var f,h,d,p,m="",v=0;f=d=p=t,h=null;var x="Size1-Regular";t==="\\uparrow"?d=p="⏐":t==="\\Uparrow"?d=p="‖":t==="\\downarrow"?f=d="⏐":t==="\\Downarrow"?f=d="‖":t==="\\updownarrow"?(f="\\uparrow",d="⏐",p="\\downarrow"):t==="\\Updownarrow"?(f="\\Uparrow",d="‖",p="\\Downarrow"):yS.has(t)?(d="∣",m="vert",v=333):vS.has(t)?(d="∥",m="doublevert",v=556):t==="["||t==="\\lbrack"?(f="⎡",d="⎢",p="⎣",x="Size4-Regular",m="lbrack",v=667):t==="]"||t==="\\rbrack"?(f="⎤",d="⎥",p="⎦",x="Size4-Regular",m="rbrack",v=667):t==="\\lfloor"||t==="⌊"?(d=f="⎢",p="⎣",x="Size4-Regular",m="lfloor",v=667):t==="\\lceil"||t==="⌈"?(f="⎡",d=p="⎢",x="Size4-Regular",m="lceil",v=667):t==="\\rfloor"||t==="⌋"?(d=f="⎥",p="⎦",x="Size4-Regular",m="rfloor",v=667):t==="\\rceil"||t==="⌉"?(f="⎤",d=p="⎥",x="Size4-Regular",m="rceil",v=667):t==="("||t==="\\lparen"?(f="⎛",d="⎜",p="⎝",x="Size4-Regular",m="lparen",v=875):t===")"||t==="\\rparen"?(f="⎞",d="⎟",p="⎠",x="Size4-Regular",m="rparen",v=875):t==="\\{"||t==="\\lbrace"?(f="⎧",h="⎨",p="⎩",d="⎪",x="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(f="⎫",h="⎬",p="⎭",d="⎪",x="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(f="⎧",p="⎩",d="⎪",x="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(f="⎫",p="⎭",d="⎪",x="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(f="⎧",p="⎭",d="⎪",x="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(f="⎫",p="⎩",d="⎪",x="Size4-Regular");var w=bs(f,x,s),A=w.height+w.depth,C=bs(d,x,s),E=C.height+C.depth,D=bs(p,x,s),T=D.height+D.depth,B=0,U=1;if(h!==null){var z=bs(h,x,s);B=z.height+z.depth,U=2}var I=A+T+B,P=Math.max(0,Math.ceil((n-I)/(U*E))),$=I+P*U*E,V=l.fontMetrics().axisHeight;i&&(V*=l.sizeMultiplier);var G=$/2-V,W=[];if(m.length>0){var ce=$-A-T,q=Math.round($*1e3),F=Cw(m,Math.round(ce*1e3)),L=new ya(m,F),Y=Me(v/1e3),J=Me(q/1e3),ne=new wi([L],{width:Y,height:J,viewBox:"0 0 "+v+" "+q}),R=va([],[ne],l);R.height=q/1e3,R.style.width=Y,R.style.height=J,W.push({type:"elem",elem:R})}else{if(W.push(bd(p,x,s)),W.push(M0),h===null){var j=$-A-T+2*A1;W.push(wd(d,j,l))}else{var Q=($-A-T-B)/2+2*A1;W.push(wd(d,Q,l)),W.push(M0),W.push(bd(h,x,s)),W.push(M0),W.push(wd(d,Q,l))}W.push(M0),W.push(bd(f,x,s))}var _=l.havingBaseStyle(Xe.TEXT),se=yt({positionType:"bottom",positionData:G,children:W});return cm(Se(["delimsizing","mult"],[se],_),Xe.TEXT,l,u)},Sd=80,kd=.08,Ed=function(t,n,i,l,s){var u=Ew(t,l,i),f=new ya(t,u),h=new wi([f],{width:"400em",height:Me(n),viewBox:"0 0 400000 "+i,preserveAspectRatio:"xMinYMin slice"});return va(["hide-tail"],[h],s)},xS=function(t,n){var i=n.havingBaseSizing(),l=j7("\\surd",t*i.sizeMultiplier,H7,i),s=i.sizeMultiplier,u=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),f,h,d,p,m;return l.type==="small"?(p=1e3+1e3*u+Sd,t<1?s=1:t<1.4&&(s=.7),h=(1+u+kd)/s,d=(1+u)/s,f=Ed("sqrtMain",h,p,u,n),f.style.minWidth="0.853em",m=.833/s):l.type==="large"?(p=(1e3+Sd)*ks[l.size],d=(ks[l.size]+u)/s,h=(ks[l.size]+u+kd)/s,f=Ed("sqrtSize"+l.size,h,p,u,n),f.style.minWidth="1.02em",m=1/s):(h=t+u+kd,d=t+u,p=Math.floor(1e3*t+u)+Sd,f=Ed("sqrtTall",h,p,u,n),f.style.minWidth="0.742em",m=1.056),f.height=d,f.style.height=Me(h),{span:f,advanceWidth:m,ruleWidth:(n.fontMetrics().sqrtRuleThickness+u)*s}},R7=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),bS=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),B7=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),ks=[0,1.2,1.8,2.4,3],L7=function(t,n,i,l,s){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),R7.has(t)||B7.has(t))return _7(t,n,!1,i,l,s);if(bS.has(t))return O7(t,ks[n],!1,i,l,s);throw new Ae("Illegal delimiter: '"+t+"'")},wS=[{type:"small",style:Xe.SCRIPTSCRIPT},{type:"small",style:Xe.SCRIPT},{type:"small",style:Xe.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],SS=[{type:"small",style:Xe.SCRIPTSCRIPT},{type:"small",style:Xe.SCRIPT},{type:"small",style:Xe.TEXT},{type:"stack"}],H7=[{type:"small",style:Xe.SCRIPTSCRIPT},{type:"small",style:Xe.SCRIPT},{type:"small",style:Xe.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],kS=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";var n=t.type;throw new Error("Add support for delim type '"+n+"' here.")},j7=function(t,n,i,l){for(var s=Math.min(2,3-l.style.size),u=s;u<i.length;u++){var f=i[u];if(f.type==="stack")break;var h=bs(t,kS(f),"math"),d=h.height+h.depth;if(f.type==="small"){var p=l.havingBaseStyle(f.style);d*=p.sizeMultiplier}if(d>n)return f}return i[i.length-1]},C1=function(t,n,i,l,s,u){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var f;B7.has(t)?f=wS:R7.has(t)?f=H7:f=SS;var h=j7(t,n,f,l);return h.type==="small"?pS(t,h.style,i,l,s,u):h.type==="large"?_7(t,h.size,i,l,s,u):O7(t,n,i,l,s,u)},Ad=function(t,n,i,l,s,u){var f=l.fontMetrics().axisHeight*l.sizeMultiplier,h=901,d=5/l.fontMetrics().ptPerEm,p=Math.max(n-f,i+f),m=Math.max(p/500*h,2*p-d);return C1(t,m,!0,l,s,u)},w3={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},ES=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function S3(e){return"isMiddle"in e}function zc(e,t){var n=Tc(e);if(n&&ES.has(n.text))return n;throw n?new Ae("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new Ae("Invalid delimiter type '"+e.type+"'",e)}ze({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=zc(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:w3[e.funcName].size,mclass:w3[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?Se([e.mclass]):L7(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(br(e.delim,e.mode));var n=new Ce("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var i=Me(ks[e.size]);return n.setAttribute("minsize",i),n.setAttribute("maxsize",i),n}});function k3(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ze({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new Ae("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:zc(t[0],e).text,color:n}}});ze({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=zc(t[0],e),i=e.parser;++i.leftrightDepth;var l=i.parseExpression(!1);--i.leftrightDepth,i.expect("\\right",!1);var s=We(i.parseFunction(),"leftright-right");return{type:"leftright",mode:i.mode,body:l,left:n.text,right:s.delim,rightColor:s.color}},htmlBuilder:(e,t)=>{k3(e);for(var n=hn(e.body,t,!0,["mopen","mclose"]),i=0,l=0,s=!1,u=0;u<n.length;u++){var f=n[u];S3(f)?s=!0:(i=Math.max(n[u].height,i),l=Math.max(n[u].depth,l))}i*=t.sizeMultiplier,l*=t.sizeMultiplier;var h;if(e.left==="."?h=Ds(t,["mopen"]):h=Ad(e.left,i,l,t,e.mode,["mopen"]),n.unshift(h),s)for(var d=1;d<n.length;d++){var p=n[d];if(S3(p)){var m=p.isMiddle;n[d]=Ad(m.delim,i,l,m.options,e.mode,[])}}var v;if(e.right===".")v=Ds(t,["mclose"]);else{var x=e.rightColor?t.withColor(e.rightColor):t;v=Ad(e.right,i,l,x,e.mode,["mclose"])}return n.push(v),Se(["minner"],n,t)},mathmlBuilder:(e,t)=>{k3(e);var n=sr(e.body,t);if(e.left!=="."){var i=new Ce("mo",[br(e.left,e.mode)]);i.setAttribute("fence","true"),n.unshift(i)}if(e.right!=="."){var l=new Ce("mo",[br(e.right,e.mode)]);l.setAttribute("fence","true"),e.rightColor&&l.setAttribute("mathcolor",e.rightColor),n.push(l)}return om(n)}});ze({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=zc(t[0],e);if(!e.parser.leftrightDepth)throw new Ae("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim==="."?n=Ds(t,[]):(n=L7(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?br("|","text"):br(e.delim,e.mode),i=new Ce("mo",[n]);return i.setAttribute("fence","true"),i.setAttribute("lspace","0.05em"),i.setAttribute("rspace","0.05em"),i}});var Nc=(e,t)=>{var n=io(vt(e.body,t),t),i=e.label.slice(1),l=t.sizeMultiplier,s,u,f=Ei(e.body);if(i==="sout")s=Se(["stretchy","sout"]),s.height=t.fontMetrics().defaultRuleThickness/l,u=-.5*t.fontMetrics().xHeight;else if(i==="phase"){var h=Ft({number:.6,unit:"pt"},t),d=Ft({number:.35,unit:"ex"},t),p=t.havingBaseSizing();l=l/p.sizeMultiplier;var m=n.height+n.depth+h+d;n.style.paddingLeft=Me(m/2+h);var v=Math.floor(1e3*m*l),x=Sw(v),w=new wi([new ya("phase",x)],{width:"400em",height:Me(v/1e3),viewBox:"0 0 400000 "+v,preserveAspectRatio:"xMinYMin slice"});s=va(["hide-tail"],[w],t),s.style.height=Me(m),u=n.depth+h+d}else{/cancel/.test(i)?f||n.classes.push("cancel-pad"):i==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var A,C,E=0;/box/.test(i)?(E=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),A=t.fontMetrics().fboxsep+(i==="colorbox"?0:E),C=A):i==="angl"?(E=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),A=4*E,C=Math.max(0,.25-n.depth)):(A=f?.2:0,C=A),s=aS(n,i,A,C,t),/fbox|boxed|fcolorbox/.test(i)?(s.style.borderStyle="solid",s.style.borderWidth=Me(E)):i==="angl"&&E!==.049&&(s.style.borderTopWidth=Me(E),s.style.borderRightWidth=Me(E)),u=n.depth+C,e.backgroundColor&&(s.style.backgroundColor=e.backgroundColor,e.borderColor&&(s.style.borderColor=e.borderColor))}var D;if(e.backgroundColor)D=yt({positionType:"individualShift",children:[{type:"elem",elem:s,shift:u},{type:"elem",elem:n,shift:0}]});else{var T=/cancel|phase/.test(i)?["svg-align"]:[];D=yt({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:s,shift:u,wrapperClasses:T}]})}return/cancel/.test(i)&&(D.height=n.height,D.depth=n.depth),/cancel/.test(i)&&!f?Se(["mord","cancel-lap"],[D],t):Se(["mord"],[D],t)},Dc=(e,t)=>{var n,i=new Ce(e.label.includes("colorbox")?"mpadded":"menclose",[Mt(e.body,t)]);switch(e.label){case"\\cancel":i.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":i.setAttribute("notation","downdiagonalstrike");break;case"\\phase":i.setAttribute("notation","phasorangle");break;case"\\sout":i.setAttribute("notation","horizontalstrike");break;case"\\fbox":i.setAttribute("notation","box");break;case"\\angl":i.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,i.setAttribute("width","+"+2*n+"pt"),i.setAttribute("height","+"+2*n+"pt"),i.setAttribute("lspace",n+"pt"),i.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var l=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);i.setAttribute("style","border: "+Me(l)+" solid "+e.borderColor)}break;case"\\xcancel":i.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&i.setAttribute("mathbackground",e.backgroundColor),i};ze({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","hbox"]},handler(e,t,n){var{parser:i,funcName:l}=e,s=We(t[0],"color-token").color,u=t[1];return{type:"enclose",mode:i.mode,label:l,backgroundColor:s,body:u}},htmlBuilder:Nc,mathmlBuilder:Dc});ze({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"]},handler(e,t,n){var{parser:i,funcName:l}=e,s=We(t[0],"color-token").color,u=We(t[1],"color-token").color,f=t[2];return{type:"enclose",mode:i.mode,label:l,backgroundColor:u,borderColor:s,body:f}},htmlBuilder:Nc,mathmlBuilder:Dc});ze({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});ze({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:i}=e,l=t[0];return{type:"enclose",mode:n.mode,label:i,body:l}},htmlBuilder:Nc,mathmlBuilder:Dc});ze({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n,funcName:i}=e;n.mode==="math"&&n.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var l=t[0];return{type:"enclose",mode:n.mode,label:i,body:l}},htmlBuilder:Nc,mathmlBuilder:Dc});ze({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var q7={};function Yr(e){for(var{type:t,names:n,props:i,handler:l,htmlBuilder:s,mathmlBuilder:u}=e,f={type:t,numArgs:i.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:l},h=0;h<n.length;++h)q7[n[h]]=f;s&&(ec[t]=s),u&&(tc[t]=u)}var I7={};function H(e,t){I7[e]=t}class Vn{constructor(t,n,i){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=n,this.end=i}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new Vn(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class rr{constructor(t,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=n}range(t,n){return new rr(n,Vn.range(this,t))}}function E3(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n==="\\relax"&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n==="\\hline"||n==="\\hdashline";)e.consume(),t.push(n==="\\hdashline"),e.consumeSpaces(),n=e.fetch().text;return t}var _c=e=>{var t=e.parser.settings;if(!t.displayMode)throw new Ae("{"+e.envName+"} can be used only in display mode.")},AS=new Set(["gather","gather*"]);function fm(e){if(!e.includes("ed"))return!e.includes("*")}function ba(e,t,n){var{hskipBeforeAndAfter:i,addJot:l,cols:s,arraystretch:u,colSeparationType:f,autoTag:h,singleRow:d,emptySingleRow:p,maxNumCols:m,leqno:v}=t;if(e.gullet.beginGroup(),d||e.gullet.macros.set("\\cr","\\\\\\relax"),!u){var x=e.gullet.expandMacroAsText("\\arraystretch");if(x==null)u=1;else if(u=parseFloat(x),!u||u<0)throw new Ae("Invalid \\arraystretch: "+x)}e.gullet.beginGroup();var w=[],A=[w],C=[],E=[],D=h!=null?[]:void 0;function T(){h&&e.gullet.macros.set("\\@eqnsw","1",!0)}function B(){D&&(e.gullet.macros.get("\\df@tag")?(D.push(e.subparse([new rr("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):D.push(!!h&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(T(),E.push(E3(e));;){var U=e.parseExpression(!1,d?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var z={type:"ordgroup",mode:e.mode,body:U};n&&(z={type:"styling",mode:e.mode,style:n,resetFont:!0,body:[z]}),w.push(z);var I=e.fetch().text;if(I==="&"){if(m&&w.length===m){if(d||f)throw new Ae("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(I==="\\end"){B(),w.length===1&&z.type==="styling"&&z.body.length===1&&z.body[0].type==="ordgroup"&&z.body[0].body.length===0&&(A.length>1||!p)&&A.pop(),E.length<A.length+1&&E.push([]);break}else if(I==="\\\\"){e.consume();var P=void 0;e.gullet.future().text!==" "&&(P=e.parseSizeGroup(!0)),C.push(P?P.value:null),B(),E.push(E3(e)),w=[],A.push(w),T()}else throw new Ae("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:l,arraystretch:u,body:A,cols:s,rowGaps:C,hskipBeforeAndAfter:i,hLinesBeforeRow:E,colSeparationType:f,tags:D,leqno:v}}function hm(e){return e.slice(0,1)==="d"?"display":"text"}var Gr=function(t,n){var i,l,s=t.body.length,u=t.hLinesBeforeRow,f=0,h=new Array(s),d=[],p=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),m=1/n.fontMetrics().ptPerEm,v=5*m;if(t.colSeparationType&&t.colSeparationType==="small"){var x=n.havingStyle(Xe.SCRIPT).sizeMultiplier;v=.2778*(x/n.sizeMultiplier)}var w=t.colSeparationType==="CD"?Ft({number:3,unit:"ex"},n):12*m,A=3*m,C=t.arraystretch*w,E=.7*C,D=.3*C,T=0;function B(Re){for(var $e=0;$e<Re.length;++$e)$e>0&&(T+=.25),d.push({pos:T,isDashed:Re[$e]})}for(B(u[0]),i=0;i<t.body.length;++i){var U=t.body[i],z=E,I=D;f<U.length&&(f=U.length);var P={cells:new Array(U.length),height:0,depth:0,pos:0};for(l=0;l<U.length;++l){var $=vt(U[l],n);I<$.depth&&(I=$.depth),z<$.height&&(z=$.height),P.cells[l]=$}var V=t.rowGaps[i],G=0;V&&(G=Ft(V,n),G>0&&(G+=D,I<G&&(I=G),G=0)),t.addJot&&i<t.body.length-1&&(I+=A),P.height=z,P.depth=I,T+=z,P.pos=T,T+=I+G,h[i]=P,B(u[i+1])}var W=T/2+n.fontMetrics().axisHeight,ce=t.cols||[],q=[],F,L,Y=[];if(t.tags&&t.tags.some(Re=>Re))for(i=0;i<s;++i){var J=h[i],ne=J.pos-W,R=t.tags[i],j=void 0;R===!0?j=Se(["eqn-num"],[],n):R===!1?j=Se([],[],n):j=Se([],hn(R,n,!0),n),j.depth=J.depth,j.height=J.height,Y.push({type:"elem",elem:j,shift:ne})}for(l=0,L=0;l<f||L<ce.length;++l,++L){for(var Q,_=ce[L],se=!0;((ve=_)==null?void 0:ve.type)==="separator";){var ve;if(se||(F=Se(["arraycolsep"],[]),F.style.width=Me(n.fontMetrics().doubleRuleSep),q.push(F)),_.separator==="|"||_.separator===":"){var be=_.separator==="|"?"solid":"dashed",we=Se(["vertical-separator"],[],n);we.style.height=Me(T),we.style.borderRightWidth=Me(p),we.style.borderRightStyle=be,we.style.margin="0 "+Me(-p/2);var ge=T-W;ge&&(we.style.verticalAlign=Me(-ge)),q.push(we)}else throw new Ae("Invalid separator type: "+_.separator);L++,_=ce[L],se=!1}if(!(l>=f)){var ke=void 0;if(l>0||t.hskipBeforeAndAfter){var je,qe;ke=(je=(qe=_)==null?void 0:qe.pregap)!=null?je:v,ke!==0&&(F=Se(["arraycolsep"],[]),F.style.width=Me(ke),q.push(F))}var _e=[];for(i=0;i<s;++i){var Le=h[i],Ye=Le.cells[l];if(Ye){var tt=Le.pos-W;Ye.depth=Le.depth,Ye.height=Le.height,_e.push({type:"elem",elem:Ye,shift:tt})}}var et=yt({positionType:"individualShift",children:_e}),ht=Se(["col-align-"+(((Q=_)==null?void 0:Q.align)||"c")],[et]);if(q.push(ht),l<f-1||t.hskipBeforeAndAfter){var me,Ue;ke=(me=(Ue=_)==null?void 0:Ue.postgap)!=null?me:v,ke!==0&&(F=Se(["arraycolsep"],[]),F.style.width=Me(ke),q.push(F))}}}var nt=Se(["mtable"],q);if(d.length>0){for(var At=ro("hline",n,p),Ct=ro("hdashline",n,p),An=[{type:"elem",elem:nt,shift:0}];d.length>0;){var Ot=d.pop(),On=Ot.pos-W;Ot.isDashed?An.push({type:"elem",elem:Ct,shift:On}):An.push({type:"elem",elem:At,shift:On})}nt=yt({positionType:"individualShift",children:An})}if(Y.length===0)return Se(["mord"],[nt],n);var fe=yt({positionType:"individualShift",children:Y}),Ee=Se(["tag"],[fe],n);return Ci([nt,Ee])},CS={c:"center ",l:"left ",r:"right "},$r=function(t,n){for(var i=[],l=new Ce("mtd",[],["mtr-glue"]),s=new Ce("mtd",[],["mml-eqn-num"]),u=0;u<t.body.length;u++){for(var f=t.body[u],h=[],d=0;d<f.length;d++)h.push(new Ce("mtd",[Mt(f[d],n)]));t.tags&&t.tags[u]&&(h.unshift(l),h.push(l),t.leqno?h.unshift(s):h.push(s)),i.push(new Ce("mtr",h))}var p=new Ce("mtable",i),m=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);p.setAttribute("rowspacing",Me(m));var v="",x="";if(t.cols&&t.cols.length>0){var w=t.cols,A="",C=!1,E=0,D=w.length;w[0].type==="separator"&&(v+="top ",E=1),w[w.length-1].type==="separator"&&(v+="bottom ",D-=1);for(var T=E;T<D;T++){var B=w[T];B.type==="align"?(x+=CS[B.align],C&&(A+="none "),C=!0):B.type==="separator"&&C&&(A+=B.separator==="|"?"solid ":"dashed ",C=!1)}p.setAttribute("columnalign",x.trim()),/[sd]/.test(A)&&p.setAttribute("columnlines",A.trim())}if(t.colSeparationType==="align"){for(var U=t.cols||[],z="",I=1;I<U.length;I++)z+=I%2?"0em ":"1em ";p.setAttribute("columnspacing",z.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?p.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?p.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?p.setAttribute("columnspacing","0.5em"):p.setAttribute("columnspacing","1em");var P="",$=t.hLinesBeforeRow;v+=$[0].length>0?"left ":"",v+=$[$.length-1].length>0?"right ":"";for(var V=1;V<$.length-1;V++)P+=$[V].length===0?"none ":$[V][0]?"dashed ":"solid ";return/[sd]/.test(P)&&p.setAttribute("rowlines",P.trim()),v!==""&&(p=new Ce("menclose",[p]),p.setAttribute("notation",v.trim())),t.arraystretch&&t.arraystretch<1&&(p=new Ce("mstyle",[p]),p.setAttribute("scriptlevel","1")),p},U7=function(t,n){t.envName.includes("ed")||_c(t);var i=[],l=t.envName.includes("at")?"alignat":"align",s=t.envName==="split",u=ba(t.parser,{cols:i,addJot:!0,autoTag:s?void 0:fm(t.envName),emptySingleRow:!0,colSeparationType:l,maxNumCols:s?2:void 0,leqno:t.parser.settings.leqno},"display"),f=0,h=0,d={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var p="",m=0;m<n[0].body.length;m++){var v=We(n[0].body[m],"textord");p+=v.text}f=Number(p),h=f*2}var x=!h;u.body.forEach(function(E){for(var D=1;D<E.length;D+=2){var T=We(E[D],"styling"),B=We(T.body[0],"ordgroup");B.body.unshift(d)}if(x)h<E.length&&(h=E.length);else{var U=E.length/2;if(f<U)throw new Ae("Too many math in a row: "+("expected "+f+", but got "+U),E[0])}});for(var w=0;w<h;++w){var A="r",C=0;w%2===1?A="l":w>0&&x&&(C=1),i[w]={type:"align",align:A,pregap:C,postgap:0}}return u.colSeparationType=x?"align":"alignat",u};Yr({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=Tc(t[0]),i=n?[t[0]]:We(t[0],"ordgroup").body,l=i.map(function(u){var f=Cc(u),h=f.text;if("lcr".includes(h))return{type:"align",align:h};if(h==="|")return{type:"separator",separator:"|"};if(h===":")return{type:"separator",separator:":"};throw new Ae("Unknown column alignment: "+h,u)}),s={cols:l,hskipBeforeAndAfter:!0,maxNumCols:l.length};return ba(e.parser,s,hm(e.envName))},htmlBuilder:Gr,mathmlBuilder:$r});Yr({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",i={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var l=e.parser;if(l.consumeSpaces(),l.fetch().text==="["){if(l.consume(),l.consumeSpaces(),n=l.fetch().text,!"lcr".includes(n))throw new Ae("Expected l or c or r",l.nextToken);l.consume(),l.consumeSpaces(),l.expect("]"),l.consume(),i.cols=[{type:"align",align:n}]}}var s=ba(e.parser,i,hm(e.envName)),u=Math.max(0,...s.body.map(f=>f.length));return s.cols=new Array(u).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[s],left:t[0],right:t[1],rightColor:void 0}:s},htmlBuilder:Gr,mathmlBuilder:$r});Yr({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=ba(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:Gr,mathmlBuilder:$r});Yr({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=Tc(t[0]),i=n?[t[0]]:We(t[0],"ordgroup").body,l=i.map(function(f){var h=Cc(f),d=h.text;if("lc".includes(d))return{type:"align",align:d};throw new Ae("Unknown column alignment: "+d,f)});if(l.length>1)throw new Ae("{subarray} can contain only one column");var s={cols:l,hskipBeforeAndAfter:!1,arraystretch:.5},u=ba(e.parser,s,"script");if(u.body.length>0&&u.body[0].length>1)throw new Ae("{subarray} can contain only one column");return u},htmlBuilder:Gr,mathmlBuilder:$r});Yr({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=ba(e.parser,t,hm(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Gr,mathmlBuilder:$r});Yr({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:U7,htmlBuilder:Gr,mathmlBuilder:$r});Yr({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){AS.has(e.envName)&&_c(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:fm(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return ba(e.parser,t,"display")},htmlBuilder:Gr,mathmlBuilder:$r});Yr({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:U7,htmlBuilder:Gr,mathmlBuilder:$r});Yr({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){_c(e);var t={autoTag:fm(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return ba(e.parser,t,"display")},htmlBuilder:Gr,mathmlBuilder:$r});Yr({type:"array",names:["CD"],props:{numArgs:0},handler(e){return _c(e),dS(e.parser)},htmlBuilder:Gr,mathmlBuilder:$r});H("\\nonumber","\\gdef\\@eqnsw{0}");H("\\notag","\\nonumber");ze({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Ae(e.funcName+" valid only within array environment")}});var A3=q7;ze({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:i}=e,l=t[0];if(l.type!=="ordgroup")throw new Ae("Invalid environment name",l);for(var s="",u=0;u<l.body.length;++u)s+=We(l.body[u],"textord").text;if(i==="\\begin"){if(!A3.hasOwnProperty(s))throw new Ae("No such environment: "+s,l);var f=A3[s],{args:h,optArgs:d}=n.parseArguments("\\begin{"+s+"}",f),p={mode:n.mode,envName:s,parser:n},m=f.handler(p,h,d);n.expect("\\end",!1);var v=n.nextToken,x=We(n.parseFunction(),"environment");if(x.name!==s)throw new Ae("Mismatch: \\begin{"+s+"} matched by \\end{"+x.name+"}",v);return m}return{type:"environment",mode:n.mode,name:s,nameGroup:l}}});var F7=(e,t)=>{var n=e.font,i=t.withFont(n);return vt(e.body,i)},V7=(e,t)=>{var n=e.font,i=t.withFont(n);return Mt(e.body,i)},C3={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};ze({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:i}=e,l=nc(t[0]),s=i;return s in C3&&(s=C3[s]),{type:"font",mode:n.mode,font:s.slice(1),body:l}},htmlBuilder:F7,mathmlBuilder:V7});ze({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:Mc(i),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:i}],isCharacterBox:Ei(i)}}});ze({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:i,breakOnTokenText:l}=e,{mode:s}=n,u=n.parseExpression(!0,l);return{type:"font",mode:s,font:"math"+i.slice(1),body:{type:"ordgroup",mode:n.mode,body:u}}},htmlBuilder:F7,mathmlBuilder:V7});var TS=(e,t)=>{var n=t.style,i=n.fracNum(),l=n.fracDen(),s;s=t.havingStyle(i);var u=vt(e.numer,s,t);if(e.continued){var f=8.5/t.fontMetrics().ptPerEm,h=3.5/t.fontMetrics().ptPerEm;u.height=u.height<f?f:u.height,u.depth=u.depth<h?h:u.depth}s=t.havingStyle(l);var d=vt(e.denom,s,t),p,m,v;e.hasBarLine?(e.barSize?(m=Ft(e.barSize,t),p=ro("frac-line",t,m)):p=ro("frac-line",t),m=p.height,v=p.height):(p=null,m=0,v=t.fontMetrics().defaultRuleThickness);var x,w,A;n.size===Xe.DISPLAY.size?(x=t.fontMetrics().num1,m>0?w=3*v:w=7*v,A=t.fontMetrics().denom1):(m>0?(x=t.fontMetrics().num2,w=v):(x=t.fontMetrics().num3,w=3*v),A=t.fontMetrics().denom2);var C;if(p){var D=t.fontMetrics().axisHeight;x-u.depth-(D+.5*m)<w&&(x+=w-(x-u.depth-(D+.5*m))),D-.5*m-(d.height-A)<w&&(A+=w-(D-.5*m-(d.height-A)));var T=-(D-.5*m);C=yt({positionType:"individualShift",children:[{type:"elem",elem:d,shift:A},{type:"elem",elem:p,shift:T},{type:"elem",elem:u,shift:-x}]})}else{var E=x-u.depth-(d.height-A);E<w&&(x+=.5*(w-E),A+=.5*(w-E)),C=yt({positionType:"individualShift",children:[{type:"elem",elem:d,shift:A},{type:"elem",elem:u,shift:-x}]})}s=t.havingStyle(n),C.height*=s.sizeMultiplier/t.sizeMultiplier,C.depth*=s.sizeMultiplier/t.sizeMultiplier;var B;n.size===Xe.DISPLAY.size?B=t.fontMetrics().delim1:n.size===Xe.SCRIPTSCRIPT.size?B=t.havingStyle(Xe.SCRIPT).fontMetrics().delim2:B=t.fontMetrics().delim2;var U,z;return e.leftDelim==null?U=Ds(t,["mopen"]):U=C1(e.leftDelim,B,!0,t.havingStyle(n),e.mode,["mopen"]),e.continued?z=Se([]):e.rightDelim==null?z=Ds(t,["mclose"]):z=C1(e.rightDelim,B,!0,t.havingStyle(n),e.mode,["mclose"]),Se(["mord"].concat(s.sizingClasses(t)),[U,Se(["mfrac"],[C]),z],t)},MS=(e,t)=>{var n=new Ce("mfrac",[Mt(e.numer,t),Mt(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var i=Ft(e.barSize,t);n.setAttribute("linethickness",Me(i))}if(e.leftDelim!=null||e.rightDelim!=null){var l=[];if(e.leftDelim!=null){var s=new Ce("mo",[new tn(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),l.push(s)}if(l.push(n),e.rightDelim!=null){var u=new Ce("mo",[new tn(e.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),l.push(u)}return om(l)}return n},Y7=(e,t)=>{if(!t)return e;var n={type:"styling",mode:e.mode,style:t,body:[e]};return n};ze({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:i}=e,l=t[0],s=t[1],u,f=null,h=null;switch(i){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":u=!0;break;case"\\\\atopfrac":u=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":u=!1,f="(",h=")";break;case"\\\\bracefrac":u=!1,f="\\{",h="\\}";break;case"\\\\brackfrac":u=!1,f="[",h="]";break;default:throw new Error("Unrecognized genfrac command")}var d=i==="\\cfrac",p=null;return d||i.startsWith("\\d")?p="display":i.startsWith("\\t")&&(p="text"),Y7({type:"genfrac",mode:n.mode,numer:l,denom:s,continued:d,hasBarLine:u,leftDelim:f,rightDelim:h,barSize:null},p)},htmlBuilder:TS,mathmlBuilder:MS});ze({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:i}=e,l;switch(n){case"\\over":l="\\frac";break;case"\\choose":l="\\binom";break;case"\\atop":l="\\\\atopfrac";break;case"\\brace":l="\\\\bracefrac";break;case"\\brack":l="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:l,token:i}}});var T3=["display","text","script","scriptscript"],M3=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};ze({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,i=t[4],l=t[5],s=nc(t[0]),u=s.type==="atom"&&s.family==="open"?M3(s.text):null,f=nc(t[1]),h=f.type==="atom"&&f.family==="close"?M3(f.text):null,d=We(t[2],"size"),p,m=null;d.isBlank?p=!0:(m=d.value,p=m.number>0);var v=null,x=t[3];if(x.type==="ordgroup"){if(x.body.length>0){var w=We(x.body[0],"textord");v=T3[Number(w.text)]}}else x=We(x,"textord"),v=T3[Number(x.text)];return Y7({type:"genfrac",mode:n.mode,numer:i,denom:l,continued:!1,hasBarLine:p,barSize:m,leftDelim:u,rightDelim:h},v)}});ze({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:i,token:l}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:We(t[0],"size").value,token:l}}});ze({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:i}=e,l=t[0],s=We(t[1],"infix").size;if(!s)throw new Error("\\\\abovefrac expected size, but got "+String(s));var u=t[2],f=s.number>0;return{type:"genfrac",mode:n.mode,numer:l,denom:u,continued:!1,hasBarLine:f,barSize:s,leftDelim:null,rightDelim:null}}});var G7=(e,t)=>{var n=t.style,i,l;e.type==="supsub"?(i=e.sup?vt(e.sup,t.havingStyle(n.sup()),t):vt(e.sub,t.havingStyle(n.sub()),t),l=We(e.base,"horizBrace")):l=We(e,"horizBrace");var s=vt(l.base,t.havingBaseStyle(Xe.DISPLAY)),u=Ac(l,t),f;if(l.isOver?f=yt({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:u,wrapperClasses:["svg-align"]}]}):f=yt({positionType:"bottom",positionData:s.depth+.1+u.height,children:[{type:"elem",elem:u,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:s}]}),i){var h=Se(["minner",l.isOver?"mover":"munder"],[f],t);l.isOver?f=yt({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:.2},{type:"elem",elem:i}]}):f=yt({positionType:"bottom",positionData:h.depth+.2+i.height+i.depth,children:[{type:"elem",elem:i},{type:"kern",size:.2},{type:"elem",elem:h}]})}return Se(["minner",l.isOver?"mover":"munder"],[f],t)},zS=(e,t)=>{var n=Ec(e.label);return new Ce(e.isOver?"mover":"munder",[Mt(e.base,t),n])};ze({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:i}=e;return{type:"horizBrace",mode:n.mode,label:i,isOver:i.includes("\\over"),base:t[0]}},htmlBuilder:G7,mathmlBuilder:zS});ze({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[1],l=We(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:l})?{type:"href",mode:n.mode,href:l,body:en(i)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=hn(e.body,t,!1);return Fw(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=xa(e.body,t);return n instanceof Ce||(n=new Ce("mrow",[n])),n.setAttribute("href",e.href),n}});ze({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=We(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:i}))return n.formatUnsupportedCmd("\\url");for(var l=[],s=0;s<i.length;s++){var u=i[s];u==="~"&&(u="\\textasciitilde"),l.push({type:"textord",mode:"text",text:u})}var f={type:"text",mode:n.mode,font:"\\texttt",body:l};return{type:"href",mode:n.mode,href:i,body:en(f)}}});ze({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:"hbox",mode:n.mode,body:en(t[0])}},htmlBuilder(e,t){var n=hn(e.body,t.withFont(""),!1);return Ci(n)},mathmlBuilder(e,t){return new Ce("mrow",sr(e.body,t.withFont("")))}});ze({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:i,token:l}=e,s=We(t[0],"raw").string,u=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var f,h={};switch(i){case"\\htmlClass":h.class=s,f={command:"\\htmlClass",class:s};break;case"\\htmlId":h.id=s,f={command:"\\htmlId",id:s};break;case"\\htmlStyle":h.style=s,f={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var d=s.split(","),p=0;p<d.length;p++){var m=d[p],v=m.indexOf("=");if(v<0)throw new Ae("\\htmlData key/value '"+m+"' missing equals sign");var x=m.slice(0,v),w=m.slice(v+1);h["data-"+x.trim()]=w}f={command:"\\htmlData",attributes:h};break}default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(f)?{type:"html",mode:n.mode,attributes:h,body:en(u)}:n.formatUnsupportedCmd(i)},htmlBuilder:(e,t)=>{var n=hn(e.body,t,!1),i=["enclosing"];e.attributes.class&&i.push(...e.attributes.class.trim().split(/\s+/));var l=Se(i,n,t);for(var s in e.attributes)s!=="class"&&e.attributes.hasOwnProperty(s)&&l.setAttribute(s,e.attributes[s]);return l},mathmlBuilder:(e,t)=>xa(e.body,t)});ze({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:en(t[0]),mathml:en(t[1])}},htmlBuilder:(e,t)=>{var n=hn(e.html,t,!1);return Ci(n)},mathmlBuilder:(e,t)=>xa(e.mathml,t)});var Cd=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new Ae("Invalid size: '"+t+"' in \\includegraphics");var i={number:+(n[1]+n[2]),unit:n[3]};if(!s7(i))throw new Ae("Invalid unit: '"+i.unit+"' in \\includegraphics.");return i};ze({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:i}=e,l={number:0,unit:"em"},s={number:.9,unit:"em"},u={number:0,unit:"em"},f="";if(n[0])for(var h=We(n[0],"raw").string,d=h.split(","),p=0;p<d.length;p++){var m=d[p].split("=");if(m.length===2){var v=m[1].trim();switch(m[0].trim()){case"alt":f=v;break;case"width":l=Cd(v);break;case"height":s=Cd(v);break;case"totalheight":u=Cd(v);break;default:throw new Ae("Invalid key: '"+m[0]+"' in \\includegraphics.")}}}var x=We(t[0],"url").url;return f===""&&(f=x,f=f.replace(/^.*[\\/]/,""),f=f.substring(0,f.lastIndexOf("."))),i.settings.isTrusted({command:"\\includegraphics",url:x})?{type:"includegraphics",mode:i.mode,alt:f,width:l,height:s,totalheight:u,src:x}:i.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=Ft(e.height,t),i=0;e.totalheight.number>0&&(i=Ft(e.totalheight,t)-n);var l=0;e.width.number>0&&(l=Ft(e.width,t));var s={height:Me(n+i)};l>0&&(s.width=Me(l)),i>0&&(s.verticalAlign=Me(-i));var u=new Nw(e.src,e.alt,s);return u.height=n,u.depth=i,u},mathmlBuilder:(e,t)=>{var n=new Ce("mglyph",[]);n.setAttribute("alt",e.alt);var i=Ft(e.height,t),l=0;if(e.totalheight.number>0&&(l=Ft(e.totalheight,t)-i,n.setAttribute("valign",Me(-l))),n.setAttribute("height",Me(i+l)),e.width.number>0){var s=Ft(e.width,t);n.setAttribute("width",Me(s))}return n.setAttribute("src",e.src),n}});ze({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:i}=e,l=We(t[0],"size");if(n.settings.strict){var s=i[1]==="m",u=l.value.unit==="mu";s?(u||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" supports only mu units, "+("not "+l.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" works only in math mode")):u&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:l.value}},htmlBuilder(e,t){return m7(e.dimension,t)},mathmlBuilder(e,t){var n=Ft(e.dimension,t);return new b7(n)}});ze({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:i}=e,l=t[0];return{type:"lap",mode:n.mode,alignment:i.slice(5),body:l}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=Se([],[vt(e.body,t)]),n=Se(["inner"],[n],t)):n=Se(["inner"],[vt(e.body,t)]);var i=Se(["fix"],[]),l=Se([e.alignment],[n,i],t),s=Se(["strut"]);return s.style.height=Me(l.height+l.depth),l.depth&&(s.style.verticalAlign=Me(-l.depth)),l.children.unshift(s),l=Se(["thinbox"],[l],t),Se(["mord","vbox"],[l],t)},mathmlBuilder:(e,t)=>{var n=new Ce("mpadded",[Mt(e.body,t)]);if(e.alignment!=="rlap"){var i=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",i+"width")}return n.setAttribute("width","0px"),n}});ze({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:i}=e,l=i.mode;i.switchMode("math");var s=n==="\\("?"\\)":"$",u=i.parseExpression(!1,s);return i.expect(s),i.switchMode(l),{type:"styling",mode:i.mode,style:"text",resetFont:!0,body:u}}});ze({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Ae("Mismatched "+e.funcName)}});var z3=(e,t)=>{switch(t.style.size){case Xe.DISPLAY.size:return e.display;case Xe.TEXT.size:return e.text;case Xe.SCRIPT.size:return e.script;case Xe.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ze({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:en(t[0]),text:en(t[1]),script:en(t[2]),scriptscript:en(t[3])}},htmlBuilder:(e,t)=>{var n=z3(e,t),i=hn(n,t,!1);return Ci(i)},mathmlBuilder:(e,t)=>{var n=z3(e,t);return xa(n,t)}});var $7=(e,t,n,i,l,s,u)=>{e=Se([],[e]);var f=n&&Ei(n),h,d;if(t){var p=vt(t,i.havingStyle(l.sup()),i);d={elem:p,kern:Math.max(i.fontMetrics().bigOpSpacing1,i.fontMetrics().bigOpSpacing3-p.depth)}}if(n){var m=vt(n,i.havingStyle(l.sub()),i);h={elem:m,kern:Math.max(i.fontMetrics().bigOpSpacing2,i.fontMetrics().bigOpSpacing4-m.height)}}var v;if(d&&h){var x=i.fontMetrics().bigOpSpacing5+h.elem.height+h.elem.depth+h.kern+e.depth+u;v=yt({positionType:"bottom",positionData:x,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:Me(-s)},{type:"kern",size:h.kern},{type:"elem",elem:e},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:Me(s)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]})}else if(h){var w=e.height-u;v=yt({positionType:"top",positionData:w,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:Me(-s)},{type:"kern",size:h.kern},{type:"elem",elem:e}]})}else if(d){var A=e.depth+u;v=yt({positionType:"bottom",positionData:A,children:[{type:"elem",elem:e},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:Me(s)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]})}else return e;var C=[v];if(h&&s!==0&&!f){var E=Se(["mspace"],[],i);E.style.marginRight=Me(s),C.unshift(E)}return Se(["mop","op-limits"],C,i)},X7=new Set(["\\smallint"]),xo=(e,t)=>{var n,i,l=!1,s;e.type==="supsub"?(n=e.sup,i=e.sub,s=We(e.base,"op"),l=!0):s=We(e,"op");var u=t.style,f=!1;u.size===Xe.DISPLAY.size&&s.symbol&&!X7.has(s.name)&&(f=!0);var h,d;if(s.symbol){var p=f?"Size2-Regular":"Size1-Regular",m="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(m=s.name.slice(1),s.name=m==="oiint"?"\\iint":"\\iiint"),h=zn(s.name,p,"math",t,["mop","op-symbol",f?"large-op":"small-op"]),d=h.italic,m.length>0){var v=g7(m+"Size"+(f?"2":"1"),t);h=yt({positionType:"individualShift",children:[{type:"elem",elem:h,shift:0},{type:"elem",elem:v,shift:f?.08:0}]}),s.name="\\"+m,h.classes.unshift("mop"),h.italic=d}}else if(s.body){var x=hn(s.body,t,!0);x.length===1&&x[0]instanceof ar?(h=x[0],h.classes[0]="mop"):h=Se(["mop"],x,t)}else{for(var w=[],A=1;A<s.name.length;A++)w.push(am(s.name[A],s.mode,t));h=Se(["mop"],w,t)}var C=0,E=0;if((h instanceof ar||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift){var D;C=(h.height-h.depth)/2-t.fontMetrics().axisHeight,E=(D=h.italic)!=null?D:0}return l?$7(h,n,i,t,u,E,C):(C&&(h.style.position="relative",h.style.top=Me(C)),h)},Zs=(e,t)=>{var n;if(e.symbol)n=new Ce("mo",[br(e.name,e.mode)]),X7.has(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new Ce("mo",sr(e.body,t));else{n=new Ce("mi",[new tn(e.name.slice(1))]);var i=new Ce("mo",[br("⁡","text")]);e.parentIsSupSub?n=new Ce("mrow",[n,i]):n=x7([n,i])}return n},NS={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ze({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:i}=e,l=i;return l.length===1&&(l=NS[l]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:l}},htmlBuilder:xo,mathmlBuilder:Zs});ze({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:en(i)}},htmlBuilder:xo,mathmlBuilder:Zs});var DS={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ze({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:xo,mathmlBuilder:Zs});ze({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:xo,mathmlBuilder:Zs});ze({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,i=n;return i.length===1&&(i=DS[i]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:xo,mathmlBuilder:Zs});var P7=(e,t)=>{var n,i,l=!1,s;e.type==="supsub"?(n=e.sup,i=e.sub,s=We(e.base,"operatorname"),l=!0):s=We(e,"operatorname");var u;if(s.body.length>0){for(var f=s.body.map(m=>{var v="text"in m?m.text:void 0;return typeof v=="string"?{type:"textord",mode:m.mode,text:v}:m}),h=hn(f,t.withFont("mathrm"),!0),d=0;d<h.length;d++){var p=h[d];p instanceof ar&&(p.text=p.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}u=Se(["mop"],h,t)}else u=Se(["mop"],[],t);return l?$7(u,n,i,t,t.style,0,0):u},_S=(e,t)=>{for(var n=sr(e.body,t.withFont("mathrm")),i=!0,l=0;l<n.length;l++){var s=n[l];if(!(s instanceof b7))if(s instanceof Ce)switch(s.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var u=s.children[0];s.children.length===1&&u instanceof tn?u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):i=!1;break}default:i=!1}else i=!1}if(i){var f=n.map(p=>p.toText()).join("");n=[new tn(f)]}var h=new Ce("mi",n);h.setAttribute("mathvariant","normal");var d=new Ce("mo",[br("⁡","text")]);return e.parentIsSupSub?new Ce("mrow",[h,d]):x7([h,d])};ze({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:i}=e,l=t[0];return{type:"operatorname",mode:n.mode,body:en(l),alwaysHandleSupSub:i==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:P7,mathmlBuilder:_S});H("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");il({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Ci(hn(e.body,t,!1)):Se(["mord"],hn(e.body,t,!0),t)},mathmlBuilder(e,t){return xa(e.body,t,!0)}});ze({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,i=t[0];return{type:"overline",mode:n.mode,body:i}},htmlBuilder(e,t){var n=vt(e.body,t.havingCrampedStyle()),i=ro("overline-line",t),l=t.fontMetrics().defaultRuleThickness,s=yt({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*l},{type:"elem",elem:i},{type:"kern",size:l}]});return Se(["mord","overline"],[s],t)},mathmlBuilder(e,t){var n=new Ce("mo",[new tn("‾")]);n.setAttribute("stretchy","true");var i=new Ce("mover",[Mt(e.body,t),n]);return i.setAttribute("accent","true"),i}});ze({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"phantom",mode:n.mode,body:en(i)}},htmlBuilder:(e,t)=>{var n=hn(e.body,t.withPhantom(),!1);return Ci(n)},mathmlBuilder:(e,t)=>{var n=sr(e.body,t);return new Ce("mphantom",n)}});H("\\hphantom","\\smash{\\phantom{#1}}");ze({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"vphantom",mode:n.mode,body:i}},htmlBuilder:(e,t)=>{var n=Se(["inner"],[vt(e.body,t.withPhantom())]),i=Se(["fix"],[]);return Se(["mord","rlap"],[n,i],t)},mathmlBuilder:(e,t)=>{var n=sr(en(e.body),t),i=new Ce("mphantom",n),l=new Ce("mpadded",[i]);return l.setAttribute("width","0px"),l}});ze({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,i=We(t[0],"size").value,l=t[1];return{type:"raisebox",mode:n.mode,dy:i,body:l}},htmlBuilder(e,t){var n=vt(e.body,t),i=Ft(e.dy,t);return yt({positionType:"shift",positionData:-i,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new Ce("mpadded",[Mt(e.body,t)]),i=e.dy.number+e.dy.unit;return n.setAttribute("voffset",i),n}});ze({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});ze({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:i}=e,l=n[0],s=We(t[0],"size"),u=We(t[1],"size");return{type:"rule",mode:i.mode,shift:l&&We(l,"size").value,width:s.value,height:u.value}},htmlBuilder(e,t){var n=Se(["mord","rule"],[],t),i=Ft(e.width,t),l=Ft(e.height,t),s=e.shift?Ft(e.shift,t):0;return n.style.borderRightWidth=Me(i),n.style.borderTopWidth=Me(l),n.style.bottom=Me(s),n.width=i,n.height=l+s,n.depth=-s,n.maxFontSize=l*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Ft(e.width,t),i=Ft(e.height,t),l=e.shift?Ft(e.shift,t):0,s=t.color&&t.getColor()||"black",u=new Ce("mspace");u.setAttribute("mathbackground",s),u.setAttribute("width",Me(n)),u.setAttribute("height",Me(i));var f=new Ce("mpadded",[u]);return l>=0?f.setAttribute("height",Me(l)):(f.setAttribute("height",Me(l)),f.setAttribute("depth",Me(-l))),f.setAttribute("voffset",Me(l)),f}});function Z7(e,t,n){for(var i=hn(e,t,!1),l=t.sizeMultiplier/n.sizeMultiplier,s=0;s<i.length;s++){var u=i[s].classes.indexOf("sizing");u<0?Array.prototype.push.apply(i[s].classes,t.sizingClasses(n)):i[s].classes[u+1]==="reset-size"+t.size&&(i[s].classes[u+1]="reset-size"+n.size),i[s].height*=l,i[s].depth*=l}return Ci(i)}var N3=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],OS=(e,t)=>{var n=t.havingSize(e.size);return Z7(e.body,n,t)};ze({type:"sizing",names:N3,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:i,parser:l}=e,s=l.parseExpression(!1,n);return{type:"sizing",mode:l.mode,size:N3.indexOf(i)+1,body:s}},htmlBuilder:OS,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),i=sr(e.body,n),l=new Ce("mstyle",i);return l.setAttribute("mathsize",Me(n.sizeMultiplier)),l}});ze({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:i}=e,l=!1,s=!1,u=n[0]&&We(n[0],"ordgroup");if(u)for(var f,h=0;h<u.body.length;++h){var d=u.body[h];if(f=Cc(d).text,f==="t")l=!0;else if(f==="b")s=!0;else{l=!1,s=!1;break}}else l=!0,s=!0;var p=t[0];return{type:"smash",mode:i.mode,body:p,smashHeight:l,smashDepth:s}},htmlBuilder:(e,t)=>{var n=Se([],[vt(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return Se(["mord","smash"],[n],t);if(n.children)for(var i=0;i<n.children.length;i++)e.smashHeight&&(n.children[i].height=0),e.smashDepth&&(n.children[i].depth=0);var l=yt({positionType:"firstBaseline",children:[{type:"elem",elem:n}]});return Se(["mord"],[l],t)},mathmlBuilder:(e,t)=>{var n=new Ce("mpadded",[Mt(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});ze({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:i}=e,l=n[0],s=t[0];return{type:"sqrt",mode:i.mode,body:s,index:l}},htmlBuilder(e,t){var n=vt(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=io(n,t);var i=t.fontMetrics(),l=i.defaultRuleThickness,s=l;t.style.id<Xe.TEXT.id&&(s=t.fontMetrics().xHeight);var u=l+s/4,f=n.height+n.depth+u+l,{span:h,ruleWidth:d,advanceWidth:p}=xS(f,t),m=h.height-d;m>n.height+n.depth+u&&(u=(u+m-n.height-n.depth)/2);var v=h.height-n.height-u-d;n.style.paddingLeft=Me(p);var x=yt({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+v)},{type:"elem",elem:h},{type:"kern",size:d}]});if(e.index){var w=t.havingStyle(Xe.SCRIPTSCRIPT),A=vt(e.index,w,t),C=.6*(x.height-x.depth),E=yt({positionType:"shift",positionData:-C,children:[{type:"elem",elem:A}]}),D=Se(["root"],[E]);return Se(["mord","sqrt"],[D,x],t)}else return Se(["mord","sqrt"],[x],t)},mathmlBuilder(e,t){var{body:n,index:i}=e;return i?new Ce("mroot",[Mt(n,t),Mt(i,t)]):new Ce("msqrt",[Mt(n,t)])}});var T1={display:Xe.DISPLAY,text:Xe.TEXT,script:Xe.SCRIPT,scriptscript:Xe.SCRIPTSCRIPT};function RS(e){return e in T1}ze({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:i,parser:l}=e,s=l.parseExpression(!0,n),u=i.slice(1,i.length-5);if(!RS(u))throw new Error("Unknown style: "+u);return{type:"styling",mode:l.mode,style:u,body:s}},htmlBuilder(e,t){var n=T1[e.style],i=t.havingStyle(n);return e.resetFont&&(i=i.withFont("")),Z7(e.body,i,t)},mathmlBuilder(e,t){var n=T1[e.style],i=t.havingStyle(n);e.resetFont&&(i=i.withFont(""));var l=sr(e.body,i),s=new Ce("mstyle",l),u={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},f=u[e.style];return s.setAttribute("scriptlevel",f[0]),s.setAttribute("displaystyle",f[1]),s}});var BS=function(t,n){var i=t.base;if(i)if(i.type==="op"){var l=i.limits&&(n.style.size===Xe.DISPLAY.size||i.alwaysHandleSupSub);return l?xo:null}else if(i.type==="operatorname"){var s=i.alwaysHandleSupSub&&(n.style.size===Xe.DISPLAY.size||i.limits);return s?P7:null}else{if(i.type==="accent")return Ei(i.base)?um:null;if(i.type==="horizBrace"){var u=!t.sub;return u===i.isOver?G7:null}else return null}else return null};il({type:"supsub",htmlBuilder(e,t){var n=BS(e,t);if(n)return n(e,t);var{base:i,sup:l,sub:s}=e,u=vt(i,t),f,h,d=t.fontMetrics(),p=0,m=0,v=i&&Ei(i);if(l){var x=t.havingStyle(t.style.sup());f=vt(l,x,t),v||(p=u.height-x.fontMetrics().supDrop*x.sizeMultiplier/t.sizeMultiplier)}if(s){var w=t.havingStyle(t.style.sub());h=vt(s,w,t),v||(m=u.depth+w.fontMetrics().subDrop*w.sizeMultiplier/t.sizeMultiplier)}var A;t.style===Xe.DISPLAY?A=d.sup1:t.style.cramped?A=d.sup3:A=d.sup2;var C=t.sizeMultiplier,E=Me(.5/d.ptPerEm/C),D=null;if(h){var T=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");if(u instanceof ar||T){var B;D=Me(-((B=u.italic)!=null?B:0))}}var U;if(f&&h){p=Math.max(p,A,f.depth+.25*d.xHeight),m=Math.max(m,d.sub2);var z=d.defaultRuleThickness,I=4*z;if(p-f.depth-(h.height-m)<I){m=I-(p-f.depth)+h.height;var P=.8*d.xHeight-(p-f.depth);P>0&&(p+=P,m-=P)}var $=[{type:"elem",elem:h,shift:m,marginRight:E,marginLeft:D},{type:"elem",elem:f,shift:-p,marginRight:E}];U=yt({positionType:"individualShift",children:$})}else if(h){m=Math.max(m,d.sub1,h.height-.8*d.xHeight);var V=[{type:"elem",elem:h,marginLeft:D,marginRight:E}];U=yt({positionType:"shift",positionData:m,children:V})}else if(f)p=Math.max(p,A,f.depth+.25*d.xHeight),U=yt({positionType:"shift",positionData:-p,children:[{type:"elem",elem:f,marginRight:E}]});else throw new Error("supsub must have either sup or sub.");var G=S1(u,"right")||"mord";return Se([G],[u,Se(["msupsub"],[U])],t)},mathmlBuilder(e,t){var n=!1,i,l;e.base&&e.base.type==="horizBrace"&&(l=!!e.sup,l===e.base.isOver&&(n=!0,i=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var s=[Mt(e.base,t)];e.sub&&s.push(Mt(e.sub,t)),e.sup&&s.push(Mt(e.sup,t));var u;if(n)u=i?"mover":"munder";else if(e.sub)if(e.sup){var d=e.base;d&&d.type==="op"&&d.limits&&t.style===Xe.DISPLAY||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(t.style===Xe.DISPLAY||d.limits)?u="munderover":u="msubsup"}else{var h=e.base;h&&h.type==="op"&&h.limits&&(t.style===Xe.DISPLAY||h.alwaysHandleSupSub)||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(h.limits||t.style===Xe.DISPLAY)?u="munder":u="msub"}else{var f=e.base;f&&f.type==="op"&&f.limits&&(t.style===Xe.DISPLAY||f.alwaysHandleSupSub)||f&&f.type==="operatorname"&&f.alwaysHandleSupSub&&(f.limits||t.style===Xe.DISPLAY)?u="mover":u="msup"}return new Ce(u,s)}});il({type:"atom",htmlBuilder(e,t){return am(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new Ce("mo",[br(e.text,e.mode)]);if(e.family==="bin"){var i=sm(e,t);i==="bold-italic"&&n.setAttribute("mathvariant",i)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var Q7={mi:"italic",mn:"normal",mtext:"normal"};il({type:"mathord",htmlBuilder(e,t){return kc(e,t,"mathord")},mathmlBuilder(e,t){var n=new Ce("mi",[br(e.text,e.mode,t)]),i=sm(e,t)||"italic";return i!==Q7[n.type]&&n.setAttribute("mathvariant",i),n}});il({type:"textord",htmlBuilder(e,t){return kc(e,t,"textord")},mathmlBuilder(e,t){var n=br(e.text,e.mode,t),i=sm(e,t)||"normal",l;return e.mode==="text"?l=new Ce("mtext",[n]):/[0-9]/.test(e.text)?l=new Ce("mn",[n]):e.text==="\\prime"?l=new Ce("mo",[n]):l=new Ce("mi",[n]),i!==Q7[l.type]&&l.setAttribute("mathvariant",i),l}});var Td={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Md={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};il({type:"spacing",htmlBuilder(e,t){if(Md.hasOwnProperty(e.text)){var n=Md[e.text].className||"";if(e.mode==="text"){var i=kc(e,t,"textord");return i.classes.push(n),i}else return Se(["mspace",n],[am(e.text,e.mode,t)],t)}else{if(Td.hasOwnProperty(e.text))return Se(["mspace",Td[e.text]],[],t);throw new Ae('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(Md.hasOwnProperty(e.text))n=new Ce("mtext",[new tn(" ")]);else{if(Td.hasOwnProperty(e.text))return new Ce("mspace");throw new Ae('Unknown type of space "'+e.text+'"')}return n}});var D3=()=>{var e=new Ce("mtd",[]);return e.setAttribute("width","50%"),e};il({type:"tag",mathmlBuilder(e,t){var n=new Ce("mtable",[new Ce("mtr",[D3(),new Ce("mtd",[xa(e.body,t)]),D3(),new Ce("mtd",[xa(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var _3={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},O3={"\\textbf":"textbf","\\textmd":"textmd"},LS={"\\textit":"textit","\\textup":"textup"},R3=(e,t)=>{var n=e.font;if(n){if(_3[n])return t.withTextFontFamily(_3[n]);if(O3[n])return t.withTextFontWeight(O3[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(LS[n])};ze({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:i}=e,l=t[0];return{type:"text",mode:n.mode,body:en(l),font:i}},htmlBuilder(e,t){var n=R3(e,t),i=hn(e.body,n,!0);return Se(["mord","text"],i,n)},mathmlBuilder(e,t){var n=R3(e,t);return xa(e.body,n)}});ze({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=vt(e.body,t),i=ro("underline-line",t),l=t.fontMetrics().defaultRuleThickness,s=yt({positionType:"top",positionData:n.height,children:[{type:"kern",size:l},{type:"elem",elem:i},{type:"kern",size:3*l},{type:"elem",elem:n}]});return Se(["mord","underline"],[s],t)},mathmlBuilder(e,t){var n=new Ce("mo",[new tn("‾")]);n.setAttribute("stretchy","true");var i=new Ce("munder",[Mt(e.body,t),n]);return i.setAttribute("accentunder","true"),i}});ze({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=vt(e.body,t),i=t.fontMetrics().axisHeight,l=.5*(n.height-i-(n.depth+i));return yt({positionType:"shift",positionData:l,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new Ce("mpadded",[Mt(e.body,t)],["vcenter"]);return new Ce("mrow",[n])}});ze({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new Ae("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=B3(e),i=[],l=t.havingStyle(t.style.text()),s=0;s<n.length;s++){var u=n[s];u==="~"&&(u="\\textasciitilde"),i.push(zn(u,"Typewriter-Regular",e.mode,l,["mord","texttt"]))}return Se(["mord","text"].concat(l.sizingClasses(t)),d7(i),l)},mathmlBuilder(e,t){var n=new tn(B3(e)),i=new Ce("mtext",[n]);return i.setAttribute("mathvariant","monospace"),i}});var B3=e=>e.body.replace(/ /g,e.star?"␣":" "),da=y7,K7=`[ \r
263
+ ]`,HS="\\\\[a-zA-Z@]+",jS="\\\\[^\uD800-\uDFFF]",qS="("+HS+")"+K7+"*",IS=`\\\\(
264
+ |[ \r ]+
265
+ ?)[ \r ]*`,M1="[̀-ͯ]",US=new RegExp(M1+"+$"),FS="("+K7+"+)|"+(IS+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(M1+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(M1+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+qS)+("|"+jS+")");class L3{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(FS,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new rr("EOF",new Vn(this,n,n));var i=this.tokenRegex.exec(t);if(i===null||i.index!==n)throw new Ae("Unexpected character: '"+t[n]+"'",new rr(t[n],new Vn(this,n,n+1)));var l=i[6]||i[3]||(i[2]?"\\ ":" ");if(this.catcodes[l]===14){var s=t.indexOf(`
266
+ `,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}return new rr(l,new Vn(this,n,this.tokenRegex.lastIndex))}}class VS{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Ae("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,i){if(i===void 0&&(i=!1),i){for(var l=0;l<this.undefStack.length;l++)delete this.undefStack[l][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(t)&&(s[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var YS=I7;H("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});H("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});H("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});H("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});H("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});H("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");H("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var H3={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};H("\\char",function(e){var t=e.popToken(),n,i=0;if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")i=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Ae("\\char` missing argument");i=t.text.charCodeAt(0)}else n=10;if(n){if(i=H3[t.text],i==null||i>=n)throw new Ae("Invalid base-"+n+" digit "+t.text);for(var l;(l=H3[e.future().text])!=null&&l<n;)i*=n,i+=l,e.popToken()}return"\\@char{"+i+"}"});var dm=(e,t,n,i)=>{var l=e.consumeArg().tokens;if(l.length!==1)throw new Ae("\\newcommand's first argument must be a macro name");var s=l[0].text,u=e.isDefined(s);if(u&&!t)throw new Ae("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!u&&!n)throw new Ae("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");var f=0;if(l=e.consumeArg().tokens,l.length===1&&l[0].text==="["){for(var h="",d=e.expandNextToken();d.text!=="]"&&d.text!=="EOF";)h+=d.text,d=e.expandNextToken();if(!h.match(/^\s*[0-9]+\s*$/))throw new Ae("Invalid number of arguments: "+h);f=parseInt(h),l=e.consumeArg().tokens}return u&&i||e.macros.set(s,{tokens:l,numArgs:f}),""};H("\\newcommand",e=>dm(e,!1,!0,!1));H("\\renewcommand",e=>dm(e,!0,!1,!1));H("\\providecommand",e=>dm(e,!0,!0,!0));H("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});H("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});H("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),da[n],Lt.math[n],Lt.text[n]),""});H("\\bgroup","{");H("\\egroup","}");H("~","\\nobreakspace");H("\\lq","`");H("\\rq","'");H("\\aa","\\r a");H("\\AA","\\r A");H("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");H("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");H("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");H("ℬ","\\mathscr{B}");H("ℰ","\\mathscr{E}");H("ℱ","\\mathscr{F}");H("ℋ","\\mathscr{H}");H("ℐ","\\mathscr{I}");H("ℒ","\\mathscr{L}");H("ℳ","\\mathscr{M}");H("ℛ","\\mathscr{R}");H("ℭ","\\mathfrak{C}");H("ℌ","\\mathfrak{H}");H("ℨ","\\mathfrak{Z}");H("\\Bbbk","\\Bbb{k}");H("\\llap","\\mathllap{\\textrm{#1}}");H("\\rlap","\\mathrlap{\\textrm{#1}}");H("\\clap","\\mathclap{\\textrm{#1}}");H("\\mathstrut","\\vphantom{(}");H("\\underbar","\\underline{\\text{#1}}");H("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');H("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");H("\\ne","\\neq");H("≠","\\neq");H("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");H("∉","\\notin");H("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");H("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");H("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");H("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");H("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");H("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");H("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");H("⟂","\\perp");H("‼","\\mathclose{!\\mkern-0.8mu!}");H("∌","\\notni");H("⌜","\\ulcorner");H("⌝","\\urcorner");H("⌞","\\llcorner");H("⌟","\\lrcorner");H("©","\\copyright");H("®","\\textregistered");H("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');H("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');H("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');H("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');H("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");H("⋮","\\vdots");H("\\varGamma","\\mathit{\\Gamma}");H("\\varDelta","\\mathit{\\Delta}");H("\\varTheta","\\mathit{\\Theta}");H("\\varLambda","\\mathit{\\Lambda}");H("\\varXi","\\mathit{\\Xi}");H("\\varPi","\\mathit{\\Pi}");H("\\varSigma","\\mathit{\\Sigma}");H("\\varUpsilon","\\mathit{\\Upsilon}");H("\\varPhi","\\mathit{\\Phi}");H("\\varPsi","\\mathit{\\Psi}");H("\\varOmega","\\mathit{\\Omega}");H("\\substack","\\begin{subarray}{c}#1\\end{subarray}");H("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");H("\\boxed","\\fbox{$\\displaystyle{#1}$}");H("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");H("\\implies","\\DOTSB\\;\\Longrightarrow\\;");H("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");H("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");H("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var j3={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},GS=new Set(["bin","rel"]);H("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in j3?t=j3[n]:(n.slice(0,4)==="\\not"||n in Lt.math&&GS.has(Lt.math[n].group))&&(t="\\dotsb"),t});var mm={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};H("\\dotso",function(e){var t=e.future().text;return t in mm?"\\ldots\\,":"\\ldots"});H("\\dotsc",function(e){var t=e.future().text;return t in mm&&t!==","?"\\ldots\\,":"\\ldots"});H("\\cdots",function(e){var t=e.future().text;return t in mm?"\\@cdots\\,":"\\@cdots"});H("\\dotsb","\\cdots");H("\\dotsm","\\cdots");H("\\dotsi","\\!\\cdots");H("\\dotsx","\\ldots\\,");H("\\DOTSI","\\relax");H("\\DOTSB","\\relax");H("\\DOTSX","\\relax");H("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");H("\\,","\\tmspace+{3mu}{.1667em}");H("\\thinspace","\\,");H("\\>","\\mskip{4mu}");H("\\:","\\tmspace+{4mu}{.2222em}");H("\\medspace","\\:");H("\\;","\\tmspace+{5mu}{.2777em}");H("\\thickspace","\\;");H("\\!","\\tmspace-{3mu}{.1667em}");H("\\negthinspace","\\!");H("\\negmedspace","\\tmspace-{4mu}{.2222em}");H("\\negthickspace","\\tmspace-{5mu}{.277em}");H("\\enspace","\\kern.5em ");H("\\enskip","\\hskip.5em\\relax");H("\\quad","\\hskip1em\\relax");H("\\qquad","\\hskip2em\\relax");H("\\tag","\\@ifstar\\tag@literal\\tag@paren");H("\\tag@paren","\\tag@literal{({#1})}");H("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Ae("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});H("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");H("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");H("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");H("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");H("\\newline","\\\\\\relax");H("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var J7=Me(Ur["Main-Regular"][84][1]-.7*Ur["Main-Regular"][65][1]);H("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+J7+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");H("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+J7+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");H("\\hspace","\\@ifstar\\@hspacer\\@hspace");H("\\@hspace","\\hskip #1\\relax");H("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");H("\\ordinarycolon",":");H("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");H("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');H("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');H("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');H("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');H("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');H("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');H("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');H("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');H("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');H("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');H("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');H("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');H("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');H("∷","\\dblcolon");H("∹","\\eqcolon");H("≔","\\coloneqq");H("≕","\\eqqcolon");H("⩴","\\Coloneqq");H("\\ratio","\\vcentcolon");H("\\coloncolon","\\dblcolon");H("\\colonequals","\\coloneqq");H("\\coloncolonequals","\\Coloneqq");H("\\equalscolon","\\eqqcolon");H("\\equalscoloncolon","\\Eqqcolon");H("\\colonminus","\\coloneq");H("\\coloncolonminus","\\Coloneq");H("\\minuscolon","\\eqcolon");H("\\minuscoloncolon","\\Eqcolon");H("\\coloncolonapprox","\\Colonapprox");H("\\coloncolonsim","\\Colonsim");H("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");H("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");H("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");H("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");H("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");H("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");H("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");H("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");H("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");H("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");H("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");H("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");H("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");H("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");H("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");H("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");H("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");H("\\nleqq","\\html@mathml{\\@nleqq}{≰}");H("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");H("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");H("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");H("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");H("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");H("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");H("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");H("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");H("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");H("\\imath","\\html@mathml{\\@imath}{ı}");H("\\jmath","\\html@mathml{\\@jmath}{ȷ}");H("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");H("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");H("⟦","\\llbracket");H("⟧","\\rrbracket");H("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");H("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");H("⦃","\\lBrace");H("⦄","\\rBrace");H("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");H("⦵","\\minuso");H("\\darr","\\downarrow");H("\\dArr","\\Downarrow");H("\\Darr","\\Downarrow");H("\\lang","\\langle");H("\\rang","\\rangle");H("\\uarr","\\uparrow");H("\\uArr","\\Uparrow");H("\\Uarr","\\Uparrow");H("\\N","\\mathbb{N}");H("\\R","\\mathbb{R}");H("\\Z","\\mathbb{Z}");H("\\alef","\\aleph");H("\\alefsym","\\aleph");H("\\Alpha","\\mathrm{A}");H("\\Beta","\\mathrm{B}");H("\\bull","\\bullet");H("\\Chi","\\mathrm{X}");H("\\clubs","\\clubsuit");H("\\cnums","\\mathbb{C}");H("\\Complex","\\mathbb{C}");H("\\Dagger","\\ddagger");H("\\diamonds","\\diamondsuit");H("\\empty","\\emptyset");H("\\Epsilon","\\mathrm{E}");H("\\Eta","\\mathrm{H}");H("\\exist","\\exists");H("\\harr","\\leftrightarrow");H("\\hArr","\\Leftrightarrow");H("\\Harr","\\Leftrightarrow");H("\\hearts","\\heartsuit");H("\\image","\\Im");H("\\infin","\\infty");H("\\Iota","\\mathrm{I}");H("\\isin","\\in");H("\\Kappa","\\mathrm{K}");H("\\larr","\\leftarrow");H("\\lArr","\\Leftarrow");H("\\Larr","\\Leftarrow");H("\\lrarr","\\leftrightarrow");H("\\lrArr","\\Leftrightarrow");H("\\Lrarr","\\Leftrightarrow");H("\\Mu","\\mathrm{M}");H("\\natnums","\\mathbb{N}");H("\\Nu","\\mathrm{N}");H("\\Omicron","\\mathrm{O}");H("\\plusmn","\\pm");H("\\rarr","\\rightarrow");H("\\rArr","\\Rightarrow");H("\\Rarr","\\Rightarrow");H("\\real","\\Re");H("\\reals","\\mathbb{R}");H("\\Reals","\\mathbb{R}");H("\\Rho","\\mathrm{P}");H("\\sdot","\\cdot");H("\\sect","\\S");H("\\spades","\\spadesuit");H("\\sub","\\subset");H("\\sube","\\subseteq");H("\\supe","\\supseteq");H("\\Tau","\\mathrm{T}");H("\\thetasym","\\vartheta");H("\\weierp","\\wp");H("\\Zeta","\\mathrm{Z}");H("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");H("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");H("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");H("\\bra","\\mathinner{\\langle{#1}|}");H("\\ket","\\mathinner{|{#1}\\rangle}");H("\\braket","\\mathinner{\\langle{#1}\\rangle}");H("\\Bra","\\left\\langle#1\\right|");H("\\Ket","\\left|#1\\right\\rangle");var W7=e=>t=>{var n=t.consumeArg().tokens,i=t.consumeArg().tokens,l=t.consumeArg().tokens,s=t.consumeArg().tokens,u=t.macros.get("|"),f=t.macros.get("\\|");t.macros.beginGroup();var h=m=>v=>{e&&(v.macros.set("|",u),l.length&&v.macros.set("\\|",f));var x=m;if(!m&&l.length){var w=v.future();w.text==="|"&&(v.popToken(),x=!0)}return{tokens:x?l:i,numArgs:0}};t.macros.set("|",h(!1)),l.length&&t.macros.set("\\|",h(!0));var d=t.consumeArg().tokens,p=t.expandTokens([...s,...d,...n]);return t.macros.endGroup(),{tokens:p.reverse(),numArgs:0}};H("\\bra@ket",W7(!1));H("\\bra@set",W7(!0));H("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");H("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");H("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");H("\\angln","{\\angl n}");H("\\blue","\\textcolor{##6495ed}{#1}");H("\\orange","\\textcolor{##ffa500}{#1}");H("\\pink","\\textcolor{##ff00af}{#1}");H("\\red","\\textcolor{##df0030}{#1}");H("\\green","\\textcolor{##28ae7b}{#1}");H("\\gray","\\textcolor{gray}{#1}");H("\\purple","\\textcolor{##9d38bd}{#1}");H("\\blueA","\\textcolor{##ccfaff}{#1}");H("\\blueB","\\textcolor{##80f6ff}{#1}");H("\\blueC","\\textcolor{##63d9ea}{#1}");H("\\blueD","\\textcolor{##11accd}{#1}");H("\\blueE","\\textcolor{##0c7f99}{#1}");H("\\tealA","\\textcolor{##94fff5}{#1}");H("\\tealB","\\textcolor{##26edd5}{#1}");H("\\tealC","\\textcolor{##01d1c1}{#1}");H("\\tealD","\\textcolor{##01a995}{#1}");H("\\tealE","\\textcolor{##208170}{#1}");H("\\greenA","\\textcolor{##b6ffb0}{#1}");H("\\greenB","\\textcolor{##8af281}{#1}");H("\\greenC","\\textcolor{##74cf70}{#1}");H("\\greenD","\\textcolor{##1fab54}{#1}");H("\\greenE","\\textcolor{##0d923f}{#1}");H("\\goldA","\\textcolor{##ffd0a9}{#1}");H("\\goldB","\\textcolor{##ffbb71}{#1}");H("\\goldC","\\textcolor{##ff9c39}{#1}");H("\\goldD","\\textcolor{##e07d10}{#1}");H("\\goldE","\\textcolor{##a75a05}{#1}");H("\\redA","\\textcolor{##fca9a9}{#1}");H("\\redB","\\textcolor{##ff8482}{#1}");H("\\redC","\\textcolor{##f9685d}{#1}");H("\\redD","\\textcolor{##e84d39}{#1}");H("\\redE","\\textcolor{##bc2612}{#1}");H("\\maroonA","\\textcolor{##ffbde0}{#1}");H("\\maroonB","\\textcolor{##ff92c6}{#1}");H("\\maroonC","\\textcolor{##ed5fa6}{#1}");H("\\maroonD","\\textcolor{##ca337c}{#1}");H("\\maroonE","\\textcolor{##9e034e}{#1}");H("\\purpleA","\\textcolor{##ddd7ff}{#1}");H("\\purpleB","\\textcolor{##c6b9fc}{#1}");H("\\purpleC","\\textcolor{##aa87ff}{#1}");H("\\purpleD","\\textcolor{##7854ab}{#1}");H("\\purpleE","\\textcolor{##543b78}{#1}");H("\\mintA","\\textcolor{##f5f9e8}{#1}");H("\\mintB","\\textcolor{##edf2df}{#1}");H("\\mintC","\\textcolor{##e0e5cc}{#1}");H("\\grayA","\\textcolor{##f6f7f7}{#1}");H("\\grayB","\\textcolor{##f0f1f2}{#1}");H("\\grayC","\\textcolor{##e3e5e6}{#1}");H("\\grayD","\\textcolor{##d6d8da}{#1}");H("\\grayE","\\textcolor{##babec2}{#1}");H("\\grayF","\\textcolor{##888d93}{#1}");H("\\grayG","\\textcolor{##626569}{#1}");H("\\grayH","\\textcolor{##3b3e40}{#1}");H("\\grayI","\\textcolor{##21242c}{#1}");H("\\kaBlue","\\textcolor{##314453}{#1}");H("\\kaGreen","\\textcolor{##71B307}{#1}");var ey={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class $S{constructor(t,n,i){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new VS(YS,n.macros),this.mode=i,this.stack=[]}feed(t){this.lexer=new L3(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,i,l;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:l,end:i}=this.consumeArg(["]"])}else({tokens:l,start:n,end:i}=this.consumeArg());return this.pushToken(new rr("EOF",i.loc)),this.pushTokens(l),new rr("",Vn.range(n,i))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],i=t&&t.length>0;i||this.consumeSpaces();var l=this.future(),s,u=0,f=0;do{if(s=this.popToken(),n.push(s),s.text==="{")++u;else if(s.text==="}"){if(--u,u===-1)throw new Ae("Extra }",s)}else if(s.text==="EOF")throw new Ae("Unexpected end of input in a macro argument, expected '"+(t&&i?t[f]:"}")+"'",s);if(t&&i)if((u===0||u===1&&t[f]==="{")&&s.text===t[f]){if(++f,f===t.length){n.splice(-f,f);break}}else f=0}while(u!==0||i);return l.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:l,end:s}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new Ae("The length of delimiters doesn't match the number of args!");for(var i=n[0],l=0;l<i.length;l++){var s=this.popToken();if(i[l]!==s.text)throw new Ae("Use of the macro doesn't match its definition",s)}}for(var u=[],f=0;f<t;f++)u.push(this.consumeArg(n&&n[f+1]).tokens);return u}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new Ae("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),i=n.text,l=n.noexpand?null:this._getExpansion(i);if(l==null||t&&l.unexpandable){if(t&&l==null&&i[0]==="\\"&&!this.isDefined(i))throw new Ae("Undefined control sequence: "+i);return this.pushToken(n),!1}this.countExpansion(1);var s=l.tokens,u=this.consumeArgs(l.numArgs,l.delimiters);if(l.numArgs){s=s.slice();for(var f=s.length-1;f>=0;--f){var h=s[f];if(h.text==="#"){if(f===0)throw new Ae("Incomplete placeholder at end of macro body",h);if(h=s[--f],h.text==="#")s.splice(f+1,1);else if(/^[1-9]$/.test(h.text))s.splice(f,2,...u[+h.text-1]);else throw new Ae("Not a valid argument number",h)}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new rr(t)]):void 0}expandTokens(t){var n=[],i=this.stack.length;for(this.pushTokens(t);this.stack.length>i;)if(this.expandOnce(!0)===!1){var l=this.stack.pop();l.treatAsRelax&&(l.noexpand=!1,l.treatAsRelax=!1),n.push(l)}return this.countExpansion(n.length),n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(i=>i.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var i=this.lexer.catcodes[t];if(i!=null&&i!==13)return}var l=typeof n=="function"?n(this):n;if(typeof l=="string"){var s=0;if(l.includes("#"))for(var u=l.replace(/##/g,"");u.includes("#"+(s+1));)++s;for(var f=new L3(l,this.settings),h=[],d=f.lex();d.text!=="EOF";)h.push(d),d=f.lex();h.reverse();var p={tokens:h,numArgs:s};return p}return l}isDefined(t){return this.macros.has(t)||da.hasOwnProperty(t)||Lt.math.hasOwnProperty(t)||Lt.text.hasOwnProperty(t)||ey.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:da.hasOwnProperty(t)&&!da[t].primitive}}var q3=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,z0=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),zd={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},I3={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Oc{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new $S(t,n,this.mode),this.settings=n,this.leftrightDepth=0,this.nextToken=null}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new Ae("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new rr("}")),this.gullet.pushTokens(t);var i=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,i}parseExpression(t,n){for(var i=[];;){this.mode==="math"&&this.consumeSpaces();var l=this.fetch();if(Oc.endOfExpression.has(l.text)||n&&l.text===n||t&&da[l.text]&&da[l.text].infix)break;var s=this.parseAtom(n);if(s){if(s.type==="internal")continue}else break;i.push(s)}return this.mode==="text"&&this.formLigatures(i),this.handleInfixNodes(i)}handleInfixNodes(t){for(var n=-1,i,l=0;l<t.length;l++){var s=t[l];if(s.type==="infix"){if(n!==-1)throw new Ae("only one infix operator per group",s.token);n=l,i=s.replaceWith}}if(n!==-1&&i){var u,f,h=t.slice(0,n),d=t.slice(n+1);h.length===1&&h[0].type==="ordgroup"?u=h[0]:u={type:"ordgroup",mode:this.mode,body:h},d.length===1&&d[0].type==="ordgroup"?f=d[0]:f={type:"ordgroup",mode:this.mode,body:d};var p;return i==="\\\\abovefrac"?p=this.callFunction(i,[u,t[n],f],[]):p=this.callFunction(i,[u,f],[]),[p]}else return t}handleSupSubscript(t){var n=this.fetch(),i=n.text;this.consume(),this.consumeSpaces();var l;do{var s;l=this.parseGroup(t)}while(((s=l)==null?void 0:s.type)==="internal");if(!l)throw new Ae("Expected group after '"+i+"'",n);return l}formatUnsupportedCmd(t){for(var n=[],i=0;i<t.length;i++)n.push({type:"textord",mode:"text",text:t[i]});var l={type:"text",mode:this.mode,body:n},s={type:"color",mode:this.mode,color:this.settings.errorColor,body:[l]};return s}parseAtom(t){var n=this.parseGroup("atom",t);if(n?.type==="internal"||this.mode==="text")return n;for(var i,l;;){this.consumeSpaces();var s=this.fetch();if(s.text==="\\limits"||s.text==="\\nolimits"){if(n&&n.type==="op"){var u=s.text==="\\limits";n.limits=u,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=s.text==="\\limits");else throw new Ae("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(i)throw new Ae("Double superscript",s);i=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(l)throw new Ae("Double subscript",s);l=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(i)throw new Ae("Double superscript",s);var f={type:"textord",mode:this.mode,text:"\\prime"},h=[f];for(this.consume();this.fetch().text==="'";)h.push(f),this.consume();this.fetch().text==="^"&&h.push(this.handleSupSubscript("superscript")),i={type:"ordgroup",mode:this.mode,body:h}}else if(z0[s.text]){var d=q3.test(s.text),p=[];for(p.push(new rr(z0[s.text])),this.consume();;){var m=this.fetch().text;if(!z0[m]||q3.test(m)!==d)break;p.unshift(new rr(z0[m])),this.consume()}var v=this.subparse(p);d?l={type:"ordgroup",mode:"math",body:v}:i={type:"ordgroup",mode:"math",body:v}}else break}return i||l?{type:"supsub",mode:this.mode,base:n,sup:i,sub:l}:n}parseFunction(t,n){var i=this.fetch(),l=i.text,s=da[l];if(!s)return null;if(this.consume(),n&&n!=="atom"&&!s.allowedInArgument)throw new Ae("Got function '"+l+"' with no arguments"+(n?" as "+n:""),i);if(this.mode==="text"&&!s.allowedInText)throw new Ae("Can't use function '"+l+"' in text mode",i);if(this.mode==="math"&&s.allowedInMath===!1)throw new Ae("Can't use function '"+l+"' in math mode",i);var{args:u,optArgs:f}=this.parseArguments(l,s);return this.callFunction(l,u,f,i,t)}callFunction(t,n,i,l,s){var u={funcName:t,parser:this,token:l,breakOnTokenText:s},f=da[t];if(f&&f.handler)return f.handler(u,n,i);throw new Ae("No function handler for "+t)}parseArguments(t,n){var i=n.numArgs+n.numOptionalArgs;if(i===0)return{args:[],optArgs:[]};for(var l=[],s=[],u=0;u<i;u++){var f=n.argTypes&&n.argTypes[u],h=u<n.numOptionalArgs;("primitive"in n&&n.primitive&&f==null||n.type==="sqrt"&&u===1&&s[0]==null)&&(f="primitive");var d=this.parseGroupOfType("argument to '"+t+"'",f,h);if(h)s.push(d);else if(d!=null)l.push(d);else throw new Ae("Null argument, please report this as a bug")}return{args:l,optArgs:s}}parseGroupOfType(t,n,i){switch(n){case"color":return this.parseColorGroup(i);case"size":return this.parseSizeGroup(i);case"url":return this.parseUrlGroup(i);case"math":case"text":return this.parseArgumentGroup(i,n);case"hbox":{var l=this.parseArgumentGroup(i,"text");return l!=null?{type:"styling",mode:l.mode,body:[l],style:"text",resetFont:!0}:null}case"raw":{var s=this.parseStringGroup("raw",i);return s!=null?{type:"raw",mode:"text",string:s.text}:null}case"primitive":{if(i)throw new Ae("A primitive argument cannot be optional");var u=this.parseGroup(t);if(u==null)throw new Ae("Expected group as "+t,this.fetch());return u}case"original":case null:case void 0:return this.parseArgumentGroup(i);default:throw new Ae("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,n){var i=this.gullet.scanArgument(n);if(i==null)return null;for(var l="",s;(s=this.fetch()).text!=="EOF";)l+=s.text,this.consume();return this.consume(),i.text=l,i}parseRegexGroup(t,n){for(var i=this.fetch(),l=i,s="",u;(u=this.fetch()).text!=="EOF"&&t.test(s+u.text);)l=u,s+=l.text,this.consume();if(s==="")throw new Ae("Invalid "+n+": '"+i.text+"'",i);return i.range(l,s)}parseColorGroup(t){var n=this.parseStringGroup("color",t);if(n==null)return null;var i=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(n.text);if(!i)throw new Ae("Invalid color: '"+n.text+"'",n);var l=i[0];return/^[0-9a-f]{6}$/i.test(l)&&(l="#"+l),{type:"color-token",mode:this.mode,color:l}}parseSizeGroup(t){var n,i=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?n=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):n=this.parseStringGroup("size",t),!n)return null;!t&&n.text.length===0&&(n.text="0pt",i=!0);var l=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n.text);if(!l)throw new Ae("Invalid size: '"+n.text+"'",n);var s={number:+(l[1]+l[2]),unit:l[3]};if(!s7(s))throw new Ae("Invalid unit: '"+s.unit+"'",n);return{type:"size",mode:this.mode,value:s,isBlank:i}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var n=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),n==null)return null;var i=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:i}}parseArgumentGroup(t,n){var i=this.gullet.scanArgument(t);if(i==null)return null;var l=this.mode;n&&this.switchMode(n),this.gullet.beginGroup();var s=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var u={type:"ordgroup",mode:this.mode,loc:i.loc,body:s};return n&&this.switchMode(l),u}parseGroup(t,n){var i=this.fetch(),l=i.text,s;if(l==="{"||l==="\\begingroup"){this.consume();var u=l==="{"?"}":"\\endgroup";this.gullet.beginGroup();var f=this.parseExpression(!1,u),h=this.fetch();this.expect(u),this.gullet.endGroup(),s={type:"ordgroup",mode:this.mode,loc:Vn.range(i,h),body:f,semisimple:l==="\\begingroup"||void 0}}else if(s=this.parseFunction(n,t)||this.parseSymbol(),s==null&&l[0]==="\\"&&!ey.hasOwnProperty(l)){if(this.settings.throwOnError)throw new Ae("Undefined control sequence: "+l,i);s=this.formatUnsupportedCmd(l),this.consume()}return s}formLigatures(t){for(var n=t.length-1,i=0;i<n;++i){var l=t[i];if(l.type==="textord"){var s=l.text,u=t[i+1];if(!(!u||u.type!=="textord")){if(s==="-"&&u.text==="-"){var f=t[i+2];i+1<n&&f&&f.type==="textord"&&f.text==="-"?(t.splice(i,3,{type:"textord",mode:"text",loc:Vn.range(l,f),text:"---"}),n-=2):(t.splice(i,2,{type:"textord",mode:"text",loc:Vn.range(l,u),text:"--"}),n-=1)}(s==="'"||s==="`")&&u.text===s&&(t.splice(i,2,{type:"textord",mode:"text",loc:Vn.range(l,u),text:s+s}),n-=1)}}}}parseSymbol(){var t=this.fetch(),n=t.text;if(/^\\verb[^a-zA-Z]/.test(n)){this.consume();var i=n.slice(5),l=i.charAt(0)==="*";if(l&&(i=i.slice(1)),i.length<2||i.charAt(0)!==i.slice(-1))throw new Ae(`\\verb assertion failed --
267
+ please report what input caused this bug`);return i=i.slice(1,-1),{type:"verb",mode:"text",body:i,star:l}}I3.hasOwnProperty(n[0])&&!Lt[this.mode][n[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+n[0]+'" used in math mode',t),n=I3[n[0]]+n.slice(1));var s=US.exec(n);s&&(n=n.substring(0,s.index),n==="i"?n="ı":n==="j"&&(n="ȷ"));var u;if(Lt[this.mode][n]){this.settings.strict&&this.mode==="math"&&m1.includes(n)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var f=Lt[this.mode][n].group,h=Vn.range(t),d;sS(f)?d={type:"atom",mode:this.mode,family:f,loc:h,text:n}:d={type:f,mode:this.mode,loc:h,text:n},u=d}else if(n.charCodeAt(0)>=128)this.settings.strict&&(o7(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),u={type:"textord",mode:"text",loc:Vn.range(t),text:n};else return null;if(this.consume(),s)for(var p=0;p<s[0].length;p++){var m=s[0][p];if(!zd[m])throw new Ae("Unknown accent ' "+m+"'",t);var v=zd[m][this.mode]||zd[m].text;if(!v)throw new Ae("Accent "+m+" unsupported in "+this.mode+" mode",t);u={type:"accent",mode:this.mode,loc:Vn.range(t),label:v,isStretchy:!1,isShifty:!0,base:u}}return u}}Oc.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var pm=function(t,n){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var i=new Oc(t,n);delete i.gullet.macros.current["\\df@tag"];var l=i.parse();if(delete i.gullet.macros.current["\\current@color"],delete i.gullet.macros.current["\\color"],i.gullet.macros.get("\\df@tag")){if(!n.displayMode)throw new Ae("\\tag works only in display equations");l=[{type:"tag",mode:"text",body:l,tag:i.subparse([new rr("\\df@tag")])}]}return l},ty=function(t,n,i){n.textContent="";var l=gm(t,i).toNode();n.appendChild(l)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),ty=function(){throw new Ae("KaTeX doesn't work in quirks mode.")});var XS=function(t,n){var i=gm(t,n).toMarkup();return i},PS=function(t,n){var i=new tm(n);return pm(t,i)},ny=function(t,n,i){if(i.throwOnError||!(t instanceof Ae))throw t;var l=Se(["katex-error"],[new ar(n)]);return l.setAttribute("title",t.toString()),l.setAttribute("style","color:"+i.errorColor),l},gm=function(t,n){var i=new tm(n);try{var l=pm(t,i);return eS(l,t,i)}catch(s){return ny(s,t,i)}},ZS=function(t,n){var i=new tm(n);try{var l=pm(t,i);return tS(l,t,i)}catch(s){return ny(s,t,i)}},QS="0.16.46",KS={Span:yo,Anchor:wc,SymbolNode:ar,SvgNode:wi,PathNode:ya,LineNode:d1},U3={version:QS,render:ty,renderToString:XS,ParseError:Ae,SETTINGS_SCHEMA:c1,__parse:PS,__renderToDomTree:gm,__renderToHTMLTree:ZS,__setFontMetrics:Bw,__defineSymbol:b,__defineFunction:ze,__defineMacro:H,__domTree:KS};const ry=[],JS=!0,z1=!1,iy="skip";function ym(e,t,n,i){let l;typeof t=="function"&&typeof n!="function"?(i=n,n=t):l=t;const s=Xs(l),u=i?-1:1;f(e,void 0,[])();function f(h,d,p){const m=h&&typeof h=="object"?h:{};if(typeof m.type=="string"){const x=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(h.type+(x?"<"+x+">":""))+")"})}return v;function v(){let x=ry,w,A,C;if((!t||s(h,d,p[p.length-1]||void 0))&&(x=WS(n(h,p)),x[0]===z1))return x;if("children"in h&&h.children){const E=h;if(E.children&&x[0]!==iy)for(A=(i?E.children.length:-1)+u,C=p.concat(E);A>-1&&A<E.children.length;){const D=E.children[A];if(w=f(D,A,C)(),w[0]===z1)return w;A=typeof w[1]=="number"?w[1]:A+u}}return x}}}function WS(e){return Array.isArray(e)?e:typeof e=="number"?[JS,e]:e==null?ry:[e]}const ek={},tk=[];function nk(e){const t=e||ek;return function(n,i){ym(n,"element",function(l,s){const u=Array.isArray(l.properties.className)?l.properties.className:tk,f=u.includes("language-math"),h=u.includes("math-display"),d=u.includes("math-inline");let p=h;if(!f&&!h&&!d)return;let m=s[s.length-1],v=l;if(l.tagName==="code"&&f&&m&&m.type==="element"&&m.tagName==="pre"&&(v=m,m=s[s.length-2],p=!0),!m)return;const x=Pb(v,{whitespace:"pre"});let w;try{w=U3.renderToString(x,{...t,displayMode:p,throwOnError:!0})}catch(C){const E=C,D=E.name.toLowerCase();i.message("Could not render math with KaTeX",{ancestors:[...s,l],cause:E,place:l.position,ruleId:D,source:"rehype-katex"});try{w=U3.renderToString(x,{...t,displayMode:p,strict:"ignore",throwOnError:!1})}catch{w=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(C)},children:[{type:"text",value:x}]}]}}typeof w=="string"&&(w=Bb(w).children);const A=m.children.indexOf(v);return m.children.splice(A,1,...w),iy})}}const rk=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ik=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ak={};function F3(e,t){return(ak.jsx?ik:rk).test(e)}const lk=/[ \t\n\f\r]/g;function ok(e){return typeof e=="object"?e.type==="text"?V3(e.value):!1:V3(e)}function V3(e){return e.replace(lk,"")===""}var $l={},Nd,Y3;function sk(){if(Y3)return Nd;Y3=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,f=/^\s+|\s+$/g,h=`
268
+ `,d="/",p="*",m="",v="comment",x="declaration";function w(C,E){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];E=E||{};var D=1,T=1;function B(q){var F=q.match(t);F&&(D+=F.length);var L=q.lastIndexOf(h);T=~L?q.length-L:T+q.length}function U(){var q={line:D,column:T};return function(F){return F.position=new z(q),$(),F}}function z(q){this.start=q,this.end={line:D,column:T},this.source=E.source}z.prototype.content=C;function I(q){var F=new Error(E.source+":"+D+":"+T+": "+q);if(F.reason=q,F.filename=E.source,F.line=D,F.column=T,F.source=C,!E.silent)throw F}function P(q){var F=q.exec(C);if(F){var L=F[0];return B(L),C=C.slice(L.length),F}}function $(){P(n)}function V(q){var F;for(q=q||[];F=G();)F!==!1&&q.push(F);return q}function G(){var q=U();if(!(d!=C.charAt(0)||p!=C.charAt(1))){for(var F=2;m!=C.charAt(F)&&(p!=C.charAt(F)||d!=C.charAt(F+1));)++F;if(F+=2,m===C.charAt(F-1))return I("End of comment missing");var L=C.slice(2,F-2);return T+=2,B(L),C=C.slice(F),T+=2,q({type:v,comment:L})}}function W(){var q=U(),F=P(i);if(F){if(G(),!P(l))return I("property missing ':'");var L=P(s),Y=q({type:x,property:A(F[0].replace(e,m)),value:L?A(L[0].replace(e,m)):m});return P(u),Y}}function ce(){var q=[];V(q);for(var F;F=W();)F!==!1&&(q.push(F),V(q));return q}return $(),ce()}function A(C){return C?C.replace(f,m):m}return Nd=w,Nd}var G3;function uk(){if(G3)return $l;G3=1;var e=$l&&$l.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty($l,"__esModule",{value:!0}),$l.default=n;const t=e(sk());function n(i,l){let s=null;if(!i||typeof i!="string")return s;const u=(0,t.default)(i),f=typeof l=="function";return u.forEach(h=>{if(h.type!=="declaration")return;const{property:d,value:p}=h;f?l(d,p,h):p&&(s=s||{},s[d]=p)}),s}return $l}var ms={},$3;function ck(){if($3)return ms;$3=1,Object.defineProperty(ms,"__esModule",{value:!0}),ms.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,s=function(d){return!d||n.test(d)||e.test(d)},u=function(d,p){return p.toUpperCase()},f=function(d,p){return"".concat(p,"-")},h=function(d,p){return p===void 0&&(p={}),s(d)?d:(d=d.toLowerCase(),p.reactCompat?d=d.replace(l,f):d=d.replace(i,f),d.replace(t,u))};return ms.camelCase=h,ms}var ps,X3;function fk(){if(X3)return ps;X3=1;var e=ps&&ps.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},t=e(uk()),n=ck();function i(l,s){var u={};return!l||typeof l!="string"||(0,t.default)(l,function(f,h){f&&h&&(u[(0,n.camelCase)(f,s)]=h)}),u}return i.default=i,ps=i,ps}var hk=fk();const dk=vc(hk),ay=ly("end"),vm=ly("start");function ly(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function mk(e){const t=vm(e),n=ay(e);if(t&&n)return{start:t,end:n}}function Es(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?P3(e.position):"start"in e||"end"in e?P3(e):"line"in e||"column"in e?N1(e):""}function N1(e){return Z3(e&&e.line)+":"+Z3(e&&e.column)}function P3(e){return N1(e&&e.start)+"-"+N1(e&&e.end)}function Z3(e){return e&&typeof e=="number"?e:1}class En extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let l="",s={},u=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?l=t:!s.cause&&t&&(u=!0,l=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof i=="string"){const h=i.indexOf(":");h===-1?s.ruleId=i:(s.source=i.slice(0,h),s.ruleId=i.slice(h+1))}if(!s.place&&s.ancestors&&s.ancestors){const h=s.ancestors[s.ancestors.length-1];h&&(s.place=h.position)}const f=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=f?f.line:void 0,this.name=Es(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=u&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}En.prototype.file="";En.prototype.name="";En.prototype.reason="";En.prototype.message="";En.prototype.stack="";En.prototype.column=void 0;En.prototype.line=void 0;En.prototype.ancestors=void 0;En.prototype.cause=void 0;En.prototype.fatal=void 0;En.prototype.place=void 0;En.prototype.ruleId=void 0;En.prototype.source=void 0;const xm={}.hasOwnProperty,pk=new Map,gk=/[A-Z]/g,yk=new Set(["table","tbody","thead","tfoot","tr"]),vk=new Set(["td","th"]),oy="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function xk(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=Tk(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=Ck(n,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?xc:W6,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=sy(l,e,void 0);return s&&typeof s!="string"?s:l.create(e,l.Fragment,{children:s||void 0},void 0)}function sy(e,t,n){if(t.type==="element")return bk(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return wk(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return kk(e,t,n);if(t.type==="mdxjsEsm")return Sk(e,t);if(t.type==="root")return Ek(e,t,n);if(t.type==="text")return Ak(e,t)}function bk(e,t,n){const i=e.schema;let l=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(l=xc,e.schema=l),e.ancestors.push(t);const s=cy(e,t.tagName,!1),u=Mk(e,t);let f=wm(e,t);return yk.has(t.tagName)&&(f=f.filter(function(h){return typeof h=="string"?!ok(h):!0})),uy(e,u,s,t),bm(u,f),e.ancestors.pop(),e.schema=i,e.create(t,s,u,n)}function wk(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}_s(e,t.position)}function Sk(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);_s(e,t.position)}function kk(e,t,n){const i=e.schema;let l=i;t.name==="svg"&&i.space==="html"&&(l=xc,e.schema=l),e.ancestors.push(t);const s=t.name===null?e.Fragment:cy(e,t.name,!0),u=zk(e,t),f=wm(e,t);return uy(e,u,s,t),bm(u,f),e.ancestors.pop(),e.schema=i,e.create(t,s,u,n)}function Ek(e,t,n){const i={};return bm(i,wm(e,t)),e.create(t,e.Fragment,i,n)}function Ak(e,t){return t.value}function uy(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function bm(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Ck(e,t,n){return i;function i(l,s,u,f){const d=Array.isArray(u.children)?n:t;return f?d(s,u,f):d(s,u)}}function Tk(e,t){return n;function n(i,l,s,u){const f=Array.isArray(s.children),h=vm(i);return t(l,s,u,f,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function Mk(e,t){const n={};let i,l;for(l in t.properties)if(l!=="children"&&xm.call(t.properties,l)){const s=Nk(e,l,t.properties[l]);if(s){const[u,f]=s;e.tableCellAlignToStyle&&u==="align"&&typeof f=="string"&&vk.has(t.tagName)?i=f:n[u]=f}}if(i){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function zk(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const s=i.data.estree.body[0];s.type;const u=s.expression;u.type;const f=u.properties[0];f.type,Object.assign(n,e.evaluater.evaluateExpression(f.argument))}else _s(e,t.position);else{const l=i.name;let s;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const f=i.value.data.estree.body[0];f.type,s=e.evaluater.evaluateExpression(f.expression)}else _s(e,t.position);else s=i.value===null?!0:i.value;n[l]=s}return n}function wm(e,t){const n=[];let i=-1;const l=e.passKeys?new Map:pk;for(;++i<t.children.length;){const s=t.children[i];let u;if(e.passKeys){const h=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(h){const d=l.get(h)||0;u=h+"-"+d,l.set(h,d+1)}}const f=sy(e,s,u);f!==void 0&&n.push(f)}return n}function Nk(e,t,n){const i=J6(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?xb(n):wb(n)),i.property==="style"){let l=typeof n=="object"?n:Dk(e,String(n));return e.stylePropertyNameCase==="css"&&(l=_k(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&i.space?mb[i.property]||i.property:i.attribute,n]}}function Dk(e,t){try{return dk(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,l=new En("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=oy+"#cannot-parse-style-attribute",l}}function cy(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let s=-1,u;for(;++s<l.length;){const f=F3(l[s])?{type:"Identifier",name:l[s]}:{type:"Literal",value:l[s]};u=u?{type:"MemberExpression",object:u,property:f,computed:!!(s&&f.type==="Literal"),optional:!1}:f}i=u}else i=F3(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const l=i.value;return xm.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(i);_s(e)}function _s(e,t){const n=new En("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=oy+"#cannot-handle-mdx-estrees-without-createevaluater",n}function _k(e){const t={};let n;for(n in e)xm.call(e,n)&&(t[Ok(n)]=e[n]);return t}function Ok(e){let t=e.replace(gk,Rk);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Rk(e){return"-"+e.toLowerCase()}const Dd={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"]},Bk={};function Sm(e,t){const n=Bk,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,l=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return fy(e,i,l)}function fy(e,t,n){if(Lk(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Q3(e.children,t,n)}return Array.isArray(e)?Q3(e,t,n):""}function Q3(e,t,n){const i=[];let l=-1;for(;++l<e.length;)i[l]=fy(e[l],t,n);return i.join("")}function Lk(e){return!!(e&&typeof e=="object")}const K3=document.createElement("i");function km(e){const t="&"+e+";";K3.innerHTML=t;const n=K3.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ir(e,t,n,i){const l=e.length;let s=0,u;if(t<0?t=-t>l?0:l+t:t=t>l?l:t,n=n>0?n:0,i.length<1e4)u=Array.from(i),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);s<i.length;)u=i.slice(s,s+1e4),u.unshift(t,0),e.splice(...u),s+=1e4,t+=1e4}function vr(e,t){return e.length>0?(ir(e,e.length,0,t),e):t}const J3={}.hasOwnProperty;function hy(e){const t={};let n=-1;for(;++n<e.length;)Hk(t,e[n]);return t}function Hk(e,t){let n;for(n in t){const l=(J3.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let u;if(s)for(u in s){J3.call(l,u)||(l[u]=[]);const f=s[u];jk(l[u],Array.isArray(f)?f:f?[f]:[])}}}function jk(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);ir(e,0,0,i)}function dy(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Nr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Nn=wa(/[A-Za-z]/),Sn=wa(/[\dA-Za-z]/),qk=wa(/[#-'*+\--9=?A-Z^-~]/);function rc(e){return e!==null&&(e<32||e===127)}const D1=wa(/\d/),Ik=wa(/[\dA-Fa-f]/),Uk=wa(/[!-/:-@[-`{-~]/);function He(e){return e!==null&&e<-2}function zt(e){return e!==null&&(e<0||e===32)}function lt(e){return e===-2||e===-1||e===32}const Rc=wa(new RegExp("\\p{P}|\\p{S}","u")),Qa=wa(/\s/);function wa(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function bo(e){const t=[];let n=-1,i=0,l=0;for(;++n<e.length;){const s=e.charCodeAt(n);let u="";if(s===37&&Sn(e.charCodeAt(n+1))&&Sn(e.charCodeAt(n+2)))l=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(u=String.fromCharCode(s));else if(s>55295&&s<57344){const f=e.charCodeAt(n+1);s<56320&&f>56319&&f<57344?(u=String.fromCharCode(s,f),l=1):u="�"}else u=String.fromCharCode(s);u&&(t.push(e.slice(i,n),encodeURIComponent(u)),i=n+l+1,u=""),l&&(n+=l,l=0)}return t.join("")+e.slice(i)}function rt(e,t,n,i){const l=i?i-1:Number.POSITIVE_INFINITY;let s=0;return u;function u(h){return lt(h)?(e.enter(n),f(h)):t(h)}function f(h){return lt(h)&&s++<l?(e.consume(h),f):(e.exit(n),t(h))}}const Fk={tokenize:Vk};function Vk(e){const t=e.attempt(this.parser.constructs.contentInitial,i,l);let n;return t;function i(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),rt(e,t,"linePrefix")}function l(f){return e.enter("paragraph"),s(f)}function s(f){const h=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=h),n=h,u(f)}function u(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return He(f)?(e.consume(f),e.exit("chunkText"),s):(e.consume(f),u)}}const Yk={tokenize:Gk},W3={tokenize:$k};function Gk(e){const t=this,n=[];let i=0,l,s,u;return f;function f(T){if(i<n.length){const B=n[i];return t.containerState=B[1],e.attempt(B[0].continuation,h,d)(T)}return d(T)}function h(T){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&D();const B=t.events.length;let U=B,z;for(;U--;)if(t.events[U][0]==="exit"&&t.events[U][1].type==="chunkFlow"){z=t.events[U][1].end;break}E(i);let I=B;for(;I<t.events.length;)t.events[I][1].end={...z},I++;return ir(t.events,U+1,0,t.events.slice(B)),t.events.length=I,d(T)}return f(T)}function d(T){if(i===n.length){if(!l)return v(T);if(l.currentConstruct&&l.currentConstruct.concrete)return w(T);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(W3,p,m)(T)}function p(T){return l&&D(),E(i),v(T)}function m(T){return t.parser.lazy[t.now().line]=i!==n.length,u=t.now().offset,w(T)}function v(T){return t.containerState={},e.attempt(W3,x,w)(T)}function x(T){return i++,n.push([t.currentConstruct,t.containerState]),v(T)}function w(T){if(T===null){l&&D(),E(0),e.consume(T);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:s}),A(T)}function A(T){if(T===null){C(e.exit("chunkFlow"),!0),E(0),e.consume(T);return}return He(T)?(e.consume(T),C(e.exit("chunkFlow")),i=0,t.interrupt=void 0,f):(e.consume(T),A)}function C(T,B){const U=t.sliceStream(T);if(B&&U.push(null),T.previous=s,s&&(s.next=T),s=T,l.defineSkip(T.start),l.write(U),t.parser.lazy[T.start.line]){let z=l.events.length;for(;z--;)if(l.events[z][1].start.offset<u&&(!l.events[z][1].end||l.events[z][1].end.offset>u))return;const I=t.events.length;let P=I,$,V;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){if($){V=t.events[P][1].end;break}$=!0}for(E(i),z=I;z<t.events.length;)t.events[z][1].end={...V},z++;ir(t.events,P+1,0,t.events.slice(I)),t.events.length=z}}function E(T){let B=n.length;for(;B-- >T;){const U=n[B];t.containerState=U[1],U[0].exit.call(t,e)}n.length=T}function D(){l.write([null]),s=void 0,l=void 0,t.containerState._closeFlow=void 0}}function $k(e,t,n){return rt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ao(e){if(e===null||zt(e)||Qa(e))return 1;if(Rc(e))return 2}function Bc(e,t,n){const i=[];let l=-1;for(;++l<e.length;){const s=e[l].resolveAll;s&&!i.includes(s)&&(t=s(t,n),i.push(s))}return t}const _1={name:"attention",resolveAll:Xk,tokenize:Pk};function Xk(e,t){let n=-1,i,l,s,u,f,h,d,p;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;h=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const m={...e[i][1].end},v={...e[n][1].start};e5(m,-h),e5(v,h),u={type:h>1?"strongSequence":"emphasisSequence",start:m,end:{...e[i][1].end}},f={type:h>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:v},s={type:h>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},l={type:h>1?"strong":"emphasis",start:{...u.start},end:{...f.end}},e[i][1].end={...u.start},e[n][1].start={...f.end},d=[],e[i][1].end.offset-e[i][1].start.offset&&(d=vr(d,[["enter",e[i][1],t],["exit",e[i][1],t]])),d=vr(d,[["enter",l,t],["enter",u,t],["exit",u,t],["enter",s,t]]),d=vr(d,Bc(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),d=vr(d,[["exit",s,t],["enter",f,t],["exit",f,t],["exit",l,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,d=vr(d,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,ir(e,i-1,n-i+3,d),n=i+d.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Pk(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,l=ao(i);let s;return u;function u(h){return s=h,e.enter("attentionSequence"),f(h)}function f(h){if(h===s)return e.consume(h),f;const d=e.exit("attentionSequence"),p=ao(h),m=!p||p===2&&l||n.includes(h),v=!l||l===2&&p||n.includes(i);return d._open=!!(s===42?m:m&&(l||!v)),d._close=!!(s===42?v:v&&(p||!m)),t(h)}}function e5(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Zk={name:"autolink",tokenize:Qk};function Qk(e,t,n){let i=0;return l;function l(x){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(x){return Nn(x)?(e.consume(x),u):x===64?n(x):d(x)}function u(x){return x===43||x===45||x===46||Sn(x)?(i=1,f(x)):d(x)}function f(x){return x===58?(e.consume(x),i=0,h):(x===43||x===45||x===46||Sn(x))&&i++<32?(e.consume(x),f):(i=0,d(x))}function h(x){return x===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),t):x===null||x===32||x===60||rc(x)?n(x):(e.consume(x),h)}function d(x){return x===64?(e.consume(x),p):qk(x)?(e.consume(x),d):n(x)}function p(x){return Sn(x)?m(x):n(x)}function m(x){return x===46?(e.consume(x),i=0,p):x===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),t):v(x)}function v(x){if((x===45||Sn(x))&&i++<63){const w=x===45?v:m;return e.consume(x),w}return n(x)}}const Qs={partial:!0,tokenize:Kk};function Kk(e,t,n){return i;function i(s){return lt(s)?rt(e,l,"linePrefix")(s):l(s)}function l(s){return s===null||He(s)?t(s):n(s)}}const my={continuation:{tokenize:Wk},exit:eE,name:"blockQuote",tokenize:Jk};function Jk(e,t,n){const i=this;return l;function l(u){if(u===62){const f=i.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),s}return n(u)}function s(u){return lt(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function Wk(e,t,n){const i=this;return l;function l(u){return lt(u)?rt(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):s(u)}function s(u){return e.attempt(my,t,n)(u)}}function eE(e){e.exit("blockQuote")}const py={name:"characterEscape",tokenize:tE};function tE(e,t,n){return i;function i(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),l}function l(s){return Uk(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const gy={name:"characterReference",tokenize:nE};function nE(e,t,n){const i=this;let l=0,s,u;return f;function f(m){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),h}function h(m){return m===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(m),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),s=31,u=Sn,p(m))}function d(m){return m===88||m===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(m),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,u=Ik,p):(e.enter("characterReferenceValue"),s=7,u=D1,p(m))}function p(m){if(m===59&&l){const v=e.exit("characterReferenceValue");return u===Sn&&!km(i.sliceSerialize(v))?n(m):(e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(m)&&l++<s?(e.consume(m),p):n(m)}}const t5={partial:!0,tokenize:iE},n5={concrete:!0,name:"codeFenced",tokenize:rE};function rE(e,t,n){const i=this,l={partial:!0,tokenize:U};let s=0,u=0,f;return h;function h(z){return d(z)}function d(z){const I=i.events[i.events.length-1];return s=I&&I[1].type==="linePrefix"?I[2].sliceSerialize(I[1],!0).length:0,f=z,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(z)}function p(z){return z===f?(u++,e.consume(z),p):u<3?n(z):(e.exit("codeFencedFenceSequence"),lt(z)?rt(e,m,"whitespace")(z):m(z))}function m(z){return z===null||He(z)?(e.exit("codeFencedFence"),i.interrupt?t(z):e.check(t5,A,B)(z)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(z))}function v(z){return z===null||He(z)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),m(z)):lt(z)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),rt(e,x,"whitespace")(z)):z===96&&z===f?n(z):(e.consume(z),v)}function x(z){return z===null||He(z)?m(z):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(z))}function w(z){return z===null||He(z)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(z)):z===96&&z===f?n(z):(e.consume(z),w)}function A(z){return e.attempt(l,B,C)(z)}function C(z){return e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),E}function E(z){return s>0&&lt(z)?rt(e,D,"linePrefix",s+1)(z):D(z)}function D(z){return z===null||He(z)?e.check(t5,A,B)(z):(e.enter("codeFlowValue"),T(z))}function T(z){return z===null||He(z)?(e.exit("codeFlowValue"),D(z)):(e.consume(z),T)}function B(z){return e.exit("codeFenced"),t(z)}function U(z,I,P){let $=0;return V;function V(F){return z.enter("lineEnding"),z.consume(F),z.exit("lineEnding"),G}function G(F){return z.enter("codeFencedFence"),lt(F)?rt(z,W,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):W(F)}function W(F){return F===f?(z.enter("codeFencedFenceSequence"),ce(F)):P(F)}function ce(F){return F===f?($++,z.consume(F),ce):$>=u?(z.exit("codeFencedFenceSequence"),lt(F)?rt(z,q,"whitespace")(F):q(F)):P(F)}function q(F){return F===null||He(F)?(z.exit("codeFencedFence"),I(F)):P(F)}}}function iE(e,t,n){const i=this;return l;function l(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s)}function s(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}const _d={name:"codeIndented",tokenize:lE},aE={partial:!0,tokenize:oE};function lE(e,t,n){const i=this;return l;function l(d){return e.enter("codeIndented"),rt(e,s,"linePrefix",5)(d)}function s(d){const p=i.events[i.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?u(d):n(d)}function u(d){return d===null?h(d):He(d)?e.attempt(aE,u,h)(d):(e.enter("codeFlowValue"),f(d))}function f(d){return d===null||He(d)?(e.exit("codeFlowValue"),u(d)):(e.consume(d),f)}function h(d){return e.exit("codeIndented"),t(d)}}function oE(e,t,n){const i=this;return l;function l(u){return i.parser.lazy[i.now().line]?n(u):He(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):rt(e,s,"linePrefix",5)(u)}function s(u){const f=i.events[i.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):He(u)?l(u):n(u)}}const sE={name:"codeText",previous:cE,resolve:uE,tokenize:fE};function uE(e){let t=e.length-4,n=3,i,l;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)l===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(l=i):(i===t||e[i][1].type==="lineEnding")&&(e[l][1].type="codeTextData",i!==l+2&&(e[l][1].end=e[i-1][1].end,e.splice(l+2,i-l-2),t-=i-l-2,i=l+2),l=void 0);return e}function cE(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function fE(e,t,n){let i=0,l,s;return u;function u(m){return e.enter("codeText"),e.enter("codeTextSequence"),f(m)}function f(m){return m===96?(e.consume(m),i++,f):(e.exit("codeTextSequence"),h(m))}function h(m){return m===null?n(m):m===32?(e.enter("space"),e.consume(m),e.exit("space"),h):m===96?(s=e.enter("codeTextSequence"),l=0,p(m)):He(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),h):(e.enter("codeTextData"),d(m))}function d(m){return m===null||m===32||m===96||He(m)?(e.exit("codeTextData"),h(m)):(e.consume(m),d)}function p(m){return m===96?(e.consume(m),l++,p):l===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(m)):(s.type="codeTextData",d(m))}}class hE{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,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const l=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return i&&gs(this.left,i),s.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),gs(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),gs(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);gs(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);gs(this.left,n.reverse())}}}function gs(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function yy(e){const t={};let n=-1,i,l,s,u,f,h,d;const p=new hE(e);for(;++n<p.length;){for(;n in t;)n=t[n];if(i=p.get(n),n&&i[1].type==="chunkFlow"&&p.get(n-1)[1].type==="listItemPrefix"&&(h=i[1]._tokenizer.events,s=0,s<h.length&&h[s][1].type==="lineEndingBlank"&&(s+=2),s<h.length&&h[s][1].type==="content"))for(;++s<h.length&&h[s][1].type!=="content";)h[s][1].type==="chunkText"&&(h[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,dE(p,n)),n=t[n],d=!0);else if(i[1]._container){for(s=n,l=void 0;s--;)if(u=p.get(s),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(l&&(p.get(l)[1].type="lineEndingBlank"),u[1].type="lineEnding",l=s);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;l&&(i[1].end={...p.get(l)[1].start},f=p.slice(l,n),f.unshift(i),p.splice(l,n-l+1,f))}}return ir(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!d}function dE(e,t){const n=e.get(t)[1],i=e.get(t)[2];let l=t-1;const s=[];let u=n._tokenizer;u||(u=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const f=u.events,h=[],d={};let p,m,v=-1,x=n,w=0,A=0;const C=[A];for(;x;){for(;e.get(++l)[1]!==x;);s.push(l),x._tokenizer||(p=i.sliceStream(x),x.next||p.push(null),m&&u.defineSkip(x.start),x._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(p),x._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),m=x,x=x.next}for(x=n;++v<f.length;)f[v][0]==="exit"&&f[v-1][0]==="enter"&&f[v][1].type===f[v-1][1].type&&f[v][1].start.line!==f[v][1].end.line&&(A=v+1,C.push(A),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(u.events=[],x?(x._tokenizer=void 0,x.previous=void 0):C.pop(),v=C.length;v--;){const E=f.slice(C[v],C[v+1]),D=s.pop();h.push([D,D+E.length-1]),e.splice(D,2,E)}for(h.reverse(),v=-1;++v<h.length;)d[w+h[v][0]]=w+h[v][1],w+=h[v][1]-h[v][0]-1;return d}const mE={resolve:gE,tokenize:yE},pE={partial:!0,tokenize:vE};function gE(e){return yy(e),e}function yE(e,t){let n;return i;function i(f){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),l(f)}function l(f){return f===null?s(f):He(f)?e.check(pE,u,s)(f):(e.consume(f),l)}function s(f){return e.exit("chunkContent"),e.exit("content"),t(f)}function u(f){return e.consume(f),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,l}}function vE(e,t,n){const i=this;return l;function l(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),rt(e,s,"linePrefix")}function s(u){if(u===null||He(u))return n(u);const f=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):e.interrupt(i.parser.constructs.flow,n,t)(u)}}function vy(e,t,n,i,l,s,u,f,h){const d=h||Number.POSITIVE_INFINITY;let p=0;return m;function m(E){return E===60?(e.enter(i),e.enter(l),e.enter(s),e.consume(E),e.exit(s),v):E===null||E===32||E===41||rc(E)?n(E):(e.enter(i),e.enter(u),e.enter(f),e.enter("chunkString",{contentType:"string"}),A(E))}function v(E){return E===62?(e.enter(s),e.consume(E),e.exit(s),e.exit(l),e.exit(i),t):(e.enter(f),e.enter("chunkString",{contentType:"string"}),x(E))}function x(E){return E===62?(e.exit("chunkString"),e.exit(f),v(E)):E===null||E===60||He(E)?n(E):(e.consume(E),E===92?w:x)}function w(E){return E===60||E===62||E===92?(e.consume(E),x):x(E)}function A(E){return!p&&(E===null||E===41||zt(E))?(e.exit("chunkString"),e.exit(f),e.exit(u),e.exit(i),t(E)):p<d&&E===40?(e.consume(E),p++,A):E===41?(e.consume(E),p--,A):E===null||E===32||E===40||rc(E)?n(E):(e.consume(E),E===92?C:A)}function C(E){return E===40||E===41||E===92?(e.consume(E),A):A(E)}}function xy(e,t,n,i,l,s){const u=this;let f=0,h;return d;function d(x){return e.enter(i),e.enter(l),e.consume(x),e.exit(l),e.enter(s),p}function p(x){return f>999||x===null||x===91||x===93&&!h||x===94&&!f&&"_hiddenFootnoteSupport"in u.parser.constructs?n(x):x===93?(e.exit(s),e.enter(l),e.consume(x),e.exit(l),e.exit(i),t):He(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),m(x))}function m(x){return x===null||x===91||x===93||He(x)||f++>999?(e.exit("chunkString"),p(x)):(e.consume(x),h||(h=!lt(x)),x===92?v:m)}function v(x){return x===91||x===92||x===93?(e.consume(x),f++,m):m(x)}}function by(e,t,n,i,l,s){let u;return f;function f(v){return v===34||v===39||v===40?(e.enter(i),e.enter(l),e.consume(v),e.exit(l),u=v===40?41:v,h):n(v)}function h(v){return v===u?(e.enter(l),e.consume(v),e.exit(l),e.exit(i),t):(e.enter(s),d(v))}function d(v){return v===u?(e.exit(s),h(u)):v===null?n(v):He(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),rt(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===u||v===null||He(v)?(e.exit("chunkString"),d(v)):(e.consume(v),v===92?m:p)}function m(v){return v===u||v===92?(e.consume(v),p):p(v)}}function As(e,t){let n;return i;function i(l){return He(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,i):lt(l)?rt(e,i,n?"linePrefix":"lineSuffix")(l):t(l)}}const xE={name:"definition",tokenize:wE},bE={partial:!0,tokenize:SE};function wE(e,t,n){const i=this;let l;return s;function s(x){return e.enter("definition"),u(x)}function u(x){return xy.call(i,e,f,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function f(x){return l=Nr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),h):n(x)}function h(x){return zt(x)?As(e,d)(x):d(x)}function d(x){return vy(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function p(x){return e.attempt(bE,m,m)(x)}function m(x){return lt(x)?rt(e,v,"whitespace")(x):v(x)}function v(x){return x===null||He(x)?(e.exit("definition"),i.parser.defined.push(l),t(x)):n(x)}}function SE(e,t,n){return i;function i(f){return zt(f)?As(e,l)(f):n(f)}function l(f){return by(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function s(f){return lt(f)?rt(e,u,"whitespace")(f):u(f)}function u(f){return f===null||He(f)?t(f):n(f)}}const kE={name:"hardBreakEscape",tokenize:EE};function EE(e,t,n){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),l}function l(s){return He(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const AE={name:"headingAtx",resolve:CE,tokenize:TE};function CE(e,t){let n=e.length-2,i=3,l,s;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(l={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},s={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},ir(e,i,n-i+1,[["enter",l,t],["enter",s,t],["exit",s,t],["exit",l,t]])),e}function TE(e,t,n){let i=0;return l;function l(p){return e.enter("atxHeading"),s(p)}function s(p){return e.enter("atxHeadingSequence"),u(p)}function u(p){return p===35&&i++<6?(e.consume(p),u):p===null||zt(p)?(e.exit("atxHeadingSequence"),f(p)):n(p)}function f(p){return p===35?(e.enter("atxHeadingSequence"),h(p)):p===null||He(p)?(e.exit("atxHeading"),t(p)):lt(p)?rt(e,f,"whitespace")(p):(e.enter("atxHeadingText"),d(p))}function h(p){return p===35?(e.consume(p),h):(e.exit("atxHeadingSequence"),f(p))}function d(p){return p===null||p===35||zt(p)?(e.exit("atxHeadingText"),f(p)):(e.consume(p),d)}}const ME=["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"],r5=["pre","script","style","textarea"],zE={concrete:!0,name:"htmlFlow",resolveTo:_E,tokenize:OE},NE={partial:!0,tokenize:BE},DE={partial:!0,tokenize:RE};function _E(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 OE(e,t,n){const i=this;let l,s,u,f,h;return d;function d(_){return p(_)}function p(_){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(_),m}function m(_){return _===33?(e.consume(_),v):_===47?(e.consume(_),s=!0,A):_===63?(e.consume(_),l=3,i.interrupt?t:R):Nn(_)?(e.consume(_),u=String.fromCharCode(_),C):n(_)}function v(_){return _===45?(e.consume(_),l=2,x):_===91?(e.consume(_),l=5,f=0,w):Nn(_)?(e.consume(_),l=4,i.interrupt?t:R):n(_)}function x(_){return _===45?(e.consume(_),i.interrupt?t:R):n(_)}function w(_){const se="CDATA[";return _===se.charCodeAt(f++)?(e.consume(_),f===se.length?i.interrupt?t:W:w):n(_)}function A(_){return Nn(_)?(e.consume(_),u=String.fromCharCode(_),C):n(_)}function C(_){if(_===null||_===47||_===62||zt(_)){const se=_===47,ve=u.toLowerCase();return!se&&!s&&r5.includes(ve)?(l=1,i.interrupt?t(_):W(_)):ME.includes(u.toLowerCase())?(l=6,se?(e.consume(_),E):i.interrupt?t(_):W(_)):(l=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(_):s?D(_):T(_))}return _===45||Sn(_)?(e.consume(_),u+=String.fromCharCode(_),C):n(_)}function E(_){return _===62?(e.consume(_),i.interrupt?t:W):n(_)}function D(_){return lt(_)?(e.consume(_),D):V(_)}function T(_){return _===47?(e.consume(_),V):_===58||_===95||Nn(_)?(e.consume(_),B):lt(_)?(e.consume(_),T):V(_)}function B(_){return _===45||_===46||_===58||_===95||Sn(_)?(e.consume(_),B):U(_)}function U(_){return _===61?(e.consume(_),z):lt(_)?(e.consume(_),U):T(_)}function z(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),h=_,I):lt(_)?(e.consume(_),z):P(_)}function I(_){return _===h?(e.consume(_),h=null,$):_===null||He(_)?n(_):(e.consume(_),I)}function P(_){return _===null||_===34||_===39||_===47||_===60||_===61||_===62||_===96||zt(_)?U(_):(e.consume(_),P)}function $(_){return _===47||_===62||lt(_)?T(_):n(_)}function V(_){return _===62?(e.consume(_),G):n(_)}function G(_){return _===null||He(_)?W(_):lt(_)?(e.consume(_),G):n(_)}function W(_){return _===45&&l===2?(e.consume(_),L):_===60&&l===1?(e.consume(_),Y):_===62&&l===4?(e.consume(_),j):_===63&&l===3?(e.consume(_),R):_===93&&l===5?(e.consume(_),ne):He(_)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(NE,Q,ce)(_)):_===null||He(_)?(e.exit("htmlFlowData"),ce(_)):(e.consume(_),W)}function ce(_){return e.check(DE,q,Q)(_)}function q(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),F}function F(_){return _===null||He(_)?ce(_):(e.enter("htmlFlowData"),W(_))}function L(_){return _===45?(e.consume(_),R):W(_)}function Y(_){return _===47?(e.consume(_),u="",J):W(_)}function J(_){if(_===62){const se=u.toLowerCase();return r5.includes(se)?(e.consume(_),j):W(_)}return Nn(_)&&u.length<8?(e.consume(_),u+=String.fromCharCode(_),J):W(_)}function ne(_){return _===93?(e.consume(_),R):W(_)}function R(_){return _===62?(e.consume(_),j):_===45&&l===2?(e.consume(_),R):W(_)}function j(_){return _===null||He(_)?(e.exit("htmlFlowData"),Q(_)):(e.consume(_),j)}function Q(_){return e.exit("htmlFlow"),t(_)}}function RE(e,t,n){const i=this;return l;function l(u){return He(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):n(u)}function s(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}function BE(e,t,n){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(Qs,t,n)}}const LE={name:"htmlText",tokenize:HE};function HE(e,t,n){const i=this;let l,s,u;return f;function f(R){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(R),h}function h(R){return R===33?(e.consume(R),d):R===47?(e.consume(R),U):R===63?(e.consume(R),T):Nn(R)?(e.consume(R),P):n(R)}function d(R){return R===45?(e.consume(R),p):R===91?(e.consume(R),s=0,w):Nn(R)?(e.consume(R),D):n(R)}function p(R){return R===45?(e.consume(R),x):n(R)}function m(R){return R===null?n(R):R===45?(e.consume(R),v):He(R)?(u=m,Y(R)):(e.consume(R),m)}function v(R){return R===45?(e.consume(R),x):m(R)}function x(R){return R===62?L(R):R===45?v(R):m(R)}function w(R){const j="CDATA[";return R===j.charCodeAt(s++)?(e.consume(R),s===j.length?A:w):n(R)}function A(R){return R===null?n(R):R===93?(e.consume(R),C):He(R)?(u=A,Y(R)):(e.consume(R),A)}function C(R){return R===93?(e.consume(R),E):A(R)}function E(R){return R===62?L(R):R===93?(e.consume(R),E):A(R)}function D(R){return R===null||R===62?L(R):He(R)?(u=D,Y(R)):(e.consume(R),D)}function T(R){return R===null?n(R):R===63?(e.consume(R),B):He(R)?(u=T,Y(R)):(e.consume(R),T)}function B(R){return R===62?L(R):T(R)}function U(R){return Nn(R)?(e.consume(R),z):n(R)}function z(R){return R===45||Sn(R)?(e.consume(R),z):I(R)}function I(R){return He(R)?(u=I,Y(R)):lt(R)?(e.consume(R),I):L(R)}function P(R){return R===45||Sn(R)?(e.consume(R),P):R===47||R===62||zt(R)?$(R):n(R)}function $(R){return R===47?(e.consume(R),L):R===58||R===95||Nn(R)?(e.consume(R),V):He(R)?(u=$,Y(R)):lt(R)?(e.consume(R),$):L(R)}function V(R){return R===45||R===46||R===58||R===95||Sn(R)?(e.consume(R),V):G(R)}function G(R){return R===61?(e.consume(R),W):He(R)?(u=G,Y(R)):lt(R)?(e.consume(R),G):$(R)}function W(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),l=R,ce):He(R)?(u=W,Y(R)):lt(R)?(e.consume(R),W):(e.consume(R),q)}function ce(R){return R===l?(e.consume(R),l=void 0,F):R===null?n(R):He(R)?(u=ce,Y(R)):(e.consume(R),ce)}function q(R){return R===null||R===34||R===39||R===60||R===61||R===96?n(R):R===47||R===62||zt(R)?$(R):(e.consume(R),q)}function F(R){return R===47||R===62||zt(R)?$(R):n(R)}function L(R){return R===62?(e.consume(R),e.exit("htmlTextData"),e.exit("htmlText"),t):n(R)}function Y(R){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),J}function J(R){return lt(R)?rt(e,ne,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):ne(R)}function ne(R){return e.enter("htmlTextData"),u(R)}}const Em={name:"labelEnd",resolveAll:UE,resolveTo:FE,tokenize:VE},jE={tokenize:YE},qE={tokenize:GE},IE={tokenize:$E};function UE(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const l=i.type==="labelImage"?4:2;i.type="data",t+=l}}return e.length!==n.length&&ir(e,0,e.length,n),e}function FE(e,t){let n=e.length,i=0,l,s,u,f;for(;n--;)if(l=e[n][1],s){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[n][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(s=n,l.type!=="labelLink")){i=2;break}}else l.type==="labelEnd"&&(u=n);const h={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},d={type:"label",start:{...e[s][1].start},end:{...e[u][1].end}},p={type:"labelText",start:{...e[s+i+2][1].end},end:{...e[u-2][1].start}};return f=[["enter",h,t],["enter",d,t]],f=vr(f,e.slice(s+1,s+i+3)),f=vr(f,[["enter",p,t]]),f=vr(f,Bc(t.parser.constructs.insideSpan.null,e.slice(s+i+4,u-3),t)),f=vr(f,[["exit",p,t],e[u-2],e[u-1],["exit",d,t]]),f=vr(f,e.slice(u+1)),f=vr(f,[["exit",h,t]]),ir(e,s,e.length,f),e}function VE(e,t,n){const i=this;let l=i.events.length,s,u;for(;l--;)if((i.events[l][1].type==="labelImage"||i.events[l][1].type==="labelLink")&&!i.events[l][1]._balanced){s=i.events[l][1];break}return f;function f(v){return s?s._inactive?m(v):(u=i.parser.defined.includes(Nr(i.sliceSerialize({start:s.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),h):n(v)}function h(v){return v===40?e.attempt(jE,p,u?p:m)(v):v===91?e.attempt(qE,p,u?d:m)(v):u?p(v):m(v)}function d(v){return e.attempt(IE,p,m)(v)}function p(v){return t(v)}function m(v){return s._balanced=!0,n(v)}}function YE(e,t,n){return i;function i(m){return e.enter("resource"),e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),l}function l(m){return zt(m)?As(e,s)(m):s(m)}function s(m){return m===41?p(m):vy(e,u,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function u(m){return zt(m)?As(e,h)(m):p(m)}function f(m){return n(m)}function h(m){return m===34||m===39||m===40?by(e,d,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):p(m)}function d(m){return zt(m)?As(e,p)(m):p(m)}function p(m){return m===41?(e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),e.exit("resource"),t):n(m)}}function GE(e,t,n){const i=this;return l;function l(f){return xy.call(i,e,s,u,"reference","referenceMarker","referenceString")(f)}function s(f){return i.parser.defined.includes(Nr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(f):n(f)}function u(f){return n(f)}}function $E(e,t,n){return i;function i(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),l}function l(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const XE={name:"labelStartImage",resolveAll:Em.resolveAll,tokenize:PE};function PE(e,t,n){const i=this;return l;function l(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),s}function s(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),u):n(f)}function u(f){return f===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(f):t(f)}}const ZE={name:"labelStartLink",resolveAll:Em.resolveAll,tokenize:QE};function QE(e,t,n){const i=this;return l;function l(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),s}function s(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(u):t(u)}}const Od={name:"lineEnding",tokenize:KE};function KE(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),rt(e,t,"linePrefix")}}const G0={name:"thematicBreak",tokenize:JE};function JE(e,t,n){let i=0,l;return s;function s(d){return e.enter("thematicBreak"),u(d)}function u(d){return l=d,f(d)}function f(d){return d===l?(e.enter("thematicBreakSequence"),h(d)):i>=3&&(d===null||He(d))?(e.exit("thematicBreak"),t(d)):n(d)}function h(d){return d===l?(e.consume(d),i++,h):(e.exit("thematicBreakSequence"),lt(d)?rt(e,f,"whitespace")(d):f(d))}}const Fn={continuation:{tokenize:nA},exit:iA,name:"list",tokenize:tA},WE={partial:!0,tokenize:aA},eA={partial:!0,tokenize:rA};function tA(e,t,n){const i=this,l=i.events[i.events.length-1];let s=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,u=0;return f;function f(x){const w=i.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!i.containerState.marker||x===i.containerState.marker:D1(x)){if(i.containerState.type||(i.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),x===42||x===45?e.check(G0,n,d)(x):d(x);if(!i.interrupt||x===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(x)}return n(x)}function h(x){return D1(x)&&++u<10?(e.consume(x),h):(!i.interrupt||u<2)&&(i.containerState.marker?x===i.containerState.marker:x===41||x===46)?(e.exit("listItemValue"),d(x)):n(x)}function d(x){return e.enter("listItemMarker"),e.consume(x),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||x,e.check(Qs,i.interrupt?n:p,e.attempt(WE,v,m))}function p(x){return i.containerState.initialBlankLine=!0,s++,v(x)}function m(x){return lt(x)?(e.enter("listItemPrefixWhitespace"),e.consume(x),e.exit("listItemPrefixWhitespace"),v):n(x)}function v(x){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(x)}}function nA(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(Qs,l,s);function l(f){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,rt(e,t,"listItemIndent",i.containerState.size+1)(f)}function s(f){return i.containerState.furtherBlankLines||!lt(f)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,u(f)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(eA,t,u)(f))}function u(f){return i.containerState._closeFlow=!0,i.interrupt=void 0,rt(e,e.attempt(Fn,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function rA(e,t,n){const i=this;return rt(e,l,"listItemIndent",i.containerState.size+1);function l(s){const u=i.events[i.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===i.containerState.size?t(s):n(s)}}function iA(e){e.exit(this.containerState.type)}function aA(e,t,n){const i=this;return rt(e,l,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(s){const u=i.events[i.events.length-1];return!lt(s)&&u&&u[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const i5={name:"setextUnderline",resolveTo:lA,tokenize:oA};function lA(e,t){let n=e.length,i,l,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(l=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const u={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",s?(e.splice(l,0,["enter",u,t]),e.splice(s+1,0,["exit",e[i][1],t]),e[i][1].end={...e[s][1].end}):e[i][1]=u,e.push(["exit",u,t]),e}function oA(e,t,n){const i=this;let l;return s;function s(d){let p=i.events.length,m;for(;p--;)if(i.events[p][1].type!=="lineEnding"&&i.events[p][1].type!=="linePrefix"&&i.events[p][1].type!=="content"){m=i.events[p][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||m)?(e.enter("setextHeadingLine"),l=d,u(d)):n(d)}function u(d){return e.enter("setextHeadingLineSequence"),f(d)}function f(d){return d===l?(e.consume(d),f):(e.exit("setextHeadingLineSequence"),lt(d)?rt(e,h,"lineSuffix")(d):h(d))}function h(d){return d===null||He(d)?(e.exit("setextHeadingLine"),t(d)):n(d)}}const sA={tokenize:uA};function uA(e){const t=this,n=e.attempt(Qs,i,e.attempt(this.parser.constructs.flowInitial,l,rt(e,e.attempt(this.parser.constructs.flow,l,e.attempt(mE,l)),"linePrefix")));return n;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function l(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const cA={resolveAll:Sy()},fA=wy("string"),hA=wy("text");function wy(e){return{resolveAll:Sy(e==="text"?dA:void 0),tokenize:t};function t(n){const i=this,l=this.parser.constructs[e],s=n.attempt(l,u,f);return u;function u(p){return d(p)?s(p):f(p)}function f(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),h}function h(p){return d(p)?(n.exit("data"),s(p)):(n.consume(p),h)}function d(p){if(p===null)return!0;const m=l[p];let v=-1;if(m)for(;++v<m.length;){const x=m[v];if(!x.previous||x.previous.call(i,i.previous))return!0}return!1}}}function Sy(e){return t;function t(n,i){let l=-1,s;for(;++l<=n.length;)s===void 0?n[l]&&n[l][1].type==="data"&&(s=l,l++):(!n[l]||n[l][1].type!=="data")&&(l!==s+2&&(n[s][1].end=n[l-1][1].end,n.splice(s+2,l-s-2),l=s+2),s=void 0);return e?e(n,i):n}}function dA(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],l=t.sliceStream(i);let s=l.length,u=-1,f=0,h;for(;s--;){const d=l[s];if(typeof d=="string"){for(u=d.length;d.charCodeAt(u-1)===32;)f++,u--;if(u)break;u=-1}else if(d===-2)h=!0,f++;else if(d!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(f=0),f){const d={type:n===e.length||h||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?u:i.start._bufferIndex+u,_index:i.start._index+s,line:i.end.line,column:i.end.column-f,offset:i.end.offset-f},end:{...i.end}};i.end={...d.start},i.start.offset===i.end.offset?Object.assign(i,d):(e.splice(n,0,["enter",d,t],["exit",d,t]),n+=2)}n++}return e}const mA={42:Fn,43:Fn,45:Fn,48:Fn,49:Fn,50:Fn,51:Fn,52:Fn,53:Fn,54:Fn,55:Fn,56:Fn,57:Fn,62:my},pA={91:xE},gA={[-2]:_d,[-1]:_d,32:_d},yA={35:AE,42:G0,45:[i5,G0],60:zE,61:i5,95:G0,96:n5,126:n5},vA={38:gy,92:py},xA={[-5]:Od,[-4]:Od,[-3]:Od,33:XE,38:gy,42:_1,60:[Zk,LE],91:ZE,92:[kE,py],93:Em,95:_1,96:sE},bA={null:[_1,cA]},wA={null:[42,95]},SA={null:[]},kA=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:wA,contentInitial:pA,disable:SA,document:mA,flow:yA,flowInitial:gA,insideSpan:bA,string:vA,text:xA},Symbol.toStringTag,{value:"Module"}));function EA(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const l={},s=[];let u=[],f=[];const h={attempt:I(U),check:I(z),consume:D,enter:T,exit:B,interrupt:I(z,{interrupt:!0})},d={code:null,containerState:{},defineSkip:A,events:[],now:w,parser:e,previous:null,sliceSerialize:v,sliceStream:x,write:m};let p=t.tokenize.call(d,h);return t.resolveAll&&s.push(t),d;function m(G){return u=vr(u,G),C(),u[u.length-1]!==null?[]:(P(t,0),d.events=Bc(s,d.events,d),d.events)}function v(G,W){return CA(x(G),W)}function x(G){return AA(u,G)}function w(){const{_bufferIndex:G,_index:W,line:ce,column:q,offset:F}=i;return{_bufferIndex:G,_index:W,line:ce,column:q,offset:F}}function A(G){l[G.line]=G.column,V()}function C(){let G;for(;i._index<u.length;){const W=u[i._index];if(typeof W=="string")for(G=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===G&&i._bufferIndex<W.length;)E(W.charCodeAt(i._bufferIndex));else E(W)}}function E(G){p=p(G)}function D(G){He(G)?(i.line++,i.column=1,i.offset+=G===-3?2:1,V()):G!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===u[i._index].length&&(i._bufferIndex=-1,i._index++)),d.previous=G}function T(G,W){const ce=W||{};return ce.type=G,ce.start=w(),d.events.push(["enter",ce,d]),f.push(ce),ce}function B(G){const W=f.pop();return W.end=w(),d.events.push(["exit",W,d]),W}function U(G,W){P(G,W.from)}function z(G,W){W.restore()}function I(G,W){return ce;function ce(q,F,L){let Y,J,ne,R;return Array.isArray(q)?Q(q):"tokenize"in q?Q([q]):j(q);function j(be){return we;function we(ge){const ke=ge!==null&&be[ge],je=ge!==null&&be.null,qe=[...Array.isArray(ke)?ke:ke?[ke]:[],...Array.isArray(je)?je:je?[je]:[]];return Q(qe)(ge)}}function Q(be){return Y=be,J=0,be.length===0?L:_(be[J])}function _(be){return we;function we(ge){return R=$(),ne=be,be.partial||(d.currentConstruct=be),be.name&&d.parser.constructs.disable.null.includes(be.name)?ve():be.tokenize.call(W?Object.assign(Object.create(d),W):d,h,se,ve)(ge)}}function se(be){return G(ne,R),F}function ve(be){return R.restore(),++J<Y.length?_(Y[J]):L}}}function P(G,W){G.resolveAll&&!s.includes(G)&&s.push(G),G.resolve&&ir(d.events,W,d.events.length-W,G.resolve(d.events.slice(W),d)),G.resolveTo&&(d.events=G.resolveTo(d.events,d))}function $(){const G=w(),W=d.previous,ce=d.currentConstruct,q=d.events.length,F=Array.from(f);return{from:q,restore:L};function L(){i=G,d.previous=W,d.currentConstruct=ce,d.events.length=q,f=F,V()}}function V(){i.line in l&&i.column<2&&(i.column=l[i.line],i.offset+=l[i.line]-1)}}function AA(e,t){const n=t.start._index,i=t.start._bufferIndex,l=t.end._index,s=t.end._bufferIndex;let u;if(n===l)u=[e[n].slice(i,s)];else{if(u=e.slice(n,l),i>-1){const f=u[0];typeof f=="string"?u[0]=f.slice(i):u.shift()}s>0&&u.push(e[l].slice(0,s))}return u}function CA(e,t){let n=-1;const i=[];let l;for(;++n<e.length;){const s=e[n];let u;if(typeof s=="string")u=s;else switch(s){case-5:{u="\r";break}case-4:{u=`
269
+ `;break}case-3:{u=`\r
270
+ `;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&l)continue;u=" ";break}default:u=String.fromCharCode(s)}l=s===-2,i.push(u)}return i.join("")}function TA(e){const i={constructs:hy([kA,...(e||{}).extensions||[]]),content:l(Fk),defined:[],document:l(Yk),flow:l(sA),lazy:{},string:l(fA),text:l(hA)};return i;function l(s){return u;function u(f){return EA(i,s,f)}}}function MA(e){for(;!yy(e););return e}const a5=/[\0\t\n\r]/g;function zA(){let e=1,t="",n=!0,i;return l;function l(s,u,f){const h=[];let d,p,m,v,x;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(u||void 0).decode(s)),m=0,t="",n&&(s.charCodeAt(0)===65279&&m++,n=void 0);m<s.length;){if(a5.lastIndex=m,d=a5.exec(s),v=d&&d.index!==void 0?d.index:s.length,x=s.charCodeAt(v),!d){t=s.slice(m);break}if(x===10&&m===v&&i)h.push(-3),i=void 0;else switch(i&&(h.push(-5),i=void 0),m<v&&(h.push(s.slice(m,v)),e+=v-m),x){case 0:{h.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,h.push(-2);e++<p;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:i=!0,e=1}m=v+1}return f&&(i&&h.push(-5),t&&h.push(t),h.push(null)),h}}const NA=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function DA(e){return e.replace(NA,_A)}function _A(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const l=n.charCodeAt(1),s=l===120||l===88;return dy(n.slice(s?2:1),s?16:10)}return km(n)||e}const ky={}.hasOwnProperty;function OA(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),RA(n)(MA(TA(n).document().write(zA()(e,t,!0))))}function RA(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Ue),autolinkProtocol:$,autolinkEmail:$,atxHeading:s(tt),blockQuote:s(je),characterEscape:$,characterReference:$,codeFenced:s(qe),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(qe,u),codeText:s(_e,u),codeTextData:$,data:$,codeFlowValue:$,definition:s(Le),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s(Ye),hardBreakEscape:s(et),hardBreakTrailing:s(et),htmlFlow:s(ht,u),htmlFlowData:$,htmlText:s(ht,u),htmlTextData:$,image:s(me),label:u,link:s(Ue),listItem:s(At),listItemValue:v,listOrdered:s(nt,m),listUnordered:s(nt),paragraph:s(Ct),reference:_,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(tt),strong:s(An),thematicBreak:s(On)},exit:{atxHeading:h(),atxHeadingSequence:U,autolink:h(),autolinkEmail:ke,autolinkProtocol:ge,blockQuote:h(),characterEscapeValue:V,characterReferenceMarkerHexadecimal:ve,characterReferenceMarkerNumeric:ve,characterReferenceValue:be,characterReference:we,codeFenced:h(C),codeFencedFence:A,codeFencedFenceInfo:x,codeFencedFenceMeta:w,codeFlowValue:V,codeIndented:h(E),codeText:h(F),codeTextData:V,data:V,definition:h(),definitionDestinationString:B,definitionLabelString:D,definitionTitleString:T,emphasis:h(),hardBreakEscape:h(W),hardBreakTrailing:h(W),htmlFlow:h(ce),htmlFlowData:V,htmlText:h(q),htmlTextData:V,image:h(Y),label:ne,labelText:J,lineEnding:G,link:h(L),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:se,resourceDestinationString:R,resourceTitleString:j,resource:Q,setextHeading:h(P),setextHeadingLineSequence:I,setextHeadingText:z,strong:h(),thematicBreak:h()}};Ey(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(fe){let Ee={type:"root",children:[]};const Re={stack:[Ee],tokenStack:[],config:t,enter:f,exit:d,buffer:u,resume:p,data:n},$e=[];let ot=-1;for(;++ot<fe.length;)if(fe[ot][1].type==="listOrdered"||fe[ot][1].type==="listUnordered")if(fe[ot][0]==="enter")$e.push(ot);else{const mn=$e.pop();ot=l(fe,mn,ot)}for(ot=-1;++ot<fe.length;){const mn=t[fe[ot][0]];ky.call(mn,fe[ot][1].type)&&mn[fe[ot][1].type].call(Object.assign({sliceSerialize:fe[ot][2].sliceSerialize},Re),fe[ot][1])}if(Re.tokenStack.length>0){const mn=Re.tokenStack[Re.tokenStack.length-1];(mn[1]||l5).call(Re,void 0,mn[0])}for(Ee.position={start:sa(fe.length>0?fe[0][1].start:{line:1,column:1,offset:0}),end:sa(fe.length>0?fe[fe.length-2][1].end:{line:1,column:1,offset:0})},ot=-1;++ot<t.transforms.length;)Ee=t.transforms[ot](Ee)||Ee;return Ee}function l(fe,Ee,Re){let $e=Ee-1,ot=-1,mn=!1,$n,an,Rt,ln;for(;++$e<=Re;){const dt=fe[$e];switch(dt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{dt[0]==="enter"?ot++:ot--,ln=void 0;break}case"lineEndingBlank":{dt[0]==="enter"&&($n&&!ln&&!ot&&!Rt&&(Rt=$e),ln=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ln=void 0}if(!ot&&dt[0]==="enter"&&dt[1].type==="listItemPrefix"||ot===-1&&dt[0]==="exit"&&(dt[1].type==="listUnordered"||dt[1].type==="listOrdered")){if($n){let ur=$e;for(an=void 0;ur--;){const Cn=fe[ur];if(Cn[1].type==="lineEnding"||Cn[1].type==="lineEndingBlank"){if(Cn[0]==="exit")continue;an&&(fe[an][1].type="lineEndingBlank",mn=!0),Cn[1].type="lineEnding",an=ur}else if(!(Cn[1].type==="linePrefix"||Cn[1].type==="blockQuotePrefix"||Cn[1].type==="blockQuotePrefixWhitespace"||Cn[1].type==="blockQuoteMarker"||Cn[1].type==="listItemIndent"))break}Rt&&(!an||Rt<an)&&($n._spread=!0),$n.end=Object.assign({},an?fe[an][1].start:dt[1].end),fe.splice(an||$e,0,["exit",$n,dt[2]]),$e++,Re++}if(dt[1].type==="listItemPrefix"){const ur={type:"listItem",_spread:!1,start:Object.assign({},dt[1].start),end:void 0};$n=ur,fe.splice($e,0,["enter",ur,dt[2]]),$e++,Re++,Rt=void 0,ln=!0}}}return fe[Ee][1]._spread=mn,Re}function s(fe,Ee){return Re;function Re($e){f.call(this,fe($e),$e),Ee&&Ee.call(this,$e)}}function u(){this.stack.push({type:"fragment",children:[]})}function f(fe,Ee,Re){this.stack[this.stack.length-1].children.push(fe),this.stack.push(fe),this.tokenStack.push([Ee,Re||void 0]),fe.position={start:sa(Ee.start),end:void 0}}function h(fe){return Ee;function Ee(Re){fe&&fe.call(this,Re),d.call(this,Re)}}function d(fe,Ee){const Re=this.stack.pop(),$e=this.tokenStack.pop();if($e)$e[0].type!==fe.type&&(Ee?Ee.call(this,fe,$e[0]):($e[1]||l5).call(this,fe,$e[0]));else throw new Error("Cannot close `"+fe.type+"` ("+Es({start:fe.start,end:fe.end})+"): it’s not open");Re.position.end=sa(fe.end)}function p(){return Sm(this.stack.pop())}function m(){this.data.expectingFirstListItemValue=!0}function v(fe){if(this.data.expectingFirstListItemValue){const Ee=this.stack[this.stack.length-2];Ee.start=Number.parseInt(this.sliceSerialize(fe),10),this.data.expectingFirstListItemValue=void 0}}function x(){const fe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.lang=fe}function w(){const fe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.meta=fe}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const fe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=fe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const fe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=fe.replace(/(\r?\n|\r)$/g,"")}function D(fe){const Ee=this.resume(),Re=this.stack[this.stack.length-1];Re.label=Ee,Re.identifier=Nr(this.sliceSerialize(fe)).toLowerCase()}function T(){const fe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.title=fe}function B(){const fe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.url=fe}function U(fe){const Ee=this.stack[this.stack.length-1];if(!Ee.depth){const Re=this.sliceSerialize(fe).length;Ee.depth=Re}}function z(){this.data.setextHeadingSlurpLineEnding=!0}function I(fe){const Ee=this.stack[this.stack.length-1];Ee.depth=this.sliceSerialize(fe).codePointAt(0)===61?1:2}function P(){this.data.setextHeadingSlurpLineEnding=void 0}function $(fe){const Re=this.stack[this.stack.length-1].children;let $e=Re[Re.length-1];(!$e||$e.type!=="text")&&($e=Ot(),$e.position={start:sa(fe.start),end:void 0},Re.push($e)),this.stack.push($e)}function V(fe){const Ee=this.stack.pop();Ee.value+=this.sliceSerialize(fe),Ee.position.end=sa(fe.end)}function G(fe){const Ee=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Re=Ee.children[Ee.children.length-1];Re.position.end=sa(fe.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Ee.type)&&($.call(this,fe),V.call(this,fe))}function W(){this.data.atHardBreak=!0}function ce(){const fe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=fe}function q(){const fe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=fe}function F(){const fe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=fe}function L(){const fe=this.stack[this.stack.length-1];if(this.data.inReference){const Ee=this.data.referenceType||"shortcut";fe.type+="Reference",fe.referenceType=Ee,delete fe.url,delete fe.title}else delete fe.identifier,delete fe.label;this.data.referenceType=void 0}function Y(){const fe=this.stack[this.stack.length-1];if(this.data.inReference){const Ee=this.data.referenceType||"shortcut";fe.type+="Reference",fe.referenceType=Ee,delete fe.url,delete fe.title}else delete fe.identifier,delete fe.label;this.data.referenceType=void 0}function J(fe){const Ee=this.sliceSerialize(fe),Re=this.stack[this.stack.length-2];Re.label=DA(Ee),Re.identifier=Nr(Ee).toLowerCase()}function ne(){const fe=this.stack[this.stack.length-1],Ee=this.resume(),Re=this.stack[this.stack.length-1];if(this.data.inReference=!0,Re.type==="link"){const $e=fe.children;Re.children=$e}else Re.alt=Ee}function R(){const fe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.url=fe}function j(){const fe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.title=fe}function Q(){this.data.inReference=void 0}function _(){this.data.referenceType="collapsed"}function se(fe){const Ee=this.resume(),Re=this.stack[this.stack.length-1];Re.label=Ee,Re.identifier=Nr(this.sliceSerialize(fe)).toLowerCase(),this.data.referenceType="full"}function ve(fe){this.data.characterReferenceType=fe.type}function be(fe){const Ee=this.sliceSerialize(fe),Re=this.data.characterReferenceType;let $e;Re?($e=dy(Ee,Re==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):$e=km(Ee);const ot=this.stack[this.stack.length-1];ot.value+=$e}function we(fe){const Ee=this.stack.pop();Ee.position.end=sa(fe.end)}function ge(fe){V.call(this,fe);const Ee=this.stack[this.stack.length-1];Ee.url=this.sliceSerialize(fe)}function ke(fe){V.call(this,fe);const Ee=this.stack[this.stack.length-1];Ee.url="mailto:"+this.sliceSerialize(fe)}function je(){return{type:"blockquote",children:[]}}function qe(){return{type:"code",lang:null,meta:null,value:""}}function _e(){return{type:"inlineCode",value:""}}function Le(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ye(){return{type:"emphasis",children:[]}}function tt(){return{type:"heading",depth:0,children:[]}}function et(){return{type:"break"}}function ht(){return{type:"html",value:""}}function me(){return{type:"image",title:null,url:"",alt:null}}function Ue(){return{type:"link",title:null,url:"",children:[]}}function nt(fe){return{type:"list",ordered:fe.type==="listOrdered",start:null,spread:fe._spread,children:[]}}function At(fe){return{type:"listItem",spread:fe._spread,checked:null,children:[]}}function Ct(){return{type:"paragraph",children:[]}}function An(){return{type:"strong",children:[]}}function Ot(){return{type:"text",value:""}}function On(){return{type:"thematicBreak"}}}function sa(e){return{line:e.line,column:e.column,offset:e.offset}}function Ey(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?Ey(e,i):BA(e,i)}}function BA(e,t){let n;for(n in t)if(ky.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function l5(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Es({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Es({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Es({start:t.start,end:t.end})+") is still open")}function LA(e){const t=this;t.parser=n;function n(i){return OA(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function HA(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function jA(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
271
+ `}]}function qA(e,t){const n=t.value?t.value+`
272
+ `:"",i={},l=t.lang?t.lang.split(/\s+/):[];l.length>0&&(i.className=["language-"+l[0]]);let s={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function IA(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function UA(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function FA(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),l=bo(i.toLowerCase()),s=e.footnoteOrder.indexOf(i);let u,f=e.footnoteCounts.get(i);f===void 0?(f=0,e.footnoteOrder.push(i),u=e.footnoteOrder.length):u=s+1,f+=1,e.footnoteCounts.set(i,f);const h={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+l,id:n+"fnref-"+l+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,h);const d={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(t,d),e.applyData(t,d)}function VA(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function YA(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Ay(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const l=e.all(t),s=l[0];s&&s.type==="text"?s.value="["+s.value:l.unshift({type:"text",value:"["});const u=l[l.length-1];return u&&u.type==="text"?u.value+=i:l.push({type:"text",value:i}),l}function GA(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return Ay(e,t);const l={src:bo(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(l.title=i.title);const s={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,s),e.applyData(t,s)}function $A(e,t){const n={src:bo(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function XA(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function PA(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return Ay(e,t);const l={href:bo(i.url||"")};i.title!==null&&i.title!==void 0&&(l.title=i.title);const s={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function ZA(e,t){const n={href:bo(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function QA(e,t,n){const i=e.all(t),l=n?KA(n):Cy(t),s={},u=[];if(typeof t.checked=="boolean"){const p=i[0];let m;p&&p.type==="element"&&p.tagName==="p"?m=p:(m={type:"element",tagName:"p",properties:{},children:[]},i.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let f=-1;for(;++f<i.length;){const p=i[f];(l||f!==0||p.type!=="element"||p.tagName!=="p")&&u.push({type:"text",value:`
273
+ `}),p.type==="element"&&p.tagName==="p"&&!l?u.push(...p.children):u.push(p)}const h=i[i.length-1];h&&(l||h.type!=="element"||h.tagName!=="p")&&u.push({type:"text",value:`
274
+ `});const d={type:"element",tagName:"li",properties:s,children:u};return e.patch(t,d),e.applyData(t,d)}function KA(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=Cy(n[i])}return t}function Cy(e){const t=e.spread;return t??e.children.length>1}function JA(e,t){const n={},i=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++l<i.length;){const u=i[l];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)}function WA(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function eC(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function tC(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function nC(e,t){const n=e.all(t),i=n.shift(),l=[];if(i){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],u),l.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},f=vm(t.children[1]),h=ay(t.children[t.children.length-1]);f&&h&&(u.position={start:f,end:h}),l.push(u)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,s),e.applyData(t,s)}function rC(e,t,n){const i=n?n.children:void 0,s=(i?i.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,f=u?u.length:t.children.length;let h=-1;const d=[];for(;++h<f;){const m=t.children[h],v={},x=u?u[h]:void 0;x&&(v.align=x);let w={type:"element",tagName:s,properties:v,children:[]};m&&(w.children=e.all(m),e.patch(m,w),w=e.applyData(m,w)),d.push(w)}const p={type:"element",tagName:"tr",properties:{},children:e.wrap(d,!0)};return e.patch(t,p),e.applyData(t,p)}function iC(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const o5=9,s5=32;function aC(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),l=0;const s=[];for(;i;)s.push(u5(t.slice(l,i.index),l>0,!0),i[0]),l=i.index+i[0].length,i=n.exec(t);return s.push(u5(t.slice(l),l>0,!1)),s.join("")}function u5(e,t,n){let i=0,l=e.length;if(t){let s=e.codePointAt(i);for(;s===o5||s===s5;)i++,s=e.codePointAt(i)}if(n){let s=e.codePointAt(l-1);for(;s===o5||s===s5;)l--,s=e.codePointAt(l-1)}return l>i?e.slice(i,l):""}function lC(e,t){const n={type:"text",value:aC(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function oC(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const sC={blockquote:HA,break:jA,code:qA,delete:IA,emphasis:UA,footnoteReference:FA,heading:VA,html:YA,imageReference:GA,image:$A,inlineCode:XA,linkReference:PA,link:ZA,listItem:QA,list:JA,paragraph:WA,root:eC,strong:tC,table:nC,tableCell:iC,tableRow:rC,text:lC,thematicBreak:oC,toml:N0,yaml:N0,definition:N0,footnoteDefinition:N0};function N0(){}const Ty=-1,Lc=0,Cs=1,ic=2,Am=3,Cm=4,Tm=5,Mm=6,My=7,zy=8,uC=typeof self=="object"?self:globalThis,c5=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new uC[e](t)},cC=(e,t)=>{const n=(l,s)=>(e.set(s,l),l),i=l=>{if(e.has(l))return e.get(l);const[s,u]=t[l];switch(s){case Lc:case Ty:return n(u,l);case Cs:{const f=n([],l);for(const h of u)f.push(i(h));return f}case ic:{const f=n({},l);for(const[h,d]of u)f[i(h)]=i(d);return f}case Am:return n(new Date(u),l);case Cm:{const{source:f,flags:h}=u;return n(new RegExp(f,h),l)}case Tm:{const f=n(new Map,l);for(const[h,d]of u)f.set(i(h),i(d));return f}case Mm:{const f=n(new Set,l);for(const h of u)f.add(i(h));return f}case My:{const{name:f,message:h}=u;return n(c5(f,h),l)}case zy:return n(BigInt(u),l);case"BigInt":return n(Object(BigInt(u)),l);case"ArrayBuffer":return n(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:f}=new Uint8Array(u);return n(new DataView(f),u)}}return n(c5(s,u),l)};return i},f5=e=>cC(new Map,e)(0),Xl="",{toString:fC}={},{keys:hC}=Object,ys=e=>{const t=typeof e;if(t!=="object"||!e)return[Lc,t];const n=fC.call(e).slice(8,-1);switch(n){case"Array":return[Cs,Xl];case"Object":return[ic,Xl];case"Date":return[Am,Xl];case"RegExp":return[Cm,Xl];case"Map":return[Tm,Xl];case"Set":return[Mm,Xl];case"DataView":return[Cs,n]}return n.includes("Array")?[Cs,n]:n.includes("Error")?[My,n]:[ic,n]},D0=([e,t])=>e===Lc&&(t==="function"||t==="symbol"),dC=(e,t,n,i)=>{const l=(u,f)=>{const h=i.push(u)-1;return n.set(f,h),h},s=u=>{if(n.has(u))return n.get(u);let[f,h]=ys(u);switch(f){case Lc:{let p=u;switch(h){case"bigint":f=zy,p=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);p=null;break;case"undefined":return l([Ty],u)}return l([f,p],u)}case Cs:{if(h){let v=u;return h==="DataView"?v=new Uint8Array(u.buffer):h==="ArrayBuffer"&&(v=new Uint8Array(u)),l([h,[...v]],u)}const p=[],m=l([f,p],u);for(const v of u)p.push(s(v));return m}case ic:{if(h)switch(h){case"BigInt":return l([h,u.toString()],u);case"Boolean":case"Number":case"String":return l([h,u.valueOf()],u)}if(t&&"toJSON"in u)return s(u.toJSON());const p=[],m=l([f,p],u);for(const v of hC(u))(e||!D0(ys(u[v])))&&p.push([s(v),s(u[v])]);return m}case Am:return l([f,u.toISOString()],u);case Cm:{const{source:p,flags:m}=u;return l([f,{source:p,flags:m}],u)}case Tm:{const p=[],m=l([f,p],u);for(const[v,x]of u)(e||!(D0(ys(v))||D0(ys(x))))&&p.push([s(v),s(x)]);return m}case Mm:{const p=[],m=l([f,p],u);for(const v of u)(e||!D0(ys(v)))&&p.push(s(v));return m}}const{message:d}=u;return l([f,{name:h,message:d}],u)};return s},h5=(e,{json:t,lossy:n}={})=>{const i=[];return dC(!(t||n),!!t,new Map,i)(e),i},ac=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?f5(h5(e,t)):structuredClone(e):(e,t)=>f5(h5(e,t));function mC(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function pC(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function gC(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||mC,i=e.options.footnoteBackLabel||pC,l=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let h=-1;for(;++h<e.footnoteOrder.length;){const d=e.footnoteById.get(e.footnoteOrder[h]);if(!d)continue;const p=e.all(d),m=String(d.identifier).toUpperCase(),v=bo(m.toLowerCase());let x=0;const w=[],A=e.footnoteCounts.get(m);for(;A!==void 0&&++x<=A;){w.length>0&&w.push({type:"text",value:" "});let D=typeof n=="string"?n:n(h,x);typeof D=="string"&&(D={type:"text",value:D}),w.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+v+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(h,x),className:["data-footnote-backref"]},children:Array.isArray(D)?D:[D]})}const C=p[p.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const D=C.children[C.children.length-1];D&&D.type==="text"?D.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...w)}else p.push(...w);const E={type:"element",tagName:"li",properties:{id:t+"fn-"+v},children:e.wrap(p,!0)};e.patch(d,E),f.push(E)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...ac(u),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
275
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
276
+ `}]}}function zm(e,t,n,i){let l,s,u;typeof t=="function"&&typeof n!="function"?(s=void 0,u=t,l=n):(s=t,u=n,l=i),ym(e,s,f,l);function f(h,d){const p=d[d.length-1],m=p?p.children.indexOf(h):void 0;return u(h,m,p)}}const O1={}.hasOwnProperty,yC={};function vC(e,t){const n=t||yC,i=new Map,l=new Map,s=new Map,u={...sC,...n.handlers},f={all:d,applyData:bC,definitionById:i,footnoteById:l,footnoteCounts:s,footnoteOrder:[],handlers:u,one:h,options:n,patch:xC,wrap:SC};return zm(e,function(p){if(p.type==="definition"||p.type==="footnoteDefinition"){const m=p.type==="definition"?i:l,v=String(p.identifier).toUpperCase();m.has(v)||m.set(v,p)}}),f;function h(p,m){const v=p.type,x=f.handlers[v];if(O1.call(f.handlers,v)&&x)return x(f,p,m);if(f.options.passThrough&&f.options.passThrough.includes(v)){if("children"in p){const{children:A,...C}=p,E=ac(C);return E.children=f.all(p),E}return ac(p)}return(f.options.unknownHandler||wC)(f,p,m)}function d(p){const m=[];if("children"in p){const v=p.children;let x=-1;for(;++x<v.length;){const w=f.one(v[x],p);if(w){if(x&&v[x-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=d5(w.value)),!Array.isArray(w)&&w.type==="element")){const A=w.children[0];A&&A.type==="text"&&(A.value=d5(A.value))}Array.isArray(w)?m.push(...w):m.push(w)}}}return m}}function xC(e,t){e.position&&(t.position=mk(e))}function bC(e,t){let n=t;if(e&&e.data){const i=e.data.hName,l=e.data.hChildren,s=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const u="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:u}}n.type==="element"&&s&&Object.assign(n.properties,ac(s)),"children"in n&&n.children&&l!==null&&l!==void 0&&(n.children=l)}return n}function wC(e,t){const n=t.data||{},i="value"in t&&!(O1.call(n,"hProperties")||O1.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function SC(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
277
+ `});++i<e.length;)i&&n.push({type:"text",value:`
278
+ `}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
279
+ `}),n}function d5(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function m5(e,t){const n=vC(e,t),i=n.one(e,void 0),l=gC(n),s=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return l&&s.children.push({type:"text",value:`
280
+ `},l),s}function kC(e,t){return e&&"run"in e?async function(n,i){const l=m5(n,{file:i,...t});await e.run(l,i)}:function(n,i){return m5(n,{file:i,...e||t})}}function p5(e){if(e)throw e}var Rd,g5;function EC(){if(g5)return Rd;g5=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(d){return typeof Array.isArray=="function"?Array.isArray(d):t.call(d)==="[object Array]"},s=function(d){if(!d||t.call(d)!=="[object Object]")return!1;var p=e.call(d,"constructor"),m=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!p&&!m)return!1;var v;for(v in d);return typeof v>"u"||e.call(d,v)},u=function(d,p){n&&p.name==="__proto__"?n(d,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):d[p.name]=p.newValue},f=function(d,p){if(p==="__proto__")if(e.call(d,p)){if(i)return i(d,p).value}else return;return d[p]};return Rd=function h(){var d,p,m,v,x,w,A=arguments[0],C=1,E=arguments.length,D=!1;for(typeof A=="boolean"&&(D=A,A=arguments[1]||{},C=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});C<E;++C)if(d=arguments[C],d!=null)for(p in d)m=f(A,p),v=f(d,p),A!==v&&(D&&v&&(s(v)||(x=l(v)))?(x?(x=!1,w=m&&l(m)?m:[]):w=m&&s(m)?m:{},u(A,{name:p,newValue:h(D,w,v)})):typeof v<"u"&&u(A,{name:p,newValue:v}));return A},Rd}var AC=EC();const Bd=vc(AC);function R1(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function CC(){const e=[],t={run:n,use:i};return t;function n(...l){let s=-1;const u=l.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);f(null,...l);function f(h,...d){const p=e[++s];let m=-1;if(h){u(h);return}for(;++m<l.length;)(d[m]===null||d[m]===void 0)&&(d[m]=l[m]);l=d,p?TC(p,f)(...d):u(null,...d)}}function i(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}function TC(e,t){let n;return i;function i(...u){const f=e.length>u.length;let h;f&&u.push(l);try{h=e.apply(this,u)}catch(d){const p=d;if(f&&n)throw p;return l(p)}f||(h&&h.then&&typeof h.then=="function"?h.then(s,l):h instanceof Error?l(h):s(h))}function l(u,...f){n||(n=!0,t(u,...f))}function s(u){l(null,u)}}const jr={basename:MC,dirname:zC,extname:NC,join:DC,sep:"/"};function MC(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ks(e);let n=0,i=-1,l=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(s){n=l+1;break}}else i<0&&(s=!0,i=l+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let u=-1,f=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(s){n=l+1;break}}else u<0&&(s=!0,u=l+1),f>-1&&(e.codePointAt(l)===t.codePointAt(f--)?f<0&&(i=l):(f=-1,i=u));return n===i?i=u:i<0&&(i=e.length),e.slice(n,i)}function zC(e){if(Ks(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function NC(e){Ks(e);let t=e.length,n=-1,i=0,l=-1,s=0,u;for(;t--;){const f=e.codePointAt(t);if(f===47){if(u){i=t+1;break}continue}n<0&&(u=!0,n=t+1),f===46?l<0?l=t:s!==1&&(s=1):l>-1&&(s=-1)}return l<0||n<0||s===0||s===1&&l===n-1&&l===i+1?"":e.slice(l,n)}function DC(...e){let t=-1,n;for(;++t<e.length;)Ks(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":_C(n)}function _C(e){Ks(e);const t=e.codePointAt(0)===47;let n=OC(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function OC(e,t){let n="",i=0,l=-1,s=0,u=-1,f,h;for(;++u<=e.length;){if(u<e.length)f=e.codePointAt(u);else{if(f===47)break;f=47}if(f===47){if(!(l===u-1||s===1))if(l!==u-1&&s===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(h=n.lastIndexOf("/"),h!==n.length-1){h<0?(n="",i=0):(n=n.slice(0,h),i=n.length-1-n.lastIndexOf("/")),l=u,s=0;continue}}else if(n.length>0){n="",i=0,l=u,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(l+1,u):n=e.slice(l+1,u),i=u-l-1;l=u,s=0}else f===46&&s>-1?s++:s=-1}return n}function Ks(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const RC={cwd:BC};function BC(){return"/"}function B1(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function LC(e){if(typeof e=="string")e=new URL(e);else if(!B1(e)){const 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:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return HC(e)}function HC(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}const Ld=["history","path","basename","stem","extname","dirname"];class Ny{constructor(t){let n;t?B1(t)?n={path:t}:typeof t=="string"||jC(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":RC.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Ld.length;){const s=Ld[i];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let l;for(l in n)Ld.includes(l)||(this[l]=n[l])}get basename(){return typeof this.path=="string"?jr.basename(this.path):void 0}set basename(t){jd(t,"basename"),Hd(t,"basename"),this.path=jr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?jr.dirname(this.path):void 0}set dirname(t){y5(this.basename,"dirname"),this.path=jr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?jr.extname(this.path):void 0}set extname(t){if(Hd(t,"extname"),y5(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=jr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){B1(t)&&(t=LC(t)),jd(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?jr.basename(this.path,this.extname):void 0}set stem(t){jd(t,"stem"),Hd(t,"stem"),this.path=jr.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const l=this.message(t,n,i);throw l.fatal=!0,l}info(t,n,i){const l=this.message(t,n,i);return l.fatal=void 0,l}message(t,n,i){const l=new En(t,n,i);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Hd(e,t){if(e&&e.includes(jr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+jr.sep+"`")}function jd(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function y5(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function jC(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const qC=(function(e){const i=this.constructor.prototype,l=i[e],s=function(){return l.apply(s,arguments)};return Object.setPrototypeOf(s,i),s}),IC={}.hasOwnProperty;class Nm extends qC{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=CC()}copy(){const t=new Nm;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(Bd(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Ud("data",this.frozen),this.namespace[t]=n,this):IC.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ud("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const l=n.call(t,...i);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=_0(t),i=this.parser||this.Parser;return qd("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),qd("process",this.parser||this.Parser),Id("process",this.compiler||this.Compiler),n?l(void 0,n):new Promise(l);function l(s,u){const f=_0(t),h=i.parse(f);i.run(h,f,function(p,m,v){if(p||!m||!v)return d(p);const x=m,w=i.stringify(x,v);VC(w)?v.value=w:v.result=w,d(p,v)});function d(p,m){p||!m?u(p):s?s(m):n(void 0,m)}}}processSync(t){let n=!1,i;return this.freeze(),qd("processSync",this.parser||this.Parser),Id("processSync",this.compiler||this.Compiler),this.process(t,l),x5("processSync","process",n),i;function l(s,u){n=!0,p5(s),i=u}}run(t,n,i){v5(t),this.freeze();const l=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?s(void 0,i):new Promise(s);function s(u,f){const h=_0(n);l.run(t,h,d);function d(p,m,v){const x=m||t;p?f(p):u?u(x):i(void 0,x,v)}}}runSync(t,n){let i=!1,l;return this.run(t,n,s),x5("runSync","run",i),l;function s(u,f){p5(u),l=f,i=!0}}stringify(t,n){this.freeze();const i=_0(n),l=this.compiler||this.Compiler;return Id("stringify",l),v5(t),l(t,i)}use(t,...n){const i=this.attachers,l=this.namespace;if(Ud("use",this.frozen),t!=null)if(typeof t=="function")h(t,n);else if(typeof t=="object")Array.isArray(t)?f(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(d){if(typeof d=="function")h(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[p,...m]=d;h(p,m)}else u(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function u(d){if(!("plugins"in d)&&!("settings"in d))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");f(d.plugins),d.settings&&(l.settings=Bd(!0,l.settings,d.settings))}function f(d){let p=-1;if(d!=null)if(Array.isArray(d))for(;++p<d.length;){const m=d[p];s(m)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function h(d,p){let m=-1,v=-1;for(;++m<i.length;)if(i[m][0]===d){v=m;break}if(v===-1)i.push([d,...p]);else if(p.length>0){let[x,...w]=p;const A=i[v][1];R1(A)&&R1(x)&&(x=Bd(!0,A,x)),i[v]=[d,x,...w]}}}}const UC=new Nm().freeze();function qd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Id(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ud(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 v5(e){if(!R1(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function x5(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function _0(e){return FC(e)?e:new Ny(e)}function FC(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function VC(e){return typeof e=="string"||YC(e)}function YC(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const GC="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",b5=[],w5={allowDangerousHtml:!0},$C=/^(https?|ircs?|mailto|xmpp)$/i,XC=[{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 PC(e){const t=ZC(e),n=QC(e);return KC(t.runSync(t.parse(n),n),e)}function ZC(e){const t=e.rehypePlugins||b5,n=e.remarkPlugins||b5,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...w5}:w5;return UC().use(LA).use(n).use(kC,i).use(t)}function QC(e){const t=e.children||"",n=new Ny;return typeof t=="string"&&(n.value=t),n}function KC(e,t){const n=t.allowedElements,i=t.allowElement,l=t.components,s=t.disallowedElements,u=t.skipHtml,f=t.unwrapDisallowed,h=t.urlTransform||JC;for(const p of XC)Object.hasOwn(t,p.from)&&(""+p.from+(p.to?"use `"+p.to+"` instead":"remove it")+GC+p.id,void 0);return zm(e,d),xk(e,{Fragment:M.Fragment,components:l,ignoreInvalidStyle:!0,jsx:M.jsx,jsxs:M.jsxs,passKeys:!0,passNode:!0});function d(p,m,v){if(p.type==="raw"&&v&&typeof m=="number")return u?v.children.splice(m,1):v.children[m]={type:"text",value:p.value},m;if(p.type==="element"){let x;for(x in Dd)if(Object.hasOwn(Dd,x)&&Object.hasOwn(p.properties,x)){const w=p.properties[x],A=Dd[x];(A===null||A.includes(p.tagName))&&(p.properties[x]=h(String(w||""),x,p))}}if(p.type==="element"){let x=n?!n.includes(p.tagName):s?s.includes(p.tagName):!1;if(!x&&i&&typeof m=="number"&&(x=!i(p,m,v)),x&&v&&typeof m=="number")return f&&p.children?v.children.splice(m,1,...p.children):v.children.splice(m,1),m}}}function JC(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||n!==-1&&t>n||i!==-1&&t>i||$C.test(e.slice(0,t))?e:""}function S5(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,l=n.indexOf(t);for(;l!==-1;)i++,l=n.indexOf(t,l+t.length);return i}function WC(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function eT(e,t,n){const l=Xs((n||{}).ignore||[]),s=tT(t);let u=-1;for(;++u<s.length;)ym(e,"text",f);function f(d,p){let m=-1,v;for(;++m<p.length;){const x=p[m],w=v?v.children:void 0;if(l(x,w?w.indexOf(x):void 0,v))return;v=x}if(v)return h(d,p)}function h(d,p){const m=p[p.length-1],v=s[u][0],x=s[u][1];let w=0;const C=m.children.indexOf(d);let E=!1,D=[];v.lastIndex=0;let T=v.exec(d.value);for(;T;){const B=T.index,U={index:T.index,input:T.input,stack:[...p,d]};let z=x(...T,U);if(typeof z=="string"&&(z=z.length>0?{type:"text",value:z}:void 0),z===!1?v.lastIndex=B+1:(w!==B&&D.push({type:"text",value:d.value.slice(w,B)}),Array.isArray(z)?D.push(...z):z&&D.push(z),w=B+T[0].length,E=!0),!v.global)break;T=v.exec(d.value)}return E?(w<d.value.length&&D.push({type:"text",value:d.value.slice(w)}),m.children.splice(C,1,...D)):D=[d],C+D.length}}function tT(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<n.length;){const l=n[i];t.push([nT(l[0]),rT(l[1])])}return t}function nT(e){return typeof e=="string"?new RegExp(WC(e),"g"):e}function rT(e){return typeof e=="function"?e:function(){return e}}const Fd="phrasing",Vd=["autolink","link","image","label"];function iT(){return{transforms:[fT],enter:{literalAutolink:lT,literalAutolinkEmail:Yd,literalAutolinkHttp:Yd,literalAutolinkWww:Yd},exit:{literalAutolink:cT,literalAutolinkEmail:uT,literalAutolinkHttp:oT,literalAutolinkWww:sT}}}function aT(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Fd,notInConstruct:Vd},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Fd,notInConstruct:Vd},{character:":",before:"[ps]",after:"\\/",inConstruct:Fd,notInConstruct:Vd}]}}function lT(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Yd(e){this.config.enter.autolinkProtocol.call(this,e)}function oT(e){this.config.exit.autolinkProtocol.call(this,e)}function sT(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function uT(e){this.config.exit.autolinkEmail.call(this,e)}function cT(e){this.exit(e)}function fT(e){eT(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,hT],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),dT]],{ignore:["link","linkReference"]})}function hT(e,t,n,i,l){let s="";if(!Dy(l)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!mT(n)))return!1;const u=pT(n+i);if(!u[0])return!1;const f={type:"link",title:null,url:s+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[f,{type:"text",value:u[1]}]:f}function dT(e,t,n,i){return!Dy(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function mT(e){const 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 pT(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const l=S5(e,"(");let s=S5(e,")");for(;i!==-1&&l>s;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),s++;return[e,n]}function Dy(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Qa(n)||Rc(n))&&(!t||n!==47)}_y.peek=ET;function gT(){this.buffer()}function yT(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function vT(){this.buffer()}function xT(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function bT(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Nr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function wT(e){this.exit(e)}function ST(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Nr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function kT(e){this.exit(e)}function ET(){return"["}function _y(e,t,n,i){const l=n.createTracker(i);let s=l.move("[^");const u=n.enter("footnoteReference"),f=n.enter("reference");return s+=l.move(n.safe(n.associationId(e),{after:"]",before:s})),f(),u(),s+=l.move("]"),s}function AT(){return{enter:{gfmFootnoteCallString:gT,gfmFootnoteCall:yT,gfmFootnoteDefinitionLabelString:vT,gfmFootnoteDefinition:xT},exit:{gfmFootnoteCallString:bT,gfmFootnoteCall:wT,gfmFootnoteDefinitionLabelString:ST,gfmFootnoteDefinition:kT}}}function CT(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:_y},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,l,s,u){const f=s.createTracker(u);let h=f.move("[^");const d=s.enter("footnoteDefinition"),p=s.enter("label");return h+=f.move(s.safe(s.associationId(i),{before:h,after:"]"})),p(),h+=f.move("]:"),i.children&&i.children.length>0&&(f.shift(4),h+=f.move((t?`
281
+ `:" ")+s.indentLines(s.containerFlow(i,f.current()),t?Oy:TT))),d(),h}}function TT(e,t,n){return t===0?e:Oy(e,t,n)}function Oy(e,t,n){return(n?"":" ")+e}const MT=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Ry.peek=OT;function zT(){return{canContainEols:["delete"],enter:{strikethrough:DT},exit:{strikethrough:_T}}}function NT(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:MT}],handlers:{delete:Ry}}}function DT(e){this.enter({type:"delete",children:[]},e)}function _T(e){this.exit(e)}function Ry(e,t,n,i){const l=n.createTracker(i),s=n.enter("strikethrough");let u=l.move("~~");return u+=n.containerPhrasing(e,{...l.current(),before:u,after:"~"}),u+=l.move("~~"),s(),u}function OT(){return"~"}function RT(e){return e.length}function BT(e,t){const n=t||{},i=(n.align||[]).concat(),l=n.stringLength||RT,s=[],u=[],f=[],h=[];let d=0,p=-1;for(;++p<e.length;){const A=[],C=[];let E=-1;for(e[p].length>d&&(d=e[p].length);++E<e[p].length;){const D=LT(e[p][E]);if(n.alignDelimiters!==!1){const T=l(D);C[E]=T,(h[E]===void 0||T>h[E])&&(h[E]=T)}A.push(D)}u[p]=A,f[p]=C}let m=-1;if(typeof i=="object"&&"length"in i)for(;++m<d;)s[m]=k5(i[m]);else{const A=k5(i);for(;++m<d;)s[m]=A}m=-1;const v=[],x=[];for(;++m<d;){const A=s[m];let C="",E="";A===99?(C=":",E=":"):A===108?C=":":A===114&&(E=":");let D=n.alignDelimiters===!1?1:Math.max(1,h[m]-C.length-E.length);const T=C+"-".repeat(D)+E;n.alignDelimiters!==!1&&(D=C.length+D+E.length,D>h[m]&&(h[m]=D),x[m]=D),v[m]=T}u.splice(1,0,v),f.splice(1,0,x),p=-1;const w=[];for(;++p<u.length;){const A=u[p],C=f[p];m=-1;const E=[];for(;++m<d;){const D=A[m]||"";let T="",B="";if(n.alignDelimiters!==!1){const U=h[m]-(C[m]||0),z=s[m];z===114?T=" ".repeat(U):z===99?U%2?(T=" ".repeat(U/2+.5),B=" ".repeat(U/2-.5)):(T=" ".repeat(U/2),B=T):B=" ".repeat(U)}n.delimiterStart!==!1&&!m&&E.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&D==="")&&(n.delimiterStart!==!1||m)&&E.push(" "),n.alignDelimiters!==!1&&E.push(T),E.push(D),n.alignDelimiters!==!1&&E.push(B),n.padding!==!1&&E.push(" "),(n.delimiterEnd!==!1||m!==d-1)&&E.push("|")}w.push(n.delimiterEnd===!1?E.join("").replace(/ +$/,""):E.join(""))}return w.join(`
282
+ `)}function LT(e){return e==null?"":String(e)}function k5(e){const 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 HT(e,t,n,i){const l=n.enter("blockquote"),s=n.createTracker(i);s.move("> "),s.shift(2);const u=n.indentLines(n.containerFlow(e,s.current()),jT);return l(),u}function jT(e,t,n){return">"+(n?"":" ")+e}function qT(e,t){return E5(e,t.inConstruct,!0)&&!E5(e,t.notInConstruct,!1)}function E5(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function A5(e,t,n,i){let l=-1;for(;++l<n.unsafe.length;)if(n.unsafe[l].character===`
283
+ `&&qT(n.stack,n.unsafe[l]))return/[ \t]/.test(i.before)?"":" ";return`\\
284
+ `}function By(e,t){const n=String(e);let i=n.indexOf(t),l=i,s=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===l?++s>u&&(u=s):s=1,l=i+t.length,i=n.indexOf(t,l);return u}function IT(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 UT(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function FT(e,t,n,i){const l=UT(n),s=e.value||"",u=l==="`"?"GraveAccent":"Tilde";if(IT(e,n)){const m=n.enter("codeIndented"),v=n.indentLines(s,VT);return m(),v}const f=n.createTracker(i),h=l.repeat(Math.max(By(s,l)+1,3)),d=n.enter("codeFenced");let p=f.move(h);if(e.lang){const m=n.enter(`codeFencedLang${u}`);p+=f.move(n.safe(e.lang,{before:p,after:" ",encode:["`"],...f.current()})),m()}if(e.lang&&e.meta){const m=n.enter(`codeFencedMeta${u}`);p+=f.move(" "),p+=f.move(n.safe(e.meta,{before:p,after:`
285
+ `,encode:["`"],...f.current()})),m()}return p+=f.move(`
286
+ `),s&&(p+=f.move(s+`
287
+ `)),p+=f.move(h),d(),p}function VT(e,t,n){return(n?"":" ")+e}function Dm(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function YT(e,t,n,i){const l=Dm(n),s=l==='"'?"Quote":"Apostrophe",u=n.enter("definition");let f=n.enter("label");const h=n.createTracker(i);let d=h.move("[");return d+=h.move(n.safe(n.associationId(e),{before:d,after:"]",...h.current()})),d+=h.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=n.enter("destinationLiteral"),d+=h.move("<"),d+=h.move(n.safe(e.url,{before:d,after:">",...h.current()})),d+=h.move(">")):(f=n.enter("destinationRaw"),d+=h.move(n.safe(e.url,{before:d,after:e.title?" ":`
288
+ `,...h.current()}))),f(),e.title&&(f=n.enter(`title${s}`),d+=h.move(" "+l),d+=h.move(n.safe(e.title,{before:d,after:l,...h.current()})),d+=h.move(l),f()),u(),d}function GT(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Os(e){return"&#x"+e.toString(16).toUpperCase()+";"}function lc(e,t,n){const i=ao(e),l=ao(t);return i===void 0?l===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Ly.peek=$T;function Ly(e,t,n,i){const l=GT(n),s=n.enter("emphasis"),u=n.createTracker(i),f=u.move(l);let h=u.move(n.containerPhrasing(e,{after:l,before:f,...u.current()}));const d=h.charCodeAt(0),p=lc(i.before.charCodeAt(i.before.length-1),d,l);p.inside&&(h=Os(d)+h.slice(1));const m=h.charCodeAt(h.length-1),v=lc(i.after.charCodeAt(0),m,l);v.inside&&(h=h.slice(0,-1)+Os(m));const x=u.move(l);return s(),n.attentionEncodeSurroundingInfo={after:v.outside,before:p.outside},f+h+x}function $T(e,t,n){return n.options.emphasis||"*"}function XT(e,t){let n=!1;return zm(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,z1}),!!((!e.depth||e.depth<3)&&Sm(e)&&(t.options.setext||n))}function PT(e,t,n,i){const l=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(i);if(XT(e,n)){const p=n.enter("headingSetext"),m=n.enter("phrasing"),v=n.containerPhrasing(e,{...s.current(),before:`
289
+ `,after:`
290
+ `});return m(),p(),v+`
291
+ `+(l===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
292
+ `))+1))}const u="#".repeat(l),f=n.enter("headingAtx"),h=n.enter("phrasing");s.move(u+" ");let d=n.containerPhrasing(e,{before:"# ",after:`
293
+ `,...s.current()});return/^[\t ]/.test(d)&&(d=Os(d.charCodeAt(0))+d.slice(1)),d=d?u+" "+d:u,n.options.closeAtx&&(d+=" "+u),h(),f(),d}Hy.peek=ZT;function Hy(e){return e.value||""}function ZT(){return"<"}jy.peek=QT;function jy(e,t,n,i){const l=Dm(n),s=l==='"'?"Quote":"Apostrophe",u=n.enter("image");let f=n.enter("label");const h=n.createTracker(i);let d=h.move("![");return d+=h.move(n.safe(e.alt,{before:d,after:"]",...h.current()})),d+=h.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=n.enter("destinationLiteral"),d+=h.move("<"),d+=h.move(n.safe(e.url,{before:d,after:">",...h.current()})),d+=h.move(">")):(f=n.enter("destinationRaw"),d+=h.move(n.safe(e.url,{before:d,after:e.title?" ":")",...h.current()}))),f(),e.title&&(f=n.enter(`title${s}`),d+=h.move(" "+l),d+=h.move(n.safe(e.title,{before:d,after:l,...h.current()})),d+=h.move(l),f()),d+=h.move(")"),u(),d}function QT(){return"!"}qy.peek=KT;function qy(e,t,n,i){const l=e.referenceType,s=n.enter("imageReference");let u=n.enter("label");const f=n.createTracker(i);let h=f.move("![");const d=n.safe(e.alt,{before:h,after:"]",...f.current()});h+=f.move(d+"]["),u();const p=n.stack;n.stack=[],u=n.enter("reference");const m=n.safe(n.associationId(e),{before:h,after:"]",...f.current()});return u(),n.stack=p,s(),l==="full"||!d||d!==m?h+=f.move(m+"]"):l==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function KT(){return"!"}Iy.peek=JT;function Iy(e,t,n){let i=e.value||"",l="`",s=-1;for(;new RegExp("(^|[^`])"+l+"([^`]|$)").test(i);)l+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++s<n.unsafe.length;){const u=n.unsafe[s],f=n.compilePattern(u);let h;if(u.atBreak)for(;h=f.exec(i);){let d=h.index;i.charCodeAt(d)===10&&i.charCodeAt(d-1)===13&&d--,i=i.slice(0,d)+" "+i.slice(h.index+1)}}return l+i+l}function JT(){return"`"}function Uy(e,t){const n=Sm(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Fy.peek=WT;function Fy(e,t,n,i){const l=Dm(n),s=l==='"'?"Quote":"Apostrophe",u=n.createTracker(i);let f,h;if(Uy(e,n)){const p=n.stack;n.stack=[],f=n.enter("autolink");let m=u.move("<");return m+=u.move(n.containerPhrasing(e,{before:m,after:">",...u.current()})),m+=u.move(">"),f(),n.stack=p,m}f=n.enter("link"),h=n.enter("label");let d=u.move("[");return d+=u.move(n.containerPhrasing(e,{before:d,after:"](",...u.current()})),d+=u.move("]("),h(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(h=n.enter("destinationLiteral"),d+=u.move("<"),d+=u.move(n.safe(e.url,{before:d,after:">",...u.current()})),d+=u.move(">")):(h=n.enter("destinationRaw"),d+=u.move(n.safe(e.url,{before:d,after:e.title?" ":")",...u.current()}))),h(),e.title&&(h=n.enter(`title${s}`),d+=u.move(" "+l),d+=u.move(n.safe(e.title,{before:d,after:l,...u.current()})),d+=u.move(l),h()),d+=u.move(")"),f(),d}function WT(e,t,n){return Uy(e,n)?"<":"["}Vy.peek=eM;function Vy(e,t,n,i){const l=e.referenceType,s=n.enter("linkReference");let u=n.enter("label");const f=n.createTracker(i);let h=f.move("[");const d=n.containerPhrasing(e,{before:h,after:"]",...f.current()});h+=f.move(d+"]["),u();const p=n.stack;n.stack=[],u=n.enter("reference");const m=n.safe(n.associationId(e),{before:h,after:"]",...f.current()});return u(),n.stack=p,s(),l==="full"||!d||d!==m?h+=f.move(m+"]"):l==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function eM(){return"["}function _m(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function tM(e){const t=_m(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function nM(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Yy(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function rM(e,t,n,i){const l=n.enter("list"),s=n.bulletCurrent;let u=e.ordered?nM(n):_m(n);const f=e.ordered?u==="."?")":".":tM(n);let h=t&&n.bulletLastUsed?u===n.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&p&&(!p.children||!p.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(h=!0),Yy(n)===u&&p){let m=-1;for(;++m<e.children.length;){const v=e.children[m];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(u=f),n.bulletCurrent=u;const d=n.containerFlow(e,i);return n.bulletLastUsed=u,n.bulletCurrent=s,l(),d}function iM(e){const 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 aM(e,t,n,i){const l=iM(n);let s=n.bulletCurrent||_m(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let u=s.length+1;(l==="tab"||l==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(u=Math.ceil(u/4)*4);const f=n.createTracker(i);f.move(s+" ".repeat(u-s.length)),f.shift(u);const h=n.enter("listItem"),d=n.indentLines(n.containerFlow(e,f.current()),p);return h(),d;function p(m,v,x){return v?(x?"":" ".repeat(u))+m:(x?s:s+" ".repeat(u-s.length))+m}}function lM(e,t,n,i){const l=n.enter("paragraph"),s=n.enter("phrasing"),u=n.containerPhrasing(e,i);return s(),l(),u}const oM=Xs(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function sM(e,t,n,i){return(e.children.some(function(u){return oM(u)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function uM(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Gy.peek=cM;function Gy(e,t,n,i){const l=uM(n),s=n.enter("strong"),u=n.createTracker(i),f=u.move(l+l);let h=u.move(n.containerPhrasing(e,{after:l,before:f,...u.current()}));const d=h.charCodeAt(0),p=lc(i.before.charCodeAt(i.before.length-1),d,l);p.inside&&(h=Os(d)+h.slice(1));const m=h.charCodeAt(h.length-1),v=lc(i.after.charCodeAt(0),m,l);v.inside&&(h=h.slice(0,-1)+Os(m));const x=u.move(l+l);return s(),n.attentionEncodeSurroundingInfo={after:v.outside,before:p.outside},f+h+x}function cM(e,t,n){return n.options.strong||"*"}function fM(e,t,n,i){return n.safe(e.value,i)}function hM(e){const 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 dM(e,t,n){const i=(Yy(n)+(n.options.ruleSpaces?" ":"")).repeat(hM(n));return n.options.ruleSpaces?i.slice(0,-1):i}const $y={blockquote:HT,break:A5,code:FT,definition:YT,emphasis:Ly,hardBreak:A5,heading:PT,html:Hy,image:jy,imageReference:qy,inlineCode:Iy,link:Fy,linkReference:Vy,list:rM,listItem:aM,paragraph:lM,root:sM,strong:Gy,text:fM,thematicBreak:dM};function mM(){return{enter:{table:pM,tableData:C5,tableHeader:C5,tableRow:yM},exit:{codeText:vM,table:gM,tableData:Gd,tableHeader:Gd,tableRow:Gd}}}function pM(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function gM(e){this.exit(e),this.data.inTable=void 0}function yM(e){this.enter({type:"tableRow",children:[]},e)}function Gd(e){this.exit(e)}function C5(e){this.enter({type:"tableCell",children:[]},e)}function vM(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,xM));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function xM(e,t){return t==="|"?t:e}function bM(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,l=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
294
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:u,tableCell:h,tableRow:f}};function u(x,w,A,C){return d(p(x,A,C),x.align)}function f(x,w,A,C){const E=m(x,A,C),D=d([E]);return D.slice(0,D.indexOf(`
295
+ `))}function h(x,w,A,C){const E=A.enter("tableCell"),D=A.enter("phrasing"),T=A.containerPhrasing(x,{...C,before:s,after:s});return D(),E(),T}function d(x,w){return BT(x,{align:w,alignDelimiters:i,padding:n,stringLength:l})}function p(x,w,A){const C=x.children;let E=-1;const D=[],T=w.enter("table");for(;++E<C.length;)D[E]=m(C[E],w,A);return T(),D}function m(x,w,A){const C=x.children;let E=-1;const D=[],T=w.enter("tableRow");for(;++E<C.length;)D[E]=h(C[E],x,w,A);return T(),D}function v(x,w,A){let C=$y.inlineCode(x,w,A);return A.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function wM(){return{exit:{taskListCheckValueChecked:T5,taskListCheckValueUnchecked:T5,paragraph:kM}}}function SM(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:EM}}}function T5(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function kM(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const i=n.children[0];if(i&&i.type==="text"){const l=t.children;let s=-1,u;for(;++s<l.length;){const f=l[s];if(f.type==="paragraph"){u=f;break}}u===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function EM(e,t,n,i){const l=e.children[0],s=typeof e.checked=="boolean"&&l&&l.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",f=n.createTracker(i);s&&f.move(u);let h=$y.listItem(e,t,n,{...i,...f.current()});return s&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),h;function d(p){return p+u}}function AM(){return[iT(),AT(),zT(),mM(),wM()]}function CM(e){return{extensions:[aT(),CT(e),NT(),bM(e),SM()]}}const TM={tokenize:OM,partial:!0},Xy={tokenize:RM,partial:!0},Py={tokenize:BM,partial:!0},Zy={tokenize:LM,partial:!0},MM={tokenize:HM,partial:!0},Qy={name:"wwwAutolink",tokenize:DM,previous:Jy},Ky={name:"protocolAutolink",tokenize:_M,previous:Wy},Ti={name:"emailAutolink",tokenize:NM,previous:e8},Xr={};function zM(){return{text:Xr}}let Ya=48;for(;Ya<123;)Xr[Ya]=Ti,Ya++,Ya===58?Ya=65:Ya===91&&(Ya=97);Xr[43]=Ti;Xr[45]=Ti;Xr[46]=Ti;Xr[95]=Ti;Xr[72]=[Ti,Ky];Xr[104]=[Ti,Ky];Xr[87]=[Ti,Qy];Xr[119]=[Ti,Qy];function NM(e,t,n){const i=this;let l,s;return u;function u(m){return!L1(m)||!e8.call(i,i.previous)||Om(i.events)?n(m):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(m))}function f(m){return L1(m)?(e.consume(m),f):m===64?(e.consume(m),h):n(m)}function h(m){return m===46?e.check(MM,p,d)(m):m===45||m===95||Sn(m)?(s=!0,e.consume(m),h):p(m)}function d(m){return e.consume(m),l=!0,h}function p(m){return s&&l&&Nn(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(m)):n(m)}}function DM(e,t,n){const i=this;return l;function l(u){return u!==87&&u!==119||!Jy.call(i,i.previous)||Om(i.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(TM,e.attempt(Xy,e.attempt(Py,s),n),n)(u))}function s(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function _M(e,t,n){const i=this;let l="",s=!1;return u;function u(m){return(m===72||m===104)&&Wy.call(i,i.previous)&&!Om(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(m),e.consume(m),f):n(m)}function f(m){if(Nn(m)&&l.length<5)return l+=String.fromCodePoint(m),e.consume(m),f;if(m===58){const v=l.toLowerCase();if(v==="http"||v==="https")return e.consume(m),h}return n(m)}function h(m){return m===47?(e.consume(m),s?d:(s=!0,h)):n(m)}function d(m){return m===null||rc(m)||zt(m)||Qa(m)||Rc(m)?n(m):e.attempt(Xy,e.attempt(Py,p),n)(m)}function p(m){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(m)}}function OM(e,t,n){let i=0;return l;function l(u){return(u===87||u===119)&&i<3?(i++,e.consume(u),l):u===46&&i===3?(e.consume(u),s):n(u)}function s(u){return u===null?n(u):t(u)}}function RM(e,t,n){let i,l,s;return u;function u(d){return d===46||d===95?e.check(Zy,h,f)(d):d===null||zt(d)||Qa(d)||d!==45&&Rc(d)?h(d):(s=!0,e.consume(d),u)}function f(d){return d===95?i=!0:(l=i,i=void 0),e.consume(d),u}function h(d){return l||i||!s?n(d):t(d)}}function BM(e,t){let n=0,i=0;return l;function l(u){return u===40?(n++,e.consume(u),l):u===41&&i<n?s(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(Zy,t,s)(u):u===null||zt(u)||Qa(u)?t(u):(e.consume(u),l)}function s(u){return u===41&&i++,e.consume(u),l}}function LM(e,t,n){return i;function i(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),i):f===38?(e.consume(f),s):f===93?(e.consume(f),l):f===60||f===null||zt(f)||Qa(f)?t(f):n(f)}function l(f){return f===null||f===40||f===91||zt(f)||Qa(f)?t(f):i(f)}function s(f){return Nn(f)?u(f):n(f)}function u(f){return f===59?(e.consume(f),i):Nn(f)?(e.consume(f),u):n(f)}}function HM(e,t,n){return i;function i(s){return e.consume(s),l}function l(s){return Sn(s)?n(s):t(s)}}function Jy(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||zt(e)}function Wy(e){return!Nn(e)}function e8(e){return!(e===47||L1(e))}function L1(e){return e===43||e===45||e===46||e===95||Sn(e)}function Om(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const jM={tokenize:$M,partial:!0};function qM(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:VM,continuation:{tokenize:YM},exit:GM}},text:{91:{name:"gfmFootnoteCall",tokenize:FM},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:IM,resolveTo:UM}}}}function IM(e,t,n){const i=this;let l=i.events.length;const s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let u;for(;l--;){const h=i.events[l][1];if(h.type==="labelImage"){u=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return f;function f(h){if(!u||!u._balanced)return n(h);const d=Nr(i.sliceSerialize({start:u.end,end:i.now()}));return d.codePointAt(0)!==94||!s.includes(d.slice(1))?n(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),t(h))}}function UM(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},f=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",l,t],["exit",l,t],["enter",s,t],["enter",u,t],["exit",u,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...f),e}function FM(e,t,n){const i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s=0,u;return f;function f(m){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),h}function h(m){return m!==94?n(m):(e.enter("gfmFootnoteCallMarker"),e.consume(m),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(m){if(s>999||m===93&&!u||m===null||m===91||zt(m))return n(m);if(m===93){e.exit("chunkString");const v=e.exit("gfmFootnoteCallString");return l.includes(Nr(i.sliceSerialize(v)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(m)}return zt(m)||(u=!0),s++,e.consume(m),m===92?p:d}function p(m){return m===91||m===92||m===93?(e.consume(m),s++,d):d(m)}}function VM(e,t,n){const i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s,u=0,f;return h;function h(w){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(w){return w===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(w)}function p(w){if(u>999||w===93&&!f||w===null||w===91||zt(w))return n(w);if(w===93){e.exit("chunkString");const A=e.exit("gfmFootnoteDefinitionLabelString");return s=Nr(i.sliceSerialize(A)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),v}return zt(w)||(f=!0),u++,e.consume(w),w===92?m:p}function m(w){return w===91||w===92||w===93?(e.consume(w),u++,p):p(w)}function v(w){return w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),l.includes(s)||l.push(s),rt(e,x,"gfmFootnoteDefinitionWhitespace")):n(w)}function x(w){return t(w)}}function YM(e,t,n){return e.check(Qs,t,e.attempt(jM,t,n))}function GM(e){e.exit("gfmFootnoteDefinition")}function $M(e,t,n){const i=this;return rt(e,l,"gfmFootnoteDefinitionIndent",5);function l(s){const u=i.events[i.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?t(s):n(s)}}function XM(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:s,resolveAll:l};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function l(u,f){let h=-1;for(;++h<u.length;)if(u[h][0]==="enter"&&u[h][1].type==="strikethroughSequenceTemporary"&&u[h][1]._close){let d=h;for(;d--;)if(u[d][0]==="exit"&&u[d][1].type==="strikethroughSequenceTemporary"&&u[d][1]._open&&u[h][1].end.offset-u[h][1].start.offset===u[d][1].end.offset-u[d][1].start.offset){u[h][1].type="strikethroughSequence",u[d][1].type="strikethroughSequence";const p={type:"strikethrough",start:Object.assign({},u[d][1].start),end:Object.assign({},u[h][1].end)},m={type:"strikethroughText",start:Object.assign({},u[d][1].end),end:Object.assign({},u[h][1].start)},v=[["enter",p,f],["enter",u[d][1],f],["exit",u[d][1],f],["enter",m,f]],x=f.parser.constructs.insideSpan.null;x&&ir(v,v.length,0,Bc(x,u.slice(d+1,h),f)),ir(v,v.length,0,[["exit",m,f],["enter",u[h][1],f],["exit",u[h][1],f],["exit",p,f]]),ir(u,d-1,h-d+3,v),h=d+v.length-2;break}}for(h=-1;++h<u.length;)u[h][1].type==="strikethroughSequenceTemporary"&&(u[h][1].type="data");return u}function s(u,f,h){const d=this.previous,p=this.events;let m=0;return v;function v(w){return d===126&&p[p.length-1][1].type!=="characterEscape"?h(w):(u.enter("strikethroughSequenceTemporary"),x(w))}function x(w){const A=ao(d);if(w===126)return m>1?h(w):(u.consume(w),m++,x);if(m<2&&!n)return h(w);const C=u.exit("strikethroughSequenceTemporary"),E=ao(w);return C._open=!E||E===2&&!!A,C._close=!A||A===2&&!!E,f(w)}}}class PM{constructor(){this.map=[]}add(t,n,i){ZM(this,t,n,i)}consume(t){if(this.map.sort(function(s,u){return s[0]-u[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let l=i.pop();for(;l;){for(const s of l)t.push(s);l=i.pop()}this.map.length=0}}function ZM(e,t,n,i){let l=0;if(!(n===0&&i.length===0)){for(;l<e.map.length;){if(e.map[l][0]===t){e.map[l][1]+=n,e.map[l][2].push(...i);return}l+=1}e.map.push([t,n,i])}}function QM(e,t){let n=!1;const i=[];for(;t<e.length;){const l=e[t];if(n){if(l[0]==="enter")l[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(l[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=i.length-1;i[s]=i[s]==="left"?"center":"right"}}else if(l[1].type==="tableDelimiterRow")break}else l[0]==="enter"&&l[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function KM(){return{flow:{null:{name:"table",tokenize:JM,resolveAll:WM}}}}function JM(e,t,n){const i=this;let l=0,s=0,u;return f;function f(V){let G=i.events.length-1;for(;G>-1;){const q=i.events[G][1].type;if(q==="lineEnding"||q==="linePrefix")G--;else break}const W=G>-1?i.events[G][1].type:null,ce=W==="tableHead"||W==="tableRow"?z:h;return ce===z&&i.parser.lazy[i.now().line]?n(V):ce(V)}function h(V){return e.enter("tableHead"),e.enter("tableRow"),d(V)}function d(V){return V===124||(u=!0,s+=1),p(V)}function p(V){return V===null?n(V):He(V)?s>1?(s=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(V),e.exit("lineEnding"),x):n(V):lt(V)?rt(e,p,"whitespace")(V):(s+=1,u&&(u=!1,l+=1),V===124?(e.enter("tableCellDivider"),e.consume(V),e.exit("tableCellDivider"),u=!0,p):(e.enter("data"),m(V)))}function m(V){return V===null||V===124||zt(V)?(e.exit("data"),p(V)):(e.consume(V),V===92?v:m)}function v(V){return V===92||V===124?(e.consume(V),m):m(V)}function x(V){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(V):(e.enter("tableDelimiterRow"),u=!1,lt(V)?rt(e,w,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):w(V))}function w(V){return V===45||V===58?C(V):V===124?(u=!0,e.enter("tableCellDivider"),e.consume(V),e.exit("tableCellDivider"),A):U(V)}function A(V){return lt(V)?rt(e,C,"whitespace")(V):C(V)}function C(V){return V===58?(s+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(V),e.exit("tableDelimiterMarker"),E):V===45?(s+=1,E(V)):V===null||He(V)?B(V):U(V)}function E(V){return V===45?(e.enter("tableDelimiterFiller"),D(V)):U(V)}function D(V){return V===45?(e.consume(V),D):V===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(V),e.exit("tableDelimiterMarker"),T):(e.exit("tableDelimiterFiller"),T(V))}function T(V){return lt(V)?rt(e,B,"whitespace")(V):B(V)}function B(V){return V===124?w(V):V===null||He(V)?!u||l!==s?U(V):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(V)):U(V)}function U(V){return n(V)}function z(V){return e.enter("tableRow"),I(V)}function I(V){return V===124?(e.enter("tableCellDivider"),e.consume(V),e.exit("tableCellDivider"),I):V===null||He(V)?(e.exit("tableRow"),t(V)):lt(V)?rt(e,I,"whitespace")(V):(e.enter("data"),P(V))}function P(V){return V===null||V===124||zt(V)?(e.exit("data"),I(V)):(e.consume(V),V===92?$:P)}function $(V){return V===92||V===124?(e.consume(V),P):P(V)}}function WM(e,t){let n=-1,i=!0,l=0,s=[0,0,0,0],u=[0,0,0,0],f=!1,h=0,d,p,m;const v=new PM;for(;++n<e.length;){const x=e[n],w=x[1];x[0]==="enter"?w.type==="tableHead"?(f=!1,h!==0&&(M5(v,t,h,d,p),p=void 0,h=0),d={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},v.add(n,0,[["enter",d,t]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(i=!0,m=void 0,s=[0,0,0,0],u=[0,n+1,0,0],f&&(f=!1,p={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},v.add(n,0,[["enter",p,t]])),l=w.type==="tableDelimiterRow"?2:p?3:1):l&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(i=!1,u[2]===0&&(s[1]!==0&&(u[0]=u[1],m=O0(v,t,s,l,void 0,m),s=[0,0,0,0]),u[2]=n)):w.type==="tableCellDivider"&&(i?i=!1:(s[1]!==0&&(u[0]=u[1],m=O0(v,t,s,l,void 0,m)),s=u,u=[s[1],n,0,0])):w.type==="tableHead"?(f=!0,h=n):w.type==="tableRow"||w.type==="tableDelimiterRow"?(h=n,s[1]!==0?(u[0]=u[1],m=O0(v,t,s,l,n,m)):u[1]!==0&&(m=O0(v,t,u,l,n,m)),l=0):l&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(u[3]=n)}for(h!==0&&M5(v,t,h,d,p),v.consume(t.events),n=-1;++n<t.events.length;){const x=t.events[n];x[0]==="enter"&&x[1].type==="table"&&(x[1]._align=QM(t.events,n))}return e}function O0(e,t,n,i,l,s){const u=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",f="tableContent";n[0]!==0&&(s.end=Object.assign({},Zl(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const h=Zl(t.events,n[1]);if(s={type:u,start:Object.assign({},h),end:Object.assign({},h)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const d=Zl(t.events,n[2]),p=Zl(t.events,n[3]),m={type:f,start:Object.assign({},d),end:Object.assign({},p)};if(e.add(n[2],0,[["enter",m,t]]),i!==2){const v=t.events[n[2]],x=t.events[n[3]];if(v[1].end=Object.assign({},x[1].end),v[1].type="chunkText",v[1].contentType="text",n[3]>n[2]+1){const w=n[2]+1,A=n[3]-n[2]-1;e.add(w,A,[])}}e.add(n[3]+1,0,[["exit",m,t]])}return l!==void 0&&(s.end=Object.assign({},Zl(t.events,l)),e.add(l,0,[["exit",s,t]]),s=void 0),s}function M5(e,t,n,i,l){const s=[],u=Zl(t.events,n);l&&(l.end=Object.assign({},u),s.push(["exit",l,t])),i.end=Object.assign({},u),s.push(["exit",i,t]),e.add(n+1,0,s)}function Zl(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const ez={name:"tasklistCheck",tokenize:nz};function tz(){return{text:{91:ez}}}function nz(e,t,n){const i=this;return l;function l(h){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(h):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),s)}function s(h){return zt(h)?(e.enter("taskListCheckValueUnchecked"),e.consume(h),e.exit("taskListCheckValueUnchecked"),u):h===88||h===120?(e.enter("taskListCheckValueChecked"),e.consume(h),e.exit("taskListCheckValueChecked"),u):n(h)}function u(h){return h===93?(e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):n(h)}function f(h){return He(h)?t(h):lt(h)?e.check({tokenize:rz},t,n)(h):n(h)}}function rz(e,t,n){return rt(e,i,"whitespace");function i(l){return l===null?n(l):t(l)}}function iz(e){return hy([zM(),qM(),XM(e),KM(),tz()])}const az={};function lz(e){const t=this,n=e||az,i=t.data(),l=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),u=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);l.push(iz(n)),s.push(AM()),u.push(CM(n))}function oz(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:s},exit:{mathFlow:l,mathFlowFence:i,mathFlowFenceMeta:n,mathFlowValue:f,mathText:u,mathTextData:f}};function e(h){const d={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[d]}},h)}function t(){this.buffer()}function n(){const h=this.resume(),d=this.stack[this.stack.length-1];d.type,d.meta=h}function i(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function l(h){const d=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),p=this.stack[this.stack.length-1];p.type,this.exit(h),p.value=d;const m=p.data.hChildren[0];m.type,m.tagName,m.children.push({type:"text",value:d}),this.data.mathFlowInside=void 0}function s(h){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},h),this.buffer()}function u(h){const d=this.resume(),p=this.stack[this.stack.length-1];p.type,this.exit(h),p.value=d,p.data.hChildren.push({type:"text",value:d})}function f(h){this.config.enter.data.call(this,h),this.config.exit.data.call(this,h)}}function sz(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),i.peek=l,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
296
+ `,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:i}};function n(s,u,f,h){const d=s.value||"",p=f.createTracker(h),m="$".repeat(Math.max(By(d,"$")+1,2)),v=f.enter("mathFlow");let x=p.move(m);if(s.meta){const w=f.enter("mathFlowMeta");x+=p.move(f.safe(s.meta,{after:`
297
+ `,before:x,encode:["$"],...p.current()})),w()}return x+=p.move(`
298
+ `),d&&(x+=p.move(d+`
299
+ `)),x+=p.move(m),v(),x}function i(s,u,f){let h=s.value||"",d=1;for(t||d++;new RegExp("(^|[^$])"+"\\$".repeat(d)+"([^$]|$)").test(h);)d++;const p="$".repeat(d);/[^ \r\n]/.test(h)&&(/^[ \r\n]/.test(h)&&/[ \r\n]$/.test(h)||/^\$|\$$/.test(h))&&(h=" "+h+" ");let m=-1;for(;++m<f.unsafe.length;){const v=f.unsafe[m];if(!v.atBreak)continue;const x=f.compilePattern(v);let w;for(;w=x.exec(h);){let A=w.index;h.codePointAt(A)===10&&h.codePointAt(A-1)===13&&A--,h=h.slice(0,A)+" "+h.slice(w.index+1)}}return p+h+p}function l(){return"$"}}const uz={tokenize:cz,concrete:!0,name:"mathFlow"},z5={tokenize:fz,partial:!0};function cz(e,t,n){const i=this,l=i.events[i.events.length-1],s=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0;let u=0;return f;function f(D){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),h(D)}function h(D){return D===36?(e.consume(D),u++,h):u<2?n(D):(e.exit("mathFlowFenceSequence"),rt(e,d,"whitespace")(D))}function d(D){return D===null||He(D)?m(D):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(D))}function p(D){return D===null||He(D)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),m(D)):D===36?n(D):(e.consume(D),p)}function m(D){return e.exit("mathFlowFence"),i.interrupt?t(D):e.attempt(z5,v,C)(D)}function v(D){return e.attempt({tokenize:E,partial:!0},C,x)(D)}function x(D){return(s?rt(e,w,"linePrefix",s+1):w)(D)}function w(D){return D===null?C(D):He(D)?e.attempt(z5,v,C)(D):(e.enter("mathFlowValue"),A(D))}function A(D){return D===null||He(D)?(e.exit("mathFlowValue"),w(D)):(e.consume(D),A)}function C(D){return e.exit("mathFlow"),t(D)}function E(D,T,B){let U=0;return rt(D,z,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function z($){return D.enter("mathFlowFence"),D.enter("mathFlowFenceSequence"),I($)}function I($){return $===36?(U++,D.consume($),I):U<u?B($):(D.exit("mathFlowFenceSequence"),rt(D,P,"whitespace")($))}function P($){return $===null||He($)?(D.exit("mathFlowFence"),T($)):B($)}}}function fz(e,t,n){const i=this;return l;function l(u){return u===null?t(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s)}function s(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}function hz(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:i,resolve:dz,previous:mz,name:"mathText"};function i(l,s,u){let f=0,h,d;return p;function p(A){return l.enter("mathText"),l.enter("mathTextSequence"),m(A)}function m(A){return A===36?(l.consume(A),f++,m):f<2&&!n?u(A):(l.exit("mathTextSequence"),v(A))}function v(A){return A===null?u(A):A===36?(d=l.enter("mathTextSequence"),h=0,w(A)):A===32?(l.enter("space"),l.consume(A),l.exit("space"),v):He(A)?(l.enter("lineEnding"),l.consume(A),l.exit("lineEnding"),v):(l.enter("mathTextData"),x(A))}function x(A){return A===null||A===32||A===36||He(A)?(l.exit("mathTextData"),v(A)):(l.consume(A),x)}function w(A){return A===36?(l.consume(A),h++,w):h===f?(l.exit("mathTextSequence"),l.exit("mathText"),s(A)):(d.type="mathTextData",x(A))}}}function dz(e){let t=e.length-4,n=3,i,l;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[n][1].type="mathTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)l===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(l=i):(i===t||e[i][1].type==="lineEnding")&&(e[l][1].type="mathTextData",i!==l+2&&(e[l][1].end=e[i-1][1].end,e.splice(l+2,i-l-2),t-=i-l-2,i=l+2),l=void 0);return e}function mz(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function pz(e){return{flow:{36:uz},text:{36:hz(e)}}}const gz={};function yz(e){const t=this,n=e||gz,i=t.data(),l=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),u=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);l.push(pz(n)),s.push(oz()),u.push(sz(n))}function Rs({basePath:e,className:t="",content:n}){return M.jsx("div",{className:t?`markdown-body ${t}`:"markdown-body",children:M.jsx(PC,{components:{a({href:i,children:l,node:s,...u}){const f=i&&e?vz(N5(e,i)):null;return M.jsx("a",{href:f||i,...u,children:l})},img({src:i,node:l,...s}){const u=i&&e?xz(N5(e,i)):null;return M.jsx("img",{src:u||i,...s})}},rehypePlugins:[nk],remarkPlugins:[lz,yz],children:n})})}function N5(e,t){const n=t.trim();if(!n||n.startsWith("#")||/^[a-z][a-z0-9+.-]*:/i.test(n)||n.startsWith("//"))return null;const i=t8(n),l=i>=0?n.slice(0,i):n,s=i>=0?n.slice(i):"";if(!l)return null;const f=[...e.split("/").slice(0,-1),...l.split("/")],h=[];for(const d of f)if(!(!d||d===".")){if(d===".."){if(!h.length)return null;h.pop();continue}h.push(d)}return h.length?`${h.join("/")}${s}`:null}function vz(e){if(!e)return null;const[t,n]=n8(e);return`/viewer?path=${encodeURIComponent(t)}${n}`}function xz(e){if(!e)return null;const[t,n]=n8(e),i=n.startsWith("?")?`&${n.slice(1)}`:n;return`/api/workspace/raw?path=${encodeURIComponent(t)}${i}`}function t8(e){const t=e.indexOf("#"),n=e.indexOf("?"),i=[t,n].filter(l=>l>=0);return i.length?Math.min(...i):-1}function n8(e){const t=t8(e);return t<0?[e,""]:[e.slice(0,t),e.slice(t)]}function bz(e){return e.role==="assistant"?"Sidecar":e.role==="tool"?e.toolName?`Tool · ${e.toolName}`:"Tool":e.role==="system"?"System":"You"}function wz({run:e}){const t=e.exchanges.filter(n=>n.result).length;return M.jsx("article",{className:"message tool",children:M.jsxs("details",{className:"tool-run-card",children:[M.jsxs("summary",{children:[M.jsxs("span",{className:"tool-summary-main",children:[M.jsx("span",{className:"tool-chip result",children:"Tools"}),M.jsx("strong",{children:"Workspace tools"}),M.jsxs("small",{children:[e.exchanges.length," call",e.exchanges.length===1?"":"s",t>0?` · ${t} result${t===1?"":"s"}`:""]})]}),M.jsx("span",{className:"tool-summary-action",children:"Details"})]}),M.jsx("div",{className:"tool-run-details",children:e.exchanges.map(n=>M.jsx(kz,{exchange:n},n.id))})]})})}function Sz(e){if(e.triggers?.length){const t=new Set((e.loadedSkills||[]).map(n=>n.path));return`Workspace skill routing:
300
+
301
+ ${e.triggers.map(n=>{const i=t.has(n.skill.path)?"loaded":n.disclosure;return`- \`${n.skill.name}\` — ${n.confidence}; ${i}; ${n.reason}`}).join(`
302
+ `)}`}return`Triggered workspace skills:
303
+
304
+ ${(e.skills||[]).map(t=>`- \`${t.name}\` — ${t.description||t.path}`).join(`
305
+ `)}`}function kz({exchange:e}){return M.jsxs("details",{className:"tool-card",children:[M.jsxs("summary",{children:[M.jsxs("span",{className:"tool-summary-main",children:[M.jsx("span",{className:e.result?"tool-chip result":"tool-chip",children:e.result?"Done":"Call"}),M.jsx("strong",{children:e.name})]}),M.jsx("span",{className:"tool-summary-action",children:"Details"})]}),M.jsxs("div",{className:"message-body tool-details",children:[e.call&&M.jsxs("section",{className:"tool-detail-section",children:[M.jsx("h3",{children:"Call"}),M.jsx(Rs,{content:e.call.content})]}),e.result&&M.jsxs("section",{className:"tool-detail-section",children:[M.jsx("h3",{children:"Result"}),M.jsx(Rs,{content:e.result.content})]})]})]})}function D5(e){const t=[];let n=[];for(const i of e){if(i.role==="tool"){n.push(i);continue}_5(t,n),n=[],t.push({kind:"message",message:i})}return _5(t,n),t}function _5(e,t){if(!t.length)return;const n=t[0],i=t[t.length-1];e.push({kind:"tool-run",run:{id:`tool-run-${n.id}-${i.id}`,exchanges:Ez(t)}})}function Ez(e){const t=[];for(const n of e){const i=Az(n),l=n.toolName||n.content.match(/`([^`]+)`/)?.[1]||"workspace tool",s=t[t.length-1];if(i==="result"&&s&&s.name===l&&!s.result){s.result=n;continue}t.push({id:n.id,name:l,...i==="result"?{result:n}:{call:n}})}return t}function Az(e){return e.content.startsWith("Result from")?"result":"call"}function Cz({candidates:e,config:t,graphSaving:n,graphEditing:i,installWorkspaceSkills:l,loadGraphCandidates:s,notice:u,saveGraphSelection:f,selectGraphPath:h,selectedCandidate:d,selectedGraphPath:p,setSelectedGraphPath:m,setGraphEditing:v,setSidebarCollapsed:x,sidebarCollapsed:w,skillsInstalling:A,viewTabs:C}){return M.jsxs("div",{className:"workspace-sidebar-header",children:[C,M.jsxs("div",{className:"brand-row",children:[M.jsxs("div",{className:"workspace-sidebar-title",children:[M.jsx("h1",{children:"Research Graph"}),!w&&M.jsx("p",{children:t?.workspaceRoot||"Loading workspace..."})]}),M.jsx("div",{className:"brand-actions",children:M.jsx("button",{className:"icon-button",onClick:()=>x(!w),title:"Toggle sidebar",children:w?"›":"‹"})})]}),!w&&M.jsxs("div",{className:"graph-config",children:[M.jsxs("label",{children:["Graph",M.jsx("select",{value:p,onChange:E=>{const D=E.target.value;h?h(D):m(D)},disabled:!e.length||n,children:e.length?e.map(E=>M.jsx("option",{value:E.path,children:E.title?`${E.title} · ${E.path}`:E.path},E.path)):M.jsx("option",{value:"",children:"No graph found"})})]}),d?.error&&M.jsx("small",{className:"graph-config-error",children:d.error}),d&&!d.error&&M.jsxs("small",{children:[d.nodeCount??0," nodes · ",d.edgeCount??0," edges"]}),M.jsxs("div",{className:"graph-config-actions",children:[M.jsx("button",{className:"secondary-button compact",onClick:s,children:"Refresh"}),M.jsx("button",{className:"secondary-button compact",onClick:()=>v(!i),children:i?"Close editor":"Edit graph"}),M.jsx("button",{className:"secondary-button compact",onClick:l,disabled:A,children:A?"Installing":"Install skills"}),M.jsx("button",{className:"secondary-button compact primary",onClick:f,disabled:!p||p===t?.graphManifestPath||n,children:n?"Saving":"Save graph"})]}),u&&M.jsx("small",{className:"graph-config-notice",children:u})]})]})}const Tz=["question","claim","evidence","method","concept","source","task","output"],Mz=["decomposes","answers","supports","contradicts","depends_on","operationalizes","cites","leads_to"],zz=["","active","draft","blocked","done","needs_decomposition","testable","testing","supported","weakened","contradicted","revised","accepted_for_now"];function Nz({graph:e,onCancel:t,onSave:n,saving:i}){const[l,s]=ie.useState(()=>$d(e)),[u,f]=ie.useState(e.rootId),[h,d]=ie.useState(e.edges[0]?.id||""),p=ie.useMemo(()=>new Set(l.nodes.map(z=>z.id)),[l.nodes]),m=l.nodes.find(z=>z.id===u)||l.nodes[0],v=l.edges.find(z=>z.id===h)||l.edges[0],x=l.nodes.length!==p.size,w=l.edges.some(z=>!p.has(z.from)||!p.has(z.to)),A=!i&&l.rootId&&p.has(l.rootId)&&!x&&!w;ie.useEffect(()=>{s($d(e)),f(e.rootId),d(e.edges[0]?.id||"")},[e]);function C(z,I){s(P=>{const $=I.id?.trim(),V=$&&$!==z;return{...P,rootId:V&&P.rootId===z?$:P.rootId,nodes:P.nodes.map(G=>G.id===z?Dz({...G,...I}):G),edges:V?P.edges.map(G=>({...G,id:G.id===`${G.from}->${G.to}:${G.kind}`?`${G.from===z?$:G.from}->${G.to===z?$:G.to}:${G.kind}`:G.id,from:G.from===z?$:G.from,to:G.to===z?$:G.to})):P.edges}}),I.id?.trim()&&I.id.trim()!==z&&f(I.id.trim())}function E(){const z=_z(l.nodes);s(I=>({...I,nodes:[...I.nodes,{id:z,title:"New node",type:"question",status:"draft"}]})),f(z)}function D(z){z===l.rootId||l.nodes.length<=1||(s(I=>({...I,nodes:I.nodes.filter(P=>P.id!==z),edges:I.edges.filter(P=>P.from!==z&&P.to!==z)})),f(l.rootId))}function T(z,I){s(P=>({...P,edges:P.edges.map($=>$.id===z?O5({...$,...I}):$)}))}function B(){const z=m?.id||l.rootId,I=l.nodes.find($=>$.id!==z)?.id||z,P=O5({from:z,to:I,kind:"decomposes"});s($=>({...$,edges:[...$.edges,P]})),d(P.id)}function U(z){s(I=>({...I,edges:I.edges.filter(P=>P.id!==z)})),d("")}return M.jsxs("div",{className:"graph-editor-panel",children:[M.jsxs("div",{className:"graph-editor-header",children:[M.jsx("strong",{children:"Edit graph.yaml"}),M.jsxs("span",{children:[l.nodes.length," nodes · ",l.edges.length," edges"]})]}),M.jsxs("label",{children:["Root",M.jsx("select",{value:l.rootId,onChange:z=>s(I=>({...I,rootId:z.target.value})),children:l.nodes.map(z=>M.jsx("option",{value:z.id,children:z.title||z.id},z.id))})]}),M.jsxs("section",{className:"graph-editor-section",children:[M.jsxs("div",{className:"graph-editor-section-title",children:[M.jsx("strong",{children:"Nodes"}),M.jsx("button",{className:"secondary-button compact",onClick:E,children:"Add node"})]}),M.jsx("select",{value:m?.id||"",onChange:z=>f(z.target.value),children:l.nodes.map(z=>M.jsx("option",{value:z.id,children:z.id},z.id))}),m&&M.jsxs("div",{className:"graph-editor-grid",children:[M.jsxs("label",{children:["ID",M.jsx("input",{value:m.id,onChange:z=>C(m.id,{id:z.target.value})})]}),M.jsxs("label",{children:["Type",M.jsx("select",{value:m.type,onChange:z=>C(m.id,{type:z.target.value}),children:Tz.map(z=>M.jsx("option",{children:z},z))})]}),M.jsxs("label",{children:["Title",M.jsx("input",{value:m.title,onChange:z=>C(m.id,{title:z.target.value})})]}),M.jsxs("label",{children:["Status",M.jsx("select",{value:m.status||"",onChange:z=>C(m.id,{status:z.target.value||void 0}),children:zz.map(z=>M.jsx("option",{value:z,children:z||"none"},z))})]}),M.jsxs("label",{children:["File",M.jsx("input",{value:m.file||m.files?.[0]?.path||"",onChange:z=>C(m.id,{file:z.target.value||void 0,files:void 0})})]}),M.jsxs("label",{children:["Tags",M.jsx("input",{value:(m.tags||[]).join(", "),onChange:z=>C(m.id,{tags:Oz(z.target.value)})})]}),M.jsxs("label",{className:"graph-editor-wide",children:["Summary",M.jsx("textarea",{value:m.summary||"",onChange:z=>C(m.id,{summary:z.target.value||void 0}),rows:3})]}),M.jsx("button",{className:"secondary-button compact danger",onClick:()=>D(m.id),disabled:m.id===l.rootId||l.nodes.length<=1,children:"Delete node"})]})]}),M.jsxs("section",{className:"graph-editor-section",children:[M.jsxs("div",{className:"graph-editor-section-title",children:[M.jsx("strong",{children:"Edges"}),M.jsx("button",{className:"secondary-button compact",onClick:B,disabled:l.nodes.length<1,children:"Add edge"})]}),M.jsx("select",{value:v?.id||"",onChange:z=>d(z.target.value),disabled:!l.edges.length,children:l.edges.length?l.edges.map(z=>M.jsxs("option",{value:z.id,children:[z.from," ","->"," ",z.to," · ",z.kind]},z.id)):M.jsx("option",{value:"",children:"No edges"})}),v&&M.jsxs("div",{className:"graph-editor-grid",children:[M.jsxs("label",{children:["From",M.jsx("select",{value:v.from,onChange:z=>T(v.id,{from:z.target.value}),children:l.nodes.map(z=>M.jsx("option",{value:z.id,children:z.id},z.id))})]}),M.jsxs("label",{children:["To",M.jsx("select",{value:v.to,onChange:z=>T(v.id,{to:z.target.value}),children:l.nodes.map(z=>M.jsx("option",{value:z.id,children:z.id},z.id))})]}),M.jsxs("label",{children:["Kind",M.jsx("select",{value:v.kind,onChange:z=>T(v.id,{kind:z.target.value}),children:Mz.map(z=>M.jsx("option",{children:z},z))})]}),M.jsxs("label",{children:["Label",M.jsx("input",{value:v.label||"",onChange:z=>T(v.id,{label:z.target.value||void 0})})]}),M.jsx("button",{className:"secondary-button compact danger",onClick:()=>U(v.id),children:"Delete edge"})]})]}),(x||w)&&M.jsxs("p",{className:"graph-editor-error",children:[x?"Node ids must be unique. ":"",w?"Every edge must point to existing nodes.":""]}),M.jsxs("div",{className:"graph-editor-actions",children:[M.jsx("button",{className:"secondary-button compact",onClick:()=>s($d(e)),disabled:i,children:"Reset"}),M.jsx("button",{className:"secondary-button compact",onClick:t,children:"Close"}),M.jsx("button",{className:"secondary-button compact primary",onClick:()=>n(l),disabled:!A,children:i?"Saving":"Save changes"})]})]})}function $d(e){return JSON.parse(JSON.stringify(e))}function Dz(e){return{...e,id:e.id.trim(),title:e.title.trim()}}function O5(e){const t=e.from.trim(),n=e.to.trim(),i=e.kind;return{id:e.id&&!e.id.includes("->")?e.id:`${t}->${n}:${i}`,from:t,to:n,kind:i,...e.label?.trim()?{label:e.label.trim()}:{}}}function _z(e){const t=new Set(e.map(n=>n.id));for(let n=e.length+1;n<e.length+1e3;n+=1){const i=`node.${n}`;if(!t.has(i))return i}return`node.${Date.now()}`}function Oz(e){return e.split(",").map(t=>t.trim()).filter(Boolean)}function rn(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let n=0,i;n<e.length;n++)(i=rn(e[n]))!==""&&(t+=(t&&" ")+i);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}var Rz={value:()=>{}};function Hc(){for(var e=0,t=arguments.length,n={},i;e<t;++e){if(!(i=arguments[e]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new $0(n)}function $0(e){this._=e}function Bz(e,t){return e.trim().split(/^|\s+/).map(function(n){var i="",l=n.indexOf(".");if(l>=0&&(i=n.slice(l+1),n=n.slice(0,l)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}$0.prototype=Hc.prototype={constructor:$0,on:function(e,t){var n=this._,i=Bz(e+"",n),l,s=-1,u=i.length;if(arguments.length<2){for(;++s<u;)if((l=(e=i[s]).type)&&(l=Lz(n[l],e.name)))return l;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++s<u;)if(l=(e=i[s]).type)n[l]=R5(n[l],e.name,t);else if(t==null)for(l in n)n[l]=R5(n[l],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new $0(e)},call:function(e,t){if((l=arguments.length-2)>0)for(var n=new Array(l),i=0,l,s;i<l;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(s=this._[e],i=0,l=s.length;i<l;++i)s[i].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],l=0,s=i.length;l<s;++l)i[l].value.apply(t,n)}};function Lz(e,t){for(var n=0,i=e.length,l;n<i;++n)if((l=e[n]).name===t)return l.value}function R5(e,t,n){for(var i=0,l=e.length;i<l;++i)if(e[i].name===t){e[i]=Rz,e=e.slice(0,i).concat(e.slice(i+1));break}return n!=null&&e.push({name:t,value:n}),e}var H1="http://www.w3.org/1999/xhtml";const B5={svg:"http://www.w3.org/2000/svg",xhtml:H1,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function jc(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),B5.hasOwnProperty(t)?{space:B5[t],local:e}:e}function Hz(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===H1&&t.documentElement.namespaceURI===H1?t.createElement(e):t.createElementNS(n,e)}}function jz(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function r8(e){var t=jc(e);return(t.local?jz:Hz)(t)}function qz(){}function Rm(e){return e==null?qz:function(){return this.querySelector(e)}}function Iz(e){typeof e!="function"&&(e=Rm(e));for(var t=this._groups,n=t.length,i=new Array(n),l=0;l<n;++l)for(var s=t[l],u=s.length,f=i[l]=new Array(u),h,d,p=0;p<u;++p)(h=s[p])&&(d=e.call(h,h.__data__,p,s))&&("__data__"in h&&(d.__data__=h.__data__),f[p]=d);return new lr(i,this._parents)}function Uz(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Fz(){return[]}function i8(e){return e==null?Fz:function(){return this.querySelectorAll(e)}}function Vz(e){return function(){return Uz(e.apply(this,arguments))}}function Yz(e){typeof e=="function"?e=Vz(e):e=i8(e);for(var t=this._groups,n=t.length,i=[],l=[],s=0;s<n;++s)for(var u=t[s],f=u.length,h,d=0;d<f;++d)(h=u[d])&&(i.push(e.call(h,h.__data__,d,u)),l.push(h));return new lr(i,l)}function a8(e){return function(){return this.matches(e)}}function l8(e){return function(t){return t.matches(e)}}var Gz=Array.prototype.find;function $z(e){return function(){return Gz.call(this.children,e)}}function Xz(){return this.firstElementChild}function Pz(e){return this.select(e==null?Xz:$z(typeof e=="function"?e:l8(e)))}var Zz=Array.prototype.filter;function Qz(){return Array.from(this.children)}function Kz(e){return function(){return Zz.call(this.children,e)}}function Jz(e){return this.selectAll(e==null?Qz:Kz(typeof e=="function"?e:l8(e)))}function Wz(e){typeof e!="function"&&(e=a8(e));for(var t=this._groups,n=t.length,i=new Array(n),l=0;l<n;++l)for(var s=t[l],u=s.length,f=i[l]=[],h,d=0;d<u;++d)(h=s[d])&&e.call(h,h.__data__,d,s)&&f.push(h);return new lr(i,this._parents)}function o8(e){return new Array(e.length)}function eN(){return new lr(this._enter||this._groups.map(o8),this._parents)}function oc(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}oc.prototype={constructor:oc,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function tN(e){return function(){return e}}function nN(e,t,n,i,l,s){for(var u=0,f,h=t.length,d=s.length;u<d;++u)(f=t[u])?(f.__data__=s[u],i[u]=f):n[u]=new oc(e,s[u]);for(;u<h;++u)(f=t[u])&&(l[u]=f)}function rN(e,t,n,i,l,s,u){var f,h,d=new Map,p=t.length,m=s.length,v=new Array(p),x;for(f=0;f<p;++f)(h=t[f])&&(v[f]=x=u.call(h,h.__data__,f,t)+"",d.has(x)?l[f]=h:d.set(x,h));for(f=0;f<m;++f)x=u.call(e,s[f],f,s)+"",(h=d.get(x))?(i[f]=h,h.__data__=s[f],d.delete(x)):n[f]=new oc(e,s[f]);for(f=0;f<p;++f)(h=t[f])&&d.get(v[f])===h&&(l[f]=h)}function iN(e){return e.__data__}function aN(e,t){if(!arguments.length)return Array.from(this,iN);var n=t?rN:nN,i=this._parents,l=this._groups;typeof e!="function"&&(e=tN(e));for(var s=l.length,u=new Array(s),f=new Array(s),h=new Array(s),d=0;d<s;++d){var p=i[d],m=l[d],v=m.length,x=lN(e.call(p,p&&p.__data__,d,i)),w=x.length,A=f[d]=new Array(w),C=u[d]=new Array(w),E=h[d]=new Array(v);n(p,m,A,C,E,x,t);for(var D=0,T=0,B,U;D<w;++D)if(B=A[D]){for(D>=T&&(T=D+1);!(U=C[T])&&++T<w;);B._next=U||null}}return u=new lr(u,i),u._enter=f,u._exit=h,u}function lN(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function oN(){return new lr(this._exit||this._groups.map(o8),this._parents)}function sN(e,t,n){var i=this.enter(),l=this,s=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(l=t(l),l&&(l=l.selection())),n==null?s.remove():n(s),i&&l?i.merge(l).order():l}function uN(e){for(var t=e.selection?e.selection():e,n=this._groups,i=t._groups,l=n.length,s=i.length,u=Math.min(l,s),f=new Array(l),h=0;h<u;++h)for(var d=n[h],p=i[h],m=d.length,v=f[h]=new Array(m),x,w=0;w<m;++w)(x=d[w]||p[w])&&(v[w]=x);for(;h<l;++h)f[h]=n[h];return new lr(f,this._parents)}function cN(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i=e[t],l=i.length-1,s=i[l],u;--l>=0;)(u=i[l])&&(s&&u.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(u,s),s=u);return this}function fN(e){e||(e=hN);function t(m,v){return m&&v?e(m.__data__,v.__data__):!m-!v}for(var n=this._groups,i=n.length,l=new Array(i),s=0;s<i;++s){for(var u=n[s],f=u.length,h=l[s]=new Array(f),d,p=0;p<f;++p)(d=u[p])&&(h[p]=d);h.sort(t)}return new lr(l,this._parents).order()}function hN(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function dN(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function mN(){return Array.from(this)}function pN(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],l=0,s=i.length;l<s;++l){var u=i[l];if(u)return u}return null}function gN(){let e=0;for(const t of this)++e;return e}function yN(){return!this.node()}function vN(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var l=t[n],s=0,u=l.length,f;s<u;++s)(f=l[s])&&e.call(f,f.__data__,s,l);return this}function xN(e){return function(){this.removeAttribute(e)}}function bN(e){return function(){this.removeAttributeNS(e.space,e.local)}}function wN(e,t){return function(){this.setAttribute(e,t)}}function SN(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function kN(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function EN(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function AN(e,t){var n=jc(e);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((t==null?n.local?bN:xN:typeof t=="function"?n.local?EN:kN:n.local?SN:wN)(n,t))}function s8(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function CN(e){return function(){this.style.removeProperty(e)}}function TN(e,t,n){return function(){this.style.setProperty(e,t,n)}}function MN(e,t,n){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function zN(e,t,n){return arguments.length>1?this.each((t==null?CN:typeof t=="function"?MN:TN)(e,t,n??"")):lo(this.node(),e)}function lo(e,t){return e.style.getPropertyValue(t)||s8(e).getComputedStyle(e,null).getPropertyValue(t)}function NN(e){return function(){delete this[e]}}function DN(e,t){return function(){this[e]=t}}function _N(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function ON(e,t){return arguments.length>1?this.each((t==null?NN:typeof t=="function"?_N:DN)(e,t)):this.node()[e]}function u8(e){return e.trim().split(/^|\s+/)}function Bm(e){return e.classList||new c8(e)}function c8(e){this._node=e,this._names=u8(e.getAttribute("class")||"")}c8.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function f8(e,t){for(var n=Bm(e),i=-1,l=t.length;++i<l;)n.add(t[i])}function h8(e,t){for(var n=Bm(e),i=-1,l=t.length;++i<l;)n.remove(t[i])}function RN(e){return function(){f8(this,e)}}function BN(e){return function(){h8(this,e)}}function LN(e,t){return function(){(t.apply(this,arguments)?f8:h8)(this,e)}}function HN(e,t){var n=u8(e+"");if(arguments.length<2){for(var i=Bm(this.node()),l=-1,s=n.length;++l<s;)if(!i.contains(n[l]))return!1;return!0}return this.each((typeof t=="function"?LN:t?RN:BN)(n,t))}function jN(){this.textContent=""}function qN(e){return function(){this.textContent=e}}function IN(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function UN(e){return arguments.length?this.each(e==null?jN:(typeof e=="function"?IN:qN)(e)):this.node().textContent}function FN(){this.innerHTML=""}function VN(e){return function(){this.innerHTML=e}}function YN(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function GN(e){return arguments.length?this.each(e==null?FN:(typeof e=="function"?YN:VN)(e)):this.node().innerHTML}function $N(){this.nextSibling&&this.parentNode.appendChild(this)}function XN(){return this.each($N)}function PN(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ZN(){return this.each(PN)}function QN(e){var t=typeof e=="function"?e:r8(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function KN(){return null}function JN(e,t){var n=typeof e=="function"?e:r8(e),i=t==null?KN:typeof t=="function"?t:Rm(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function WN(){var e=this.parentNode;e&&e.removeChild(this)}function eD(){return this.each(WN)}function tD(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function nD(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function rD(e){return this.select(e?nD:tD)}function iD(e){return arguments.length?this.property("__data__",e):this.node().__data__}function aD(e){return function(t){e.call(this,t,this.__data__)}}function lD(e){return e.trim().split(/^|\s+/).map(function(t){var n="",i=t.indexOf(".");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{type:t,name:n}})}function oD(e){return function(){var t=this.__on;if(t){for(var n=0,i=-1,l=t.length,s;n<l;++n)s=t[n],(!e.type||s.type===e.type)&&s.name===e.name?this.removeEventListener(s.type,s.listener,s.options):t[++i]=s;++i?t.length=i:delete this.__on}}}function sD(e,t,n){return function(){var i=this.__on,l,s=aD(t);if(i){for(var u=0,f=i.length;u<f;++u)if((l=i[u]).type===e.type&&l.name===e.name){this.removeEventListener(l.type,l.listener,l.options),this.addEventListener(l.type,l.listener=s,l.options=n),l.value=t;return}}this.addEventListener(e.type,s,n),l={type:e.type,name:e.name,value:t,listener:s,options:n},i?i.push(l):this.__on=[l]}}function uD(e,t,n){var i=lD(e+""),l,s=i.length,u;if(arguments.length<2){var f=this.node().__on;if(f){for(var h=0,d=f.length,p;h<d;++h)for(l=0,p=f[h];l<s;++l)if((u=i[l]).type===p.type&&u.name===p.name)return p.value}return}for(f=t?sD:oD,l=0;l<s;++l)this.each(f(i[l],t,n));return this}function d8(e,t,n){var i=s8(e),l=i.CustomEvent;typeof l=="function"?l=new l(t,n):(l=i.document.createEvent("Event"),n?(l.initEvent(t,n.bubbles,n.cancelable),l.detail=n.detail):l.initEvent(t,!1,!1)),e.dispatchEvent(l)}function cD(e,t){return function(){return d8(this,e,t)}}function fD(e,t){return function(){return d8(this,e,t.apply(this,arguments))}}function hD(e,t){return this.each((typeof t=="function"?fD:cD)(e,t))}function*dD(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],l=0,s=i.length,u;l<s;++l)(u=i[l])&&(yield u)}var m8=[null];function lr(e,t){this._groups=e,this._parents=t}function Js(){return new lr([[document.documentElement]],m8)}function mD(){return this}lr.prototype=Js.prototype={constructor:lr,select:Iz,selectAll:Yz,selectChild:Pz,selectChildren:Jz,filter:Wz,data:aN,enter:eN,exit:oN,join:sN,merge:uN,selection:mD,order:cN,sort:fN,call:dN,nodes:mN,node:pN,size:gN,empty:yN,each:vN,attr:AN,style:zN,property:ON,classed:HN,text:UN,html:GN,raise:XN,lower:ZN,append:QN,insert:JN,remove:eD,clone:rD,datum:iD,on:uD,dispatch:hD,[Symbol.iterator]:dD};function nr(e){return typeof e=="string"?new lr([[document.querySelector(e)]],[document.documentElement]):new lr([[e]],m8)}function pD(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Cr(e,t){if(e=pD(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,i=i.matrixTransform(t.getScreenCTM().inverse()),[i.x,i.y]}if(t.getBoundingClientRect){var l=t.getBoundingClientRect();return[e.clientX-l.left-t.clientLeft,e.clientY-l.top-t.clientTop]}}return[e.pageX,e.pageY]}const gD={passive:!1},Bs={capture:!0,passive:!1};function Xd(e){e.stopImmediatePropagation()}function eo(e){e.preventDefault(),e.stopImmediatePropagation()}function p8(e){var t=e.document.documentElement,n=nr(e).on("dragstart.drag",eo,Bs);"onselectstart"in t?n.on("selectstart.drag",eo,Bs):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function g8(e,t){var n=e.document.documentElement,i=nr(e).on("dragstart.drag",null);t&&(i.on("click.drag",eo,Bs),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const R0=e=>()=>e;function j1(e,{sourceEvent:t,subject:n,target:i,identifier:l,active:s,x:u,y:f,dx:h,dy:d,dispatch:p}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:l,enumerable:!0,configurable:!0},active:{value:s,enumerable:!0,configurable:!0},x:{value:u,enumerable:!0,configurable:!0},y:{value:f,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:d,enumerable:!0,configurable:!0},_:{value:p}})}j1.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function yD(e){return!e.ctrlKey&&!e.button}function vD(){return this.parentNode}function xD(e,t){return t??{x:e.x,y:e.y}}function bD(){return navigator.maxTouchPoints||"ontouchstart"in this}function y8(){var e=yD,t=vD,n=xD,i=bD,l={},s=Hc("start","drag","end"),u=0,f,h,d,p,m=0;function v(B){B.on("mousedown.drag",x).filter(i).on("touchstart.drag",C).on("touchmove.drag",E,gD).on("touchend.drag touchcancel.drag",D).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(B,U){if(!(p||!e.call(this,B,U))){var z=T(this,t.call(this,B,U),B,U,"mouse");z&&(nr(B.view).on("mousemove.drag",w,Bs).on("mouseup.drag",A,Bs),p8(B.view),Xd(B),d=!1,f=B.clientX,h=B.clientY,z("start",B))}}function w(B){if(eo(B),!d){var U=B.clientX-f,z=B.clientY-h;d=U*U+z*z>m}l.mouse("drag",B)}function A(B){nr(B.view).on("mousemove.drag mouseup.drag",null),g8(B.view,d),eo(B),l.mouse("end",B)}function C(B,U){if(e.call(this,B,U)){var z=B.changedTouches,I=t.call(this,B,U),P=z.length,$,V;for($=0;$<P;++$)(V=T(this,I,B,U,z[$].identifier,z[$]))&&(Xd(B),V("start",B,z[$]))}}function E(B){var U=B.changedTouches,z=U.length,I,P;for(I=0;I<z;++I)(P=l[U[I].identifier])&&(eo(B),P("drag",B,U[I]))}function D(B){var U=B.changedTouches,z=U.length,I,P;for(p&&clearTimeout(p),p=setTimeout(function(){p=null},500),I=0;I<z;++I)(P=l[U[I].identifier])&&(Xd(B),P("end",B,U[I]))}function T(B,U,z,I,P,$){var V=s.copy(),G=Cr($||z,U),W,ce,q;if((q=n.call(B,new j1("beforestart",{sourceEvent:z,target:v,identifier:P,active:u,x:G[0],y:G[1],dx:0,dy:0,dispatch:V}),I))!=null)return W=q.x-G[0]||0,ce=q.y-G[1]||0,function F(L,Y,J){var ne=G,R;switch(L){case"start":l[P]=F,R=u++;break;case"end":delete l[P],--u;case"drag":G=Cr(J||Y,U),R=u;break}V.call(L,B,new j1(L,{sourceEvent:Y,subject:q,target:v,identifier:P,active:R,x:G[0]+W,y:G[1]+ce,dx:G[0]-ne[0],dy:G[1]-ne[1],dispatch:V}),I)}}return v.filter=function(B){return arguments.length?(e=typeof B=="function"?B:R0(!!B),v):e},v.container=function(B){return arguments.length?(t=typeof B=="function"?B:R0(B),v):t},v.subject=function(B){return arguments.length?(n=typeof B=="function"?B:R0(B),v):n},v.touchable=function(B){return arguments.length?(i=typeof B=="function"?B:R0(!!B),v):i},v.on=function(){var B=s.on.apply(s,arguments);return B===s?v:B},v.clickDistance=function(B){return arguments.length?(m=(B=+B)*B,v):Math.sqrt(m)},v}function Lm(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function v8(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Ws(){}var Ls=.7,sc=1/Ls,to="\\s*([+-]?\\d+)\\s*",Hs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Fr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",wD=/^#([0-9a-f]{3,8})$/,SD=new RegExp(`^rgb\\(${to},${to},${to}\\)$`),kD=new RegExp(`^rgb\\(${Fr},${Fr},${Fr}\\)$`),ED=new RegExp(`^rgba\\(${to},${to},${to},${Hs}\\)$`),AD=new RegExp(`^rgba\\(${Fr},${Fr},${Fr},${Hs}\\)$`),CD=new RegExp(`^hsl\\(${Hs},${Fr},${Fr}\\)$`),TD=new RegExp(`^hsla\\(${Hs},${Fr},${Fr},${Hs}\\)$`),L5={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Lm(Ws,Ka,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:H5,formatHex:H5,formatHex8:MD,formatHsl:zD,formatRgb:j5,toString:j5});function H5(){return this.rgb().formatHex()}function MD(){return this.rgb().formatHex8()}function zD(){return x8(this).formatHsl()}function j5(){return this.rgb().formatRgb()}function Ka(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=wD.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?q5(t):n===3?new Yn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?B0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?B0(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=SD.exec(e))?new Yn(t[1],t[2],t[3],1):(t=kD.exec(e))?new Yn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=ED.exec(e))?B0(t[1],t[2],t[3],t[4]):(t=AD.exec(e))?B0(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=CD.exec(e))?F5(t[1],t[2]/100,t[3]/100,1):(t=TD.exec(e))?F5(t[1],t[2]/100,t[3]/100,t[4]):L5.hasOwnProperty(e)?q5(L5[e]):e==="transparent"?new Yn(NaN,NaN,NaN,0):null}function q5(e){return new Yn(e>>16&255,e>>8&255,e&255,1)}function B0(e,t,n,i){return i<=0&&(e=t=n=NaN),new Yn(e,t,n,i)}function ND(e){return e instanceof Ws||(e=Ka(e)),e?(e=e.rgb(),new Yn(e.r,e.g,e.b,e.opacity)):new Yn}function q1(e,t,n,i){return arguments.length===1?ND(e):new Yn(e,t,n,i??1)}function Yn(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}Lm(Yn,q1,v8(Ws,{brighter(e){return e=e==null?sc:Math.pow(sc,e),new Yn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ls:Math.pow(Ls,e),new Yn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Yn(Pa(this.r),Pa(this.g),Pa(this.b),uc(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:I5,formatHex:I5,formatHex8:DD,formatRgb:U5,toString:U5}));function I5(){return`#${Xa(this.r)}${Xa(this.g)}${Xa(this.b)}`}function DD(){return`#${Xa(this.r)}${Xa(this.g)}${Xa(this.b)}${Xa((isNaN(this.opacity)?1:this.opacity)*255)}`}function U5(){const e=uc(this.opacity);return`${e===1?"rgb(":"rgba("}${Pa(this.r)}, ${Pa(this.g)}, ${Pa(this.b)}${e===1?")":`, ${e})`}`}function uc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Pa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Xa(e){return e=Pa(e),(e<16?"0":"")+e.toString(16)}function F5(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Tr(e,t,n,i)}function x8(e){if(e instanceof Tr)return new Tr(e.h,e.s,e.l,e.opacity);if(e instanceof Ws||(e=Ka(e)),!e)return new Tr;if(e instanceof Tr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,l=Math.min(t,n,i),s=Math.max(t,n,i),u=NaN,f=s-l,h=(s+l)/2;return f?(t===s?u=(n-i)/f+(n<i)*6:n===s?u=(i-t)/f+2:u=(t-n)/f+4,f/=h<.5?s+l:2-s-l,u*=60):f=h>0&&h<1?0:u,new Tr(u,f,h,e.opacity)}function _D(e,t,n,i){return arguments.length===1?x8(e):new Tr(e,t,n,i??1)}function Tr(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}Lm(Tr,_D,v8(Ws,{brighter(e){return e=e==null?sc:Math.pow(sc,e),new Tr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ls:Math.pow(Ls,e),new Tr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,l=2*n-i;return new Yn(Pd(e>=240?e-240:e+120,l,i),Pd(e,l,i),Pd(e<120?e+240:e-120,l,i),this.opacity)},clamp(){return new Tr(V5(this.h),L0(this.s),L0(this.l),uc(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=uc(this.opacity);return`${e===1?"hsl(":"hsla("}${V5(this.h)}, ${L0(this.s)*100}%, ${L0(this.l)*100}%${e===1?")":`, ${e})`}`}}));function V5(e){return e=(e||0)%360,e<0?e+360:e}function L0(e){return Math.max(0,Math.min(1,e||0))}function Pd(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Hm=e=>()=>e;function OD(e,t){return function(n){return e+n*t}}function RD(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}function BD(e){return(e=+e)==1?b8:function(t,n){return n-t?RD(t,n,e):Hm(isNaN(t)?n:t)}}function b8(e,t){var n=t-e;return n?OD(e,n):Hm(isNaN(e)?t:e)}const cc=(function e(t){var n=BD(t);function i(l,s){var u=n((l=q1(l)).r,(s=q1(s)).r),f=n(l.g,s.g),h=n(l.b,s.b),d=b8(l.opacity,s.opacity);return function(p){return l.r=u(p),l.g=f(p),l.b=h(p),l.opacity=d(p),l+""}}return i.gamma=e,i})(1);function LD(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,i=t.slice(),l;return function(s){for(l=0;l<n;++l)i[l]=e[l]*(1-s)+t[l]*s;return i}}function HD(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function jD(e,t){var n=t?t.length:0,i=e?Math.min(n,e.length):0,l=new Array(i),s=new Array(n),u;for(u=0;u<i;++u)l[u]=Ts(e[u],t[u]);for(;u<n;++u)s[u]=t[u];return function(f){for(u=0;u<i;++u)s[u]=l[u](f);return s}}function qD(e,t){var n=new Date;return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function Ir(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function ID(e,t){var n={},i={},l;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(l in t)l in e?n[l]=Ts(e[l],t[l]):i[l]=t[l];return function(s){for(l in n)i[l]=n[l](s);return i}}var I1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zd=new RegExp(I1.source,"g");function UD(e){return function(){return e}}function FD(e){return function(t){return e(t)+""}}function w8(e,t){var n=I1.lastIndex=Zd.lastIndex=0,i,l,s,u=-1,f=[],h=[];for(e=e+"",t=t+"";(i=I1.exec(e))&&(l=Zd.exec(t));)(s=l.index)>n&&(s=t.slice(n,s),f[u]?f[u]+=s:f[++u]=s),(i=i[0])===(l=l[0])?f[u]?f[u]+=l:f[++u]=l:(f[++u]=null,h.push({i:u,x:Ir(i,l)})),n=Zd.lastIndex;return n<t.length&&(s=t.slice(n),f[u]?f[u]+=s:f[++u]=s),f.length<2?h[0]?FD(h[0].x):UD(t):(t=h.length,function(d){for(var p=0,m;p<t;++p)f[(m=h[p]).i]=m.x(d);return f.join("")})}function Ts(e,t){var n=typeof t,i;return t==null||n==="boolean"?Hm(t):(n==="number"?Ir:n==="string"?(i=Ka(t))?(t=i,cc):w8:t instanceof Ka?cc:t instanceof Date?qD:HD(t)?LD:Array.isArray(t)?jD:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?ID:Ir)(e,t)}var Y5=180/Math.PI,U1={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function S8(e,t,n,i,l,s){var u,f,h;return(u=Math.sqrt(e*e+t*t))&&(e/=u,t/=u),(h=e*n+t*i)&&(n-=e*h,i-=t*h),(f=Math.sqrt(n*n+i*i))&&(n/=f,i/=f,h/=f),e*i<t*n&&(e=-e,t=-t,h=-h,u=-u),{translateX:l,translateY:s,rotate:Math.atan2(t,e)*Y5,skewX:Math.atan(h)*Y5,scaleX:u,scaleY:f}}var H0;function VD(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?U1:S8(t.a,t.b,t.c,t.d,t.e,t.f)}function YD(e){return e==null||(H0||(H0=document.createElementNS("http://www.w3.org/2000/svg","g")),H0.setAttribute("transform",e),!(e=H0.transform.baseVal.consolidate()))?U1:(e=e.matrix,S8(e.a,e.b,e.c,e.d,e.e,e.f))}function k8(e,t,n,i){function l(d){return d.length?d.pop()+" ":""}function s(d,p,m,v,x,w){if(d!==m||p!==v){var A=x.push("translate(",null,t,null,n);w.push({i:A-4,x:Ir(d,m)},{i:A-2,x:Ir(p,v)})}else(m||v)&&x.push("translate("+m+t+v+n)}function u(d,p,m,v){d!==p?(d-p>180?p+=360:p-d>180&&(d+=360),v.push({i:m.push(l(m)+"rotate(",null,i)-2,x:Ir(d,p)})):p&&m.push(l(m)+"rotate("+p+i)}function f(d,p,m,v){d!==p?v.push({i:m.push(l(m)+"skewX(",null,i)-2,x:Ir(d,p)}):p&&m.push(l(m)+"skewX("+p+i)}function h(d,p,m,v,x,w){if(d!==m||p!==v){var A=x.push(l(x)+"scale(",null,",",null,")");w.push({i:A-4,x:Ir(d,m)},{i:A-2,x:Ir(p,v)})}else(m!==1||v!==1)&&x.push(l(x)+"scale("+m+","+v+")")}return function(d,p){var m=[],v=[];return d=e(d),p=e(p),s(d.translateX,d.translateY,p.translateX,p.translateY,m,v),u(d.rotate,p.rotate,m,v),f(d.skewX,p.skewX,m,v),h(d.scaleX,d.scaleY,p.scaleX,p.scaleY,m,v),d=p=null,function(x){for(var w=-1,A=v.length,C;++w<A;)m[(C=v[w]).i]=C.x(x);return m.join("")}}}var GD=k8(VD,"px, ","px)","deg)"),$D=k8(YD,", ",")",")"),XD=1e-12;function G5(e){return((e=Math.exp(e))+1/e)/2}function PD(e){return((e=Math.exp(e))-1/e)/2}function ZD(e){return((e=Math.exp(2*e))-1)/(e+1)}const X0=(function e(t,n,i){function l(s,u){var f=s[0],h=s[1],d=s[2],p=u[0],m=u[1],v=u[2],x=p-f,w=m-h,A=x*x+w*w,C,E;if(A<XD)E=Math.log(v/d)/t,C=function(I){return[f+I*x,h+I*w,d*Math.exp(t*I*E)]};else{var D=Math.sqrt(A),T=(v*v-d*d+i*A)/(2*d*n*D),B=(v*v-d*d-i*A)/(2*v*n*D),U=Math.log(Math.sqrt(T*T+1)-T),z=Math.log(Math.sqrt(B*B+1)-B);E=(z-U)/t,C=function(I){var P=I*E,$=G5(U),V=d/(n*D)*($*ZD(t*P+U)-PD(U));return[f+V*x,h+V*w,d*$/G5(t*P+U)]}}return C.duration=E*1e3*t/Math.SQRT2,C}return l.rho=function(s){var u=Math.max(.001,+s),f=u*u,h=f*f;return e(u,f,h)},l})(Math.SQRT2,2,4);var oo=0,ws=0,vs=0,E8=1e3,fc,Ss,hc=0,Ja=0,qc=0,js=typeof performance=="object"&&performance.now?performance:Date,A8=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function jm(){return Ja||(A8(QD),Ja=js.now()+qc)}function QD(){Ja=0}function dc(){this._call=this._time=this._next=null}dc.prototype=C8.prototype={constructor:dc,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?jm():+n)+(t==null?0:+t),!this._next&&Ss!==this&&(Ss?Ss._next=this:fc=this,Ss=this),this._call=e,this._time=n,F1()},stop:function(){this._call&&(this._call=null,this._time=1/0,F1())}};function C8(e,t,n){var i=new dc;return i.restart(e,t,n),i}function KD(){jm(),++oo;for(var e=fc,t;e;)(t=Ja-e._time)>=0&&e._call.call(void 0,t),e=e._next;--oo}function $5(){Ja=(hc=js.now())+qc,oo=ws=0;try{KD()}finally{oo=0,WD(),Ja=0}}function JD(){var e=js.now(),t=e-hc;t>E8&&(qc-=t,hc=e)}function WD(){for(var e,t=fc,n,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:fc=n);Ss=e,F1(i)}function F1(e){if(!oo){ws&&(ws=clearTimeout(ws));var t=e-Ja;t>24?(e<1/0&&(ws=setTimeout($5,e-js.now()-qc)),vs&&(vs=clearInterval(vs))):(vs||(hc=js.now(),vs=setInterval(JD,E8)),oo=1,A8($5))}}function X5(e,t,n){var i=new dc;return t=t==null?0:+t,i.restart(l=>{i.stop(),e(l+t)},t,n),i}var e_=Hc("start","end","cancel","interrupt"),t_=[],T8=0,P5=1,V1=2,P0=3,Z5=4,Y1=5,Z0=6;function Ic(e,t,n,i,l,s){var u=e.__transition;if(!u)e.__transition={};else if(n in u)return;n_(e,n,{name:t,index:i,group:l,on:e_,tween:t_,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:T8})}function qm(e,t){var n=Dr(e,t);if(n.state>T8)throw new Error("too late; already scheduled");return n}function Pr(e,t){var n=Dr(e,t);if(n.state>P0)throw new Error("too late; already running");return n}function Dr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function n_(e,t,n){var i=e.__transition,l;i[t]=n,n.timer=C8(s,0,n.time);function s(d){n.state=P5,n.timer.restart(u,n.delay,n.time),n.delay<=d&&u(d-n.delay)}function u(d){var p,m,v,x;if(n.state!==P5)return h();for(p in i)if(x=i[p],x.name===n.name){if(x.state===P0)return X5(u);x.state===Z5?(x.state=Z0,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete i[p]):+p<t&&(x.state=Z0,x.timer.stop(),x.on.call("cancel",e,e.__data__,x.index,x.group),delete i[p])}if(X5(function(){n.state===P0&&(n.state=Z5,n.timer.restart(f,n.delay,n.time),f(d))}),n.state=V1,n.on.call("start",e,e.__data__,n.index,n.group),n.state===V1){for(n.state=P0,l=new Array(v=n.tween.length),p=0,m=-1;p<v;++p)(x=n.tween[p].value.call(e,e.__data__,n.index,n.group))&&(l[++m]=x);l.length=m+1}}function f(d){for(var p=d<n.duration?n.ease.call(null,d/n.duration):(n.timer.restart(h),n.state=Y1,1),m=-1,v=l.length;++m<v;)l[m].call(e,p);n.state===Y1&&(n.on.call("end",e,e.__data__,n.index,n.group),h())}function h(){n.state=Z0,n.timer.stop(),delete i[t];for(var d in i)return;delete e.__transition}}function Q0(e,t){var n=e.__transition,i,l,s=!0,u;if(n){t=t==null?null:t+"";for(u in n){if((i=n[u]).name!==t){s=!1;continue}l=i.state>V1&&i.state<Y1,i.state=Z0,i.timer.stop(),i.on.call(l?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete n[u]}s&&delete e.__transition}}function r_(e){return this.each(function(){Q0(this,e)})}function i_(e,t){var n,i;return function(){var l=Pr(this,e),s=l.tween;if(s!==n){i=n=s;for(var u=0,f=i.length;u<f;++u)if(i[u].name===t){i=i.slice(),i.splice(u,1);break}}l.tween=i}}function a_(e,t,n){var i,l;if(typeof n!="function")throw new Error;return function(){var s=Pr(this,e),u=s.tween;if(u!==i){l=(i=u).slice();for(var f={name:t,value:n},h=0,d=l.length;h<d;++h)if(l[h].name===t){l[h]=f;break}h===d&&l.push(f)}s.tween=l}}function l_(e,t){var n=this._id;if(e+="",arguments.length<2){for(var i=Dr(this.node(),n).tween,l=0,s=i.length,u;l<s;++l)if((u=i[l]).name===e)return u.value;return null}return this.each((t==null?i_:a_)(n,e,t))}function Im(e,t,n){var i=e._id;return e.each(function(){var l=Pr(this,i);(l.value||(l.value={}))[t]=n.apply(this,arguments)}),function(l){return Dr(l,i).value[t]}}function M8(e,t){var n;return(typeof t=="number"?Ir:t instanceof Ka?cc:(n=Ka(t))?(t=n,cc):w8)(e,t)}function o_(e){return function(){this.removeAttribute(e)}}function s_(e){return function(){this.removeAttributeNS(e.space,e.local)}}function u_(e,t,n){var i,l=n+"",s;return function(){var u=this.getAttribute(e);return u===l?null:u===i?s:s=t(i=u,n)}}function c_(e,t,n){var i,l=n+"",s;return function(){var u=this.getAttributeNS(e.space,e.local);return u===l?null:u===i?s:s=t(i=u,n)}}function f_(e,t,n){var i,l,s;return function(){var u,f=n(this),h;return f==null?void this.removeAttribute(e):(u=this.getAttribute(e),h=f+"",u===h?null:u===i&&h===l?s:(l=h,s=t(i=u,f)))}}function h_(e,t,n){var i,l,s;return function(){var u,f=n(this),h;return f==null?void this.removeAttributeNS(e.space,e.local):(u=this.getAttributeNS(e.space,e.local),h=f+"",u===h?null:u===i&&h===l?s:(l=h,s=t(i=u,f)))}}function d_(e,t){var n=jc(e),i=n==="transform"?$D:M8;return this.attrTween(e,typeof t=="function"?(n.local?h_:f_)(n,i,Im(this,"attr."+e,t)):t==null?(n.local?s_:o_)(n):(n.local?c_:u_)(n,i,t))}function m_(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function p_(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function g_(e,t){var n,i;function l(){var s=t.apply(this,arguments);return s!==i&&(n=(i=s)&&p_(e,s)),n}return l._value=t,l}function y_(e,t){var n,i;function l(){var s=t.apply(this,arguments);return s!==i&&(n=(i=s)&&m_(e,s)),n}return l._value=t,l}function v_(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var i=jc(e);return this.tween(n,(i.local?g_:y_)(i,t))}function x_(e,t){return function(){qm(this,e).delay=+t.apply(this,arguments)}}function b_(e,t){return t=+t,function(){qm(this,e).delay=t}}function w_(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?x_:b_)(t,e)):Dr(this.node(),t).delay}function S_(e,t){return function(){Pr(this,e).duration=+t.apply(this,arguments)}}function k_(e,t){return t=+t,function(){Pr(this,e).duration=t}}function E_(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?S_:k_)(t,e)):Dr(this.node(),t).duration}function A_(e,t){if(typeof t!="function")throw new Error;return function(){Pr(this,e).ease=t}}function C_(e){var t=this._id;return arguments.length?this.each(A_(t,e)):Dr(this.node(),t).ease}function T_(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Pr(this,e).ease=n}}function M_(e){if(typeof e!="function")throw new Error;return this.each(T_(this._id,e))}function z_(e){typeof e!="function"&&(e=a8(e));for(var t=this._groups,n=t.length,i=new Array(n),l=0;l<n;++l)for(var s=t[l],u=s.length,f=i[l]=[],h,d=0;d<u;++d)(h=s[d])&&e.call(h,h.__data__,d,s)&&f.push(h);return new Si(i,this._parents,this._name,this._id)}function N_(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,i=t.length,l=n.length,s=Math.min(i,l),u=new Array(i),f=0;f<s;++f)for(var h=t[f],d=n[f],p=h.length,m=u[f]=new Array(p),v,x=0;x<p;++x)(v=h[x]||d[x])&&(m[x]=v);for(;f<i;++f)u[f]=t[f];return new Si(u,this._parents,this._name,this._id)}function D_(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function __(e,t,n){var i,l,s=D_(t)?qm:Pr;return function(){var u=s(this,e),f=u.on;f!==i&&(l=(i=f).copy()).on(t,n),u.on=l}}function O_(e,t){var n=this._id;return arguments.length<2?Dr(this.node(),n).on.on(e):this.each(__(n,e,t))}function R_(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function B_(){return this.on("end.remove",R_(this._id))}function L_(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Rm(e));for(var i=this._groups,l=i.length,s=new Array(l),u=0;u<l;++u)for(var f=i[u],h=f.length,d=s[u]=new Array(h),p,m,v=0;v<h;++v)(p=f[v])&&(m=e.call(p,p.__data__,v,f))&&("__data__"in p&&(m.__data__=p.__data__),d[v]=m,Ic(d[v],t,n,v,d,Dr(p,n)));return new Si(s,this._parents,t,n)}function H_(e){var t=this._name,n=this._id;typeof e!="function"&&(e=i8(e));for(var i=this._groups,l=i.length,s=[],u=[],f=0;f<l;++f)for(var h=i[f],d=h.length,p,m=0;m<d;++m)if(p=h[m]){for(var v=e.call(p,p.__data__,m,h),x,w=Dr(p,n),A=0,C=v.length;A<C;++A)(x=v[A])&&Ic(x,t,n,A,v,w);s.push(v),u.push(p)}return new Si(s,u,t,n)}var j_=Js.prototype.constructor;function q_(){return new j_(this._groups,this._parents)}function I_(e,t){var n,i,l;return function(){var s=lo(this,e),u=(this.style.removeProperty(e),lo(this,e));return s===u?null:s===n&&u===i?l:l=t(n=s,i=u)}}function z8(e){return function(){this.style.removeProperty(e)}}function U_(e,t,n){var i,l=n+"",s;return function(){var u=lo(this,e);return u===l?null:u===i?s:s=t(i=u,n)}}function F_(e,t,n){var i,l,s;return function(){var u=lo(this,e),f=n(this),h=f+"";return f==null&&(h=f=(this.style.removeProperty(e),lo(this,e))),u===h?null:u===i&&h===l?s:(l=h,s=t(i=u,f))}}function V_(e,t){var n,i,l,s="style."+t,u="end."+s,f;return function(){var h=Pr(this,e),d=h.on,p=h.value[s]==null?f||(f=z8(t)):void 0;(d!==n||l!==p)&&(i=(n=d).copy()).on(u,l=p),h.on=i}}function Y_(e,t,n){var i=(e+="")=="transform"?GD:M8;return t==null?this.styleTween(e,I_(e,i)).on("end.style."+e,z8(e)):typeof t=="function"?this.styleTween(e,F_(e,i,Im(this,"style."+e,t))).each(V_(this._id,e)):this.styleTween(e,U_(e,i,t),n).on("end.style."+e,null)}function G_(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}function $_(e,t,n){var i,l;function s(){var u=t.apply(this,arguments);return u!==l&&(i=(l=u)&&G_(e,u,n)),i}return s._value=t,s}function X_(e,t,n){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,$_(e,t,n??""))}function P_(e){return function(){this.textContent=e}}function Z_(e){return function(){var t=e(this);this.textContent=t??""}}function Q_(e){return this.tween("text",typeof e=="function"?Z_(Im(this,"text",e)):P_(e==null?"":e+""))}function K_(e){return function(t){this.textContent=e.call(this,t)}}function J_(e){var t,n;function i(){var l=e.apply(this,arguments);return l!==n&&(t=(n=l)&&K_(l)),t}return i._value=e,i}function W_(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,J_(e))}function eO(){for(var e=this._name,t=this._id,n=N8(),i=this._groups,l=i.length,s=0;s<l;++s)for(var u=i[s],f=u.length,h,d=0;d<f;++d)if(h=u[d]){var p=Dr(h,t);Ic(h,e,n,d,u,{time:p.time+p.delay+p.duration,delay:0,duration:p.duration,ease:p.ease})}return new Si(i,this._parents,e,n)}function tO(){var e,t,n=this,i=n._id,l=n.size();return new Promise(function(s,u){var f={value:u},h={value:function(){--l===0&&s()}};n.each(function(){var d=Pr(this,i),p=d.on;p!==e&&(t=(e=p).copy(),t._.cancel.push(f),t._.interrupt.push(f),t._.end.push(h)),d.on=t}),l===0&&s()})}var nO=0;function Si(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function N8(){return++nO}var yi=Js.prototype;Si.prototype={constructor:Si,select:L_,selectAll:H_,selectChild:yi.selectChild,selectChildren:yi.selectChildren,filter:z_,merge:N_,selection:q_,transition:eO,call:yi.call,nodes:yi.nodes,node:yi.node,size:yi.size,empty:yi.empty,each:yi.each,on:O_,attr:d_,attrTween:v_,style:Y_,styleTween:X_,text:Q_,textTween:W_,remove:B_,tween:l_,delay:w_,duration:E_,ease:C_,easeVarying:M_,end:tO,[Symbol.iterator]:yi[Symbol.iterator]};function rO(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var iO={time:null,delay:0,duration:250,ease:rO};function aO(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function lO(e){var t,n;e instanceof Si?(t=e._id,e=e._name):(t=N8(),(n=iO).time=jm(),e=e==null?null:e+"");for(var i=this._groups,l=i.length,s=0;s<l;++s)for(var u=i[s],f=u.length,h,d=0;d<f;++d)(h=u[d])&&Ic(h,e,t,d,u,n||aO(h,t));return new Si(i,this._parents,e,t)}Js.prototype.interrupt=r_;Js.prototype.transition=lO;const j0=e=>()=>e;function oO(e,{sourceEvent:t,target:n,transform:i,dispatch:l}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:l}})}function xi(e,t,n){this.k=e,this.x=t,this.y=n}xi.prototype={constructor:xi,scale:function(e){return e===1?this:new xi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new xi(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Uc=new xi(1,0,0);D8.prototype=xi.prototype;function D8(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Uc;return e.__zoom}function Qd(e){e.stopImmediatePropagation()}function xs(e){e.preventDefault(),e.stopImmediatePropagation()}function sO(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function uO(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Q5(){return this.__zoom||Uc}function cO(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function fO(){return navigator.maxTouchPoints||"ontouchstart"in this}function hO(e,t,n){var i=e.invertX(t[0][0])-n[0][0],l=e.invertX(t[1][0])-n[1][0],s=e.invertY(t[0][1])-n[0][1],u=e.invertY(t[1][1])-n[1][1];return e.translate(l>i?(i+l)/2:Math.min(0,i)||Math.max(0,l),u>s?(s+u)/2:Math.min(0,s)||Math.max(0,u))}function _8(){var e=sO,t=uO,n=hO,i=cO,l=fO,s=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],f=250,h=X0,d=Hc("start","zoom","end"),p,m,v,x=500,w=150,A=0,C=10;function E(q){q.property("__zoom",Q5).on("wheel.zoom",P,{passive:!1}).on("mousedown.zoom",$).on("dblclick.zoom",V).filter(l).on("touchstart.zoom",G).on("touchmove.zoom",W).on("touchend.zoom touchcancel.zoom",ce).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}E.transform=function(q,F,L,Y){var J=q.selection?q.selection():q;J.property("__zoom",Q5),q!==J?U(q,F,L,Y):J.interrupt().each(function(){z(this,arguments).event(Y).start().zoom(null,typeof F=="function"?F.apply(this,arguments):F).end()})},E.scaleBy=function(q,F,L,Y){E.scaleTo(q,function(){var J=this.__zoom.k,ne=typeof F=="function"?F.apply(this,arguments):F;return J*ne},L,Y)},E.scaleTo=function(q,F,L,Y){E.transform(q,function(){var J=t.apply(this,arguments),ne=this.__zoom,R=L==null?B(J):typeof L=="function"?L.apply(this,arguments):L,j=ne.invert(R),Q=typeof F=="function"?F.apply(this,arguments):F;return n(T(D(ne,Q),R,j),J,u)},L,Y)},E.translateBy=function(q,F,L,Y){E.transform(q,function(){return n(this.__zoom.translate(typeof F=="function"?F.apply(this,arguments):F,typeof L=="function"?L.apply(this,arguments):L),t.apply(this,arguments),u)},null,Y)},E.translateTo=function(q,F,L,Y,J){E.transform(q,function(){var ne=t.apply(this,arguments),R=this.__zoom,j=Y==null?B(ne):typeof Y=="function"?Y.apply(this,arguments):Y;return n(Uc.translate(j[0],j[1]).scale(R.k).translate(typeof F=="function"?-F.apply(this,arguments):-F,typeof L=="function"?-L.apply(this,arguments):-L),ne,u)},Y,J)};function D(q,F){return F=Math.max(s[0],Math.min(s[1],F)),F===q.k?q:new xi(F,q.x,q.y)}function T(q,F,L){var Y=F[0]-L[0]*q.k,J=F[1]-L[1]*q.k;return Y===q.x&&J===q.y?q:new xi(q.k,Y,J)}function B(q){return[(+q[0][0]+ +q[1][0])/2,(+q[0][1]+ +q[1][1])/2]}function U(q,F,L,Y){q.on("start.zoom",function(){z(this,arguments).event(Y).start()}).on("interrupt.zoom end.zoom",function(){z(this,arguments).event(Y).end()}).tween("zoom",function(){var J=this,ne=arguments,R=z(J,ne).event(Y),j=t.apply(J,ne),Q=L==null?B(j):typeof L=="function"?L.apply(J,ne):L,_=Math.max(j[1][0]-j[0][0],j[1][1]-j[0][1]),se=J.__zoom,ve=typeof F=="function"?F.apply(J,ne):F,be=h(se.invert(Q).concat(_/se.k),ve.invert(Q).concat(_/ve.k));return function(we){if(we===1)we=ve;else{var ge=be(we),ke=_/ge[2];we=new xi(ke,Q[0]-ge[0]*ke,Q[1]-ge[1]*ke)}R.zoom(null,we)}})}function z(q,F,L){return!L&&q.__zooming||new I(q,F)}function I(q,F){this.that=q,this.args=F,this.active=0,this.sourceEvent=null,this.extent=t.apply(q,F),this.taps=0}I.prototype={event:function(q){return q&&(this.sourceEvent=q),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(q,F){return this.mouse&&q!=="mouse"&&(this.mouse[1]=F.invert(this.mouse[0])),this.touch0&&q!=="touch"&&(this.touch0[1]=F.invert(this.touch0[0])),this.touch1&&q!=="touch"&&(this.touch1[1]=F.invert(this.touch1[0])),this.that.__zoom=F,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(q){var F=nr(this.that).datum();d.call(q,this.that,new oO(q,{sourceEvent:this.sourceEvent,target:E,transform:this.that.__zoom,dispatch:d}),F)}};function P(q,...F){if(!e.apply(this,arguments))return;var L=z(this,F).event(q),Y=this.__zoom,J=Math.max(s[0],Math.min(s[1],Y.k*Math.pow(2,i.apply(this,arguments)))),ne=Cr(q);if(L.wheel)(L.mouse[0][0]!==ne[0]||L.mouse[0][1]!==ne[1])&&(L.mouse[1]=Y.invert(L.mouse[0]=ne)),clearTimeout(L.wheel);else{if(Y.k===J)return;L.mouse=[ne,Y.invert(ne)],Q0(this),L.start()}xs(q),L.wheel=setTimeout(R,w),L.zoom("mouse",n(T(D(Y,J),L.mouse[0],L.mouse[1]),L.extent,u));function R(){L.wheel=null,L.end()}}function $(q,...F){if(v||!e.apply(this,arguments))return;var L=q.currentTarget,Y=z(this,F,!0).event(q),J=nr(q.view).on("mousemove.zoom",Q,!0).on("mouseup.zoom",_,!0),ne=Cr(q,L),R=q.clientX,j=q.clientY;p8(q.view),Qd(q),Y.mouse=[ne,this.__zoom.invert(ne)],Q0(this),Y.start();function Q(se){if(xs(se),!Y.moved){var ve=se.clientX-R,be=se.clientY-j;Y.moved=ve*ve+be*be>A}Y.event(se).zoom("mouse",n(T(Y.that.__zoom,Y.mouse[0]=Cr(se,L),Y.mouse[1]),Y.extent,u))}function _(se){J.on("mousemove.zoom mouseup.zoom",null),g8(se.view,Y.moved),xs(se),Y.event(se).end()}}function V(q,...F){if(e.apply(this,arguments)){var L=this.__zoom,Y=Cr(q.changedTouches?q.changedTouches[0]:q,this),J=L.invert(Y),ne=L.k*(q.shiftKey?.5:2),R=n(T(D(L,ne),Y,J),t.apply(this,F),u);xs(q),f>0?nr(this).transition().duration(f).call(U,R,Y,q):nr(this).call(E.transform,R,Y,q)}}function G(q,...F){if(e.apply(this,arguments)){var L=q.touches,Y=L.length,J=z(this,F,q.changedTouches.length===Y).event(q),ne,R,j,Q;for(Qd(q),R=0;R<Y;++R)j=L[R],Q=Cr(j,this),Q=[Q,this.__zoom.invert(Q),j.identifier],J.touch0?!J.touch1&&J.touch0[2]!==Q[2]&&(J.touch1=Q,J.taps=0):(J.touch0=Q,ne=!0,J.taps=1+!!p);p&&(p=clearTimeout(p)),ne&&(J.taps<2&&(m=Q[0],p=setTimeout(function(){p=null},x)),Q0(this),J.start())}}function W(q,...F){if(this.__zooming){var L=z(this,F).event(q),Y=q.changedTouches,J=Y.length,ne,R,j,Q;for(xs(q),ne=0;ne<J;++ne)R=Y[ne],j=Cr(R,this),L.touch0&&L.touch0[2]===R.identifier?L.touch0[0]=j:L.touch1&&L.touch1[2]===R.identifier&&(L.touch1[0]=j);if(R=L.that.__zoom,L.touch1){var _=L.touch0[0],se=L.touch0[1],ve=L.touch1[0],be=L.touch1[1],we=(we=ve[0]-_[0])*we+(we=ve[1]-_[1])*we,ge=(ge=be[0]-se[0])*ge+(ge=be[1]-se[1])*ge;R=D(R,Math.sqrt(we/ge)),j=[(_[0]+ve[0])/2,(_[1]+ve[1])/2],Q=[(se[0]+be[0])/2,(se[1]+be[1])/2]}else if(L.touch0)j=L.touch0[0],Q=L.touch0[1];else return;L.zoom("touch",n(T(R,j,Q),L.extent,u))}}function ce(q,...F){if(this.__zooming){var L=z(this,F).event(q),Y=q.changedTouches,J=Y.length,ne,R;for(Qd(q),v&&clearTimeout(v),v=setTimeout(function(){v=null},x),ne=0;ne<J;++ne)R=Y[ne],L.touch0&&L.touch0[2]===R.identifier?delete L.touch0:L.touch1&&L.touch1[2]===R.identifier&&delete L.touch1;if(L.touch1&&!L.touch0&&(L.touch0=L.touch1,delete L.touch1),L.touch0)L.touch0[1]=this.__zoom.invert(L.touch0[0]);else if(L.end(),L.taps===2&&(R=Cr(R,this),Math.hypot(m[0]-R[0],m[1]-R[1])<C)){var j=nr(this).on("dblclick.zoom");j&&j.apply(this,arguments)}}}return E.wheelDelta=function(q){return arguments.length?(i=typeof q=="function"?q:j0(+q),E):i},E.filter=function(q){return arguments.length?(e=typeof q=="function"?q:j0(!!q),E):e},E.touchable=function(q){return arguments.length?(l=typeof q=="function"?q:j0(!!q),E):l},E.extent=function(q){return arguments.length?(t=typeof q=="function"?q:j0([[+q[0][0],+q[0][1]],[+q[1][0],+q[1][1]]]),E):t},E.scaleExtent=function(q){return arguments.length?(s[0]=+q[0],s[1]=+q[1],E):[s[0],s[1]]},E.translateExtent=function(q){return arguments.length?(u[0][0]=+q[0][0],u[1][0]=+q[1][0],u[0][1]=+q[0][1],u[1][1]=+q[1][1],E):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},E.constrain=function(q){return arguments.length?(n=q,E):n},E.duration=function(q){return arguments.length?(f=+q,E):f},E.interpolate=function(q){return arguments.length?(h=q,E):h},E.on=function(){var q=d.on.apply(d,arguments);return q===d?E:q},E.clickDistance=function(q){return arguments.length?(A=(q=+q)*q,E):Math.sqrt(A)},E.tapDistance=function(q){return arguments.length?(C=+q,E):C},E}const Vr={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:n,targetHandle:i})=>`Couldn't create edge for ${e} handle id: "${e==="source"?n:i}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},qs=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],O8=["Enter"," ","Escape"],R8={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:n})=>`Moved selected node ${e}. New position, x: ${t}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var so;(function(e){e.Strict="strict",e.Loose="loose"})(so||(so={}));var Za;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(Za||(Za={}));var Is;(function(e){e.Partial="partial",e.Full="full"})(Is||(Is={}));const B8={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var ha;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(ha||(ha={}));var Us;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(Us||(Us={}));var Be;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(Be||(Be={}));const K5={[Be.Left]:Be.Right,[Be.Right]:Be.Left,[Be.Top]:Be.Bottom,[Be.Bottom]:Be.Top};function L8(e){return e===null?null:e?"valid":"invalid"}const H8=e=>"id"in e&&"source"in e&&"target"in e,dO=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),Um=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),eu=(e,t=[0,0])=>{const{width:n,height:i}=Mi(e),l=e.origin??t,s=n*l[0],u=i*l[1];return{x:e.position.x-s,y:e.position.y-u}},mO=(e,t={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const n=e.reduce((i,l)=>{const s=typeof l=="string";let u=!t.nodeLookup&&!s?l:void 0;t.nodeLookup&&(u=s?t.nodeLookup.get(l):Um(l)?l:t.nodeLookup.get(l.id));const f=u?mc(u,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return Fc(i,f)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Vc(n)},tu=(e,t={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},i=!1;return e.forEach(l=>{(t.filter===void 0||t.filter(l))&&(n=Fc(n,mc(l)),i=!0)}),i?Vc(n):{x:0,y:0,width:0,height:0}},Fm=(e,t,[n,i,l]=[0,0,1],s=!1,u=!1)=>{const f={...ru(t,[n,i,l]),width:t.width/l,height:t.height/l},h=[];for(const d of e.values()){const{measured:p,selectable:m=!0,hidden:v=!1}=d;if(u&&!m||v)continue;const x=p.width??d.width??d.initialWidth??null,w=p.height??d.height??d.initialHeight??null,A=Fs(f,co(d)),C=(x??0)*(w??0),E=s&&A>0;(!d.internals.handleBounds||E||A>=C||d.dragging)&&h.push(d)}return h},pO=(e,t)=>{const n=new Set;return e.forEach(i=>{n.add(i.id)}),t.filter(i=>n.has(i.source)||n.has(i.target))};function gO(e,t){const n=new Map,i=t?.nodes?new Set(t.nodes.map(l=>l.id)):null;return e.forEach(l=>{l.measured.width&&l.measured.height&&(t?.includeHiddenNodes||!l.hidden)&&(!i||i.has(l.id))&&n.set(l.id,l)}),n}async function yO({nodes:e,width:t,height:n,panZoom:i,minZoom:l,maxZoom:s},u){if(e.size===0)return Promise.resolve(!0);const f=gO(e,u),h=tu(f),d=Vm(h,t,n,u?.minZoom??l,u?.maxZoom??s,u?.padding??.1);return await i.setViewport(d,{duration:u?.duration,ease:u?.ease,interpolate:u?.interpolate}),Promise.resolve(!0)}function j8({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:i=[0,0],nodeExtent:l,onError:s}){const u=n.get(e),f=u.parentId?n.get(u.parentId):void 0,{x:h,y:d}=f?f.internals.positionAbsolute:{x:0,y:0},p=u.origin??i;let m=u.extent||l;if(u.extent==="parent"&&!u.expandParent)if(!f)s?.("005",Vr.error005());else{const x=f.measured.width,w=f.measured.height;x&&w&&(m=[[h,d],[h+x,d+w]])}else f&&fo(u.extent)&&(m=[[u.extent[0][0]+h,u.extent[0][1]+d],[u.extent[1][0]+h,u.extent[1][1]+d]]);const v=fo(m)?Wa(t,m,u.measured):t;return(u.measured.width===void 0||u.measured.height===void 0)&&s?.("015",Vr.error015()),{position:{x:v.x-h+(u.measured.width??0)*p[0],y:v.y-d+(u.measured.height??0)*p[1]},positionAbsolute:v}}async function vO({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:i,onBeforeDelete:l}){const s=new Set(e.map(v=>v.id)),u=[];for(const v of n){if(v.deletable===!1)continue;const x=s.has(v.id),w=!x&&v.parentId&&u.find(A=>A.id===v.parentId);(x||w)&&u.push(v)}const f=new Set(t.map(v=>v.id)),h=i.filter(v=>v.deletable!==!1),p=pO(u,h);for(const v of h)f.has(v.id)&&!p.find(w=>w.id===v.id)&&p.push(v);if(!l)return{edges:p,nodes:u};const m=await l({nodes:u,edges:p});return typeof m=="boolean"?m?{edges:p,nodes:u}:{edges:[],nodes:[]}:m}const uo=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),Wa=(e={x:0,y:0},t,n)=>({x:uo(e.x,t[0][0],t[1][0]-(n?.width??0)),y:uo(e.y,t[0][1],t[1][1]-(n?.height??0))});function q8(e,t,n){const{width:i,height:l}=Mi(n),{x:s,y:u}=n.internals.positionAbsolute;return Wa(e,[[s,u],[s+i,u+l]],t)}const J5=(e,t,n)=>e<t?uo(Math.abs(e-t),1,t)/t:e>n?-uo(Math.abs(e-n),1,t)/t:0,I8=(e,t,n=15,i=40)=>{const l=J5(e.x,i,t.width-i)*n,s=J5(e.y,i,t.height-i)*n;return[l,s]},Fc=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),G1=({x:e,y:t,width:n,height:i})=>({x:e,y:t,x2:e+n,y2:t+i}),Vc=({x:e,y:t,x2:n,y2:i})=>({x:e,y:t,width:n-e,height:i-t}),co=(e,t=[0,0])=>{const{x:n,y:i}=Um(e)?e.internals.positionAbsolute:eu(e,t);return{x:n,y:i,width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}},mc=(e,t=[0,0])=>{const{x:n,y:i}=Um(e)?e.internals.positionAbsolute:eu(e,t);return{x:n,y:i,x2:n+(e.measured?.width??e.width??e.initialWidth??0),y2:i+(e.measured?.height??e.height??e.initialHeight??0)}},U8=(e,t)=>Vc(Fc(G1(e),G1(t))),Fs=(e,t)=>{const n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),i=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*i)},W5=e=>Mr(e.width)&&Mr(e.height)&&Mr(e.x)&&Mr(e.y),Mr=e=>!isNaN(e)&&isFinite(e),xO=(e,t)=>{},nu=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),ru=({x:e,y:t},[n,i,l],s=!1,u=[1,1])=>{const f={x:(e-n)/l,y:(t-i)/l};return s?nu(f,u):f},pc=({x:e,y:t},[n,i,l])=>({x:e*l+n,y:t*l+i});function Pl(e,t){if(typeof e=="number")return Math.floor((t-t/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(n)}if(typeof e=="string"&&e.endsWith("%")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function bO(e,t,n){if(typeof e=="string"||typeof e=="number"){const i=Pl(e,n),l=Pl(e,t);return{top:i,right:l,bottom:i,left:l,x:l*2,y:i*2}}if(typeof e=="object"){const i=Pl(e.top??e.y??0,n),l=Pl(e.bottom??e.y??0,n),s=Pl(e.left??e.x??0,t),u=Pl(e.right??e.x??0,t);return{top:i,right:u,bottom:l,left:s,x:s+u,y:i+l}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function wO(e,t,n,i,l,s){const{x:u,y:f}=pc(e,[t,n,i]),{x:h,y:d}=pc({x:e.x+e.width,y:e.y+e.height},[t,n,i]),p=l-h,m=s-d;return{left:Math.floor(u),top:Math.floor(f),right:Math.floor(p),bottom:Math.floor(m)}}const Vm=(e,t,n,i,l,s)=>{const u=bO(s,t,n),f=(t-u.x)/e.width,h=(n-u.y)/e.height,d=Math.min(f,h),p=uo(d,i,l),m=e.x+e.width/2,v=e.y+e.height/2,x=t/2-m*p,w=n/2-v*p,A=wO(e,x,w,p,t,n),C={left:Math.min(A.left-u.left,0),top:Math.min(A.top-u.top,0),right:Math.min(A.right-u.right,0),bottom:Math.min(A.bottom-u.bottom,0)};return{x:x-C.left+C.right,y:w-C.top+C.bottom,zoom:p}},Vs=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function fo(e){return e!=null&&e!=="parent"}function Mi(e){return{width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}}function F8(e){return(e.measured?.width??e.width??e.initialWidth)!==void 0&&(e.measured?.height??e.height??e.initialHeight)!==void 0}function V8(e,t={width:0,height:0},n,i,l){const s={...e},u=i.get(n);if(u){const f=u.origin||l;s.x+=u.internals.positionAbsolute.x-(t.width??0)*f[0],s.y+=u.internals.positionAbsolute.y-(t.height??0)*f[1]}return s}function e6(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function SO(){let e,t;return{promise:new Promise((i,l)=>{e=i,t=l}),resolve:e,reject:t}}function kO(e){return{...R8,...e||{}}}function Ms(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:i,containerBounds:l}){const{x:s,y:u}=zr(e),f=ru({x:s-(l?.left??0),y:u-(l?.top??0)},i),{x:h,y:d}=n?nu(f,t):f;return{xSnapped:h,ySnapped:d,...f}}const Ym=e=>({width:e.offsetWidth,height:e.offsetHeight}),Y8=e=>e?.getRootNode?.()||window?.document,EO=["INPUT","SELECT","TEXTAREA"];function G8(e){const t=e.composedPath?.()?.[0]||e.target;return t?.nodeType!==1?!1:EO.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}const $8=e=>"clientX"in e,zr=(e,t)=>{const n=$8(e),i=n?e.clientX:e.touches?.[0].clientX,l=n?e.clientY:e.touches?.[0].clientY;return{x:i-(t?.left??0),y:l-(t?.top??0)}},t6=(e,t,n,i,l)=>{const s=t.querySelectorAll(`.${e}`);return!s||!s.length?null:Array.from(s).map(u=>{const f=u.getBoundingClientRect();return{id:u.getAttribute("data-handleid"),type:e,nodeId:l,position:u.getAttribute("data-handlepos"),x:(f.left-n.left)/i,y:(f.top-n.top)/i,...Ym(u)}})};function X8({sourceX:e,sourceY:t,targetX:n,targetY:i,sourceControlX:l,sourceControlY:s,targetControlX:u,targetControlY:f}){const h=e*.125+l*.375+u*.375+n*.125,d=t*.125+s*.375+f*.375+i*.125,p=Math.abs(h-e),m=Math.abs(d-t);return[h,d,p,m]}function q0(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function n6({pos:e,x1:t,y1:n,x2:i,y2:l,c:s}){switch(e){case Be.Left:return[t-q0(t-i,s),n];case Be.Right:return[t+q0(i-t,s),n];case Be.Top:return[t,n-q0(n-l,s)];case Be.Bottom:return[t,n+q0(l-n,s)]}}function P8({sourceX:e,sourceY:t,sourcePosition:n=Be.Bottom,targetX:i,targetY:l,targetPosition:s=Be.Top,curvature:u=.25}){const[f,h]=n6({pos:n,x1:e,y1:t,x2:i,y2:l,c:u}),[d,p]=n6({pos:s,x1:i,y1:l,x2:e,y2:t,c:u}),[m,v,x,w]=X8({sourceX:e,sourceY:t,targetX:i,targetY:l,sourceControlX:f,sourceControlY:h,targetControlX:d,targetControlY:p});return[`M${e},${t} C${f},${h} ${d},${p} ${i},${l}`,m,v,x,w]}function Z8({sourceX:e,sourceY:t,targetX:n,targetY:i}){const l=Math.abs(n-e)/2,s=n<e?n+l:n-l,u=Math.abs(i-t)/2,f=i<t?i+u:i-u;return[s,f,l,u]}function AO({sourceNode:e,targetNode:t,selected:n=!1,zIndex:i=0,elevateOnSelect:l=!1,zIndexMode:s="basic"}){if(s==="manual")return i;const u=l&&n?i+1e3:i,f=Math.max(e.parentId||l&&e.selected?e.internals.z:0,t.parentId||l&&t.selected?t.internals.z:0);return u+f}function CO({sourceNode:e,targetNode:t,width:n,height:i,transform:l}){const s=Fc(mc(e),mc(t));s.x===s.x2&&(s.x2+=1),s.y===s.y2&&(s.y2+=1);const u={x:-l[0]/l[2],y:-l[1]/l[2],width:n/l[2],height:i/l[2]};return Fs(u,Vc(s))>0}const TO=({source:e,sourceHandle:t,target:n,targetHandle:i})=>`xy-edge__${e}${t||""}-${n}${i||""}`,MO=(e,t)=>t.some(n=>n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle)),zO=(e,t,n={})=>{if(!e.source||!e.target)return t;const i=n.getEdgeId||TO;let l;return H8(e)?l={...e}:l={...e,id:i(e)},MO(l,t)?t:(l.sourceHandle===null&&delete l.sourceHandle,l.targetHandle===null&&delete l.targetHandle,t.concat(l))};function Q8({sourceX:e,sourceY:t,targetX:n,targetY:i}){const[l,s,u,f]=Z8({sourceX:e,sourceY:t,targetX:n,targetY:i});return[`M ${e},${t}L ${n},${i}`,l,s,u,f]}const r6={[Be.Left]:{x:-1,y:0},[Be.Right]:{x:1,y:0},[Be.Top]:{x:0,y:-1},[Be.Bottom]:{x:0,y:1}},NO=({source:e,sourcePosition:t=Be.Bottom,target:n})=>t===Be.Left||t===Be.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},i6=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function DO({source:e,sourcePosition:t=Be.Bottom,target:n,targetPosition:i=Be.Top,center:l,offset:s,stepPosition:u}){const f=r6[t],h=r6[i],d={x:e.x+f.x*s,y:e.y+f.y*s},p={x:n.x+h.x*s,y:n.y+h.y*s},m=NO({source:d,sourcePosition:t,target:p}),v=m.x!==0?"x":"y",x=m[v];let w=[],A,C;const E={x:0,y:0},D={x:0,y:0},[,,T,B]=Z8({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(f[v]*h[v]===-1){v==="x"?(A=l.x??d.x+(p.x-d.x)*u,C=l.y??(d.y+p.y)/2):(A=l.x??(d.x+p.x)/2,C=l.y??d.y+(p.y-d.y)*u);const P=[{x:A,y:d.y},{x:A,y:p.y}],$=[{x:d.x,y:C},{x:p.x,y:C}];f[v]===x?w=v==="x"?P:$:w=v==="x"?$:P}else{const P=[{x:d.x,y:p.y}],$=[{x:p.x,y:d.y}];if(v==="x"?w=f.x===x?$:P:w=f.y===x?P:$,t===i){const q=Math.abs(e[v]-n[v]);if(q<=s){const F=Math.min(s-1,s-q);f[v]===x?E[v]=(d[v]>e[v]?-1:1)*F:D[v]=(p[v]>n[v]?-1:1)*F}}if(t!==i){const q=v==="x"?"y":"x",F=f[v]===h[q],L=d[q]>p[q],Y=d[q]<p[q];(f[v]===1&&(!F&&L||F&&Y)||f[v]!==1&&(!F&&Y||F&&L))&&(w=v==="x"?P:$)}const V={x:d.x+E.x,y:d.y+E.y},G={x:p.x+D.x,y:p.y+D.y},W=Math.max(Math.abs(V.x-w[0].x),Math.abs(G.x-w[0].x)),ce=Math.max(Math.abs(V.y-w[0].y),Math.abs(G.y-w[0].y));W>=ce?(A=(V.x+G.x)/2,C=w[0].y):(A=w[0].x,C=(V.y+G.y)/2)}const U={x:d.x+E.x,y:d.y+E.y},z={x:p.x+D.x,y:p.y+D.y};return[[e,...U.x!==w[0].x||U.y!==w[0].y?[U]:[],...w,...z.x!==w[w.length-1].x||z.y!==w[w.length-1].y?[z]:[],n],A,C,T,B]}function _O(e,t,n,i){const l=Math.min(i6(e,t)/2,i6(t,n)/2,i),{x:s,y:u}=t;if(e.x===s&&s===n.x||e.y===u&&u===n.y)return`L${s} ${u}`;if(e.y===u){const d=e.x<n.x?-1:1,p=e.y<n.y?1:-1;return`L ${s+l*d},${u}Q ${s},${u} ${s},${u+l*p}`}const f=e.x<n.x?1:-1,h=e.y<n.y?-1:1;return`L ${s},${u+l*h}Q ${s},${u} ${s+l*f},${u}`}function $1({sourceX:e,sourceY:t,sourcePosition:n=Be.Bottom,targetX:i,targetY:l,targetPosition:s=Be.Top,borderRadius:u=5,centerX:f,centerY:h,offset:d=20,stepPosition:p=.5}){const[m,v,x,w,A]=DO({source:{x:e,y:t},sourcePosition:n,target:{x:i,y:l},targetPosition:s,center:{x:f,y:h},offset:d,stepPosition:p});let C=`M${m[0].x} ${m[0].y}`;for(let E=1;E<m.length-1;E++)C+=_O(m[E-1],m[E],m[E+1],u);return C+=`L${m[m.length-1].x} ${m[m.length-1].y}`,[C,v,x,w,A]}function a6(e){return e&&!!(e.internals.handleBounds||e.handles?.length)&&!!(e.measured.width||e.width||e.initialWidth)}function OO(e){const{sourceNode:t,targetNode:n}=e;if(!a6(t)||!a6(n))return null;const i=t.internals.handleBounds||l6(t.handles),l=n.internals.handleBounds||l6(n.handles),s=o6(i?.source??[],e.sourceHandle),u=o6(e.connectionMode===so.Strict?l?.target??[]:(l?.target??[]).concat(l?.source??[]),e.targetHandle);if(!s||!u)return e.onError?.("008",Vr.error008(s?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const f=s?.position||Be.Bottom,h=u?.position||Be.Top,d=el(t,s,f),p=el(n,u,h);return{sourceX:d.x,sourceY:d.y,targetX:p.x,targetY:p.y,sourcePosition:f,targetPosition:h}}function l6(e){if(!e)return null;const t=[],n=[];for(const i of e)i.width=i.width??1,i.height=i.height??1,i.type==="source"?t.push(i):i.type==="target"&&n.push(i);return{source:t,target:n}}function el(e,t,n=Be.Left,i=!1){const l=(t?.x??0)+e.internals.positionAbsolute.x,s=(t?.y??0)+e.internals.positionAbsolute.y,{width:u,height:f}=t??Mi(e);if(i)return{x:l+u/2,y:s+f/2};switch(t?.position??n){case Be.Top:return{x:l+u/2,y:s};case Be.Right:return{x:l+u,y:s+f/2};case Be.Bottom:return{x:l+u/2,y:s+f};case Be.Left:return{x:l,y:s+f/2}}}function o6(e,t){return e&&(t?e.find(n=>n.id===t):e[0])||null}function X1(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(i=>`${i}=${e[i]}`).join("&")}`:""}function RO(e,{id:t,defaultColor:n,defaultMarkerStart:i,defaultMarkerEnd:l}){const s=new Set;return e.reduce((u,f)=>([f.markerStart||i,f.markerEnd||l].forEach(h=>{if(h&&typeof h=="object"){const d=X1(h,t);s.has(d)||(u.push({id:d,color:h.color||n,...h}),s.add(d))}}),u),[]).sort((u,f)=>u.id.localeCompare(f.id))}const K8=1e3,BO=10,Gm={nodeOrigin:[0,0],nodeExtent:qs,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},LO={...Gm,checkEquality:!0};function $m(e,t){const n={...e};for(const i in t)t[i]!==void 0&&(n[i]=t[i]);return n}function HO(e,t,n){const i=$m(Gm,n);for(const l of e.values())if(l.parentId)Pm(l,e,t,i);else{const s=eu(l,i.nodeOrigin),u=fo(l.extent)?l.extent:i.nodeExtent,f=Wa(s,u,Mi(l));l.internals.positionAbsolute=f}}function jO(e,t){if(!e.handles)return e.measured?t?.internals.handleBounds:void 0;const n=[],i=[];for(const l of e.handles){const s={id:l.id,width:l.width??1,height:l.height??1,nodeId:e.id,x:l.x,y:l.y,position:l.position,type:l.type};l.type==="source"?n.push(s):l.type==="target"&&i.push(s)}return{source:n,target:i}}function Xm(e){return e==="manual"}function P1(e,t,n,i={}){const l=$m(LO,i),s={i:0},u=new Map(t),f=l?.elevateNodesOnSelect&&!Xm(l.zIndexMode)?K8:0;let h=e.length>0,d=!1;t.clear(),n.clear();for(const p of e){let m=u.get(p.id);if(l.checkEquality&&p===m?.internals.userNode)t.set(p.id,m);else{const v=eu(p,l.nodeOrigin),x=fo(p.extent)?p.extent:l.nodeExtent,w=Wa(v,x,Mi(p));m={...l.defaults,...p,measured:{width:p.measured?.width,height:p.measured?.height},internals:{positionAbsolute:w,handleBounds:jO(p,m),z:J8(p,f,l.zIndexMode),userNode:p}},t.set(p.id,m)}(m.measured===void 0||m.measured.width===void 0||m.measured.height===void 0)&&!m.hidden&&(h=!1),p.parentId&&Pm(m,t,n,i,s),d||=p.selected??!1}return{nodesInitialized:h,hasSelectedNodes:d}}function qO(e,t){if(!e.parentId)return;const n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function Pm(e,t,n,i,l){const{elevateNodesOnSelect:s,nodeOrigin:u,nodeExtent:f,zIndexMode:h}=$m(Gm,i),d=e.parentId,p=t.get(d);if(!p){console.warn(`Parent node ${d} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}qO(e,n),l&&!p.parentId&&p.internals.rootParentIndex===void 0&&h==="auto"&&(p.internals.rootParentIndex=++l.i,p.internals.z=p.internals.z+l.i*BO),l&&p.internals.rootParentIndex!==void 0&&(l.i=p.internals.rootParentIndex);const m=s&&!Xm(h)?K8:0,{x:v,y:x,z:w}=IO(e,p,u,f,m,h),{positionAbsolute:A}=e.internals,C=v!==A.x||x!==A.y;(C||w!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:C?{x:v,y:x}:A,z:w}})}function J8(e,t,n){const i=Mr(e.zIndex)?e.zIndex:0;return Xm(n)?i:i+(e.selected?t:0)}function IO(e,t,n,i,l,s){const{x:u,y:f}=t.internals.positionAbsolute,h=Mi(e),d=eu(e,n),p=fo(e.extent)?Wa(d,e.extent,h):d;let m=Wa({x:u+p.x,y:f+p.y},i,h);e.extent==="parent"&&(m=q8(m,h,t));const v=J8(e,l,s),x=t.internals.z??0;return{x:m.x,y:m.y,z:x>=v?x+1:v}}function Zm(e,t,n,i=[0,0]){const l=[],s=new Map;for(const u of e){const f=t.get(u.parentId);if(!f)continue;const h=s.get(u.parentId)?.expandedRect??co(f),d=U8(h,u.rect);s.set(u.parentId,{expandedRect:d,parent:f})}return s.size>0&&s.forEach(({expandedRect:u,parent:f},h)=>{const d=f.internals.positionAbsolute,p=Mi(f),m=f.origin??i,v=u.x<d.x?Math.round(Math.abs(d.x-u.x)):0,x=u.y<d.y?Math.round(Math.abs(d.y-u.y)):0,w=Math.max(p.width,Math.round(u.width)),A=Math.max(p.height,Math.round(u.height)),C=(w-p.width)*m[0],E=(A-p.height)*m[1];(v>0||x>0||C||E)&&(l.push({id:h,type:"position",position:{x:f.position.x-v+C,y:f.position.y-x+E}}),n.get(h)?.forEach(D=>{e.some(T=>T.id===D.id)||l.push({id:D.id,type:"position",position:{x:D.position.x+v,y:D.position.y+x}})})),(p.width<u.width||p.height<u.height||v||x)&&l.push({id:h,type:"dimensions",setAttributes:!0,dimensions:{width:w+(v?m[0]*v-C:0),height:A+(x?m[1]*x-E:0)}})}),l}function UO(e,t,n,i,l,s,u){const f=i?.querySelector(".xyflow__viewport");let h=!1;if(!f)return{changes:[],updatedInternals:h};const d=[],p=window.getComputedStyle(f),{m22:m}=new window.DOMMatrixReadOnly(p.transform),v=[];for(const x of e.values()){const w=t.get(x.id);if(!w)continue;if(w.hidden){t.set(w.id,{...w,internals:{...w.internals,handleBounds:void 0}}),h=!0;continue}const A=Ym(x.nodeElement),C=w.measured.width!==A.width||w.measured.height!==A.height;if(!!(A.width&&A.height&&(C||!w.internals.handleBounds||x.force))){const D=x.nodeElement.getBoundingClientRect(),T=fo(w.extent)?w.extent:s;let{positionAbsolute:B}=w.internals;w.parentId&&w.extent==="parent"?B=q8(B,A,t.get(w.parentId)):T&&(B=Wa(B,T,A));const U={...w,measured:A,internals:{...w.internals,positionAbsolute:B,handleBounds:{source:t6("source",x.nodeElement,D,m,w.id),target:t6("target",x.nodeElement,D,m,w.id)}}};t.set(w.id,U),w.parentId&&Pm(U,t,n,{nodeOrigin:l,zIndexMode:u}),h=!0,C&&(d.push({id:w.id,type:"dimensions",dimensions:A}),w.expandParent&&w.parentId&&v.push({id:w.id,parentId:w.parentId,rect:co(U,l)}))}}if(v.length>0){const x=Zm(v,t,n,l);d.push(...x)}return{changes:d,updatedInternals:h}}async function FO({delta:e,panZoom:t,transform:n,translateExtent:i,width:l,height:s}){if(!t||!e.x&&!e.y)return Promise.resolve(!1);const u=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[l,s]],i),f=!!u&&(u.x!==n[0]||u.y!==n[1]||u.k!==n[2]);return Promise.resolve(f)}function s6(e,t,n,i,l,s){let u=l;const f=i.get(u)||new Map;i.set(u,f.set(n,t)),u=`${l}-${e}`;const h=i.get(u)||new Map;if(i.set(u,h.set(n,t)),s){u=`${l}-${e}-${s}`;const d=i.get(u)||new Map;i.set(u,d.set(n,t))}}function W8(e,t,n){e.clear(),t.clear();for(const i of n){const{source:l,target:s,sourceHandle:u=null,targetHandle:f=null}=i,h={edgeId:i.id,source:l,target:s,sourceHandle:u,targetHandle:f},d=`${l}-${u}--${s}-${f}`,p=`${s}-${f}--${l}-${u}`;s6("source",h,p,e,l,u),s6("target",h,d,e,s,f),t.set(i.id,i)}}function ev(e,t){if(!e.parentId)return!1;const n=t.get(e.parentId);return n?n.selected?!0:ev(n,t):!1}function u6(e,t,n){let i=e;do{if(i?.matches?.(t))return!0;if(i===n)return!1;i=i?.parentElement}while(i);return!1}function VO(e,t,n,i){const l=new Map;for(const[s,u]of e)if((u.selected||u.id===i)&&(!u.parentId||!ev(u,e))&&(u.draggable||t&&typeof u.draggable>"u")){const f=e.get(s);f&&l.set(s,{id:s,position:f.position||{x:0,y:0},distance:{x:n.x-f.internals.positionAbsolute.x,y:n.y-f.internals.positionAbsolute.y},extent:f.extent,parentId:f.parentId,origin:f.origin,expandParent:f.expandParent,internals:{positionAbsolute:f.internals.positionAbsolute||{x:0,y:0}},measured:{width:f.measured.width??0,height:f.measured.height??0}})}return l}function Kd({nodeId:e,dragItems:t,nodeLookup:n,dragging:i=!0}){const l=[];for(const[u,f]of t){const h=n.get(u)?.internals.userNode;h&&l.push({...h,position:f.position,dragging:i})}if(!e)return[l[0],l];const s=n.get(e)?.internals.userNode;return[s?{...s,position:t.get(e)?.position||s.position,dragging:i}:l[0],l]}function YO({dragItems:e,snapGrid:t,x:n,y:i}){const l=e.values().next().value;if(!l)return null;const s={x:n-l.distance.x,y:i-l.distance.y},u=nu(s,t);return{x:u.x-s.x,y:u.y-s.y}}function GO({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:i,onDragStop:l}){let s={x:null,y:null},u=0,f=new Map,h=!1,d={x:0,y:0},p=null,m=!1,v=null,x=!1,w=!1,A=null;function C({noDragClassName:D,handleSelector:T,domNode:B,isSelectable:U,nodeId:z,nodeClickDistance:I=0}){v=nr(B);function P({x:W,y:ce}){const{nodeLookup:q,nodeExtent:F,snapGrid:L,snapToGrid:Y,nodeOrigin:J,onNodeDrag:ne,onSelectionDrag:R,onError:j,updateNodePositions:Q}=t();s={x:W,y:ce};let _=!1;const se=f.size>1,ve=se&&F?G1(tu(f)):null,be=se&&Y?YO({dragItems:f,snapGrid:L,x:W,y:ce}):null;for(const[we,ge]of f){if(!q.has(we))continue;let ke={x:W-ge.distance.x,y:ce-ge.distance.y};Y&&(ke=be?{x:Math.round(ke.x+be.x),y:Math.round(ke.y+be.y)}:nu(ke,L));let je=null;if(se&&F&&!ge.extent&&ve){const{positionAbsolute:Le}=ge.internals,Ye=Le.x-ve.x+F[0][0],tt=Le.x+ge.measured.width-ve.x2+F[1][0],et=Le.y-ve.y+F[0][1],ht=Le.y+ge.measured.height-ve.y2+F[1][1];je=[[Ye,et],[tt,ht]]}const{position:qe,positionAbsolute:_e}=j8({nodeId:we,nextPosition:ke,nodeLookup:q,nodeExtent:je||F,nodeOrigin:J,onError:j});_=_||ge.position.x!==qe.x||ge.position.y!==qe.y,ge.position=qe,ge.internals.positionAbsolute=_e}if(w=w||_,!!_&&(Q(f,!0),A&&(i||ne||!z&&R))){const[we,ge]=Kd({nodeId:z,dragItems:f,nodeLookup:q});i?.(A,f,we,ge),ne?.(A,we,ge),z||R?.(A,ge)}}async function $(){if(!p)return;const{transform:W,panBy:ce,autoPanSpeed:q,autoPanOnNodeDrag:F}=t();if(!F){h=!1,cancelAnimationFrame(u);return}const[L,Y]=I8(d,p,q);(L!==0||Y!==0)&&(s.x=(s.x??0)-L/W[2],s.y=(s.y??0)-Y/W[2],await ce({x:L,y:Y})&&P(s)),u=requestAnimationFrame($)}function V(W){const{nodeLookup:ce,multiSelectionActive:q,nodesDraggable:F,transform:L,snapGrid:Y,snapToGrid:J,selectNodesOnDrag:ne,onNodeDragStart:R,onSelectionDragStart:j,unselectNodesAndEdges:Q}=t();m=!0,(!ne||!U)&&!q&&z&&(ce.get(z)?.selected||Q()),U&&ne&&z&&e?.(z);const _=Ms(W.sourceEvent,{transform:L,snapGrid:Y,snapToGrid:J,containerBounds:p});if(s=_,f=VO(ce,F,_,z),f.size>0&&(n||R||!z&&j)){const[se,ve]=Kd({nodeId:z,dragItems:f,nodeLookup:ce});n?.(W.sourceEvent,f,se,ve),R?.(W.sourceEvent,se,ve),z||j?.(W.sourceEvent,ve)}}const G=y8().clickDistance(I).on("start",W=>{const{domNode:ce,nodeDragThreshold:q,transform:F,snapGrid:L,snapToGrid:Y}=t();p=ce?.getBoundingClientRect()||null,x=!1,w=!1,A=W.sourceEvent,q===0&&V(W),s=Ms(W.sourceEvent,{transform:F,snapGrid:L,snapToGrid:Y,containerBounds:p}),d=zr(W.sourceEvent,p)}).on("drag",W=>{const{autoPanOnNodeDrag:ce,transform:q,snapGrid:F,snapToGrid:L,nodeDragThreshold:Y,nodeLookup:J}=t(),ne=Ms(W.sourceEvent,{transform:q,snapGrid:F,snapToGrid:L,containerBounds:p});if(A=W.sourceEvent,(W.sourceEvent.type==="touchmove"&&W.sourceEvent.touches.length>1||z&&!J.has(z))&&(x=!0),!x){if(!h&&ce&&m&&(h=!0,$()),!m){const R=zr(W.sourceEvent,p),j=R.x-d.x,Q=R.y-d.y;Math.sqrt(j*j+Q*Q)>Y&&V(W)}(s.x!==ne.xSnapped||s.y!==ne.ySnapped)&&f&&m&&(d=zr(W.sourceEvent,p),P(ne))}}).on("end",W=>{if(!(!m||x)&&(h=!1,m=!1,cancelAnimationFrame(u),f.size>0)){const{nodeLookup:ce,updateNodePositions:q,onNodeDragStop:F,onSelectionDragStop:L}=t();if(w&&(q(f,!1),w=!1),l||F||!z&&L){const[Y,J]=Kd({nodeId:z,dragItems:f,nodeLookup:ce,dragging:!1});l?.(W.sourceEvent,f,Y,J),F?.(W.sourceEvent,Y,J),z||L?.(W.sourceEvent,J)}}}).filter(W=>{const ce=W.target;return!W.button&&(!D||!u6(ce,`.${D}`,B))&&(!T||u6(ce,T,B))});v.call(G)}function E(){v?.on(".drag",null)}return{update:C,destroy:E}}function $O(e,t,n){const i=[],l={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(const s of t.values())Fs(l,co(s))>0&&i.push(s);return i}const XO=250;function PO(e,t,n,i){let l=[],s=1/0;const u=$O(e,n,t+XO);for(const f of u){const h=[...f.internals.handleBounds?.source??[],...f.internals.handleBounds?.target??[]];for(const d of h){if(i.nodeId===d.nodeId&&i.type===d.type&&i.id===d.id)continue;const{x:p,y:m}=el(f,d,d.position,!0),v=Math.sqrt(Math.pow(p-e.x,2)+Math.pow(m-e.y,2));v>t||(v<s?(l=[{...d,x:p,y:m}],s=v):v===s&&l.push({...d,x:p,y:m}))}}if(!l.length)return null;if(l.length>1){const f=i.type==="source"?"target":"source";return l.find(h=>h.type===f)??l[0]}return l[0]}function tv(e,t,n,i,l,s=!1){const u=i.get(e);if(!u)return null;const f=l==="strict"?u.internals.handleBounds?.[t]:[...u.internals.handleBounds?.source??[],...u.internals.handleBounds?.target??[]],h=(n?f?.find(d=>d.id===n):f?.[0])??null;return h&&s?{...h,...el(u,h,h.position,!0)}:h}function nv(e,t){return e||(t?.classList.contains("target")?"target":t?.classList.contains("source")?"source":null)}function ZO(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}const rv=()=>!0;function QO(e,{connectionMode:t,connectionRadius:n,handleId:i,nodeId:l,edgeUpdaterType:s,isTarget:u,domNode:f,nodeLookup:h,lib:d,autoPanOnConnect:p,flowId:m,panBy:v,cancelConnection:x,onConnectStart:w,onConnect:A,onConnectEnd:C,isValidConnection:E=rv,onReconnectEnd:D,updateConnection:T,getTransform:B,getFromHandle:U,autoPanSpeed:z,dragThreshold:I=1,handleDomNode:P}){const $=Y8(e.target);let V=0,G;const{x:W,y:ce}=zr(e),q=nv(s,P),F=f?.getBoundingClientRect();let L=!1;if(!F||!q)return;const Y=tv(l,q,i,h,t);if(!Y)return;let J=zr(e,F),ne=!1,R=null,j=!1,Q=null;function _(){if(!p||!F)return;const[qe,_e]=I8(J,F,z);v({x:qe,y:_e}),V=requestAnimationFrame(_)}const se={...Y,nodeId:l,type:q,position:Y.position},ve=h.get(l);let we={inProgress:!0,isValid:null,from:el(ve,se,Be.Left,!0),fromHandle:se,fromPosition:se.position,fromNode:ve,to:J,toHandle:null,toPosition:K5[se.position],toNode:null,pointer:J};function ge(){L=!0,T(we),w?.(e,{nodeId:l,handleId:i,handleType:q})}I===0&&ge();function ke(qe){if(!L){const{x:ht,y:me}=zr(qe),Ue=ht-W,nt=me-ce;if(!(Ue*Ue+nt*nt>I*I))return;ge()}if(!U()||!se){je(qe);return}const _e=B();J=zr(qe,F),G=PO(ru(J,_e,!1,[1,1]),n,h,se),ne||(_(),ne=!0);const Le=iv(qe,{handle:G,connectionMode:t,fromNodeId:l,fromHandleId:i,fromType:u?"target":"source",isValidConnection:E,doc:$,lib:d,flowId:m,nodeLookup:h});Q=Le.handleDomNode,R=Le.connection,j=ZO(!!G,Le.isValid);const Ye=h.get(l),tt=Ye?el(Ye,se,Be.Left,!0):we.from,et={...we,from:tt,isValid:j,to:Le.toHandle&&j?pc({x:Le.toHandle.x,y:Le.toHandle.y},_e):J,toHandle:Le.toHandle,toPosition:j&&Le.toHandle?Le.toHandle.position:K5[se.position],toNode:Le.toHandle?h.get(Le.toHandle.nodeId):null,pointer:J};T(et),we=et}function je(qe){if(!("touches"in qe&&qe.touches.length>0)){if(L){(G||Q)&&R&&j&&A?.(R);const{inProgress:_e,...Le}=we,Ye={...Le,toPosition:we.toHandle?we.toPosition:null};C?.(qe,Ye),s&&D?.(qe,Ye)}x(),cancelAnimationFrame(V),ne=!1,j=!1,R=null,Q=null,$.removeEventListener("mousemove",ke),$.removeEventListener("mouseup",je),$.removeEventListener("touchmove",ke),$.removeEventListener("touchend",je)}}$.addEventListener("mousemove",ke),$.addEventListener("mouseup",je),$.addEventListener("touchmove",ke),$.addEventListener("touchend",je)}function iv(e,{handle:t,connectionMode:n,fromNodeId:i,fromHandleId:l,fromType:s,doc:u,lib:f,flowId:h,isValidConnection:d=rv,nodeLookup:p}){const m=s==="target",v=t?u.querySelector(`.${f}-flow__handle[data-id="${h}-${t?.nodeId}-${t?.id}-${t?.type}"]`):null,{x,y:w}=zr(e),A=u.elementFromPoint(x,w),C=A?.classList.contains(`${f}-flow__handle`)?A:v,E={handleDomNode:C,isValid:!1,connection:null,toHandle:null};if(C){const D=nv(void 0,C),T=C.getAttribute("data-nodeid"),B=C.getAttribute("data-handleid"),U=C.classList.contains("connectable"),z=C.classList.contains("connectableend");if(!T||!D)return E;const I={source:m?T:i,sourceHandle:m?B:l,target:m?i:T,targetHandle:m?l:B};E.connection=I;const $=U&&z&&(n===so.Strict?m&&D==="source"||!m&&D==="target":T!==i||B!==l);E.isValid=$&&d(I),E.toHandle=tv(T,D,B,p,n,!0)}return E}const Z1={onPointerDown:QO,isValid:iv};function KO({domNode:e,panZoom:t,getTransform:n,getViewScale:i}){const l=nr(e);function s({translateExtent:f,width:h,height:d,zoomStep:p=1,pannable:m=!0,zoomable:v=!0,inversePan:x=!1}){const w=T=>{if(T.sourceEvent.type!=="wheel"||!t)return;const B=n(),U=T.sourceEvent.ctrlKey&&Vs()?10:1,z=-T.sourceEvent.deltaY*(T.sourceEvent.deltaMode===1?.05:T.sourceEvent.deltaMode?1:.002)*p,I=B[2]*Math.pow(2,z*U);t.scaleTo(I)};let A=[0,0];const C=T=>{(T.sourceEvent.type==="mousedown"||T.sourceEvent.type==="touchstart")&&(A=[T.sourceEvent.clientX??T.sourceEvent.touches[0].clientX,T.sourceEvent.clientY??T.sourceEvent.touches[0].clientY])},E=T=>{const B=n();if(T.sourceEvent.type!=="mousemove"&&T.sourceEvent.type!=="touchmove"||!t)return;const U=[T.sourceEvent.clientX??T.sourceEvent.touches[0].clientX,T.sourceEvent.clientY??T.sourceEvent.touches[0].clientY],z=[U[0]-A[0],U[1]-A[1]];A=U;const I=i()*Math.max(B[2],Math.log(B[2]))*(x?-1:1),P={x:B[0]-z[0]*I,y:B[1]-z[1]*I},$=[[0,0],[h,d]];t.setViewportConstrained({x:P.x,y:P.y,zoom:B[2]},$,f)},D=_8().on("start",C).on("zoom",m?E:null).on("zoom.wheel",v?w:null);l.call(D,{})}function u(){l.on("zoom",null)}return{update:s,destroy:u,pointer:Cr}}const Yc=e=>({x:e.x,y:e.y,zoom:e.k}),Jd=({x:e,y:t,zoom:n})=>Uc.translate(e,t).scale(n),Ql=(e,t)=>e.target.closest(`.${t}`),av=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),JO=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,Wd=(e,t=0,n=JO,i=()=>{})=>{const l=typeof t=="number"&&t>0;return l||i(),l?e.transition().duration(t).ease(n).on("end",i):e},lv=e=>{const t=e.ctrlKey&&Vs()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function WO({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:i,panOnScrollMode:l,panOnScrollSpeed:s,zoomOnPinch:u,onPanZoomStart:f,onPanZoom:h,onPanZoomEnd:d}){return p=>{if(Ql(p,t))return p.ctrlKey&&p.preventDefault(),!1;p.preventDefault(),p.stopImmediatePropagation();const m=n.property("__zoom").k||1;if(p.ctrlKey&&u){const C=Cr(p),E=lv(p),D=m*Math.pow(2,E);i.scaleTo(n,D,C,p);return}const v=p.deltaMode===1?20:1;let x=l===Za.Vertical?0:p.deltaX*v,w=l===Za.Horizontal?0:p.deltaY*v;!Vs()&&p.shiftKey&&l!==Za.Vertical&&(x=p.deltaY*v,w=0),i.translateBy(n,-(x/m)*s,-(w/m)*s,{internal:!0});const A=Yc(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?(h?.(p,A),e.panScrollTimeout=setTimeout(()=>{d?.(p,A),e.isPanScrolling=!1},150)):(e.isPanScrolling=!0,f?.(p,A))}}function eR({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(i,l){const s=i.type==="wheel",u=!t&&s&&!i.ctrlKey,f=Ql(i,e);if(i.ctrlKey&&s&&f&&i.preventDefault(),u||f)return null;i.preventDefault(),n.call(this,i,l)}}function tR({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return i=>{if(i.sourceEvent?.internal)return;const l=Yc(i.transform);e.mouseButton=i.sourceEvent?.button||0,e.isZoomingOrPanning=!0,e.prevViewport=l,i.sourceEvent?.type==="mousedown"&&t(!0),n&&n?.(i.sourceEvent,l)}}function nR({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:i,onPanZoom:l}){return s=>{e.usedRightMouseButton=!!(n&&av(t,e.mouseButton??0)),s.sourceEvent?.sync||i([s.transform.x,s.transform.y,s.transform.k]),l&&!s.sourceEvent?.internal&&l?.(s.sourceEvent,Yc(s.transform))}}function rR({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:i,onPanZoomEnd:l,onPaneContextMenu:s}){return u=>{if(!u.sourceEvent?.internal&&(e.isZoomingOrPanning=!1,s&&av(t,e.mouseButton??0)&&!e.usedRightMouseButton&&u.sourceEvent&&s(u.sourceEvent),e.usedRightMouseButton=!1,i(!1),l)){const f=Yc(u.transform);e.prevViewport=f,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{l?.(u.sourceEvent,f)},n?150:0)}}}function iR({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:n,panOnDrag:i,panOnScroll:l,zoomOnDoubleClick:s,userSelectionActive:u,noWheelClassName:f,noPanClassName:h,lib:d,connectionInProgress:p}){return m=>{const v=e||t,x=n&&m.ctrlKey,w=m.type==="wheel";if(m.button===1&&m.type==="mousedown"&&(Ql(m,`${d}-flow__node`)||Ql(m,`${d}-flow__edge`)))return!0;if(!i&&!v&&!l&&!s&&!n||u||p&&!w||Ql(m,f)&&w||Ql(m,h)&&(!w||l&&w&&!e)||!n&&m.ctrlKey&&w)return!1;if(!n&&m.type==="touchstart"&&m.touches?.length>1)return m.preventDefault(),!1;if(!v&&!l&&!x&&w||!i&&(m.type==="mousedown"||m.type==="touchstart")||Array.isArray(i)&&!i.includes(m.button)&&m.type==="mousedown")return!1;const A=Array.isArray(i)&&i.includes(m.button)||!m.button||m.button<=1;return(!m.ctrlKey||w)&&A}}function aR({domNode:e,minZoom:t,maxZoom:n,translateExtent:i,viewport:l,onPanZoom:s,onPanZoomStart:u,onPanZoomEnd:f,onDraggingChange:h}){const d={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},p=e.getBoundingClientRect(),m=_8().scaleExtent([t,n]).translateExtent(i),v=nr(e).call(m);D({x:l.x,y:l.y,zoom:uo(l.zoom,t,n)},[[0,0],[p.width,p.height]],i);const x=v.on("wheel.zoom"),w=v.on("dblclick.zoom");m.wheelDelta(lv);function A(G,W){return v?new Promise(ce=>{m?.interpolate(W?.interpolate==="linear"?Ts:X0).transform(Wd(v,W?.duration,W?.ease,()=>ce(!0)),G)}):Promise.resolve(!1)}function C({noWheelClassName:G,noPanClassName:W,onPaneContextMenu:ce,userSelectionActive:q,panOnScroll:F,panOnDrag:L,panOnScrollMode:Y,panOnScrollSpeed:J,preventScrolling:ne,zoomOnPinch:R,zoomOnScroll:j,zoomOnDoubleClick:Q,zoomActivationKeyPressed:_,lib:se,onTransformChange:ve,connectionInProgress:be,paneClickDistance:we,selectionOnDrag:ge}){q&&!d.isZoomingOrPanning&&E();const ke=F&&!_&&!q;m.clickDistance(ge?1/0:!Mr(we)||we<0?0:we);const je=ke?WO({zoomPanValues:d,noWheelClassName:G,d3Selection:v,d3Zoom:m,panOnScrollMode:Y,panOnScrollSpeed:J,zoomOnPinch:R,onPanZoomStart:u,onPanZoom:s,onPanZoomEnd:f}):eR({noWheelClassName:G,preventScrolling:ne,d3ZoomHandler:x});if(v.on("wheel.zoom",je,{passive:!1}),!q){const _e=tR({zoomPanValues:d,onDraggingChange:h,onPanZoomStart:u});m.on("start",_e);const Le=nR({zoomPanValues:d,panOnDrag:L,onPaneContextMenu:!!ce,onPanZoom:s,onTransformChange:ve});m.on("zoom",Le);const Ye=rR({zoomPanValues:d,panOnDrag:L,panOnScroll:F,onPaneContextMenu:ce,onPanZoomEnd:f,onDraggingChange:h});m.on("end",Ye)}const qe=iR({zoomActivationKeyPressed:_,panOnDrag:L,zoomOnScroll:j,panOnScroll:F,zoomOnDoubleClick:Q,zoomOnPinch:R,userSelectionActive:q,noPanClassName:W,noWheelClassName:G,lib:se,connectionInProgress:be});m.filter(qe),Q?v.on("dblclick.zoom",w):v.on("dblclick.zoom",null)}function E(){m.on("zoom",null)}async function D(G,W,ce){const q=Jd(G),F=m?.constrain()(q,W,ce);return F&&await A(F),new Promise(L=>L(F))}async function T(G,W){const ce=Jd(G);return await A(ce,W),new Promise(q=>q(ce))}function B(G){if(v){const W=Jd(G),ce=v.property("__zoom");(ce.k!==G.zoom||ce.x!==G.x||ce.y!==G.y)&&m?.transform(v,W,null,{sync:!0})}}function U(){const G=v?D8(v.node()):{x:0,y:0,k:1};return{x:G.x,y:G.y,zoom:G.k}}function z(G,W){return v?new Promise(ce=>{m?.interpolate(W?.interpolate==="linear"?Ts:X0).scaleTo(Wd(v,W?.duration,W?.ease,()=>ce(!0)),G)}):Promise.resolve(!1)}function I(G,W){return v?new Promise(ce=>{m?.interpolate(W?.interpolate==="linear"?Ts:X0).scaleBy(Wd(v,W?.duration,W?.ease,()=>ce(!0)),G)}):Promise.resolve(!1)}function P(G){m?.scaleExtent(G)}function $(G){m?.translateExtent(G)}function V(G){const W=!Mr(G)||G<0?0:G;m?.clickDistance(W)}return{update:C,destroy:E,setViewport:T,setViewportConstrained:D,getViewport:U,scaleTo:z,scaleBy:I,setScaleExtent:P,setTranslateExtent:$,syncViewport:B,setClickDistance:V}}var ho;(function(e){e.Line="line",e.Handle="handle"})(ho||(ho={}));function lR({width:e,prevWidth:t,height:n,prevHeight:i,affectsX:l,affectsY:s}){const u=e-t,f=n-i,h=[u>0?1:u<0?-1:0,f>0?1:f<0?-1:0];return u&&l&&(h[0]=h[0]*-1),f&&s&&(h[1]=h[1]*-1),h}function c6(e){const t=e.includes("right")||e.includes("left"),n=e.includes("bottom")||e.includes("top"),i=e.includes("left"),l=e.includes("top");return{isHorizontal:t,isVertical:n,affectsX:i,affectsY:l}}function ua(e,t){return Math.max(0,t-e)}function ca(e,t){return Math.max(0,e-t)}function I0(e,t,n){return Math.max(0,t-e,e-n)}function f6(e,t){return e?!t:t}function oR(e,t,n,i,l,s,u,f){let{affectsX:h,affectsY:d}=t;const{isHorizontal:p,isVertical:m}=t,v=p&&m,{xSnapped:x,ySnapped:w}=n,{minWidth:A,maxWidth:C,minHeight:E,maxHeight:D}=i,{x:T,y:B,width:U,height:z,aspectRatio:I}=e;let P=Math.floor(p?x-e.pointerX:0),$=Math.floor(m?w-e.pointerY:0);const V=U+(h?-P:P),G=z+(d?-$:$),W=-s[0]*U,ce=-s[1]*z;let q=I0(V,A,C),F=I0(G,E,D);if(u){let J=0,ne=0;h&&P<0?J=ua(T+P+W,u[0][0]):!h&&P>0&&(J=ca(T+V+W,u[1][0])),d&&$<0?ne=ua(B+$+ce,u[0][1]):!d&&$>0&&(ne=ca(B+G+ce,u[1][1])),q=Math.max(q,J),F=Math.max(F,ne)}if(f){let J=0,ne=0;h&&P>0?J=ca(T+P,f[0][0]):!h&&P<0&&(J=ua(T+V,f[1][0])),d&&$>0?ne=ca(B+$,f[0][1]):!d&&$<0&&(ne=ua(B+G,f[1][1])),q=Math.max(q,J),F=Math.max(F,ne)}if(l){if(p){const J=I0(V/I,E,D)*I;if(q=Math.max(q,J),u){let ne=0;!h&&!d||h&&!d&&v?ne=ca(B+ce+V/I,u[1][1])*I:ne=ua(B+ce+(h?P:-P)/I,u[0][1])*I,q=Math.max(q,ne)}if(f){let ne=0;!h&&!d||h&&!d&&v?ne=ua(B+V/I,f[1][1])*I:ne=ca(B+(h?P:-P)/I,f[0][1])*I,q=Math.max(q,ne)}}if(m){const J=I0(G*I,A,C)/I;if(F=Math.max(F,J),u){let ne=0;!h&&!d||d&&!h&&v?ne=ca(T+G*I+W,u[1][0])/I:ne=ua(T+(d?$:-$)*I+W,u[0][0])/I,F=Math.max(F,ne)}if(f){let ne=0;!h&&!d||d&&!h&&v?ne=ua(T+G*I,f[1][0])/I:ne=ca(T+(d?$:-$)*I,f[0][0])/I,F=Math.max(F,ne)}}}$=$+($<0?F:-F),P=P+(P<0?q:-q),l&&(v?V>G*I?$=(f6(h,d)?-P:P)/I:P=(f6(h,d)?-$:$)*I:p?($=P/I,d=h):(P=$*I,h=d));const L=h?T+P:T,Y=d?B+$:B;return{width:U+(h?-P:P),height:z+(d?-$:$),x:s[0]*P*(h?-1:1)+L,y:s[1]*$*(d?-1:1)+Y}}const ov={width:0,height:0,x:0,y:0},sR={...ov,pointerX:0,pointerY:0,aspectRatio:1};function uR(e){return[[0,0],[e.measured.width,e.measured.height]]}function cR(e,t,n){const i=t.position.x+e.position.x,l=t.position.y+e.position.y,s=e.measured.width??0,u=e.measured.height??0,f=n[0]*s,h=n[1]*u;return[[i-f,l-h],[i+s-f,l+u-h]]}function fR({domNode:e,nodeId:t,getStoreItems:n,onChange:i,onEnd:l}){const s=nr(e);let u={controlDirection:c6("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function f({controlPosition:d,boundaries:p,keepAspectRatio:m,resizeDirection:v,onResizeStart:x,onResize:w,onResizeEnd:A,shouldResize:C}){let E={...ov},D={...sR};u={boundaries:p,resizeDirection:v,keepAspectRatio:m,controlDirection:c6(d)};let T,B=null,U=[],z,I,P,$=!1;const V=y8().on("start",G=>{const{nodeLookup:W,transform:ce,snapGrid:q,snapToGrid:F,nodeOrigin:L,paneDomNode:Y}=n();if(T=W.get(t),!T)return;B=Y?.getBoundingClientRect()??null;const{xSnapped:J,ySnapped:ne}=Ms(G.sourceEvent,{transform:ce,snapGrid:q,snapToGrid:F,containerBounds:B});E={width:T.measured.width??0,height:T.measured.height??0,x:T.position.x??0,y:T.position.y??0},D={...E,pointerX:J,pointerY:ne,aspectRatio:E.width/E.height},z=void 0,T.parentId&&(T.extent==="parent"||T.expandParent)&&(z=W.get(T.parentId),I=z&&T.extent==="parent"?uR(z):void 0),U=[],P=void 0;for(const[R,j]of W)if(j.parentId===t&&(U.push({id:R,position:{...j.position},extent:j.extent}),j.extent==="parent"||j.expandParent)){const Q=cR(j,T,j.origin??L);P?P=[[Math.min(Q[0][0],P[0][0]),Math.min(Q[0][1],P[0][1])],[Math.max(Q[1][0],P[1][0]),Math.max(Q[1][1],P[1][1])]]:P=Q}x?.(G,{...E})}).on("drag",G=>{const{transform:W,snapGrid:ce,snapToGrid:q,nodeOrigin:F}=n(),L=Ms(G.sourceEvent,{transform:W,snapGrid:ce,snapToGrid:q,containerBounds:B}),Y=[];if(!T)return;const{x:J,y:ne,width:R,height:j}=E,Q={},_=T.origin??F,{width:se,height:ve,x:be,y:we}=oR(D,u.controlDirection,L,u.boundaries,u.keepAspectRatio,_,I,P),ge=se!==R,ke=ve!==j,je=be!==J&&ge,qe=we!==ne&&ke;if(!je&&!qe&&!ge&&!ke)return;if((je||qe||_[0]===1||_[1]===1)&&(Q.x=je?be:E.x,Q.y=qe?we:E.y,E.x=Q.x,E.y=Q.y,U.length>0)){const tt=be-J,et=we-ne;for(const ht of U)ht.position={x:ht.position.x-tt+_[0]*(se-R),y:ht.position.y-et+_[1]*(ve-j)},Y.push(ht)}if((ge||ke)&&(Q.width=ge&&(!u.resizeDirection||u.resizeDirection==="horizontal")?se:E.width,Q.height=ke&&(!u.resizeDirection||u.resizeDirection==="vertical")?ve:E.height,E.width=Q.width,E.height=Q.height),z&&T.expandParent){const tt=_[0]*(Q.width??0);Q.x&&Q.x<tt&&(E.x=tt,D.x=D.x-(Q.x-tt));const et=_[1]*(Q.height??0);Q.y&&Q.y<et&&(E.y=et,D.y=D.y-(Q.y-et))}const _e=lR({width:E.width,prevWidth:R,height:E.height,prevHeight:j,affectsX:u.controlDirection.affectsX,affectsY:u.controlDirection.affectsY}),Le={...E,direction:_e};C?.(G,Le)!==!1&&($=!0,w?.(G,Le),i(Q,Y))}).on("end",G=>{$&&(A?.(G,{...E}),l?.({...E}),$=!1)});s.call(V)}function h(){s.on(".drag",null)}return{update:f,destroy:h}}var e1={exports:{}},t1={},n1={exports:{}},r1={};var h6;function hR(){if(h6)return r1;h6=1;var e=Gs();function t(m,v){return m===v&&(m!==0||1/m===1/v)||m!==m&&v!==v}var n=typeof Object.is=="function"?Object.is:t,i=e.useState,l=e.useEffect,s=e.useLayoutEffect,u=e.useDebugValue;function f(m,v){var x=v(),w=i({inst:{value:x,getSnapshot:v}}),A=w[0].inst,C=w[1];return s(function(){A.value=x,A.getSnapshot=v,h(A)&&C({inst:A})},[m,x,v]),l(function(){return h(A)&&C({inst:A}),m(function(){h(A)&&C({inst:A})})},[m]),u(x),x}function h(m){var v=m.getSnapshot;m=m.value;try{var x=v();return!n(m,x)}catch{return!0}}function d(m,v){return v()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:f;return r1.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,r1}var d6;function dR(){return d6||(d6=1,n1.exports=hR()),n1.exports}var m6;function mR(){if(m6)return t1;m6=1;var e=Gs(),t=dR();function n(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var i=typeof Object.is=="function"?Object.is:n,l=t.useSyncExternalStore,s=e.useRef,u=e.useEffect,f=e.useMemo,h=e.useDebugValue;return t1.useSyncExternalStoreWithSelector=function(d,p,m,v,x){var w=s(null);if(w.current===null){var A={hasValue:!1,value:null};w.current=A}else A=w.current;w=f(function(){function E(z){if(!D){if(D=!0,T=z,z=v(z),x!==void 0&&A.hasValue){var I=A.value;if(x(I,z))return B=I}return B=z}if(I=B,i(T,z))return I;var P=v(z);return x!==void 0&&x(I,P)?(T=z,I):(T=z,B=P)}var D=!1,T,B,U=m===void 0?null:m;return[function(){return E(p())},U===null?void 0:function(){return E(U())}]},[p,m,v,x]);var C=l(d,w[0],w[1]);return u(function(){A.hasValue=!0,A.value=C},[C]),h(C),C},t1}var p6;function pR(){return p6||(p6=1,e1.exports=mR()),e1.exports}var gR=pR();const yR=vc(gR),vR={},g6=e=>{let t;const n=new Set,i=(p,m)=>{const v=typeof p=="function"?p(t):p;if(!Object.is(v,t)){const x=t;t=m??(typeof v!="object"||v===null)?v:Object.assign({},t,v),n.forEach(w=>w(t,x))}},l=()=>t,h={setState:i,getState:l,getInitialState:()=>d,subscribe:p=>(n.add(p),()=>n.delete(p)),destroy:()=>{(vR?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},d=t=e(i,l,h);return h},xR=e=>e?g6(e):g6,{useDebugValue:bR}=ib,{useSyncExternalStoreWithSelector:wR}=yR,SR=e=>e;function sv(e,t=SR,n){const i=wR(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return bR(i),i}const y6=(e,t)=>{const n=xR(e),i=(l,s=t)=>sv(n,l,s);return Object.assign(i,n),i},kR=(e,t)=>e?y6(e,t):y6;function Ht(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[i,l]of e)if(!Object.is(l,t.get(i)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const i of n)if(!Object.prototype.hasOwnProperty.call(t,i)||!Object.is(e[i],t[i]))return!1;return!0}Y6();const Gc=ie.createContext(null),ER=Gc.Provider,uv=Vr.error001();function ft(e,t){const n=ie.useContext(Gc);if(n===null)throw new Error(uv);return sv(n,e,t)}function qt(){const e=ie.useContext(Gc);if(e===null)throw new Error(uv);return ie.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const v6={display:"none"},AR={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},cv="react-flow__node-desc",fv="react-flow__edge-desc",CR="react-flow__aria-live",TR=e=>e.ariaLiveMessage,MR=e=>e.ariaLabelConfig;function zR({rfId:e}){const t=ft(TR);return M.jsx("div",{id:`${CR}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:AR,children:t})}function NR({rfId:e,disableKeyboardA11y:t}){const n=ft(MR);return M.jsxs(M.Fragment,{children:[M.jsx("div",{id:`${cv}-${e}`,style:v6,children:t?n["node.a11yDescription.default"]:n["node.a11yDescription.keyboardDisabled"]}),M.jsx("div",{id:`${fv}-${e}`,style:v6,children:n["edge.a11yDescription.default"]}),!t&&M.jsx(zR,{rfId:e})]})}const $c=ie.forwardRef(({position:e="top-left",children:t,className:n,style:i,...l},s)=>{const u=`${e}`.split("-");return M.jsx("div",{className:rn(["react-flow__panel",n,...u]),style:i,ref:s,...l,children:t})});$c.displayName="Panel";function DR({proOptions:e,position:t="bottom-right"}){return e?.hideAttribution?null:M.jsx($c,{position:t,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:M.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const _R=e=>{const t=[],n=[];for(const[,i]of e.nodeLookup)i.selected&&t.push(i.internals.userNode);for(const[,i]of e.edgeLookup)i.selected&&n.push(i);return{selectedNodes:t,selectedEdges:n}},U0=e=>e.id;function OR(e,t){return Ht(e.selectedNodes.map(U0),t.selectedNodes.map(U0))&&Ht(e.selectedEdges.map(U0),t.selectedEdges.map(U0))}function RR({onSelectionChange:e}){const t=qt(),{selectedNodes:n,selectedEdges:i}=ft(_R,OR);return ie.useEffect(()=>{const l={nodes:n,edges:i};e?.(l),t.getState().onSelectionChangeHandlers.forEach(s=>s(l))},[n,i,e]),null}const BR=e=>!!e.onSelectionChangeHandlers;function LR({onSelectionChange:e}){const t=ft(BR);return e||t?M.jsx(RR,{onSelectionChange:e}):null}const Q1=typeof window<"u"?ie.useLayoutEffect:ie.useEffect,hv=[0,0],HR={x:0,y:0,zoom:1},jR=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],x6=[...jR,"rfId"],qR=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges}),b6={translateExtent:qs,nodeOrigin:hv,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function IR(e){const{setNodes:t,setEdges:n,setMinZoom:i,setMaxZoom:l,setTranslateExtent:s,setNodeExtent:u,reset:f,setDefaultNodesAndEdges:h}=ft(qR,Ht),d=qt();Q1(()=>(h(e.defaultNodes,e.defaultEdges),()=>{p.current=b6,f()}),[]);const p=ie.useRef(b6);return Q1(()=>{for(const m of x6){const v=e[m],x=p.current[m];v!==x&&(typeof e[m]>"u"||(m==="nodes"?t(v):m==="edges"?n(v):m==="minZoom"?i(v):m==="maxZoom"?l(v):m==="translateExtent"?s(v):m==="nodeExtent"?u(v):m==="ariaLabelConfig"?d.setState({ariaLabelConfig:kO(v)}):m==="fitView"?d.setState({fitViewQueued:v}):m==="fitViewOptions"?d.setState({fitViewOptions:v}):d.setState({[m]:v})))}p.current=e},x6.map(m=>e[m])),null}function w6(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function UR(e){const[t,n]=ie.useState(e==="system"?null:e);return ie.useEffect(()=>{if(e!=="system"){n(e);return}const i=w6(),l=()=>n(i?.matches?"dark":"light");return l(),i?.addEventListener("change",l),()=>{i?.removeEventListener("change",l)}},[e]),t!==null?t:w6()?.matches?"dark":"light"}const S6=typeof document<"u"?document:null;function Ys(e=null,t={target:S6,actInsideInputWithModifier:!0}){const[n,i]=ie.useState(!1),l=ie.useRef(!1),s=ie.useRef(new Set([])),[u,f]=ie.useMemo(()=>{if(e!==null){const d=(Array.isArray(e)?e:[e]).filter(m=>typeof m=="string").map(m=>m.replace("+",`
306
+ `).replace(`
307
+
308
+ `,`
309
+ +`).split(`
310
+ `)),p=d.reduce((m,v)=>m.concat(...v),[]);return[d,p]}return[[],[]]},[e]);return ie.useEffect(()=>{const h=t?.target??S6,d=t?.actInsideInputWithModifier??!0;if(e!==null){const p=x=>{if(l.current=x.ctrlKey||x.metaKey||x.shiftKey||x.altKey,(!l.current||l.current&&!d)&&G8(x))return!1;const A=E6(x.code,f);if(s.current.add(x[A]),k6(u,s.current,!1)){const C=x.composedPath?.()?.[0]||x.target,E=C?.nodeName==="BUTTON"||C?.nodeName==="A";t.preventDefault!==!1&&(l.current||!E)&&x.preventDefault(),i(!0)}},m=x=>{const w=E6(x.code,f);k6(u,s.current,!0)?(i(!1),s.current.clear()):s.current.delete(x[w]),x.key==="Meta"&&s.current.clear(),l.current=!1},v=()=>{s.current.clear(),i(!1)};return h?.addEventListener("keydown",p),h?.addEventListener("keyup",m),window.addEventListener("blur",v),window.addEventListener("contextmenu",v),()=>{h?.removeEventListener("keydown",p),h?.removeEventListener("keyup",m),window.removeEventListener("blur",v),window.removeEventListener("contextmenu",v)}}},[e,i]),n}function k6(e,t,n){return e.filter(i=>n||i.length===t.size).some(i=>i.every(l=>t.has(l)))}function E6(e,t){return t.includes(e)?"code":"key"}const FR=()=>{const e=qt();return ie.useMemo(()=>({zoomIn:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1.2,t):Promise.resolve(!1)},zoomOut:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1/1.2,t):Promise.resolve(!1)},zoomTo:(t,n)=>{const{panZoom:i}=e.getState();return i?i.scaleTo(t,n):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(t,n)=>{const{transform:[i,l,s],panZoom:u}=e.getState();return u?(await u.setViewport({x:t.x??i,y:t.y??l,zoom:t.zoom??s},n),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[t,n,i]=e.getState().transform;return{x:t,y:n,zoom:i}},setCenter:async(t,n,i)=>e.getState().setCenter(t,n,i),fitBounds:async(t,n)=>{const{width:i,height:l,minZoom:s,maxZoom:u,panZoom:f}=e.getState(),h=Vm(t,i,l,s,u,n?.padding??.1);return f?(await f.setViewport(h,{duration:n?.duration,ease:n?.ease,interpolate:n?.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(t,n={})=>{const{transform:i,snapGrid:l,snapToGrid:s,domNode:u}=e.getState();if(!u)return t;const{x:f,y:h}=u.getBoundingClientRect(),d={x:t.x-f,y:t.y-h},p=n.snapGrid??l,m=n.snapToGrid??s;return ru(d,i,m,p)},flowToScreenPosition:t=>{const{transform:n,domNode:i}=e.getState();if(!i)return t;const{x:l,y:s}=i.getBoundingClientRect(),u=pc(t,n);return{x:u.x+l,y:u.y+s}}}),[])};function dv(e,t){const n=[],i=new Map,l=[];for(const s of e)if(s.type==="add"){l.push(s);continue}else if(s.type==="remove"||s.type==="replace")i.set(s.id,[s]);else{const u=i.get(s.id);u?u.push(s):i.set(s.id,[s])}for(const s of t){const u=i.get(s.id);if(!u){n.push(s);continue}if(u[0].type==="remove")continue;if(u[0].type==="replace"){n.push({...u[0].item});continue}const f={...s};for(const h of u)VR(h,f);n.push(f)}return l.length&&l.forEach(s=>{s.index!==void 0?n.splice(s.index,0,{...s.item}):n.push({...s.item})}),n}function VR(e,t){switch(e.type){case"select":{t.selected=e.selected;break}case"position":{typeof e.position<"u"&&(t.position=e.position),typeof e.dragging<"u"&&(t.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(t.measured={...e.dimensions},e.setAttributes&&((e.setAttributes===!0||e.setAttributes==="width")&&(t.width=e.dimensions.width),(e.setAttributes===!0||e.setAttributes==="height")&&(t.height=e.dimensions.height))),typeof e.resizing=="boolean"&&(t.resizing=e.resizing);break}}}function YR(e,t){return dv(e,t)}function GR(e,t){return dv(e,t)}function Ga(e,t){return{id:e,type:"select",selected:t}}function Kl(e,t=new Set,n=!1){const i=[];for(const[l,s]of e){const u=t.has(l);!(s.selected===void 0&&!u)&&s.selected!==u&&(n&&(s.selected=u),i.push(Ga(s.id,u)))}return i}function A6({items:e=[],lookup:t}){const n=[],i=new Map(e.map(l=>[l.id,l]));for(const[l,s]of e.entries()){const u=t.get(s.id),f=u?.internals?.userNode??u;f!==void 0&&f!==s&&n.push({id:s.id,item:s,type:"replace"}),f===void 0&&n.push({item:s,type:"add",index:l})}for(const[l]of t)i.get(l)===void 0&&n.push({id:l,type:"remove"});return n}function C6(e){return{id:e.id,type:"remove"}}const T6=e=>dO(e),$R=e=>H8(e);function mv(e){return ie.forwardRef(e)}function M6(e){const[t,n]=ie.useState(BigInt(0)),[i]=ie.useState(()=>XR(()=>n(l=>l+BigInt(1))));return Q1(()=>{const l=i.get();l.length&&(e(l),i.reset())},[t]),i}function XR(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:n=>{t.push(n),e()}}}const pv=ie.createContext(null);function PR({children:e}){const t=qt(),n=ie.useCallback(f=>{const{nodes:h=[],setNodes:d,hasDefaultNodes:p,onNodesChange:m,nodeLookup:v,fitViewQueued:x,onNodesChangeMiddlewareMap:w}=t.getState();let A=h;for(const E of f)A=typeof E=="function"?E(A):E;let C=A6({items:A,lookup:v});for(const E of w.values())C=E(C);p&&d(A),C.length>0?m?.(C):x&&window.requestAnimationFrame(()=>{const{fitViewQueued:E,nodes:D,setNodes:T}=t.getState();E&&T(D)})},[]),i=M6(n),l=ie.useCallback(f=>{const{edges:h=[],setEdges:d,hasDefaultEdges:p,onEdgesChange:m,edgeLookup:v}=t.getState();let x=h;for(const w of f)x=typeof w=="function"?w(x):w;p?d(x):m&&m(A6({items:x,lookup:v}))},[]),s=M6(l),u=ie.useMemo(()=>({nodeQueue:i,edgeQueue:s}),[]);return M.jsx(pv.Provider,{value:u,children:e})}function ZR(){const e=ie.useContext(pv);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const QR=e=>!!e.panZoom;function Xc(){const e=FR(),t=qt(),n=ZR(),i=ft(QR),l=ie.useMemo(()=>{const s=m=>t.getState().nodeLookup.get(m),u=m=>{n.nodeQueue.push(m)},f=m=>{n.edgeQueue.push(m)},h=m=>{const{nodeLookup:v,nodeOrigin:x}=t.getState(),w=T6(m)?m:v.get(m.id),A=w.parentId?V8(w.position,w.measured,w.parentId,v,x):w.position,C={...w,position:A,width:w.measured?.width??w.width,height:w.measured?.height??w.height};return co(C)},d=(m,v,x={replace:!1})=>{u(w=>w.map(A=>{if(A.id===m){const C=typeof v=="function"?v(A):v;return x.replace&&T6(C)?C:{...A,...C}}return A}))},p=(m,v,x={replace:!1})=>{f(w=>w.map(A=>{if(A.id===m){const C=typeof v=="function"?v(A):v;return x.replace&&$R(C)?C:{...A,...C}}return A}))};return{getNodes:()=>t.getState().nodes.map(m=>({...m})),getNode:m=>s(m)?.internals.userNode,getInternalNode:s,getEdges:()=>{const{edges:m=[]}=t.getState();return m.map(v=>({...v}))},getEdge:m=>t.getState().edgeLookup.get(m),setNodes:u,setEdges:f,addNodes:m=>{const v=Array.isArray(m)?m:[m];n.nodeQueue.push(x=>[...x,...v])},addEdges:m=>{const v=Array.isArray(m)?m:[m];n.edgeQueue.push(x=>[...x,...v])},toObject:()=>{const{nodes:m=[],edges:v=[],transform:x}=t.getState(),[w,A,C]=x;return{nodes:m.map(E=>({...E})),edges:v.map(E=>({...E})),viewport:{x:w,y:A,zoom:C}}},deleteElements:async({nodes:m=[],edges:v=[]})=>{const{nodes:x,edges:w,onNodesDelete:A,onEdgesDelete:C,triggerNodeChanges:E,triggerEdgeChanges:D,onDelete:T,onBeforeDelete:B}=t.getState(),{nodes:U,edges:z}=await vO({nodesToRemove:m,edgesToRemove:v,nodes:x,edges:w,onBeforeDelete:B}),I=z.length>0,P=U.length>0;if(I){const $=z.map(C6);C?.(z),D($)}if(P){const $=U.map(C6);A?.(U),E($)}return(P||I)&&T?.({nodes:U,edges:z}),{deletedNodes:U,deletedEdges:z}},getIntersectingNodes:(m,v=!0,x)=>{const w=W5(m),A=w?m:h(m),C=x!==void 0;return A?(x||t.getState().nodes).filter(E=>{const D=t.getState().nodeLookup.get(E.id);if(D&&!w&&(E.id===m.id||!D.internals.positionAbsolute))return!1;const T=co(C?E:D),B=Fs(T,A);return v&&B>0||B>=T.width*T.height||B>=A.width*A.height}):[]},isNodeIntersecting:(m,v,x=!0)=>{const A=W5(m)?m:h(m);if(!A)return!1;const C=Fs(A,v);return x&&C>0||C>=v.width*v.height||C>=A.width*A.height},updateNode:d,updateNodeData:(m,v,x={replace:!1})=>{d(m,w=>{const A=typeof v=="function"?v(w):v;return x.replace?{...w,data:A}:{...w,data:{...w.data,...A}}},x)},updateEdge:p,updateEdgeData:(m,v,x={replace:!1})=>{p(m,w=>{const A=typeof v=="function"?v(w):v;return x.replace?{...w,data:A}:{...w,data:{...w.data,...A}}},x)},getNodesBounds:m=>{const{nodeLookup:v,nodeOrigin:x}=t.getState();return mO(m,{nodeLookup:v,nodeOrigin:x})},getHandleConnections:({type:m,id:v,nodeId:x})=>Array.from(t.getState().connectionLookup.get(`${x}-${m}${v?`-${v}`:""}`)?.values()??[]),getNodeConnections:({type:m,handleId:v,nodeId:x})=>Array.from(t.getState().connectionLookup.get(`${x}${m?v?`-${m}-${v}`:`-${m}`:""}`)?.values()??[]),fitView:async m=>{const v=t.getState().fitViewResolver??SO();return t.setState({fitViewQueued:!0,fitViewOptions:m,fitViewResolver:v}),n.nodeQueue.push(x=>[...x]),v.promise}}},[]);return ie.useMemo(()=>({...l,...e,viewportInitialized:i}),[i])}const z6=e=>e.selected,KR=typeof window<"u"?window:void 0;function JR({deleteKeyCode:e,multiSelectionKeyCode:t}){const n=qt(),{deleteElements:i}=Xc(),l=Ys(e,{actInsideInputWithModifier:!1}),s=Ys(t,{target:KR});ie.useEffect(()=>{if(l){const{edges:u,nodes:f}=n.getState();i({nodes:f.filter(z6),edges:u.filter(z6)}),n.setState({nodesSelectionActive:!1})}},[l]),ie.useEffect(()=>{n.setState({multiSelectionActive:s})},[s])}function WR(e){const t=qt();ie.useEffect(()=>{const n=()=>{if(!e.current||!(e.current.checkVisibility?.()??!0))return!1;const i=Ym(e.current);(i.height===0||i.width===0)&&t.getState().onError?.("004",Vr.error004()),t.setState({width:i.width||500,height:i.height||500})};if(e.current){n(),window.addEventListener("resize",n);const i=new ResizeObserver(()=>n());return i.observe(e.current),()=>{window.removeEventListener("resize",n),i&&e.current&&i.unobserve(e.current)}}},[])}const Pc={position:"absolute",width:"100%",height:"100%",top:0,left:0},eB=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function tB({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:n=!0,panOnScroll:i=!1,panOnScrollSpeed:l=.5,panOnScrollMode:s=Za.Free,zoomOnDoubleClick:u=!0,panOnDrag:f=!0,defaultViewport:h,translateExtent:d,minZoom:p,maxZoom:m,zoomActivationKeyCode:v,preventScrolling:x=!0,children:w,noWheelClassName:A,noPanClassName:C,onViewportChange:E,isControlledViewport:D,paneClickDistance:T,selectionOnDrag:B}){const U=qt(),z=ie.useRef(null),{userSelectionActive:I,lib:P,connectionInProgress:$}=ft(eB,Ht),V=Ys(v),G=ie.useRef();WR(z);const W=ie.useCallback(ce=>{E?.({x:ce[0],y:ce[1],zoom:ce[2]}),D||U.setState({transform:ce})},[E,D]);return ie.useEffect(()=>{if(z.current){G.current=aR({domNode:z.current,minZoom:p,maxZoom:m,translateExtent:d,viewport:h,onDraggingChange:L=>U.setState(Y=>Y.paneDragging===L?Y:{paneDragging:L}),onPanZoomStart:(L,Y)=>{const{onViewportChangeStart:J,onMoveStart:ne}=U.getState();ne?.(L,Y),J?.(Y)},onPanZoom:(L,Y)=>{const{onViewportChange:J,onMove:ne}=U.getState();ne?.(L,Y),J?.(Y)},onPanZoomEnd:(L,Y)=>{const{onViewportChangeEnd:J,onMoveEnd:ne}=U.getState();ne?.(L,Y),J?.(Y)}});const{x:ce,y:q,zoom:F}=G.current.getViewport();return U.setState({panZoom:G.current,transform:[ce,q,F],domNode:z.current.closest(".react-flow")}),()=>{G.current?.destroy()}}},[]),ie.useEffect(()=>{G.current?.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:n,panOnScroll:i,panOnScrollSpeed:l,panOnScrollMode:s,zoomOnDoubleClick:u,panOnDrag:f,zoomActivationKeyPressed:V,preventScrolling:x,noPanClassName:C,userSelectionActive:I,noWheelClassName:A,lib:P,onTransformChange:W,connectionInProgress:$,selectionOnDrag:B,paneClickDistance:T})},[e,t,n,i,l,s,u,f,V,x,C,I,A,P,W,$,B,T]),M.jsx("div",{className:"react-flow__renderer",ref:z,style:Pc,children:w})}const nB=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function rB(){const{userSelectionActive:e,userSelectionRect:t}=ft(nB,Ht);return e&&t?M.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}const i1=(e,t)=>n=>{n.target===t.current&&e?.(n)},iB=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function aB({isSelecting:e,selectionKeyPressed:t,selectionMode:n=Is.Full,panOnDrag:i,paneClickDistance:l,selectionOnDrag:s,onSelectionStart:u,onSelectionEnd:f,onPaneClick:h,onPaneContextMenu:d,onPaneScroll:p,onPaneMouseEnter:m,onPaneMouseMove:v,onPaneMouseLeave:x,children:w}){const A=qt(),{userSelectionActive:C,elementsSelectable:E,dragging:D,connectionInProgress:T}=ft(iB,Ht),B=E&&(e||C),U=ie.useRef(null),z=ie.useRef(),I=ie.useRef(new Set),P=ie.useRef(new Set),$=ie.useRef(!1),V=J=>{if($.current||T){$.current=!1;return}h?.(J),A.getState().resetSelectedElements(),A.setState({nodesSelectionActive:!1})},G=J=>{if(Array.isArray(i)&&i?.includes(2)){J.preventDefault();return}d?.(J)},W=p?J=>p(J):void 0,ce=J=>{$.current&&(J.stopPropagation(),$.current=!1)},q=J=>{const{domNode:ne}=A.getState();if(z.current=ne?.getBoundingClientRect(),!z.current)return;const R=J.target===U.current;if(!R&&!!J.target.closest(".nokey")||!e||!(s&&R||t)||J.button!==0||!J.isPrimary)return;J.target?.setPointerCapture?.(J.pointerId),$.current=!1;const{x:_,y:se}=zr(J.nativeEvent,z.current);A.setState({userSelectionRect:{width:0,height:0,startX:_,startY:se,x:_,y:se}}),R||(J.stopPropagation(),J.preventDefault())},F=J=>{const{userSelectionRect:ne,transform:R,nodeLookup:j,edgeLookup:Q,connectionLookup:_,triggerNodeChanges:se,triggerEdgeChanges:ve,defaultEdgeOptions:be,resetSelectedElements:we}=A.getState();if(!z.current||!ne)return;const{x:ge,y:ke}=zr(J.nativeEvent,z.current),{startX:je,startY:qe}=ne;if(!$.current){const et=t?0:l;if(Math.hypot(ge-je,ke-qe)<=et)return;we(),u?.(J)}$.current=!0;const _e={startX:je,startY:qe,x:ge<je?ge:je,y:ke<qe?ke:qe,width:Math.abs(ge-je),height:Math.abs(ke-qe)},Le=I.current,Ye=P.current;I.current=new Set(Fm(j,_e,R,n===Is.Partial,!0).map(et=>et.id)),P.current=new Set;const tt=be?.selectable??!0;for(const et of I.current){const ht=_.get(et);if(ht)for(const{edgeId:me}of ht.values()){const Ue=Q.get(me);Ue&&(Ue.selectable??tt)&&P.current.add(me)}}if(!e6(Le,I.current)){const et=Kl(j,I.current,!0);se(et)}if(!e6(Ye,P.current)){const et=Kl(Q,P.current);ve(et)}A.setState({userSelectionRect:_e,userSelectionActive:!0,nodesSelectionActive:!1})},L=J=>{J.button===0&&(J.target?.releasePointerCapture?.(J.pointerId),!C&&J.target===U.current&&A.getState().userSelectionRect&&V?.(J),A.setState({userSelectionActive:!1,userSelectionRect:null}),$.current&&(f?.(J),A.setState({nodesSelectionActive:I.current.size>0})))},Y=i===!0||Array.isArray(i)&&i.includes(0);return M.jsxs("div",{className:rn(["react-flow__pane",{draggable:Y,dragging:D,selection:e}]),onClick:B?void 0:i1(V,U),onContextMenu:i1(G,U),onWheel:i1(W,U),onPointerEnter:B?void 0:m,onPointerMove:B?F:v,onPointerUp:B?L:void 0,onPointerDownCapture:B?q:void 0,onClickCapture:B?ce:void 0,onPointerLeave:x,ref:U,style:Pc,children:[w,M.jsx(rB,{})]})}function K1({id:e,store:t,unselect:n=!1,nodeRef:i}){const{addSelectedNodes:l,unselectNodesAndEdges:s,multiSelectionActive:u,nodeLookup:f,onError:h}=t.getState(),d=f.get(e);if(!d){h?.("012",Vr.error012(e));return}t.setState({nodesSelectionActive:!1}),d.selected?(n||d.selected&&u)&&(s({nodes:[d],edges:[]}),requestAnimationFrame(()=>i?.current?.blur())):l([e])}function gv({nodeRef:e,disabled:t=!1,noDragClassName:n,handleSelector:i,nodeId:l,isSelectable:s,nodeClickDistance:u}){const f=qt(),[h,d]=ie.useState(!1),p=ie.useRef();return ie.useEffect(()=>{p.current=GO({getStoreItems:()=>f.getState(),onNodeMouseDown:m=>{K1({id:m,store:f,nodeRef:e})},onDragStart:()=>{d(!0)},onDragStop:()=>{d(!1)}})},[]),ie.useEffect(()=>{if(!(t||!e.current||!p.current))return p.current.update({noDragClassName:n,handleSelector:i,domNode:e.current,isSelectable:s,nodeId:l,nodeClickDistance:u}),()=>{p.current?.destroy()}},[n,i,t,s,e,l,u]),h}const lB=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function yv(){const e=qt();return ie.useCallback(n=>{const{nodeExtent:i,snapToGrid:l,snapGrid:s,nodesDraggable:u,onError:f,updateNodePositions:h,nodeLookup:d,nodeOrigin:p}=e.getState(),m=new Map,v=lB(u),x=l?s[0]:5,w=l?s[1]:5,A=n.direction.x*x*n.factor,C=n.direction.y*w*n.factor;for(const[,E]of d){if(!v(E))continue;let D={x:E.internals.positionAbsolute.x+A,y:E.internals.positionAbsolute.y+C};l&&(D=nu(D,s));const{position:T,positionAbsolute:B}=j8({nodeId:E.id,nextPosition:D,nodeLookup:d,nodeExtent:i,nodeOrigin:p,onError:f});E.position=T,E.internals.positionAbsolute=B,m.set(E.id,E)}h(m)},[])}const Qm=ie.createContext(null),oB=Qm.Provider;Qm.Consumer;const vv=()=>ie.useContext(Qm),sB=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),uB=(e,t,n)=>i=>{const{connectionClickStartHandle:l,connectionMode:s,connection:u}=i,{fromHandle:f,toHandle:h,isValid:d}=u,p=h?.nodeId===e&&h?.id===t&&h?.type===n;return{connectingFrom:f?.nodeId===e&&f?.id===t&&f?.type===n,connectingTo:p,clickConnecting:l?.nodeId===e&&l?.id===t&&l?.type===n,isPossibleEndHandle:s===so.Strict?f?.type!==n:e!==f?.nodeId||t!==f?.id,connectionInProcess:!!f,clickConnectionInProcess:!!l,valid:p&&d}};function cB({type:e="source",position:t=Be.Top,isValidConnection:n,isConnectable:i=!0,isConnectableStart:l=!0,isConnectableEnd:s=!0,id:u,onConnect:f,children:h,className:d,onMouseDown:p,onTouchStart:m,...v},x){const w=u||null,A=e==="target",C=qt(),E=vv(),{connectOnClick:D,noPanClassName:T,rfId:B}=ft(sB,Ht),{connectingFrom:U,connectingTo:z,clickConnecting:I,isPossibleEndHandle:P,connectionInProcess:$,clickConnectionInProcess:V,valid:G}=ft(uB(E,w,e),Ht);E||C.getState().onError?.("010",Vr.error010());const W=F=>{const{defaultEdgeOptions:L,onConnect:Y,hasDefaultEdges:J}=C.getState(),ne={...L,...F};if(J){const{edges:R,setEdges:j}=C.getState();j(zO(ne,R))}Y?.(ne),f?.(ne)},ce=F=>{if(!E)return;const L=$8(F.nativeEvent);if(l&&(L&&F.button===0||!L)){const Y=C.getState();Z1.onPointerDown(F.nativeEvent,{handleDomNode:F.currentTarget,autoPanOnConnect:Y.autoPanOnConnect,connectionMode:Y.connectionMode,connectionRadius:Y.connectionRadius,domNode:Y.domNode,nodeLookup:Y.nodeLookup,lib:Y.lib,isTarget:A,handleId:w,nodeId:E,flowId:Y.rfId,panBy:Y.panBy,cancelConnection:Y.cancelConnection,onConnectStart:Y.onConnectStart,onConnectEnd:(...J)=>C.getState().onConnectEnd?.(...J),updateConnection:Y.updateConnection,onConnect:W,isValidConnection:n||((...J)=>C.getState().isValidConnection?.(...J)??!0),getTransform:()=>C.getState().transform,getFromHandle:()=>C.getState().connection.fromHandle,autoPanSpeed:Y.autoPanSpeed,dragThreshold:Y.connectionDragThreshold})}L?p?.(F):m?.(F)},q=F=>{const{onClickConnectStart:L,onClickConnectEnd:Y,connectionClickStartHandle:J,connectionMode:ne,isValidConnection:R,lib:j,rfId:Q,nodeLookup:_,connection:se}=C.getState();if(!E||!J&&!l)return;if(!J){L?.(F.nativeEvent,{nodeId:E,handleId:w,handleType:e}),C.setState({connectionClickStartHandle:{nodeId:E,type:e,id:w}});return}const ve=Y8(F.target),be=n||R,{connection:we,isValid:ge}=Z1.isValid(F.nativeEvent,{handle:{nodeId:E,id:w,type:e},connectionMode:ne,fromNodeId:J.nodeId,fromHandleId:J.id||null,fromType:J.type,isValidConnection:be,flowId:Q,doc:ve,lib:j,nodeLookup:_});ge&&we&&W(we);const ke=structuredClone(se);delete ke.inProgress,ke.toPosition=ke.toHandle?ke.toHandle.position:null,Y?.(F,ke),C.setState({connectionClickStartHandle:null})};return M.jsx("div",{"data-handleid":w,"data-nodeid":E,"data-handlepos":t,"data-id":`${B}-${E}-${w}-${e}`,className:rn(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",T,d,{source:!A,target:A,connectable:i,connectablestart:l,connectableend:s,clickconnecting:I,connectingfrom:U,connectingto:z,valid:G,connectionindicator:i&&(!$||P)&&($||V?s:l)}]),onMouseDown:ce,onTouchStart:ce,onClick:D?q:void 0,ref:x,...v,children:h})}const ma=ie.memo(mv(cB));function fB({data:e,isConnectable:t,sourcePosition:n=Be.Bottom}){return M.jsxs(M.Fragment,{children:[e?.label,M.jsx(ma,{type:"source",position:n,isConnectable:t})]})}function hB({data:e,isConnectable:t,targetPosition:n=Be.Top,sourcePosition:i=Be.Bottom}){return M.jsxs(M.Fragment,{children:[M.jsx(ma,{type:"target",position:n,isConnectable:t}),e?.label,M.jsx(ma,{type:"source",position:i,isConnectable:t})]})}function dB(){return null}function mB({data:e,isConnectable:t,targetPosition:n=Be.Top}){return M.jsxs(M.Fragment,{children:[M.jsx(ma,{type:"target",position:n,isConnectable:t}),e?.label]})}const gc={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},N6={input:fB,default:hB,output:mB,group:dB};function pB(e){return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??e.style?.width,height:e.height??e.initialHeight??e.style?.height}:{width:e.width??e.style?.width,height:e.height??e.style?.height}}const gB=e=>{const{width:t,height:n,x:i,y:l}=tu(e.nodeLookup,{filter:s=>!!s.selected});return{width:Mr(t)?t:null,height:Mr(n)?n:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${i}px,${l}px)`}};function yB({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:n}){const i=qt(),{width:l,height:s,transformString:u,userSelectionActive:f}=ft(gB,Ht),h=yv(),d=ie.useRef(null);ie.useEffect(()=>{n||d.current?.focus({preventScroll:!0})},[n]);const p=!f&&l!==null&&s!==null;if(gv({nodeRef:d,disabled:!p}),!p)return null;const m=e?x=>{const w=i.getState().nodes.filter(A=>A.selected);e(x,w)}:void 0,v=x=>{Object.prototype.hasOwnProperty.call(gc,x.key)&&(x.preventDefault(),h({direction:gc[x.key],factor:x.shiftKey?4:1}))};return M.jsx("div",{className:rn(["react-flow__nodesselection","react-flow__container",t]),style:{transform:u},children:M.jsx("div",{ref:d,className:"react-flow__nodesselection-rect",onContextMenu:m,tabIndex:n?void 0:-1,onKeyDown:n?void 0:v,style:{width:l,height:s}})})}const D6=typeof window<"u"?window:void 0,vB=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function xv({children:e,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:i,onPaneMouseLeave:l,onPaneContextMenu:s,onPaneScroll:u,paneClickDistance:f,deleteKeyCode:h,selectionKeyCode:d,selectionOnDrag:p,selectionMode:m,onSelectionStart:v,onSelectionEnd:x,multiSelectionKeyCode:w,panActivationKeyCode:A,zoomActivationKeyCode:C,elementsSelectable:E,zoomOnScroll:D,zoomOnPinch:T,panOnScroll:B,panOnScrollSpeed:U,panOnScrollMode:z,zoomOnDoubleClick:I,panOnDrag:P,defaultViewport:$,translateExtent:V,minZoom:G,maxZoom:W,preventScrolling:ce,onSelectionContextMenu:q,noWheelClassName:F,noPanClassName:L,disableKeyboardA11y:Y,onViewportChange:J,isControlledViewport:ne}){const{nodesSelectionActive:R,userSelectionActive:j}=ft(vB,Ht),Q=Ys(d,{target:D6}),_=Ys(A,{target:D6}),se=_||P,ve=_||B,be=p&&se!==!0,we=Q||j||be;return JR({deleteKeyCode:h,multiSelectionKeyCode:w}),M.jsx(tB,{onPaneContextMenu:s,elementsSelectable:E,zoomOnScroll:D,zoomOnPinch:T,panOnScroll:ve,panOnScrollSpeed:U,panOnScrollMode:z,zoomOnDoubleClick:I,panOnDrag:!Q&&se,defaultViewport:$,translateExtent:V,minZoom:G,maxZoom:W,zoomActivationKeyCode:C,preventScrolling:ce,noWheelClassName:F,noPanClassName:L,onViewportChange:J,isControlledViewport:ne,paneClickDistance:f,selectionOnDrag:be,children:M.jsxs(aB,{onSelectionStart:v,onSelectionEnd:x,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:i,onPaneMouseLeave:l,onPaneContextMenu:s,onPaneScroll:u,panOnDrag:se,isSelecting:!!we,selectionMode:m,selectionKeyPressed:Q,paneClickDistance:f,selectionOnDrag:be,children:[e,R&&M.jsx(yB,{onSelectionContextMenu:q,noPanClassName:L,disableKeyboardA11y:Y})]})})}xv.displayName="FlowRenderer";const xB=ie.memo(xv),bB=e=>t=>e?Fm(t.nodeLookup,{x:0,y:0,width:t.width,height:t.height},t.transform,!0).map(n=>n.id):Array.from(t.nodeLookup.keys());function wB(e){return ft(ie.useCallback(bB(e),[e]),Ht)}const SB=e=>e.updateNodeInternals;function kB(){const e=ft(SB),[t]=ie.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(n=>{const i=new Map;n.forEach(l=>{const s=l.target.getAttribute("data-id");i.set(s,{id:s,nodeElement:l.target,force:!0})}),e(i)}));return ie.useEffect(()=>()=>{t?.disconnect()},[t]),t}function EB({node:e,nodeType:t,hasDimensions:n,resizeObserver:i}){const l=qt(),s=ie.useRef(null),u=ie.useRef(null),f=ie.useRef(e.sourcePosition),h=ie.useRef(e.targetPosition),d=ie.useRef(t),p=n&&!!e.internals.handleBounds;return ie.useEffect(()=>{s.current&&!e.hidden&&(!p||u.current!==s.current)&&(u.current&&i?.unobserve(u.current),i?.observe(s.current),u.current=s.current)},[p,e.hidden]),ie.useEffect(()=>()=>{u.current&&(i?.unobserve(u.current),u.current=null)},[]),ie.useEffect(()=>{if(s.current){const m=d.current!==t,v=f.current!==e.sourcePosition,x=h.current!==e.targetPosition;(m||v||x)&&(d.current=t,f.current=e.sourcePosition,h.current=e.targetPosition,l.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:s.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),s}function AB({id:e,onClick:t,onMouseEnter:n,onMouseMove:i,onMouseLeave:l,onContextMenu:s,onDoubleClick:u,nodesDraggable:f,elementsSelectable:h,nodesConnectable:d,nodesFocusable:p,resizeObserver:m,noDragClassName:v,noPanClassName:x,disableKeyboardA11y:w,rfId:A,nodeTypes:C,nodeClickDistance:E,onError:D}){const{node:T,internals:B,isParent:U}=ft(ge=>{const ke=ge.nodeLookup.get(e),je=ge.parentLookup.has(e);return{node:ke,internals:ke.internals,isParent:je}},Ht);let z=T.type||"default",I=C?.[z]||N6[z];I===void 0&&(D?.("003",Vr.error003(z)),z="default",I=C?.default||N6.default);const P=!!(T.draggable||f&&typeof T.draggable>"u"),$=!!(T.selectable||h&&typeof T.selectable>"u"),V=!!(T.connectable||d&&typeof T.connectable>"u"),G=!!(T.focusable||p&&typeof T.focusable>"u"),W=qt(),ce=F8(T),q=EB({node:T,nodeType:z,hasDimensions:ce,resizeObserver:m}),F=gv({nodeRef:q,disabled:T.hidden||!P,noDragClassName:v,handleSelector:T.dragHandle,nodeId:e,isSelectable:$,nodeClickDistance:E}),L=yv();if(T.hidden)return null;const Y=Mi(T),J=pB(T),ne=$||P||t||n||i||l,R=n?ge=>n(ge,{...B.userNode}):void 0,j=i?ge=>i(ge,{...B.userNode}):void 0,Q=l?ge=>l(ge,{...B.userNode}):void 0,_=s?ge=>s(ge,{...B.userNode}):void 0,se=u?ge=>u(ge,{...B.userNode}):void 0,ve=ge=>{const{selectNodesOnDrag:ke,nodeDragThreshold:je}=W.getState();$&&(!ke||!P||je>0)&&K1({id:e,store:W,nodeRef:q}),t&&t(ge,{...B.userNode})},be=ge=>{if(!(G8(ge.nativeEvent)||w)){if(O8.includes(ge.key)&&$){const ke=ge.key==="Escape";K1({id:e,store:W,unselect:ke,nodeRef:q})}else if(P&&T.selected&&Object.prototype.hasOwnProperty.call(gc,ge.key)){ge.preventDefault();const{ariaLabelConfig:ke}=W.getState();W.setState({ariaLiveMessage:ke["node.a11yDescription.ariaLiveMessage"]({direction:ge.key.replace("Arrow","").toLowerCase(),x:~~B.positionAbsolute.x,y:~~B.positionAbsolute.y})}),L({direction:gc[ge.key],factor:ge.shiftKey?4:1})}}},we=()=>{if(w||!q.current?.matches(":focus-visible"))return;const{transform:ge,width:ke,height:je,autoPanOnNodeFocus:qe,setCenter:_e}=W.getState();if(!qe)return;Fm(new Map([[e,T]]),{x:0,y:0,width:ke,height:je},ge,!0).length>0||_e(T.position.x+Y.width/2,T.position.y+Y.height/2,{zoom:ge[2]})};return M.jsx("div",{className:rn(["react-flow__node",`react-flow__node-${z}`,{[x]:P},T.className,{selected:T.selected,selectable:$,parent:U,draggable:P,dragging:F}]),ref:q,style:{zIndex:B.z,transform:`translate(${B.positionAbsolute.x}px,${B.positionAbsolute.y}px)`,pointerEvents:ne?"all":"none",visibility:ce?"visible":"hidden",...T.style,...J},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:R,onMouseMove:j,onMouseLeave:Q,onContextMenu:_,onClick:ve,onDoubleClick:se,onKeyDown:G?be:void 0,tabIndex:G?0:void 0,onFocus:G?we:void 0,role:T.ariaRole??(G?"group":void 0),"aria-roledescription":"node","aria-describedby":w?void 0:`${cv}-${A}`,"aria-label":T.ariaLabel,...T.domAttributes,children:M.jsx(oB,{value:e,children:M.jsx(I,{id:e,data:T.data,type:z,positionAbsoluteX:B.positionAbsolute.x,positionAbsoluteY:B.positionAbsolute.y,selected:T.selected??!1,selectable:$,draggable:P,deletable:T.deletable??!0,isConnectable:V,sourcePosition:T.sourcePosition,targetPosition:T.targetPosition,dragging:F,dragHandle:T.dragHandle,zIndex:B.z,parentId:T.parentId,...Y})})})}var CB=ie.memo(AB);const TB=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function bv(e){const{nodesDraggable:t,nodesConnectable:n,nodesFocusable:i,elementsSelectable:l,onError:s}=ft(TB,Ht),u=wB(e.onlyRenderVisibleElements),f=kB();return M.jsx("div",{className:"react-flow__nodes",style:Pc,children:u.map(h=>M.jsx(CB,{id:h,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:f,nodesDraggable:t,nodesConnectable:n,nodesFocusable:i,elementsSelectable:l,nodeClickDistance:e.nodeClickDistance,onError:s},h))})}bv.displayName="NodeRenderer";const MB=ie.memo(bv);function zB(e){return ft(ie.useCallback(n=>{if(!e)return n.edges.map(l=>l.id);const i=[];if(n.width&&n.height)for(const l of n.edges){const s=n.nodeLookup.get(l.source),u=n.nodeLookup.get(l.target);s&&u&&CO({sourceNode:s,targetNode:u,width:n.width,height:n.height,transform:n.transform})&&i.push(l.id)}return i},[e]),Ht)}const NB=({color:e="none",strokeWidth:t=1})=>{const n={strokeWidth:t,...e&&{stroke:e}};return M.jsx("polyline",{className:"arrow",style:n,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},DB=({color:e="none",strokeWidth:t=1})=>{const n={strokeWidth:t,...e&&{stroke:e,fill:e}};return M.jsx("polyline",{className:"arrowclosed",style:n,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},_6={[Us.Arrow]:NB,[Us.ArrowClosed]:DB};function _B(e){const t=qt();return ie.useMemo(()=>Object.prototype.hasOwnProperty.call(_6,e)?_6[e]:(t.getState().onError?.("009",Vr.error009(e)),null),[e])}const OB=({id:e,type:t,color:n,width:i=12.5,height:l=12.5,markerUnits:s="strokeWidth",strokeWidth:u,orient:f="auto-start-reverse"})=>{const h=_B(t);return h?M.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${i}`,markerHeight:`${l}`,viewBox:"-10 -10 20 20",markerUnits:s,orient:f,refX:"0",refY:"0",children:M.jsx(h,{color:n,strokeWidth:u})}):null},wv=({defaultColor:e,rfId:t})=>{const n=ft(s=>s.edges),i=ft(s=>s.defaultEdgeOptions),l=ie.useMemo(()=>RO(n,{id:t,defaultColor:e,defaultMarkerStart:i?.markerStart,defaultMarkerEnd:i?.markerEnd}),[n,i,t,e]);return l.length?M.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:M.jsx("defs",{children:l.map(s=>M.jsx(OB,{id:s.id,type:s.type,color:s.color,width:s.width,height:s.height,markerUnits:s.markerUnits,strokeWidth:s.strokeWidth,orient:s.orient},s.id))})}):null};wv.displayName="MarkerDefinitions";var RB=ie.memo(wv);function Sv({x:e,y:t,label:n,labelStyle:i,labelShowBg:l=!0,labelBgStyle:s,labelBgPadding:u=[2,4],labelBgBorderRadius:f=2,children:h,className:d,...p}){const[m,v]=ie.useState({x:1,y:0,width:0,height:0}),x=rn(["react-flow__edge-textwrapper",d]),w=ie.useRef(null);return ie.useEffect(()=>{if(w.current){const A=w.current.getBBox();v({x:A.x,y:A.y,width:A.width,height:A.height})}},[n]),n?M.jsxs("g",{transform:`translate(${e-m.width/2} ${t-m.height/2})`,className:x,visibility:m.width?"visible":"hidden",...p,children:[l&&M.jsx("rect",{width:m.width+2*u[0],x:-u[0],y:-u[1],height:m.height+2*u[1],className:"react-flow__edge-textbg",style:s,rx:f,ry:f}),M.jsx("text",{className:"react-flow__edge-text",y:m.height/2,dy:"0.3em",ref:w,style:i,children:n}),h]}):null}Sv.displayName="EdgeText";const BB=ie.memo(Sv);function Zc({path:e,labelX:t,labelY:n,label:i,labelStyle:l,labelShowBg:s,labelBgStyle:u,labelBgPadding:f,labelBgBorderRadius:h,interactionWidth:d=20,...p}){return M.jsxs(M.Fragment,{children:[M.jsx("path",{...p,d:e,fill:"none",className:rn(["react-flow__edge-path",p.className])}),d?M.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:d,className:"react-flow__edge-interaction"}):null,i&&Mr(t)&&Mr(n)?M.jsx(BB,{x:t,y:n,label:i,labelStyle:l,labelShowBg:s,labelBgStyle:u,labelBgPadding:f,labelBgBorderRadius:h}):null]})}function O6({pos:e,x1:t,y1:n,x2:i,y2:l}){return e===Be.Left||e===Be.Right?[.5*(t+i),n]:[t,.5*(n+l)]}function kv({sourceX:e,sourceY:t,sourcePosition:n=Be.Bottom,targetX:i,targetY:l,targetPosition:s=Be.Top}){const[u,f]=O6({pos:n,x1:e,y1:t,x2:i,y2:l}),[h,d]=O6({pos:s,x1:i,y1:l,x2:e,y2:t}),[p,m,v,x]=X8({sourceX:e,sourceY:t,targetX:i,targetY:l,sourceControlX:u,sourceControlY:f,targetControlX:h,targetControlY:d});return[`M${e},${t} C${u},${f} ${h},${d} ${i},${l}`,p,m,v,x]}function Ev(e){return ie.memo(({id:t,sourceX:n,sourceY:i,targetX:l,targetY:s,sourcePosition:u,targetPosition:f,label:h,labelStyle:d,labelShowBg:p,labelBgStyle:m,labelBgPadding:v,labelBgBorderRadius:x,style:w,markerEnd:A,markerStart:C,interactionWidth:E})=>{const[D,T,B]=kv({sourceX:n,sourceY:i,sourcePosition:u,targetX:l,targetY:s,targetPosition:f}),U=e.isInternal?void 0:t;return M.jsx(Zc,{id:U,path:D,labelX:T,labelY:B,label:h,labelStyle:d,labelShowBg:p,labelBgStyle:m,labelBgPadding:v,labelBgBorderRadius:x,style:w,markerEnd:A,markerStart:C,interactionWidth:E})})}const LB=Ev({isInternal:!1}),Av=Ev({isInternal:!0});LB.displayName="SimpleBezierEdge";Av.displayName="SimpleBezierEdgeInternal";function Cv(e){return ie.memo(({id:t,sourceX:n,sourceY:i,targetX:l,targetY:s,label:u,labelStyle:f,labelShowBg:h,labelBgStyle:d,labelBgPadding:p,labelBgBorderRadius:m,style:v,sourcePosition:x=Be.Bottom,targetPosition:w=Be.Top,markerEnd:A,markerStart:C,pathOptions:E,interactionWidth:D})=>{const[T,B,U]=$1({sourceX:n,sourceY:i,sourcePosition:x,targetX:l,targetY:s,targetPosition:w,borderRadius:E?.borderRadius,offset:E?.offset,stepPosition:E?.stepPosition}),z=e.isInternal?void 0:t;return M.jsx(Zc,{id:z,path:T,labelX:B,labelY:U,label:u,labelStyle:f,labelShowBg:h,labelBgStyle:d,labelBgPadding:p,labelBgBorderRadius:m,style:v,markerEnd:A,markerStart:C,interactionWidth:D})})}const Tv=Cv({isInternal:!1}),Mv=Cv({isInternal:!0});Tv.displayName="SmoothStepEdge";Mv.displayName="SmoothStepEdgeInternal";function zv(e){return ie.memo(({id:t,...n})=>{const i=e.isInternal?void 0:t;return M.jsx(Tv,{...n,id:i,pathOptions:ie.useMemo(()=>({borderRadius:0,offset:n.pathOptions?.offset}),[n.pathOptions?.offset])})})}const HB=zv({isInternal:!1}),Nv=zv({isInternal:!0});HB.displayName="StepEdge";Nv.displayName="StepEdgeInternal";function Dv(e){return ie.memo(({id:t,sourceX:n,sourceY:i,targetX:l,targetY:s,label:u,labelStyle:f,labelShowBg:h,labelBgStyle:d,labelBgPadding:p,labelBgBorderRadius:m,style:v,markerEnd:x,markerStart:w,interactionWidth:A})=>{const[C,E,D]=Q8({sourceX:n,sourceY:i,targetX:l,targetY:s}),T=e.isInternal?void 0:t;return M.jsx(Zc,{id:T,path:C,labelX:E,labelY:D,label:u,labelStyle:f,labelShowBg:h,labelBgStyle:d,labelBgPadding:p,labelBgBorderRadius:m,style:v,markerEnd:x,markerStart:w,interactionWidth:A})})}const jB=Dv({isInternal:!1}),_v=Dv({isInternal:!0});jB.displayName="StraightEdge";_v.displayName="StraightEdgeInternal";function Ov(e){return ie.memo(({id:t,sourceX:n,sourceY:i,targetX:l,targetY:s,sourcePosition:u=Be.Bottom,targetPosition:f=Be.Top,label:h,labelStyle:d,labelShowBg:p,labelBgStyle:m,labelBgPadding:v,labelBgBorderRadius:x,style:w,markerEnd:A,markerStart:C,pathOptions:E,interactionWidth:D})=>{const[T,B,U]=P8({sourceX:n,sourceY:i,sourcePosition:u,targetX:l,targetY:s,targetPosition:f,curvature:E?.curvature}),z=e.isInternal?void 0:t;return M.jsx(Zc,{id:z,path:T,labelX:B,labelY:U,label:h,labelStyle:d,labelShowBg:p,labelBgStyle:m,labelBgPadding:v,labelBgBorderRadius:x,style:w,markerEnd:A,markerStart:C,interactionWidth:D})})}const qB=Ov({isInternal:!1}),Rv=Ov({isInternal:!0});qB.displayName="BezierEdge";Rv.displayName="BezierEdgeInternal";const R6={default:Rv,straight:_v,step:Nv,smoothstep:Mv,simplebezier:Av},B6={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},IB=(e,t,n)=>n===Be.Left?e-t:n===Be.Right?e+t:e,UB=(e,t,n)=>n===Be.Top?e-t:n===Be.Bottom?e+t:e,L6="react-flow__edgeupdater";function H6({position:e,centerX:t,centerY:n,radius:i=10,onMouseDown:l,onMouseEnter:s,onMouseOut:u,type:f}){return M.jsx("circle",{onMouseDown:l,onMouseEnter:s,onMouseOut:u,className:rn([L6,`${L6}-${f}`]),cx:IB(t,i,e),cy:UB(n,i,e),r:i,stroke:"transparent",fill:"transparent"})}function FB({isReconnectable:e,reconnectRadius:t,edge:n,sourceX:i,sourceY:l,targetX:s,targetY:u,sourcePosition:f,targetPosition:h,onReconnect:d,onReconnectStart:p,onReconnectEnd:m,setReconnecting:v,setUpdateHover:x}){const w=qt(),A=(B,U)=>{if(B.button!==0)return;const{autoPanOnConnect:z,domNode:I,connectionMode:P,connectionRadius:$,lib:V,onConnectStart:G,cancelConnection:W,nodeLookup:ce,rfId:q,panBy:F,updateConnection:L}=w.getState(),Y=U.type==="target",J=(j,Q)=>{v(!1),m?.(j,n,U.type,Q)},ne=j=>d?.(n,j),R=(j,Q)=>{v(!0),p?.(B,n,U.type),G?.(j,Q)};Z1.onPointerDown(B.nativeEvent,{autoPanOnConnect:z,connectionMode:P,connectionRadius:$,domNode:I,handleId:U.id,nodeId:U.nodeId,nodeLookup:ce,isTarget:Y,edgeUpdaterType:U.type,lib:V,flowId:q,cancelConnection:W,panBy:F,isValidConnection:(...j)=>w.getState().isValidConnection?.(...j)??!0,onConnect:ne,onConnectStart:R,onConnectEnd:(...j)=>w.getState().onConnectEnd?.(...j),onReconnectEnd:J,updateConnection:L,getTransform:()=>w.getState().transform,getFromHandle:()=>w.getState().connection.fromHandle,dragThreshold:w.getState().connectionDragThreshold,handleDomNode:B.currentTarget})},C=B=>A(B,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),E=B=>A(B,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),D=()=>x(!0),T=()=>x(!1);return M.jsxs(M.Fragment,{children:[(e===!0||e==="source")&&M.jsx(H6,{position:f,centerX:i,centerY:l,radius:t,onMouseDown:C,onMouseEnter:D,onMouseOut:T,type:"source"}),(e===!0||e==="target")&&M.jsx(H6,{position:h,centerX:s,centerY:u,radius:t,onMouseDown:E,onMouseEnter:D,onMouseOut:T,type:"target"})]})}function VB({id:e,edgesFocusable:t,edgesReconnectable:n,elementsSelectable:i,onClick:l,onDoubleClick:s,onContextMenu:u,onMouseEnter:f,onMouseMove:h,onMouseLeave:d,reconnectRadius:p,onReconnect:m,onReconnectStart:v,onReconnectEnd:x,rfId:w,edgeTypes:A,noPanClassName:C,onError:E,disableKeyboardA11y:D}){let T=ft(_e=>_e.edgeLookup.get(e));const B=ft(_e=>_e.defaultEdgeOptions);T=B?{...B,...T}:T;let U=T.type||"default",z=A?.[U]||R6[U];z===void 0&&(E?.("011",Vr.error011(U)),U="default",z=A?.default||R6.default);const I=!!(T.focusable||t&&typeof T.focusable>"u"),P=typeof m<"u"&&(T.reconnectable||n&&typeof T.reconnectable>"u"),$=!!(T.selectable||i&&typeof T.selectable>"u"),V=ie.useRef(null),[G,W]=ie.useState(!1),[ce,q]=ie.useState(!1),F=qt(),{zIndex:L,sourceX:Y,sourceY:J,targetX:ne,targetY:R,sourcePosition:j,targetPosition:Q}=ft(ie.useCallback(_e=>{const Le=_e.nodeLookup.get(T.source),Ye=_e.nodeLookup.get(T.target);if(!Le||!Ye)return{zIndex:T.zIndex,...B6};const tt=OO({id:e,sourceNode:Le,targetNode:Ye,sourceHandle:T.sourceHandle||null,targetHandle:T.targetHandle||null,connectionMode:_e.connectionMode,onError:E});return{zIndex:AO({selected:T.selected,zIndex:T.zIndex,sourceNode:Le,targetNode:Ye,elevateOnSelect:_e.elevateEdgesOnSelect,zIndexMode:_e.zIndexMode}),...tt||B6}},[T.source,T.target,T.sourceHandle,T.targetHandle,T.selected,T.zIndex]),Ht),_=ie.useMemo(()=>T.markerStart?`url('#${X1(T.markerStart,w)}')`:void 0,[T.markerStart,w]),se=ie.useMemo(()=>T.markerEnd?`url('#${X1(T.markerEnd,w)}')`:void 0,[T.markerEnd,w]);if(T.hidden||Y===null||J===null||ne===null||R===null)return null;const ve=_e=>{const{addSelectedEdges:Le,unselectNodesAndEdges:Ye,multiSelectionActive:tt}=F.getState();$&&(F.setState({nodesSelectionActive:!1}),T.selected&&tt?(Ye({nodes:[],edges:[T]}),V.current?.blur()):Le([e])),l&&l(_e,T)},be=s?_e=>{s(_e,{...T})}:void 0,we=u?_e=>{u(_e,{...T})}:void 0,ge=f?_e=>{f(_e,{...T})}:void 0,ke=h?_e=>{h(_e,{...T})}:void 0,je=d?_e=>{d(_e,{...T})}:void 0,qe=_e=>{if(!D&&O8.includes(_e.key)&&$){const{unselectNodesAndEdges:Le,addSelectedEdges:Ye}=F.getState();_e.key==="Escape"?(V.current?.blur(),Le({edges:[T]})):Ye([e])}};return M.jsx("svg",{style:{zIndex:L},children:M.jsxs("g",{className:rn(["react-flow__edge",`react-flow__edge-${U}`,T.className,C,{selected:T.selected,animated:T.animated,inactive:!$&&!l,updating:G,selectable:$}]),onClick:ve,onDoubleClick:be,onContextMenu:we,onMouseEnter:ge,onMouseMove:ke,onMouseLeave:je,onKeyDown:I?qe:void 0,tabIndex:I?0:void 0,role:T.ariaRole??(I?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":T.ariaLabel===null?void 0:T.ariaLabel||`Edge from ${T.source} to ${T.target}`,"aria-describedby":I?`${fv}-${w}`:void 0,ref:V,...T.domAttributes,children:[!ce&&M.jsx(z,{id:e,source:T.source,target:T.target,type:T.type,selected:T.selected,animated:T.animated,selectable:$,deletable:T.deletable??!0,label:T.label,labelStyle:T.labelStyle,labelShowBg:T.labelShowBg,labelBgStyle:T.labelBgStyle,labelBgPadding:T.labelBgPadding,labelBgBorderRadius:T.labelBgBorderRadius,sourceX:Y,sourceY:J,targetX:ne,targetY:R,sourcePosition:j,targetPosition:Q,data:T.data,style:T.style,sourceHandleId:T.sourceHandle,targetHandleId:T.targetHandle,markerStart:_,markerEnd:se,pathOptions:"pathOptions"in T?T.pathOptions:void 0,interactionWidth:T.interactionWidth}),P&&M.jsx(FB,{edge:T,isReconnectable:P,reconnectRadius:p,onReconnect:m,onReconnectStart:v,onReconnectEnd:x,sourceX:Y,sourceY:J,targetX:ne,targetY:R,sourcePosition:j,targetPosition:Q,setUpdateHover:W,setReconnecting:q})]})})}var YB=ie.memo(VB);const GB=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function Bv({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:n,edgeTypes:i,noPanClassName:l,onReconnect:s,onEdgeContextMenu:u,onEdgeMouseEnter:f,onEdgeMouseMove:h,onEdgeMouseLeave:d,onEdgeClick:p,reconnectRadius:m,onEdgeDoubleClick:v,onReconnectStart:x,onReconnectEnd:w,disableKeyboardA11y:A}){const{edgesFocusable:C,edgesReconnectable:E,elementsSelectable:D,onError:T}=ft(GB,Ht),B=zB(t);return M.jsxs("div",{className:"react-flow__edges",children:[M.jsx(RB,{defaultColor:e,rfId:n}),B.map(U=>M.jsx(YB,{id:U,edgesFocusable:C,edgesReconnectable:E,elementsSelectable:D,noPanClassName:l,onReconnect:s,onContextMenu:u,onMouseEnter:f,onMouseMove:h,onMouseLeave:d,onClick:p,reconnectRadius:m,onDoubleClick:v,onReconnectStart:x,onReconnectEnd:w,rfId:n,onError:T,edgeTypes:i,disableKeyboardA11y:A},U))]})}Bv.displayName="EdgeRenderer";const $B=ie.memo(Bv),XB=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function PB({children:e}){const t=ft(XB);return M.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:t},children:e})}function ZB(e){const t=Xc(),n=ie.useRef(!1);ie.useEffect(()=>{!n.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),n.current=!0)},[e,t.viewportInitialized])}const QB=e=>e.panZoom?.syncViewport;function KB(e){const t=ft(QB),n=qt();return ie.useEffect(()=>{e&&(t?.(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function JB(e){return e.connection.inProgress?{...e.connection,to:ru(e.connection.to,e.transform)}:{...e.connection}}function WB(e){return JB}function eL(e){const t=WB();return ft(t,Ht)}const tL=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function nL({containerStyle:e,style:t,type:n,component:i}){const{nodesConnectable:l,width:s,height:u,isValid:f,inProgress:h}=ft(tL,Ht);return!(s&&l&&h)?null:M.jsx("svg",{style:e,width:s,height:u,className:"react-flow__connectionline react-flow__container",children:M.jsx("g",{className:rn(["react-flow__connection",L8(f)]),children:M.jsx(Lv,{style:t,type:n,CustomComponent:i,isValid:f})})})}const Lv=({style:e,type:t=ha.Bezier,CustomComponent:n,isValid:i})=>{const{inProgress:l,from:s,fromNode:u,fromHandle:f,fromPosition:h,to:d,toNode:p,toHandle:m,toPosition:v,pointer:x}=eL();if(!l)return;if(n)return M.jsx(n,{connectionLineType:t,connectionLineStyle:e,fromNode:u,fromHandle:f,fromX:s.x,fromY:s.y,toX:d.x,toY:d.y,fromPosition:h,toPosition:v,connectionStatus:L8(i),toNode:p,toHandle:m,pointer:x});let w="";const A={sourceX:s.x,sourceY:s.y,sourcePosition:h,targetX:d.x,targetY:d.y,targetPosition:v};switch(t){case ha.Bezier:[w]=P8(A);break;case ha.SimpleBezier:[w]=kv(A);break;case ha.Step:[w]=$1({...A,borderRadius:0});break;case ha.SmoothStep:[w]=$1(A);break;default:[w]=Q8(A)}return M.jsx("path",{d:w,fill:"none",className:"react-flow__connection-path",style:e})};Lv.displayName="ConnectionLine";const rL={};function j6(e=rL){ie.useRef(e),qt(),ie.useEffect(()=>{},[e])}function iL(){qt(),ie.useRef(!1),ie.useEffect(()=>{},[])}function Hv({nodeTypes:e,edgeTypes:t,onInit:n,onNodeClick:i,onEdgeClick:l,onNodeDoubleClick:s,onEdgeDoubleClick:u,onNodeMouseEnter:f,onNodeMouseMove:h,onNodeMouseLeave:d,onNodeContextMenu:p,onSelectionContextMenu:m,onSelectionStart:v,onSelectionEnd:x,connectionLineType:w,connectionLineStyle:A,connectionLineComponent:C,connectionLineContainerStyle:E,selectionKeyCode:D,selectionOnDrag:T,selectionMode:B,multiSelectionKeyCode:U,panActivationKeyCode:z,zoomActivationKeyCode:I,deleteKeyCode:P,onlyRenderVisibleElements:$,elementsSelectable:V,defaultViewport:G,translateExtent:W,minZoom:ce,maxZoom:q,preventScrolling:F,defaultMarkerColor:L,zoomOnScroll:Y,zoomOnPinch:J,panOnScroll:ne,panOnScrollSpeed:R,panOnScrollMode:j,zoomOnDoubleClick:Q,panOnDrag:_,onPaneClick:se,onPaneMouseEnter:ve,onPaneMouseMove:be,onPaneMouseLeave:we,onPaneScroll:ge,onPaneContextMenu:ke,paneClickDistance:je,nodeClickDistance:qe,onEdgeContextMenu:_e,onEdgeMouseEnter:Le,onEdgeMouseMove:Ye,onEdgeMouseLeave:tt,reconnectRadius:et,onReconnect:ht,onReconnectStart:me,onReconnectEnd:Ue,noDragClassName:nt,noWheelClassName:At,noPanClassName:Ct,disableKeyboardA11y:An,nodeExtent:Ot,rfId:On,viewport:fe,onViewportChange:Ee}){return j6(e),j6(t),iL(),ZB(n),KB(fe),M.jsx(xB,{onPaneClick:se,onPaneMouseEnter:ve,onPaneMouseMove:be,onPaneMouseLeave:we,onPaneContextMenu:ke,onPaneScroll:ge,paneClickDistance:je,deleteKeyCode:P,selectionKeyCode:D,selectionOnDrag:T,selectionMode:B,onSelectionStart:v,onSelectionEnd:x,multiSelectionKeyCode:U,panActivationKeyCode:z,zoomActivationKeyCode:I,elementsSelectable:V,zoomOnScroll:Y,zoomOnPinch:J,zoomOnDoubleClick:Q,panOnScroll:ne,panOnScrollSpeed:R,panOnScrollMode:j,panOnDrag:_,defaultViewport:G,translateExtent:W,minZoom:ce,maxZoom:q,onSelectionContextMenu:m,preventScrolling:F,noDragClassName:nt,noWheelClassName:At,noPanClassName:Ct,disableKeyboardA11y:An,onViewportChange:Ee,isControlledViewport:!!fe,children:M.jsxs(PB,{children:[M.jsx($B,{edgeTypes:t,onEdgeClick:l,onEdgeDoubleClick:u,onReconnect:ht,onReconnectStart:me,onReconnectEnd:Ue,onlyRenderVisibleElements:$,onEdgeContextMenu:_e,onEdgeMouseEnter:Le,onEdgeMouseMove:Ye,onEdgeMouseLeave:tt,reconnectRadius:et,defaultMarkerColor:L,noPanClassName:Ct,disableKeyboardA11y:An,rfId:On}),M.jsx(nL,{style:A,type:w,component:C,containerStyle:E}),M.jsx("div",{className:"react-flow__edgelabel-renderer"}),M.jsx(MB,{nodeTypes:e,onNodeClick:i,onNodeDoubleClick:s,onNodeMouseEnter:f,onNodeMouseMove:h,onNodeMouseLeave:d,onNodeContextMenu:p,nodeClickDistance:qe,onlyRenderVisibleElements:$,noPanClassName:Ct,noDragClassName:nt,disableKeyboardA11y:An,nodeExtent:Ot,rfId:On}),M.jsx("div",{className:"react-flow__viewport-portal"})]})})}Hv.displayName="GraphView";const aL=ie.memo(Hv),q6=({nodes:e,edges:t,defaultNodes:n,defaultEdges:i,width:l,height:s,fitView:u,fitViewOptions:f,minZoom:h=.5,maxZoom:d=2,nodeOrigin:p,nodeExtent:m,zIndexMode:v="basic"}={})=>{const x=new Map,w=new Map,A=new Map,C=new Map,E=i??t??[],D=n??e??[],T=p??[0,0],B=m??qs;W8(A,C,E);const{nodesInitialized:U}=P1(D,x,w,{nodeOrigin:T,nodeExtent:B,zIndexMode:v});let z=[0,0,1];if(u&&l&&s){const I=tu(x,{filter:G=>!!((G.width||G.initialWidth)&&(G.height||G.initialHeight))}),{x:P,y:$,zoom:V}=Vm(I,l,s,h,d,f?.padding??.1);z=[P,$,V]}return{rfId:"1",width:l??0,height:s??0,transform:z,nodes:D,nodesInitialized:U,nodeLookup:x,parentLookup:w,edges:E,edgeLookup:C,connectionLookup:A,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:i!==void 0,panZoom:null,minZoom:h,maxZoom:d,translateExtent:qs,nodeExtent:B,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:so.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:T,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:u??!1,fitViewOptions:f,fitViewResolver:null,connection:{...B8},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:xO,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:R8,zIndexMode:v,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},lL=({nodes:e,edges:t,defaultNodes:n,defaultEdges:i,width:l,height:s,fitView:u,fitViewOptions:f,minZoom:h,maxZoom:d,nodeOrigin:p,nodeExtent:m,zIndexMode:v})=>kR((x,w)=>{async function A(){const{nodeLookup:C,panZoom:E,fitViewOptions:D,fitViewResolver:T,width:B,height:U,minZoom:z,maxZoom:I}=w();E&&(await yO({nodes:C,width:B,height:U,panZoom:E,minZoom:z,maxZoom:I},D),T?.resolve(!0),x({fitViewResolver:null}))}return{...q6({nodes:e,edges:t,width:l,height:s,fitView:u,fitViewOptions:f,minZoom:h,maxZoom:d,nodeOrigin:p,nodeExtent:m,defaultNodes:n,defaultEdges:i,zIndexMode:v}),setNodes:C=>{const{nodeLookup:E,parentLookup:D,nodeOrigin:T,elevateNodesOnSelect:B,fitViewQueued:U,zIndexMode:z,nodesSelectionActive:I}=w(),{nodesInitialized:P,hasSelectedNodes:$}=P1(C,E,D,{nodeOrigin:T,nodeExtent:m,elevateNodesOnSelect:B,checkEquality:!0,zIndexMode:z}),V=I&&$;U&&P?(A(),x({nodes:C,nodesInitialized:P,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:V})):x({nodes:C,nodesInitialized:P,nodesSelectionActive:V})},setEdges:C=>{const{connectionLookup:E,edgeLookup:D}=w();W8(E,D,C),x({edges:C})},setDefaultNodesAndEdges:(C,E)=>{if(C){const{setNodes:D}=w();D(C),x({hasDefaultNodes:!0})}if(E){const{setEdges:D}=w();D(E),x({hasDefaultEdges:!0})}},updateNodeInternals:C=>{const{triggerNodeChanges:E,nodeLookup:D,parentLookup:T,domNode:B,nodeOrigin:U,nodeExtent:z,debug:I,fitViewQueued:P,zIndexMode:$}=w(),{changes:V,updatedInternals:G}=UO(C,D,T,B,U,z,$);G&&(HO(D,T,{nodeOrigin:U,nodeExtent:z,zIndexMode:$}),P?(A(),x({fitViewQueued:!1,fitViewOptions:void 0})):x({}),V?.length>0&&(I&&console.log("React Flow: trigger node changes",V),E?.(V)))},updateNodePositions:(C,E=!1)=>{const D=[];let T=[];const{nodeLookup:B,triggerNodeChanges:U,connection:z,updateConnection:I,onNodesChangeMiddlewareMap:P}=w();for(const[$,V]of C){const G=B.get($),W=!!(G?.expandParent&&G?.parentId&&V?.position),ce={id:$,type:"position",position:W?{x:Math.max(0,V.position.x),y:Math.max(0,V.position.y)}:V.position,dragging:E};if(G&&z.inProgress&&z.fromNode.id===G.id){const q=el(G,z.fromHandle,Be.Left,!0);I({...z,from:q})}W&&G.parentId&&D.push({id:$,parentId:G.parentId,rect:{...V.internals.positionAbsolute,width:V.measured.width??0,height:V.measured.height??0}}),T.push(ce)}if(D.length>0){const{parentLookup:$,nodeOrigin:V}=w(),G=Zm(D,B,$,V);T.push(...G)}for(const $ of P.values())T=$(T);U(T)},triggerNodeChanges:C=>{const{onNodesChange:E,setNodes:D,nodes:T,hasDefaultNodes:B,debug:U}=w();if(C?.length){if(B){const z=YR(C,T);D(z)}U&&console.log("React Flow: trigger node changes",C),E?.(C)}},triggerEdgeChanges:C=>{const{onEdgesChange:E,setEdges:D,edges:T,hasDefaultEdges:B,debug:U}=w();if(C?.length){if(B){const z=GR(C,T);D(z)}U&&console.log("React Flow: trigger edge changes",C),E?.(C)}},addSelectedNodes:C=>{const{multiSelectionActive:E,edgeLookup:D,nodeLookup:T,triggerNodeChanges:B,triggerEdgeChanges:U}=w();if(E){const z=C.map(I=>Ga(I,!0));B(z);return}B(Kl(T,new Set([...C]),!0)),U(Kl(D))},addSelectedEdges:C=>{const{multiSelectionActive:E,edgeLookup:D,nodeLookup:T,triggerNodeChanges:B,triggerEdgeChanges:U}=w();if(E){const z=C.map(I=>Ga(I,!0));U(z);return}U(Kl(D,new Set([...C]))),B(Kl(T,new Set,!0))},unselectNodesAndEdges:({nodes:C,edges:E}={})=>{const{edges:D,nodes:T,nodeLookup:B,triggerNodeChanges:U,triggerEdgeChanges:z}=w(),I=C||T,P=E||D,$=[];for(const G of I){if(!G.selected)continue;const W=B.get(G.id);W&&(W.selected=!1),$.push(Ga(G.id,!1))}const V=[];for(const G of P)G.selected&&V.push(Ga(G.id,!1));U($),z(V)},setMinZoom:C=>{const{panZoom:E,maxZoom:D}=w();E?.setScaleExtent([C,D]),x({minZoom:C})},setMaxZoom:C=>{const{panZoom:E,minZoom:D}=w();E?.setScaleExtent([D,C]),x({maxZoom:C})},setTranslateExtent:C=>{w().panZoom?.setTranslateExtent(C),x({translateExtent:C})},resetSelectedElements:()=>{const{edges:C,nodes:E,triggerNodeChanges:D,triggerEdgeChanges:T,elementsSelectable:B}=w();if(!B)return;const U=E.reduce((I,P)=>P.selected?[...I,Ga(P.id,!1)]:I,[]),z=C.reduce((I,P)=>P.selected?[...I,Ga(P.id,!1)]:I,[]);D(U),T(z)},setNodeExtent:C=>{const{nodes:E,nodeLookup:D,parentLookup:T,nodeOrigin:B,elevateNodesOnSelect:U,nodeExtent:z,zIndexMode:I}=w();C[0][0]===z[0][0]&&C[0][1]===z[0][1]&&C[1][0]===z[1][0]&&C[1][1]===z[1][1]||(P1(E,D,T,{nodeOrigin:B,nodeExtent:C,elevateNodesOnSelect:U,checkEquality:!1,zIndexMode:I}),x({nodeExtent:C}))},panBy:C=>{const{transform:E,width:D,height:T,panZoom:B,translateExtent:U}=w();return FO({delta:C,panZoom:B,transform:E,translateExtent:U,width:D,height:T})},setCenter:async(C,E,D)=>{const{width:T,height:B,maxZoom:U,panZoom:z}=w();if(!z)return Promise.resolve(!1);const I=typeof D?.zoom<"u"?D.zoom:U;return await z.setViewport({x:T/2-C*I,y:B/2-E*I,zoom:I},{duration:D?.duration,ease:D?.ease,interpolate:D?.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{x({connection:{...B8}})},updateConnection:C=>{x({connection:C})},reset:()=>x({...q6()})}},Object.is);function jv({initialNodes:e,initialEdges:t,defaultNodes:n,defaultEdges:i,initialWidth:l,initialHeight:s,initialMinZoom:u,initialMaxZoom:f,initialFitViewOptions:h,fitView:d,nodeOrigin:p,nodeExtent:m,zIndexMode:v,children:x}){const[w]=ie.useState(()=>lL({nodes:e,edges:t,defaultNodes:n,defaultEdges:i,width:l,height:s,fitView:d,minZoom:u,maxZoom:f,fitViewOptions:h,nodeOrigin:p,nodeExtent:m,zIndexMode:v}));return M.jsx(ER,{value:w,children:M.jsx(PR,{children:x})})}function oL({children:e,nodes:t,edges:n,defaultNodes:i,defaultEdges:l,width:s,height:u,fitView:f,fitViewOptions:h,minZoom:d,maxZoom:p,nodeOrigin:m,nodeExtent:v,zIndexMode:x}){return ie.useContext(Gc)?M.jsx(M.Fragment,{children:e}):M.jsx(jv,{initialNodes:t,initialEdges:n,defaultNodes:i,defaultEdges:l,initialWidth:s,initialHeight:u,fitView:f,initialFitViewOptions:h,initialMinZoom:d,initialMaxZoom:p,nodeOrigin:m,nodeExtent:v,zIndexMode:x,children:e})}const sL={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function uL({nodes:e,edges:t,defaultNodes:n,defaultEdges:i,className:l,nodeTypes:s,edgeTypes:u,onNodeClick:f,onEdgeClick:h,onInit:d,onMove:p,onMoveStart:m,onMoveEnd:v,onConnect:x,onConnectStart:w,onConnectEnd:A,onClickConnectStart:C,onClickConnectEnd:E,onNodeMouseEnter:D,onNodeMouseMove:T,onNodeMouseLeave:B,onNodeContextMenu:U,onNodeDoubleClick:z,onNodeDragStart:I,onNodeDrag:P,onNodeDragStop:$,onNodesDelete:V,onEdgesDelete:G,onDelete:W,onSelectionChange:ce,onSelectionDragStart:q,onSelectionDrag:F,onSelectionDragStop:L,onSelectionContextMenu:Y,onSelectionStart:J,onSelectionEnd:ne,onBeforeDelete:R,connectionMode:j,connectionLineType:Q=ha.Bezier,connectionLineStyle:_,connectionLineComponent:se,connectionLineContainerStyle:ve,deleteKeyCode:be="Backspace",selectionKeyCode:we="Shift",selectionOnDrag:ge=!1,selectionMode:ke=Is.Full,panActivationKeyCode:je="Space",multiSelectionKeyCode:qe=Vs()?"Meta":"Control",zoomActivationKeyCode:_e=Vs()?"Meta":"Control",snapToGrid:Le,snapGrid:Ye,onlyRenderVisibleElements:tt=!1,selectNodesOnDrag:et,nodesDraggable:ht,autoPanOnNodeFocus:me,nodesConnectable:Ue,nodesFocusable:nt,nodeOrigin:At=hv,edgesFocusable:Ct,edgesReconnectable:An,elementsSelectable:Ot=!0,defaultViewport:On=HR,minZoom:fe=.5,maxZoom:Ee=2,translateExtent:Re=qs,preventScrolling:$e=!0,nodeExtent:ot,defaultMarkerColor:mn="#b1b1b7",zoomOnScroll:$n=!0,zoomOnPinch:an=!0,panOnScroll:Rt=!1,panOnScrollSpeed:ln=.5,panOnScrollMode:dt=Za.Free,zoomOnDoubleClick:ur=!0,panOnDrag:Cn=!0,onPaneClick:wo,onPaneMouseEnter:ye,onPaneMouseMove:Pe,onPaneMouseLeave:It,onPaneScroll:xt,onPaneContextMenu:Zr,paneClickDistance:_r=1,nodeClickDistance:xn=0,children:zi,onReconnect:Sa,onReconnectStart:wr,onReconnectEnd:al,onEdgeContextMenu:ll,onEdgeDoubleClick:Xn,onEdgeMouseEnter:ol,onEdgeMouseMove:Ni,onEdgeMouseLeave:Di,reconnectRadius:on=10,onNodesChange:sl,onEdgesChange:Or,noDragClassName:sn="nodrag",noWheelClassName:bn="nowheel",noPanClassName:Qr="nopan",fitView:ul,fitViewOptions:au,connectOnClick:Qc,attributionPosition:lu,proOptions:ka,defaultEdgeOptions:So,elevateNodesOnSelect:_i=!0,elevateEdgesOnSelect:Oi=!1,disableKeyboardA11y:Ri=!1,autoPanOnConnect:Bi,autoPanOnNodeDrag:Pt,autoPanSpeed:ou,connectionRadius:su,isValidConnection:Kr,onError:Li,style:Kc,id:ko,nodeDragThreshold:uu,connectionDragThreshold:Jc,viewport:cl,onViewportChange:fl,width:Sr,height:Rn,colorMode:cu="light",debug:Wc,onScroll:hl,ariaLabelConfig:fu,zIndexMode:Ea="basic",...ef},Bn){const Aa=ko||"1",hu=UR(cu),Eo=ie.useCallback(Jr=>{Jr.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),hl?.(Jr)},[hl]);return M.jsx("div",{"data-testid":"rf__wrapper",...ef,onScroll:Eo,style:{...Kc,...sL},ref:Bn,className:rn(["react-flow",l,hu]),id:ko,role:"application",children:M.jsxs(oL,{nodes:e,edges:t,width:Sr,height:Rn,fitView:ul,fitViewOptions:au,minZoom:fe,maxZoom:Ee,nodeOrigin:At,nodeExtent:ot,zIndexMode:Ea,children:[M.jsx(IR,{nodes:e,edges:t,defaultNodes:n,defaultEdges:i,onConnect:x,onConnectStart:w,onConnectEnd:A,onClickConnectStart:C,onClickConnectEnd:E,nodesDraggable:ht,autoPanOnNodeFocus:me,nodesConnectable:Ue,nodesFocusable:nt,edgesFocusable:Ct,edgesReconnectable:An,elementsSelectable:Ot,elevateNodesOnSelect:_i,elevateEdgesOnSelect:Oi,minZoom:fe,maxZoom:Ee,nodeExtent:ot,onNodesChange:sl,onEdgesChange:Or,snapToGrid:Le,snapGrid:Ye,connectionMode:j,translateExtent:Re,connectOnClick:Qc,defaultEdgeOptions:So,fitView:ul,fitViewOptions:au,onNodesDelete:V,onEdgesDelete:G,onDelete:W,onNodeDragStart:I,onNodeDrag:P,onNodeDragStop:$,onSelectionDrag:F,onSelectionDragStart:q,onSelectionDragStop:L,onMove:p,onMoveStart:m,onMoveEnd:v,noPanClassName:Qr,nodeOrigin:At,rfId:Aa,autoPanOnConnect:Bi,autoPanOnNodeDrag:Pt,autoPanSpeed:ou,onError:Li,connectionRadius:su,isValidConnection:Kr,selectNodesOnDrag:et,nodeDragThreshold:uu,connectionDragThreshold:Jc,onBeforeDelete:R,debug:Wc,ariaLabelConfig:fu,zIndexMode:Ea}),M.jsx(aL,{onInit:d,onNodeClick:f,onEdgeClick:h,onNodeMouseEnter:D,onNodeMouseMove:T,onNodeMouseLeave:B,onNodeContextMenu:U,onNodeDoubleClick:z,nodeTypes:s,edgeTypes:u,connectionLineType:Q,connectionLineStyle:_,connectionLineComponent:se,connectionLineContainerStyle:ve,selectionKeyCode:we,selectionOnDrag:ge,selectionMode:ke,deleteKeyCode:be,multiSelectionKeyCode:qe,panActivationKeyCode:je,zoomActivationKeyCode:_e,onlyRenderVisibleElements:tt,defaultViewport:On,translateExtent:Re,minZoom:fe,maxZoom:Ee,preventScrolling:$e,zoomOnScroll:$n,zoomOnPinch:an,zoomOnDoubleClick:ur,panOnScroll:Rt,panOnScrollSpeed:ln,panOnScrollMode:dt,panOnDrag:Cn,onPaneClick:wo,onPaneMouseEnter:ye,onPaneMouseMove:Pe,onPaneMouseLeave:It,onPaneScroll:xt,onPaneContextMenu:Zr,paneClickDistance:_r,nodeClickDistance:xn,onSelectionContextMenu:Y,onSelectionStart:J,onSelectionEnd:ne,onReconnect:Sa,onReconnectStart:wr,onReconnectEnd:al,onEdgeContextMenu:ll,onEdgeDoubleClick:Xn,onEdgeMouseEnter:ol,onEdgeMouseMove:Ni,onEdgeMouseLeave:Di,reconnectRadius:on,defaultMarkerColor:mn,noDragClassName:sn,noWheelClassName:bn,noPanClassName:Qr,rfId:Aa,disableKeyboardA11y:Ri,nodeExtent:ot,viewport:cl,onViewportChange:fl}),M.jsx(LR,{onSelectionChange:ce}),zi,M.jsx(DR,{proOptions:ka,position:lu}),M.jsx(NR,{rfId:Aa,disableKeyboardA11y:Ri})]})})}var cL=mv(uL);function fL({dimensions:e,lineWidth:t,variant:n,className:i}){return M.jsx("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:rn(["react-flow__background-pattern",n,i])})}function hL({radius:e,className:t}){return M.jsx("circle",{cx:e,cy:e,r:e,className:rn(["react-flow__background-pattern","dots",t])})}var pa;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(pa||(pa={}));const dL={[pa.Dots]:1,[pa.Lines]:1,[pa.Cross]:6},mL=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function qv({id:e,variant:t=pa.Dots,gap:n=20,size:i,lineWidth:l=1,offset:s=0,color:u,bgColor:f,style:h,className:d,patternClassName:p}){const m=ie.useRef(null),{transform:v,patternId:x}=ft(mL,Ht),w=i||dL[t],A=t===pa.Dots,C=t===pa.Cross,E=Array.isArray(n)?n:[n,n],D=[E[0]*v[2]||1,E[1]*v[2]||1],T=w*v[2],B=Array.isArray(s)?s:[s,s],U=C?[T,T]:D,z=[B[0]*v[2]||1+U[0]/2,B[1]*v[2]||1+U[1]/2],I=`${x}${e||""}`;return M.jsxs("svg",{className:rn(["react-flow__background",d]),style:{...h,...Pc,"--xy-background-color-props":f,"--xy-background-pattern-color-props":u},ref:m,"data-testid":"rf__background",children:[M.jsx("pattern",{id:I,x:v[0]%D[0],y:v[1]%D[1],width:D[0],height:D[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${z[0]},-${z[1]})`,children:A?M.jsx(hL,{radius:T/2,className:p}):M.jsx(fL,{dimensions:U,lineWidth:l,variant:t,className:p})}),M.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${I})`})]})}qv.displayName="Background";const pL=ie.memo(qv);function gL(){return M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:M.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function yL(){return M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:M.jsx("path",{d:"M0 0h32v4.2H0z"})})}function vL(){return M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:M.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function xL(){return M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:M.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function bL(){return M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:M.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function F0({children:e,className:t,...n}){return M.jsx("button",{type:"button",className:rn(["react-flow__controls-button",t]),...n,children:e})}const wL=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function Iv({style:e,showZoom:t=!0,showFitView:n=!0,showInteractive:i=!0,fitViewOptions:l,onZoomIn:s,onZoomOut:u,onFitView:f,onInteractiveChange:h,className:d,children:p,position:m="bottom-left",orientation:v="vertical","aria-label":x}){const w=qt(),{isInteractive:A,minZoomReached:C,maxZoomReached:E,ariaLabelConfig:D}=ft(wL,Ht),{zoomIn:T,zoomOut:B,fitView:U}=Xc(),z=()=>{T(),s?.()},I=()=>{B(),u?.()},P=()=>{U(l),f?.()},$=()=>{w.setState({nodesDraggable:!A,nodesConnectable:!A,elementsSelectable:!A}),h?.(!A)},V=v==="horizontal"?"horizontal":"vertical";return M.jsxs($c,{className:rn(["react-flow__controls",V,d]),position:m,style:e,"data-testid":"rf__controls","aria-label":x??D["controls.ariaLabel"],children:[t&&M.jsxs(M.Fragment,{children:[M.jsx(F0,{onClick:z,className:"react-flow__controls-zoomin",title:D["controls.zoomIn.ariaLabel"],"aria-label":D["controls.zoomIn.ariaLabel"],disabled:E,children:M.jsx(gL,{})}),M.jsx(F0,{onClick:I,className:"react-flow__controls-zoomout",title:D["controls.zoomOut.ariaLabel"],"aria-label":D["controls.zoomOut.ariaLabel"],disabled:C,children:M.jsx(yL,{})})]}),n&&M.jsx(F0,{className:"react-flow__controls-fitview",onClick:P,title:D["controls.fitView.ariaLabel"],"aria-label":D["controls.fitView.ariaLabel"],children:M.jsx(vL,{})}),i&&M.jsx(F0,{className:"react-flow__controls-interactive",onClick:$,title:D["controls.interactive.ariaLabel"],"aria-label":D["controls.interactive.ariaLabel"],children:A?M.jsx(bL,{}):M.jsx(xL,{})}),p]})}Iv.displayName="Controls";const SL=ie.memo(Iv);function kL({id:e,x:t,y:n,width:i,height:l,style:s,color:u,strokeColor:f,strokeWidth:h,className:d,borderRadius:p,shapeRendering:m,selected:v,onClick:x}){const{background:w,backgroundColor:A}=s||{},C=u||w||A;return M.jsx("rect",{className:rn(["react-flow__minimap-node",{selected:v},d]),x:t,y:n,rx:p,ry:p,width:i,height:l,style:{fill:C,stroke:f,strokeWidth:h},shapeRendering:m,onClick:x?E=>x(E,e):void 0})}const EL=ie.memo(kL),AL=e=>e.nodes.map(t=>t.id),a1=e=>e instanceof Function?e:()=>e;function CL({nodeStrokeColor:e,nodeColor:t,nodeClassName:n="",nodeBorderRadius:i=5,nodeStrokeWidth:l,nodeComponent:s=EL,onClick:u}){const f=ft(AL,Ht),h=a1(t),d=a1(e),p=a1(n),m=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return M.jsx(M.Fragment,{children:f.map(v=>M.jsx(ML,{id:v,nodeColorFunc:h,nodeStrokeColorFunc:d,nodeClassNameFunc:p,nodeBorderRadius:i,nodeStrokeWidth:l,NodeComponent:s,onClick:u,shapeRendering:m},v))})}function TL({id:e,nodeColorFunc:t,nodeStrokeColorFunc:n,nodeClassNameFunc:i,nodeBorderRadius:l,nodeStrokeWidth:s,shapeRendering:u,NodeComponent:f,onClick:h}){const{node:d,x:p,y:m,width:v,height:x}=ft(w=>{const A=w.nodeLookup.get(e);if(!A)return{node:void 0,x:0,y:0,width:0,height:0};const C=A.internals.userNode,{x:E,y:D}=A.internals.positionAbsolute,{width:T,height:B}=Mi(C);return{node:C,x:E,y:D,width:T,height:B}},Ht);return!d||d.hidden||!F8(d)?null:M.jsx(f,{x:p,y:m,width:v,height:x,style:d.style,selected:!!d.selected,className:i(d),color:t(d),borderRadius:l,strokeColor:n(d),strokeWidth:s,shapeRendering:u,onClick:h,id:d.id})}const ML=ie.memo(TL);var zL=ie.memo(CL);const NL=200,DL=150,_L=e=>!e.hidden,OL=e=>{const t={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:t,boundingRect:e.nodeLookup.size>0?U8(tu(e.nodeLookup,{filter:_L}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},RL="react-flow__minimap-desc";function Uv({style:e,className:t,nodeStrokeColor:n,nodeColor:i,nodeClassName:l="",nodeBorderRadius:s=5,nodeStrokeWidth:u,nodeComponent:f,bgColor:h,maskColor:d,maskStrokeColor:p,maskStrokeWidth:m,position:v="bottom-right",onClick:x,onNodeClick:w,pannable:A=!1,zoomable:C=!1,ariaLabel:E,inversePan:D,zoomStep:T=1,offsetScale:B=5}){const U=qt(),z=ie.useRef(null),{boundingRect:I,viewBB:P,rfId:$,panZoom:V,translateExtent:G,flowWidth:W,flowHeight:ce,ariaLabelConfig:q}=ft(OL,Ht),F=e?.width??NL,L=e?.height??DL,Y=I.width/F,J=I.height/L,ne=Math.max(Y,J),R=ne*F,j=ne*L,Q=B*ne,_=I.x-(R-I.width)/2-Q,se=I.y-(j-I.height)/2-Q,ve=R+Q*2,be=j+Q*2,we=`${RL}-${$}`,ge=ie.useRef(0),ke=ie.useRef();ge.current=ne,ie.useEffect(()=>{if(z.current&&V)return ke.current=KO({domNode:z.current,panZoom:V,getTransform:()=>U.getState().transform,getViewScale:()=>ge.current}),()=>{ke.current?.destroy()}},[V]),ie.useEffect(()=>{ke.current?.update({translateExtent:G,width:W,height:ce,inversePan:D,pannable:A,zoomStep:T,zoomable:C})},[A,C,D,T,G,W,ce]);const je=x?Le=>{const[Ye,tt]=ke.current?.pointer(Le)||[0,0];x(Le,{x:Ye,y:tt})}:void 0,qe=w?ie.useCallback((Le,Ye)=>{const tt=U.getState().nodeLookup.get(Ye).internals.userNode;w(Le,tt)},[]):void 0,_e=E??q["minimap.ariaLabel"];return M.jsx($c,{position:v,style:{...e,"--xy-minimap-background-color-props":typeof h=="string"?h:void 0,"--xy-minimap-mask-background-color-props":typeof d=="string"?d:void 0,"--xy-minimap-mask-stroke-color-props":typeof p=="string"?p:void 0,"--xy-minimap-mask-stroke-width-props":typeof m=="number"?m*ne:void 0,"--xy-minimap-node-background-color-props":typeof i=="string"?i:void 0,"--xy-minimap-node-stroke-color-props":typeof n=="string"?n:void 0,"--xy-minimap-node-stroke-width-props":typeof u=="number"?u:void 0},className:rn(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:M.jsxs("svg",{width:F,height:L,viewBox:`${_} ${se} ${ve} ${be}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":we,ref:z,onClick:je,children:[_e&&M.jsx("title",{id:we,children:_e}),M.jsx(zL,{onClick:qe,nodeColor:i,nodeStrokeColor:n,nodeBorderRadius:s,nodeClassName:l,nodeStrokeWidth:u,nodeComponent:f}),M.jsx("path",{className:"react-flow__minimap-mask",d:`M${_-Q},${se-Q}h${ve+Q*2}v${be+Q*2}h${-ve-Q*2}z
311
+ M${P.x},${P.y}h${P.width}v${P.height}h${-P.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}Uv.displayName="MiniMap";ie.memo(Uv);const BL=e=>t=>e?`${Math.max(1/t.transform[2],1)}`:void 0,LL={[ho.Line]:"right",[ho.Handle]:"bottom-right"};function HL({nodeId:e,position:t,variant:n=ho.Handle,className:i,style:l=void 0,children:s,color:u,minWidth:f=10,minHeight:h=10,maxWidth:d=Number.MAX_VALUE,maxHeight:p=Number.MAX_VALUE,keepAspectRatio:m=!1,resizeDirection:v,autoScale:x=!0,shouldResize:w,onResizeStart:A,onResize:C,onResizeEnd:E}){const D=vv(),T=typeof e=="string"?e:D,B=qt(),U=ie.useRef(null),z=n===ho.Handle,I=ft(ie.useCallback(BL(z&&x),[z,x]),Ht),P=ie.useRef(null),$=t??LL[n];ie.useEffect(()=>{if(!(!U.current||!T))return P.current||(P.current=fR({domNode:U.current,nodeId:T,getStoreItems:()=>{const{nodeLookup:G,transform:W,snapGrid:ce,snapToGrid:q,nodeOrigin:F,domNode:L}=B.getState();return{nodeLookup:G,transform:W,snapGrid:ce,snapToGrid:q,nodeOrigin:F,paneDomNode:L}},onChange:(G,W)=>{const{triggerNodeChanges:ce,nodeLookup:q,parentLookup:F,nodeOrigin:L}=B.getState(),Y=[],J={x:G.x,y:G.y},ne=q.get(T);if(ne&&ne.expandParent&&ne.parentId){const R=ne.origin??L,j=G.width??ne.measured.width??0,Q=G.height??ne.measured.height??0,_={id:ne.id,parentId:ne.parentId,rect:{width:j,height:Q,...V8({x:G.x??ne.position.x,y:G.y??ne.position.y},{width:j,height:Q},ne.parentId,q,R)}},se=Zm([_],q,F,L);Y.push(...se),J.x=G.x?Math.max(R[0]*j,G.x):void 0,J.y=G.y?Math.max(R[1]*Q,G.y):void 0}if(J.x!==void 0&&J.y!==void 0){const R={id:T,type:"position",position:{...J}};Y.push(R)}if(G.width!==void 0&&G.height!==void 0){const j={id:T,type:"dimensions",resizing:!0,setAttributes:v?v==="horizontal"?"width":"height":!0,dimensions:{width:G.width,height:G.height}};Y.push(j)}for(const R of W){const j={...R,type:"position"};Y.push(j)}ce(Y)},onEnd:({width:G,height:W})=>{const ce={id:T,type:"dimensions",resizing:!1,dimensions:{width:G,height:W}};B.getState().triggerNodeChanges([ce])}})),P.current.update({controlPosition:$,boundaries:{minWidth:f,minHeight:h,maxWidth:d,maxHeight:p},keepAspectRatio:m,resizeDirection:v,onResizeStart:A,onResize:C,onResizeEnd:E,shouldResize:w}),()=>{P.current?.destroy()}},[$,f,h,d,p,m,A,C,E,w]);const V=$.split("-");return M.jsx("div",{className:rn(["react-flow__resize-control","nodrag",...V,n,i]),ref:U,style:{...l,scale:I,...u&&{[z?"backgroundColor":"borderColor"]:u}},children:s})}ie.memo(HL);const mo=new Set(["decomposes","answers","operationalizes","leads_to"]);function jL(e){const t=new Map(e.nodes.map(n=>[n.id,n]));return{nodes:e.nodes,byId:t,search(n){const i=Km(n);return i?e.nodes.filter(l=>Gv(l).includes(i)):e.nodes}}}function qL(e,t){new Map(e.nodes.map(m=>[m.id,m]));const n=e.edges.filter(m=>mo.has(m.kind)),i=e.edges.filter(m=>!mo.has(m.kind)),l=tl(n,"from"),s=tl(n,"to"),u=Object.fromEntries(e.nodes.map(m=>[m.id,l.get(m.id)?.length||0])),f=new Set,h=Km(t.query||"");if(h){for(const m of e.nodes)if(Gv(m).includes(h)){f.add(m.id);for(const v of Yv(m.id,s))f.add(v)}}else Vv(e.rootId,l,t.expandedIds,f),$L(f,n),GL(f,i);const d=e.nodes.filter(m=>f.has(m.id)),p=e.edges.filter(m=>f.has(m.from)&&f.has(m.to));return{rootId:e.rootId,nodes:d,edges:p,childCounts:u}}function Fv(e){const t=e.edges.filter(i=>mo.has(i.kind)),n=new Set(t.map(i=>i.from));return e.nodes.map(i=>i.id).filter(i=>n.has(i))}function IL(e,t){const n=e.edges.filter(h=>mo.has(h.kind)),i=tl(n,"from"),l=new Set(Fv(e)),s=[],u=[t],f=new Set;for(let h=0;h<u.length;h+=1){const d=u[h];if(!f.has(d)){f.add(d),l.has(d)&&s.push(d);for(const p of i.get(d)||[])u.push(p.to)}}return s}function UL(e,t,n){const i=new Set(t);return i.has(n)?(i.delete(n),i):(i.add(n),i)}function FL(e,t){const i=new Map(e.nodes.map(m=>[m.id,m])).get(t.focusId);if(!i)return{rootId:e.rootId,nodes:[],edges:[],childCounts:{}};const l=e.edges.filter(m=>mo.has(m.kind)),s=tl(l,"from"),u=tl(l,"to"),f=Object.fromEntries(e.nodes.map(m=>[m.id,s.get(m.id)?.length||0])),h=new Set([t.focusId]);for(const m of e.edges)m.from===t.focusId&&h.add(m.to),m.to===t.focusId&&h.add(m.from);if(t.includeAntecedents)for(const m of Yv(t.focusId,u))h.add(m);const d=e.nodes.filter(m=>h.has(m.id)),p=e.edges.filter(m=>h.has(m.from)&&h.has(m.to));return{rootId:i.id,nodes:d,edges:p,childCounts:f}}function VL(e,t){const n=e.edges.filter(x=>mo.has(x.kind)),i=tl(n,"from"),l=tl(n,"to"),s=new Map([[e.rootId,0]]),u=[e.rootId];for(let x=0;x<u.length;x+=1){const w=u[x],A=s.get(w)||0;for(const C of i.get(w)||[])s.has(C.to)||(s.set(C.to,A+1),u.push(C.to))}const f=[e.rootId];for(let x=0;x<f.length;x+=1){const w=f[x],A=s.get(w)||0;for(const C of l.get(w)||[])s.has(C.from)||(s.set(C.from,A-1),f.push(C.from))}const h=YL(e,i,s),d=[...h.values()],p=d.length?(Math.min(...d)+Math.max(...d))/2:0,m=t.mode==="full"?{depth:700,cross:300}:{depth:320,cross:170},v=e.nodes.map(x=>{const w=s.get(x.id)??0,A=(h.get(x.id)??0)-p,C={x:w*m.depth,y:A*m.cross};return{...x,position:C}});return{rootId:e.rootId,nodes:v,edges:e.edges,childCounts:e.childCounts}}function YL(e,t,n){const i=new Set(e.nodes.map(d=>d.id)),l=new Map,s=new Set;let u=0;function f(d){const p=l.get(d);if(p!==void 0)return p;if(s.has(d)){const x=u;return u+=1,l.set(d,x),x}s.add(d);const m=[];for(const x of t.get(d)||[])i.has(x.to)&&m.push(f(x.to));s.delete(d);const v=m.length?(Math.min(...m)+Math.max(...m))/2:u++;return l.set(d,v),v}i.has(e.rootId)&&f(e.rootId);const h=e.nodes.filter(d=>!l.has(d.id)).sort((d,p)=>(n.get(d.id)??0)-(n.get(p.id)??0));for(const d of h)f(d.id);return l}function Vv(e,t,n,i){const l=i.has(e);if(i.add(e),!(l||!n.has(e)))for(const s of t.get(e)||[])Vv(s.to,t,n,i)}function GL(e,t){const n=new Set(e);for(const i of t)n.has(i.from)&&e.add(i.to),n.has(i.to)&&e.add(i.from)}function $L(e,t){let n=!0;for(;n;){n=!1;const i=new Map;for(const l of t)!e.has(l.from)||e.has(l.to)||i.set(l.to,(i.get(l.to)||0)+1);for(const[l,s]of i)s<2||(e.add(l),n=!0)}}function Yv(e,t){const n=[],i=new Set,l=[e];for(let s=0;s<l.length;s+=1)for(const u of t.get(l[s])||[])i.has(u.from)||(i.add(u.from),n.push(u.from),l.push(u.from));return n.reverse()}function tl(e,t){const n=new Map;for(const i of e)n.set(i[t],[...n.get(i[t])||[],i]);return n}function Gv(e){return Km([e.title,e.id,e.type,e.file,...(e.files||[]).map(t=>t.path),e.summary,...e.tags||[]].filter(Boolean).join(" "))}function Km(e){return e.trim().toLowerCase()}function XL(e){return e.label||""}function I6(e){return new Set(e.ui?.expanded?.length?e.ui.expanded:[e.rootId])}function PL(){return{right:500,bottom:340}}function ZL(e,t,n){if(e!=="idle")return t==="right"?{gridTemplateColumns:`minmax(0, 1fr) minmax(300px, ${n.right}px)`}:{gridTemplateRows:`minmax(0, 1fr) minmax(220px, ${n.bottom}px)`}}function U6(e,t,n){return Math.min(n,Math.max(t,e))}function F6(e,t,n=""){return["research-node",t,`type-${e.type}`,iu(e)?"missing-file":"",n].filter(Boolean).join(" ")}function QL(e){const t=ki(e);return t.length?iu(e)?"All linked files are referenced by graph.yaml but do not exist yet":t.length>1?"Preview linked documents":"Preview file":"Show graph.yaml summary"}function KL(e){const t=ki(e);return t.length?iu(e)?"Missing":t.length>1?"Docs":"Open":"Note"}function ki(e){return e.files?.length?e.files:e.file?[{path:e.file,fileExists:e.fileExists}]:[]}function yc(e){return ki(e).find(t=>t.fileExists!==!1)}function iu(e){const t=ki(e);return t.length>0&&t.every(n=>n.fileExists===!1)}function Jm(e){const t=ki(e);return t.length?t.length===1?t[0].path:`${t.filter(i=>i.fileExists!==!1).length}/${t.length} linked docs`:e.id}function JL(e){return e.split("/").pop()||e}function WL(e,t){const n=e.split("/").slice(0,-1).map(encodeURIComponent).join("/"),i=`<base href="/api/workspace/raw-path/${n?`${n}/`:""}">`;return/<head[\s>]/i.test(t)?t.replace(/<head([^>]*)>/i,`<head$1>${i}`):`${i}${t}`}function eH(e){return e==="claim"?"#7c3aed":e==="evidence"?"#0f766e":e==="method"?"#b45309":e==="source"?"#2563eb":e==="task"?"#be123c":e==="concept"?"#475569":"#111827"}function V6(e){return e==="supports"?"#27847b":e==="cites"?"#3b73c8":e==="contradicts"?"#c9352b":e==="leads_to"?"#8a6a15":"#9aa3ad"}function tH({dock:e,onClose:t,onDockChange:n,onOpenFile:i,onOpenPath:l,onResize:s,size:u,preview:f}){return f.status==="idle"?null:M.jsxs("aside",{className:"file-preview-panel",children:[M.jsx("button",{className:`preview-resize-handle ${e}`,onDoubleClick:()=>s(PL()),onPointerDown:h=>rH(h,e,u,s),title:e==="right"?"Drag to resize preview width":"Drag to resize preview height"}),M.jsxs("header",{children:[M.jsxs("div",{children:[M.jsx("strong",{children:f.title}),M.jsx("span",{children:f.path})]}),M.jsxs("div",{className:"file-preview-actions",children:[M.jsx("button",{className:e==="right"?"active":"",onClick:()=>n("right"),title:"Dock right",children:"Right"}),M.jsx("button",{className:e==="bottom"?"active":"",onClick:()=>n("bottom"),title:"Dock bottom",children:"Bottom"}),(f.status==="ready"||f.status==="loading")&&M.jsx("button",{onClick:()=>i(f.path),children:"Open file"}),M.jsx("button",{onClick:t,title:"Close preview",children:"×"})]})]}),f.status==="loading"&&M.jsx("div",{className:"file-preview-state",children:"Loading file..."}),f.status==="note"&&M.jsx("div",{className:"file-preview-state",children:f.summary||"This node is currently represented only in graph.yaml. Add file or files later when it needs longer notes."}),f.status==="error"&&M.jsx("div",{className:"file-preview-state error",children:f.message}),f.status==="ready"&&M.jsxs(M.Fragment,{children:[M.jsxs("div",{className:"file-preview-meta",children:[f.bytes.toLocaleString()," bytes · ",f.mimeType]}),f.links.length>1&&M.jsx("div",{className:"file-preview-links","aria-label":"Linked documents",children:f.links.map(h=>M.jsx("button",{className:h.path===f.path?"active":"",disabled:h.fileExists===!1,onClick:()=>l(h.path),title:h.path,children:h.title||JL(h.path)},h.path))}),M.jsx(nH,{preview:f})]})]})}function nH({preview:e}){return e.format==="markdown"?M.jsx(Rs,{basePath:e.path,className:"file-preview-markdown",content:e.content}):e.format==="html"?M.jsx("iframe",{className:"file-preview-html",sandbox:"allow-same-origin",srcDoc:WL(e.path,e.content),title:e.title}):M.jsx("pre",{children:e.content})}function rH(e,t,n,i){e.preventDefault(),e.stopPropagation(),e.currentTarget.setPointerCapture(e.pointerId);const l=e.clientX,s=e.clientY,u={...n};function f(d){if(t==="right"){const p=U6(u.right-(d.clientX-l),300,Math.max(360,window.innerWidth-520));i({...u,right:p})}else{const p=U6(u.bottom-(d.clientY-s),220,Math.max(260,window.innerHeight-240));i({...u,bottom:p})}}function h(){window.removeEventListener("pointermove",f),window.removeEventListener("pointerup",h)}window.addEventListener("pointermove",f),window.addEventListener("pointerup",h,{once:!0})}function iH({layout:e,mode:t}){const n=t==="full"?{width:310,height:136,radius:54}:{width:18,height:18,radius:9},i=e.nodes.map(m=>({...m,cx:m.position.x+n.width/2,cy:m.position.y+n.height/2}));if(!i.length)return null;const l=new Map(i.map(m=>[m.id,m])),s=Math.min(...i.map(m=>m.cx)),u=Math.max(...i.map(m=>m.cx)),f=Math.min(...i.map(m=>m.cy)),h=Math.max(...i.map(m=>m.cy)),d=Math.max(42,n.radius*1.6),p=`${s-d} ${f-d} ${Math.max(u-s+d*2,1)} ${Math.max(h-f+d*2,1)}`;return M.jsxs("svg",{className:"graph-overview",viewBox:p,"aria-hidden":"true",children:[e.edges.map(m=>{const v=l.get(m.from),x=l.get(m.to);return!v||!x?null:M.jsx("line",{x1:v.cx,y1:v.cy,x2:x.cx,y2:x.cy,className:`overview-edge kind-${m.kind}`},m.id)}),i.map(m=>M.jsx("circle",{cx:m.cx,cy:m.cy,r:n.radius,fill:eH(m.type),className:"overview-node"},m.id))]})}function aH({data:e,selected:t}){const n=e.item;return M.jsxs("article",{className:t?F6(n,e.mode,"selected"):F6(n,e.mode),children:[M.jsx(ma,{type:"target",position:Be.Left,className:"node-handle node-handle-left"}),M.jsx(ma,{type:"source",position:Be.Right,className:"node-handle node-handle-right"}),M.jsx(ma,{type:"target",position:Be.Top,className:"node-handle node-handle-top"}),M.jsx(ma,{type:"source",position:Be.Bottom,className:"node-handle node-handle-bottom"}),e.mode==="full"?M.jsx(cH,{item:n,highlighted:e.highlighted}):M.jsx(uH,{item:n}),e.highlighted&&M.jsx("span",{className:"node-match"})]})}function lH({expanded:e,isRoot:t,node:n,canBranch:i,onExpandBranch:l,onFocusSubgraph:s,onMouseEnter:u,onMouseLeave:f,onOpenBrowser:h,onOpenPreview:d,onToggle:p,position:m,style:v}){return M.jsxs("div",{className:"node-hover-card",style:v,onMouseEnter:u,onMouseLeave:f,role:"dialog","aria-label":n.title,children:[M.jsxs("div",{className:"node-hover-copy",children:[M.jsx("strong",{children:n.title}),M.jsxs("span",{children:[n.type,n.status?` · ${n.status}`:""]}),n.summary&&M.jsx("p",{children:n.summary}),M.jsx("small",{children:Jm(n)})]}),M.jsx(sH,{canBranch:i,canOpen:!!yc(n),expanded:e,isRoot:t,node:n,onExpandBranch:l,onFocusSubgraph:s,onOpenBrowser:h,onOpenPreview:d,onToggle:p})]})}function oH({node:e,onClose:t,onExpandBranch:n,onFocusSubgraph:i,onOpenBrowser:l,onOpenPreview:s,onToggle:u,position:f}){const h=!!yc(e),d=!!e;function p(m){m(),t()}return M.jsxs("div",{className:"node-context-menu",style:{left:f.x,top:f.y},onClick:m=>m.stopPropagation(),children:[M.jsx("button",{onClick:()=>p(()=>s(e)),disabled:!h&&!e.summary,children:"Preview"}),M.jsx("button",{onClick:()=>p(()=>l(e)),disabled:!h,children:"Open file"}),M.jsx("button",{onClick:()=>p(()=>u(e.id)),disabled:!d,children:"Expand / collapse"}),M.jsx("button",{onClick:()=>p(()=>n(e.id)),disabled:!d,children:"Expand branch"}),M.jsx("button",{onClick:()=>p(()=>i(e.id)),children:"Focus subgraph"})]})}function sH({canBranch:e,canOpen:t,expanded:n,isRoot:i,node:l,onExpandBranch:s,onFocusSubgraph:u,onOpenBrowser:f,onOpenPreview:h,onToggle:d}){return M.jsxs("div",{className:"node-action-bar",children:[M.jsx("button",{onClick:()=>h(l),disabled:!t&&!l.summary,children:"Preview"}),M.jsx("button",{onClick:()=>f(l),disabled:!t,children:"Open file"}),M.jsx("button",{onClick:()=>d(l.id),disabled:!e,children:n?"Collapse":"Expand"}),M.jsx("button",{onClick:()=>s(l.id),disabled:!e,children:"Expand branch"}),M.jsx("button",{onClick:()=>u(l.id),children:"Focus subgraph"})]})}function uH({item:e}){return M.jsxs(M.Fragment,{children:[M.jsx("span",{className:"node-dot"}),M.jsx("span",{className:"node-caption",children:e.title})]})}function cH({item:e,highlighted:t}){return M.jsxs(M.Fragment,{children:[M.jsxs("header",{children:[M.jsx("span",{className:`node-type type-${e.type}`,children:e.type}),e.status&&M.jsx("span",{className:`node-status status-${e.status}`,children:e.status})]}),M.jsx("h3",{children:e.title}),e.summary&&M.jsx("p",{children:e.summary}),M.jsxs("footer",{children:[M.jsx("span",{children:Jm(e)}),iu(e)&&M.jsx("strong",{children:"missing files"}),ki(e).length>1&&M.jsxs("strong",{children:[ki(e).length," docs"]}),t&&M.jsx("strong",{children:"match"})]})]})}const fH={rootId:"rq.main",nodes:[{id:"rq.main",title:"Core research question",type:"question",summary:"What exactly has to be explained, bounded, and tested?",status:"active",tags:["framing"]},{id:"rq.theory",title:"Theoretical mechanism",type:"question",summary:"Which mechanism makes the expected effect plausible?",status:"active",tags:["theory","mechanism"]},{id:"rq.method",title:"Method and identification",type:"method",summary:"How can the mechanism be observed without overclaiming?",status:"draft",tags:["method"]},{id:"rq.evidence",title:"Evidence map",type:"evidence",summary:"Which sources support, weaken, or falsify the argument?",status:"active",tags:["evidence"]},{id:"concept.001",title:"Boundary condition",type:"concept",summary:"Where the mechanism should stop applying.",status:"draft",tags:["scope"]},{id:"claim.001",title:"Mechanism claim",type:"claim",summary:"A precise, falsifiable version of the central claim.",status:"active",tags:["claim"]},{id:"source.001",title:"Anchor paper",type:"source",summary:"Closest prior work and vocabulary.",status:"done",tags:["literature"]},{id:"source.html-demo",title:"External artifact",type:"source",summary:"A placeholder for a source document or rendered artifact.",status:"draft",tags:["source"]},{id:"evidence.001",title:"Observed pattern",type:"evidence",summary:"A repeated observation that should be explained by the claim.",status:"draft",tags:["observation"]},{id:"task.001",title:"Next reading pass",type:"task",summary:"Collect rival explanations before drafting.",status:"active",tags:["next"]}],edges:[{id:"edge.main.theory",from:"rq.main",to:"rq.theory",kind:"decomposes"},{id:"edge.main.method",from:"rq.main",to:"rq.method",kind:"decomposes"},{id:"edge.main.evidence",from:"rq.main",to:"rq.evidence",kind:"decomposes"},{id:"edge.theory.boundary",from:"rq.theory",to:"concept.001",kind:"decomposes"},{id:"edge.theory.claim",from:"rq.theory",to:"claim.001",kind:"answers"},{id:"edge.theory.source",from:"rq.theory",to:"source.001",kind:"cites"},{id:"edge.method.task",from:"rq.method",to:"task.001",kind:"leads_to"},{id:"edge.source.claim",from:"source.001",to:"claim.001",kind:"supports"},{id:"edge.evidence.html",from:"rq.evidence",to:"source.html-demo",kind:"cites"},{id:"edge.evidence.claim",from:"evidence.001",to:"claim.001",kind:"supports"},{id:"edge.evidence.pattern",from:"rq.evidence",to:"evidence.001",kind:"decomposes"},{id:"edge.source.theory",from:"source.001",to:"rq.theory",kind:"cites"}]},hH={research:aH};function dH({error:e,graph:t=fH,header:n,sidebarCollapsed:i=!1,sidebarHeader:l,sidebarResizeHandle:s,sidebarWidth:u}){return M.jsx(jv,{children:M.jsx(mH,{error:e,graph:t,header:n,sidebarCollapsed:i,sidebarHeader:l,sidebarResizeHandle:s,sidebarWidth:u})})}function mH({error:e,graph:t,header:n,sidebarCollapsed:i,sidebarHeader:l,sidebarResizeHandle:s,sidebarWidth:u}){const[f,h]=ie.useState(()=>I6(t)),[d,p]=ie.useState(""),[m,v]=ie.useState("compact"),[x,w]=ie.useState({status:"idle"}),[A,C]=ie.useState("right"),[E,D]=ie.useState({right:500,bottom:340}),[T,B]=ie.useState(null),[U,z]=ie.useState(null),[I,P]=ie.useState(null),$=ie.useRef(null),{fitView:V,setCenter:G}=Xc(),W=ie.useMemo(()=>jL(t),[t]),ce=ie.useMemo(()=>W.search(d),[W,d]),q=ie.useMemo(()=>T?FL(t,{focusId:T.nodeId,includeAntecedents:T.includeAntecedents}):qL(t,{expandedIds:f,query:d}),[f,T,t,d]),F=ie.useMemo(()=>VL(q,{mode:m}),[m,q]),L=ie.useMemo(()=>new Set(ce.map(me=>me.id)),[ce]),Y=ie.useMemo(()=>Fv(t),[t]),J=U?F.nodes.find(me=>me.id===U.nodeId):void 0,ne=I?F.nodes.find(me=>me.id===I.nodeId):void 0,R=T?W.byId.get(T.nodeId)?.title||T.nodeId:"";ie.useEffect(()=>{h(I6(t)),B(null),z(null),P(null)},[t]);const j=ie.useMemo(()=>F.nodes.map(me=>({id:me.id,type:"research",position:me.position,sourcePosition:Be.Right,targetPosition:Be.Left,data:{item:me,childCount:F.childCounts[me.id]||0,expanded:f.has(me.id),highlighted:!!d.trim()&&L.has(me.id),isRoot:me.id===t.rootId,mode:m}})),[f,t.rootId,F.childCounts,F.nodes,L,m,d]),Q=ie.useMemo(()=>F.edges.map(me=>({id:me.id,source:me.from,target:me.to,label:XL(me),type:"bezier",className:`research-edge kind-${me.kind}`,interactionWidth:16,style:{stroke:V6(me.kind),strokeWidth:m==="compact"?1.45:1.7},markerEnd:{type:Us.ArrowClosed,width:m==="compact"?11:15,height:m==="compact"?11:15,color:V6(me.kind)}})),[F.edges,m]);ie.useEffect(()=>{const me=window.setTimeout(()=>V({padding:.16,maxZoom:m==="compact"?1.15:.9,duration:260}),80);return()=>window.clearTimeout(me)},[V,j.length,m,d]);function _(me){h(Ue=>UL(t,Ue,me))}function se(){h(new Set(Y))}function ve(){h(new Set)}function be(me){h(Ue=>{const nt=new Set(Ue);for(const At of IL(t,me))nt.add(At);return nt})}function we(me){B({nodeId:me,includeAntecedents:!1}),z(null),window.setTimeout(()=>V({padding:.22,maxZoom:m==="compact"?1.2:.92,duration:260}),80)}function ge(){B(me=>me&&{...me,includeAntecedents:!me.includeAntecedents}),window.setTimeout(()=>V({padding:.22,maxZoom:m==="compact"?1.2:.92,duration:260}),80)}function ke(me){const Ue=m==="compact"?9:130;G(me.position.x+Ue,me.position.y+Ue,{zoom:m==="compact"?1.55:1.08,duration:280})}async function je(me,Ue){const nt=ki(me);if(!nt.length){w({status:"note",path:me.id,title:me.title,summary:me.summary});return}const At=(Ue?nt.find(Ct=>Ct.path===Ue&&Ct.fileExists!==!1):void 0)||nt.find(Ct=>Ct.fileExists!==!1);if(!At){w({status:"error",path:me.id,title:me.title,message:"This graph node only links to missing files."});return}w({status:"loading",path:At.path,title:At.title||me.title});try{const Ct=await cn(`/api/workspace/file?path=${encodeURIComponent(At.path)}`);w({status:"ready",path:Ct.path,title:At.title||me.title,content:Ct.content,bytes:Ct.bytes,format:Ct.format,mimeType:Ct.mimeType,links:nt})}catch(Ct){w({status:"error",path:At.path,title:At.title||me.title,message:fa(Ct)})}}function qe(me){const Ue=t.nodes.find(nt=>ki(nt).some(At=>At.path===me));if(Ue)return je(Ue,me)}async function _e(me){await cn("/api/workspace/open",{method:"POST",body:JSON.stringify({path:me})})}async function Le(me,Ue=me){try{await _e(me)}catch(nt){w({status:"error",path:me,title:Ue,message:fa(nt)})}}async function Ye(me){const Ue=yc(me);Ue&&await Le(Ue.path,Ue.title||Ue.path)}function tt(me,Ue,nt){ht(),P({nodeId:me,x:Ue,y:nt})}function et(){ht(),$.current=window.setTimeout(()=>P(null),140)}function ht(){$.current!==null&&(window.clearTimeout($.current),$.current=null)}return M.jsxs("main",{className:i?"app-shell graph-view sidebar-collapsed":"app-shell graph-view",style:u?{"--workspace-sidebar-width":`${u}px`}:void 0,children:[M.jsxs("aside",{className:"graph-index-panel",children:[l,s,!i&&M.jsxs(M.Fragment,{children:[M.jsxs("div",{className:"graph-panel-header",children:[M.jsxs("div",{children:[M.jsx("strong",{children:"Overview"}),M.jsxs("span",{children:[q.nodes.length,"/",t.nodes.length," nodes · ",q.edges.length," edges"]})]}),M.jsx("button",{className:"secondary-button compact",onClick:()=>V({padding:.16,maxZoom:m==="compact"?1.15:.9,duration:260}),children:"Fit"})]}),M.jsxs("label",{className:"graph-search",children:["Search",M.jsx("input",{value:d,onChange:me=>p(me.target.value),placeholder:"Search title, id, path, tag..."})]}),M.jsxs("div",{className:"graph-layout-toggle","aria-label":"Graph display mode",children:[M.jsx("button",{className:m==="compact"?"active":"",onClick:()=>v("compact"),children:"Compact"}),M.jsx("button",{className:m==="full"?"active":"",onClick:()=>v("full"),children:"Full"})]}),M.jsxs("div",{className:"graph-actions","aria-label":"Graph expansion controls",children:[M.jsx("button",{onClick:se,children:"Expand all"}),M.jsx("button",{onClick:ve,children:"Collapse all"})]}),M.jsx("div",{className:"graph-index-list",children:F.nodes.map(me=>M.jsxs("div",{className:L.has(me.id)&&d.trim()?"graph-index-item match":"graph-index-item",children:[M.jsxs("button",{className:"graph-index-focus",onClick:()=>ke(me),children:[M.jsx("span",{className:`node-type type-${me.type}`,children:me.type}),M.jsx("strong",{children:me.title}),M.jsx("small",{children:Jm(me)})]}),M.jsx("button",{className:"graph-index-open",onClick:()=>{je(me)},disabled:iu(me),"aria-label":QL(me),children:KL(me)}),M.jsx("button",{className:"graph-index-browser",onClick:()=>{Ye(me)},disabled:!yc(me),"aria-label":"Open linked document with the system default app",children:"File"})]},me.id))})]})]}),M.jsxs("section",{className:"chat-pane graph-active",children:[n,e&&M.jsx("div",{className:"error-banner",children:e}),M.jsxs("div",{className:x.status==="idle"?"graph-workspace":`graph-workspace preview-${A}`,style:ZL(x.status,A,E),children:[M.jsxs("div",{className:"graph-canvas",children:[T&&M.jsxs("div",{className:"subgraph-toolbar",children:[M.jsxs("div",{children:[M.jsxs("strong",{children:["Focus: ",R]}),M.jsxs("span",{children:[q.nodes.length," nodes · ",T.includeAntecedents?"with antecedents":"nearby"]})]}),M.jsx("button",{onClick:ge,children:T.includeAntecedents?"Hide antecedents":"Show antecedents"}),M.jsx("button",{onClick:()=>B(null),children:"Back to full graph"})]}),M.jsxs(cL,{nodes:j,edges:Q,nodeTypes:hH,minZoom:.25,maxZoom:1.7,fitView:!0,fitViewOptions:{padding:.16,maxZoom:m==="compact"?1.15:.9},onNodeClick:(me,Ue)=>{_(Ue.id),z(null)},onNodeContextMenu:(me,Ue)=>{me.preventDefault(),z({nodeId:Ue.id,x:me.clientX,y:me.clientY})},onNodeMouseEnter:(me,Ue)=>tt(Ue.id,me.clientX,me.clientY),onNodeMouseMove:(me,Ue)=>tt(Ue.id,me.clientX,me.clientY),onNodeMouseLeave:et,onPaneClick:()=>{z(null)},proOptions:{hideAttribution:!0},children:[M.jsx(pL,{gap:28,size:1,color:"#dce3ea"}),M.jsx(SL,{position:"bottom-right"})]}),I&&ne&&M.jsx(lH,{canBranch:(F.childCounts[ne.id]||0)>0,expanded:f.has(ne.id),isRoot:ne.id===t.rootId,node:ne,onExpandBranch:be,onFocusSubgraph:we,onMouseEnter:ht,onMouseLeave:et,onOpenBrowser:Ye,onOpenPreview:me=>{je(me)},onToggle:_,position:I,style:pH(I)}),U&&J&&M.jsx(oH,{node:J,onClose:()=>z(null),onExpandBranch:be,onFocusSubgraph:we,onOpenBrowser:Ye,onOpenPreview:me=>{je(me)},onToggle:_,position:U}),M.jsx(iH,{layout:F,mode:m})]}),M.jsx(tH,{dock:A,onClose:()=>w({status:"idle"}),onDockChange:C,onOpenFile:me=>{Le(me,me)},onOpenPath:me=>{qe(me)},onResize:D,preview:x,size:E})]})]})]})}function pH(e){const l=Math.min(e.x+18,Math.max(14,window.innerWidth-400-14)),s=Math.min(e.y+18,Math.max(14,window.innerHeight-260-14));return{left:l,top:s,width:400}}const gH=328,J1=248,$v=560,yH=50,vH=24,xH=76;function Xv(e,t){if(!Number.isFinite(e))return gH;const n=Math.max(J1,Math.floor(t*.48));return Math.min(Math.max(e,J1),Math.min($v,n))}function K0(e){return Number.isFinite(e)?Math.min(Math.max(e,vH),xH):yH}const Pv="thinking-sidecar-sidebar-width",Zv="thinking-sidecar-sidebar-split-v2";function bH({collapsed:e,onResize:t,value:n}){if(e)return null;function i(u){t(Xv(u,window.innerWidth))}function l(u){u.preventDefault(),u.currentTarget.setPointerCapture(u.pointerId),document.body.classList.add("sidebar-resizing");function h(p){i(p.clientX)}function d(){document.body.classList.remove("sidebar-resizing"),window.removeEventListener("pointermove",h),window.removeEventListener("pointerup",d)}window.addEventListener("pointermove",h),window.addEventListener("pointerup",d,{once:!0})}function s(u){u.key==="ArrowLeft"&&(u.preventDefault(),i(n-(u.shiftKey?40:12))),u.key==="ArrowRight"&&(u.preventDefault(),i(n+(u.shiftKey?40:12)))}return M.jsx("div",{"aria-label":"Resize sidebar","aria-orientation":"vertical","aria-valuemax":$v,"aria-valuemin":J1,"aria-valuenow":n,className:"sidebar-resize-handle",onKeyDown:s,onPointerDown:l,role:"separator",tabIndex:0,title:"Resize sidebar"})}function wH({containerRef:e,onResize:t,value:n}){function i(u){const f=e.current;if(!f)return;const h=f.getBoundingClientRect();h.height<=0||t(K0((u-h.top)/h.height*100))}function l(u){u.preventDefault(),u.currentTarget.setPointerCapture(u.pointerId),document.body.classList.add("sidebar-split-resizing");function h(p){i(p.clientY)}function d(){document.body.classList.remove("sidebar-split-resizing"),window.removeEventListener("pointermove",h),window.removeEventListener("pointerup",d)}window.addEventListener("pointermove",h),window.addEventListener("pointerup",d,{once:!0})}function s(u){u.key==="ArrowUp"&&(u.preventDefault(),t(K0(n-(u.shiftKey?10:4)))),u.key==="ArrowDown"&&(u.preventDefault(),t(K0(n+(u.shiftKey?10:4))))}return M.jsx("div",{"aria-label":"Resize session and settings areas","aria-orientation":"horizontal","aria-valuemax":76,"aria-valuemin":24,"aria-valuenow":n,className:"sidebar-section-resize-handle",onKeyDown:s,onPointerDown:l,role:"separator",tabIndex:0,title:"Resize session and settings areas"})}function SH(){const e=localStorage.getItem(Pv);return Xv(e===null?void 0:Number(e),window.innerWidth)}function kH(){const e=localStorage.getItem(Zv);return K0(e===null?void 0:Number(e))}function EH(){const[e,t]=ie.useState(null),[n,i]=ie.useState(""),l=new URLSearchParams(window.location.search).get("path")||"";return ie.useEffect(()=>{if(!l){i("Missing workspace file path.");return}cn(`/api/workspace/file?path=${encodeURIComponent(l)}`).then(s=>{document.title=s.path,t(s)}).catch(s=>i(fa(s)))},[l]),M.jsxs("main",{className:"standalone-viewer",children:[M.jsxs("header",{children:[M.jsxs("div",{children:[M.jsx("strong",{children:e?.path||l||"Workspace document"}),e&&M.jsxs("span",{children:[e.bytes.toLocaleString()," bytes · ",e.mimeType]})]}),e&&M.jsx("a",{href:`/api/workspace/raw?path=${encodeURIComponent(e.path)}`,target:"_blank",rel:"noreferrer",children:"Raw"})]}),n&&M.jsx("div",{className:"standalone-state error",children:n}),!n&&!e&&M.jsx("div",{className:"standalone-state",children:"Loading file..."}),e?.format==="markdown"&&M.jsx(Rs,{basePath:e.path,className:"standalone-markdown",content:e.content}),e?.format==="html"&&M.jsx("iframe",{className:"standalone-html",sandbox:"allow-same-origin",src:`/api/workspace/raw?path=${encodeURIComponent(e.path)}`,title:e.path}),e?.format==="text"&&M.jsx("pre",{className:"standalone-text",children:e.content})]})}function AH(){const[e,t]=ie.useState("graph"),[n,i]=ie.useState(null),[l,s]=ie.useState({instructionFiles:[],skills:[]}),[u,f]=ie.useState([]),[h,d]=ie.useState(""),[p,m]=ie.useState(null),[v,x]=ie.useState(""),[w,A]=ie.useState([]),[C,E]=ie.useState(null),[D,T]=ie.useState(""),[B,U]=ie.useState({}),[z,I]=ie.useState(!0),[P,$]=ie.useState(!1),[V,G]=ie.useState(!1),[W,ce]=ie.useState(()=>SH()),[q,F]=ie.useState(()=>kH()),[L,Y]=ie.useState(null),[J,ne]=ie.useState(""),[R,j]=ie.useState(""),[Q,_]=ie.useState(!1),[se,ve]=ie.useState(!1),[be,we]=ie.useState(!1),ge=ie.useRef({}),ke=ie.useRef(null);ie.useEffect(()=>{je()},[]),ie.useEffect(()=>{localStorage.setItem(Pv,String(W))},[W]),ie.useEffect(()=>{localStorage.setItem(Zv,String(q))},[q]);async function je(){const ye=await cn("/api/config");i(ye),d(ye.graphManifestPath),await _e(),s(await cn("/api/workspace")),await qe();const Pe=await cn("/api/sessions");A(Pe),Pe[0]?await Ue(Pe[0].id):await me()}async function qe(){try{x(""),m(await cn("/api/research-graph"))}catch(ye){x(`Graph manifest: ${fa(ye)}`)}}async function _e(){const ye=await cn("/api/graphs");f(ye.candidates),d(Pe=>Pe||ye.current)}async function Le(ye,Pe="Graph saved"){const It=ye.trim();if(!(!It||Q)){_(!0),j(""),d(It);try{const xt=await cn("/api/config",{method:"PATCH",body:JSON.stringify({graphManifestPath:It})});i(xt),d(xt.graphManifestPath),await _e(),await qe(),j(`${Pe}: ${xt.graphManifestPath}`)}catch(xt){ne(fa(xt))}finally{_(!1)}}}async function Ye(){await Le(h)}async function tt(ye){_(!0),j("");try{const Pe=await cn("/api/research-graph",{method:"PUT",body:JSON.stringify(ye)});m(Pe),await _e(),j(`Graph updated: ${Pe.sourcePath||n?.graphManifestPath||"graph.yaml"}`)}catch(Pe){ne(fa(Pe))}finally{_(!1)}}async function et(){if(!be){we(!0),j("");try{const ye=await cn("/api/workspace/skills/install",{method:"POST",body:JSON.stringify({})});s(await cn("/api/workspace"));const Pe=ye.installed.length?`${ye.installed.length} installed`:"no new skills",It=ye.skipped.length?`, ${ye.skipped.length} already present`:"";j(`Workspace skills: ${Pe}${It}`)}catch(ye){ne(fa(ye))}finally{we(!1)}}}async function ht(){A(await cn("/api/sessions"))}async function me(){ne("");const ye=await cn("/api/sessions",{method:"POST",body:JSON.stringify({title:"New review",model:n?.defaultModel||"gpt-5.5"})});E(ye),await ht()}async function Ue(ye){ne(""),E(await cn(`/api/sessions/${ye}`))}async function nt(ye){if(!C)return;const Pe=await cn(`/api/sessions/${C.id}`,{method:"PATCH",body:JSON.stringify(ye)});E(Pe),await ht()}async function At(ye){ye.preventDefault(),D.trim()&&C&&await Ct(C,D.trim(),{appendUser:!0})}async function Ct(ye,Pe,It){if(!Pe||B[ye.id]?.busy)return;ne("");const xt=ye.id;T(""),U(xn=>({...xn,[xt]:{text:"",busy:!0}})),It.appendUser?E({...ye,messages:[...ye.messages,{id:`local-${Date.now()}`,role:"user",content:Pe,createdAt:new Date().toISOString(),source:"manual"}]}):E(ye);const Zr=new AbortController;ge.current[xt]=Zr;let _r=!1;try{const xn=await fetch(`/api/sessions/${xt}/stream`,{method:"POST",signal:Zr.signal,headers:{"Content-Type":"application/json"},body:JSON.stringify({message:Pe,model:ye.model,manualContext:ye.manualContext,reviewPrompt:ye.reviewPrompt,enableTools:z,includeInstructionFiles:P,existingMessageId:It.existingMessageId})});if(!xn.ok||!xn.body){const Xn=await xn.json().catch(()=>({}));throw new Error(Xn.error||"Request failed.")}const zi=xn.body.getReader(),Sa=new TextDecoder;let wr="",al="";for(;;){const{value:Xn,done:ol}=await zi.read();if(ol)break;wr+=Sa.decode(Xn,{stream:!0});const Ni=wr.split(`
312
+
313
+ `);wr=Ni.pop()||"";for(const Di of Ni){if(!Di.startsWith("data: "))continue;const on=JSON.parse(Di.slice(6));if(on.type==="delta"&&(al+=on.delta,U(sl=>({...sl,[xt]:{text:al,busy:!0}}))),on.type==="tool_call"&&fe(xt,{role:"tool",content:`Calling \`${on.name}\` with:
314
+
315
+ \`\`\`json
316
+ ${on.args}
317
+ \`\`\``,toolName:on.name}),on.type==="skills"&&fe(xt,{role:"system",content:Sz(on)}),on.type==="tool_result"&&fe(xt,{role:"tool",content:`Result from \`${on.name}\`:
318
+
319
+ \`\`\`
320
+ ${String(on.result).slice(0,4e3)}
321
+ \`\`\``,toolName:on.name}),on.type==="error")throw new Error(on.error)}}U(Xn=>({...Xn,[xt]:{text:"",busy:!1}}));const ll=await cn(`/api/sessions/${xt}`);E(Xn=>Xn?.id===xt?ll:Xn),await ht()}catch(xn){xn.name!=="AbortError"?ne(fa(xn)):(_r=!0,U(zi=>({...zi,[xt]:{text:"",busy:!1}})))}finally{delete ge.current[xt],_r||U(xn=>({...xn,[xt]:{text:xn[xt]?.text||"",busy:!1}}))}}async function An(){if(!C)return;ge.current[C.id]?.abort(),U(Pe=>({...Pe,[C.id]:{text:"",busy:!1}}));const ye=await cn(`/api/sessions/${C.id}`).catch(()=>null);ye&&(E(ye),await ht())}async function Ot(){if(!C||B[C.id]?.busy)return;const ye=[...C.messages].reverse().find(Pe=>Pe.role==="user");ye&&await On(ye.id,ye.content)}async function On(ye,Pe){if(!C||B[C.id]?.busy||!Pe.trim())return;const It=await cn(`/api/sessions/${C.id}/messages/${ye}/edit`,{method:"POST",body:JSON.stringify({content:Pe.trim()})});E(It),Y(null),await ht(),await Ct(It,Pe.trim(),{appendUser:!1,existingMessageId:ye})}function fe(ye,Pe){E(It=>It?.id!==ye?It:{...It,messages:[...It.messages,{id:`local-tool-${Date.now()}-${Math.random()}`,createdAt:new Date().toISOString(),source:"model",...Pe}]})}const Ee=ie.useMemo(()=>{if(!C)return[];const ye=C.messages,Pe=B[C.id];return Pe?.text?D5([...ye,{id:"streaming",role:"assistant",content:Pe.text,createdAt:new Date().toISOString(),source:"model",model:C.model,apiMode:C.apiMode}]):D5(ye)},[C,B]),Re=!!(C&&B[C.id]?.busy),$e=V?"app-shell sidebar-collapsed":"app-shell",ot={"--workspace-sidebar-width":`${W}px`},mn={"--session-list-percent":`${q}%`},$n=e==="graph"?"Research Graph":C?.title||"No session",an=e==="graph"?`${n?.workspaceRoot||"Workspace"} · ${n?.graphManifestPath||"graph"}`:`${C?.model||n?.defaultModel} · ${n?.apiMode||"auto"} · ${z&&n?.apiMode==="chat"?"tools on":"tools off"}`,Rt=M.jsxs("div",{className:"view-tabs sidebar-view-tabs","aria-label":"Workspace view",children:[M.jsx("button",{className:e==="chat"?"active":"",onClick:()=>t("chat"),children:"Chat"}),M.jsx("button",{className:e==="graph"?"active":"",onClick:()=>t("graph"),children:"Graph"})]}),ln=M.jsxs("header",{className:"topbar",children:[M.jsxs("div",{children:[M.jsx("strong",{children:$n}),M.jsx("span",{children:an})]}),M.jsx("div",{className:"topbar-actions",children:M.jsx("div",{className:n?.hasOpenAIKey?"status ok":"status error",children:n?.hasOpenAIKey?"API OK":"API ERROR"})})]}),dt=M.jsx(bH,{collapsed:V,onResize:ce,value:W}),ur=u.find(ye=>ye.path===h),Cn=M.jsx(Cz,{candidates:u,config:n,graphSaving:Q,installWorkspaceSkills:()=>{et()},loadGraphCandidates:()=>{_e()},notice:R,saveGraphSelection:()=>{Ye()},selectGraphPath:ye=>{Le(ye,"Graph loaded")},selectedCandidate:ur,selectedGraphPath:h,setSelectedGraphPath:d,setSidebarCollapsed:G,sidebarCollapsed:V,setGraphEditing:ve,graphEditing:se,skillsInstalling:be,viewTabs:Rt}),wo=M.jsxs(M.Fragment,{children:[Cn,se&&p&&!V&&M.jsx(Nz,{graph:p,saving:Q,onCancel:()=>ve(!1),onSave:ye=>{tt(ye)}})]});return e==="graph"?M.jsx(dH,{error:J||v,graph:p||void 0,header:ln,sidebarCollapsed:V,sidebarHeader:wo,sidebarResizeHandle:dt,sidebarWidth:W}):M.jsxs("main",{className:$e,style:ot,children:[M.jsxs("aside",{className:"sidebar",children:[M.jsxs("div",{className:"workspace-sidebar-header",children:[Rt,M.jsxs("div",{className:"brand-row",children:[M.jsxs("div",{className:"workspace-sidebar-title",children:[M.jsx("h1",{children:"Research Sidecar"}),!V&&M.jsxs(M.Fragment,{children:[M.jsx("p",{children:n?.workspaceRoot||"Loading workspace..."}),n?.openaiBaseURL&&M.jsx("p",{children:n.openaiBaseURL})]})]}),M.jsxs("div",{className:"brand-actions",children:[M.jsx("button",{className:"icon-button",onClick:()=>G(!V),title:"Toggle sidebar",children:V?"›":"‹"}),M.jsx("button",{className:"icon-button primary",onClick:me,title:"New session",children:"+"})]})]})]}),dt,!V&&M.jsxs("div",{className:"sidebar-body",ref:ke,style:mn,children:[M.jsx("div",{className:"session-list",children:w.map(ye=>M.jsxs("button",{className:ye.id===C?.id?"session active":"session",onClick:()=>Ue(ye.id),children:[M.jsx("span",{children:ye.title}),M.jsxs("small",{children:[ye.messageCount," messages · ",B[ye.id]?.busy?"thinking":"idle"]})]},ye.id))}),M.jsx(wH,{containerRef:ke,onResize:F,value:q}),C&&M.jsxs("section",{className:"context-panel",children:[M.jsxs("label",{children:["Session title",M.jsx("input",{value:C.title,onChange:ye=>E({...C,title:ye.target.value}),onBlur:()=>nt({title:C.title})})]}),M.jsxs("div",{className:"model-row",children:[M.jsxs("label",{children:["Model",M.jsx("input",{value:C.model,onChange:ye=>E({...C,model:ye.target.value}),onBlur:()=>nt({model:C.model})})]}),M.jsxs("div",{className:"mode-pill",children:["auto · ",n?.apiMode||C.apiMode]})]}),M.jsxs("label",{className:"checkbox-label",children:[M.jsx("input",{type:"checkbox",checked:z,onChange:ye=>I(ye.target.checked),disabled:n?.apiMode!=="chat"}),"Enable workspace tools"]}),M.jsxs("label",{className:"checkbox-label",children:[M.jsx("input",{type:"checkbox",checked:P,onChange:ye=>$(ye.target.checked)}),"Include CLAUDE.md / AGENTS.md"]}),M.jsxs("label",{children:["Codex/context packet notes",M.jsx("textarea",{value:C.manualContext,onChange:ye=>E({...C,manualContext:ye.target.value}),onBlur:()=>nt({manualContext:C.manualContext}),placeholder:"Paste Codex's summary, current plan, diffs, or experiment notes here."})]}),M.jsxs("details",{children:[M.jsx("summary",{children:"Review prompt"}),M.jsx("textarea",{className:"prompt-box",value:C.reviewPrompt,onChange:ye=>E({...C,reviewPrompt:ye.target.value}),onBlur:()=>nt({reviewPrompt:C.reviewPrompt})})]}),M.jsxs("details",{className:"workspace-skills",open:!0,children:[M.jsxs("summary",{children:["Workspace skills (",l.skills.length,")"]}),l.instructionFiles.length>0&&M.jsx("div",{className:"meta-list",children:l.instructionFiles.map(ye=>M.jsx("span",{children:ye.path},ye.path))}),M.jsx("div",{className:"skill-list",children:l.skills.map(ye=>M.jsxs("div",{className:"skill-row",children:[M.jsx("strong",{children:ye.name}),M.jsx("span",{children:ye.description||ye.path})]},`${ye.path}-${ye.name}`))})]})]})]})]}),M.jsxs("section",{className:"chat-pane",children:[ln,J&&M.jsx("div",{className:"error-banner",children:J}),M.jsxs(M.Fragment,{children:[M.jsxs("div",{className:"messages",children:[Ee.length===0&&M.jsxs("div",{className:"empty-state",children:[M.jsx("h2",{children:"Start with a claim, plan, or uncertainty."}),M.jsx("p",{children:"Add explicit context on the left, then ask the sidecar to challenge the reasoning."})]}),Ee.map(ye=>ye.kind==="tool-run"?M.jsx(wz,{run:ye.run},ye.run.id):M.jsx("article",{className:`message ${ye.message.role}`,children:M.jsxs(M.Fragment,{children:[M.jsxs("div",{className:"message-meta",children:[M.jsx("span",{children:bz(ye.message)}),ye.message.model&&M.jsx("small",{children:ye.message.model}),ye.message.role==="user"&&!Re&&M.jsx("button",{className:"text-button",onClick:()=>Y({id:ye.message.id,content:ye.message.content}),children:"Edit"})]}),L?.id===ye.message.id?M.jsxs("form",{className:"edit-form",onSubmit:Pe=>{Pe.preventDefault(),On(ye.message.id,L.content)},children:[M.jsx("textarea",{value:L.content,onChange:Pe=>Y({id:L.id,content:Pe.target.value})}),M.jsxs("div",{className:"composer-actions",children:[M.jsx("button",{type:"button",className:"secondary-button",onClick:()=>Y(null),children:"Cancel"}),M.jsx("button",{children:"Save & rerun"})]})]}):M.jsx(Rs,{className:"message-body",content:ye.message.content})]})},ye.message.id))]}),M.jsxs("form",{className:"composer",onSubmit:At,children:[M.jsx("textarea",{value:D,onChange:ye=>T(ye.target.value),placeholder:"Ask for an independent review, rival hypotheses, weak links, or the next evidence to gather."}),M.jsxs("div",{className:"composer-actions",children:[M.jsx("button",{type:"button",className:"secondary-button",disabled:!C?.messages.some(ye=>ye.role==="user")||Re,onClick:Ot,children:"Rerun"}),Re?M.jsx("button",{type:"button",className:"stop-button",onClick:An,children:"Stop"}):M.jsx("button",{disabled:!D.trim(),children:"Send"})]})]})]})]})]})}function CH(){return window.location.pathname==="/viewer"?M.jsx(EH,{}):M.jsx(AH,{})}cb.createRoot(document.getElementById("root")).render(M.jsx(CH,{}));