@hachther/akilio-widget 0.6.2 → 0.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,45 +1,45 @@
1
- var Akilio=(function(Lr){"use strict";var dA=globalThis.process||{env:{NODE_ENV:"production"}},pA=globalThis;function Ns(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Cs={exports:{}},zr={};var Uf;function dy(){if(Uf)return zr;Uf=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(o,s,f){var u=null;if(f!==void 0&&(u=""+f),s.key!==void 0&&(u=""+s.key),"key"in s){f={};for(var g in s)g!=="key"&&(f[g]=s[g])}else f=s;return s=f.ref,{$$typeof:n,type:o,key:u,ref:s!==void 0?s:null,props:f}}return zr.Fragment=a,zr.jsx=r,zr.jsxs=r,zr}var Hf;function py(){return Hf||(Hf=1,Cs.exports=dy()),Cs.exports}var L=py(),Os={exports:{}},Ir={},Ms={exports:{}},Rs={};var qf;function gy(){return qf||(qf=1,(function(n){function a(G,j){var P=G.length;G.push(j);e:for(;0<P;){var ve=P-1>>>1,S=G[ve];if(0<s(S,j))G[ve]=j,G[P]=S,P=ve;else break e}}function r(G){return G.length===0?null:G[0]}function o(G){if(G.length===0)return null;var j=G[0],P=G.pop();if(P!==j){G[0]=P;e:for(var ve=0,S=G.length,Re=S>>>1;ve<Re;){var T=2*(ve+1)-1,k=G[T],W=T+1,de=G[W];if(0>s(k,P))W<S&&0>s(de,k)?(G[ve]=de,G[W]=P,ve=W):(G[ve]=k,G[T]=P,ve=T);else if(W<S&&0>s(de,P))G[ve]=de,G[W]=P,ve=W;else break e}}return j}function s(G,j){var P=G.sortIndex-j.sortIndex;return P!==0?P:G.id-j.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var u=Date,g=u.now();n.unstable_now=function(){return u.now()-g}}var h=[],p=[],b=1,m=null,E=3,v=!1,x=!1,C=!1,M=!1,w=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function J(G){for(var j=r(p);j!==null;){if(j.callback===null)o(p);else if(j.startTime<=G)o(p),j.sortIndex=j.expirationTime,a(h,j);else break;j=r(p)}}function te(G){if(C=!1,J(G),!x)if(r(h)!==null)x=!0,D||(D=!0,re());else{var j=r(p);j!==null&&Q(te,j.startTime-G)}}var D=!1,ce=-1,ne=5,fe=-1;function z(){return M?!0:!(n.unstable_now()-fe<ne)}function oe(){if(M=!1,D){var G=n.unstable_now();fe=G;var j=!0;try{e:{x=!1,C&&(C=!1,q(ce),ce=-1),v=!0;var P=E;try{t:{for(J(G),m=r(h);m!==null&&!(m.expirationTime>G&&z());){var ve=m.callback;if(typeof ve=="function"){m.callback=null,E=m.priorityLevel;var S=ve(m.expirationTime<=G);if(G=n.unstable_now(),typeof S=="function"){m.callback=S,J(G),j=!0;break t}m===r(h)&&o(h),J(G)}else o(h);m=r(h)}if(m!==null)j=!0;else{var Re=r(p);Re!==null&&Q(te,Re.startTime-G),j=!1}}break e}finally{m=null,E=P,v=!1}j=void 0}}finally{j?re():D=!1}}}var re;if(typeof H=="function")re=function(){H(oe)};else if(typeof MessageChannel<"u"){var ke=new MessageChannel,le=ke.port2;ke.port1.onmessage=oe,re=function(){le.postMessage(null)}}else re=function(){w(oe,0)};function Q(G,j){ce=w(function(){G(n.unstable_now())},j)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(G){G.callback=null},n.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<G?Math.floor(1e3/G):5},n.unstable_getCurrentPriorityLevel=function(){return E},n.unstable_next=function(G){switch(E){case 1:case 2:case 3:var j=3;break;default:j=E}var P=E;E=j;try{return G()}finally{E=P}},n.unstable_requestPaint=function(){M=!0},n.unstable_runWithPriority=function(G,j){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var P=E;E=G;try{return j()}finally{E=P}},n.unstable_scheduleCallback=function(G,j,P){var ve=n.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?ve+P:ve):P=ve,G){case 1:var S=-1;break;case 2:S=250;break;case 5:S=1073741823;break;case 4:S=1e4;break;default:S=5e3}return S=P+S,G={id:b++,callback:j,priorityLevel:G,startTime:P,expirationTime:S,sortIndex:-1},P>ve?(G.sortIndex=P,a(p,G),r(h)===null&&G===r(p)&&(C?(q(ce),ce=-1):C=!0,Q(te,P-ve))):(G.sortIndex=S,a(h,G),x||v||(x=!0,D||(D=!0,re()))),G},n.unstable_shouldYield=z,n.unstable_wrapCallback=function(G){var j=E;return function(){var P=E;E=j;try{return G.apply(this,arguments)}finally{E=P}}}})(Rs)),Rs}var Ff;function hy(){return Ff||(Ff=1,Ms.exports=gy()),Ms.exports}var Ds={exports:{}},Be={},Gf;function my(){if(Gf)return Be;Gf=1;var n={env:{NODE_ENV:"production"}};var a=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),g=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),v=Symbol.iterator;function x(T){return T===null||typeof T!="object"?null:(T=v&&T[v]||T["@@iterator"],typeof T=="function"?T:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,w={};function q(T,k,W){this.props=T,this.context=k,this.refs=w,this.updater=W||C}q.prototype.isReactComponent={},q.prototype.setState=function(T,k){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,k,"setState")},q.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function H(){}H.prototype=q.prototype;function J(T,k,W){this.props=T,this.context=k,this.refs=w,this.updater=W||C}var te=J.prototype=new H;te.constructor=J,M(te,q.prototype),te.isPureReactComponent=!0;var D=Array.isArray;function ce(){}var ne={H:null,A:null,T:null,S:null},fe=Object.prototype.hasOwnProperty;function z(T,k,W){var de=W.ref;return{$$typeof:a,type:T,key:k,ref:de!==void 0?de:null,props:W}}function oe(T,k){return z(T.type,k,T.props)}function re(T){return typeof T=="object"&&T!==null&&T.$$typeof===a}function ke(T){var k={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(W){return k[W]})}var le=/\/+/g;function Q(T,k){return typeof T=="object"&&T!==null&&T.key!=null?ke(""+T.key):k.toString(36)}function G(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(ce,ce):(T.status="pending",T.then(function(k){T.status==="pending"&&(T.status="fulfilled",T.value=k)},function(k){T.status==="pending"&&(T.status="rejected",T.reason=k)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function j(T,k,W,de,Ee){var Me=typeof T;(Me==="undefined"||Me==="boolean")&&(T=null);var xe=!1;if(T===null)xe=!0;else switch(Me){case"bigint":case"string":case"number":xe=!0;break;case"object":switch(T.$$typeof){case a:case r:xe=!0;break;case m:return xe=T._init,j(xe(T._payload),k,W,de,Ee)}}if(xe)return Ee=Ee(T),xe=de===""?"."+Q(T,0):de,D(Ee)?(W="",xe!=null&&(W=xe.replace(le,"$&/")+"/"),j(Ee,k,W,"",function(un){return un})):Ee!=null&&(re(Ee)&&(Ee=oe(Ee,W+(Ee.key==null||T&&T.key===Ee.key?"":(""+Ee.key).replace(le,"$&/")+"/")+xe)),k.push(Ee)),1;xe=0;var ft=de===""?".":de+":";if(D(T))for(var ze=0;ze<T.length;ze++)de=T[ze],Me=ft+Q(de,ze),xe+=j(de,k,W,Me,Ee);else if(ze=x(T),typeof ze=="function")for(T=ze.call(T),ze=0;!(de=T.next()).done;)de=de.value,Me=ft+Q(de,ze++),xe+=j(de,k,W,Me,Ee);else if(Me==="object"){if(typeof T.then=="function")return j(G(T),k,W,de,Ee);throw k=String(T),Error("Objects are not valid as a React child (found: "+(k==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.")}return xe}function P(T,k,W){if(T==null)return T;var de=[],Ee=0;return j(T,de,"","",function(Me){return k.call(W,Me,Ee++)}),de}function ve(T){if(T._status===-1){var k=T._result;k=k(),k.then(function(W){(T._status===0||T._status===-1)&&(T._status=1,T._result=W)},function(W){(T._status===0||T._status===-1)&&(T._status=2,T._result=W)}),T._status===-1&&(T._status=0,T._result=k)}if(T._status===1)return T._result.default;throw T._result}var S=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var k=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(k))return}else if(typeof n=="object"&&typeof n.emit=="function"){n.emit("uncaughtException",T);return}console.error(T)},Re={map:P,forEach:function(T,k,W){P(T,function(){k.apply(this,arguments)},W)},count:function(T){var k=0;return P(T,function(){k++}),k},toArray:function(T){return P(T,function(k){return k})||[]},only:function(T){if(!re(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return Be.Activity=E,Be.Children=Re,Be.Component=q,Be.Fragment=o,Be.Profiler=f,Be.PureComponent=J,Be.StrictMode=s,Be.Suspense=p,Be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ne,Be.__COMPILER_RUNTIME={__proto__:null,c:function(T){return ne.H.useMemoCache(T)}},Be.cache=function(T){return function(){return T.apply(null,arguments)}},Be.cacheSignal=function(){return null},Be.cloneElement=function(T,k,W){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var de=M({},T.props),Ee=T.key;if(k!=null)for(Me in k.key!==void 0&&(Ee=""+k.key),k)!fe.call(k,Me)||Me==="key"||Me==="__self"||Me==="__source"||Me==="ref"&&k.ref===void 0||(de[Me]=k[Me]);var Me=arguments.length-2;if(Me===1)de.children=W;else if(1<Me){for(var xe=Array(Me),ft=0;ft<Me;ft++)xe[ft]=arguments[ft+2];de.children=xe}return z(T.type,Ee,de)},Be.createContext=function(T){return T={$$typeof:g,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:u,_context:T},T},Be.createElement=function(T,k,W){var de,Ee={},Me=null;if(k!=null)for(de in k.key!==void 0&&(Me=""+k.key),k)fe.call(k,de)&&de!=="key"&&de!=="__self"&&de!=="__source"&&(Ee[de]=k[de]);var xe=arguments.length-2;if(xe===1)Ee.children=W;else if(1<xe){for(var ft=Array(xe),ze=0;ze<xe;ze++)ft[ze]=arguments[ze+2];Ee.children=ft}if(T&&T.defaultProps)for(de in xe=T.defaultProps,xe)Ee[de]===void 0&&(Ee[de]=xe[de]);return z(T,Me,Ee)},Be.createRef=function(){return{current:null}},Be.forwardRef=function(T){return{$$typeof:h,render:T}},Be.isValidElement=re,Be.lazy=function(T){return{$$typeof:m,_payload:{_status:-1,_result:T},_init:ve}},Be.memo=function(T,k){return{$$typeof:b,type:T,compare:k===void 0?null:k}},Be.startTransition=function(T){var k=ne.T,W={};ne.T=W;try{var de=T(),Ee=ne.S;Ee!==null&&Ee(W,de),typeof de=="object"&&de!==null&&typeof de.then=="function"&&de.then(ce,S)}catch(Me){S(Me)}finally{k!==null&&W.types!==null&&(k.types=W.types),ne.T=k}},Be.unstable_useCacheRefresh=function(){return ne.H.useCacheRefresh()},Be.use=function(T){return ne.H.use(T)},Be.useActionState=function(T,k,W){return ne.H.useActionState(T,k,W)},Be.useCallback=function(T,k){return ne.H.useCallback(T,k)},Be.useContext=function(T){return ne.H.useContext(T)},Be.useDebugValue=function(){},Be.useDeferredValue=function(T,k){return ne.H.useDeferredValue(T,k)},Be.useEffect=function(T,k){return ne.H.useEffect(T,k)},Be.useEffectEvent=function(T){return ne.H.useEffectEvent(T)},Be.useId=function(){return ne.H.useId()},Be.useImperativeHandle=function(T,k,W){return ne.H.useImperativeHandle(T,k,W)},Be.useInsertionEffect=function(T,k){return ne.H.useInsertionEffect(T,k)},Be.useLayoutEffect=function(T,k){return ne.H.useLayoutEffect(T,k)},Be.useMemo=function(T,k){return ne.H.useMemo(T,k)},Be.useOptimistic=function(T,k){return ne.H.useOptimistic(T,k)},Be.useReducer=function(T,k,W){return ne.H.useReducer(T,k,W)},Be.useRef=function(T){return ne.H.useRef(T)},Be.useState=function(T){return ne.H.useState(T)},Be.useSyncExternalStore=function(T,k,W){return ne.H.useSyncExternalStore(T,k,W)},Be.useTransition=function(){return ne.H.useTransition()},Be.version="19.2.7",Be}var jf;function Ls(){return jf||(jf=1,Ds.exports=my()),Ds.exports}var zs={exports:{}},ln={};var Yf;function by(){if(Yf)return ln;Yf=1;var n=Ls();function a(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function f(h,p,b){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:m==null?null:""+m,children:h,containerInfo:p,implementation:b}}var u=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return ln.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ln.createPortal=function(h,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(a(299));return f(h,p,null,b)},ln.flushSync=function(h){var p=u.T,b=o.p;try{if(u.T=null,o.p=2,h)return h()}finally{u.T=p,o.p=b,o.d.f()}},ln.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(h,p))},ln.prefetchDNS=function(h){typeof h=="string"&&o.d.D(h)},ln.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var b=p.as,m=g(b,p.crossOrigin),E=typeof p.integrity=="string"?p.integrity:void 0,v=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?o.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:m,integrity:E,fetchPriority:v}):b==="script"&&o.d.X(h,{crossOrigin:m,integrity:E,fetchPriority:v,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},ln.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=g(p.as,p.crossOrigin);o.d.M(h,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(h)},ln.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,m=g(b,p.crossOrigin);o.d.L(h,b,{crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},ln.preloadModule=function(h,p){if(typeof h=="string")if(p){var b=g(p.as,p.crossOrigin);o.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(h)},ln.requestFormReset=function(h){o.d.r(h)},ln.unstable_batchedUpdates=function(h,p){return h(p)},ln.useFormState=function(h,p,b){return u.H.useFormState(h,p,b)},ln.useFormStatus=function(){return u.H.useHostTransitionStatus()},ln.version="19.2.7",ln}var Pf;function Kf(){if(Pf)return zs.exports;Pf=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),zs.exports=by(),zs.exports}var Vf;function yy(){if(Vf)return Ir;Vf=1;var n={env:{NODE_ENV:"production"}};var a=hy(),r=Ls(),o=Kf();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(i=t.return),e=t.return;while(e)}return t.tag===3?i:null}function g(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(u(e)!==e)throw Error(s(188))}function b(e){var t=e.alternate;if(!t){if(t=u(e),t===null)throw Error(s(188));return t!==e?null:e}for(var i=e,l=t;;){var c=i.return;if(c===null)break;var d=c.alternate;if(d===null){if(l=c.return,l!==null){i=l;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===i)return p(c),e;if(d===l)return p(c),t;d=d.sibling}throw Error(s(188))}if(i.return!==l.return)i=c,l=d;else{for(var y=!1,_=c.child;_;){if(_===i){y=!0,i=c,l=d;break}if(_===l){y=!0,l=c,i=d;break}_=_.sibling}if(!y){for(_=d.child;_;){if(_===i){y=!0,i=d,l=c;break}if(_===l){y=!0,l=d,i=c;break}_=_.sibling}if(!y)throw Error(s(189))}}if(i.alternate!==l)throw Error(s(190))}if(i.tag!==3)throw Error(s(188));return i.stateNode.current===i?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}var E=Object.assign,v=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),J=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),ce=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),oe=Symbol.for("react.memo_cache_sentinel"),re=Symbol.iterator;function ke(e){return e===null||typeof e!="object"?null:(e=re&&e[re]||e["@@iterator"],typeof e=="function"?e:null)}var le=Symbol.for("react.client.reference");function Q(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===le?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case q:return"Profiler";case w:return"StrictMode";case D:return"Suspense";case ce:return"SuspenseList";case z:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case C:return"Portal";case J:return e.displayName||"Context";case H:return(e._context.displayName||"Context")+".Consumer";case te:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ne:return t=e.displayName||null,t!==null?t:Q(e.type)||"Memo";case fe:t=e._payload,e=e._init;try{return Q(e(t))}catch{}}return null}var G=Array.isArray,j=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ve={pending:!1,data:null,method:null,action:null},S=[],Re=-1;function T(e){return{current:e}}function k(e){0>Re||(e.current=S[Re],S[Re]=null,Re--)}function W(e,t){Re++,S[Re]=e.current,e.current=t}var de=T(null),Ee=T(null),Me=T(null),xe=T(null);function ft(e,t){switch(W(Me,t),W(Ee,e),W(de,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?zb(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=zb(t),e=Ib(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}k(de),W(de,e)}function ze(){k(de),k(Ee),k(Me)}function un(e){e.memoizedState!==null&&W(xe,e);var t=de.current,i=Ib(t,e.type);t!==i&&(W(Ee,e),W(de,i))}function zn(e){Ee.current===e&&(k(de),k(Ee)),xe.current===e&&(k(xe),Fl._currentValue=ve)}var Xn,In;function Qt(e){if(Xn===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);Xn=t&&t[1]||"",In=-1<i.stack.indexOf(`
1
+ var Akilio=(function(qr){"use strict";var EA=globalThis.process||{env:{NODE_ENV:"production"}},_A=globalThis;function Os(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ms={exports:{}},Fr={};var qf;function my(){if(qf)return Fr;qf=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(o,s,f){var u=null;if(f!==void 0&&(u=""+f),s.key!==void 0&&(u=""+s.key),"key"in s){f={};for(var g in s)g!=="key"&&(f[g]=s[g])}else f=s;return s=f.ref,{$$typeof:n,type:o,key:u,ref:s!==void 0?s:null,props:f}}return Fr.Fragment=a,Fr.jsx=r,Fr.jsxs=r,Fr}var Ff;function hy(){return Ff||(Ff=1,Ms.exports=my()),Ms.exports}var D=hy(),Rs={exports:{}},Gr={},Ds={exports:{}},Ls={};var Gf;function by(){return Gf||(Gf=1,(function(n){function a(Y,G){var K=Y.length;Y.push(G);e:for(;0<K;){var ve=K-1>>>1,S=Y[ve];if(0<s(S,G))Y[ve]=G,Y[K]=S,K=ve;else break e}}function r(Y){return Y.length===0?null:Y[0]}function o(Y){if(Y.length===0)return null;var G=Y[0],K=Y.pop();if(K!==G){Y[0]=K;e:for(var ve=0,S=Y.length,Be=S>>>1;ve<Be;){var T=2*(ve+1)-1,_=Y[T],J=T+1,pe=Y[J];if(0>s(_,K))J<S&&0>s(pe,_)?(Y[ve]=pe,Y[J]=K,ve=J):(Y[ve]=_,Y[T]=K,ve=T);else if(J<S&&0>s(pe,K))Y[ve]=pe,Y[J]=K,ve=J;else break e}}return G}function s(Y,G){var K=Y.sortIndex-G.sortIndex;return K!==0?K:Y.id-G.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var u=Date,g=u.now();n.unstable_now=function(){return u.now()-g}}var m=[],p=[],b=1,h=null,v=3,k=!1,x=!1,C=!1,M=!1,w=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function Q(Y){for(var G=r(p);G!==null;){if(G.callback===null)o(p);else if(G.startTime<=Y)o(p),G.sortIndex=G.expirationTime,a(m,G);else break;G=r(p)}}function te(Y){if(C=!1,Q(Y),!x)if(r(m)!==null)x=!0,L||(L=!0,re());else{var G=r(p);G!==null&&X(te,G.startTime-Y)}}var L=!1,ce=-1,ee=5,fe=-1;function z(){return M?!0:!(n.unstable_now()-fe<ee)}function se(){if(M=!1,L){var Y=n.unstable_now();fe=Y;var G=!0;try{e:{x=!1,C&&(C=!1,q(ce),ce=-1),k=!0;var K=v;try{t:{for(Q(Y),h=r(m);h!==null&&!(h.expirationTime>Y&&z());){var ve=h.callback;if(typeof ve=="function"){h.callback=null,v=h.priorityLevel;var S=ve(h.expirationTime<=Y);if(Y=n.unstable_now(),typeof S=="function"){h.callback=S,Q(Y),G=!0;break t}h===r(m)&&o(m),Q(Y)}else o(m);h=r(m)}if(h!==null)G=!0;else{var Be=r(p);Be!==null&&X(te,Be.startTime-Y),G=!1}}break e}finally{h=null,v=K,k=!1}G=void 0}}finally{G?re():L=!1}}}var re;if(typeof H=="function")re=function(){H(se)};else if(typeof MessageChannel<"u"){var _e=new MessageChannel,oe=_e.port2;_e.port1.onmessage=se,re=function(){oe.postMessage(null)}}else re=function(){w(se,0)};function X(Y,G){ce=w(function(){Y(n.unstable_now())},G)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(Y){Y.callback=null},n.unstable_forceFrameRate=function(Y){0>Y||125<Y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ee=0<Y?Math.floor(1e3/Y):5},n.unstable_getCurrentPriorityLevel=function(){return v},n.unstable_next=function(Y){switch(v){case 1:case 2:case 3:var G=3;break;default:G=v}var K=v;v=G;try{return Y()}finally{v=K}},n.unstable_requestPaint=function(){M=!0},n.unstable_runWithPriority=function(Y,G){switch(Y){case 1:case 2:case 3:case 4:case 5:break;default:Y=3}var K=v;v=Y;try{return G()}finally{v=K}},n.unstable_scheduleCallback=function(Y,G,K){var ve=n.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?ve+K:ve):K=ve,Y){case 1:var S=-1;break;case 2:S=250;break;case 5:S=1073741823;break;case 4:S=1e4;break;default:S=5e3}return S=K+S,Y={id:b++,callback:G,priorityLevel:Y,startTime:K,expirationTime:S,sortIndex:-1},K>ve?(Y.sortIndex=K,a(p,Y),r(m)===null&&Y===r(p)&&(C?(q(ce),ce=-1):C=!0,X(te,K-ve))):(Y.sortIndex=S,a(m,Y),x||k||(x=!0,L||(L=!0,re()))),Y},n.unstable_shouldYield=z,n.unstable_wrapCallback=function(Y){var G=v;return function(){var K=v;v=G;try{return Y.apply(this,arguments)}finally{v=K}}}})(Ls)),Ls}var jf;function yy(){return jf||(jf=1,Ds.exports=by()),Ds.exports}var zs={exports:{}},He={},Yf;function vy(){if(Yf)return He;Yf=1;var n={env:{NODE_ENV:"production"}};var a=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),g=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),k=Symbol.iterator;function x(T){return T===null||typeof T!="object"?null:(T=k&&T[k]||T["@@iterator"],typeof T=="function"?T:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,w={};function q(T,_,J){this.props=T,this.context=_,this.refs=w,this.updater=J||C}q.prototype.isReactComponent={},q.prototype.setState=function(T,_){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,_,"setState")},q.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function H(){}H.prototype=q.prototype;function Q(T,_,J){this.props=T,this.context=_,this.refs=w,this.updater=J||C}var te=Q.prototype=new H;te.constructor=Q,M(te,q.prototype),te.isPureReactComponent=!0;var L=Array.isArray;function ce(){}var ee={H:null,A:null,T:null,S:null},fe=Object.prototype.hasOwnProperty;function z(T,_,J){var pe=J.ref;return{$$typeof:a,type:T,key:_,ref:pe!==void 0?pe:null,props:J}}function se(T,_){return z(T.type,_,T.props)}function re(T){return typeof T=="object"&&T!==null&&T.$$typeof===a}function _e(T){var _={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(J){return _[J]})}var oe=/\/+/g;function X(T,_){return typeof T=="object"&&T!==null&&T.key!=null?_e(""+T.key):_.toString(36)}function Y(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(ce,ce):(T.status="pending",T.then(function(_){T.status==="pending"&&(T.status="fulfilled",T.value=_)},function(_){T.status==="pending"&&(T.status="rejected",T.reason=_)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function G(T,_,J,pe,de){var Ce=typeof T;(Ce==="undefined"||Ce==="boolean")&&(T=null);var Ue=!1;if(T===null)Ue=!0;else switch(Ce){case"bigint":case"string":case"number":Ue=!0;break;case"object":switch(T.$$typeof){case a:case r:Ue=!0;break;case h:return Ue=T._init,G(Ue(T._payload),_,J,pe,de)}}if(Ue)return de=de(T),Ue=pe===""?"."+X(T,0):pe,L(de)?(J="",Ue!=null&&(J=Ue.replace(oe,"$&/")+"/"),G(de,_,J,"",function(gt){return gt})):de!=null&&(re(de)&&(de=se(de,J+(de.key==null||T&&T.key===de.key?"":(""+de.key).replace(oe,"$&/")+"/")+Ue)),_.push(de)),1;Ue=0;var kt=pe===""?".":pe+":";if(L(T))for(var Ke=0;Ke<T.length;Ke++)pe=T[Ke],Ce=kt+X(pe,Ke),Ue+=G(pe,_,J,Ce,de);else if(Ke=x(T),typeof Ke=="function")for(T=Ke.call(T),Ke=0;!(pe=T.next()).done;)pe=pe.value,Ce=kt+X(pe,Ke++),Ue+=G(pe,_,J,Ce,de);else if(Ce==="object"){if(typeof T.then=="function")return G(Y(T),_,J,pe,de);throw _=String(T),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.")}return Ue}function K(T,_,J){if(T==null)return T;var pe=[],de=0;return G(T,pe,"","",function(Ce){return _.call(J,Ce,de++)}),pe}function ve(T){if(T._status===-1){var _=T._result;_=_(),_.then(function(J){(T._status===0||T._status===-1)&&(T._status=1,T._result=J)},function(J){(T._status===0||T._status===-1)&&(T._status=2,T._result=J)}),T._status===-1&&(T._status=0,T._result=_)}if(T._status===1)return T._result.default;throw T._result}var S=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var _=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(_))return}else if(typeof n=="object"&&typeof n.emit=="function"){n.emit("uncaughtException",T);return}console.error(T)},Be={map:K,forEach:function(T,_,J){K(T,function(){_.apply(this,arguments)},J)},count:function(T){var _=0;return K(T,function(){_++}),_},toArray:function(T){return K(T,function(_){return _})||[]},only:function(T){if(!re(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return He.Activity=v,He.Children=Be,He.Component=q,He.Fragment=o,He.Profiler=f,He.PureComponent=Q,He.StrictMode=s,He.Suspense=p,He.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ee,He.__COMPILER_RUNTIME={__proto__:null,c:function(T){return ee.H.useMemoCache(T)}},He.cache=function(T){return function(){return T.apply(null,arguments)}},He.cacheSignal=function(){return null},He.cloneElement=function(T,_,J){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var pe=M({},T.props),de=T.key;if(_!=null)for(Ce in _.key!==void 0&&(de=""+_.key),_)!fe.call(_,Ce)||Ce==="key"||Ce==="__self"||Ce==="__source"||Ce==="ref"&&_.ref===void 0||(pe[Ce]=_[Ce]);var Ce=arguments.length-2;if(Ce===1)pe.children=J;else if(1<Ce){for(var Ue=Array(Ce),kt=0;kt<Ce;kt++)Ue[kt]=arguments[kt+2];pe.children=Ue}return z(T.type,de,pe)},He.createContext=function(T){return T={$$typeof:g,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:u,_context:T},T},He.createElement=function(T,_,J){var pe,de={},Ce=null;if(_!=null)for(pe in _.key!==void 0&&(Ce=""+_.key),_)fe.call(_,pe)&&pe!=="key"&&pe!=="__self"&&pe!=="__source"&&(de[pe]=_[pe]);var Ue=arguments.length-2;if(Ue===1)de.children=J;else if(1<Ue){for(var kt=Array(Ue),Ke=0;Ke<Ue;Ke++)kt[Ke]=arguments[Ke+2];de.children=kt}if(T&&T.defaultProps)for(pe in Ue=T.defaultProps,Ue)de[pe]===void 0&&(de[pe]=Ue[pe]);return z(T,Ce,de)},He.createRef=function(){return{current:null}},He.forwardRef=function(T){return{$$typeof:m,render:T}},He.isValidElement=re,He.lazy=function(T){return{$$typeof:h,_payload:{_status:-1,_result:T},_init:ve}},He.memo=function(T,_){return{$$typeof:b,type:T,compare:_===void 0?null:_}},He.startTransition=function(T){var _=ee.T,J={};ee.T=J;try{var pe=T(),de=ee.S;de!==null&&de(J,pe),typeof pe=="object"&&pe!==null&&typeof pe.then=="function"&&pe.then(ce,S)}catch(Ce){S(Ce)}finally{_!==null&&J.types!==null&&(_.types=J.types),ee.T=_}},He.unstable_useCacheRefresh=function(){return ee.H.useCacheRefresh()},He.use=function(T){return ee.H.use(T)},He.useActionState=function(T,_,J){return ee.H.useActionState(T,_,J)},He.useCallback=function(T,_){return ee.H.useCallback(T,_)},He.useContext=function(T){return ee.H.useContext(T)},He.useDebugValue=function(){},He.useDeferredValue=function(T,_){return ee.H.useDeferredValue(T,_)},He.useEffect=function(T,_){return ee.H.useEffect(T,_)},He.useEffectEvent=function(T){return ee.H.useEffectEvent(T)},He.useId=function(){return ee.H.useId()},He.useImperativeHandle=function(T,_,J){return ee.H.useImperativeHandle(T,_,J)},He.useInsertionEffect=function(T,_){return ee.H.useInsertionEffect(T,_)},He.useLayoutEffect=function(T,_){return ee.H.useLayoutEffect(T,_)},He.useMemo=function(T,_){return ee.H.useMemo(T,_)},He.useOptimistic=function(T,_){return ee.H.useOptimistic(T,_)},He.useReducer=function(T,_,J){return ee.H.useReducer(T,_,J)},He.useRef=function(T){return ee.H.useRef(T)},He.useState=function(T){return ee.H.useState(T)},He.useSyncExternalStore=function(T,_,J){return ee.H.useSyncExternalStore(T,_,J)},He.useTransition=function(){return ee.H.useTransition()},He.version="19.2.7",He}var Pf;function Is(){return Pf||(Pf=1,zs.exports=vy()),zs.exports}var Bs={exports:{}},sn={};var Kf;function ky(){if(Kf)return sn;Kf=1;var n=Is();function a(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function f(m,p,b){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:h==null?null:""+h,children:m,containerInfo:p,implementation:b}}var u=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return sn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,sn.createPortal=function(m,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(a(299));return f(m,p,null,b)},sn.flushSync=function(m){var p=u.T,b=o.p;try{if(u.T=null,o.p=2,m)return m()}finally{u.T=p,o.p=b,o.d.f()}},sn.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(m,p))},sn.prefetchDNS=function(m){typeof m=="string"&&o.d.D(m)},sn.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var b=p.as,h=g(b,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,k=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?o.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:h,integrity:v,fetchPriority:k}):b==="script"&&o.d.X(m,{crossOrigin:h,integrity:v,fetchPriority:k,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},sn.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=g(p.as,p.crossOrigin);o.d.M(m,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(m)},sn.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,h=g(b,p.crossOrigin);o.d.L(m,b,{crossOrigin:h,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},sn.preloadModule=function(m,p){if(typeof m=="string")if(p){var b=g(p.as,p.crossOrigin);o.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(m)},sn.requestFormReset=function(m){o.d.r(m)},sn.unstable_batchedUpdates=function(m,p){return m(p)},sn.useFormState=function(m,p,b){return u.H.useFormState(m,p,b)},sn.useFormStatus=function(){return u.H.useHostTransitionStatus()},sn.version="19.2.7",sn}var Vf;function $f(){if(Vf)return Bs.exports;Vf=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Bs.exports=ky(),Bs.exports}var Zf;function Ey(){if(Zf)return Gr;Zf=1;var n={env:{NODE_ENV:"production"}};var a=yy(),r=Is(),o=$f();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(i=t.return),e=t.return;while(e)}return t.tag===3?i:null}function g(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(u(e)!==e)throw Error(s(188))}function b(e){var t=e.alternate;if(!t){if(t=u(e),t===null)throw Error(s(188));return t!==e?null:e}for(var i=e,l=t;;){var c=i.return;if(c===null)break;var d=c.alternate;if(d===null){if(l=c.return,l!==null){i=l;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===i)return p(c),e;if(d===l)return p(c),t;d=d.sibling}throw Error(s(188))}if(i.return!==l.return)i=c,l=d;else{for(var y=!1,E=c.child;E;){if(E===i){y=!0,i=c,l=d;break}if(E===l){y=!0,l=c,i=d;break}E=E.sibling}if(!y){for(E=d.child;E;){if(E===i){y=!0,i=d,l=c;break}if(E===l){y=!0,l=d,i=c;break}E=E.sibling}if(!y)throw Error(s(189))}}if(i.alternate!==l)throw Error(s(190))}if(i.tag!==3)throw Error(s(188));return i.stateNode.current===i?e:t}function h(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=h(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,k=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),Q=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),ce=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),se=Symbol.for("react.memo_cache_sentinel"),re=Symbol.iterator;function _e(e){return e===null||typeof e!="object"?null:(e=re&&e[re]||e["@@iterator"],typeof e=="function"?e:null)}var oe=Symbol.for("react.client.reference");function X(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===oe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case q:return"Profiler";case w:return"StrictMode";case L:return"Suspense";case ce:return"SuspenseList";case z:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case C:return"Portal";case Q:return e.displayName||"Context";case H:return(e._context.displayName||"Context")+".Consumer";case te:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ee:return t=e.displayName||null,t!==null?t:X(e.type)||"Memo";case fe:t=e._payload,e=e._init;try{return X(e(t))}catch{}}return null}var Y=Array.isArray,G=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ve={pending:!1,data:null,method:null,action:null},S=[],Be=-1;function T(e){return{current:e}}function _(e){0>Be||(e.current=S[Be],S[Be]=null,Be--)}function J(e,t){Be++,S[Be]=e.current,e.current=t}var pe=T(null),de=T(null),Ce=T(null),Ue=T(null);function kt(e,t){switch(J(Ce,t),J(de,e),J(pe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ub(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ub(t),e=Hb(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}_(pe),J(pe,e)}function Ke(){_(pe),_(de),_(Ce)}function gt(e){e.memoizedState!==null&&J(Ue,e);var t=pe.current,i=Hb(t,e.type);t!==i&&(J(de,e),J(pe,i))}function zn(e){de.current===e&&(_(pe),_(de)),Ue.current===e&&(_(Ue),Pl._currentValue=ve)}var Vt,bi;function en(e){if(Vt===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);Vt=t&&t[1]||"",bi=-1<i.stack.indexOf(`
2
2
  at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+Xn+e+In}var Pe=!1;function Jt(e,t){if(!e||Pe)return"";Pe=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(F){var U=F}Reflect.construct(e,[],X)}else{try{X.call()}catch(F){U=F}e.call(X.prototype)}}else{try{throw Error()}catch(F){U=F}(X=e())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(F){if(F&&U&&typeof F.stack=="string")return[F.stack,U.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=l.DetermineComponentFrameRoot(),y=d[0],_=d[1];if(y&&_){var A=y.split(`
4
- `),B=_.split(`
5
- `);for(c=l=0;l<A.length&&!A[l].includes("DetermineComponentFrameRoot");)l++;for(;c<B.length&&!B[c].includes("DetermineComponentFrameRoot");)c++;if(l===A.length||c===B.length)for(l=A.length-1,c=B.length-1;1<=l&&0<=c&&A[l]!==B[c];)c--;for(;1<=l&&0<=c;l--,c--)if(A[l]!==B[c]){if(l!==1||c!==1)do if(l--,c--,0>c||A[l]!==B[c]){var K=`
6
- `+A[l].replace(" at new "," at ");return e.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",e.displayName)),K}while(1<=l&&0<=c);break}}}finally{Pe=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?Qt(i):""}function Bn(e,t){switch(e.tag){case 26:case 27:case 5:return Qt(e.type);case 16:return Qt("Lazy");case 13:return e.child!==t&&t!==null?Qt("Suspense Fallback"):Qt("Suspense");case 19:return Qt("SuspenseList");case 0:case 15:return Jt(e.type,!1);case 11:return Jt(e.type.render,!1);case 1:return Jt(e.type,!0);case 31:return Qt("Activity");default:return""}}function bn(e){try{var t="",i=null;do t+=Bn(e,i),i=e,e=e.return;while(e);return t}catch(l){return`
3
+ `+Vt+e+bi}var Ve=!1;function Qt(e,t){if(!e||Ve)return"";Ve=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(F){var U=F}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(F){U=F}e.call(Z.prototype)}}else{try{throw Error()}catch(F){U=F}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(F){if(F&&U&&typeof F.stack=="string")return[F.stack,U.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=l.DetermineComponentFrameRoot(),y=d[0],E=d[1];if(y&&E){var A=y.split(`
4
+ `),B=E.split(`
5
+ `);for(c=l=0;l<A.length&&!A[l].includes("DetermineComponentFrameRoot");)l++;for(;c<B.length&&!B[c].includes("DetermineComponentFrameRoot");)c++;if(l===A.length||c===B.length)for(l=A.length-1,c=B.length-1;1<=l&&0<=c&&A[l]!==B[c];)c--;for(;1<=l&&0<=c;l--,c--)if(A[l]!==B[c]){if(l!==1||c!==1)do if(l--,c--,0>c||A[l]!==B[c]){var P=`
6
+ `+A[l].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),P}while(1<=l&&0<=c);break}}}finally{Ve=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?en(i):""}function Sn(e,t){switch(e.tag){case 26:case 27:case 5:return en(e.type);case 16:return en("Lazy");case 13:return e.child!==t&&t!==null?en("Suspense Fallback"):en("Suspense");case 19:return en("SuspenseList");case 0:case 15:return Qt(e.type,!1);case 11:return Qt(e.type.render,!1);case 1:return Qt(e.type,!0);case 31:return en("Activity");default:return""}}function Vn(e){try{var t="",i=null;do t+=Sn(e,i),i=e,e=e.return;while(e);return t}catch(l){return`
7
7
  Error generating stack: `+l.message+`
8
- `+l.stack}}var yn=Object.prototype.hasOwnProperty,Vt=a.unstable_scheduleCallback,Bt=a.unstable_cancelCallback,xn=a.unstable_shouldYield,Un=a.unstable_requestPaint,Ut=a.unstable_now,Y=a.unstable_getCurrentPriorityLevel,ae=a.unstable_ImmediatePriority,Te=a.unstable_UserBlockingPriority,Ie=a.unstable_NormalPriority,We=a.unstable_LowPriority,$t=a.unstable_IdlePriority,fn=a.log,dn=a.unstable_setDisableYieldValue,pn=null,Nt=null;function et(e){if(typeof fn=="function"&&dn(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(pn,e)}catch{}}var kt=Math.clz32?Math.clz32:tr,Wt=Math.log,Yi=Math.LN2;function tr(e){return e>>>=0,e===0?32:31-(Wt(e)/Yi|0)|0}var wa=256,En=262144,Hn=4194304;function N(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function V(e,t,i){var l=e.pendingLanes;if(l===0)return 0;var c=0,d=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var _=l&134217727;return _!==0?(l=_&~d,l!==0?c=N(l):(y&=_,y!==0?c=N(y):i||(i=_&~e,i!==0&&(c=N(i))))):(_=l&~d,_!==0?c=N(_):y!==0?c=N(y):i||(i=l&~e,i!==0&&(c=N(i)))),c===0?0:t!==0&&t!==c&&(t&d)===0&&(d=c&-c,i=t&-t,d>=i||d===32&&(i&4194048)!==0)?t:c}function ee(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ae(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function dt(){var e=Hn;return Hn<<=1,(Hn&62914560)===0&&(Hn=4194304),e}function tt(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function he(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function pe(e,t,i,l,c,d){var y=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var _=e.entanglements,A=e.expirationTimes,B=e.hiddenUpdates;for(i=y&~i;0<i;){var K=31-kt(i),X=1<<K;_[K]=0,A[K]=-1;var U=B[K];if(U!==null)for(B[K]=null,K=0;K<U.length;K++){var F=U[K];F!==null&&(F.lane&=-536870913)}i&=~X}l!==0&&Ce(e,l,0),d!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=d&~(y&~t))}function Ce(e,t,i){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-kt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|i&261930}function Ct(e,t){var i=e.entangledLanes|=t;for(e=e.entanglements;i;){var l=31-kt(i),c=1<<l;c&t|e[l]&t&&(e[l]|=t),i&=~c}}function xt(e,t){var i=t&-t;return i=(i&42)!==0?1:qn(i),(i&(e.suspendedLanes|t))!==0?0:i}function qn(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function xi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Pi(){var e=P.p;return e!==0?e:(e=window.event,e===void 0?32:ry(e.type))}function Ta(e,t){var i=P.p;try{return P.p=e,t()}finally{P.p=i}}var Zt=Math.random().toString(36).slice(2),nt="__reactFiber$"+Zt,_t="__reactProps$"+Zt,li="__reactContainer$"+Zt,Ki="__reactEvents$"+Zt,Vi="__reactListeners$"+Zt,Aa="__reactHandles$"+Zt,Na="__reactResources$"+Zt,en="__reactMarker$"+Zt;function Sn(e){delete e[nt],delete e[_t],delete e[Ki],delete e[Vi],delete e[Aa]}function oi(e){var t=e[nt];if(t)return t;for(var i=e.parentNode;i;){if(t=i[li]||i[nt]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=jb(e);e!==null;){if(i=e[nt])return i;e=jb(e)}return t}e=i,i=e.parentNode}return null}function si(e){if(e=e[nt]||e[li]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ue(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Ge(e){var t=e[Na];return t||(t=e[Na]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function we(e){e[en]=!0}var je=new Set,pt={};function $(e,t){ge(e,t),ge(e+"Capture",t)}function ge(e,t){for(pt[e]=t,e=0;e<t.length;e++)je.add(t[e])}var Ue=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]*$"),He={},Et={};function Yt(e){return yn.call(Et,e)?!0:yn.call(He,e)?!1:Ue.test(e)?Et[e]=!0:(He[e]=!0,!1)}function Ht(e,t,i){if(Yt(t))if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+i)}}function ci(e,t,i){if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+i)}}function St(e,t,i,l){if(l===null)e.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(t,i,""+l)}}function Ot(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Wr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bo(e,t,i){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var c=l.get,d=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(y){i=""+y,d.call(this,y)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return i},setValue:function(y){i=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function nr(e){if(!e._valueTracker){var t=Wr(e)?"checked":"value";e._valueTracker=bo(e,t,""+e[t])}}function yo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),l="";return e&&(l=Wr(e)?e.checked?"true":"false":e.value),e=l,e!==i?(t.setValue(e),!0):!1}function ir(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Ic=/[\n"\\]/g;function wn(e){return e.replace(Ic,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function $i(e,t,i,l,c,d,y,_){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),t!=null?y==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ot(t)):e.value!==""+Ot(t)&&(e.value=""+Ot(t)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),t!=null?Tn(e,y,Ot(t)):i!=null?Tn(e,y,Ot(i)):l!=null&&e.removeAttribute("value"),c==null&&d!=null&&(e.defaultChecked=!!d),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?e.name=""+Ot(_):e.removeAttribute("name")}function el(e,t,i,l,c,d,y,_){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||i!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){nr(e);return}i=i!=null?""+Ot(i):"",t=t!=null?""+Ot(t):i,_||t===e.value||(e.value=t),e.defaultValue=t}l=l??c,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=_?e.checked:!!l,e.defaultChecked=!!l,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),nr(e)}function Tn(e,t,i){t==="number"&&ir(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function Zi(e,t,i,l){if(e=e.options,t){t={};for(var c=0;c<i.length;c++)t["$"+i[c]]=!0;for(i=0;i<e.length;i++)c=t.hasOwnProperty("$"+e[i].value),e[i].selected!==c&&(e[i].selected=c),c&&l&&(e[i].defaultSelected=!0)}else{for(i=""+Ot(i),t=null,c=0;c<e.length;c++){if(e[c].value===i){e[c].selected=!0,l&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function ar(e,t,i){if(t!=null&&(t=""+Ot(t),t!==e.value&&(e.value=t),i==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=i!=null?""+Ot(i):""}function De(e,t,i,l){if(t==null){if(l!=null){if(i!=null)throw Error(s(92));if(G(l)){if(1<l.length)throw Error(s(93));l=l[0]}i=l}i==null&&(i=""),t=i}i=Ot(t),e.defaultValue=i,l=e.textContent,l===i&&l!==""&&l!==null&&(e.value=l),nr(e)}function Si(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var Pt=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 ot(e,t,i){var l=t.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,i):typeof i!="number"||i===0||Pt.has(t)?t==="float"?e.cssFloat=i:e[t]=(""+i).trim():e[t]=i+"px"}function Ca(e,t,i){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,i!=null){for(var l in i)!i.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var c in t)l=t[c],t.hasOwnProperty(c)&&i[c]!==l&&ot(e,c,l)}else for(var d in t)t.hasOwnProperty(d)&&ot(e,d,t[d])}function ui(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var tl=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"]]),nl=/^[\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 se(e){return nl.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function me(){}var qe=null;function it(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Mt=null,gn=null;function Eo(e){var t=si(e);if(t&&(e=t.stateNode)){var i=e[_t]||null;e:switch(e=t.stateNode,t.type){case"input":if($i(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+wn(""+t)+'"][type="radio"]'),t=0;t<i.length;t++){var l=i[t];if(l!==e&&l.form===e.form){var c=l[_t]||null;if(!c)throw Error(s(90));$i(l,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<i.length;t++)l=i[t],l.form===e.form&&yo(l)}break e;case"textarea":ar(e,i.value,i.defaultValue);break e;case"select":t=i.value,t!=null&&Zi(e,!!i.multiple,t,!1)}}}var il=!1;function zg(e,t,i){if(il)return e(t,i);il=!0;try{var l=e(t);return l}finally{if(il=!1,(Mt!==null||gn!==null)&&(ls(),Mt&&(t=Mt,e=gn,gn=Mt=null,Eo(t),e)))for(t=0;t<e.length;t++)Eo(e[t])}}function al(e,t){var i=e.stateNode;if(i===null)return null;var l=i[_t]||null;if(l===null)return null;i=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(s(231,t,typeof i));return i}var wi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bc=!1;if(wi)try{var rl={};Object.defineProperty(rl,"passive",{get:function(){Bc=!0}}),window.addEventListener("test",rl,rl),window.removeEventListener("test",rl,rl)}catch{Bc=!1}var Xi=null,Uc=null,vo=null;function Ig(){if(vo)return vo;var e,t=Uc,i=t.length,l,c="value"in Xi?Xi.value:Xi.textContent,d=c.length;for(e=0;e<i&&t[e]===c[e];e++);var y=i-e;for(l=1;l<=y&&t[i-l]===c[d-l];l++);return vo=c.slice(e,1<l?1-l:void 0)}function _o(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ko(){return!0}function Bg(){return!1}function An(e){function t(i,l,c,d,y){this._reactName=i,this._targetInst=c,this.type=l,this.nativeEvent=d,this.target=y,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(i=e[_],this[_]=i?i(d):d[_]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?ko:Bg,this.isPropagationStopped=Bg,this}return E(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=ko)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=ko)},persist:function(){},isPersistent:ko}),t}var Oa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xo=An(Oa),ll=E({},Oa,{view:0,detail:0}),uw=An(ll),Hc,qc,ol,So=E({},ll,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ol&&(ol&&e.type==="mousemove"?(Hc=e.screenX-ol.screenX,qc=e.screenY-ol.screenY):qc=Hc=0,ol=e),Hc)},movementY:function(e){return"movementY"in e?e.movementY:qc}}),Ug=An(So),fw=E({},So,{dataTransfer:0}),dw=An(fw),pw=E({},ll,{relatedTarget:0}),Fc=An(pw),gw=E({},Oa,{animationName:0,elapsedTime:0,pseudoElement:0}),hw=An(gw),mw=E({},Oa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bw=An(mw),yw=E({},Oa,{data:0}),Hg=An(yw),Ew={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vw={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"},_w={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kw(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=_w[e])?!!t[e]:!1}function Gc(){return kw}var xw=E({},ll,{key:function(e){if(e.key){var t=Ew[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=_o(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?vw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gc,charCode:function(e){return e.type==="keypress"?_o(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?_o(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Sw=An(xw),ww=E({},So,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qg=An(ww),Tw=E({},ll,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gc}),Aw=An(Tw),Nw=E({},Oa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Cw=An(Nw),Ow=E({},So,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Mw=An(Ow),Rw=E({},Oa,{newState:0,oldState:0}),Dw=An(Rw),Lw=[9,13,27,32],jc=wi&&"CompositionEvent"in window,sl=null;wi&&"documentMode"in document&&(sl=document.documentMode);var zw=wi&&"TextEvent"in window&&!sl,Fg=wi&&(!jc||sl&&8<sl&&11>=sl),Gg=" ",jg=!1;function Yg(e,t){switch(e){case"keyup":return Lw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var rr=!1;function Iw(e,t){switch(e){case"compositionend":return Pg(t);case"keypress":return t.which!==32?null:(jg=!0,Gg);case"textInput":return e=t.data,e===Gg&&jg?null:e;default:return null}}function Bw(e,t){if(rr)return e==="compositionend"||!jc&&Yg(e,t)?(e=Ig(),vo=Uc=Xi=null,rr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fg&&t.locale!=="ko"?null:t.data;default:return null}}var Uw={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 Kg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Uw[e.type]:t==="textarea"}function Vg(e,t,i,l){Mt?gn?gn.push(l):gn=[l]:Mt=l,t=ps(t,"onChange"),0<t.length&&(i=new xo("onChange","change",null,i,l),e.push({event:i,listeners:t}))}var cl=null,ul=null;function Hw(e){Cb(e,0)}function wo(e){var t=ue(e);if(yo(t))return e}function $g(e,t){if(e==="change")return t}var Zg=!1;if(wi){var Yc;if(wi){var Pc="oninput"in document;if(!Pc){var Xg=document.createElement("div");Xg.setAttribute("oninput","return;"),Pc=typeof Xg.oninput=="function"}Yc=Pc}else Yc=!1;Zg=Yc&&(!document.documentMode||9<document.documentMode)}function Qg(){cl&&(cl.detachEvent("onpropertychange",Jg),ul=cl=null)}function Jg(e){if(e.propertyName==="value"&&wo(ul)){var t=[];Vg(t,ul,e,it(e)),zg(Hw,t)}}function qw(e,t,i){e==="focusin"?(Qg(),cl=t,ul=i,cl.attachEvent("onpropertychange",Jg)):e==="focusout"&&Qg()}function Fw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return wo(ul)}function Gw(e,t){if(e==="click")return wo(t)}function jw(e,t){if(e==="input"||e==="change")return wo(t)}function Yw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fn=typeof Object.is=="function"?Object.is:Yw;function fl(e,t){if(Fn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),l=Object.keys(t);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var c=i[l];if(!yn.call(t,c)||!Fn(e[c],t[c]))return!1}return!0}function Wg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function eh(e,t){var i=Wg(e);e=0;for(var l;i;){if(i.nodeType===3){if(l=e+i.textContent.length,e<=t&&l>=t)return{node:i,offset:t-e};e=l}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Wg(i)}}function th(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?th(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function nh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ir(e.document);t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=ir(e.document)}return t}function Kc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Pw=wi&&"documentMode"in document&&11>=document.documentMode,lr=null,Vc=null,dl=null,$c=!1;function ih(e,t,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;$c||lr==null||lr!==ir(l)||(l=lr,"selectionStart"in l&&Kc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),dl&&fl(dl,l)||(dl=l,l=ps(Vc,"onSelect"),0<l.length&&(t=new xo("onSelect","select",null,t,i),e.push({event:t,listeners:l}),t.target=lr)))}function Ma(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var or={animationend:Ma("Animation","AnimationEnd"),animationiteration:Ma("Animation","AnimationIteration"),animationstart:Ma("Animation","AnimationStart"),transitionrun:Ma("Transition","TransitionRun"),transitionstart:Ma("Transition","TransitionStart"),transitioncancel:Ma("Transition","TransitionCancel"),transitionend:Ma("Transition","TransitionEnd")},Zc={},ah={};wi&&(ah=document.createElement("div").style,"AnimationEvent"in window||(delete or.animationend.animation,delete or.animationiteration.animation,delete or.animationstart.animation),"TransitionEvent"in window||delete or.transitionend.transition);function Ra(e){if(Zc[e])return Zc[e];if(!or[e])return e;var t=or[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in ah)return Zc[e]=t[i];return e}var rh=Ra("animationend"),lh=Ra("animationiteration"),oh=Ra("animationstart"),Kw=Ra("transitionrun"),Vw=Ra("transitionstart"),$w=Ra("transitioncancel"),sh=Ra("transitionend"),ch=new Map,Xc="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(" ");Xc.push("scrollEnd");function fi(e,t){ch.set(e,t),$(t,[e])}var To=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof n=="object"&&typeof n.emit=="function"){n.emit("uncaughtException",e);return}console.error(e)},Qn=[],sr=0,Qc=0;function Ao(){for(var e=sr,t=Qc=sr=0;t<e;){var i=Qn[t];Qn[t++]=null;var l=Qn[t];Qn[t++]=null;var c=Qn[t];Qn[t++]=null;var d=Qn[t];if(Qn[t++]=null,l!==null&&c!==null){var y=l.pending;y===null?c.next=c:(c.next=y.next,y.next=c),l.pending=c}d!==0&&uh(i,c,d)}}function No(e,t,i,l){Qn[sr++]=e,Qn[sr++]=t,Qn[sr++]=i,Qn[sr++]=l,Qc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Jc(e,t,i,l){return No(e,t,i,l),Co(e)}function Da(e,t){return No(e,null,null,t),Co(e)}function uh(e,t,i){e.lanes|=i;var l=e.alternate;l!==null&&(l.lanes|=i);for(var c=!1,d=e.return;d!==null;)d.childLanes|=i,l=d.alternate,l!==null&&(l.childLanes|=i),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(c=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,c&&t!==null&&(c=31-kt(i),e=d.hiddenUpdates,l=e[c],l===null?e[c]=[t]:l.push(t),t.lane=i|536870912),d):null}function Co(e){if(50<Ll)throw Ll=0,sf=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var cr={};function Zw(e,t,i,l){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gn(e,t,i,l){return new Zw(e,t,i,l)}function Wc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ti(e,t){var i=e.alternate;return i===null?(i=Gn(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function fh(e,t){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,t=i.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Oo(e,t,i,l,c,d){var y=0;if(l=e,typeof e=="function")Wc(e)&&(y=1);else if(typeof e=="string")y=eA(e,i,de.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case z:return e=Gn(31,i,t,c),e.elementType=z,e.lanes=d,e;case M:return La(i.children,c,d,t);case w:y=8,c|=24;break;case q:return e=Gn(12,i,t,c|2),e.elementType=q,e.lanes=d,e;case D:return e=Gn(13,i,t,c),e.elementType=D,e.lanes=d,e;case ce:return e=Gn(19,i,t,c),e.elementType=ce,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case J:y=10;break e;case H:y=9;break e;case te:y=11;break e;case ne:y=14;break e;case fe:y=16,l=null;break e}y=29,i=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=Gn(y,i,t,c),t.elementType=e,t.type=l,t.lanes=d,t}function La(e,t,i,l){return e=Gn(7,e,l,t),e.lanes=i,e}function eu(e,t,i){return e=Gn(6,e,null,t),e.lanes=i,e}function dh(e){var t=Gn(18,null,null,0);return t.stateNode=e,t}function tu(e,t,i){return t=Gn(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ph=new WeakMap;function Jn(e,t){if(typeof e=="object"&&e!==null){var i=ph.get(e);return i!==void 0?i:(t={value:e,source:t,stack:bn(t)},ph.set(e,t),t)}return{value:e,source:t,stack:bn(t)}}var ur=[],fr=0,Mo=null,pl=0,Wn=[],ei=0,Qi=null,bi=1,yi="";function Ai(e,t){ur[fr++]=pl,ur[fr++]=Mo,Mo=e,pl=t}function gh(e,t,i){Wn[ei++]=bi,Wn[ei++]=yi,Wn[ei++]=Qi,Qi=e;var l=bi;e=yi;var c=32-kt(l)-1;l&=~(1<<c),i+=1;var d=32-kt(t)+c;if(30<d){var y=c-c%5;d=(l&(1<<y)-1).toString(32),l>>=y,c-=y,bi=1<<32-kt(t)+c|i<<c|l,yi=d+e}else bi=1<<d|i<<c|l,yi=e}function nu(e){e.return!==null&&(Ai(e,1),gh(e,1,0))}function iu(e){for(;e===Mo;)Mo=ur[--fr],ur[fr]=null,pl=ur[--fr],ur[fr]=null;for(;e===Qi;)Qi=Wn[--ei],Wn[ei]=null,yi=Wn[--ei],Wn[ei]=null,bi=Wn[--ei],Wn[ei]=null}function hh(e,t){Wn[ei++]=bi,Wn[ei++]=yi,Wn[ei++]=Qi,bi=t.id,yi=t.overflow,Qi=e}var tn=null,wt=null,Qe=!1,Ji=null,ti=!1,au=Error(s(519));function Wi(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw gl(Jn(t,e)),au}function mh(e){var t=e.stateNode,i=e.type,l=e.memoizedProps;switch(t[nt]=e,t[_t]=l,i){case"dialog":$e("cancel",t),$e("close",t);break;case"iframe":case"object":case"embed":$e("load",t);break;case"video":case"audio":for(i=0;i<Il.length;i++)$e(Il[i],t);break;case"source":$e("error",t);break;case"img":case"image":case"link":$e("error",t),$e("load",t);break;case"details":$e("toggle",t);break;case"input":$e("invalid",t),el(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":$e("invalid",t);break;case"textarea":$e("invalid",t),De(t,l.value,l.defaultValue,l.children)}i=l.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||t.textContent===""+i||l.suppressHydrationWarning===!0||Db(t.textContent,i)?(l.popover!=null&&($e("beforetoggle",t),$e("toggle",t)),l.onScroll!=null&&$e("scroll",t),l.onScrollEnd!=null&&$e("scrollend",t),l.onClick!=null&&(t.onclick=me),t=!0):t=!1,t||Wi(e,!0)}function bh(e){for(tn=e.return;tn;)switch(tn.tag){case 5:case 31:case 13:ti=!1;return;case 27:case 3:ti=!0;return;default:tn=tn.return}}function dr(e){if(e!==tn)return!1;if(!Qe)return bh(e),Qe=!0,!1;var t=e.tag,i;if((i=t!==3&&t!==27)&&((i=t===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||xf(e.type,e.memoizedProps)),i=!i),i&&wt&&Wi(e),bh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));wt=Gb(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));wt=Gb(e)}else t===27?(t=wt,pa(e.type)?(e=Nf,Nf=null,wt=e):wt=t):wt=tn?ii(e.stateNode.nextSibling):null;return!0}function za(){wt=tn=null,Qe=!1}function ru(){var e=Ji;return e!==null&&(Mn===null?Mn=e:Mn.push.apply(Mn,e),Ji=null),e}function gl(e){Ji===null?Ji=[e]:Ji.push(e)}var lu=T(null),Ia=null,Ni=null;function ea(e,t,i){W(lu,t._currentValue),t._currentValue=i}function Ci(e){e._currentValue=lu.current,k(lu)}function ou(e,t,i){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===i)break;e=e.return}}function su(e,t,i,l){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var d=c.dependencies;if(d!==null){var y=c.child;d=d.firstContext;e:for(;d!==null;){var _=d;d=c;for(var A=0;A<t.length;A++)if(_.context===t[A]){d.lanes|=i,_=d.alternate,_!==null&&(_.lanes|=i),ou(d.return,i,e),l||(y=null);break e}d=_.next}}else if(c.tag===18){if(y=c.return,y===null)throw Error(s(341));y.lanes|=i,d=y.alternate,d!==null&&(d.lanes|=i),ou(y,i,e),y=null}else y=c.child;if(y!==null)y.return=c;else for(y=c;y!==null;){if(y===e){y=null;break}if(c=y.sibling,c!==null){c.return=y.return,y=c;break}y=y.return}c=y}}function pr(e,t,i,l){e=null;for(var c=t,d=!1;c!==null;){if(!d){if((c.flags&524288)!==0)d=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var y=c.alternate;if(y===null)throw Error(s(387));if(y=y.memoizedProps,y!==null){var _=c.type;Fn(c.pendingProps.value,y.value)||(e!==null?e.push(_):e=[_])}}else if(c===xe.current){if(y=c.alternate,y===null)throw Error(s(387));y.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Fl):e=[Fl])}c=c.return}e!==null&&su(t,e,i,l),t.flags|=262144}function Ro(e){for(e=e.firstContext;e!==null;){if(!Fn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ba(e){Ia=e,Ni=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function nn(e){return yh(Ia,e)}function Do(e,t){return Ia===null&&Ba(e),yh(e,t)}function yh(e,t){var i=t._currentValue;if(t={context:t,memoizedValue:i,next:null},Ni===null){if(e===null)throw Error(s(308));Ni=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ni=Ni.next=t;return i}var Xw=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(i,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(i){return i()})}},Qw=a.unstable_scheduleCallback,Jw=a.unstable_NormalPriority,qt={$$typeof:J,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cu(){return{controller:new Xw,data:new Map,refCount:0}}function hl(e){e.refCount--,e.refCount===0&&Qw(Jw,function(){e.controller.abort()})}var ml=null,uu=0,gr=0,hr=null;function Ww(e,t){if(ml===null){var i=ml=[];uu=0,gr=gf(),hr={status:"pending",value:void 0,then:function(l){i.push(l)}}}return uu++,t.then(Eh,Eh),t}function Eh(){if(--uu===0&&ml!==null){hr!==null&&(hr.status="fulfilled");var e=ml;ml=null,gr=0,hr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function eT(e,t){var i=[],l={status:"pending",value:null,reason:null,then:function(c){i.push(c)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var c=0;c<i.length;c++)(0,i[c])(t)},function(c){for(l.status="rejected",l.reason=c,c=0;c<i.length;c++)(0,i[c])(void 0)}),l}var vh=j.S;j.S=function(e,t){ib=Ut(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Ww(e,t),vh!==null&&vh(e,t)};var Ua=T(null);function fu(){var e=Ua.current;return e!==null?e:vt.pooledCache}function Lo(e,t){t===null?W(Ua,Ua.current):W(Ua,t.pool)}function _h(){var e=fu();return e===null?null:{parent:qt._currentValue,pool:e}}var mr=Error(s(460)),du=Error(s(474)),zo=Error(s(542)),Io={then:function(){}};function kh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function xh(e,t,i){switch(i=e[i],i===void 0?e.push(t):i!==t&&(t.then(me,me),t=i),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,wh(e),e;default:if(typeof t.status=="string")t.then(me,me);else{if(e=vt,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=l}},function(l){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,wh(e),e}throw qa=t,mr}}function Ha(e){try{var t=e._init;return t(e._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(qa=i,mr):i}}var qa=null;function Sh(){if(qa===null)throw Error(s(459));var e=qa;return qa=null,e}function wh(e){if(e===mr||e===zo)throw Error(s(483))}var br=null,bl=0;function Bo(e){var t=bl;return bl+=1,br===null&&(br=[]),xh(br,e,t)}function yl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Uo(e,t){throw t.$$typeof===v?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Th(e){function t(R,O){if(e){var I=R.deletions;I===null?(R.deletions=[O],R.flags|=16):I.push(O)}}function i(R,O){if(!e)return null;for(;O!==null;)t(R,O),O=O.sibling;return null}function l(R){for(var O=new Map;R!==null;)R.key!==null?O.set(R.key,R):O.set(R.index,R),R=R.sibling;return O}function c(R,O){return R=Ti(R,O),R.index=0,R.sibling=null,R}function d(R,O,I){return R.index=I,e?(I=R.alternate,I!==null?(I=I.index,I<O?(R.flags|=67108866,O):I):(R.flags|=67108866,O)):(R.flags|=1048576,O)}function y(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function _(R,O,I,Z){return O===null||O.tag!==6?(O=eu(I,R.mode,Z),O.return=R,O):(O=c(O,I),O.return=R,O)}function A(R,O,I,Z){var Se=I.type;return Se===M?K(R,O,I.props.children,Z,I.key):O!==null&&(O.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===fe&&Ha(Se)===O.type)?(O=c(O,I.props),yl(O,I),O.return=R,O):(O=Oo(I.type,I.key,I.props,null,R.mode,Z),yl(O,I),O.return=R,O)}function B(R,O,I,Z){return O===null||O.tag!==4||O.stateNode.containerInfo!==I.containerInfo||O.stateNode.implementation!==I.implementation?(O=tu(I,R.mode,Z),O.return=R,O):(O=c(O,I.children||[]),O.return=R,O)}function K(R,O,I,Z,Se){return O===null||O.tag!==7?(O=La(I,R.mode,Z,Se),O.return=R,O):(O=c(O,I),O.return=R,O)}function X(R,O,I){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=eu(""+O,R.mode,I),O.return=R,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case x:return I=Oo(O.type,O.key,O.props,null,R.mode,I),yl(I,O),I.return=R,I;case C:return O=tu(O,R.mode,I),O.return=R,O;case fe:return O=Ha(O),X(R,O,I)}if(G(O)||ke(O))return O=La(O,R.mode,I,null),O.return=R,O;if(typeof O.then=="function")return X(R,Bo(O),I);if(O.$$typeof===J)return X(R,Do(R,O),I);Uo(R,O)}return null}function U(R,O,I,Z){var Se=O!==null?O.key:null;if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return Se!==null?null:_(R,O,""+I,Z);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case x:return I.key===Se?A(R,O,I,Z):null;case C:return I.key===Se?B(R,O,I,Z):null;case fe:return I=Ha(I),U(R,O,I,Z)}if(G(I)||ke(I))return Se!==null?null:K(R,O,I,Z,null);if(typeof I.then=="function")return U(R,O,Bo(I),Z);if(I.$$typeof===J)return U(R,O,Do(R,I),Z);Uo(R,I)}return null}function F(R,O,I,Z,Se){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return R=R.get(I)||null,_(O,R,""+Z,Se);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case x:return R=R.get(Z.key===null?I:Z.key)||null,A(O,R,Z,Se);case C:return R=R.get(Z.key===null?I:Z.key)||null,B(O,R,Z,Se);case fe:return Z=Ha(Z),F(R,O,I,Z,Se)}if(G(Z)||ke(Z))return R=R.get(I)||null,K(O,R,Z,Se,null);if(typeof Z.then=="function")return F(R,O,I,Bo(Z),Se);if(Z.$$typeof===J)return F(R,O,I,Do(O,Z),Se);Uo(O,Z)}return null}function be(R,O,I,Z){for(var Se=null,at=null,_e=O,Ye=O=0,Xe=null;_e!==null&&Ye<I.length;Ye++){_e.index>Ye?(Xe=_e,_e=null):Xe=_e.sibling;var rt=U(R,_e,I[Ye],Z);if(rt===null){_e===null&&(_e=Xe);break}e&&_e&&rt.alternate===null&&t(R,_e),O=d(rt,O,Ye),at===null?Se=rt:at.sibling=rt,at=rt,_e=Xe}if(Ye===I.length)return i(R,_e),Qe&&Ai(R,Ye),Se;if(_e===null){for(;Ye<I.length;Ye++)_e=X(R,I[Ye],Z),_e!==null&&(O=d(_e,O,Ye),at===null?Se=_e:at.sibling=_e,at=_e);return Qe&&Ai(R,Ye),Se}for(_e=l(_e);Ye<I.length;Ye++)Xe=F(_e,R,Ye,I[Ye],Z),Xe!==null&&(e&&Xe.alternate!==null&&_e.delete(Xe.key===null?Ye:Xe.key),O=d(Xe,O,Ye),at===null?Se=Xe:at.sibling=Xe,at=Xe);return e&&_e.forEach(function(ya){return t(R,ya)}),Qe&&Ai(R,Ye),Se}function Oe(R,O,I,Z){if(I==null)throw Error(s(151));for(var Se=null,at=null,_e=O,Ye=O=0,Xe=null,rt=I.next();_e!==null&&!rt.done;Ye++,rt=I.next()){_e.index>Ye?(Xe=_e,_e=null):Xe=_e.sibling;var ya=U(R,_e,rt.value,Z);if(ya===null){_e===null&&(_e=Xe);break}e&&_e&&ya.alternate===null&&t(R,_e),O=d(ya,O,Ye),at===null?Se=ya:at.sibling=ya,at=ya,_e=Xe}if(rt.done)return i(R,_e),Qe&&Ai(R,Ye),Se;if(_e===null){for(;!rt.done;Ye++,rt=I.next())rt=X(R,rt.value,Z),rt!==null&&(O=d(rt,O,Ye),at===null?Se=rt:at.sibling=rt,at=rt);return Qe&&Ai(R,Ye),Se}for(_e=l(_e);!rt.done;Ye++,rt=I.next())rt=F(_e,R,Ye,rt.value,Z),rt!==null&&(e&&rt.alternate!==null&&_e.delete(rt.key===null?Ye:rt.key),O=d(rt,O,Ye),at===null?Se=rt:at.sibling=rt,at=rt);return e&&_e.forEach(function(fA){return t(R,fA)}),Qe&&Ai(R,Ye),Se}function mt(R,O,I,Z){if(typeof I=="object"&&I!==null&&I.type===M&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case x:e:{for(var Se=I.key;O!==null;){if(O.key===Se){if(Se=I.type,Se===M){if(O.tag===7){i(R,O.sibling),Z=c(O,I.props.children),Z.return=R,R=Z;break e}}else if(O.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===fe&&Ha(Se)===O.type){i(R,O.sibling),Z=c(O,I.props),yl(Z,I),Z.return=R,R=Z;break e}i(R,O);break}else t(R,O);O=O.sibling}I.type===M?(Z=La(I.props.children,R.mode,Z,I.key),Z.return=R,R=Z):(Z=Oo(I.type,I.key,I.props,null,R.mode,Z),yl(Z,I),Z.return=R,R=Z)}return y(R);case C:e:{for(Se=I.key;O!==null;){if(O.key===Se)if(O.tag===4&&O.stateNode.containerInfo===I.containerInfo&&O.stateNode.implementation===I.implementation){i(R,O.sibling),Z=c(O,I.children||[]),Z.return=R,R=Z;break e}else{i(R,O);break}else t(R,O);O=O.sibling}Z=tu(I,R.mode,Z),Z.return=R,R=Z}return y(R);case fe:return I=Ha(I),mt(R,O,I,Z)}if(G(I))return be(R,O,I,Z);if(ke(I)){if(Se=ke(I),typeof Se!="function")throw Error(s(150));return I=Se.call(I),Oe(R,O,I,Z)}if(typeof I.then=="function")return mt(R,O,Bo(I),Z);if(I.$$typeof===J)return mt(R,O,Do(R,I),Z);Uo(R,I)}return typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint"?(I=""+I,O!==null&&O.tag===6?(i(R,O.sibling),Z=c(O,I),Z.return=R,R=Z):(i(R,O),Z=eu(I,R.mode,Z),Z.return=R,R=Z),y(R)):i(R,O)}return function(R,O,I,Z){try{bl=0;var Se=mt(R,O,I,Z);return br=null,Se}catch(_e){if(_e===mr||_e===zo)throw _e;var at=Gn(29,_e,null,R.mode);return at.lanes=Z,at.return=R,at}}}var Fa=Th(!0),Ah=Th(!1),ta=!1;function pu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function na(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ia(e,t,i){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(lt&2)!==0){var c=l.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),l.pending=t,t=Co(e),uh(e,null,i),t}return No(e,l,t,i),Co(e)}function El(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,i|=l,t.lanes=i,Ct(e,i)}}function hu(e,t){var i=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var c=null,d=null;if(i=i.firstBaseUpdate,i!==null){do{var y={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};d===null?c=d=y:d=d.next=y,i=i.next}while(i!==null);d===null?c=d=t:d=d.next=t}else c=d=t;i={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:l.shared,callbacks:l.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}var mu=!1;function vl(){if(mu){var e=hr;if(e!==null)throw e}}function _l(e,t,i,l){mu=!1;var c=e.updateQueue;ta=!1;var d=c.firstBaseUpdate,y=c.lastBaseUpdate,_=c.shared.pending;if(_!==null){c.shared.pending=null;var A=_,B=A.next;A.next=null,y===null?d=B:y.next=B,y=A;var K=e.alternate;K!==null&&(K=K.updateQueue,_=K.lastBaseUpdate,_!==y&&(_===null?K.firstBaseUpdate=B:_.next=B,K.lastBaseUpdate=A))}if(d!==null){var X=c.baseState;y=0,K=B=A=null,_=d;do{var U=_.lane&-536870913,F=U!==_.lane;if(F?(Ze&U)===U:(l&U)===U){U!==0&&U===gr&&(mu=!0),K!==null&&(K=K.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var be=e,Oe=_;U=t;var mt=i;switch(Oe.tag){case 1:if(be=Oe.payload,typeof be=="function"){X=be.call(mt,X,U);break e}X=be;break e;case 3:be.flags=be.flags&-65537|128;case 0:if(be=Oe.payload,U=typeof be=="function"?be.call(mt,X,U):be,U==null)break e;X=E({},X,U);break e;case 2:ta=!0}}U=_.callback,U!==null&&(e.flags|=64,F&&(e.flags|=8192),F=c.callbacks,F===null?c.callbacks=[U]:F.push(U))}else F={lane:U,tag:_.tag,payload:_.payload,callback:_.callback,next:null},K===null?(B=K=F,A=X):K=K.next=F,y|=U;if(_=_.next,_===null){if(_=c.shared.pending,_===null)break;F=_,_=F.next,F.next=null,c.lastBaseUpdate=F,c.shared.pending=null}}while(!0);K===null&&(A=X),c.baseState=A,c.firstBaseUpdate=B,c.lastBaseUpdate=K,d===null&&(c.shared.lanes=0),sa|=y,e.lanes=y,e.memoizedState=X}}function Nh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Ch(e,t){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)Nh(i[e],t)}var yr=T(null),Ho=T(0);function Oh(e,t){e=Ui,W(Ho,e),W(yr,t),Ui=e|t.baseLanes}function bu(){W(Ho,Ui),W(yr,yr.current)}function yu(){Ui=Ho.current,k(yr),k(Ho)}var jn=T(null),ni=null;function aa(e){var t=e.alternate;W(Lt,Lt.current&1),W(jn,e),ni===null&&(t===null||yr.current!==null||t.memoizedState!==null)&&(ni=e)}function Eu(e){W(Lt,Lt.current),W(jn,e),ni===null&&(ni=e)}function Mh(e){e.tag===22?(W(Lt,Lt.current),W(jn,e),ni===null&&(ni=e)):ra()}function ra(){W(Lt,Lt.current),W(jn,jn.current)}function Yn(e){k(jn),ni===e&&(ni=null),k(Lt)}var Lt=T(0);function qo(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Tf(i)||Af(i)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Oi=0,Fe=null,gt=null,Ft=null,Fo=!1,Er=!1,Ga=!1,Go=0,kl=0,vr=null,tT=0;function Rt(){throw Error(s(321))}function vu(e,t){if(t===null)return!1;for(var i=0;i<t.length&&i<e.length;i++)if(!Fn(e[i],t[i]))return!1;return!0}function _u(e,t,i,l,c,d){return Oi=d,Fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?gm:Iu,Ga=!1,d=i(l,c),Ga=!1,Er&&(d=Dh(t,i,l,c)),Rh(e),d}function Rh(e){j.H=wl;var t=gt!==null&&gt.next!==null;if(Oi=0,Ft=gt=Fe=null,Fo=!1,kl=0,vr=null,t)throw Error(s(300));e===null||Gt||(e=e.dependencies,e!==null&&Ro(e)&&(Gt=!0))}function Dh(e,t,i,l){Fe=e;var c=0;do{if(Er&&(vr=null),kl=0,Er=!1,25<=c)throw Error(s(301));if(c+=1,Ft=gt=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}j.H=hm,d=t(i,l)}while(Er);return d}function nT(){var e=j.H,t=e.useState()[0];return t=typeof t.then=="function"?xl(t):t,e=e.useState()[0],(gt!==null?gt.memoizedState:null)!==e&&(Fe.flags|=1024),t}function ku(){var e=Go!==0;return Go=0,e}function xu(e,t,i){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i}function Su(e){if(Fo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Fo=!1}Oi=0,Ft=gt=Fe=null,Er=!1,kl=Go=0,vr=null}function vn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ft===null?Fe.memoizedState=Ft=e:Ft=Ft.next=e,Ft}function zt(){if(gt===null){var e=Fe.alternate;e=e!==null?e.memoizedState:null}else e=gt.next;var t=Ft===null?Fe.memoizedState:Ft.next;if(t!==null)Ft=t,gt=e;else{if(e===null)throw Fe.alternate===null?Error(s(467)):Error(s(310));gt=e,e={memoizedState:gt.memoizedState,baseState:gt.baseState,baseQueue:gt.baseQueue,queue:gt.queue,next:null},Ft===null?Fe.memoizedState=Ft=e:Ft=Ft.next=e}return Ft}function jo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function xl(e){var t=kl;return kl+=1,vr===null&&(vr=[]),e=xh(vr,e,t),t=Fe,(Ft===null?t.memoizedState:Ft.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?gm:Iu),e}function Yo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return xl(e);if(e.$$typeof===J)return nn(e)}throw Error(s(438,String(e)))}function wu(e){var t=null,i=Fe.updateQueue;if(i!==null&&(t=i.memoCache),t==null){var l=Fe.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),i===null&&(i=jo(),Fe.updateQueue=i),i.memoCache=t,i=t.data[t.index],i===void 0)for(i=t.data[t.index]=Array(e),l=0;l<e;l++)i[l]=oe;return t.index++,i}function Mi(e,t){return typeof t=="function"?t(e):t}function Po(e){var t=zt();return Tu(t,gt,e)}function Tu(e,t,i){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=i;var c=e.baseQueue,d=l.pending;if(d!==null){if(c!==null){var y=c.next;c.next=d.next,d.next=y}t.baseQueue=c=d,l.pending=null}if(d=e.baseState,c===null)e.memoizedState=d;else{t=c.next;var _=y=null,A=null,B=t,K=!1;do{var X=B.lane&-536870913;if(X!==B.lane?(Ze&X)===X:(Oi&X)===X){var U=B.revertLane;if(U===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),X===gr&&(K=!0);else if((Oi&U)===U){B=B.next,U===gr&&(K=!0);continue}else X={lane:0,revertLane:B.revertLane,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},A===null?(_=A=X,y=d):A=A.next=X,Fe.lanes|=U,sa|=U;X=B.action,Ga&&i(d,X),d=B.hasEagerState?B.eagerState:i(d,X)}else U={lane:X,revertLane:B.revertLane,gesture:B.gesture,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},A===null?(_=A=U,y=d):A=A.next=U,Fe.lanes|=X,sa|=X;B=B.next}while(B!==null&&B!==t);if(A===null?y=d:A.next=_,!Fn(d,e.memoizedState)&&(Gt=!0,K&&(i=hr,i!==null)))throw i;e.memoizedState=d,e.baseState=y,e.baseQueue=A,l.lastRenderedState=d}return c===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Au(e){var t=zt(),i=t.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=e;var l=i.dispatch,c=i.pending,d=t.memoizedState;if(c!==null){i.pending=null;var y=c=c.next;do d=e(d,y.action),y=y.next;while(y!==c);Fn(d,t.memoizedState)||(Gt=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),i.lastRenderedState=d}return[d,l]}function Lh(e,t,i){var l=Fe,c=zt(),d=Qe;if(d){if(i===void 0)throw Error(s(407));i=i()}else i=t();var y=!Fn((gt||c).memoizedState,i);if(y&&(c.memoizedState=i,Gt=!0),c=c.queue,Ou(Bh.bind(null,l,c,e),[e]),c.getSnapshot!==t||y||Ft!==null&&Ft.memoizedState.tag&1){if(l.flags|=2048,_r(9,{destroy:void 0},Ih.bind(null,l,c,i,t),null),vt===null)throw Error(s(349));d||(Oi&127)!==0||zh(l,t,i)}return i}function zh(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=Fe.updateQueue,t===null?(t=jo(),Fe.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function Ih(e,t,i,l){t.value=i,t.getSnapshot=l,Uh(t)&&Hh(e)}function Bh(e,t,i){return i(function(){Uh(t)&&Hh(e)})}function Uh(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!Fn(e,i)}catch{return!0}}function Hh(e){var t=Da(e,2);t!==null&&Rn(t,e,2)}function Nu(e){var t=vn();if(typeof e=="function"){var i=e;if(e=i(),Ga){et(!0);try{i()}finally{et(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mi,lastRenderedState:e},t}function qh(e,t,i,l){return e.baseState=i,Tu(e,gt,typeof l=="function"?l:Mi)}function iT(e,t,i,l,c){if($o(e))throw Error(s(485));if(e=t.action,e!==null){var d={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){d.listeners.push(y)}};j.T!==null?i(!0):d.isTransition=!1,l(d),i=t.pending,i===null?(d.next=t.pending=d,Fh(t,d)):(d.next=i.next,t.pending=i.next=d)}}function Fh(e,t){var i=t.action,l=t.payload,c=e.state;if(t.isTransition){var d=j.T,y={};j.T=y;try{var _=i(c,l),A=j.S;A!==null&&A(y,_),Gh(e,t,_)}catch(B){Cu(e,t,B)}finally{d!==null&&y.types!==null&&(d.types=y.types),j.T=d}}else try{d=i(c,l),Gh(e,t,d)}catch(B){Cu(e,t,B)}}function Gh(e,t,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(l){jh(e,t,l)},function(l){return Cu(e,t,l)}):jh(e,t,i)}function jh(e,t,i){t.status="fulfilled",t.value=i,Yh(t),e.state=i,t=e.pending,t!==null&&(i=t.next,i===t?e.pending=null:(i=i.next,t.next=i,Fh(e,i)))}function Cu(e,t,i){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=i,Yh(t),t=t.next;while(t!==l)}e.action=null}function Yh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ph(e,t){return t}function Kh(e,t){if(Qe){var i=vt.formState;if(i!==null){e:{var l=Fe;if(Qe){if(wt){t:{for(var c=wt,d=ti;c.nodeType!==8;){if(!d){c=null;break t}if(c=ii(c.nextSibling),c===null){c=null;break t}}d=c.data,c=d==="F!"||d==="F"?c:null}if(c){wt=ii(c.nextSibling),l=c.data==="F!";break e}}Wi(l)}l=!1}l&&(t=i[0])}}return i=vn(),i.memoizedState=i.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ph,lastRenderedState:t},i.queue=l,i=fm.bind(null,Fe,l),l.dispatch=i,l=Nu(!1),d=zu.bind(null,Fe,!1,l.queue),l=vn(),c={state:t,dispatch:null,action:e,pending:null},l.queue=c,i=iT.bind(null,Fe,c,d,i),c.dispatch=i,l.memoizedState=e,[t,i,!1]}function Vh(e){var t=zt();return $h(t,gt,e)}function $h(e,t,i){if(t=Tu(e,t,Ph)[0],e=Po(Mi)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=xl(t)}catch(y){throw y===mr?zo:y}else l=t;t=zt();var c=t.queue,d=c.dispatch;return i!==t.memoizedState&&(Fe.flags|=2048,_r(9,{destroy:void 0},aT.bind(null,c,i),null)),[l,d,e]}function aT(e,t){e.action=t}function Zh(e){var t=zt(),i=gt;if(i!==null)return $h(t,i,e);zt(),t=t.memoizedState,i=zt();var l=i.queue.dispatch;return i.memoizedState=e,[t,l,!1]}function _r(e,t,i,l){return e={tag:e,create:i,deps:l,inst:t,next:null},t=Fe.updateQueue,t===null&&(t=jo(),Fe.updateQueue=t),i=t.lastEffect,i===null?t.lastEffect=e.next=e:(l=i.next,i.next=e,e.next=l,t.lastEffect=e),e}function Xh(){return zt().memoizedState}function Ko(e,t,i,l){var c=vn();Fe.flags|=e,c.memoizedState=_r(1|t,{destroy:void 0},i,l===void 0?null:l)}function Vo(e,t,i,l){var c=zt();l=l===void 0?null:l;var d=c.memoizedState.inst;gt!==null&&l!==null&&vu(l,gt.memoizedState.deps)?c.memoizedState=_r(t,d,i,l):(Fe.flags|=e,c.memoizedState=_r(1|t,d,i,l))}function Qh(e,t){Ko(8390656,8,e,t)}function Ou(e,t){Vo(2048,8,e,t)}function rT(e){Fe.flags|=4;var t=Fe.updateQueue;if(t===null)t=jo(),Fe.updateQueue=t,t.events=[e];else{var i=t.events;i===null?t.events=[e]:i.push(e)}}function Jh(e){var t=zt().memoizedState;return rT({ref:t,nextImpl:e}),function(){if((lt&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Wh(e,t){return Vo(4,2,e,t)}function em(e,t){return Vo(4,4,e,t)}function tm(e,t){if(typeof t=="function"){e=e();var i=t(e);return function(){typeof i=="function"?i():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function nm(e,t,i){i=i!=null?i.concat([e]):null,Vo(4,4,tm.bind(null,t,e),i)}function Mu(){}function im(e,t){var i=zt();t=t===void 0?null:t;var l=i.memoizedState;return t!==null&&vu(t,l[1])?l[0]:(i.memoizedState=[e,t],e)}function am(e,t){var i=zt();t=t===void 0?null:t;var l=i.memoizedState;if(t!==null&&vu(t,l[1]))return l[0];if(l=e(),Ga){et(!0);try{e()}finally{et(!1)}}return i.memoizedState=[l,t],l}function Ru(e,t,i){return i===void 0||(Oi&1073741824)!==0&&(Ze&261930)===0?e.memoizedState=t:(e.memoizedState=i,e=rb(),Fe.lanes|=e,sa|=e,i)}function rm(e,t,i,l){return Fn(i,t)?i:yr.current!==null?(e=Ru(e,i,l),Fn(e,t)||(Gt=!0),e):(Oi&42)===0||(Oi&1073741824)!==0&&(Ze&261930)===0?(Gt=!0,e.memoizedState=i):(e=rb(),Fe.lanes|=e,sa|=e,t)}function lm(e,t,i,l,c){var d=P.p;P.p=d!==0&&8>d?d:8;var y=j.T,_={};j.T=_,zu(e,!1,t,i);try{var A=c(),B=j.S;if(B!==null&&B(_,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var K=eT(A,l);Sl(e,t,K,Vn(e))}else Sl(e,t,l,Vn(e))}catch(X){Sl(e,t,{then:function(){},status:"rejected",reason:X},Vn())}finally{P.p=d,y!==null&&_.types!==null&&(y.types=_.types),j.T=y}}function lT(){}function Du(e,t,i,l){if(e.tag!==5)throw Error(s(476));var c=om(e).queue;lm(e,c,t,ve,i===null?lT:function(){return sm(e),i(l)})}function om(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ve,baseState:ve,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mi,lastRenderedState:ve},next:null};var i={};return t.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mi,lastRenderedState:i},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function sm(e){var t=om(e);t.next===null&&(t=e.alternate.memoizedState),Sl(e,t.next.queue,{},Vn())}function Lu(){return nn(Fl)}function cm(){return zt().memoizedState}function um(){return zt().memoizedState}function oT(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var i=Vn();e=na(i);var l=ia(t,e,i);l!==null&&(Rn(l,t,i),El(l,t,i)),t={cache:cu()},e.payload=t;return}t=t.return}}function sT(e,t,i){var l=Vn();i={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},$o(e)?dm(t,i):(i=Jc(e,t,i,l),i!==null&&(Rn(i,e,l),pm(i,t,l)))}function fm(e,t,i){var l=Vn();Sl(e,t,i,l)}function Sl(e,t,i,l){var c={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if($o(e))dm(t,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var y=t.lastRenderedState,_=d(y,i);if(c.hasEagerState=!0,c.eagerState=_,Fn(_,y))return No(e,t,c,0),vt===null&&Ao(),!1}catch{}if(i=Jc(e,t,c,l),i!==null)return Rn(i,e,l),pm(i,t,l),!0}return!1}function zu(e,t,i,l){if(l={lane:2,revertLane:gf(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},$o(e)){if(t)throw Error(s(479))}else t=Jc(e,i,l,2),t!==null&&Rn(t,e,2)}function $o(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function dm(e,t){Er=Fo=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function pm(e,t,i){if((i&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,i|=l,t.lanes=i,Ct(e,i)}}var wl={readContext:nn,use:Yo,useCallback:Rt,useContext:Rt,useEffect:Rt,useImperativeHandle:Rt,useLayoutEffect:Rt,useInsertionEffect:Rt,useMemo:Rt,useReducer:Rt,useRef:Rt,useState:Rt,useDebugValue:Rt,useDeferredValue:Rt,useTransition:Rt,useSyncExternalStore:Rt,useId:Rt,useHostTransitionStatus:Rt,useFormState:Rt,useActionState:Rt,useOptimistic:Rt,useMemoCache:Rt,useCacheRefresh:Rt};wl.useEffectEvent=Rt;var gm={readContext:nn,use:Yo,useCallback:function(e,t){return vn().memoizedState=[e,t===void 0?null:t],e},useContext:nn,useEffect:Qh,useImperativeHandle:function(e,t,i){i=i!=null?i.concat([e]):null,Ko(4194308,4,tm.bind(null,t,e),i)},useLayoutEffect:function(e,t){return Ko(4194308,4,e,t)},useInsertionEffect:function(e,t){Ko(4,2,e,t)},useMemo:function(e,t){var i=vn();t=t===void 0?null:t;var l=e();if(Ga){et(!0);try{e()}finally{et(!1)}}return i.memoizedState=[l,t],l},useReducer:function(e,t,i){var l=vn();if(i!==void 0){var c=i(t);if(Ga){et(!0);try{i(t)}finally{et(!1)}}}else c=t;return l.memoizedState=l.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},l.queue=e,e=e.dispatch=sT.bind(null,Fe,e),[l.memoizedState,e]},useRef:function(e){var t=vn();return e={current:e},t.memoizedState=e},useState:function(e){e=Nu(e);var t=e.queue,i=fm.bind(null,Fe,t);return t.dispatch=i,[e.memoizedState,i]},useDebugValue:Mu,useDeferredValue:function(e,t){var i=vn();return Ru(i,e,t)},useTransition:function(){var e=Nu(!1);return e=lm.bind(null,Fe,e.queue,!0,!1),vn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,i){var l=Fe,c=vn();if(Qe){if(i===void 0)throw Error(s(407));i=i()}else{if(i=t(),vt===null)throw Error(s(349));(Ze&127)!==0||zh(l,t,i)}c.memoizedState=i;var d={value:i,getSnapshot:t};return c.queue=d,Qh(Bh.bind(null,l,d,e),[e]),l.flags|=2048,_r(9,{destroy:void 0},Ih.bind(null,l,d,i,t),null),i},useId:function(){var e=vn(),t=vt.identifierPrefix;if(Qe){var i=yi,l=bi;i=(l&~(1<<32-kt(l)-1)).toString(32)+i,t="_"+t+"R_"+i,i=Go++,0<i&&(t+="H"+i.toString(32)),t+="_"}else i=tT++,t="_"+t+"r_"+i.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Lu,useFormState:Kh,useActionState:Kh,useOptimistic:function(e){var t=vn();t.memoizedState=t.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=i,t=zu.bind(null,Fe,!0,i),i.dispatch=t,[e,t]},useMemoCache:wu,useCacheRefresh:function(){return vn().memoizedState=oT.bind(null,Fe)},useEffectEvent:function(e){var t=vn(),i={impl:e};return t.memoizedState=i,function(){if((lt&2)!==0)throw Error(s(440));return i.impl.apply(void 0,arguments)}}},Iu={readContext:nn,use:Yo,useCallback:im,useContext:nn,useEffect:Ou,useImperativeHandle:nm,useInsertionEffect:Wh,useLayoutEffect:em,useMemo:am,useReducer:Po,useRef:Xh,useState:function(){return Po(Mi)},useDebugValue:Mu,useDeferredValue:function(e,t){var i=zt();return rm(i,gt.memoizedState,e,t)},useTransition:function(){var e=Po(Mi)[0],t=zt().memoizedState;return[typeof e=="boolean"?e:xl(e),t]},useSyncExternalStore:Lh,useId:cm,useHostTransitionStatus:Lu,useFormState:Vh,useActionState:Vh,useOptimistic:function(e,t){var i=zt();return qh(i,gt,e,t)},useMemoCache:wu,useCacheRefresh:um};Iu.useEffectEvent=Jh;var hm={readContext:nn,use:Yo,useCallback:im,useContext:nn,useEffect:Ou,useImperativeHandle:nm,useInsertionEffect:Wh,useLayoutEffect:em,useMemo:am,useReducer:Au,useRef:Xh,useState:function(){return Au(Mi)},useDebugValue:Mu,useDeferredValue:function(e,t){var i=zt();return gt===null?Ru(i,e,t):rm(i,gt.memoizedState,e,t)},useTransition:function(){var e=Au(Mi)[0],t=zt().memoizedState;return[typeof e=="boolean"?e:xl(e),t]},useSyncExternalStore:Lh,useId:cm,useHostTransitionStatus:Lu,useFormState:Zh,useActionState:Zh,useOptimistic:function(e,t){var i=zt();return gt!==null?qh(i,gt,e,t):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:wu,useCacheRefresh:um};hm.useEffectEvent=Jh;function Bu(e,t,i,l){t=e.memoizedState,i=i(l,t),i=i==null?t:E({},t,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var Uu={enqueueSetState:function(e,t,i){e=e._reactInternals;var l=Vn(),c=na(l);c.payload=t,i!=null&&(c.callback=i),t=ia(e,c,l),t!==null&&(Rn(t,e,l),El(t,e,l))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var l=Vn(),c=na(l);c.tag=1,c.payload=t,i!=null&&(c.callback=i),t=ia(e,c,l),t!==null&&(Rn(t,e,l),El(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=Vn(),l=na(i);l.tag=2,t!=null&&(l.callback=t),t=ia(e,l,i),t!==null&&(Rn(t,e,i),El(t,e,i))}};function mm(e,t,i,l,c,d,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,d,y):t.prototype&&t.prototype.isPureReactComponent?!fl(i,l)||!fl(c,d):!0}function bm(e,t,i,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,l),t.state!==e&&Uu.enqueueReplaceState(t,t.state,null)}function ja(e,t){var i=t;if("ref"in t){i={};for(var l in t)l!=="ref"&&(i[l]=t[l])}if(e=e.defaultProps){i===t&&(i=E({},i));for(var c in e)i[c]===void 0&&(i[c]=e[c])}return i}function ym(e){To(e)}function Em(e){console.error(e)}function vm(e){To(e)}function Zo(e,t){try{var i=e.onUncaughtError;i(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function _m(e,t,i){try{var l=e.onCaughtError;l(i.value,{componentStack:i.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Hu(e,t,i){return i=na(i),i.tag=3,i.payload={element:null},i.callback=function(){Zo(e,t)},i}function km(e){return e=na(e),e.tag=3,e}function xm(e,t,i,l){var c=i.type.getDerivedStateFromError;if(typeof c=="function"){var d=l.value;e.payload=function(){return c(d)},e.callback=function(){_m(t,i,l)}}var y=i.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){_m(t,i,l),typeof c!="function"&&(ca===null?ca=new Set([this]):ca.add(this));var _=l.stack;this.componentDidCatch(l.value,{componentStack:_!==null?_:""})})}function cT(e,t,i,l,c){if(i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=i.alternate,t!==null&&pr(t,i,c,!0),i=jn.current,i!==null){switch(i.tag){case 31:case 13:return ni===null?os():i.alternate===null&&Dt===0&&(Dt=3),i.flags&=-257,i.flags|=65536,i.lanes=c,l===Io?i.flags|=16384:(t=i.updateQueue,t===null?i.updateQueue=new Set([l]):t.add(l),ff(e,l,c)),!1;case 22:return i.flags|=65536,l===Io?i.flags|=16384:(t=i.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},i.updateQueue=t):(i=t.retryQueue,i===null?t.retryQueue=new Set([l]):i.add(l)),ff(e,l,c)),!1}throw Error(s(435,i.tag))}return ff(e,l,c),os(),!1}if(Qe)return t=jn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,l!==au&&(e=Error(s(422),{cause:l}),gl(Jn(e,i)))):(l!==au&&(t=Error(s(423),{cause:l}),gl(Jn(t,i))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,l=Jn(l,i),c=Hu(e.stateNode,l,c),hu(e,c),Dt!==4&&(Dt=2)),!1;var d=Error(s(520),{cause:l});if(d=Jn(d,i),Dl===null?Dl=[d]:Dl.push(d),Dt!==4&&(Dt=2),t===null)return!0;l=Jn(l,i),i=t;do{switch(i.tag){case 3:return i.flags|=65536,e=c&-c,i.lanes|=e,e=Hu(i.stateNode,l,e),hu(i,e),!1;case 1:if(t=i.type,d=i.stateNode,(i.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(ca===null||!ca.has(d))))return i.flags|=65536,c&=-c,i.lanes|=c,c=km(c),xm(c,e,i,l),hu(i,c),!1}i=i.return}while(i!==null);return!1}var qu=Error(s(461)),Gt=!1;function an(e,t,i,l){t.child=e===null?Ah(t,null,i,l):Fa(t,e.child,i,l)}function Sm(e,t,i,l,c){i=i.render;var d=t.ref;if("ref"in l){var y={};for(var _ in l)_!=="ref"&&(y[_]=l[_])}else y=l;return Ba(t),l=_u(e,t,i,y,d,c),_=ku(),e!==null&&!Gt?(xu(e,t,c),Ri(e,t,c)):(Qe&&_&&nu(t),t.flags|=1,an(e,t,l,c),t.child)}function wm(e,t,i,l,c){if(e===null){var d=i.type;return typeof d=="function"&&!Wc(d)&&d.defaultProps===void 0&&i.compare===null?(t.tag=15,t.type=d,Tm(e,t,d,l,c)):(e=Oo(i.type,null,l,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!$u(e,c)){var y=d.memoizedProps;if(i=i.compare,i=i!==null?i:fl,i(y,l)&&e.ref===t.ref)return Ri(e,t,c)}return t.flags|=1,e=Ti(d,l),e.ref=t.ref,e.return=t,t.child=e}function Tm(e,t,i,l,c){if(e!==null){var d=e.memoizedProps;if(fl(d,l)&&e.ref===t.ref)if(Gt=!1,t.pendingProps=l=d,$u(e,c))(e.flags&131072)!==0&&(Gt=!0);else return t.lanes=e.lanes,Ri(e,t,c)}return Fu(e,t,i,l,c)}function Am(e,t,i,l){var c=l.children,d=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(d=d!==null?d.baseLanes|i:i,e!==null){for(l=t.child=e.child,c=0;l!==null;)c=c|l.lanes|l.childLanes,l=l.sibling;l=c&~d}else l=0,t.child=null;return Nm(e,t,d,i,l)}if((i&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Lo(t,d!==null?d.cachePool:null),d!==null?Oh(t,d):bu(),Mh(t);else return l=t.lanes=536870912,Nm(e,t,d!==null?d.baseLanes|i:i,i,l)}else d!==null?(Lo(t,d.cachePool),Oh(t,d),ra(),t.memoizedState=null):(e!==null&&Lo(t,null),bu(),ra());return an(e,t,c,i),t.child}function Tl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Nm(e,t,i,l,c){var d=fu();return d=d===null?null:{parent:qt._currentValue,pool:d},t.memoizedState={baseLanes:i,cachePool:d},e!==null&&Lo(t,null),bu(),Mh(t),e!==null&&pr(e,t,l,!0),t.childLanes=c,null}function Xo(e,t){return t=Jo({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Cm(e,t,i){return Fa(t,e.child,null,i),e=Xo(t,t.pendingProps),e.flags|=2,Yn(t),t.memoizedState=null,e}function uT(e,t,i){var l=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Qe){if(l.mode==="hidden")return e=Xo(t,l),t.lanes=536870912,Tl(null,e);if(Eu(t),(e=wt)?(e=Fb(e,ti),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qi!==null?{id:bi,overflow:yi}:null,retryLane:536870912,hydrationErrors:null},i=dh(e),i.return=t,t.child=i,tn=t,wt=null)):e=null,e===null)throw Wi(t);return t.lanes=536870912,null}return Xo(t,l)}var d=e.memoizedState;if(d!==null){var y=d.dehydrated;if(Eu(t),c)if(t.flags&256)t.flags&=-257,t=Cm(e,t,i);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Gt||pr(e,t,i,!1),c=(i&e.childLanes)!==0,Gt||c){if(l=vt,l!==null&&(y=xt(l,i),y!==0&&y!==d.retryLane))throw d.retryLane=y,Da(e,y),Rn(l,e,y),qu;os(),t=Cm(e,t,i)}else e=d.treeContext,wt=ii(y.nextSibling),tn=t,Qe=!0,Ji=null,ti=!1,e!==null&&hh(t,e),t=Xo(t,l),t.flags|=4096;return t}return e=Ti(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Qo(e,t){var i=t.ref;if(i===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(s(284));(e===null||e.ref!==i)&&(t.flags|=4194816)}}function Fu(e,t,i,l,c){return Ba(t),i=_u(e,t,i,l,void 0,c),l=ku(),e!==null&&!Gt?(xu(e,t,c),Ri(e,t,c)):(Qe&&l&&nu(t),t.flags|=1,an(e,t,i,c),t.child)}function Om(e,t,i,l,c,d){return Ba(t),t.updateQueue=null,i=Dh(t,l,i,c),Rh(e),l=ku(),e!==null&&!Gt?(xu(e,t,d),Ri(e,t,d)):(Qe&&l&&nu(t),t.flags|=1,an(e,t,i,d),t.child)}function Mm(e,t,i,l,c){if(Ba(t),t.stateNode===null){var d=cr,y=i.contextType;typeof y=="object"&&y!==null&&(d=nn(y)),d=new i(l,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Uu,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=l,d.state=t.memoizedState,d.refs={},pu(t),y=i.contextType,d.context=typeof y=="object"&&y!==null?nn(y):cr,d.state=t.memoizedState,y=i.getDerivedStateFromProps,typeof y=="function"&&(Bu(t,i,y,l),d.state=t.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(y=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),y!==d.state&&Uu.enqueueReplaceState(d,d.state,null),_l(t,l,d,c),vl(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){d=t.stateNode;var _=t.memoizedProps,A=ja(i,_);d.props=A;var B=d.context,K=i.contextType;y=cr,typeof K=="object"&&K!==null&&(y=nn(K));var X=i.getDerivedStateFromProps;K=typeof X=="function"||typeof d.getSnapshotBeforeUpdate=="function",_=t.pendingProps!==_,K||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(_||B!==y)&&bm(t,d,l,y),ta=!1;var U=t.memoizedState;d.state=U,_l(t,l,d,c),vl(),B=t.memoizedState,_||U!==B||ta?(typeof X=="function"&&(Bu(t,i,X,l),B=t.memoizedState),(A=ta||mm(t,i,A,l,U,B,y))?(K||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=B),d.props=l,d.state=B,d.context=y,l=A):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{d=t.stateNode,gu(e,t),y=t.memoizedProps,K=ja(i,y),d.props=K,X=t.pendingProps,U=d.context,B=i.contextType,A=cr,typeof B=="object"&&B!==null&&(A=nn(B)),_=i.getDerivedStateFromProps,(B=typeof _=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(y!==X||U!==A)&&bm(t,d,l,A),ta=!1,U=t.memoizedState,d.state=U,_l(t,l,d,c),vl();var F=t.memoizedState;y!==X||U!==F||ta||e!==null&&e.dependencies!==null&&Ro(e.dependencies)?(typeof _=="function"&&(Bu(t,i,_,l),F=t.memoizedState),(K=ta||mm(t,i,K,l,U,F,A)||e!==null&&e.dependencies!==null&&Ro(e.dependencies))?(B||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(l,F,A),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(l,F,A)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=F),d.props=l,d.state=F,d.context=A,l=K):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),l=!1)}return d=l,Qo(e,t),l=(t.flags&128)!==0,d||l?(d=t.stateNode,i=l&&typeof i.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&l?(t.child=Fa(t,e.child,null,c),t.child=Fa(t,null,i,c)):an(e,t,i,c),t.memoizedState=d.state,e=t.child):e=Ri(e,t,c),e}function Rm(e,t,i,l){return za(),t.flags|=256,an(e,t,i,l),t.child}var Gu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ju(e){return{baseLanes:e,cachePool:_h()}}function Yu(e,t,i){return e=e!==null?e.childLanes&~i:0,t&&(e|=Kn),e}function Dm(e,t,i){var l=t.pendingProps,c=!1,d=(t.flags&128)!==0,y;if((y=d)||(y=e!==null&&e.memoizedState===null?!1:(Lt.current&2)!==0),y&&(c=!0,t.flags&=-129),y=(t.flags&32)!==0,t.flags&=-33,e===null){if(Qe){if(c?aa(t):ra(),(e=wt)?(e=Fb(e,ti),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qi!==null?{id:bi,overflow:yi}:null,retryLane:536870912,hydrationErrors:null},i=dh(e),i.return=t,t.child=i,tn=t,wt=null)):e=null,e===null)throw Wi(t);return Af(e)?t.lanes=32:t.lanes=536870912,null}var _=l.children;return l=l.fallback,c?(ra(),c=t.mode,_=Jo({mode:"hidden",children:_},c),l=La(l,c,i,null),_.return=t,l.return=t,_.sibling=l,t.child=_,l=t.child,l.memoizedState=ju(i),l.childLanes=Yu(e,y,i),t.memoizedState=Gu,Tl(null,l)):(aa(t),Pu(t,_))}var A=e.memoizedState;if(A!==null&&(_=A.dehydrated,_!==null)){if(d)t.flags&256?(aa(t),t.flags&=-257,t=Ku(e,t,i)):t.memoizedState!==null?(ra(),t.child=e.child,t.flags|=128,t=null):(ra(),_=l.fallback,c=t.mode,l=Jo({mode:"visible",children:l.children},c),_=La(_,c,i,null),_.flags|=2,l.return=t,_.return=t,l.sibling=_,t.child=l,Fa(t,e.child,null,i),l=t.child,l.memoizedState=ju(i),l.childLanes=Yu(e,y,i),t.memoizedState=Gu,t=Tl(null,l));else if(aa(t),Af(_)){if(y=_.nextSibling&&_.nextSibling.dataset,y)var B=y.dgst;y=B,l=Error(s(419)),l.stack="",l.digest=y,gl({value:l,source:null,stack:null}),t=Ku(e,t,i)}else if(Gt||pr(e,t,i,!1),y=(i&e.childLanes)!==0,Gt||y){if(y=vt,y!==null&&(l=xt(y,i),l!==0&&l!==A.retryLane))throw A.retryLane=l,Da(e,l),Rn(y,e,l),qu;Tf(_)||os(),t=Ku(e,t,i)}else Tf(_)?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,wt=ii(_.nextSibling),tn=t,Qe=!0,Ji=null,ti=!1,e!==null&&hh(t,e),t=Pu(t,l.children),t.flags|=4096);return t}return c?(ra(),_=l.fallback,c=t.mode,A=e.child,B=A.sibling,l=Ti(A,{mode:"hidden",children:l.children}),l.subtreeFlags=A.subtreeFlags&65011712,B!==null?_=Ti(B,_):(_=La(_,c,i,null),_.flags|=2),_.return=t,l.return=t,l.sibling=_,t.child=l,Tl(null,l),l=t.child,_=e.child.memoizedState,_===null?_=ju(i):(c=_.cachePool,c!==null?(A=qt._currentValue,c=c.parent!==A?{parent:A,pool:A}:c):c=_h(),_={baseLanes:_.baseLanes|i,cachePool:c}),l.memoizedState=_,l.childLanes=Yu(e,y,i),t.memoizedState=Gu,Tl(e.child,l)):(aa(t),i=e.child,e=i.sibling,i=Ti(i,{mode:"visible",children:l.children}),i.return=t,i.sibling=null,e!==null&&(y=t.deletions,y===null?(t.deletions=[e],t.flags|=16):y.push(e)),t.child=i,t.memoizedState=null,i)}function Pu(e,t){return t=Jo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Jo(e,t){return e=Gn(22,e,null,t),e.lanes=0,e}function Ku(e,t,i){return Fa(t,e.child,null,i),e=Pu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Lm(e,t,i){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),ou(e.return,t,i)}function Vu(e,t,i,l,c,d){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:c,treeForkCount:d}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=l,y.tail=i,y.tailMode=c,y.treeForkCount=d)}function zm(e,t,i){var l=t.pendingProps,c=l.revealOrder,d=l.tail;l=l.children;var y=Lt.current,_=(y&2)!==0;if(_?(y=y&1|2,t.flags|=128):y&=1,W(Lt,y),an(e,t,l,i),l=Qe?pl:0,!_&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Lm(e,i,t);else if(e.tag===19)Lm(e,i,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(c){case"forwards":for(i=t.child,c=null;i!==null;)e=i.alternate,e!==null&&qo(e)===null&&(c=i),i=i.sibling;i=c,i===null?(c=t.child,t.child=null):(c=i.sibling,i.sibling=null),Vu(t,!1,c,i,d,l);break;case"backwards":case"unstable_legacy-backwards":for(i=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&qo(e)===null){t.child=c;break}e=c.sibling,c.sibling=i,i=c,c=e}Vu(t,!0,i,null,d,l);break;case"together":Vu(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Ri(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),sa|=t.lanes,(i&t.childLanes)===0)if(e!==null){if(pr(e,t,i,!1),(i&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,i=Ti(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=Ti(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function $u(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ro(e)))}function fT(e,t,i){switch(t.tag){case 3:ft(t,t.stateNode.containerInfo),ea(t,qt,e.memoizedState.cache),za();break;case 27:case 5:un(t);break;case 4:ft(t,t.stateNode.containerInfo);break;case 10:ea(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Eu(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(aa(t),t.flags|=128,null):(i&t.child.childLanes)!==0?Dm(e,t,i):(aa(t),e=Ri(e,t,i),e!==null?e.sibling:null);aa(t);break;case 19:var c=(e.flags&128)!==0;if(l=(i&t.childLanes)!==0,l||(pr(e,t,i,!1),l=(i&t.childLanes)!==0),c){if(l)return zm(e,t,i);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),W(Lt,Lt.current),l)break;return null;case 22:return t.lanes=0,Am(e,t,i,t.pendingProps);case 24:ea(t,qt,e.memoizedState.cache)}return Ri(e,t,i)}function Im(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps)Gt=!0;else{if(!$u(e,i)&&(t.flags&128)===0)return Gt=!1,fT(e,t,i);Gt=(e.flags&131072)!==0}else Gt=!1,Qe&&(t.flags&1048576)!==0&&gh(t,pl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Ha(t.elementType),t.type=e,typeof e=="function")Wc(e)?(l=ja(e,l),t.tag=1,t=Mm(null,t,e,l,i)):(t.tag=0,t=Fu(null,t,e,l,i));else{if(e!=null){var c=e.$$typeof;if(c===te){t.tag=11,t=Sm(null,t,e,l,i);break e}else if(c===ne){t.tag=14,t=wm(null,t,e,l,i);break e}}throw t=Q(e)||e,Error(s(306,t,""))}}return t;case 0:return Fu(e,t,t.type,t.pendingProps,i);case 1:return l=t.type,c=ja(l,t.pendingProps),Mm(e,t,l,c,i);case 3:e:{if(ft(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var d=t.memoizedState;c=d.element,gu(e,t),_l(t,l,null,i);var y=t.memoizedState;if(l=y.cache,ea(t,qt,l),l!==d.cache&&su(t,[qt],i,!0),vl(),l=y.element,d.isDehydrated)if(d={element:l,isDehydrated:!1,cache:y.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=Rm(e,t,l,i);break e}else if(l!==c){c=Jn(Error(s(424)),t),gl(c),t=Rm(e,t,l,i);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,wt=ii(e.firstChild),tn=t,Qe=!0,Ji=null,ti=!0,i=Ah(t,null,l,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(za(),l===c){t=Ri(e,t,i);break e}an(e,t,l,i)}t=t.child}return t;case 26:return Qo(e,t),e===null?(i=Vb(t.type,null,t.pendingProps,null))?t.memoizedState=i:Qe||(i=t.type,e=t.pendingProps,l=gs(Me.current).createElement(i),l[nt]=t,l[_t]=e,rn(l,i,e),we(l),t.stateNode=l):t.memoizedState=Vb(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return un(t),e===null&&Qe&&(l=t.stateNode=Yb(t.type,t.pendingProps,Me.current),tn=t,ti=!0,c=wt,pa(t.type)?(Nf=c,wt=ii(l.firstChild)):wt=c),an(e,t,t.pendingProps.children,i),Qo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Qe&&((c=l=wt)&&(l=FT(l,t.type,t.pendingProps,ti),l!==null?(t.stateNode=l,tn=t,wt=ii(l.firstChild),ti=!1,c=!0):c=!1),c||Wi(t)),un(t),c=t.type,d=t.pendingProps,y=e!==null?e.memoizedProps:null,l=d.children,xf(c,d)?l=null:y!==null&&xf(c,y)&&(t.flags|=32),t.memoizedState!==null&&(c=_u(e,t,nT,null,null,i),Fl._currentValue=c),Qo(e,t),an(e,t,l,i),t.child;case 6:return e===null&&Qe&&((e=i=wt)&&(i=GT(i,t.pendingProps,ti),i!==null?(t.stateNode=i,tn=t,wt=null,e=!0):e=!1),e||Wi(t)),null;case 13:return Dm(e,t,i);case 4:return ft(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Fa(t,null,l,i):an(e,t,l,i),t.child;case 11:return Sm(e,t,t.type,t.pendingProps,i);case 7:return an(e,t,t.pendingProps,i),t.child;case 8:return an(e,t,t.pendingProps.children,i),t.child;case 12:return an(e,t,t.pendingProps.children,i),t.child;case 10:return l=t.pendingProps,ea(t,t.type,l.value),an(e,t,l.children,i),t.child;case 9:return c=t.type._context,l=t.pendingProps.children,Ba(t),c=nn(c),l=l(c),t.flags|=1,an(e,t,l,i),t.child;case 14:return wm(e,t,t.type,t.pendingProps,i);case 15:return Tm(e,t,t.type,t.pendingProps,i);case 19:return zm(e,t,i);case 31:return uT(e,t,i);case 22:return Am(e,t,i,t.pendingProps);case 24:return Ba(t),l=nn(qt),e===null?(c=fu(),c===null&&(c=vt,d=cu(),c.pooledCache=d,d.refCount++,d!==null&&(c.pooledCacheLanes|=i),c=d),t.memoizedState={parent:l,cache:c},pu(t),ea(t,qt,c)):((e.lanes&i)!==0&&(gu(e,t),_l(t,null,null,i),vl()),c=e.memoizedState,d=t.memoizedState,c.parent!==l?(c={parent:l,cache:l},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),ea(t,qt,l)):(l=d.cache,ea(t,qt,l),l!==c.cache&&su(t,[qt],i,!0))),an(e,t,t.pendingProps.children,i),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Di(e){e.flags|=4}function Zu(e,t,i,l,c){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(cb())e.flags|=8192;else throw qa=Io,du}else e.flags&=-16777217}function Bm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Jb(t))if(cb())e.flags|=8192;else throw qa=Io,du}function Wo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?dt():536870912,e.lanes|=t,wr|=t)}function Al(e,t){if(!Qe)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Tt(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,l=0;if(t)for(var c=e.child;c!==null;)i|=c.lanes|c.childLanes,l|=c.subtreeFlags&65011712,l|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)i|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=l,e.childLanes=i,t}function dT(e,t,i){var l=t.pendingProps;switch(iu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Tt(t),null;case 1:return Tt(t),null;case 3:return i=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Ci(qt),ze(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(dr(t)?Di(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ru())),Tt(t),null;case 26:var c=t.type,d=t.memoizedState;return e===null?(Di(t),d!==null?(Tt(t),Bm(t,d)):(Tt(t),Zu(t,c,null,l,i))):d?d!==e.memoizedState?(Di(t),Tt(t),Bm(t,d)):(Tt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Di(t),Tt(t),Zu(t,c,e,l,i)),null;case 27:if(zn(t),i=Me.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Di(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Tt(t),null}e=de.current,dr(t)?mh(t):(e=Yb(c,l,i),t.stateNode=e,Di(t))}return Tt(t),null;case 5:if(zn(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Di(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Tt(t),null}if(d=de.current,dr(t))mh(t);else{var y=gs(Me.current);switch(d){case 1:d=y.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:d=y.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":d=y.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":d=y.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":d=y.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof l.is=="string"?y.createElement("select",{is:l.is}):y.createElement("select"),l.multiple?d.multiple=!0:l.size&&(d.size=l.size);break;default:d=typeof l.is=="string"?y.createElement(c,{is:l.is}):y.createElement(c)}}d[nt]=t,d[_t]=l;e:for(y=t.child;y!==null;){if(y.tag===5||y.tag===6)d.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===t)break e;for(;y.sibling===null;){if(y.return===null||y.return===t)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}t.stateNode=d;e:switch(rn(d,c,l),c){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Di(t)}}return Tt(t),Zu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,i),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Di(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=Me.current,dr(t)){if(e=t.stateNode,i=t.memoizedProps,l=null,c=tn,c!==null)switch(c.tag){case 27:case 5:l=c.memoizedProps}e[nt]=t,e=!!(e.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||Db(e.nodeValue,i)),e||Wi(t,!0)}else e=gs(e).createTextNode(l),e[nt]=t,t.stateNode=e}return Tt(t),null;case 31:if(i=t.memoizedState,e===null||e.memoizedState!==null){if(l=dr(t),i!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[nt]=t}else za(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Tt(t),e=!1}else i=ru(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return t.flags&256?(Yn(t),t):(Yn(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Tt(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=dr(t),l!==null&&l.dehydrated!==null){if(e===null){if(!c)throw Error(s(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(s(317));c[nt]=t}else za(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Tt(t),c=!1}else c=ru(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Yn(t),t):(Yn(t),null)}return Yn(t),(t.flags&128)!==0?(t.lanes=i,t):(i=l!==null,e=e!==null&&e.memoizedState!==null,i&&(l=t.child,c=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(c=l.alternate.memoizedState.cachePool.pool),d=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(d=l.memoizedState.cachePool.pool),d!==c&&(l.flags|=2048)),i!==e&&i&&(t.child.flags|=8192),Wo(t,t.updateQueue),Tt(t),null);case 4:return ze(),e===null&&yf(t.stateNode.containerInfo),Tt(t),null;case 10:return Ci(t.type),Tt(t),null;case 19:if(k(Lt),l=t.memoizedState,l===null)return Tt(t),null;if(c=(t.flags&128)!==0,d=l.rendering,d===null)if(c)Al(l,!1);else{if(Dt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=qo(e),d!==null){for(t.flags|=128,Al(l,!1),e=d.updateQueue,t.updateQueue=e,Wo(t,e),t.subtreeFlags=0,e=i,i=t.child;i!==null;)fh(i,e),i=i.sibling;return W(Lt,Lt.current&1|2),Qe&&Ai(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Ut()>as&&(t.flags|=128,c=!0,Al(l,!1),t.lanes=4194304)}else{if(!c)if(e=qo(d),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,Wo(t,e),Al(l,!0),l.tail===null&&l.tailMode==="hidden"&&!d.alternate&&!Qe)return Tt(t),null}else 2*Ut()-l.renderingStartTime>as&&i!==536870912&&(t.flags|=128,c=!0,Al(l,!1),t.lanes=4194304);l.isBackwards?(d.sibling=t.child,t.child=d):(e=l.last,e!==null?e.sibling=d:t.child=d,l.last=d)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Ut(),e.sibling=null,i=Lt.current,W(Lt,c?i&1|2:i&1),Qe&&Ai(t,l.treeForkCount),e):(Tt(t),null);case 22:case 23:return Yn(t),yu(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(i&536870912)!==0&&(t.flags&128)===0&&(Tt(t),t.subtreeFlags&6&&(t.flags|=8192)):Tt(t),i=t.updateQueue,i!==null&&Wo(t,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==i&&(t.flags|=2048),e!==null&&k(Ua),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Ci(qt),Tt(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function pT(e,t){switch(iu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ci(qt),ze(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return zn(t),null;case 31:if(t.memoizedState!==null){if(Yn(t),t.alternate===null)throw Error(s(340));za()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Yn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));za()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return k(Lt),null;case 4:return ze(),null;case 10:return Ci(t.type),null;case 22:case 23:return Yn(t),yu(),e!==null&&k(Ua),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ci(qt),null;case 25:return null;default:return null}}function Um(e,t){switch(iu(t),t.tag){case 3:Ci(qt),ze();break;case 26:case 27:case 5:zn(t);break;case 4:ze();break;case 31:t.memoizedState!==null&&Yn(t);break;case 13:Yn(t);break;case 19:k(Lt);break;case 10:Ci(t.type);break;case 22:case 23:Yn(t),yu(),e!==null&&k(Ua);break;case 24:Ci(qt)}}function Nl(e,t){try{var i=t.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var c=l.next;i=c;do{if((i.tag&e)===e){l=void 0;var d=i.create,y=i.inst;l=d(),y.destroy=l}i=i.next}while(i!==c)}}catch(_){ct(t,t.return,_)}}function la(e,t,i){try{var l=t.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var d=c.next;l=d;do{if((l.tag&e)===e){var y=l.inst,_=y.destroy;if(_!==void 0){y.destroy=void 0,c=t;var A=i,B=_;try{B()}catch(K){ct(c,A,K)}}}l=l.next}while(l!==d)}}catch(K){ct(t,t.return,K)}}function Hm(e){var t=e.updateQueue;if(t!==null){var i=e.stateNode;try{Ch(t,i)}catch(l){ct(e,e.return,l)}}}function qm(e,t,i){i.props=ja(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(l){ct(e,t,l)}}function Cl(e,t){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof i=="function"?e.refCleanup=i(l):i.current=l}}catch(c){ct(e,t,c)}}function Ei(e,t){var i=e.ref,l=e.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(c){ct(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(c){ct(e,t,c)}else i.current=null}function Fm(e){var t=e.type,i=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":i.autoFocus&&l.focus();break e;case"img":i.src?l.src=i.src:i.srcSet&&(l.srcset=i.srcSet)}}catch(c){ct(e,e.return,c)}}function Xu(e,t,i){try{var l=e.stateNode;zT(l,e.type,i,t),l[_t]=t}catch(c){ct(e,e.return,c)}}function Gm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&pa(e.type)||e.tag===4}function Qu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&pa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ju(e,t,i){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,t):(t=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,t.appendChild(e),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=me));else if(l!==4&&(l===27&&pa(e.type)&&(i=e.stateNode,t=null),e=e.child,e!==null))for(Ju(e,t,i),e=e.sibling;e!==null;)Ju(e,t,i),e=e.sibling}function es(e,t,i){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(l!==4&&(l===27&&pa(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(es(e,t,i),e=e.sibling;e!==null;)es(e,t,i),e=e.sibling}function jm(e){var t=e.stateNode,i=e.memoizedProps;try{for(var l=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);rn(t,l,i),t[nt]=e,t[_t]=i}catch(d){ct(e,e.return,d)}}var Li=!1,jt=!1,Wu=!1,Ym=typeof WeakSet=="function"?WeakSet:Set,Xt=null;function gT(e,t){if(e=e.containerInfo,_f=_s,e=nh(e),Kc(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var c=l.anchorOffset,d=l.focusNode;l=l.focusOffset;try{i.nodeType,d.nodeType}catch{i=null;break e}var y=0,_=-1,A=-1,B=0,K=0,X=e,U=null;t:for(;;){for(var F;X!==i||c!==0&&X.nodeType!==3||(_=y+c),X!==d||l!==0&&X.nodeType!==3||(A=y+l),X.nodeType===3&&(y+=X.nodeValue.length),(F=X.firstChild)!==null;)U=X,X=F;for(;;){if(X===e)break t;if(U===i&&++B===c&&(_=y),U===d&&++K===l&&(A=y),(F=X.nextSibling)!==null)break;X=U,U=X.parentNode}X=F}i=_===-1||A===-1?null:{start:_,end:A}}else i=null}i=i||{start:0,end:0}}else i=null;for(kf={focusedElem:e,selectionRange:i},_s=!1,Xt=t;Xt!==null;)if(t=Xt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Xt=e;else for(;Xt!==null;){switch(t=Xt,d=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i<e.length;i++)c=e[i],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,i=t,c=d.memoizedProps,d=d.memoizedState,l=i.stateNode;try{var be=ja(i.type,c);e=l.getSnapshotBeforeUpdate(be,d),l.__reactInternalSnapshotBeforeUpdate=e}catch(Oe){ct(i,i.return,Oe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,i=e.nodeType,i===9)wf(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":wf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Xt=e;break}Xt=t.return}}function Pm(e,t,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:Ii(e,i),l&4&&Nl(5,i);break;case 1:if(Ii(e,i),l&4)if(e=i.stateNode,t===null)try{e.componentDidMount()}catch(y){ct(i,i.return,y)}else{var c=ja(i.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){ct(i,i.return,y)}}l&64&&Hm(i),l&512&&Cl(i,i.return);break;case 3:if(Ii(e,i),l&64&&(e=i.updateQueue,e!==null)){if(t=null,i.child!==null)switch(i.child.tag){case 27:case 5:t=i.child.stateNode;break;case 1:t=i.child.stateNode}try{Ch(e,t)}catch(y){ct(i,i.return,y)}}break;case 27:t===null&&l&4&&jm(i);case 26:case 5:Ii(e,i),t===null&&l&4&&Fm(i),l&512&&Cl(i,i.return);break;case 12:Ii(e,i);break;case 31:Ii(e,i),l&4&&$m(e,i);break;case 13:Ii(e,i),l&4&&Zm(e,i),l&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=xT.bind(null,i),jT(e,i))));break;case 22:if(l=i.memoizedState!==null||Li,!l){t=t!==null&&t.memoizedState!==null||jt,c=Li;var d=jt;Li=l,(jt=t)&&!d?Bi(e,i,(i.subtreeFlags&8772)!==0):Ii(e,i),Li=c,jt=d}break;case 30:break;default:Ii(e,i)}}function Km(e){var t=e.alternate;t!==null&&(e.alternate=null,Km(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Sn(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var At=null,Nn=!1;function zi(e,t,i){for(i=i.child;i!==null;)Vm(e,t,i),i=i.sibling}function Vm(e,t,i){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(pn,i)}catch{}switch(i.tag){case 26:jt||Ei(i,t),zi(e,t,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:jt||Ei(i,t);var l=At,c=Nn;pa(i.type)&&(At=i.stateNode,Nn=!1),zi(e,t,i),Ul(i.stateNode),At=l,Nn=c;break;case 5:jt||Ei(i,t);case 6:if(l=At,c=Nn,At=null,zi(e,t,i),At=l,Nn=c,At!==null)if(Nn)try{(At.nodeType===9?At.body:At.nodeName==="HTML"?At.ownerDocument.body:At).removeChild(i.stateNode)}catch(d){ct(i,t,d)}else try{At.removeChild(i.stateNode)}catch(d){ct(i,t,d)}break;case 18:At!==null&&(Nn?(e=At,Hb(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),Dr(e)):Hb(At,i.stateNode));break;case 4:l=At,c=Nn,At=i.stateNode.containerInfo,Nn=!0,zi(e,t,i),At=l,Nn=c;break;case 0:case 11:case 14:case 15:la(2,i,t),jt||la(4,i,t),zi(e,t,i);break;case 1:jt||(Ei(i,t),l=i.stateNode,typeof l.componentWillUnmount=="function"&&qm(i,t,l)),zi(e,t,i);break;case 21:zi(e,t,i);break;case 22:jt=(l=jt)||i.memoizedState!==null,zi(e,t,i),jt=l;break;default:zi(e,t,i)}}function $m(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Dr(e)}catch(i){ct(t,t.return,i)}}}function Zm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Dr(e)}catch(i){ct(t,t.return,i)}}function hT(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ym),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ym),t;default:throw Error(s(435,e.tag))}}function ts(e,t){var i=hT(e);t.forEach(function(l){if(!i.has(l)){i.add(l);var c=ST.bind(null,e,l);l.then(c,c)}})}function Cn(e,t){var i=t.deletions;if(i!==null)for(var l=0;l<i.length;l++){var c=i[l],d=e,y=t,_=y;e:for(;_!==null;){switch(_.tag){case 27:if(pa(_.type)){At=_.stateNode,Nn=!1;break e}break;case 5:At=_.stateNode,Nn=!1;break e;case 3:case 4:At=_.stateNode.containerInfo,Nn=!0;break e}_=_.return}if(At===null)throw Error(s(160));Vm(d,y,c),At=null,Nn=!1,d=c.alternate,d!==null&&(d.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Xm(t,e),t=t.sibling}var di=null;function Xm(e,t){var i=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Cn(t,e),On(e),l&4&&(la(3,e,e.return),Nl(3,e),la(5,e,e.return));break;case 1:Cn(t,e),On(e),l&512&&(jt||i===null||Ei(i,i.return)),l&64&&Li&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?l:i.concat(l))));break;case 26:var c=di;if(Cn(t,e),On(e),l&512&&(jt||i===null||Ei(i,i.return)),l&4){var d=i!==null?i.memoizedState:null;if(l=e.memoizedState,i===null)if(l===null)if(e.stateNode===null){e:{l=e.type,i=e.memoizedProps,c=c.ownerDocument||c;t:switch(l){case"title":d=c.getElementsByTagName("title")[0],(!d||d[en]||d[nt]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=c.createElement(l),c.head.insertBefore(d,c.querySelector("head > title"))),rn(d,l,i),d[nt]=e,we(d),l=d;break e;case"link":var y=Xb("link","href",c).get(l+(i.href||""));if(y){for(var _=0;_<y.length;_++)if(d=y[_],d.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&d.getAttribute("rel")===(i.rel==null?null:i.rel)&&d.getAttribute("title")===(i.title==null?null:i.title)&&d.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){y.splice(_,1);break t}}d=c.createElement(l),rn(d,l,i),c.head.appendChild(d);break;case"meta":if(y=Xb("meta","content",c).get(l+(i.content||""))){for(_=0;_<y.length;_++)if(d=y[_],d.getAttribute("content")===(i.content==null?null:""+i.content)&&d.getAttribute("name")===(i.name==null?null:i.name)&&d.getAttribute("property")===(i.property==null?null:i.property)&&d.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&d.getAttribute("charset")===(i.charSet==null?null:i.charSet)){y.splice(_,1);break t}}d=c.createElement(l),rn(d,l,i),c.head.appendChild(d);break;default:throw Error(s(468,l))}d[nt]=e,we(d),l=d}e.stateNode=l}else Qb(c,e.type,e.stateNode);else e.stateNode=Zb(c,l,e.memoizedProps);else d!==l?(d===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):d.count--,l===null?Qb(c,e.type,e.stateNode):Zb(c,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Xu(e,e.memoizedProps,i.memoizedProps)}break;case 27:Cn(t,e),On(e),l&512&&(jt||i===null||Ei(i,i.return)),i!==null&&l&4&&Xu(e,e.memoizedProps,i.memoizedProps);break;case 5:if(Cn(t,e),On(e),l&512&&(jt||i===null||Ei(i,i.return)),e.flags&32){c=e.stateNode;try{Si(c,"")}catch(be){ct(e,e.return,be)}}l&4&&e.stateNode!=null&&(c=e.memoizedProps,Xu(e,c,i!==null?i.memoizedProps:c)),l&1024&&(Wu=!0);break;case 6:if(Cn(t,e),On(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,i=e.stateNode;try{i.nodeValue=l}catch(be){ct(e,e.return,be)}}break;case 3:if(bs=null,c=di,di=hs(t.containerInfo),Cn(t,e),di=c,On(e),l&4&&i!==null&&i.memoizedState.isDehydrated)try{Dr(t.containerInfo)}catch(be){ct(e,e.return,be)}Wu&&(Wu=!1,Qm(e));break;case 4:l=di,di=hs(e.stateNode.containerInfo),Cn(t,e),On(e),di=l;break;case 12:Cn(t,e),On(e);break;case 31:Cn(t,e),On(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ts(e,l)));break;case 13:Cn(t,e),On(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(is=Ut()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ts(e,l)));break;case 22:c=e.memoizedState!==null;var A=i!==null&&i.memoizedState!==null,B=Li,K=jt;if(Li=B||c,jt=K||A,Cn(t,e),jt=K,Li=B,On(e),l&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(i===null||A||Li||jt||Ya(e)),i=null,t=e;;){if(t.tag===5||t.tag===26){if(i===null){A=i=t;try{if(d=A.stateNode,c)y=d.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{_=A.stateNode;var X=A.memoizedProps.style,U=X!=null&&X.hasOwnProperty("display")?X.display:null;_.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(be){ct(A,A.return,be)}}}else if(t.tag===6){if(i===null){A=t;try{A.stateNode.nodeValue=c?"":A.memoizedProps}catch(be){ct(A,A.return,be)}}}else if(t.tag===18){if(i===null){A=t;try{var F=A.stateNode;c?qb(F,!0):qb(A.stateNode,!1)}catch(be){ct(A,A.return,be)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;i===t&&(i=null),t=t.return}i===t&&(i=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(i=l.retryQueue,i!==null&&(l.retryQueue=null,ts(e,i))));break;case 19:Cn(t,e),On(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ts(e,l)));break;case 30:break;case 21:break;default:Cn(t,e),On(e)}}function On(e){var t=e.flags;if(t&2){try{for(var i,l=e.return;l!==null;){if(Gm(l)){i=l;break}l=l.return}if(i==null)throw Error(s(160));switch(i.tag){case 27:var c=i.stateNode,d=Qu(e);es(e,d,c);break;case 5:var y=i.stateNode;i.flags&32&&(Si(y,""),i.flags&=-33);var _=Qu(e);es(e,_,y);break;case 3:case 4:var A=i.stateNode.containerInfo,B=Qu(e);Ju(e,B,A);break;default:throw Error(s(161))}}catch(K){ct(e,e.return,K)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Qm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Qm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ii(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Pm(e,t.alternate,t),t=t.sibling}function Ya(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:la(4,t,t.return),Ya(t);break;case 1:Ei(t,t.return);var i=t.stateNode;typeof i.componentWillUnmount=="function"&&qm(t,t.return,i),Ya(t);break;case 27:Ul(t.stateNode);case 26:case 5:Ei(t,t.return),Ya(t);break;case 22:t.memoizedState===null&&Ya(t);break;case 30:Ya(t);break;default:Ya(t)}e=e.sibling}}function Bi(e,t,i){for(i=i&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,c=e,d=t,y=d.flags;switch(d.tag){case 0:case 11:case 15:Bi(c,d,i),Nl(4,d);break;case 1:if(Bi(c,d,i),l=d,c=l.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(B){ct(l,l.return,B)}if(l=d,c=l.updateQueue,c!==null){var _=l.stateNode;try{var A=c.shared.hiddenCallbacks;if(A!==null)for(c.shared.hiddenCallbacks=null,c=0;c<A.length;c++)Nh(A[c],_)}catch(B){ct(l,l.return,B)}}i&&y&64&&Hm(d),Cl(d,d.return);break;case 27:jm(d);case 26:case 5:Bi(c,d,i),i&&l===null&&y&4&&Fm(d),Cl(d,d.return);break;case 12:Bi(c,d,i);break;case 31:Bi(c,d,i),i&&y&4&&$m(c,d);break;case 13:Bi(c,d,i),i&&y&4&&Zm(c,d);break;case 22:d.memoizedState===null&&Bi(c,d,i),Cl(d,d.return);break;case 30:break;default:Bi(c,d,i)}t=t.sibling}}function ef(e,t){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&hl(i))}function tf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&hl(e))}function pi(e,t,i,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Jm(e,t,i,l),t=t.sibling}function Jm(e,t,i,l){var c=t.flags;switch(t.tag){case 0:case 11:case 15:pi(e,t,i,l),c&2048&&Nl(9,t);break;case 1:pi(e,t,i,l);break;case 3:pi(e,t,i,l),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&hl(e)));break;case 12:if(c&2048){pi(e,t,i,l),e=t.stateNode;try{var d=t.memoizedProps,y=d.id,_=d.onPostCommit;typeof _=="function"&&_(y,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){ct(t,t.return,A)}}else pi(e,t,i,l);break;case 31:pi(e,t,i,l);break;case 13:pi(e,t,i,l);break;case 23:break;case 22:d=t.stateNode,y=t.alternate,t.memoizedState!==null?d._visibility&2?pi(e,t,i,l):Ol(e,t):d._visibility&2?pi(e,t,i,l):(d._visibility|=2,kr(e,t,i,l,(t.subtreeFlags&10256)!==0||!1)),c&2048&&ef(y,t);break;case 24:pi(e,t,i,l),c&2048&&tf(t.alternate,t);break;default:pi(e,t,i,l)}}function kr(e,t,i,l,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var d=e,y=t,_=i,A=l,B=y.flags;switch(y.tag){case 0:case 11:case 15:kr(d,y,_,A,c),Nl(8,y);break;case 23:break;case 22:var K=y.stateNode;y.memoizedState!==null?K._visibility&2?kr(d,y,_,A,c):Ol(d,y):(K._visibility|=2,kr(d,y,_,A,c)),c&&B&2048&&ef(y.alternate,y);break;case 24:kr(d,y,_,A,c),c&&B&2048&&tf(y.alternate,y);break;default:kr(d,y,_,A,c)}t=t.sibling}}function Ol(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var i=e,l=t,c=l.flags;switch(l.tag){case 22:Ol(i,l),c&2048&&ef(l.alternate,l);break;case 24:Ol(i,l),c&2048&&tf(l.alternate,l);break;default:Ol(i,l)}t=t.sibling}}var Ml=8192;function xr(e,t,i){if(e.subtreeFlags&Ml)for(e=e.child;e!==null;)Wm(e,t,i),e=e.sibling}function Wm(e,t,i){switch(e.tag){case 26:xr(e,t,i),e.flags&Ml&&e.memoizedState!==null&&tA(i,di,e.memoizedState,e.memoizedProps);break;case 5:xr(e,t,i);break;case 3:case 4:var l=di;di=hs(e.stateNode.containerInfo),xr(e,t,i),di=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Ml,Ml=16777216,xr(e,t,i),Ml=l):xr(e,t,i));break;default:xr(e,t,i)}}function eb(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Rl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var l=t[i];Xt=l,nb(l,e)}eb(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)tb(e),e=e.sibling}function tb(e){switch(e.tag){case 0:case 11:case 15:Rl(e),e.flags&2048&&la(9,e,e.return);break;case 3:Rl(e);break;case 12:Rl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ns(e)):Rl(e);break;default:Rl(e)}}function ns(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var l=t[i];Xt=l,nb(l,e)}eb(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:la(8,t,t.return),ns(t);break;case 22:i=t.stateNode,i._visibility&2&&(i._visibility&=-3,ns(t));break;default:ns(t)}e=e.sibling}}function nb(e,t){for(;Xt!==null;){var i=Xt;switch(i.tag){case 0:case 11:case 15:la(8,i,t);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var l=i.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:hl(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,Xt=l;else e:for(i=e;Xt!==null;){l=Xt;var c=l.sibling,d=l.return;if(Km(l),l===i){Xt=null;break e}if(c!==null){c.return=d,Xt=c;break e}Xt=d}}}var mT={getCacheForType:function(e){var t=nn(qt),i=t.data.get(e);return i===void 0&&(i=e(),t.data.set(e,i)),i},cacheSignal:function(){return nn(qt).controller.signal}},bT=typeof WeakMap=="function"?WeakMap:Map,lt=0,vt=null,Ve=null,Ze=0,st=0,Pn=null,oa=!1,Sr=!1,nf=!1,Ui=0,Dt=0,sa=0,Pa=0,af=0,Kn=0,wr=0,Dl=null,Mn=null,rf=!1,is=0,ib=0,as=1/0,rs=null,ca=null,Kt=0,ua=null,Tr=null,Hi=0,lf=0,of=null,ab=null,Ll=0,sf=null;function Vn(){return(lt&2)!==0&&Ze!==0?Ze&-Ze:j.T!==null?gf():Pi()}function rb(){if(Kn===0)if((Ze&536870912)===0||Qe){var e=En;En<<=1,(En&3932160)===0&&(En=262144),Kn=e}else Kn=536870912;return e=jn.current,e!==null&&(e.flags|=32),Kn}function Rn(e,t,i){(e===vt&&(st===2||st===9)||e.cancelPendingCommit!==null)&&(Ar(e,0),fa(e,Ze,Kn,!1)),he(e,i),((lt&2)===0||e!==vt)&&(e===vt&&((lt&2)===0&&(Pa|=i),Dt===4&&fa(e,Ze,Kn,!1)),vi(e))}function lb(e,t,i){if((lt&6)!==0)throw Error(s(327));var l=!i&&(t&127)===0&&(t&e.expiredLanes)===0||ee(e,t),c=l?vT(e,t):uf(e,t,!0),d=l;do{if(c===0){Sr&&!l&&fa(e,t,0,!1);break}else{if(i=e.current.alternate,d&&!yT(i)){c=uf(e,t,!1),d=!1;continue}if(c===2){if(d=t,e.errorRecoveryDisabledLanes&d)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){t=y;e:{var _=e;c=Dl;var A=_.current.memoizedState.isDehydrated;if(A&&(Ar(_,y).flags|=256),y=uf(_,y,!1),y!==2){if(nf&&!A){_.errorRecoveryDisabledLanes|=d,Pa|=d,c=4;break e}d=Mn,Mn=c,d!==null&&(Mn===null?Mn=d:Mn.push.apply(Mn,d))}c=y}if(d=!1,c!==2)continue}}if(c===1){Ar(e,0),fa(e,t,0,!0);break}e:{switch(l=e,d=c,d){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:fa(l,t,Kn,!oa);break e;case 2:Mn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(c=is+300-Ut(),10<c)){if(fa(l,t,Kn,!oa),V(l,0,!0)!==0)break e;Hi=t,l.timeoutHandle=Bb(ob.bind(null,l,i,Mn,rs,rf,t,Kn,Pa,wr,oa,d,"Throttled",-0,0),c);break e}ob(l,i,Mn,rs,rf,t,Kn,Pa,wr,oa,d,null,-0,0)}}break}while(!0);vi(e)}function ob(e,t,i,l,c,d,y,_,A,B,K,X,U,F){if(e.timeoutHandle=-1,X=t.subtreeFlags,X&8192||(X&16785408)===16785408){X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:me},Wm(t,d,X);var be=(d&62914560)===d?is-Ut():(d&4194048)===d?ib-Ut():0;if(be=nA(X,be),be!==null){Hi=d,e.cancelPendingCommit=be(hb.bind(null,e,t,d,i,l,c,y,_,A,K,X,null,U,F)),fa(e,d,y,!B);return}}hb(e,t,d,i,l,c,y,_,A)}function yT(e){for(var t=e;;){var i=t.tag;if((i===0||i===11||i===15)&&t.flags&16384&&(i=t.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var l=0;l<i.length;l++){var c=i[l],d=c.getSnapshot;c=c.value;try{if(!Fn(d(),c))return!1}catch{return!1}}if(i=t.child,t.subtreeFlags&16384&&i!==null)i.return=t,t=i;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function fa(e,t,i,l){t&=~af,t&=~Pa,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var c=t;0<c;){var d=31-kt(c),y=1<<d;l[d]=-1,c&=~y}i!==0&&Ce(e,i,t)}function ls(){return(lt&6)===0?(zl(0),!1):!0}function cf(){if(Ve!==null){if(st===0)var e=Ve.return;else e=Ve,Ni=Ia=null,Su(e),br=null,bl=0,e=Ve;for(;e!==null;)Um(e.alternate,e),e=e.return;Ve=null}}function Ar(e,t){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,UT(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),Hi=0,cf(),vt=e,Ve=i=Ti(e.current,null),Ze=t,st=0,Pn=null,oa=!1,Sr=ee(e,t),nf=!1,wr=Kn=af=Pa=sa=Dt=0,Mn=Dl=null,rf=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var c=31-kt(l),d=1<<c;t|=e[c],l&=~d}return Ui=t,Ao(),i}function sb(e,t){Fe=null,j.H=wl,t===mr||t===zo?(t=Sh(),st=3):t===du?(t=Sh(),st=4):st=t===qu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Pn=t,Ve===null&&(Dt=1,Zo(e,Jn(t,e.current)))}function cb(){var e=jn.current;return e===null?!0:(Ze&4194048)===Ze?ni===null:(Ze&62914560)===Ze||(Ze&536870912)!==0?e===ni:!1}function ub(){var e=j.H;return j.H=wl,e===null?wl:e}function fb(){var e=j.A;return j.A=mT,e}function os(){Dt=4,oa||(Ze&4194048)!==Ze&&jn.current!==null||(Sr=!0),(sa&134217727)===0&&(Pa&134217727)===0||vt===null||fa(vt,Ze,Kn,!1)}function uf(e,t,i){var l=lt;lt|=2;var c=ub(),d=fb();(vt!==e||Ze!==t)&&(rs=null,Ar(e,t)),t=!1;var y=Dt;e:do try{if(st!==0&&Ve!==null){var _=Ve,A=Pn;switch(st){case 8:cf(),y=6;break e;case 3:case 2:case 9:case 6:jn.current===null&&(t=!0);var B=st;if(st=0,Pn=null,Nr(e,_,A,B),i&&Sr){y=0;break e}break;default:B=st,st=0,Pn=null,Nr(e,_,A,B)}}ET(),y=Dt;break}catch(K){sb(e,K)}while(!0);return t&&e.shellSuspendCounter++,Ni=Ia=null,lt=l,j.H=c,j.A=d,Ve===null&&(vt=null,Ze=0,Ao()),y}function ET(){for(;Ve!==null;)db(Ve)}function vT(e,t){var i=lt;lt|=2;var l=ub(),c=fb();vt!==e||Ze!==t?(rs=null,as=Ut()+500,Ar(e,t)):Sr=ee(e,t);e:do try{if(st!==0&&Ve!==null){t=Ve;var d=Pn;t:switch(st){case 1:st=0,Pn=null,Nr(e,t,d,1);break;case 2:case 9:if(kh(d)){st=0,Pn=null,pb(t);break}t=function(){st!==2&&st!==9||vt!==e||(st=7),vi(e)},d.then(t,t);break e;case 3:st=7;break e;case 4:st=5;break e;case 7:kh(d)?(st=0,Pn=null,pb(t)):(st=0,Pn=null,Nr(e,t,d,7));break;case 5:var y=null;switch(Ve.tag){case 26:y=Ve.memoizedState;case 5:case 27:var _=Ve;if(y?Jb(y):_.stateNode.complete){st=0,Pn=null;var A=_.sibling;if(A!==null)Ve=A;else{var B=_.return;B!==null?(Ve=B,ss(B)):Ve=null}break t}}st=0,Pn=null,Nr(e,t,d,5);break;case 6:st=0,Pn=null,Nr(e,t,d,6);break;case 8:cf(),Dt=6;break e;default:throw Error(s(462))}}_T();break}catch(K){sb(e,K)}while(!0);return Ni=Ia=null,j.H=l,j.A=c,lt=i,Ve!==null?0:(vt=null,Ze=0,Ao(),Dt)}function _T(){for(;Ve!==null&&!xn();)db(Ve)}function db(e){var t=Im(e.alternate,e,Ui);e.memoizedProps=e.pendingProps,t===null?ss(e):Ve=t}function pb(e){var t=e,i=t.alternate;switch(t.tag){case 15:case 0:t=Om(i,t,t.pendingProps,t.type,void 0,Ze);break;case 11:t=Om(i,t,t.pendingProps,t.type.render,t.ref,Ze);break;case 5:Su(t);default:Um(i,t),t=Ve=fh(t,Ui),t=Im(i,t,Ui)}e.memoizedProps=e.pendingProps,t===null?ss(e):Ve=t}function Nr(e,t,i,l){Ni=Ia=null,Su(t),br=null,bl=0;var c=t.return;try{if(cT(e,c,t,i,Ze)){Dt=1,Zo(e,Jn(i,e.current)),Ve=null;return}}catch(d){if(c!==null)throw Ve=c,d;Dt=1,Zo(e,Jn(i,e.current)),Ve=null;return}t.flags&32768?(Qe||l===1?e=!0:Sr||(Ze&536870912)!==0?e=!1:(oa=e=!0,(l===2||l===9||l===3||l===6)&&(l=jn.current,l!==null&&l.tag===13&&(l.flags|=16384))),gb(t,e)):ss(t)}function ss(e){var t=e;do{if((t.flags&32768)!==0){gb(t,oa);return}e=t.return;var i=dT(t.alternate,t,Ui);if(i!==null){Ve=i;return}if(t=t.sibling,t!==null){Ve=t;return}Ve=t=e}while(t!==null);Dt===0&&(Dt=5)}function gb(e,t){do{var i=pT(e.alternate,e);if(i!==null){i.flags&=32767,Ve=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!t&&(e=e.sibling,e!==null)){Ve=e;return}Ve=e=i}while(e!==null);Dt=6,Ve=null}function hb(e,t,i,l,c,d,y,_,A){e.cancelPendingCommit=null;do cs();while(Kt!==0);if((lt&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(d=t.lanes|t.childLanes,d|=Qc,pe(e,i,d,y,_,A),e===vt&&(Ve=vt=null,Ze=0),Tr=t,ua=e,Hi=i,lf=d,of=c,ab=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,wT(Ie,function(){return vb(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=j.T,j.T=null,c=P.p,P.p=2,y=lt,lt|=4;try{gT(e,t,i)}finally{lt=y,P.p=c,j.T=l}}Kt=1,mb(),bb(),yb()}}function mb(){if(Kt===1){Kt=0;var e=ua,t=Tr,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=j.T,j.T=null;var l=P.p;P.p=2;var c=lt;lt|=4;try{Xm(t,e);var d=kf,y=nh(e.containerInfo),_=d.focusedElem,A=d.selectionRange;if(y!==_&&_&&_.ownerDocument&&th(_.ownerDocument.documentElement,_)){if(A!==null&&Kc(_)){var B=A.start,K=A.end;if(K===void 0&&(K=B),"selectionStart"in _)_.selectionStart=B,_.selectionEnd=Math.min(K,_.value.length);else{var X=_.ownerDocument||document,U=X&&X.defaultView||window;if(U.getSelection){var F=U.getSelection(),be=_.textContent.length,Oe=Math.min(A.start,be),mt=A.end===void 0?Oe:Math.min(A.end,be);!F.extend&&Oe>mt&&(y=mt,mt=Oe,Oe=y);var R=eh(_,Oe),O=eh(_,mt);if(R&&O&&(F.rangeCount!==1||F.anchorNode!==R.node||F.anchorOffset!==R.offset||F.focusNode!==O.node||F.focusOffset!==O.offset)){var I=X.createRange();I.setStart(R.node,R.offset),F.removeAllRanges(),Oe>mt?(F.addRange(I),F.extend(O.node,O.offset)):(I.setEnd(O.node,O.offset),F.addRange(I))}}}}for(X=[],F=_;F=F.parentNode;)F.nodeType===1&&X.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<X.length;_++){var Z=X[_];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}_s=!!_f,kf=_f=null}finally{lt=c,P.p=l,j.T=i}}e.current=t,Kt=2}}function bb(){if(Kt===2){Kt=0;var e=ua,t=Tr,i=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||i){i=j.T,j.T=null;var l=P.p;P.p=2;var c=lt;lt|=4;try{Pm(e,t.alternate,t)}finally{lt=c,P.p=l,j.T=i}}Kt=3}}function yb(){if(Kt===4||Kt===3){Kt=0,Un();var e=ua,t=Tr,i=Hi,l=ab;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Kt=5:(Kt=0,Tr=ua=null,Eb(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(ca=null),xi(i),t=t.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(pn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=j.T,c=P.p,P.p=2,j.T=null;try{for(var d=e.onRecoverableError,y=0;y<l.length;y++){var _=l[y];d(_.value,{componentStack:_.stack})}}finally{j.T=t,P.p=c}}(Hi&3)!==0&&cs(),vi(e),c=e.pendingLanes,(i&261930)!==0&&(c&42)!==0?e===sf?Ll++:(Ll=0,sf=e):Ll=0,zl(0)}}function Eb(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,hl(t)))}function cs(){return mb(),bb(),yb(),vb()}function vb(){if(Kt!==5)return!1;var e=ua,t=lf;lf=0;var i=xi(Hi),l=j.T,c=P.p;try{P.p=32>i?32:i,j.T=null,i=of,of=null;var d=ua,y=Hi;if(Kt=0,Tr=ua=null,Hi=0,(lt&6)!==0)throw Error(s(331));var _=lt;if(lt|=4,tb(d.current),Jm(d,d.current,y,i),lt=_,zl(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(pn,d)}catch{}return!0}finally{P.p=c,j.T=l,Eb(e,t)}}function _b(e,t,i){t=Jn(i,t),t=Hu(e.stateNode,t,2),e=ia(e,t,2),e!==null&&(he(e,2),vi(e))}function ct(e,t,i){if(e.tag===3)_b(e,e,i);else for(;t!==null;){if(t.tag===3){_b(t,e,i);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ca===null||!ca.has(l))){e=Jn(i,e),i=km(2),l=ia(t,i,2),l!==null&&(xm(i,l,t,e),he(l,2),vi(l));break}}t=t.return}}function ff(e,t,i){var l=e.pingCache;if(l===null){l=e.pingCache=new bT;var c=new Set;l.set(t,c)}else c=l.get(t),c===void 0&&(c=new Set,l.set(t,c));c.has(i)||(nf=!0,c.add(i),e=kT.bind(null,e,t,i),t.then(e,e))}function kT(e,t,i){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,vt===e&&(Ze&i)===i&&(Dt===4||Dt===3&&(Ze&62914560)===Ze&&300>Ut()-is?(lt&2)===0&&Ar(e,0):af|=i,wr===Ze&&(wr=0)),vi(e)}function kb(e,t){t===0&&(t=dt()),e=Da(e,t),e!==null&&(he(e,t),vi(e))}function xT(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),kb(e,i)}function ST(e,t){var i=0;switch(e.tag){case 31:case 13:var l=e.stateNode,c=e.memoizedState;c!==null&&(i=c.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),kb(e,i)}function wT(e,t){return Vt(e,t)}var us=null,Cr=null,df=!1,fs=!1,pf=!1,da=0;function vi(e){e!==Cr&&e.next===null&&(Cr===null?us=Cr=e:Cr=Cr.next=e),fs=!0,df||(df=!0,AT())}function zl(e,t){if(!pf&&fs){pf=!0;do for(var i=!1,l=us;l!==null;){if(e!==0){var c=l.pendingLanes;if(c===0)var d=0;else{var y=l.suspendedLanes,_=l.pingedLanes;d=(1<<31-kt(42|e)+1)-1,d&=c&~(y&~_),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(i=!0,Tb(l,d))}else d=Ze,d=V(l,l===vt?d:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(d&3)===0||ee(l,d)||(i=!0,Tb(l,d));l=l.next}while(i);pf=!1}}function TT(){xb()}function xb(){fs=df=!1;var e=0;da!==0&&BT()&&(e=da);for(var t=Ut(),i=null,l=us;l!==null;){var c=l.next,d=Sb(l,t);d===0?(l.next=null,i===null?us=c:i.next=c,c===null&&(Cr=i)):(i=l,(e!==0||(d&3)!==0)&&(fs=!0)),l=c}Kt!==0&&Kt!==5||zl(e),da!==0&&(da=0)}function Sb(e,t){for(var i=e.suspendedLanes,l=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var y=31-kt(d),_=1<<y,A=c[y];A===-1?((_&i)===0||(_&l)!==0)&&(c[y]=Ae(_,t)):A<=t&&(e.expiredLanes|=_),d&=~_}if(t=vt,i=Ze,i=V(e,e===t?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,i===0||e===t&&(st===2||st===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Bt(l),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||ee(e,i)){if(t=i&-i,t===e.callbackPriority)return t;switch(l!==null&&Bt(l),xi(i)){case 2:case 8:i=Te;break;case 32:i=Ie;break;case 268435456:i=$t;break;default:i=Ie}return l=wb.bind(null,e),i=Vt(i,l),e.callbackPriority=t,e.callbackNode=i,t}return l!==null&&l!==null&&Bt(l),e.callbackPriority=2,e.callbackNode=null,2}function wb(e,t){if(Kt!==0&&Kt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(cs()&&e.callbackNode!==i)return null;var l=Ze;return l=V(e,e===vt?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(lb(e,l,t),Sb(e,Ut()),e.callbackNode!=null&&e.callbackNode===i?wb.bind(null,e):null)}function Tb(e,t){if(cs())return null;lb(e,t,!0)}function AT(){HT(function(){(lt&6)!==0?Vt(ae,TT):xb()})}function gf(){if(da===0){var e=gr;e===0&&(e=wa,wa<<=1,(wa&261888)===0&&(wa=256)),da=e}return da}function Ab(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:se(""+e)}function Nb(e,t){var i=t.ownerDocument.createElement("input");return i.name=t.name,i.value=t.value,e.id&&i.setAttribute("form",e.id),t.parentNode.insertBefore(i,t),e=new FormData(e),i.parentNode.removeChild(i),e}function NT(e,t,i,l,c){if(t==="submit"&&i&&i.stateNode===c){var d=Ab((c[_t]||null).action),y=l.submitter;y&&(t=(t=y[_t]||null)?Ab(t.formAction):y.getAttribute("formAction"),t!==null&&(d=t,y=null));var _=new xo("action","action",null,l,c);e.push({event:_,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(da!==0){var A=y?Nb(c,y):new FormData(c);Du(i,{pending:!0,data:A,method:c.method,action:d},null,A)}}else typeof d=="function"&&(_.preventDefault(),A=y?Nb(c,y):new FormData(c),Du(i,{pending:!0,data:A,method:c.method,action:d},d,A))},currentTarget:c}]})}}for(var hf=0;hf<Xc.length;hf++){var mf=Xc[hf],CT=mf.toLowerCase(),OT=mf[0].toUpperCase()+mf.slice(1);fi(CT,"on"+OT)}fi(rh,"onAnimationEnd"),fi(lh,"onAnimationIteration"),fi(oh,"onAnimationStart"),fi("dblclick","onDoubleClick"),fi("focusin","onFocus"),fi("focusout","onBlur"),fi(Kw,"onTransitionRun"),fi(Vw,"onTransitionStart"),fi($w,"onTransitionCancel"),fi(sh,"onTransitionEnd"),ge("onMouseEnter",["mouseout","mouseover"]),ge("onMouseLeave",["mouseout","mouseover"]),ge("onPointerEnter",["pointerout","pointerover"]),ge("onPointerLeave",["pointerout","pointerover"]),$("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$("onBeforeInput",["compositionend","keypress","textInput","paste"]),$("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Il="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(" "),MT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Il));function Cb(e,t){t=(t&4)!==0;for(var i=0;i<e.length;i++){var l=e[i],c=l.event;l=l.listeners;e:{var d=void 0;if(t)for(var y=l.length-1;0<=y;y--){var _=l[y],A=_.instance,B=_.currentTarget;if(_=_.listener,A!==d&&c.isPropagationStopped())break e;d=_,c.currentTarget=B;try{d(c)}catch(K){To(K)}c.currentTarget=null,d=A}else for(y=0;y<l.length;y++){if(_=l[y],A=_.instance,B=_.currentTarget,_=_.listener,A!==d&&c.isPropagationStopped())break e;d=_,c.currentTarget=B;try{d(c)}catch(K){To(K)}c.currentTarget=null,d=A}}}}function $e(e,t){var i=t[Ki];i===void 0&&(i=t[Ki]=new Set);var l=e+"__bubble";i.has(l)||(Ob(t,e,2,!1),i.add(l))}function bf(e,t,i){var l=0;t&&(l|=4),Ob(i,e,l,t)}var ds="_reactListening"+Math.random().toString(36).slice(2);function yf(e){if(!e[ds]){e[ds]=!0,je.forEach(function(i){i!=="selectionchange"&&(MT.has(i)||bf(i,!1,e),bf(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ds]||(t[ds]=!0,bf("selectionchange",!1,t))}}function Ob(e,t,i,l){switch(ry(t)){case 2:var c=rA;break;case 8:c=lA;break;default:c=Df}i=c.bind(null,t,i,e),c=void 0,!Bc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),l?c!==void 0?e.addEventListener(t,i,{capture:!0,passive:c}):e.addEventListener(t,i,!0):c!==void 0?e.addEventListener(t,i,{passive:c}):e.addEventListener(t,i,!1)}function Ef(e,t,i,l,c){var d=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var y=l.tag;if(y===3||y===4){var _=l.stateNode.containerInfo;if(_===c)break;if(y===4)for(y=l.return;y!==null;){var A=y.tag;if((A===3||A===4)&&y.stateNode.containerInfo===c)return;y=y.return}for(;_!==null;){if(y=oi(_),y===null)return;if(A=y.tag,A===5||A===6||A===26||A===27){l=d=y;continue e}_=_.parentNode}}l=l.return}zg(function(){var B=d,K=it(i),X=[];e:{var U=ch.get(e);if(U!==void 0){var F=xo,be=e;switch(e){case"keypress":if(_o(i)===0)break e;case"keydown":case"keyup":F=Sw;break;case"focusin":be="focus",F=Fc;break;case"focusout":be="blur",F=Fc;break;case"beforeblur":case"afterblur":F=Fc;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F=Ug;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=dw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=Aw;break;case rh:case lh:case oh:F=hw;break;case sh:F=Cw;break;case"scroll":case"scrollend":F=uw;break;case"wheel":F=Mw;break;case"copy":case"cut":case"paste":F=bw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=qg;break;case"toggle":case"beforetoggle":F=Dw}var Oe=(t&4)!==0,mt=!Oe&&(e==="scroll"||e==="scrollend"),R=Oe?U!==null?U+"Capture":null:U;Oe=[];for(var O=B,I;O!==null;){var Z=O;if(I=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||I===null||R===null||(Z=al(O,R),Z!=null&&Oe.push(Bl(O,Z,I))),mt)break;O=O.return}0<Oe.length&&(U=new F(U,be,null,i,K),X.push({event:U,listeners:Oe}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",U&&i!==qe&&(be=i.relatedTarget||i.fromElement)&&(oi(be)||be[li]))break e;if((F||U)&&(U=K.window===K?K:(U=K.ownerDocument)?U.defaultView||U.parentWindow:window,F?(be=i.relatedTarget||i.toElement,F=B,be=be?oi(be):null,be!==null&&(mt=u(be),Oe=be.tag,be!==mt||Oe!==5&&Oe!==27&&Oe!==6)&&(be=null)):(F=null,be=B),F!==be)){if(Oe=Ug,Z="onMouseLeave",R="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(Oe=qg,Z="onPointerLeave",R="onPointerEnter",O="pointer"),mt=F==null?U:ue(F),I=be==null?U:ue(be),U=new Oe(Z,O+"leave",F,i,K),U.target=mt,U.relatedTarget=I,Z=null,oi(K)===B&&(Oe=new Oe(R,O+"enter",be,i,K),Oe.target=I,Oe.relatedTarget=mt,Z=Oe),mt=Z,F&&be)t:{for(Oe=RT,R=F,O=be,I=0,Z=R;Z;Z=Oe(Z))I++;Z=0;for(var Se=O;Se;Se=Oe(Se))Z++;for(;0<I-Z;)R=Oe(R),I--;for(;0<Z-I;)O=Oe(O),Z--;for(;I--;){if(R===O||O!==null&&R===O.alternate){Oe=R;break t}R=Oe(R),O=Oe(O)}Oe=null}else Oe=null;F!==null&&Mb(X,U,F,Oe,!1),be!==null&&mt!==null&&Mb(X,mt,be,Oe,!0)}}e:{if(U=B?ue(B):window,F=U.nodeName&&U.nodeName.toLowerCase(),F==="select"||F==="input"&&U.type==="file")var at=$g;else if(Kg(U))if(Zg)at=jw;else{at=Fw;var _e=qw}else F=U.nodeName,!F||F.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?B&&ui(B.elementType)&&(at=$g):at=Gw;if(at&&(at=at(e,B))){Vg(X,at,i,K);break e}_e&&_e(e,U,B),e==="focusout"&&B&&U.type==="number"&&B.memoizedProps.value!=null&&Tn(U,"number",U.value)}switch(_e=B?ue(B):window,e){case"focusin":(Kg(_e)||_e.contentEditable==="true")&&(lr=_e,Vc=B,dl=null);break;case"focusout":dl=Vc=lr=null;break;case"mousedown":$c=!0;break;case"contextmenu":case"mouseup":case"dragend":$c=!1,ih(X,i,K);break;case"selectionchange":if(Pw)break;case"keydown":case"keyup":ih(X,i,K)}var Ye;if(jc)e:{switch(e){case"compositionstart":var Xe="onCompositionStart";break e;case"compositionend":Xe="onCompositionEnd";break e;case"compositionupdate":Xe="onCompositionUpdate";break e}Xe=void 0}else rr?Yg(e,i)&&(Xe="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(Xe="onCompositionStart");Xe&&(Fg&&i.locale!=="ko"&&(rr||Xe!=="onCompositionStart"?Xe==="onCompositionEnd"&&rr&&(Ye=Ig()):(Xi=K,Uc="value"in Xi?Xi.value:Xi.textContent,rr=!0)),_e=ps(B,Xe),0<_e.length&&(Xe=new Hg(Xe,e,null,i,K),X.push({event:Xe,listeners:_e}),Ye?Xe.data=Ye:(Ye=Pg(i),Ye!==null&&(Xe.data=Ye)))),(Ye=zw?Iw(e,i):Bw(e,i))&&(Xe=ps(B,"onBeforeInput"),0<Xe.length&&(_e=new Hg("onBeforeInput","beforeinput",null,i,K),X.push({event:_e,listeners:Xe}),_e.data=Ye)),NT(X,e,B,i,K)}Cb(X,t)})}function Bl(e,t,i){return{instance:e,listener:t,currentTarget:i}}function ps(e,t){for(var i=t+"Capture",l=[];e!==null;){var c=e,d=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||d===null||(c=al(e,i),c!=null&&l.unshift(Bl(e,c,d)),c=al(e,t),c!=null&&l.push(Bl(e,c,d))),e.tag===3)return l;e=e.return}return[]}function RT(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Mb(e,t,i,l,c){for(var d=t._reactName,y=[];i!==null&&i!==l;){var _=i,A=_.alternate,B=_.stateNode;if(_=_.tag,A!==null&&A===l)break;_!==5&&_!==26&&_!==27||B===null||(A=B,c?(B=al(i,d),B!=null&&y.unshift(Bl(i,B,A))):c||(B=al(i,d),B!=null&&y.push(Bl(i,B,A)))),i=i.return}y.length!==0&&e.push({event:t,listeners:y})}var DT=/\r\n?/g,LT=/\u0000|\uFFFD/g;function Rb(e){return(typeof e=="string"?e:""+e).replace(DT,`
9
- `).replace(LT,"")}function Db(e,t){return t=Rb(t),Rb(e)===t}function ht(e,t,i,l,c,d){switch(i){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Si(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Si(e,""+l);break;case"className":ci(e,"class",l);break;case"tabIndex":ci(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ci(e,i,l);break;case"style":Ca(e,l,d);break;case"data":if(t!=="object"){ci(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||i!=="href")){e.removeAttribute(i);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(i);break}l=se(""+l),e.setAttribute(i,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(i,"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 d=="function"&&(i==="formAction"?(t!=="input"&&ht(e,t,"name",c.name,c,null),ht(e,t,"formEncType",c.formEncType,c,null),ht(e,t,"formMethod",c.formMethod,c,null),ht(e,t,"formTarget",c.formTarget,c,null)):(ht(e,t,"encType",c.encType,c,null),ht(e,t,"method",c.method,c,null),ht(e,t,"target",c.target,c,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(i);break}l=se(""+l),e.setAttribute(i,l);break;case"onClick":l!=null&&(e.onclick=me);break;case"onScroll":l!=null&&$e("scroll",e);break;case"onScrollEnd":l!=null&&$e("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(i=l.__html,i!=null){if(c.children!=null)throw Error(s(60));e.innerHTML=i}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}i=se(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(i,""+l):e.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":l===!0?e.setAttribute(i,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(i,l):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(i,l):e.removeAttribute(i);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(i):e.setAttribute(i,l);break;case"popover":$e("beforetoggle",e),$e("toggle",e),Ht(e,"popover",l);break;case"xlinkActuate":St(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":St(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":St(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":St(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":St(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":St(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":St(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":St(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":St(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Ht(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=tl.get(i)||i,Ht(e,i,l))}}function vf(e,t,i,l,c,d){switch(i){case"style":Ca(e,l,d);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(i=l.__html,i!=null){if(c.children!=null)throw Error(s(60));e.innerHTML=i}}break;case"children":typeof l=="string"?Si(e,l):(typeof l=="number"||typeof l=="bigint")&&Si(e,""+l);break;case"onScroll":l!=null&&$e("scroll",e);break;case"onScrollEnd":l!=null&&$e("scrollend",e);break;case"onClick":l!=null&&(e.onclick=me);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!pt.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(c=i.endsWith("Capture"),t=i.slice(2,c?i.length-7:void 0),d=e[_t]||null,d=d!=null?d[i]:null,typeof d=="function"&&e.removeEventListener(t,d,c),typeof l=="function")){typeof d!="function"&&d!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(t,l,c);break e}i in e?e[i]=l:l===!0?e.setAttribute(i,""):Ht(e,i,l)}}}function rn(e,t,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$e("error",e),$e("load",e);var l=!1,c=!1,d;for(d in i)if(i.hasOwnProperty(d)){var y=i[d];if(y!=null)switch(d){case"src":l=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ht(e,t,d,y,i,null)}}c&&ht(e,t,"srcSet",i.srcSet,i,null),l&&ht(e,t,"src",i.src,i,null);return;case"input":$e("invalid",e);var _=d=y=c=null,A=null,B=null;for(l in i)if(i.hasOwnProperty(l)){var K=i[l];if(K!=null)switch(l){case"name":c=K;break;case"type":y=K;break;case"checked":A=K;break;case"defaultChecked":B=K;break;case"value":d=K;break;case"defaultValue":_=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(s(137,t));break;default:ht(e,t,l,K,i,null)}}el(e,d,_,A,B,y,c,!1);return;case"select":$e("invalid",e),l=y=d=null;for(c in i)if(i.hasOwnProperty(c)&&(_=i[c],_!=null))switch(c){case"value":d=_;break;case"defaultValue":y=_;break;case"multiple":l=_;default:ht(e,t,c,_,i,null)}t=d,i=y,e.multiple=!!l,t!=null?Zi(e,!!l,t,!1):i!=null&&Zi(e,!!l,i,!0);return;case"textarea":$e("invalid",e),d=c=l=null;for(y in i)if(i.hasOwnProperty(y)&&(_=i[y],_!=null))switch(y){case"value":l=_;break;case"defaultValue":c=_;break;case"children":d=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(s(91));break;default:ht(e,t,y,_,i,null)}De(e,l,c,d);return;case"option":for(A in i)i.hasOwnProperty(A)&&(l=i[A],l!=null)&&(A==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":ht(e,t,A,l,i,null));return;case"dialog":$e("beforetoggle",e),$e("toggle",e),$e("cancel",e),$e("close",e);break;case"iframe":case"object":$e("load",e);break;case"video":case"audio":for(l=0;l<Il.length;l++)$e(Il[l],e);break;case"image":$e("error",e),$e("load",e);break;case"details":$e("toggle",e);break;case"embed":case"source":case"link":$e("error",e),$e("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(B in i)if(i.hasOwnProperty(B)&&(l=i[B],l!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ht(e,t,B,l,i,null)}return;default:if(ui(t)){for(K in i)i.hasOwnProperty(K)&&(l=i[K],l!==void 0&&vf(e,t,K,l,i,void 0));return}}for(_ in i)i.hasOwnProperty(_)&&(l=i[_],l!=null&&ht(e,t,_,l,i,null))}function zT(e,t,i,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,d=null,y=null,_=null,A=null,B=null,K=null;for(F in i){var X=i[F];if(i.hasOwnProperty(F)&&X!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":A=X;default:l.hasOwnProperty(F)||ht(e,t,F,null,l,X)}}for(var U in l){var F=l[U];if(X=i[U],l.hasOwnProperty(U)&&(F!=null||X!=null))switch(U){case"type":d=F;break;case"name":c=F;break;case"checked":B=F;break;case"defaultChecked":K=F;break;case"value":y=F;break;case"defaultValue":_=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(s(137,t));break;default:F!==X&&ht(e,t,U,F,l,X)}}$i(e,y,_,A,B,K,d,c);return;case"select":F=y=_=U=null;for(d in i)if(A=i[d],i.hasOwnProperty(d)&&A!=null)switch(d){case"value":break;case"multiple":F=A;default:l.hasOwnProperty(d)||ht(e,t,d,null,l,A)}for(c in l)if(d=l[c],A=i[c],l.hasOwnProperty(c)&&(d!=null||A!=null))switch(c){case"value":U=d;break;case"defaultValue":_=d;break;case"multiple":y=d;default:d!==A&&ht(e,t,c,d,l,A)}t=_,i=y,l=F,U!=null?Zi(e,!!i,U,!1):!!l!=!!i&&(t!=null?Zi(e,!!i,t,!0):Zi(e,!!i,i?[]:"",!1));return;case"textarea":F=U=null;for(_ in i)if(c=i[_],i.hasOwnProperty(_)&&c!=null&&!l.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:ht(e,t,_,null,l,c)}for(y in l)if(c=l[y],d=i[y],l.hasOwnProperty(y)&&(c!=null||d!=null))switch(y){case"value":U=c;break;case"defaultValue":F=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(s(91));break;default:c!==d&&ht(e,t,y,c,l,d)}ar(e,U,F);return;case"option":for(var be in i)U=i[be],i.hasOwnProperty(be)&&U!=null&&!l.hasOwnProperty(be)&&(be==="selected"?e.selected=!1:ht(e,t,be,null,l,U));for(A in l)U=l[A],F=i[A],l.hasOwnProperty(A)&&U!==F&&(U!=null||F!=null)&&(A==="selected"?e.selected=U&&typeof U!="function"&&typeof U!="symbol":ht(e,t,A,U,l,F));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Oe in i)U=i[Oe],i.hasOwnProperty(Oe)&&U!=null&&!l.hasOwnProperty(Oe)&&ht(e,t,Oe,null,l,U);for(B in l)if(U=l[B],F=i[B],l.hasOwnProperty(B)&&U!==F&&(U!=null||F!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(s(137,t));break;default:ht(e,t,B,U,l,F)}return;default:if(ui(t)){for(var mt in i)U=i[mt],i.hasOwnProperty(mt)&&U!==void 0&&!l.hasOwnProperty(mt)&&vf(e,t,mt,void 0,l,U);for(K in l)U=l[K],F=i[K],!l.hasOwnProperty(K)||U===F||U===void 0&&F===void 0||vf(e,t,K,U,l,F);return}}for(var R in i)U=i[R],i.hasOwnProperty(R)&&U!=null&&!l.hasOwnProperty(R)&&ht(e,t,R,null,l,U);for(X in l)U=l[X],F=i[X],!l.hasOwnProperty(X)||U===F||U==null&&F==null||ht(e,t,X,U,l,F)}function Lb(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function IT(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,i=performance.getEntriesByType("resource"),l=0;l<i.length;l++){var c=i[l],d=c.transferSize,y=c.initiatorType,_=c.duration;if(d&&_&&Lb(y)){for(y=0,_=c.responseEnd,l+=1;l<i.length;l++){var A=i[l],B=A.startTime;if(B>_)break;var K=A.transferSize,X=A.initiatorType;K&&Lb(X)&&(A=A.responseEnd,y+=K*(A<_?1:(_-B)/(A-B)))}if(--l,t+=8*(d+y)/(c.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var _f=null,kf=null;function gs(e){return e.nodeType===9?e:e.ownerDocument}function zb(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ib(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function xf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Sf=null;function BT(){var e=window.event;return e&&e.type==="popstate"?e===Sf?!1:(Sf=e,!0):(Sf=null,!1)}var Bb=typeof setTimeout=="function"?setTimeout:void 0,UT=typeof clearTimeout=="function"?clearTimeout:void 0,Ub=typeof Promise=="function"?Promise:void 0,HT=typeof queueMicrotask=="function"?queueMicrotask:typeof Ub<"u"?function(e){return Ub.resolve(null).then(e).catch(qT)}:Bb;function qT(e){setTimeout(function(){throw e})}function pa(e){return e==="head"}function Hb(e,t){var i=t,l=0;do{var c=i.nextSibling;if(e.removeChild(i),c&&c.nodeType===8)if(i=c.data,i==="/$"||i==="/&"){if(l===0){e.removeChild(c),Dr(t);return}l--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")l++;else if(i==="html")Ul(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,Ul(i);for(var d=i.firstChild;d;){var y=d.nextSibling,_=d.nodeName;d[en]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&d.rel.toLowerCase()==="stylesheet"||i.removeChild(d),d=y}}else i==="body"&&Ul(e.ownerDocument.body);i=c}while(i);Dr(t)}function qb(e,t){var i=e;e=0;do{var l=i.nextSibling;if(i.nodeType===1?t?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(t?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),l&&l.nodeType===8)if(i=l.data,i==="/$"){if(e===0)break;e--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||e++;i=l}while(i)}function wf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var i=t;switch(t=t.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":wf(i),Sn(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function FT(e,t,i,l){for(;e.nodeType===1;){var c=i;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[en])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=ii(e.nextSibling),e===null)break}return null}function GT(e,t,i){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=ii(e.nextSibling),e===null))return null;return e}function Fb(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ii(e.nextSibling),e===null))return null;return e}function Tf(e){return e.data==="$?"||e.data==="$~"}function Af(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function jT(e,t){var i=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||i.readyState!=="loading")t();else{var l=function(){t(),i.removeEventListener("DOMContentLoaded",l)};i.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function ii(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Nf=null;function Gb(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"||i==="/&"){if(t===0)return ii(e.nextSibling);t--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||t++}e=e.nextSibling}return null}function jb(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(t===0)return e;t--}else i!=="/$"&&i!=="/&"||t++}e=e.previousSibling}return null}function Yb(e,t,i){switch(t=gs(i),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Ul(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Sn(e)}var ai=new Map,Pb=new Set;function hs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var qi=P.d;P.d={f:YT,r:PT,D:KT,C:VT,L:$T,m:ZT,X:QT,S:XT,M:JT};function YT(){var e=qi.f(),t=ls();return e||t}function PT(e){var t=si(e);t!==null&&t.tag===5&&t.type==="form"?sm(t):qi.r(e)}var Or=typeof document>"u"?null:document;function Kb(e,t,i){var l=Or;if(l&&typeof t=="string"&&t){var c=wn(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof i=="string"&&(c+='[crossorigin="'+i+'"]'),Pb.has(c)||(Pb.add(c),e={rel:e,crossOrigin:i,href:t},l.querySelector(c)===null&&(t=l.createElement("link"),rn(t,"link",e),we(t),l.head.appendChild(t)))}}function KT(e){qi.D(e),Kb("dns-prefetch",e,null)}function VT(e,t){qi.C(e,t),Kb("preconnect",e,t)}function $T(e,t,i){qi.L(e,t,i);var l=Or;if(l&&e&&t){var c='link[rel="preload"][as="'+wn(t)+'"]';t==="image"&&i&&i.imageSrcSet?(c+='[imagesrcset="'+wn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(c+='[imagesizes="'+wn(i.imageSizes)+'"]')):c+='[href="'+wn(e)+'"]';var d=c;switch(t){case"style":d=Mr(e);break;case"script":d=Rr(e)}ai.has(d)||(e=E({rel:"preload",href:t==="image"&&i&&i.imageSrcSet?void 0:e,as:t},i),ai.set(d,e),l.querySelector(c)!==null||t==="style"&&l.querySelector(Hl(d))||t==="script"&&l.querySelector(ql(d))||(t=l.createElement("link"),rn(t,"link",e),we(t),l.head.appendChild(t)))}}function ZT(e,t){qi.m(e,t);var i=Or;if(i&&e){var l=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+wn(l)+'"][href="'+wn(e)+'"]',d=c;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Rr(e)}if(!ai.has(d)&&(e=E({rel:"modulepreload",href:e},t),ai.set(d,e),i.querySelector(c)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(ql(d)))return}l=i.createElement("link"),rn(l,"link",e),we(l),i.head.appendChild(l)}}}function XT(e,t,i){qi.S(e,t,i);var l=Or;if(l&&e){var c=Ge(l).hoistableStyles,d=Mr(e);t=t||"default";var y=c.get(d);if(!y){var _={loading:0,preload:null};if(y=l.querySelector(Hl(d)))_.loading=5;else{e=E({rel:"stylesheet",href:e,"data-precedence":t},i),(i=ai.get(d))&&Cf(e,i);var A=y=l.createElement("link");we(A),rn(A,"link",e),A._p=new Promise(function(B,K){A.onload=B,A.onerror=K}),A.addEventListener("load",function(){_.loading|=1}),A.addEventListener("error",function(){_.loading|=2}),_.loading|=4,ms(y,t,l)}y={type:"stylesheet",instance:y,count:1,state:_},c.set(d,y)}}}function QT(e,t){qi.X(e,t);var i=Or;if(i&&e){var l=Ge(i).hoistableScripts,c=Rr(e),d=l.get(c);d||(d=i.querySelector(ql(c)),d||(e=E({src:e,async:!0},t),(t=ai.get(c))&&Of(e,t),d=i.createElement("script"),we(d),rn(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(c,d))}}function JT(e,t){qi.M(e,t);var i=Or;if(i&&e){var l=Ge(i).hoistableScripts,c=Rr(e),d=l.get(c);d||(d=i.querySelector(ql(c)),d||(e=E({src:e,async:!0,type:"module"},t),(t=ai.get(c))&&Of(e,t),d=i.createElement("script"),we(d),rn(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(c,d))}}function Vb(e,t,i,l){var c=(c=Me.current)?hs(c):null;if(!c)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(t=Mr(i.href),i=Ge(c).hoistableStyles,l=i.get(t),l||(l={type:"style",instance:null,count:0,state:null},i.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=Mr(i.href);var d=Ge(c).hoistableStyles,y=d.get(e);if(y||(c=c.ownerDocument||c,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,y),(d=c.querySelector(Hl(e)))&&!d._p&&(y.instance=d,y.state.loading=5),ai.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},ai.set(e,i),d||WT(c,e,i,y.state))),t&&l===null)throw Error(s(528,""));return y}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=i.async,i=i.src,typeof i=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Rr(i),i=Ge(c).hoistableScripts,l=i.get(t),l||(l={type:"script",instance:null,count:0,state:null},i.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Mr(e){return'href="'+wn(e)+'"'}function Hl(e){return'link[rel="stylesheet"]['+e+"]"}function $b(e){return E({},e,{"data-precedence":e.precedence,precedence:null})}function WT(e,t,i,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),rn(t,"link",i),we(t),e.head.appendChild(t))}function Rr(e){return'[src="'+wn(e)+'"]'}function ql(e){return"script[async]"+e}function Zb(e,t,i){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+wn(i.href)+'"]');if(l)return t.instance=l,we(l),l;var c=E({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),we(l),rn(l,"style",c),ms(l,i.precedence,e),t.instance=l;case"stylesheet":c=Mr(i.href);var d=e.querySelector(Hl(c));if(d)return t.state.loading|=4,t.instance=d,we(d),d;l=$b(i),(c=ai.get(c))&&Cf(l,c),d=(e.ownerDocument||e).createElement("link"),we(d);var y=d;return y._p=new Promise(function(_,A){y.onload=_,y.onerror=A}),rn(d,"link",l),t.state.loading|=4,ms(d,i.precedence,e),t.instance=d;case"script":return d=Rr(i.src),(c=e.querySelector(ql(d)))?(t.instance=c,we(c),c):(l=i,(c=ai.get(d))&&(l=E({},i),Of(l,c)),e=e.ownerDocument||e,c=e.createElement("script"),we(c),rn(c,"link",l),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,ms(l,i.precedence,e));return t.instance}function ms(e,t,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=l.length?l[l.length-1]:null,d=c,y=0;y<l.length;y++){var _=l[y];if(_.dataset.precedence===t)d=_;else if(d!==c)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=i.nodeType===9?i.head:i,t.insertBefore(e,t.firstChild))}function Cf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Of(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var bs=null;function Xb(e,t,i){if(bs===null){var l=new Map,c=bs=new Map;c.set(i,l)}else c=bs,l=c.get(i),l||(l=new Map,c.set(i,l));if(l.has(e))return l;for(l.set(e,null),i=i.getElementsByTagName(e),c=0;c<i.length;c++){var d=i[c];if(!(d[en]||d[nt]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var y=d.getAttribute(t)||"";y=e+y;var _=l.get(y);_?_.push(d):l.set(y,[d])}}return l}function Qb(e,t,i){e=e.ownerDocument||e,e.head.insertBefore(i,t==="title"?e.querySelector("head > title"):null)}function eA(e,t,i){if(i===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Jb(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function tA(e,t,i,l){if(i.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var c=Mr(l.href),d=t.querySelector(Hl(c));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ys.bind(e),t.then(e,e)),i.state.loading|=4,i.instance=d,we(d);return}d=t.ownerDocument||t,l=$b(l),(c=ai.get(c))&&Cf(l,c),d=d.createElement("link"),we(d);var y=d;y._p=new Promise(function(_,A){y.onload=_,y.onerror=A}),rn(d,"link",l),i.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,t),(t=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=ys.bind(e),t.addEventListener("load",i),t.addEventListener("error",i))}}var Mf=0;function nA(e,t){return e.stylesheets&&e.count===0&&vs(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var l=setTimeout(function(){if(e.stylesheets&&vs(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+t);0<e.imgBytes&&Mf===0&&(Mf=62500*IT());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&vs(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>Mf?50:800)+t);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(c)}}:null}function ys(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)vs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Es=null;function vs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Es=new Map,t.forEach(iA,e),Es=null,ys.call(e))}function iA(e,t){if(!(t.state.loading&4)){var i=Es.get(e);if(i)var l=i.get(null);else{i=new Map,Es.set(e,i);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<c.length;d++){var y=c[d];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(i.set(y.dataset.precedence,y),l=y)}l&&i.set(null,l)}c=t.instance,y=c.getAttribute("data-precedence"),d=i.get(y)||l,d===l&&i.set(null,c),i.set(y,c),this.count++,l=ys.bind(this),c.addEventListener("load",l),c.addEventListener("error",l),d?d.parentNode.insertBefore(c,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var Fl={$$typeof:J,Provider:null,Consumer:null,_currentValue:ve,_currentValue2:ve,_threadCount:0};function aA(e,t,i,l,c,d,y,_,A){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=tt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tt(0),this.hiddenUpdates=tt(null),this.identifierPrefix=l,this.onUncaughtError=c,this.onCaughtError=d,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function Wb(e,t,i,l,c,d,y,_,A,B,K,X){return e=new aA(e,t,i,y,A,B,K,X,_),t=1,d===!0&&(t|=24),d=Gn(3,null,null,t),e.current=d,d.stateNode=e,t=cu(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:l,isDehydrated:i,cache:t},pu(d),e}function ey(e){return e?(e=cr,e):cr}function ty(e,t,i,l,c,d){c=ey(c),l.context===null?l.context=c:l.pendingContext=c,l=na(t),l.payload={element:i},d=d===void 0?null:d,d!==null&&(l.callback=d),i=ia(e,l,t),i!==null&&(Rn(i,e,t),El(i,e,t))}function ny(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function Rf(e,t){ny(e,t),(e=e.alternate)&&ny(e,t)}function iy(e){if(e.tag===13||e.tag===31){var t=Da(e,67108864);t!==null&&Rn(t,e,67108864),Rf(e,67108864)}}function ay(e){if(e.tag===13||e.tag===31){var t=Vn();t=qn(t);var i=Da(e,t);i!==null&&Rn(i,e,t),Rf(e,t)}}var _s=!0;function rA(e,t,i,l){var c=j.T;j.T=null;var d=P.p;try{P.p=2,Df(e,t,i,l)}finally{P.p=d,j.T=c}}function lA(e,t,i,l){var c=j.T;j.T=null;var d=P.p;try{P.p=8,Df(e,t,i,l)}finally{P.p=d,j.T=c}}function Df(e,t,i,l){if(_s){var c=Lf(l);if(c===null)Ef(e,t,l,ks,i),ly(e,l);else if(sA(c,e,t,i,l))l.stopPropagation();else if(ly(e,l),t&4&&-1<oA.indexOf(e)){for(;c!==null;){var d=si(c);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var y=N(d.pendingLanes);if(y!==0){var _=d;for(_.pendingLanes|=2,_.entangledLanes|=2;y;){var A=1<<31-kt(y);_.entanglements[1]|=A,y&=~A}vi(d),(lt&6)===0&&(as=Ut()+500,zl(0))}}break;case 31:case 13:_=Da(d,2),_!==null&&Rn(_,d,2),ls(),Rf(d,2)}if(d=Lf(l),d===null&&Ef(e,t,l,ks,i),d===c)break;c=d}c!==null&&l.stopPropagation()}else Ef(e,t,l,null,i)}}function Lf(e){return e=it(e),zf(e)}var ks=null;function zf(e){if(ks=null,e=oi(e),e!==null){var t=u(e);if(t===null)e=null;else{var i=t.tag;if(i===13){if(e=g(t),e!==null)return e;e=null}else if(i===31){if(e=h(t),e!==null)return e;e=null}else if(i===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ks=e,null}function ry(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Y()){case ae:return 2;case Te:return 8;case Ie:case We:return 32;case $t:return 268435456;default:return 32}default:return 32}}var If=!1,ga=null,ha=null,ma=null,Gl=new Map,jl=new Map,ba=[],oA="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 ly(e,t){switch(e){case"focusin":case"focusout":ga=null;break;case"dragenter":case"dragleave":ha=null;break;case"mouseover":case"mouseout":ma=null;break;case"pointerover":case"pointerout":Gl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":jl.delete(t.pointerId)}}function Yl(e,t,i,l,c,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:i,eventSystemFlags:l,nativeEvent:d,targetContainers:[c]},t!==null&&(t=si(t),t!==null&&iy(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function sA(e,t,i,l,c){switch(t){case"focusin":return ga=Yl(ga,e,t,i,l,c),!0;case"dragenter":return ha=Yl(ha,e,t,i,l,c),!0;case"mouseover":return ma=Yl(ma,e,t,i,l,c),!0;case"pointerover":var d=c.pointerId;return Gl.set(d,Yl(Gl.get(d)||null,e,t,i,l,c)),!0;case"gotpointercapture":return d=c.pointerId,jl.set(d,Yl(jl.get(d)||null,e,t,i,l,c)),!0}return!1}function oy(e){var t=oi(e.target);if(t!==null){var i=u(t);if(i!==null){if(t=i.tag,t===13){if(t=g(i),t!==null){e.blockedOn=t,Ta(e.priority,function(){ay(i)});return}}else if(t===31){if(t=h(i),t!==null){e.blockedOn=t,Ta(e.priority,function(){ay(i)});return}}else if(t===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function xs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var i=Lf(e.nativeEvent);if(i===null){i=e.nativeEvent;var l=new i.constructor(i.type,i);qe=l,i.target.dispatchEvent(l),qe=null}else return t=si(i),t!==null&&iy(t),e.blockedOn=i,!1;t.shift()}return!0}function sy(e,t,i){xs(e)&&i.delete(t)}function cA(){If=!1,ga!==null&&xs(ga)&&(ga=null),ha!==null&&xs(ha)&&(ha=null),ma!==null&&xs(ma)&&(ma=null),Gl.forEach(sy),jl.forEach(sy)}function Ss(e,t){e.blockedOn===t&&(e.blockedOn=null,If||(If=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,cA)))}var ws=null;function cy(e){ws!==e&&(ws=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){ws===e&&(ws=null);for(var t=0;t<e.length;t+=3){var i=e[t],l=e[t+1],c=e[t+2];if(typeof l!="function"){if(zf(l||i)===null)continue;break}var d=si(i);d!==null&&(e.splice(t,3),t-=3,Du(d,{pending:!0,data:c,method:i.method,action:l},l,c))}}))}function Dr(e){function t(A){return Ss(A,e)}ga!==null&&Ss(ga,e),ha!==null&&Ss(ha,e),ma!==null&&Ss(ma,e),Gl.forEach(t),jl.forEach(t);for(var i=0;i<ba.length;i++){var l=ba[i];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ba.length&&(i=ba[0],i.blockedOn===null);)oy(i),i.blockedOn===null&&ba.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(l=0;l<i.length;l+=3){var c=i[l],d=i[l+1],y=c[_t]||null;if(typeof d=="function")y||cy(i);else if(y){var _=null;if(d&&d.hasAttribute("formAction")){if(c=d,y=d[_t]||null)_=y.formAction;else if(zf(c)!==null)continue}else _=y.action;typeof _=="function"?i[l+1]=_:(i.splice(l,3),l-=3),cy(i)}}}function uy(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(y){return c=y})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),l||setTimeout(i,20)}function i(){if(!l&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(i,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function Bf(e){this._internalRoot=e}Ts.prototype.render=Bf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var i=t.current,l=Vn();ty(i,l,e,t,null,null)},Ts.prototype.unmount=Bf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ty(e.current,2,null,e,null,null),ls(),t[li]=null}};function Ts(e){this._internalRoot=e}Ts.prototype.unstable_scheduleHydration=function(e){if(e){var t=Pi();e={blockedOn:null,target:e,priority:t};for(var i=0;i<ba.length&&t!==0&&t<ba[i].priority;i++);ba.splice(i,0,e),i===0&&oy(e)}};var fy=r.version;if(fy!=="19.2.7")throw Error(s(527,fy,"19.2.7"));P.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=b(t),e=e!==null?m(e):null,e=e===null?null:e.stateNode,e};var uA={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var As=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!As.isDisabled&&As.supportsFiber)try{pn=As.inject(uA),Nt=As}catch{}}return Ir.createRoot=function(e,t){if(!f(e))throw Error(s(299));var i=!1,l="",c=ym,d=Em,y=vm;return t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(y=t.onRecoverableError)),t=Wb(e,1,!1,null,null,i,l,null,c,d,y,uy),e[li]=t.current,yf(e),new Bf(t)},Ir.hydrateRoot=function(e,t,i){if(!f(e))throw Error(s(299));var l=!1,c="",d=ym,y=Em,_=vm,A=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(y=i.onCaughtError),i.onRecoverableError!==void 0&&(_=i.onRecoverableError),i.formState!==void 0&&(A=i.formState)),t=Wb(e,1,!0,t,i??null,l,c,A,d,y,_,uy),t.context=ey(null),i=t.current,l=Vn(),l=qn(l),c=na(l),c.callback=null,ia(i,c,l),i=l,t.current.lanes=i,he(t,i),vi(t),e[li]=t.current,yf(e),new Ts(t)},Ir.version="19.2.7",Ir}var $f;function Ey(){if($f)return Os.exports;$f=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Os.exports=yy(),Os.exports}var vy=Ey();function Zf(n){var a,r,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n)){var s=n.length;for(a=0;a<s;a++)n[a]&&(r=Zf(n[a]))&&(o&&(o+=" "),o+=r)}else for(r in n)n[r]&&(o&&(o+=" "),o+=r);return o}function Fi(){for(var n,a,r=0,o="",s=arguments.length;r<s;r++)(n=arguments[r])&&(a=Zf(n))&&(o&&(o+=" "),o+=a);return o}var ye=Ls(),_y=Kf();function ky({className:n,primaryColor:a="#0F766E",style:r}){return L.jsxs("svg",{className:n,style:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 320",role:"img","aria-labelledby":"title desc",children:[L.jsxs("g",{fill:"none",stroke:a,strokeWidth:"34",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M60 244 L132 88 Q142 66 160 66 Q178 66 188 88 L260 244"}),L.jsx("path",{d:"M60 244 H108"})]}),L.jsx("circle",{cx:"160",cy:"226",r:"18",fill:a})]})}function xy({className:n,primaryColor:a="#0F766E",secondaryColor:r="#0F1B3D"}){return L.jsx("svg",{className:n,viewBox:"0 0 1000 320",xmlns:"http://www.w3.org/2000/svg",children:L.jsxs("g",{id:"Group",children:[L.jsx("path",{id:"Path",fill:"none",stroke:a,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 90 235 L 175 78 C 182.333333 64.666667 193.333333 58 208 58 C 222.666667 58 233.666667 64.666667 241 78 L 326 235"}),L.jsx("path",{id:"path1",fill:"none",stroke:a,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 91 235 L 142 235"}),L.jsx("path",{id:"path2",fill:a,stroke:"none",d:"M 203 223 C 203 232.38884 195.38884 240 186 240 C 176.61116 240 169 232.38884 169 223 C 169 213.61116 176.61116 206 186 206 C 195.38884 206 203 213.61116 203 223 Z"}),L.jsx("path",{id:"path3",fill:"none",stroke:r,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 365 62 L 365 238"}),L.jsx("path",{id:"path4",fill:"none",stroke:r,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 365 168 L 458 84"}),L.jsx("path",{id:"path5",fill:"none",stroke:r,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 398 139 L 468 238"}),L.jsx("path",{id:"path6",fill:"none",stroke:r,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 520 118 L 520 238"}),L.jsx("path",{id:"path7",fill:a,stroke:"none",d:"M 536 72 C 536 80.836548 528.836548 88 520 88 C 511.163452 88 504 80.836548 504 72 C 504 63.163452 511.163452 56 520 56 C 528.836548 56 536 63.163452 536 72 Z"}),L.jsx("path",{id:"path8",fill:"none",stroke:r,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 598 62 L 598 205 C 598 227 608 238 628 238 L 650 238"}),L.jsx("path",{id:"path9",fill:"none",stroke:r,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 710 118 L 710 238"}),L.jsx("path",{id:"path10",fill:a,stroke:"none",d:"M 726 72 C 726 80.836548 718.836548 88 710 88 C 701.163452 88 694 80.836548 694 72 C 694 63.163452 701.163452 56 710 56 C 718.836548 56 726 63.163452 726 72 Z"}),L.jsx("path",{id:"path11",fill:"none",stroke:a,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 921 178 C 921 214.45079 891.450806 244 855 244 C 818.549194 244 789 214.45079 789 178 C 789 141.54921 818.549194 112 855 112 C 891.450806 112 921 141.54921 921 178 Z"})]})})}function Is({variant:n="mark",className:a}){return n==="wordmark"?L.jsx(xy,{className:a}):L.jsx(ky,{className:a})}function Pl(n){return L.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...n,children:L.jsx("path",{d:"M10 2.5 11.3 6l3.5 1.3-3.5 1.2L10 12l-1.3-3.5-3.5-1.2L8.7 6 10 2.5ZM15.5 11.5l.7 1.8 1.8.7-1.8.7-.7 1.8-.7-1.8-1.8-.7 1.8-.7.7-1.8ZM4.8 11.8l.7 1.7 1.7.7-1.7.6-.7 1.8-.7-1.8-1.7-.6 1.7-.7.7-1.7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}function Sy(n){return L.jsxs("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...n,children:[L.jsx("path",{d:"M17.2 2.8 8.8 11.2",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),L.jsx("path",{d:"m17.2 2.8-5.4 15-3-6.6-6.6-3 15-5.4Z",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]})}function wy(n){return L.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...n,children:L.jsx("path",{d:"m5.5 5.5 9 9M14.5 5.5l-9 9",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round"})})}function Ty(n){return L.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...n,children:L.jsx("path",{d:"M7.5 3.8h5M4.5 6.2h11M6 6.2l.7 10h6.6l.7-10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function Ay(n){return L.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...n,children:L.jsx("path",{d:"M6.8 8.5v8M6.8 8.5H4.2c-.8 0-1.4.6-1.4 1.4v5.2c0 .8.6 1.4 1.4 1.4h2.6M6.8 8.5l3.7-5.2c.7-1 2.2-.5 2.2.7v3.1h2.6c1.1 0 2 .9 1.8 2l-.8 5.6c-.1 1-1 1.8-2 1.8H6.8",stroke:"currentColor",strokeWidth:"1.45",strokeLinecap:"round",strokeLinejoin:"round"})})}function Ny(n){return L.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...n,children:L.jsx("path",{d:"M13.2 11.5v-8M13.2 11.5h2.6c.8 0 1.4-.6 1.4-1.4V4.9c0-.8-.6-1.4-1.4-1.4h-2.6M13.2 11.5l-3.7 5.2c-.7 1-2.2.5-2.2-.7v-3.1H4.7c-1.1 0-2-.9-1.8-2l.8-5.6c.1-1 1-1.8 2-1.8h7.5",stroke:"currentColor",strokeWidth:"1.45",strokeLinecap:"round",strokeLinejoin:"round"})})}function Cy(n){return L.jsxs("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...n,children:[L.jsx("circle",{cx:"10",cy:"10",r:"3.2",stroke:"currentColor",strokeWidth:"1.5"}),L.jsx("path",{d:"M10 2.2v1.5M10 16.3v1.5M2.2 10h1.5M16.3 10h1.5M4.5 4.5l1.1 1.1M14.4 14.4l1.1 1.1M15.5 4.5l-1.1 1.1M5.6 14.4l-1.1 1.1",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}function Oy(n){return L.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...n,children:L.jsx("path",{d:"M16.7 12.3A6.8 6.8 0 0 1 7.7 3.3a6.8 6.8 0 1 0 9 9Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function gA(){}function hA(){}function My(n,a){const r={};return(n[n.length-1]===""?[...n,""]:n).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Ry=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Dy=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ly={};function Xf(n,a){return(Ly.jsx?Dy:Ry).test(n)}const zy=/[ \t\n\f\r]/g;function Iy(n){return typeof n=="object"?n.type==="text"?Qf(n.value):!1:Qf(n)}function Qf(n){return n.replace(zy,"")===""}class Br{constructor(a,r,o){this.normal=r,this.property=a,o&&(this.space=o)}}Br.prototype.normal={},Br.prototype.property={},Br.prototype.space=void 0;function Jf(n,a){const r={},o={};for(const s of n)Object.assign(r,s.property),Object.assign(o,s.normal);return new Br(r,o,a)}function Bs(n){return n.toLowerCase()}class _n{constructor(a,r){this.attribute=r,this.property=a}}_n.prototype.attribute="",_n.prototype.booleanish=!1,_n.prototype.boolean=!1,_n.prototype.commaOrSpaceSeparated=!1,_n.prototype.commaSeparated=!1,_n.prototype.defined=!1,_n.prototype.mustUseProperty=!1,_n.prototype.number=!1,_n.prototype.overloadedBoolean=!1,_n.prototype.property="",_n.prototype.spaceSeparated=!1,_n.prototype.space=void 0;let By=0;const Le=va(),It=va(),Us=va(),ie=va(),bt=va(),Ea=va(),Dn=va();function va(){return 2**++By}const Hs=Object.freeze(Object.defineProperty({__proto__:null,boolean:Le,booleanish:It,commaOrSpaceSeparated:Dn,commaSeparated:Ea,number:ie,overloadedBoolean:Us,spaceSeparated:bt},Symbol.toStringTag,{value:"Module"})),qs=Object.keys(Hs);class Fs extends _n{constructor(a,r,o,s){let f=-1;if(super(a,r),Wf(this,"space",s),typeof o=="number")for(;++f<qs.length;){const u=qs[f];Wf(this,qs[f],(o&Hs[u])===Hs[u])}}}Fs.prototype.defined=!0;function Wf(n,a,r){r&&(n[a]=r)}function Ka(n){const a={},r={};for(const[o,s]of Object.entries(n.properties)){const f=new Fs(o,n.transform(n.attributes||{},o),s,n.space);n.mustUseProperty&&n.mustUseProperty.includes(o)&&(f.mustUseProperty=!0),a[o]=f,r[Bs(o)]=o,r[Bs(f.attribute)]=o}return new Br(a,r,n.space)}const ed=Ka({properties:{ariaActiveDescendant:null,ariaAtomic:It,ariaAutoComplete:null,ariaBusy:It,ariaChecked:It,ariaColCount:ie,ariaColIndex:ie,ariaColSpan:ie,ariaControls:bt,ariaCurrent:null,ariaDescribedBy:bt,ariaDetails:null,ariaDisabled:It,ariaDropEffect:bt,ariaErrorMessage:null,ariaExpanded:It,ariaFlowTo:bt,ariaGrabbed:It,ariaHasPopup:null,ariaHidden:It,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:bt,ariaLevel:ie,ariaLive:null,ariaModal:It,ariaMultiLine:It,ariaMultiSelectable:It,ariaOrientation:null,ariaOwns:bt,ariaPlaceholder:null,ariaPosInSet:ie,ariaPressed:It,ariaReadOnly:It,ariaRelevant:null,ariaRequired:It,ariaRoleDescription:bt,ariaRowCount:ie,ariaRowIndex:ie,ariaRowSpan:ie,ariaSelected:It,ariaSetSize:ie,ariaSort:null,ariaValueMax:ie,ariaValueMin:ie,ariaValueNow:ie,ariaValueText:null,role:null},transform(n,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function td(n,a){return a in n?n[a]:a}function nd(n,a){return td(n,a.toLowerCase())}const Uy=Ka({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ea,acceptCharset:bt,accessKey:bt,action:null,allow:null,allowFullScreen:Le,allowPaymentRequest:Le,allowUserMedia:Le,alpha:Le,alt:null,as:null,async:Le,autoCapitalize:null,autoComplete:bt,autoFocus:Le,autoPlay:Le,blocking:bt,capture:null,charSet:null,checked:Le,cite:null,className:bt,closedBy:null,colorSpace:null,cols:ie,colSpan:ie,command:null,commandFor:null,content:null,contentEditable:It,controls:Le,controlsList:bt,coords:ie|Ea,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Le,defer:Le,dir:null,dirName:null,disabled:Le,download:Us,draggable:It,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Le,formTarget:null,headers:bt,height:ie,hidden:Us,high:ie,href:null,hrefLang:null,htmlFor:bt,httpEquiv:bt,id:null,imageSizes:null,imageSrcSet:null,inert:Le,inputMode:null,integrity:null,is:null,isMap:Le,itemId:null,itemProp:bt,itemRef:bt,itemScope:Le,itemType:bt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Le,low:ie,manifest:null,max:null,maxLength:ie,media:null,method:null,min:null,minLength:ie,multiple:Le,muted:Le,name:null,nonce:null,noModule:Le,noValidate:Le,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:Le,optimum:ie,pattern:null,ping:bt,placeholder:null,playsInline:Le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Le,referrerPolicy:null,rel:bt,required:Le,reversed:Le,rows:ie,rowSpan:ie,sandbox:bt,scope:null,scoped:Le,seamless:Le,selected:Le,shadowRootClonable:Le,shadowRootCustomElementRegistry:Le,shadowRootDelegatesFocus:Le,shadowRootMode:null,shadowRootSerializable:Le,shape:null,size:ie,sizes:null,slot:null,span:ie,spellCheck:It,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ie,step:null,style:null,tabIndex:ie,target:null,title:null,translate:null,type:null,typeMustMatch:Le,useMap:null,value:It,width:ie,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:bt,axis:null,background:null,bgColor:null,border:ie,borderColor:null,bottomMargin:ie,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Le,declare:Le,event:null,face:null,frame:null,frameBorder:null,hSpace:ie,leftMargin:ie,link:null,longDesc:null,lowSrc:null,marginHeight:ie,marginWidth:ie,noResize:Le,noHref:Le,noShade:Le,noWrap:Le,object:null,profile:null,prompt:null,rev:null,rightMargin:ie,rules:null,scheme:null,scrolling:It,standby:null,summary:null,text:null,topMargin:ie,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ie,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Le,disablePictureInPicture:Le,disableRemotePlayback:Le,exportParts:Ea,part:bt,prefix:null,property:null,results:ie,security:null,unselectable:null},space:"html",transform:nd}),Hy=Ka({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",maskType:"mask-type",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:Dn,accentHeight:ie,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ie,amplitude:ie,arabicForm:null,ascent:ie,attributeName:null,attributeType:null,azimuth:ie,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ie,by:null,calcMode:null,capHeight:ie,className:bt,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:ie,diffuseConstant:ie,direction:null,display:null,dur:null,divisor:ie,dominantBaseline:null,download:Le,dx:null,dy:null,edgeMode:null,editable:null,elevation:ie,enableBackground:null,end:null,event:null,exponent:ie,externalResourcesRequired:null,fill:null,fillOpacity:ie,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:Ea,g2:Ea,glyphName:Ea,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ie,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ie,horizOriginX:ie,horizOriginY:ie,id:null,ideographic:ie,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ie,k:ie,k1:ie,k2:ie,k3:ie,k4:ie,kernelMatrix:Dn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ie,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ie,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:ie,overlineThickness:ie,paintOrder:null,panose1:null,path:null,pathLength:ie,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:bt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ie,pointsAtY:ie,pointsAtZ:ie,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Dn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Dn,rev:Dn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Dn,requiredFeatures:Dn,requiredFonts:Dn,requiredFormats:Dn,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:ie,specularExponent:ie,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ie,strikethroughThickness:ie,string:null,stroke:null,strokeDashArray:Dn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ie,strokeOpacity:ie,strokeWidth:null,style:null,surfaceScale:ie,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Dn,tabIndex:ie,tableValues:null,target:null,targetX:ie,targetY:ie,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Dn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ie,underlineThickness:ie,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ie,values:null,vAlphabetic:ie,vMathematical:ie,vectorEffect:null,vHanging:ie,vIdeographic:ie,version:null,vertAdvY:ie,vertOriginX:ie,vertOriginY:ie,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ie,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:td}),id=Ka({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,a){return"xlink:"+a.slice(5).toLowerCase()}}),ad=Ka({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:nd}),rd=Ka({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,a){return"xml:"+a.slice(3).toLowerCase()}}),qy={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"},Fy=/[A-Z]/g,ld=/-[a-z]/g,Gy=/^data[-\w.:]+$/i;function jy(n,a){const r=Bs(a);let o=a,s=_n;if(r in n.normal)return n.property[n.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Gy.test(a)){if(a.charAt(4)==="-"){const f=a.slice(5).replace(ld,Py);o="data"+f.charAt(0).toUpperCase()+f.slice(1)}else{const f=a.slice(4);if(!ld.test(f)){let u=f.replace(Fy,Yy);u.charAt(0)!=="-"&&(u="-"+u),a="data"+u}}s=Fs}return new s(o,a)}function Yy(n){return"-"+n.toLowerCase()}function Py(n){return n.charAt(1).toUpperCase()}const Ky=Jf([ed,Uy,id,ad,rd],"html"),Gs=Jf([ed,Hy,id,ad,rd],"svg");function Vy(n){return n.join(" ").trim()}var Va={},js,od;function $y(){if(od)return js;od=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,f=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,g=/^\s+|\s+$/g,h=`
10
- `,p="/",b="*",m="",E="comment",v="declaration";function x(M,w){if(typeof M!="string")throw new TypeError("First argument must be a string");if(!M)return[];w=w||{};var q=1,H=1;function J(le){var Q=le.match(a);Q&&(q+=Q.length);var G=le.lastIndexOf(h);H=~G?le.length-G:H+le.length}function te(){var le={line:q,column:H};return function(Q){return Q.position=new D(le),fe(),Q}}function D(le){this.start=le,this.end={line:q,column:H},this.source=w.source}D.prototype.content=M;function ce(le){var Q=new Error(w.source+":"+q+":"+H+": "+le);if(Q.reason=le,Q.filename=w.source,Q.line=q,Q.column=H,Q.source=M,!w.silent)throw Q}function ne(le){var Q=le.exec(M);if(Q){var G=Q[0];return J(G),M=M.slice(G.length),Q}}function fe(){ne(r)}function z(le){var Q;for(le=le||[];Q=oe();)Q!==!1&&le.push(Q);return le}function oe(){var le=te();if(!(p!=M.charAt(0)||b!=M.charAt(1))){for(var Q=2;m!=M.charAt(Q)&&(b!=M.charAt(Q)||p!=M.charAt(Q+1));)++Q;if(Q+=2,m===M.charAt(Q-1))return ce("End of comment missing");var G=M.slice(2,Q-2);return H+=2,J(G),M=M.slice(Q),H+=2,le({type:E,comment:G})}}function re(){var le=te(),Q=ne(o);if(Q){if(oe(),!ne(s))return ce("property missing ':'");var G=ne(f),j=le({type:v,property:C(Q[0].replace(n,m)),value:G?C(G[0].replace(n,m)):m});return ne(u),j}}function ke(){var le=[];z(le);for(var Q;Q=re();)Q!==!1&&(le.push(Q),z(le));return le}return fe(),ke()}function C(M){return M?M.replace(g,m):m}return js=x,js}var sd;function Zy(){if(sd)return Va;sd=1;var n=Va&&Va.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Va,"__esModule",{value:!0}),Va.default=r;const a=n($y());function r(o,s){let f=null;if(!o||typeof o!="string")return f;const u=(0,a.default)(o),g=typeof s=="function";return u.forEach(h=>{if(h.type!=="declaration")return;const{property:p,value:b}=h;g?s(p,b,h):b&&(f=f||{},f[p]=b)}),f}return Va}var Ur={},cd;function Xy(){if(cd)return Ur;cd=1,Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,r=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,f=function(p){return!p||r.test(p)||n.test(p)},u=function(p,b){return b.toUpperCase()},g=function(p,b){return"".concat(b,"-")},h=function(p,b){return b===void 0&&(b={}),f(p)?p:(p=p.toLowerCase(),b.reactCompat?p=p.replace(s,g):p=p.replace(o,g),p.replace(a,u))};return Ur.camelCase=h,Ur}var Hr,ud;function Qy(){if(ud)return Hr;ud=1;var n=Hr&&Hr.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},a=n(Zy()),r=Xy();function o(s,f){var u={};return!s||typeof s!="string"||(0,a.default)(s,function(g,h){g&&h&&(u[(0,r.camelCase)(g,f)]=h)}),u}return o.default=o,Hr=o,Hr}var Jy=Qy();const Wy=Ns(Jy),fd=dd("end"),Ys=dd("start");function dd(n){return a;function a(r){const o=r&&r.position&&r.position[n]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function eE(n){const a=Ys(n),r=fd(n);if(a&&r)return{start:a,end:r}}function qr(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?pd(n.position):"start"in n||"end"in n?pd(n):"line"in n||"column"in n?Ps(n):""}function Ps(n){return gd(n&&n.line)+":"+gd(n&&n.column)}function pd(n){return Ps(n&&n.start)+"-"+Ps(n&&n.end)}function gd(n){return n&&typeof n=="number"?n:1}class on extends Error{constructor(a,r,o){super(),typeof r=="string"&&(o=r,r=void 0);let s="",f={},u=!1;if(r&&("line"in r&&"column"in r?f={place:r}:"start"in r&&"end"in r?f={place:r}:"type"in r?f={ancestors:[r],place:r.position}:f={...r}),typeof a=="string"?s=a:!f.cause&&a&&(u=!0,s=a.message,f.cause=a),!f.ruleId&&!f.source&&typeof o=="string"){const h=o.indexOf(":");h===-1?f.ruleId=o:(f.source=o.slice(0,h),f.ruleId=o.slice(h+1))}if(!f.place&&f.ancestors&&f.ancestors){const h=f.ancestors[f.ancestors.length-1];h&&(f.place=h.position)}const g=f.place&&"start"in f.place?f.place.start:f.place;this.ancestors=f.ancestors||void 0,this.cause=f.cause||void 0,this.column=g?g.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=g?g.line:void 0,this.name=qr(f.place)||"1:1",this.place=f.place||void 0,this.reason=this.message,this.ruleId=f.ruleId||void 0,this.source=f.source||void 0,this.stack=u&&f.cause&&typeof f.cause.stack=="string"?f.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}on.prototype.file="",on.prototype.name="",on.prototype.reason="",on.prototype.message="",on.prototype.stack="",on.prototype.column=void 0,on.prototype.line=void 0,on.prototype.ancestors=void 0,on.prototype.cause=void 0,on.prototype.fatal=void 0,on.prototype.place=void 0,on.prototype.ruleId=void 0,on.prototype.source=void 0;const Ks={}.hasOwnProperty,tE=new Map,nE=/[A-Z]/g,iE=new Set(["table","tbody","thead","tfoot","tr"]),aE=new Set(["td","th"]),hd="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function rE(n,a){if(!a||a.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=a.filePath||void 0;let o;if(a.development){if(typeof a.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=pE(r,a.jsxDEV)}else{if(typeof a.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof a.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");o=dE(r,a.jsx,a.jsxs)}const s={Fragment:a.Fragment,ancestors:[],components:a.components||{},create:o,elementAttributeNameCase:a.elementAttributeNameCase||"react",evaluater:a.createEvaluater?a.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:a.ignoreInvalidStyle||!1,passKeys:a.passKeys!==!1,passNode:a.passNode||!1,schema:a.space==="svg"?Gs:Ky,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},f=md(s,n,void 0);return f&&typeof f!="string"?f:s.create(n,s.Fragment,{children:f||void 0},void 0)}function md(n,a,r){if(a.type==="element")return lE(n,a,r);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return oE(n,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return cE(n,a,r);if(a.type==="mdxjsEsm")return sE(n,a);if(a.type==="root")return uE(n,a,r);if(a.type==="text")return fE(n,a)}function lE(n,a,r){const o=n.schema;let s=o;a.tagName.toLowerCase()==="svg"&&o.space==="html"&&(s=Gs,n.schema=s),n.ancestors.push(a);const f=yd(n,a.tagName,!1),u=gE(n,a);let g=$s(n,a);return iE.has(a.tagName)&&(g=g.filter(function(h){return typeof h=="string"?!Iy(h):!0})),bd(n,u,f,a),Vs(u,g),n.ancestors.pop(),n.schema=o,n.create(a,f,u,r)}function oE(n,a){if(a.data&&a.data.estree&&n.evaluater){const o=a.data.estree.body[0];return o.type,n.evaluater.evaluateExpression(o.expression)}Fr(n,a.position)}function sE(n,a){if(a.data&&a.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(a.data.estree);Fr(n,a.position)}function cE(n,a,r){const o=n.schema;let s=o;a.name==="svg"&&o.space==="html"&&(s=Gs,n.schema=s),n.ancestors.push(a);const f=a.name===null?n.Fragment:yd(n,a.name,!0),u=hE(n,a),g=$s(n,a);return bd(n,u,f,a),Vs(u,g),n.ancestors.pop(),n.schema=o,n.create(a,f,u,r)}function uE(n,a,r){const o={};return Vs(o,$s(n,a)),n.create(a,n.Fragment,o,r)}function fE(n,a){return a.value}function bd(n,a,r,o){typeof r!="string"&&r!==n.Fragment&&n.passNode&&(a.node=o)}function Vs(n,a){if(a.length>0){const r=a.length>1?a:a[0];r&&(n.children=r)}}function dE(n,a,r){return o;function o(s,f,u,g){const p=Array.isArray(u.children)?r:a;return g?p(f,u,g):p(f,u)}}function pE(n,a){return r;function r(o,s,f,u){const g=Array.isArray(f.children),h=Ys(o);return a(s,f,u,g,{columnNumber:h?h.column-1:void 0,fileName:n,lineNumber:h?h.line:void 0},void 0)}}function gE(n,a){const r={};let o,s;for(s in a.properties)if(s!=="children"&&Ks.call(a.properties,s)){const f=mE(n,s,a.properties[s]);if(f){const[u,g]=f;n.tableCellAlignToStyle&&u==="align"&&typeof g=="string"&&aE.has(a.tagName)?o=g:r[u]=g}}if(o){const f=r.style||(r.style={});f[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return r}function hE(n,a){const r={};for(const o of a.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&n.evaluater){const f=o.data.estree.body[0];f.type;const u=f.expression;u.type;const g=u.properties[0];g.type,Object.assign(r,n.evaluater.evaluateExpression(g.argument))}else Fr(n,a.position);else{const s=o.name;let f;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&n.evaluater){const g=o.value.data.estree.body[0];g.type,f=n.evaluater.evaluateExpression(g.expression)}else Fr(n,a.position);else f=o.value===null?!0:o.value;r[s]=f}return r}function $s(n,a){const r=[];let o=-1;const s=n.passKeys?new Map:tE;for(;++o<a.children.length;){const f=a.children[o];let u;if(n.passKeys){const h=f.type==="element"?f.tagName:f.type==="mdxJsxFlowElement"||f.type==="mdxJsxTextElement"?f.name:void 0;if(h){const p=s.get(h)||0;u=h+"-"+p,s.set(h,p+1)}}const g=md(n,f,u);g!==void 0&&r.push(g)}return r}function mE(n,a,r){const o=jy(n.schema,a);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=o.commaSeparated?My(r):Vy(r)),o.property==="style"){let s=typeof r=="object"?r:bE(n,String(r));return n.stylePropertyNameCase==="css"&&(s=yE(s)),["style",s]}return[n.elementAttributeNameCase==="react"&&o.space?qy[o.property]||o.property:o.attribute,r]}}function bE(n,a){try{return Wy(a,{reactCompat:!0})}catch(r){if(n.ignoreInvalidStyle)return{};const o=r,s=new on("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=n.filePath||void 0,s.url=hd+"#cannot-parse-style-attribute",s}}function yd(n,a,r){let o;if(!r)o={type:"Literal",value:a};else if(a.includes(".")){const s=a.split(".");let f=-1,u;for(;++f<s.length;){const g=Xf(s[f])?{type:"Identifier",name:s[f]}:{type:"Literal",value:s[f]};u=u?{type:"MemberExpression",object:u,property:g,computed:!!(f&&g.type==="Literal"),optional:!1}:g}o=u}else o=Xf(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(o.type==="Literal"){const s=o.value;return Ks.call(n.components,s)?n.components[s]:s}if(n.evaluater)return n.evaluater.evaluateExpression(o);Fr(n)}function Fr(n,a){const r=new on("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:a,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=n.filePath||void 0,r.url=hd+"#cannot-handle-mdx-estrees-without-createevaluater",r}function yE(n){const a={};let r;for(r in n)Ks.call(n,r)&&(a[EE(r)]=n[r]);return a}function EE(n){let a=n.replace(nE,vE);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function vE(n){return"-"+n.toLowerCase()}const Zs={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"]},_E={};function Xs(n,a){const r=_E,o=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Ed(n,o,s)}function Ed(n,a,r){if(kE(n)){if("value"in n)return n.type==="html"&&!r?"":n.value;if(a&&"alt"in n&&n.alt)return n.alt;if("children"in n)return vd(n.children,a,r)}return Array.isArray(n)?vd(n,a,r):""}function vd(n,a,r){const o=[];let s=-1;for(;++s<n.length;)o[s]=Ed(n[s],a,r);return o.join("")}function kE(n){return!!(n&&typeof n=="object")}const _d=document.createElement("i");function Qs(n){const a="&"+n+";";_d.innerHTML=a;const r=_d.textContent;return r.charCodeAt(r.length-1)===59&&n!=="semi"||r===a?!1:r}function Ln(n,a,r,o){const s=n.length;let f=0,u;if(a<0?a=-a>s?0:s+a:a=a>s?s:a,r=r>0?r:0,o.length<1e4)u=Array.from(o),u.unshift(a,r),n.splice(...u);else for(r&&n.splice(a,r);f<o.length;)u=o.slice(f,f+1e4),u.unshift(a,0),n.splice(...u),f+=1e4,a+=1e4}function $n(n,a){return n.length>0?(Ln(n,n.length,0,a),n):a}const kd={}.hasOwnProperty;function xd(n){const a={};let r=-1;for(;++r<n.length;)xE(a,n[r]);return a}function xE(n,a){let r;for(r in a){const s=(kd.call(n,r)?n[r]:void 0)||(n[r]={}),f=a[r];let u;if(f)for(u in f){kd.call(s,u)||(s[u]=[]);const g=f[u];SE(s[u],Array.isArray(g)?g:g?[g]:[])}}}function SE(n,a){let r=-1;const o=[];for(;++r<a.length;)(a[r].add==="after"?n:o).push(a[r]);Ln(n,0,0,o)}function Sd(n,a){const r=Number.parseInt(n,a);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function ri(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const hn=Gi(/[A-Za-z]/),sn=Gi(/[\dA-Za-z]/),wE=Gi(/[#-'*+\--9=?A-Z^-~]/);function Kl(n){return n!==null&&(n<32||n===127)}const Js=Gi(/\d/),TE=Gi(/[\dA-Fa-f]/),AE=Gi(/[!-/:-@[-`{-~]/);function Ne(n){return n!==null&&n<-2}function yt(n){return n!==null&&(n<0||n===32)}function Ke(n){return n===-2||n===-1||n===32}const Vl=Gi(new RegExp("\\p{P}|\\p{S}","u")),_a=Gi(/\s/);function Gi(n){return a;function a(r){return r!==null&&r>-1&&n.test(String.fromCharCode(r))}}function $a(n){const a=[];let r=-1,o=0,s=0;for(;++r<n.length;){const f=n.charCodeAt(r);let u="";if(f===37&&sn(n.charCodeAt(r+1))&&sn(n.charCodeAt(r+2)))s=2;else if(f<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(f))||(u=String.fromCharCode(f));else if(f>55295&&f<57344){const g=n.charCodeAt(r+1);f<56320&&g>56319&&g<57344?(u=String.fromCharCode(f,g),s=1):u="�"}else u=String.fromCharCode(f);u&&(a.push(n.slice(o,r),encodeURIComponent(u)),o=r+s+1,u=""),s&&(r+=s,s=0)}return a.join("")+n.slice(o)}function Je(n,a,r,o){const s=o?o-1:Number.POSITIVE_INFINITY;let f=0;return u;function u(h){return Ke(h)?(n.enter(r),g(h)):a(h)}function g(h){return Ke(h)&&f++<s?(n.consume(h),g):(n.exit(r),a(h))}}const NE={tokenize:CE};function CE(n){const a=n.attempt(this.parser.constructs.contentInitial,o,s);let r;return a;function o(g){if(g===null){n.consume(g);return}return n.enter("lineEnding"),n.consume(g),n.exit("lineEnding"),Je(n,a,"linePrefix")}function s(g){return n.enter("paragraph"),f(g)}function f(g){const h=n.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=h),r=h,u(g)}function u(g){if(g===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(g);return}return Ne(g)?(n.consume(g),n.exit("chunkText"),f):(n.consume(g),u)}}const OE={tokenize:ME},wd={tokenize:RE};function ME(n){const a=this,r=[];let o=0,s,f,u;return g;function g(H){if(o<r.length){const J=r[o];return a.containerState=J[1],n.attempt(J[0].continuation,h,p)(H)}return p(H)}function h(H){if(o++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,s&&q();const J=a.events.length;let te=J,D;for(;te--;)if(a.events[te][0]==="exit"&&a.events[te][1].type==="chunkFlow"){D=a.events[te][1].end;break}w(o);let ce=J;for(;ce<a.events.length;)a.events[ce][1].end={...D},ce++;return Ln(a.events,te+1,0,a.events.slice(J)),a.events.length=ce,p(H)}return g(H)}function p(H){if(o===r.length){if(!s)return E(H);if(s.currentConstruct&&s.currentConstruct.concrete)return x(H);a.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return a.containerState={},n.check(wd,b,m)(H)}function b(H){return s&&q(),w(o),E(H)}function m(H){return a.parser.lazy[a.now().line]=o!==r.length,u=a.now().offset,x(H)}function E(H){return a.containerState={},n.attempt(wd,v,x)(H)}function v(H){return o++,r.push([a.currentConstruct,a.containerState]),E(H)}function x(H){if(H===null){s&&q(),w(0),n.consume(H);return}return s=s||a.parser.flow(a.now()),n.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:f}),C(H)}function C(H){if(H===null){M(n.exit("chunkFlow"),!0),w(0),n.consume(H);return}return Ne(H)?(n.consume(H),M(n.exit("chunkFlow")),o=0,a.interrupt=void 0,g):(n.consume(H),C)}function M(H,J){const te=a.sliceStream(H);if(J&&te.push(null),H.previous=f,f&&(f.next=H),f=H,s.defineSkip(H.start),s.write(te),a.parser.lazy[H.start.line]){let D=s.events.length;for(;D--;)if(s.events[D][1].start.offset<u&&(!s.events[D][1].end||s.events[D][1].end.offset>u))return;const ce=a.events.length;let ne=ce,fe,z;for(;ne--;)if(a.events[ne][0]==="exit"&&a.events[ne][1].type==="chunkFlow"){if(fe){z=a.events[ne][1].end;break}fe=!0}for(w(o),D=ce;D<a.events.length;)a.events[D][1].end={...z},D++;Ln(a.events,ne+1,0,a.events.slice(ce)),a.events.length=D}}function w(H){let J=r.length;for(;J-- >H;){const te=r[J];a.containerState=te[1],te[0].exit.call(a,n)}r.length=H}function q(){s.write([null]),f=void 0,s=void 0,a.containerState._closeFlow=void 0}}function RE(n,a,r){return Je(n,n.attempt(this.parser.constructs.document,a,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Za(n){if(n===null||yt(n)||_a(n))return 1;if(Vl(n))return 2}function $l(n,a,r){const o=[];let s=-1;for(;++s<n.length;){const f=n[s].resolveAll;f&&!o.includes(f)&&(a=f(a,r),o.push(f))}return a}const Ws={name:"attention",resolveAll:DE,tokenize:LE};function DE(n,a){let r=-1,o,s,f,u,g,h,p,b;for(;++r<n.length;)if(n[r][0]==="enter"&&n[r][1].type==="attentionSequence"&&n[r][1]._close){for(o=r;o--;)if(n[o][0]==="exit"&&n[o][1].type==="attentionSequence"&&n[o][1]._open&&a.sliceSerialize(n[o][1]).charCodeAt(0)===a.sliceSerialize(n[r][1]).charCodeAt(0)){if((n[o][1]._close||n[r][1]._open)&&(n[r][1].end.offset-n[r][1].start.offset)%3&&!((n[o][1].end.offset-n[o][1].start.offset+n[r][1].end.offset-n[r][1].start.offset)%3))continue;h=n[o][1].end.offset-n[o][1].start.offset>1&&n[r][1].end.offset-n[r][1].start.offset>1?2:1;const m={...n[o][1].end},E={...n[r][1].start};Td(m,-h),Td(E,h),u={type:h>1?"strongSequence":"emphasisSequence",start:m,end:{...n[o][1].end}},g={type:h>1?"strongSequence":"emphasisSequence",start:{...n[r][1].start},end:E},f={type:h>1?"strongText":"emphasisText",start:{...n[o][1].end},end:{...n[r][1].start}},s={type:h>1?"strong":"emphasis",start:{...u.start},end:{...g.end}},n[o][1].end={...u.start},n[r][1].start={...g.end},p=[],n[o][1].end.offset-n[o][1].start.offset&&(p=$n(p,[["enter",n[o][1],a],["exit",n[o][1],a]])),p=$n(p,[["enter",s,a],["enter",u,a],["exit",u,a],["enter",f,a]]),p=$n(p,$l(a.parser.constructs.insideSpan.null,n.slice(o+1,r),a)),p=$n(p,[["exit",f,a],["enter",g,a],["exit",g,a],["exit",s,a]]),n[r][1].end.offset-n[r][1].start.offset?(b=2,p=$n(p,[["enter",n[r][1],a],["exit",n[r][1],a]])):b=0,Ln(n,o-1,r-o+3,p),r=o+p.length-b-2;break}}for(r=-1;++r<n.length;)n[r][1].type==="attentionSequence"&&(n[r][1].type="data");return n}function LE(n,a){const r=this.parser.constructs.attentionMarkers.null,o=this.previous,s=Za(o);let f;return u;function u(h){return f=h,n.enter("attentionSequence"),g(h)}function g(h){if(h===f)return n.consume(h),g;const p=n.exit("attentionSequence"),b=Za(h),m=!b||b===2&&s||r.includes(h),E=!s||s===2&&b||r.includes(o);return p._open=!!(f===42?m:m&&(s||!E)),p._close=!!(f===42?E:E&&(b||!m)),a(h)}}function Td(n,a){n.column+=a,n.offset+=a,n._bufferIndex+=a}const zE={name:"autolink",tokenize:IE};function IE(n,a,r){let o=0;return s;function s(v){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(v),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),f}function f(v){return hn(v)?(n.consume(v),u):v===64?r(v):p(v)}function u(v){return v===43||v===45||v===46||sn(v)?(o=1,g(v)):p(v)}function g(v){return v===58?(n.consume(v),o=0,h):(v===43||v===45||v===46||sn(v))&&o++<32?(n.consume(v),g):(o=0,p(v))}function h(v){return v===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(v),n.exit("autolinkMarker"),n.exit("autolink"),a):v===null||v===32||v===60||Kl(v)?r(v):(n.consume(v),h)}function p(v){return v===64?(n.consume(v),b):wE(v)?(n.consume(v),p):r(v)}function b(v){return sn(v)?m(v):r(v)}function m(v){return v===46?(n.consume(v),o=0,b):v===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(v),n.exit("autolinkMarker"),n.exit("autolink"),a):E(v)}function E(v){if((v===45||sn(v))&&o++<63){const x=v===45?E:m;return n.consume(v),x}return r(v)}}const Gr={partial:!0,tokenize:BE};function BE(n,a,r){return o;function o(f){return Ke(f)?Je(n,s,"linePrefix")(f):s(f)}function s(f){return f===null||Ne(f)?a(f):r(f)}}const Ad={continuation:{tokenize:HE},exit:qE,name:"blockQuote",tokenize:UE};function UE(n,a,r){const o=this;return s;function s(u){if(u===62){const g=o.containerState;return g.open||(n.enter("blockQuote",{_container:!0}),g.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(u),n.exit("blockQuoteMarker"),f}return r(u)}function f(u){return Ke(u)?(n.enter("blockQuotePrefixWhitespace"),n.consume(u),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),a):(n.exit("blockQuotePrefix"),a(u))}}function HE(n,a,r){const o=this;return s;function s(u){return Ke(u)?Je(n,f,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):f(u)}function f(u){return n.attempt(Ad,a,r)(u)}}function qE(n){n.exit("blockQuote")}const Nd={name:"characterEscape",tokenize:FE};function FE(n,a,r){return o;function o(f){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(f),n.exit("escapeMarker"),s}function s(f){return AE(f)?(n.enter("characterEscapeValue"),n.consume(f),n.exit("characterEscapeValue"),n.exit("characterEscape"),a):r(f)}}const Cd={name:"characterReference",tokenize:GE};function GE(n,a,r){const o=this;let s=0,f,u;return g;function g(m){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(m),n.exit("characterReferenceMarker"),h}function h(m){return m===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(m),n.exit("characterReferenceMarkerNumeric"),p):(n.enter("characterReferenceValue"),f=31,u=sn,b(m))}function p(m){return m===88||m===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(m),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),f=6,u=TE,b):(n.enter("characterReferenceValue"),f=7,u=Js,b(m))}function b(m){if(m===59&&s){const E=n.exit("characterReferenceValue");return u===sn&&!Qs(o.sliceSerialize(E))?r(m):(n.enter("characterReferenceMarker"),n.consume(m),n.exit("characterReferenceMarker"),n.exit("characterReference"),a)}return u(m)&&s++<f?(n.consume(m),b):r(m)}}const Od={partial:!0,tokenize:YE},Md={concrete:!0,name:"codeFenced",tokenize:jE};function jE(n,a,r){const o=this,s={partial:!0,tokenize:te};let f=0,u=0,g;return h;function h(D){return p(D)}function p(D){const ce=o.events[o.events.length-1];return f=ce&&ce[1].type==="linePrefix"?ce[2].sliceSerialize(ce[1],!0).length:0,g=D,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),b(D)}function b(D){return D===g?(u++,n.consume(D),b):u<3?r(D):(n.exit("codeFencedFenceSequence"),Ke(D)?Je(n,m,"whitespace")(D):m(D))}function m(D){return D===null||Ne(D)?(n.exit("codeFencedFence"),o.interrupt?a(D):n.check(Od,C,J)(D)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),E(D))}function E(D){return D===null||Ne(D)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),m(D)):Ke(D)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),Je(n,v,"whitespace")(D)):D===96&&D===g?r(D):(n.consume(D),E)}function v(D){return D===null||Ne(D)?m(D):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),x(D))}function x(D){return D===null||Ne(D)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),m(D)):D===96&&D===g?r(D):(n.consume(D),x)}function C(D){return n.attempt(s,J,M)(D)}function M(D){return n.enter("lineEnding"),n.consume(D),n.exit("lineEnding"),w}function w(D){return f>0&&Ke(D)?Je(n,q,"linePrefix",f+1)(D):q(D)}function q(D){return D===null||Ne(D)?n.check(Od,C,J)(D):(n.enter("codeFlowValue"),H(D))}function H(D){return D===null||Ne(D)?(n.exit("codeFlowValue"),q(D)):(n.consume(D),H)}function J(D){return n.exit("codeFenced"),a(D)}function te(D,ce,ne){let fe=0;return z;function z(Q){return D.enter("lineEnding"),D.consume(Q),D.exit("lineEnding"),oe}function oe(Q){return D.enter("codeFencedFence"),Ke(Q)?Je(D,re,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):re(Q)}function re(Q){return Q===g?(D.enter("codeFencedFenceSequence"),ke(Q)):ne(Q)}function ke(Q){return Q===g?(fe++,D.consume(Q),ke):fe>=u?(D.exit("codeFencedFenceSequence"),Ke(Q)?Je(D,le,"whitespace")(Q):le(Q)):ne(Q)}function le(Q){return Q===null||Ne(Q)?(D.exit("codeFencedFence"),ce(Q)):ne(Q)}}}function YE(n,a,r){const o=this;return s;function s(u){return u===null?r(u):(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),f)}function f(u){return o.parser.lazy[o.now().line]?r(u):a(u)}}const ec={name:"codeIndented",tokenize:KE},PE={partial:!0,tokenize:VE};function KE(n,a,r){const o=this;return s;function s(p){return n.enter("codeIndented"),Je(n,f,"linePrefix",5)(p)}function f(p){const b=o.events[o.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?u(p):r(p)}function u(p){return p===null?h(p):Ne(p)?n.attempt(PE,u,h)(p):(n.enter("codeFlowValue"),g(p))}function g(p){return p===null||Ne(p)?(n.exit("codeFlowValue"),u(p)):(n.consume(p),g)}function h(p){return n.exit("codeIndented"),a(p)}}function VE(n,a,r){const o=this;return s;function s(u){return o.parser.lazy[o.now().line]?r(u):Ne(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),s):Je(n,f,"linePrefix",5)(u)}function f(u){const g=o.events[o.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?a(u):Ne(u)?s(u):r(u)}}const $E={name:"codeText",previous:XE,resolve:ZE,tokenize:QE};function ZE(n){let a=n.length-4,r=3,o,s;if((n[r][1].type==="lineEnding"||n[r][1].type==="space")&&(n[a][1].type==="lineEnding"||n[a][1].type==="space")){for(o=r;++o<a;)if(n[o][1].type==="codeTextData"){n[r][1].type="codeTextPadding",n[a][1].type="codeTextPadding",r+=2,a-=2;break}}for(o=r-1,a++;++o<=a;)s===void 0?o!==a&&n[o][1].type!=="lineEnding"&&(s=o):(o===a||n[o][1].type==="lineEnding")&&(n[s][1].type="codeTextData",o!==s+2&&(n[s][1].end=n[o-1][1].end,n.splice(s+2,o-s-2),a-=o-s-2,o=s+2),s=void 0);return n}function XE(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function QE(n,a,r){let o=0,s,f;return u;function u(m){return n.enter("codeText"),n.enter("codeTextSequence"),g(m)}function g(m){return m===96?(n.consume(m),o++,g):(n.exit("codeTextSequence"),h(m))}function h(m){return m===null?r(m):m===32?(n.enter("space"),n.consume(m),n.exit("space"),h):m===96?(f=n.enter("codeTextSequence"),s=0,b(m)):Ne(m)?(n.enter("lineEnding"),n.consume(m),n.exit("lineEnding"),h):(n.enter("codeTextData"),p(m))}function p(m){return m===null||m===32||m===96||Ne(m)?(n.exit("codeTextData"),h(m)):(n.consume(m),p)}function b(m){return m===96?(n.consume(m),s++,b):s===o?(n.exit("codeTextSequence"),n.exit("codeText"),a(m)):(f.type="codeTextData",p(m))}}class JE{constructor(a){this.left=a?[...a]:[],this.right=[]}get(a){if(a<0||a>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+a+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return a<this.left.length?this.left[a]:this.right[this.right.length-a+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(a,r){const o=r??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(a,o):a>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(a,r,o){const s=r||0;this.setCursor(Math.trunc(a));const f=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return o&&jr(this.left,o),f.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(a){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(a)}pushMany(a){this.setCursor(Number.POSITIVE_INFINITY),jr(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),jr(this.right,a.reverse())}setCursor(a){if(!(a===this.left.length||a>this.left.length&&this.right.length===0||a<0&&this.left.length===0))if(a<this.left.length){const r=this.left.splice(a,Number.POSITIVE_INFINITY);jr(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);jr(this.left,r.reverse())}}}function jr(n,a){let r=0;if(a.length<1e4)n.push(...a);else for(;r<a.length;)n.push(...a.slice(r,r+1e4)),r+=1e4}function Rd(n){const a={};let r=-1,o,s,f,u,g,h,p;const b=new JE(n);for(;++r<b.length;){for(;r in a;)r=a[r];if(o=b.get(r),r&&o[1].type==="chunkFlow"&&b.get(r-1)[1].type==="listItemPrefix"&&(h=o[1]._tokenizer.events,f=0,f<h.length&&h[f][1].type==="lineEndingBlank"&&(f+=2),f<h.length&&h[f][1].type==="content"))for(;++f<h.length&&h[f][1].type!=="content";)h[f][1].type==="chunkText"&&(h[f][1]._isInFirstContentOfListItem=!0,f++);if(o[0]==="enter")o[1].contentType&&(Object.assign(a,WE(b,r)),r=a[r],p=!0);else if(o[1]._container){for(f=r,s=void 0;f--;)if(u=b.get(f),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(s&&(b.get(s)[1].type="lineEndingBlank"),u[1].type="lineEnding",s=f);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;s&&(o[1].end={...b.get(s)[1].start},g=b.slice(s,r),g.unshift(o),b.splice(s,r-s+1,g))}}return Ln(n,0,Number.POSITIVE_INFINITY,b.slice(0)),!p}function WE(n,a){const r=n.get(a)[1],o=n.get(a)[2];let s=a-1;const f=[];let u=r._tokenizer;u||(u=o.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const g=u.events,h=[],p={};let b,m,E=-1,v=r,x=0,C=0;const M=[C];for(;v;){for(;n.get(++s)[1]!==v;);f.push(s),v._tokenizer||(b=o.sliceStream(v),v.next||b.push(null),m&&u.defineSkip(v.start),v._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(b),v._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),m=v,v=v.next}for(v=r;++E<g.length;)g[E][0]==="exit"&&g[E-1][0]==="enter"&&g[E][1].type===g[E-1][1].type&&g[E][1].start.line!==g[E][1].end.line&&(C=E+1,M.push(C),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(u.events=[],v?(v._tokenizer=void 0,v.previous=void 0):M.pop(),E=M.length;E--;){const w=g.slice(M[E],M[E+1]),q=f.pop();h.push([q,q+w.length-1]),n.splice(q,2,w)}for(h.reverse(),E=-1;++E<h.length;)p[x+h[E][0]]=x+h[E][1],x+=h[E][1]-h[E][0]-1;return p}const ev={resolve:nv,tokenize:iv},tv={partial:!0,tokenize:av};function nv(n){return Rd(n),n}function iv(n,a){let r;return o;function o(g){return n.enter("content"),r=n.enter("chunkContent",{contentType:"content"}),s(g)}function s(g){return g===null?f(g):Ne(g)?n.check(tv,u,f)(g):(n.consume(g),s)}function f(g){return n.exit("chunkContent"),n.exit("content"),a(g)}function u(g){return n.consume(g),n.exit("chunkContent"),r.next=n.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function av(n,a,r){const o=this;return s;function s(u){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),Je(n,f,"linePrefix")}function f(u){if(u===null||Ne(u))return r(u);const g=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?a(u):n.interrupt(o.parser.constructs.flow,r,a)(u)}}function Dd(n,a,r,o,s,f,u,g,h){const p=h||Number.POSITIVE_INFINITY;let b=0;return m;function m(w){return w===60?(n.enter(o),n.enter(s),n.enter(f),n.consume(w),n.exit(f),E):w===null||w===32||w===41||Kl(w)?r(w):(n.enter(o),n.enter(u),n.enter(g),n.enter("chunkString",{contentType:"string"}),C(w))}function E(w){return w===62?(n.enter(f),n.consume(w),n.exit(f),n.exit(s),n.exit(o),a):(n.enter(g),n.enter("chunkString",{contentType:"string"}),v(w))}function v(w){return w===62?(n.exit("chunkString"),n.exit(g),E(w)):w===null||w===60||Ne(w)?r(w):(n.consume(w),w===92?x:v)}function x(w){return w===60||w===62||w===92?(n.consume(w),v):v(w)}function C(w){return!b&&(w===null||w===41||yt(w))?(n.exit("chunkString"),n.exit(g),n.exit(u),n.exit(o),a(w)):b<p&&w===40?(n.consume(w),b++,C):w===41?(n.consume(w),b--,C):w===null||w===32||w===40||Kl(w)?r(w):(n.consume(w),w===92?M:C)}function M(w){return w===40||w===41||w===92?(n.consume(w),C):C(w)}}function Ld(n,a,r,o,s,f){const u=this;let g=0,h;return p;function p(v){return n.enter(o),n.enter(s),n.consume(v),n.exit(s),n.enter(f),b}function b(v){return g>999||v===null||v===91||v===93&&!h||v===94&&!g&&"_hiddenFootnoteSupport"in u.parser.constructs?r(v):v===93?(n.exit(f),n.enter(s),n.consume(v),n.exit(s),n.exit(o),a):Ne(v)?(n.enter("lineEnding"),n.consume(v),n.exit("lineEnding"),b):(n.enter("chunkString",{contentType:"string"}),m(v))}function m(v){return v===null||v===91||v===93||Ne(v)||g++>999?(n.exit("chunkString"),b(v)):(n.consume(v),h||(h=!Ke(v)),v===92?E:m)}function E(v){return v===91||v===92||v===93?(n.consume(v),g++,m):m(v)}}function zd(n,a,r,o,s,f){let u;return g;function g(E){return E===34||E===39||E===40?(n.enter(o),n.enter(s),n.consume(E),n.exit(s),u=E===40?41:E,h):r(E)}function h(E){return E===u?(n.enter(s),n.consume(E),n.exit(s),n.exit(o),a):(n.enter(f),p(E))}function p(E){return E===u?(n.exit(f),h(u)):E===null?r(E):Ne(E)?(n.enter("lineEnding"),n.consume(E),n.exit("lineEnding"),Je(n,p,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),b(E))}function b(E){return E===u||E===null||Ne(E)?(n.exit("chunkString"),p(E)):(n.consume(E),E===92?m:b)}function m(E){return E===u||E===92?(n.consume(E),b):b(E)}}function Yr(n,a){let r;return o;function o(s){return Ne(s)?(n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),r=!0,o):Ke(s)?Je(n,o,r?"linePrefix":"lineSuffix")(s):a(s)}}const rv={name:"definition",tokenize:ov},lv={partial:!0,tokenize:sv};function ov(n,a,r){const o=this;let s;return f;function f(v){return n.enter("definition"),u(v)}function u(v){return Ld.call(o,n,g,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function g(v){return s=ri(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),v===58?(n.enter("definitionMarker"),n.consume(v),n.exit("definitionMarker"),h):r(v)}function h(v){return yt(v)?Yr(n,p)(v):p(v)}function p(v){return Dd(n,b,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function b(v){return n.attempt(lv,m,m)(v)}function m(v){return Ke(v)?Je(n,E,"whitespace")(v):E(v)}function E(v){return v===null||Ne(v)?(n.exit("definition"),o.parser.defined.push(s),a(v)):r(v)}}function sv(n,a,r){return o;function o(g){return yt(g)?Yr(n,s)(g):r(g)}function s(g){return zd(n,f,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(g)}function f(g){return Ke(g)?Je(n,u,"whitespace")(g):u(g)}function u(g){return g===null||Ne(g)?a(g):r(g)}}const cv={name:"hardBreakEscape",tokenize:uv};function uv(n,a,r){return o;function o(f){return n.enter("hardBreakEscape"),n.consume(f),s}function s(f){return Ne(f)?(n.exit("hardBreakEscape"),a(f)):r(f)}}const fv={name:"headingAtx",resolve:dv,tokenize:pv};function dv(n,a){let r=n.length-2,o=3,s,f;return n[o][1].type==="whitespace"&&(o+=2),r-2>o&&n[r][1].type==="whitespace"&&(r-=2),n[r][1].type==="atxHeadingSequence"&&(o===r-1||r-4>o&&n[r-2][1].type==="whitespace")&&(r-=o+1===r?2:4),r>o&&(s={type:"atxHeadingText",start:n[o][1].start,end:n[r][1].end},f={type:"chunkText",start:n[o][1].start,end:n[r][1].end,contentType:"text"},Ln(n,o,r-o+1,[["enter",s,a],["enter",f,a],["exit",f,a],["exit",s,a]])),n}function pv(n,a,r){let o=0;return s;function s(b){return n.enter("atxHeading"),f(b)}function f(b){return n.enter("atxHeadingSequence"),u(b)}function u(b){return b===35&&o++<6?(n.consume(b),u):b===null||yt(b)?(n.exit("atxHeadingSequence"),g(b)):r(b)}function g(b){return b===35?(n.enter("atxHeadingSequence"),h(b)):b===null||Ne(b)?(n.exit("atxHeading"),a(b)):Ke(b)?Je(n,g,"whitespace")(b):(n.enter("atxHeadingText"),p(b))}function h(b){return b===35?(n.consume(b),h):(n.exit("atxHeadingSequence"),g(b))}function p(b){return b===null||b===35||yt(b)?(n.exit("atxHeadingText"),g(b)):(n.consume(b),p)}}const gv=["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"],Id=["pre","script","style","textarea"],hv={concrete:!0,name:"htmlFlow",resolveTo:yv,tokenize:Ev},mv={partial:!0,tokenize:_v},bv={partial:!0,tokenize:vv};function yv(n){let a=n.length;for(;a--&&!(n[a][0]==="enter"&&n[a][1].type==="htmlFlow"););return a>1&&n[a-2][1].type==="linePrefix"&&(n[a][1].start=n[a-2][1].start,n[a+1][1].start=n[a-2][1].start,n.splice(a-2,2)),n}function Ev(n,a,r){const o=this;let s,f,u,g,h;return p;function p(k){return b(k)}function b(k){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(k),m}function m(k){return k===33?(n.consume(k),E):k===47?(n.consume(k),f=!0,C):k===63?(n.consume(k),s=3,o.interrupt?a:S):hn(k)?(n.consume(k),u=String.fromCharCode(k),M):r(k)}function E(k){return k===45?(n.consume(k),s=2,v):k===91?(n.consume(k),s=5,g=0,x):hn(k)?(n.consume(k),s=4,o.interrupt?a:S):r(k)}function v(k){return k===45?(n.consume(k),o.interrupt?a:S):r(k)}function x(k){const W="CDATA[";return k===W.charCodeAt(g++)?(n.consume(k),g===W.length?o.interrupt?a:re:x):r(k)}function C(k){return hn(k)?(n.consume(k),u=String.fromCharCode(k),M):r(k)}function M(k){if(k===null||k===47||k===62||yt(k)){const W=k===47,de=u.toLowerCase();return!W&&!f&&Id.includes(de)?(s=1,o.interrupt?a(k):re(k)):gv.includes(u.toLowerCase())?(s=6,W?(n.consume(k),w):o.interrupt?a(k):re(k)):(s=7,o.interrupt&&!o.parser.lazy[o.now().line]?r(k):f?q(k):H(k))}return k===45||sn(k)?(n.consume(k),u+=String.fromCharCode(k),M):r(k)}function w(k){return k===62?(n.consume(k),o.interrupt?a:re):r(k)}function q(k){return Ke(k)?(n.consume(k),q):z(k)}function H(k){return k===47?(n.consume(k),z):k===58||k===95||hn(k)?(n.consume(k),J):Ke(k)?(n.consume(k),H):z(k)}function J(k){return k===45||k===46||k===58||k===95||sn(k)?(n.consume(k),J):te(k)}function te(k){return k===61?(n.consume(k),D):Ke(k)?(n.consume(k),te):H(k)}function D(k){return k===null||k===60||k===61||k===62||k===96?r(k):k===34||k===39?(n.consume(k),h=k,ce):Ke(k)?(n.consume(k),D):ne(k)}function ce(k){return k===h?(n.consume(k),h=null,fe):k===null||Ne(k)?r(k):(n.consume(k),ce)}function ne(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||yt(k)?te(k):(n.consume(k),ne)}function fe(k){return k===47||k===62||Ke(k)?H(k):r(k)}function z(k){return k===62?(n.consume(k),oe):r(k)}function oe(k){return k===null||Ne(k)?re(k):Ke(k)?(n.consume(k),oe):r(k)}function re(k){return k===45&&s===2?(n.consume(k),G):k===60&&s===1?(n.consume(k),j):k===62&&s===4?(n.consume(k),Re):k===63&&s===3?(n.consume(k),S):k===93&&s===5?(n.consume(k),ve):Ne(k)&&(s===6||s===7)?(n.exit("htmlFlowData"),n.check(mv,T,ke)(k)):k===null||Ne(k)?(n.exit("htmlFlowData"),ke(k)):(n.consume(k),re)}function ke(k){return n.check(bv,le,T)(k)}function le(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),Q}function Q(k){return k===null||Ne(k)?ke(k):(n.enter("htmlFlowData"),re(k))}function G(k){return k===45?(n.consume(k),S):re(k)}function j(k){return k===47?(n.consume(k),u="",P):re(k)}function P(k){if(k===62){const W=u.toLowerCase();return Id.includes(W)?(n.consume(k),Re):re(k)}return hn(k)&&u.length<8?(n.consume(k),u+=String.fromCharCode(k),P):re(k)}function ve(k){return k===93?(n.consume(k),S):re(k)}function S(k){return k===62?(n.consume(k),Re):k===45&&s===2?(n.consume(k),S):re(k)}function Re(k){return k===null||Ne(k)?(n.exit("htmlFlowData"),T(k)):(n.consume(k),Re)}function T(k){return n.exit("htmlFlow"),a(k)}}function vv(n,a,r){const o=this;return s;function s(u){return Ne(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),f):r(u)}function f(u){return o.parser.lazy[o.now().line]?r(u):a(u)}}function _v(n,a,r){return o;function o(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),n.attempt(Gr,a,r)}}const kv={name:"htmlText",tokenize:xv};function xv(n,a,r){const o=this;let s,f,u;return g;function g(S){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(S),h}function h(S){return S===33?(n.consume(S),p):S===47?(n.consume(S),te):S===63?(n.consume(S),H):hn(S)?(n.consume(S),ne):r(S)}function p(S){return S===45?(n.consume(S),b):S===91?(n.consume(S),f=0,x):hn(S)?(n.consume(S),q):r(S)}function b(S){return S===45?(n.consume(S),v):r(S)}function m(S){return S===null?r(S):S===45?(n.consume(S),E):Ne(S)?(u=m,j(S)):(n.consume(S),m)}function E(S){return S===45?(n.consume(S),v):m(S)}function v(S){return S===62?G(S):S===45?E(S):m(S)}function x(S){const Re="CDATA[";return S===Re.charCodeAt(f++)?(n.consume(S),f===Re.length?C:x):r(S)}function C(S){return S===null?r(S):S===93?(n.consume(S),M):Ne(S)?(u=C,j(S)):(n.consume(S),C)}function M(S){return S===93?(n.consume(S),w):C(S)}function w(S){return S===62?G(S):S===93?(n.consume(S),w):C(S)}function q(S){return S===null||S===62?G(S):Ne(S)?(u=q,j(S)):(n.consume(S),q)}function H(S){return S===null?r(S):S===63?(n.consume(S),J):Ne(S)?(u=H,j(S)):(n.consume(S),H)}function J(S){return S===62?G(S):H(S)}function te(S){return hn(S)?(n.consume(S),D):r(S)}function D(S){return S===45||sn(S)?(n.consume(S),D):ce(S)}function ce(S){return Ne(S)?(u=ce,j(S)):Ke(S)?(n.consume(S),ce):G(S)}function ne(S){return S===45||sn(S)?(n.consume(S),ne):S===47||S===62||yt(S)?fe(S):r(S)}function fe(S){return S===47?(n.consume(S),G):S===58||S===95||hn(S)?(n.consume(S),z):Ne(S)?(u=fe,j(S)):Ke(S)?(n.consume(S),fe):G(S)}function z(S){return S===45||S===46||S===58||S===95||sn(S)?(n.consume(S),z):oe(S)}function oe(S){return S===61?(n.consume(S),re):Ne(S)?(u=oe,j(S)):Ke(S)?(n.consume(S),oe):fe(S)}function re(S){return S===null||S===60||S===61||S===62||S===96?r(S):S===34||S===39?(n.consume(S),s=S,ke):Ne(S)?(u=re,j(S)):Ke(S)?(n.consume(S),re):(n.consume(S),le)}function ke(S){return S===s?(n.consume(S),s=void 0,Q):S===null?r(S):Ne(S)?(u=ke,j(S)):(n.consume(S),ke)}function le(S){return S===null||S===34||S===39||S===60||S===61||S===96?r(S):S===47||S===62||yt(S)?fe(S):(n.consume(S),le)}function Q(S){return S===47||S===62||yt(S)?fe(S):r(S)}function G(S){return S===62?(n.consume(S),n.exit("htmlTextData"),n.exit("htmlText"),a):r(S)}function j(S){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(S),n.exit("lineEnding"),P}function P(S){return Ke(S)?Je(n,ve,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):ve(S)}function ve(S){return n.enter("htmlTextData"),u(S)}}const tc={name:"labelEnd",resolveAll:Av,resolveTo:Nv,tokenize:Cv},Sv={tokenize:Ov},wv={tokenize:Mv},Tv={tokenize:Rv};function Av(n){let a=-1;const r=[];for(;++a<n.length;){const o=n[a][1];if(r.push(n[a]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const s=o.type==="labelImage"?4:2;o.type="data",a+=s}}return n.length!==r.length&&Ln(n,0,n.length,r),n}function Nv(n,a){let r=n.length,o=0,s,f,u,g;for(;r--;)if(s=n[r][1],f){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;n[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(u){if(n[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(f=r,s.type!=="labelLink")){o=2;break}}else s.type==="labelEnd"&&(u=r);const h={type:n[f][1].type==="labelLink"?"link":"image",start:{...n[f][1].start},end:{...n[n.length-1][1].end}},p={type:"label",start:{...n[f][1].start},end:{...n[u][1].end}},b={type:"labelText",start:{...n[f+o+2][1].end},end:{...n[u-2][1].start}};return g=[["enter",h,a],["enter",p,a]],g=$n(g,n.slice(f+1,f+o+3)),g=$n(g,[["enter",b,a]]),g=$n(g,$l(a.parser.constructs.insideSpan.null,n.slice(f+o+4,u-3),a)),g=$n(g,[["exit",b,a],n[u-2],n[u-1],["exit",p,a]]),g=$n(g,n.slice(u+1)),g=$n(g,[["exit",h,a]]),Ln(n,f,n.length,g),n}function Cv(n,a,r){const o=this;let s=o.events.length,f,u;for(;s--;)if((o.events[s][1].type==="labelImage"||o.events[s][1].type==="labelLink")&&!o.events[s][1]._balanced){f=o.events[s][1];break}return g;function g(E){return f?f._inactive?m(E):(u=o.parser.defined.includes(ri(o.sliceSerialize({start:f.end,end:o.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(E),n.exit("labelMarker"),n.exit("labelEnd"),h):r(E)}function h(E){return E===40?n.attempt(Sv,b,u?b:m)(E):E===91?n.attempt(wv,b,u?p:m)(E):u?b(E):m(E)}function p(E){return n.attempt(Tv,b,m)(E)}function b(E){return a(E)}function m(E){return f._balanced=!0,r(E)}}function Ov(n,a,r){return o;function o(m){return n.enter("resource"),n.enter("resourceMarker"),n.consume(m),n.exit("resourceMarker"),s}function s(m){return yt(m)?Yr(n,f)(m):f(m)}function f(m){return m===41?b(m):Dd(n,u,g,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function u(m){return yt(m)?Yr(n,h)(m):b(m)}function g(m){return r(m)}function h(m){return m===34||m===39||m===40?zd(n,p,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):b(m)}function p(m){return yt(m)?Yr(n,b)(m):b(m)}function b(m){return m===41?(n.enter("resourceMarker"),n.consume(m),n.exit("resourceMarker"),n.exit("resource"),a):r(m)}}function Mv(n,a,r){const o=this;return s;function s(g){return Ld.call(o,n,f,u,"reference","referenceMarker","referenceString")(g)}function f(g){return o.parser.defined.includes(ri(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?a(g):r(g)}function u(g){return r(g)}}function Rv(n,a,r){return o;function o(f){return n.enter("reference"),n.enter("referenceMarker"),n.consume(f),n.exit("referenceMarker"),s}function s(f){return f===93?(n.enter("referenceMarker"),n.consume(f),n.exit("referenceMarker"),n.exit("reference"),a):r(f)}}const Dv={name:"labelStartImage",resolveAll:tc.resolveAll,tokenize:Lv};function Lv(n,a,r){const o=this;return s;function s(g){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(g),n.exit("labelImageMarker"),f}function f(g){return g===91?(n.enter("labelMarker"),n.consume(g),n.exit("labelMarker"),n.exit("labelImage"),u):r(g)}function u(g){return g===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(g):a(g)}}const zv={name:"labelStartLink",resolveAll:tc.resolveAll,tokenize:Iv};function Iv(n,a,r){const o=this;return s;function s(u){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(u),n.exit("labelMarker"),n.exit("labelLink"),f}function f(u){return u===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(u):a(u)}}const nc={name:"lineEnding",tokenize:Bv};function Bv(n,a){return r;function r(o){return n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),Je(n,a,"linePrefix")}}const Zl={name:"thematicBreak",tokenize:Uv};function Uv(n,a,r){let o=0,s;return f;function f(p){return n.enter("thematicBreak"),u(p)}function u(p){return s=p,g(p)}function g(p){return p===s?(n.enter("thematicBreakSequence"),h(p)):o>=3&&(p===null||Ne(p))?(n.exit("thematicBreak"),a(p)):r(p)}function h(p){return p===s?(n.consume(p),o++,h):(n.exit("thematicBreakSequence"),Ke(p)?Je(n,g,"whitespace")(p):g(p))}}const kn={continuation:{tokenize:Gv},exit:Yv,name:"list",tokenize:Fv},Hv={partial:!0,tokenize:Pv},qv={partial:!0,tokenize:jv};function Fv(n,a,r){const o=this,s=o.events[o.events.length-1];let f=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,u=0;return g;function g(v){const x=o.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!o.containerState.marker||v===o.containerState.marker:Js(v)){if(o.containerState.type||(o.containerState.type=x,n.enter(x,{_container:!0})),x==="listUnordered")return n.enter("listItemPrefix"),v===42||v===45?n.check(Zl,r,p)(v):p(v);if(!o.interrupt||v===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),h(v)}return r(v)}function h(v){return Js(v)&&++u<10?(n.consume(v),h):(!o.interrupt||u<2)&&(o.containerState.marker?v===o.containerState.marker:v===41||v===46)?(n.exit("listItemValue"),p(v)):r(v)}function p(v){return n.enter("listItemMarker"),n.consume(v),n.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||v,n.check(Gr,o.interrupt?r:b,n.attempt(Hv,E,m))}function b(v){return o.containerState.initialBlankLine=!0,f++,E(v)}function m(v){return Ke(v)?(n.enter("listItemPrefixWhitespace"),n.consume(v),n.exit("listItemPrefixWhitespace"),E):r(v)}function E(v){return o.containerState.size=f+o.sliceSerialize(n.exit("listItemPrefix"),!0).length,a(v)}}function Gv(n,a,r){const o=this;return o.containerState._closeFlow=void 0,n.check(Gr,s,f);function s(g){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,Je(n,a,"listItemIndent",o.containerState.size+1)(g)}function f(g){return o.containerState.furtherBlankLines||!Ke(g)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,u(g)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,n.attempt(qv,a,u)(g))}function u(g){return o.containerState._closeFlow=!0,o.interrupt=void 0,Je(n,n.attempt(kn,a,r),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g)}}function jv(n,a,r){const o=this;return Je(n,s,"listItemIndent",o.containerState.size+1);function s(f){const u=o.events[o.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===o.containerState.size?a(f):r(f)}}function Yv(n){n.exit(this.containerState.type)}function Pv(n,a,r){const o=this;return Je(n,s,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(f){const u=o.events[o.events.length-1];return!Ke(f)&&u&&u[1].type==="listItemPrefixWhitespace"?a(f):r(f)}}const Bd={name:"setextUnderline",resolveTo:Kv,tokenize:Vv};function Kv(n,a){let r=n.length,o,s,f;for(;r--;)if(n[r][0]==="enter"){if(n[r][1].type==="content"){o=r;break}n[r][1].type==="paragraph"&&(s=r)}else n[r][1].type==="content"&&n.splice(r,1),!f&&n[r][1].type==="definition"&&(f=r);const u={type:"setextHeading",start:{...n[o][1].start},end:{...n[n.length-1][1].end}};return n[s][1].type="setextHeadingText",f?(n.splice(s,0,["enter",u,a]),n.splice(f+1,0,["exit",n[o][1],a]),n[o][1].end={...n[f][1].end}):n[o][1]=u,n.push(["exit",u,a]),n}function Vv(n,a,r){const o=this;let s;return f;function f(p){let b=o.events.length,m;for(;b--;)if(o.events[b][1].type!=="lineEnding"&&o.events[b][1].type!=="linePrefix"&&o.events[b][1].type!=="content"){m=o.events[b][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||m)?(n.enter("setextHeadingLine"),s=p,u(p)):r(p)}function u(p){return n.enter("setextHeadingLineSequence"),g(p)}function g(p){return p===s?(n.consume(p),g):(n.exit("setextHeadingLineSequence"),Ke(p)?Je(n,h,"lineSuffix")(p):h(p))}function h(p){return p===null||Ne(p)?(n.exit("setextHeadingLine"),a(p)):r(p)}}const $v={tokenize:Zv};function Zv(n){const a=this,r=n.attempt(Gr,o,n.attempt(this.parser.constructs.flowInitial,s,Je(n,n.attempt(this.parser.constructs.flow,s,n.attempt(ev,s)),"linePrefix")));return r;function o(f){if(f===null){n.consume(f);return}return n.enter("lineEndingBlank"),n.consume(f),n.exit("lineEndingBlank"),a.currentConstruct=void 0,r}function s(f){if(f===null){n.consume(f);return}return n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),a.currentConstruct=void 0,r}}const Xv={resolveAll:Hd()},Qv=Ud("string"),Jv=Ud("text");function Ud(n){return{resolveAll:Hd(n==="text"?Wv:void 0),tokenize:a};function a(r){const o=this,s=this.parser.constructs[n],f=r.attempt(s,u,g);return u;function u(b){return p(b)?f(b):g(b)}function g(b){if(b===null){r.consume(b);return}return r.enter("data"),r.consume(b),h}function h(b){return p(b)?(r.exit("data"),f(b)):(r.consume(b),h)}function p(b){if(b===null)return!0;const m=s[b];let E=-1;if(m)for(;++E<m.length;){const v=m[E];if(!v.previous||v.previous.call(o,o.previous))return!0}return!1}}}function Hd(n){return a;function a(r,o){let s=-1,f;for(;++s<=r.length;)f===void 0?r[s]&&r[s][1].type==="data"&&(f=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==f+2&&(r[f][1].end=r[s-1][1].end,r.splice(f+2,s-f-2),s=f+2),f=void 0);return n?n(r,o):r}}function Wv(n,a){let r=0;for(;++r<=n.length;)if((r===n.length||n[r][1].type==="lineEnding")&&n[r-1][1].type==="data"){const o=n[r-1][1],s=a.sliceStream(o);let f=s.length,u=-1,g=0,h;for(;f--;){const p=s[f];if(typeof p=="string"){for(u=p.length;p.charCodeAt(u-1)===32;)g++,u--;if(u)break;u=-1}else if(p===-2)h=!0,g++;else if(p!==-1){f++;break}}if(a._contentTypeTextTrailing&&r===n.length&&(g=0),g){const p={type:r===n.length||h||g<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:f?u:o.start._bufferIndex+u,_index:o.start._index+f,line:o.end.line,column:o.end.column-g,offset:o.end.offset-g},end:{...o.end}};o.end={...p.start},o.start.offset===o.end.offset?Object.assign(o,p):(n.splice(r,0,["enter",p,a],["exit",p,a]),r+=2)}r++}return n}const e0=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:rv},disable:{null:[]},document:{42:kn,43:kn,45:kn,48:kn,49:kn,50:kn,51:kn,52:kn,53:kn,54:kn,55:kn,56:kn,57:kn,62:Ad},flow:{35:fv,42:Zl,45:[Bd,Zl],60:hv,61:Bd,95:Zl,96:Md,126:Md},flowInitial:{[-2]:ec,[-1]:ec,32:ec},insideSpan:{null:[Ws,Xv]},string:{38:Cd,92:Nd},text:{[-5]:nc,[-4]:nc,[-3]:nc,33:Dv,38:Cd,42:Ws,60:[zE,kv],91:zv,92:[cv,Nd],93:tc,95:Ws,96:$E}},Symbol.toStringTag,{value:"Module"}));function t0(n,a,r){let o={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},f=[];let u=[],g=[];const h={attempt:ce(te),check:ce(D),consume:q,enter:H,exit:J,interrupt:ce(D,{interrupt:!0})},p={code:null,containerState:{},defineSkip:C,events:[],now:x,parser:n,previous:null,sliceSerialize:E,sliceStream:v,write:m};let b=a.tokenize.call(p,h);return a.resolveAll&&f.push(a),p;function m(oe){return u=$n(u,oe),M(),u[u.length-1]!==null?[]:(ne(a,0),p.events=$l(f,p.events,p),p.events)}function E(oe,re){return i0(v(oe),re)}function v(oe){return n0(u,oe)}function x(){const{_bufferIndex:oe,_index:re,line:ke,column:le,offset:Q}=o;return{_bufferIndex:oe,_index:re,line:ke,column:le,offset:Q}}function C(oe){s[oe.line]=oe.column,z()}function M(){let oe;for(;o._index<u.length;){const re=u[o._index];if(typeof re=="string")for(oe=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===oe&&o._bufferIndex<re.length;)w(re.charCodeAt(o._bufferIndex));else w(re)}}function w(oe){b=b(oe)}function q(oe){Ne(oe)?(o.line++,o.column=1,o.offset+=oe===-3?2:1,z()):oe!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===u[o._index].length&&(o._bufferIndex=-1,o._index++)),p.previous=oe}function H(oe,re){const ke=re||{};return ke.type=oe,ke.start=x(),p.events.push(["enter",ke,p]),g.push(ke),ke}function J(oe){const re=g.pop();return re.end=x(),p.events.push(["exit",re,p]),re}function te(oe,re){ne(oe,re.from)}function D(oe,re){re.restore()}function ce(oe,re){return ke;function ke(le,Q,G){let j,P,ve,S;return Array.isArray(le)?T(le):"tokenize"in le?T([le]):Re(le);function Re(Ee){return Me;function Me(xe){const ft=xe!==null&&Ee[xe],ze=xe!==null&&Ee.null,un=[...Array.isArray(ft)?ft:ft?[ft]:[],...Array.isArray(ze)?ze:ze?[ze]:[]];return T(un)(xe)}}function T(Ee){return j=Ee,P=0,Ee.length===0?G:k(Ee[P])}function k(Ee){return Me;function Me(xe){return S=fe(),ve=Ee,Ee.partial||(p.currentConstruct=Ee),Ee.name&&p.parser.constructs.disable.null.includes(Ee.name)?de():Ee.tokenize.call(re?Object.assign(Object.create(p),re):p,h,W,de)(xe)}}function W(Ee){return oe(ve,S),Q}function de(Ee){return S.restore(),++P<j.length?k(j[P]):G}}}function ne(oe,re){oe.resolveAll&&!f.includes(oe)&&f.push(oe),oe.resolve&&Ln(p.events,re,p.events.length-re,oe.resolve(p.events.slice(re),p)),oe.resolveTo&&(p.events=oe.resolveTo(p.events,p))}function fe(){const oe=x(),re=p.previous,ke=p.currentConstruct,le=p.events.length,Q=Array.from(g);return{from:le,restore:G};function G(){o=oe,p.previous=re,p.currentConstruct=ke,p.events.length=le,g=Q,z()}}function z(){o.line in s&&o.column<2&&(o.column=s[o.line],o.offset+=s[o.line]-1)}}function n0(n,a){const r=a.start._index,o=a.start._bufferIndex,s=a.end._index,f=a.end._bufferIndex;let u;if(r===s)u=[n[r].slice(o,f)];else{if(u=n.slice(r,s),o>-1){const g=u[0];typeof g=="string"?u[0]=g.slice(o):u.shift()}f>0&&u.push(n[s].slice(0,f))}return u}function i0(n,a){let r=-1;const o=[];let s;for(;++r<n.length;){const f=n[r];let u;if(typeof f=="string")u=f;else switch(f){case-5:{u="\r";break}case-4:{u=`
8
+ `+l.stack}}var In=Object.prototype.hasOwnProperty,Ni=a.unstable_scheduleCallback,Bn=a.unstable_cancelCallback,$n=a.unstable_shouldYield,Rt=a.unstable_requestPaint,lt=a.unstable_now,j=a.unstable_getCurrentPriorityLevel,ae=a.unstable_ImmediatePriority,Ae=a.unstable_UserBlockingPriority,qe=a.unstable_NormalPriority,nt=a.unstable_LowPriority,$t=a.unstable_IdlePriority,dn=a.log,tn=a.unstable_setDisableYieldValue,Jt=null,xt=null;function Et(e){if(typeof dn=="function"&&tn(e),xt&&typeof xt.setStrictMode=="function")try{xt.setStrictMode(Jt,e)}catch{}}var St=Math.clz32?Math.clz32:La,nn=Math.log,Ci=Math.LN2;function La(e){return e>>>=0,e===0?32:31-(nn(e)/Ci|0)|0}var Wi=256,Oi=262144,Ot=4194304;function N(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function V(e,t,i){var l=e.pendingLanes;if(l===0)return 0;var c=0,d=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var E=l&134217727;return E!==0?(l=E&~d,l!==0?c=N(l):(y&=E,y!==0?c=N(y):i||(i=E&~e,i!==0&&(c=N(i))))):(E=l&~d,E!==0?c=N(E):y!==0?c=N(y):i||(i=l&~e,i!==0&&(c=N(i)))),c===0?0:t!==0&&t!==c&&(t&d)===0&&(d=c&-c,i=t&-t,d>=i||d===32&&(i&4194048)!==0)?t:c}function le(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function De(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wt(){var e=Ot;return Ot<<=1,(Ot&62914560)===0&&(Ot=4194304),e}function Qe(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function he(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ge(e,t,i,l,c,d){var y=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var E=e.entanglements,A=e.expirationTimes,B=e.hiddenUpdates;for(i=y&~i;0<i;){var P=31-St(i),Z=1<<P;E[P]=0,A[P]=-1;var U=B[P];if(U!==null)for(B[P]=null,P=0;P<U.length;P++){var F=U[P];F!==null&&(F.lane&=-536870913)}i&=~Z}l!==0&&Se(e,l,0),d!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=d&~(y&~t))}function Se(e,t,i){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-St(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|i&261930}function Ge(e,t){var i=e.entangledLanes|=t;for(e=e.entanglements;i;){var l=31-St(i),c=1<<l;c&t|e[l]&t&&(e[l]|=t),i&=~c}}function ct(e,t){var i=t&-t;return i=(i&42)!==0?1:vn(i),(i&(e.suspendedLanes|t))!==0?0:i}function vn(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function pn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Mi(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:sy(e.type))}function ea(e,t){var i=K.p;try{return K.p=e,t()}finally{K.p=i}}var wn=Math.random().toString(36).slice(2),It="__reactFiber$"+wn,Bt="__reactProps$"+wn,Zn="__reactContainer$"+wn,ta="__reactEvents$"+wn,na="__reactListeners$"+wn,cr="__reactHandles$"+wn,yi="__reactResources$"+wn,Ut="__reactMarker$"+wn;function Nt(e){delete e[It],delete e[Bt],delete e[ta],delete e[na],delete e[cr]}function Xn(e){var t=e[It];if(t)return t;for(var i=e.parentNode;i;){if(t=i[Zn]||i[It]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=Kb(e);e!==null;){if(i=e[It])return i;e=Kb(e)}return t}e=i,i=e.parentNode}return null}function gn(e){if(e=e[It]||e[Zn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ri(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function vi(e){var t=e[yi];return t||(t=e[yi]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Dt(e){e[Ut]=!0}var oi=new Set,za={};function W(e,t){ke(e,t),ke(e+"Capture",t)}function ke(e,t){for(za[e]=t,e=0;e<t.length;e++)oi.add(t[e])}var Pe=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]*$"),ot={},ne={};function Te(e){return In.call(ne,e)?!0:In.call(ot,e)?!1:Pe.test(e)?ne[e]=!0:(ot[e]=!0,!1)}function Oe(e,t,i){if(Te(t))if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+i)}}function Le(e,t,i){if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+i)}}function Me(e,t,i,l){if(l===null)e.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(t,i,""+l)}}function Re(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function kn(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function si(e,t,i){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var c=l.get,d=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(y){i=""+y,d.call(this,y)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return i},setValue:function(y){i=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ht(e){if(!e._valueTracker){var t=kn(e)?"checked":"value";e._valueTracker=si(e,t,""+e[t])}}function Di(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),l="";return e&&(l=kn(e)?e.checked?"true":"false":e.value),e=l,e!==i?(t.setValue(e),!0):!1}function Qn(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var ki=/[\n"\\]/g;function mn(e){return e.replace(ki,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ei(e,t,i,l,c,d,y,E){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),t!=null?y==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Re(t)):e.value!==""+Re(t)&&(e.value=""+Re(t)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),t!=null?Tn(e,y,Re(t)):i!=null?Tn(e,y,Re(i)):l!=null&&e.removeAttribute("value"),c==null&&d!=null&&(e.defaultChecked=!!d),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+Re(E):e.removeAttribute("name")}function al(e,t,i,l,c,d,y,E){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||i!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){Ht(e);return}i=i!=null?""+Re(i):"",t=t!=null?""+Re(t):i,E||t===e.value||(e.value=t),e.defaultValue=t}l=l??c,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=E?e.checked:!!l,e.defaultChecked=!!l,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),Ht(e)}function Tn(e,t,i){t==="number"&&Qn(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function ia(e,t,i,l){if(e=e.options,t){t={};for(var c=0;c<i.length;c++)t["$"+i[c]]=!0;for(i=0;i<e.length;i++)c=t.hasOwnProperty("$"+e[i].value),e[i].selected!==c&&(e[i].selected=c),c&&l&&(e[i].defaultSelected=!0)}else{for(i=""+Re(i),t=null,c=0;c<e.length;c++){if(e[c].value===i){e[c].selected=!0,l&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function ur(e,t,i){if(t!=null&&(t=""+Re(t),t!==e.value&&(e.value=t),i==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=i!=null?""+Re(i):""}function ze(e,t,i,l){if(t==null){if(l!=null){if(i!=null)throw Error(s(92));if(Y(l)){if(1<l.length)throw Error(s(93));l=l[0]}i=l}i==null&&(i=""),t=i}i=Re(t),e.defaultValue=i,l=e.textContent,l===i&&l!==""&&l!==null&&(e.value=l),Ht(e)}function Li(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var Zt=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 ut(e,t,i){var l=t.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,i):typeof i!="number"||i===0||Zt.has(t)?t==="float"?e.cssFloat=i:e[t]=(""+i).trim():e[t]=i+"px"}function Ia(e,t,i){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,i!=null){for(var l in i)!i.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var c in t)l=t[c],t.hasOwnProperty(c)&&i[c]!==l&&ut(e,c,l)}else for(var d in t)t.hasOwnProperty(d)&&ut(e,d,t[d])}function ci(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var rl=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"]]),ll=/^[\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 ue(e){return ll.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function be(){}var Fe=null;function it(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Mt=null,hn=null;function Eo(e){var t=gn(e);if(t&&(e=t.stateNode)){var i=e[Bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ei(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+mn(""+t)+'"][type="radio"]'),t=0;t<i.length;t++){var l=i[t];if(l!==e&&l.form===e.form){var c=l[Bt]||null;if(!c)throw Error(s(90));Ei(l,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<i.length;t++)l=i[t],l.form===e.form&&Di(l)}break e;case"textarea":ur(e,i.value,i.defaultValue);break e;case"select":t=i.value,t!=null&&ia(e,!!i.multiple,t,!1)}}}var ol=!1;function Ug(e,t,i){if(ol)return e(t,i);ol=!0;try{var l=e(t);return l}finally{if(ol=!1,(Mt!==null||hn!==null)&&(ss(),Mt&&(t=Mt,e=hn,hn=Mt=null,Eo(t),e)))for(t=0;t<e.length;t++)Eo(e[t])}}function sl(e,t){var i=e.stateNode;if(i===null)return null;var l=i[Bt]||null;if(l===null)return null;i=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(s(231,t,typeof i));return i}var zi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hc=!1;if(zi)try{var cl={};Object.defineProperty(cl,"passive",{get:function(){Hc=!0}}),window.addEventListener("test",cl,cl),window.removeEventListener("test",cl,cl)}catch{Hc=!1}var aa=null,qc=null,_o=null;function Hg(){if(_o)return _o;var e,t=qc,i=t.length,l,c="value"in aa?aa.value:aa.textContent,d=c.length;for(e=0;e<i&&t[e]===c[e];e++);var y=i-e;for(l=1;l<=y&&t[i-l]===c[d-l];l++);return _o=c.slice(e,1<l?1-l:void 0)}function xo(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function So(){return!0}function qg(){return!1}function An(e){function t(i,l,c,d,y){this._reactName=i,this._targetInst=c,this.type=l,this.nativeEvent=d,this.target=y,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(i=e[E],this[E]=i?i(d):d[E]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?So:qg,this.isPropagationStopped=qg,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=So)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=So)},persist:function(){},isPersistent:So}),t}var Ba={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wo=An(Ba),ul=v({},Ba,{view:0,detail:0}),vw=An(ul),Fc,Gc,fl,To=v({},ul,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==fl&&(fl&&e.type==="mousemove"?(Fc=e.screenX-fl.screenX,Gc=e.screenY-fl.screenY):Gc=Fc=0,fl=e),Fc)},movementY:function(e){return"movementY"in e?e.movementY:Gc}}),Fg=An(To),kw=v({},To,{dataTransfer:0}),Ew=An(kw),_w=v({},ul,{relatedTarget:0}),jc=An(_w),xw=v({},Ba,{animationName:0,elapsedTime:0,pseudoElement:0}),Sw=An(xw),ww=v({},Ba,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Tw=An(ww),Aw=v({},Ba,{data:0}),Gg=An(Aw),Nw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cw={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"},Ow={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mw(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ow[e])?!!t[e]:!1}function Yc(){return Mw}var Rw=v({},ul,{key:function(e){if(e.key){var t=Nw[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=xo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Cw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yc,charCode:function(e){return e.type==="keypress"?xo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?xo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Dw=An(Rw),Lw=v({},To,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jg=An(Lw),zw=v({},ul,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yc}),Iw=An(zw),Bw=v({},Ba,{propertyName:0,elapsedTime:0,pseudoElement:0}),Uw=An(Bw),Hw=v({},To,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),qw=An(Hw),Fw=v({},Ba,{newState:0,oldState:0}),Gw=An(Fw),jw=[9,13,27,32],Pc=zi&&"CompositionEvent"in window,dl=null;zi&&"documentMode"in document&&(dl=document.documentMode);var Yw=zi&&"TextEvent"in window&&!dl,Yg=zi&&(!Pc||dl&&8<dl&&11>=dl),Pg=" ",Kg=!1;function Vg(e,t){switch(e){case"keyup":return jw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $g(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fr=!1;function Pw(e,t){switch(e){case"compositionend":return $g(t);case"keypress":return t.which!==32?null:(Kg=!0,Pg);case"textInput":return e=t.data,e===Pg&&Kg?null:e;default:return null}}function Kw(e,t){if(fr)return e==="compositionend"||!Pc&&Vg(e,t)?(e=Hg(),_o=qc=aa=null,fr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Yg&&t.locale!=="ko"?null:t.data;default:return null}}var Vw={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 Zg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Vw[e.type]:t==="textarea"}function Xg(e,t,i,l){Mt?hn?hn.push(l):hn=[l]:Mt=l,t=ms(t,"onChange"),0<t.length&&(i=new wo("onChange","change",null,i,l),e.push({event:i,listeners:t}))}var pl=null,gl=null;function $w(e){Rb(e,0)}function Ao(e){var t=Ri(e);if(Di(t))return e}function Qg(e,t){if(e==="change")return t}var Jg=!1;if(zi){var Kc;if(zi){var Vc="oninput"in document;if(!Vc){var Wg=document.createElement("div");Wg.setAttribute("oninput","return;"),Vc=typeof Wg.oninput=="function"}Kc=Vc}else Kc=!1;Jg=Kc&&(!document.documentMode||9<document.documentMode)}function em(){pl&&(pl.detachEvent("onpropertychange",tm),gl=pl=null)}function tm(e){if(e.propertyName==="value"&&Ao(gl)){var t=[];Xg(t,gl,e,it(e)),Ug($w,t)}}function Zw(e,t,i){e==="focusin"?(em(),pl=t,gl=i,pl.attachEvent("onpropertychange",tm)):e==="focusout"&&em()}function Xw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ao(gl)}function Qw(e,t){if(e==="click")return Ao(t)}function Jw(e,t){if(e==="input"||e==="change")return Ao(t)}function Ww(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Un=typeof Object.is=="function"?Object.is:Ww;function ml(e,t){if(Un(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),l=Object.keys(t);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var c=i[l];if(!In.call(t,c)||!Un(e[c],t[c]))return!1}return!0}function nm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function im(e,t){var i=nm(e);e=0;for(var l;i;){if(i.nodeType===3){if(l=e+i.textContent.length,e<=t&&l>=t)return{node:i,offset:t-e};e=l}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=nm(i)}}function am(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?am(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function rm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Qn(e.document);t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=Qn(e.document)}return t}function $c(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var eT=zi&&"documentMode"in document&&11>=document.documentMode,dr=null,Zc=null,hl=null,Xc=!1;function lm(e,t,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Xc||dr==null||dr!==Qn(l)||(l=dr,"selectionStart"in l&&$c(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),hl&&ml(hl,l)||(hl=l,l=ms(Zc,"onSelect"),0<l.length&&(t=new wo("onSelect","select",null,t,i),e.push({event:t,listeners:l}),t.target=dr)))}function Ua(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var pr={animationend:Ua("Animation","AnimationEnd"),animationiteration:Ua("Animation","AnimationIteration"),animationstart:Ua("Animation","AnimationStart"),transitionrun:Ua("Transition","TransitionRun"),transitionstart:Ua("Transition","TransitionStart"),transitioncancel:Ua("Transition","TransitionCancel"),transitionend:Ua("Transition","TransitionEnd")},Qc={},om={};zi&&(om=document.createElement("div").style,"AnimationEvent"in window||(delete pr.animationend.animation,delete pr.animationiteration.animation,delete pr.animationstart.animation),"TransitionEvent"in window||delete pr.transitionend.transition);function Ha(e){if(Qc[e])return Qc[e];if(!pr[e])return e;var t=pr[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in om)return Qc[e]=t[i];return e}var sm=Ha("animationend"),cm=Ha("animationiteration"),um=Ha("animationstart"),tT=Ha("transitionrun"),nT=Ha("transitionstart"),iT=Ha("transitioncancel"),fm=Ha("transitionend"),dm=new Map,Jc="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(" ");Jc.push("scrollEnd");function ui(e,t){dm.set(e,t),W(t,[e])}var No=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof n=="object"&&typeof n.emit=="function"){n.emit("uncaughtException",e);return}console.error(e)},Jn=[],gr=0,Wc=0;function Co(){for(var e=gr,t=Wc=gr=0;t<e;){var i=Jn[t];Jn[t++]=null;var l=Jn[t];Jn[t++]=null;var c=Jn[t];Jn[t++]=null;var d=Jn[t];if(Jn[t++]=null,l!==null&&c!==null){var y=l.pending;y===null?c.next=c:(c.next=y.next,y.next=c),l.pending=c}d!==0&&pm(i,c,d)}}function Oo(e,t,i,l){Jn[gr++]=e,Jn[gr++]=t,Jn[gr++]=i,Jn[gr++]=l,Wc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function eu(e,t,i,l){return Oo(e,t,i,l),Mo(e)}function qa(e,t){return Oo(e,null,null,t),Mo(e)}function pm(e,t,i){e.lanes|=i;var l=e.alternate;l!==null&&(l.lanes|=i);for(var c=!1,d=e.return;d!==null;)d.childLanes|=i,l=d.alternate,l!==null&&(l.childLanes|=i),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(c=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,c&&t!==null&&(c=31-St(i),e=d.hiddenUpdates,l=e[c],l===null?e[c]=[t]:l.push(t),t.lane=i|536870912),d):null}function Mo(e){if(50<Ul)throw Ul=0,uf=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var mr={};function aT(e,t,i,l){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Hn(e,t,i,l){return new aT(e,t,i,l)}function tu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ii(e,t){var i=e.alternate;return i===null?(i=Hn(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function gm(e,t){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,t=i.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ro(e,t,i,l,c,d){var y=0;if(l=e,typeof e=="function")tu(e)&&(y=1);else if(typeof e=="string")y=cA(e,i,pe.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case z:return e=Hn(31,i,t,c),e.elementType=z,e.lanes=d,e;case M:return Fa(i.children,c,d,t);case w:y=8,c|=24;break;case q:return e=Hn(12,i,t,c|2),e.elementType=q,e.lanes=d,e;case L:return e=Hn(13,i,t,c),e.elementType=L,e.lanes=d,e;case ce:return e=Hn(19,i,t,c),e.elementType=ce,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Q:y=10;break e;case H:y=9;break e;case te:y=11;break e;case ee:y=14;break e;case fe:y=16,l=null;break e}y=29,i=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=Hn(y,i,t,c),t.elementType=e,t.type=l,t.lanes=d,t}function Fa(e,t,i,l){return e=Hn(7,e,l,t),e.lanes=i,e}function nu(e,t,i){return e=Hn(6,e,null,t),e.lanes=i,e}function mm(e){var t=Hn(18,null,null,0);return t.stateNode=e,t}function iu(e,t,i){return t=Hn(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var hm=new WeakMap;function Wn(e,t){if(typeof e=="object"&&e!==null){var i=hm.get(e);return i!==void 0?i:(t={value:e,source:t,stack:Vn(t)},hm.set(e,t),t)}return{value:e,source:t,stack:Vn(t)}}var hr=[],br=0,Do=null,bl=0,ei=[],ti=0,ra=null,_i=1,xi="";function Bi(e,t){hr[br++]=bl,hr[br++]=Do,Do=e,bl=t}function bm(e,t,i){ei[ti++]=_i,ei[ti++]=xi,ei[ti++]=ra,ra=e;var l=_i;e=xi;var c=32-St(l)-1;l&=~(1<<c),i+=1;var d=32-St(t)+c;if(30<d){var y=c-c%5;d=(l&(1<<y)-1).toString(32),l>>=y,c-=y,_i=1<<32-St(t)+c|i<<c|l,xi=d+e}else _i=1<<d|i<<c|l,xi=e}function au(e){e.return!==null&&(Bi(e,1),bm(e,1,0))}function ru(e){for(;e===Do;)Do=hr[--br],hr[br]=null,bl=hr[--br],hr[br]=null;for(;e===ra;)ra=ei[--ti],ei[ti]=null,xi=ei[--ti],ei[ti]=null,_i=ei[--ti],ei[ti]=null}function ym(e,t){ei[ti++]=_i,ei[ti++]=xi,ei[ti++]=ra,_i=t.id,xi=t.overflow,ra=e}var an=null,Tt=null,et=!1,la=null,ni=!1,lu=Error(s(519));function oa(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw yl(Wn(t,e)),lu}function vm(e){var t=e.stateNode,i=e.type,l=e.memoizedProps;switch(t[It]=e,t[Bt]=l,i){case"dialog":Xe("cancel",t),Xe("close",t);break;case"iframe":case"object":case"embed":Xe("load",t);break;case"video":case"audio":for(i=0;i<ql.length;i++)Xe(ql[i],t);break;case"source":Xe("error",t);break;case"img":case"image":case"link":Xe("error",t),Xe("load",t);break;case"details":Xe("toggle",t);break;case"input":Xe("invalid",t),al(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Xe("invalid",t);break;case"textarea":Xe("invalid",t),ze(t,l.value,l.defaultValue,l.children)}i=l.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||t.textContent===""+i||l.suppressHydrationWarning===!0||Ib(t.textContent,i)?(l.popover!=null&&(Xe("beforetoggle",t),Xe("toggle",t)),l.onScroll!=null&&Xe("scroll",t),l.onScrollEnd!=null&&Xe("scrollend",t),l.onClick!=null&&(t.onclick=be),t=!0):t=!1,t||oa(e,!0)}function km(e){for(an=e.return;an;)switch(an.tag){case 5:case 31:case 13:ni=!1;return;case 27:case 3:ni=!0;return;default:an=an.return}}function yr(e){if(e!==an)return!1;if(!et)return km(e),et=!0,!1;var t=e.tag,i;if((i=t!==3&&t!==27)&&((i=t===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||wf(e.type,e.memoizedProps)),i=!i),i&&Tt&&oa(e),km(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Tt=Pb(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Tt=Pb(e)}else t===27?(t=Tt,Ea(e.type)?(e=Of,Of=null,Tt=e):Tt=t):Tt=an?ai(e.stateNode.nextSibling):null;return!0}function Ga(){Tt=an=null,et=!1}function ou(){var e=la;return e!==null&&(Mn===null?Mn=e:Mn.push.apply(Mn,e),la=null),e}function yl(e){la===null?la=[e]:la.push(e)}var su=T(null),ja=null,Ui=null;function sa(e,t,i){J(su,t._currentValue),t._currentValue=i}function Hi(e){e._currentValue=su.current,_(su)}function cu(e,t,i){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===i)break;e=e.return}}function uu(e,t,i,l){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var d=c.dependencies;if(d!==null){var y=c.child;d=d.firstContext;e:for(;d!==null;){var E=d;d=c;for(var A=0;A<t.length;A++)if(E.context===t[A]){d.lanes|=i,E=d.alternate,E!==null&&(E.lanes|=i),cu(d.return,i,e),l||(y=null);break e}d=E.next}}else if(c.tag===18){if(y=c.return,y===null)throw Error(s(341));y.lanes|=i,d=y.alternate,d!==null&&(d.lanes|=i),cu(y,i,e),y=null}else y=c.child;if(y!==null)y.return=c;else for(y=c;y!==null;){if(y===e){y=null;break}if(c=y.sibling,c!==null){c.return=y.return,y=c;break}y=y.return}c=y}}function vr(e,t,i,l){e=null;for(var c=t,d=!1;c!==null;){if(!d){if((c.flags&524288)!==0)d=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var y=c.alternate;if(y===null)throw Error(s(387));if(y=y.memoizedProps,y!==null){var E=c.type;Un(c.pendingProps.value,y.value)||(e!==null?e.push(E):e=[E])}}else if(c===Ue.current){if(y=c.alternate,y===null)throw Error(s(387));y.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Pl):e=[Pl])}c=c.return}e!==null&&uu(t,e,i,l),t.flags|=262144}function Lo(e){for(e=e.firstContext;e!==null;){if(!Un(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ya(e){ja=e,Ui=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function rn(e){return Em(ja,e)}function zo(e,t){return ja===null&&Ya(e),Em(e,t)}function Em(e,t){var i=t._currentValue;if(t={context:t,memoizedValue:i,next:null},Ui===null){if(e===null)throw Error(s(308));Ui=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ui=Ui.next=t;return i}var rT=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(i,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(i){return i()})}},lT=a.unstable_scheduleCallback,oT=a.unstable_NormalPriority,jt={$$typeof:Q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function fu(){return{controller:new rT,data:new Map,refCount:0}}function vl(e){e.refCount--,e.refCount===0&&lT(oT,function(){e.controller.abort()})}var kl=null,du=0,kr=0,Er=null;function sT(e,t){if(kl===null){var i=kl=[];du=0,kr=hf(),Er={status:"pending",value:void 0,then:function(l){i.push(l)}}}return du++,t.then(_m,_m),t}function _m(){if(--du===0&&kl!==null){Er!==null&&(Er.status="fulfilled");var e=kl;kl=null,kr=0,Er=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function cT(e,t){var i=[],l={status:"pending",value:null,reason:null,then:function(c){i.push(c)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var c=0;c<i.length;c++)(0,i[c])(t)},function(c){for(l.status="rejected",l.reason=c,c=0;c<i.length;c++)(0,i[c])(void 0)}),l}var xm=G.S;G.S=function(e,t){lb=lt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&sT(e,t),xm!==null&&xm(e,t)};var Pa=T(null);function pu(){var e=Pa.current;return e!==null?e:_t.pooledCache}function Io(e,t){t===null?J(Pa,Pa.current):J(Pa,t.pool)}function Sm(){var e=pu();return e===null?null:{parent:jt._currentValue,pool:e}}var _r=Error(s(460)),gu=Error(s(474)),Bo=Error(s(542)),Uo={then:function(){}};function wm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Tm(e,t,i){switch(i=e[i],i===void 0?e.push(t):i!==t&&(t.then(be,be),t=i),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Nm(e),e;default:if(typeof t.status=="string")t.then(be,be);else{if(e=_t,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=l}},function(l){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Nm(e),e}throw Va=t,_r}}function Ka(e){try{var t=e._init;return t(e._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Va=i,_r):i}}var Va=null;function Am(){if(Va===null)throw Error(s(459));var e=Va;return Va=null,e}function Nm(e){if(e===_r||e===Bo)throw Error(s(483))}var xr=null,El=0;function Ho(e){var t=El;return El+=1,xr===null&&(xr=[]),Tm(xr,e,t)}function _l(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function qo(e,t){throw t.$$typeof===k?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Cm(e){function t(R,O){if(e){var I=R.deletions;I===null?(R.deletions=[O],R.flags|=16):I.push(O)}}function i(R,O){if(!e)return null;for(;O!==null;)t(R,O),O=O.sibling;return null}function l(R){for(var O=new Map;R!==null;)R.key!==null?O.set(R.key,R):O.set(R.index,R),R=R.sibling;return O}function c(R,O){return R=Ii(R,O),R.index=0,R.sibling=null,R}function d(R,O,I){return R.index=I,e?(I=R.alternate,I!==null?(I=I.index,I<O?(R.flags|=67108866,O):I):(R.flags|=67108866,O)):(R.flags|=1048576,O)}function y(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function E(R,O,I,$){return O===null||O.tag!==6?(O=nu(I,R.mode,$),O.return=R,O):(O=c(O,I),O.return=R,O)}function A(R,O,I,$){var xe=I.type;return xe===M?P(R,O,I.props.children,$,I.key):O!==null&&(O.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===fe&&Ka(xe)===O.type)?(O=c(O,I.props),_l(O,I),O.return=R,O):(O=Ro(I.type,I.key,I.props,null,R.mode,$),_l(O,I),O.return=R,O)}function B(R,O,I,$){return O===null||O.tag!==4||O.stateNode.containerInfo!==I.containerInfo||O.stateNode.implementation!==I.implementation?(O=iu(I,R.mode,$),O.return=R,O):(O=c(O,I.children||[]),O.return=R,O)}function P(R,O,I,$,xe){return O===null||O.tag!==7?(O=Fa(I,R.mode,$,xe),O.return=R,O):(O=c(O,I),O.return=R,O)}function Z(R,O,I){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=nu(""+O,R.mode,I),O.return=R,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case x:return I=Ro(O.type,O.key,O.props,null,R.mode,I),_l(I,O),I.return=R,I;case C:return O=iu(O,R.mode,I),O.return=R,O;case fe:return O=Ka(O),Z(R,O,I)}if(Y(O)||_e(O))return O=Fa(O,R.mode,I,null),O.return=R,O;if(typeof O.then=="function")return Z(R,Ho(O),I);if(O.$$typeof===Q)return Z(R,zo(R,O),I);qo(R,O)}return null}function U(R,O,I,$){var xe=O!==null?O.key:null;if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return xe!==null?null:E(R,O,""+I,$);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case x:return I.key===xe?A(R,O,I,$):null;case C:return I.key===xe?B(R,O,I,$):null;case fe:return I=Ka(I),U(R,O,I,$)}if(Y(I)||_e(I))return xe!==null?null:P(R,O,I,$,null);if(typeof I.then=="function")return U(R,O,Ho(I),$);if(I.$$typeof===Q)return U(R,O,zo(R,I),$);qo(R,I)}return null}function F(R,O,I,$,xe){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return R=R.get(I)||null,E(O,R,""+$,xe);if(typeof $=="object"&&$!==null){switch($.$$typeof){case x:return R=R.get($.key===null?I:$.key)||null,A(O,R,$,xe);case C:return R=R.get($.key===null?I:$.key)||null,B(O,R,$,xe);case fe:return $=Ka($),F(R,O,I,$,xe)}if(Y($)||_e($))return R=R.get(I)||null,P(O,R,$,xe,null);if(typeof $.then=="function")return F(R,O,I,Ho($),xe);if($.$$typeof===Q)return F(R,O,I,zo(O,$),xe);qo(O,$)}return null}function ye(R,O,I,$){for(var xe=null,at=null,Ee=O,Ye=O=0,We=null;Ee!==null&&Ye<I.length;Ye++){Ee.index>Ye?(We=Ee,Ee=null):We=Ee.sibling;var rt=U(R,Ee,I[Ye],$);if(rt===null){Ee===null&&(Ee=We);break}e&&Ee&&rt.alternate===null&&t(R,Ee),O=d(rt,O,Ye),at===null?xe=rt:at.sibling=rt,at=rt,Ee=We}if(Ye===I.length)return i(R,Ee),et&&Bi(R,Ye),xe;if(Ee===null){for(;Ye<I.length;Ye++)Ee=Z(R,I[Ye],$),Ee!==null&&(O=d(Ee,O,Ye),at===null?xe=Ee:at.sibling=Ee,at=Ee);return et&&Bi(R,Ye),xe}for(Ee=l(Ee);Ye<I.length;Ye++)We=F(Ee,R,Ye,I[Ye],$),We!==null&&(e&&We.alternate!==null&&Ee.delete(We.key===null?Ye:We.key),O=d(We,O,Ye),at===null?xe=We:at.sibling=We,at=We);return e&&Ee.forEach(function(Ta){return t(R,Ta)}),et&&Bi(R,Ye),xe}function Ne(R,O,I,$){if(I==null)throw Error(s(151));for(var xe=null,at=null,Ee=O,Ye=O=0,We=null,rt=I.next();Ee!==null&&!rt.done;Ye++,rt=I.next()){Ee.index>Ye?(We=Ee,Ee=null):We=Ee.sibling;var Ta=U(R,Ee,rt.value,$);if(Ta===null){Ee===null&&(Ee=We);break}e&&Ee&&Ta.alternate===null&&t(R,Ee),O=d(Ta,O,Ye),at===null?xe=Ta:at.sibling=Ta,at=Ta,Ee=We}if(rt.done)return i(R,Ee),et&&Bi(R,Ye),xe;if(Ee===null){for(;!rt.done;Ye++,rt=I.next())rt=Z(R,rt.value,$),rt!==null&&(O=d(rt,O,Ye),at===null?xe=rt:at.sibling=rt,at=rt);return et&&Bi(R,Ye),xe}for(Ee=l(Ee);!rt.done;Ye++,rt=I.next())rt=F(Ee,R,Ye,rt.value,$),rt!==null&&(e&&rt.alternate!==null&&Ee.delete(rt.key===null?Ye:rt.key),O=d(rt,O,Ye),at===null?xe=rt:at.sibling=rt,at=rt);return e&&Ee.forEach(function(kA){return t(R,kA)}),et&&Bi(R,Ye),xe}function bt(R,O,I,$){if(typeof I=="object"&&I!==null&&I.type===M&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case x:e:{for(var xe=I.key;O!==null;){if(O.key===xe){if(xe=I.type,xe===M){if(O.tag===7){i(R,O.sibling),$=c(O,I.props.children),$.return=R,R=$;break e}}else if(O.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===fe&&Ka(xe)===O.type){i(R,O.sibling),$=c(O,I.props),_l($,I),$.return=R,R=$;break e}i(R,O);break}else t(R,O);O=O.sibling}I.type===M?($=Fa(I.props.children,R.mode,$,I.key),$.return=R,R=$):($=Ro(I.type,I.key,I.props,null,R.mode,$),_l($,I),$.return=R,R=$)}return y(R);case C:e:{for(xe=I.key;O!==null;){if(O.key===xe)if(O.tag===4&&O.stateNode.containerInfo===I.containerInfo&&O.stateNode.implementation===I.implementation){i(R,O.sibling),$=c(O,I.children||[]),$.return=R,R=$;break e}else{i(R,O);break}else t(R,O);O=O.sibling}$=iu(I,R.mode,$),$.return=R,R=$}return y(R);case fe:return I=Ka(I),bt(R,O,I,$)}if(Y(I))return ye(R,O,I,$);if(_e(I)){if(xe=_e(I),typeof xe!="function")throw Error(s(150));return I=xe.call(I),Ne(R,O,I,$)}if(typeof I.then=="function")return bt(R,O,Ho(I),$);if(I.$$typeof===Q)return bt(R,O,zo(R,I),$);qo(R,I)}return typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint"?(I=""+I,O!==null&&O.tag===6?(i(R,O.sibling),$=c(O,I),$.return=R,R=$):(i(R,O),$=nu(I,R.mode,$),$.return=R,R=$),y(R)):i(R,O)}return function(R,O,I,$){try{El=0;var xe=bt(R,O,I,$);return xr=null,xe}catch(Ee){if(Ee===_r||Ee===Bo)throw Ee;var at=Hn(29,Ee,null,R.mode);return at.lanes=$,at.return=R,at}}}var $a=Cm(!0),Om=Cm(!1),ca=!1;function mu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ua(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function fa(e,t,i){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(st&2)!==0){var c=l.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),l.pending=t,t=Mo(e),pm(e,null,i),t}return Oo(e,l,t,i),Mo(e)}function xl(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,i|=l,t.lanes=i,Ge(e,i)}}function bu(e,t){var i=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var c=null,d=null;if(i=i.firstBaseUpdate,i!==null){do{var y={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};d===null?c=d=y:d=d.next=y,i=i.next}while(i!==null);d===null?c=d=t:d=d.next=t}else c=d=t;i={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:l.shared,callbacks:l.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}var yu=!1;function Sl(){if(yu){var e=Er;if(e!==null)throw e}}function wl(e,t,i,l){yu=!1;var c=e.updateQueue;ca=!1;var d=c.firstBaseUpdate,y=c.lastBaseUpdate,E=c.shared.pending;if(E!==null){c.shared.pending=null;var A=E,B=A.next;A.next=null,y===null?d=B:y.next=B,y=A;var P=e.alternate;P!==null&&(P=P.updateQueue,E=P.lastBaseUpdate,E!==y&&(E===null?P.firstBaseUpdate=B:E.next=B,P.lastBaseUpdate=A))}if(d!==null){var Z=c.baseState;y=0,P=B=A=null,E=d;do{var U=E.lane&-536870913,F=U!==E.lane;if(F?(Je&U)===U:(l&U)===U){U!==0&&U===kr&&(yu=!0),P!==null&&(P=P.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var ye=e,Ne=E;U=t;var bt=i;switch(Ne.tag){case 1:if(ye=Ne.payload,typeof ye=="function"){Z=ye.call(bt,Z,U);break e}Z=ye;break e;case 3:ye.flags=ye.flags&-65537|128;case 0:if(ye=Ne.payload,U=typeof ye=="function"?ye.call(bt,Z,U):ye,U==null)break e;Z=v({},Z,U);break e;case 2:ca=!0}}U=E.callback,U!==null&&(e.flags|=64,F&&(e.flags|=8192),F=c.callbacks,F===null?c.callbacks=[U]:F.push(U))}else F={lane:U,tag:E.tag,payload:E.payload,callback:E.callback,next:null},P===null?(B=P=F,A=Z):P=P.next=F,y|=U;if(E=E.next,E===null){if(E=c.shared.pending,E===null)break;F=E,E=F.next,F.next=null,c.lastBaseUpdate=F,c.shared.pending=null}}while(!0);P===null&&(A=Z),c.baseState=A,c.firstBaseUpdate=B,c.lastBaseUpdate=P,d===null&&(c.shared.lanes=0),ha|=y,e.lanes=y,e.memoizedState=Z}}function Mm(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Rm(e,t){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)Mm(i[e],t)}var Sr=T(null),Fo=T(0);function Dm(e,t){e=$i,J(Fo,e),J(Sr,t),$i=e|t.baseLanes}function vu(){J(Fo,$i),J(Sr,Sr.current)}function ku(){$i=Fo.current,_(Sr),_(Fo)}var qn=T(null),ii=null;function da(e){var t=e.alternate;J(qt,qt.current&1),J(qn,e),ii===null&&(t===null||Sr.current!==null||t.memoizedState!==null)&&(ii=e)}function Eu(e){J(qt,qt.current),J(qn,e),ii===null&&(ii=e)}function Lm(e){e.tag===22?(J(qt,qt.current),J(qn,e),ii===null&&(ii=e)):pa()}function pa(){J(qt,qt.current),J(qn,qn.current)}function Fn(e){_(qn),ii===e&&(ii=null),_(qt)}var qt=T(0);function Go(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Nf(i)||Cf(i)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var qi=0,je=null,mt=null,Yt=null,jo=!1,wr=!1,Za=!1,Yo=0,Tl=0,Tr=null,uT=0;function Lt(){throw Error(s(321))}function _u(e,t){if(t===null)return!1;for(var i=0;i<t.length&&i<e.length;i++)if(!Un(e[i],t[i]))return!1;return!0}function xu(e,t,i,l,c,d){return qi=d,je=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e===null||e.memoizedState===null?bh:Uu,Za=!1,d=i(l,c),Za=!1,wr&&(d=Im(t,i,l,c)),zm(e),d}function zm(e){G.H=Cl;var t=mt!==null&&mt.next!==null;if(qi=0,Yt=mt=je=null,jo=!1,Tl=0,Tr=null,t)throw Error(s(300));e===null||Pt||(e=e.dependencies,e!==null&&Lo(e)&&(Pt=!0))}function Im(e,t,i,l){je=e;var c=0;do{if(wr&&(Tr=null),Tl=0,wr=!1,25<=c)throw Error(s(301));if(c+=1,Yt=mt=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}G.H=yh,d=t(i,l)}while(wr);return d}function fT(){var e=G.H,t=e.useState()[0];return t=typeof t.then=="function"?Al(t):t,e=e.useState()[0],(mt!==null?mt.memoizedState:null)!==e&&(je.flags|=1024),t}function Su(){var e=Yo!==0;return Yo=0,e}function wu(e,t,i){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i}function Tu(e){if(jo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}jo=!1}qi=0,Yt=mt=je=null,wr=!1,Tl=Yo=0,Tr=null}function En(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yt===null?je.memoizedState=Yt=e:Yt=Yt.next=e,Yt}function Ft(){if(mt===null){var e=je.alternate;e=e!==null?e.memoizedState:null}else e=mt.next;var t=Yt===null?je.memoizedState:Yt.next;if(t!==null)Yt=t,mt=e;else{if(e===null)throw je.alternate===null?Error(s(467)):Error(s(310));mt=e,e={memoizedState:mt.memoizedState,baseState:mt.baseState,baseQueue:mt.baseQueue,queue:mt.queue,next:null},Yt===null?je.memoizedState=Yt=e:Yt=Yt.next=e}return Yt}function Po(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Al(e){var t=Tl;return Tl+=1,Tr===null&&(Tr=[]),e=Tm(Tr,e,t),t=je,(Yt===null?t.memoizedState:Yt.next)===null&&(t=t.alternate,G.H=t===null||t.memoizedState===null?bh:Uu),e}function Ko(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Al(e);if(e.$$typeof===Q)return rn(e)}throw Error(s(438,String(e)))}function Au(e){var t=null,i=je.updateQueue;if(i!==null&&(t=i.memoCache),t==null){var l=je.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),i===null&&(i=Po(),je.updateQueue=i),i.memoCache=t,i=t.data[t.index],i===void 0)for(i=t.data[t.index]=Array(e),l=0;l<e;l++)i[l]=se;return t.index++,i}function Fi(e,t){return typeof t=="function"?t(e):t}function Vo(e){var t=Ft();return Nu(t,mt,e)}function Nu(e,t,i){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=i;var c=e.baseQueue,d=l.pending;if(d!==null){if(c!==null){var y=c.next;c.next=d.next,d.next=y}t.baseQueue=c=d,l.pending=null}if(d=e.baseState,c===null)e.memoizedState=d;else{t=c.next;var E=y=null,A=null,B=t,P=!1;do{var Z=B.lane&-536870913;if(Z!==B.lane?(Je&Z)===Z:(qi&Z)===Z){var U=B.revertLane;if(U===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),Z===kr&&(P=!0);else if((qi&U)===U){B=B.next,U===kr&&(P=!0);continue}else Z={lane:0,revertLane:B.revertLane,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},A===null?(E=A=Z,y=d):A=A.next=Z,je.lanes|=U,ha|=U;Z=B.action,Za&&i(d,Z),d=B.hasEagerState?B.eagerState:i(d,Z)}else U={lane:Z,revertLane:B.revertLane,gesture:B.gesture,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},A===null?(E=A=U,y=d):A=A.next=U,je.lanes|=Z,ha|=Z;B=B.next}while(B!==null&&B!==t);if(A===null?y=d:A.next=E,!Un(d,e.memoizedState)&&(Pt=!0,P&&(i=Er,i!==null)))throw i;e.memoizedState=d,e.baseState=y,e.baseQueue=A,l.lastRenderedState=d}return c===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Cu(e){var t=Ft(),i=t.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=e;var l=i.dispatch,c=i.pending,d=t.memoizedState;if(c!==null){i.pending=null;var y=c=c.next;do d=e(d,y.action),y=y.next;while(y!==c);Un(d,t.memoizedState)||(Pt=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),i.lastRenderedState=d}return[d,l]}function Bm(e,t,i){var l=je,c=Ft(),d=et;if(d){if(i===void 0)throw Error(s(407));i=i()}else i=t();var y=!Un((mt||c).memoizedState,i);if(y&&(c.memoizedState=i,Pt=!0),c=c.queue,Ru(qm.bind(null,l,c,e),[e]),c.getSnapshot!==t||y||Yt!==null&&Yt.memoizedState.tag&1){if(l.flags|=2048,Ar(9,{destroy:void 0},Hm.bind(null,l,c,i,t),null),_t===null)throw Error(s(349));d||(qi&127)!==0||Um(l,t,i)}return i}function Um(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=je.updateQueue,t===null?(t=Po(),je.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function Hm(e,t,i,l){t.value=i,t.getSnapshot=l,Fm(t)&&Gm(e)}function qm(e,t,i){return i(function(){Fm(t)&&Gm(e)})}function Fm(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!Un(e,i)}catch{return!0}}function Gm(e){var t=qa(e,2);t!==null&&Rn(t,e,2)}function Ou(e){var t=En();if(typeof e=="function"){var i=e;if(e=i(),Za){Et(!0);try{i()}finally{Et(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fi,lastRenderedState:e},t}function jm(e,t,i,l){return e.baseState=i,Nu(e,mt,typeof l=="function"?l:Fi)}function dT(e,t,i,l,c){if(Xo(e))throw Error(s(485));if(e=t.action,e!==null){var d={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){d.listeners.push(y)}};G.T!==null?i(!0):d.isTransition=!1,l(d),i=t.pending,i===null?(d.next=t.pending=d,Ym(t,d)):(d.next=i.next,t.pending=i.next=d)}}function Ym(e,t){var i=t.action,l=t.payload,c=e.state;if(t.isTransition){var d=G.T,y={};G.T=y;try{var E=i(c,l),A=G.S;A!==null&&A(y,E),Pm(e,t,E)}catch(B){Mu(e,t,B)}finally{d!==null&&y.types!==null&&(d.types=y.types),G.T=d}}else try{d=i(c,l),Pm(e,t,d)}catch(B){Mu(e,t,B)}}function Pm(e,t,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(l){Km(e,t,l)},function(l){return Mu(e,t,l)}):Km(e,t,i)}function Km(e,t,i){t.status="fulfilled",t.value=i,Vm(t),e.state=i,t=e.pending,t!==null&&(i=t.next,i===t?e.pending=null:(i=i.next,t.next=i,Ym(e,i)))}function Mu(e,t,i){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=i,Vm(t),t=t.next;while(t!==l)}e.action=null}function Vm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function $m(e,t){return t}function Zm(e,t){if(et){var i=_t.formState;if(i!==null){e:{var l=je;if(et){if(Tt){t:{for(var c=Tt,d=ni;c.nodeType!==8;){if(!d){c=null;break t}if(c=ai(c.nextSibling),c===null){c=null;break t}}d=c.data,c=d==="F!"||d==="F"?c:null}if(c){Tt=ai(c.nextSibling),l=c.data==="F!";break e}}oa(l)}l=!1}l&&(t=i[0])}}return i=En(),i.memoizedState=i.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$m,lastRenderedState:t},i.queue=l,i=gh.bind(null,je,l),l.dispatch=i,l=Ou(!1),d=Bu.bind(null,je,!1,l.queue),l=En(),c={state:t,dispatch:null,action:e,pending:null},l.queue=c,i=dT.bind(null,je,c,d,i),c.dispatch=i,l.memoizedState=e,[t,i,!1]}function Xm(e){var t=Ft();return Qm(t,mt,e)}function Qm(e,t,i){if(t=Nu(e,t,$m)[0],e=Vo(Fi)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Al(t)}catch(y){throw y===_r?Bo:y}else l=t;t=Ft();var c=t.queue,d=c.dispatch;return i!==t.memoizedState&&(je.flags|=2048,Ar(9,{destroy:void 0},pT.bind(null,c,i),null)),[l,d,e]}function pT(e,t){e.action=t}function Jm(e){var t=Ft(),i=mt;if(i!==null)return Qm(t,i,e);Ft(),t=t.memoizedState,i=Ft();var l=i.queue.dispatch;return i.memoizedState=e,[t,l,!1]}function Ar(e,t,i,l){return e={tag:e,create:i,deps:l,inst:t,next:null},t=je.updateQueue,t===null&&(t=Po(),je.updateQueue=t),i=t.lastEffect,i===null?t.lastEffect=e.next=e:(l=i.next,i.next=e,e.next=l,t.lastEffect=e),e}function Wm(){return Ft().memoizedState}function $o(e,t,i,l){var c=En();je.flags|=e,c.memoizedState=Ar(1|t,{destroy:void 0},i,l===void 0?null:l)}function Zo(e,t,i,l){var c=Ft();l=l===void 0?null:l;var d=c.memoizedState.inst;mt!==null&&l!==null&&_u(l,mt.memoizedState.deps)?c.memoizedState=Ar(t,d,i,l):(je.flags|=e,c.memoizedState=Ar(1|t,d,i,l))}function eh(e,t){$o(8390656,8,e,t)}function Ru(e,t){Zo(2048,8,e,t)}function gT(e){je.flags|=4;var t=je.updateQueue;if(t===null)t=Po(),je.updateQueue=t,t.events=[e];else{var i=t.events;i===null?t.events=[e]:i.push(e)}}function th(e){var t=Ft().memoizedState;return gT({ref:t,nextImpl:e}),function(){if((st&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function nh(e,t){return Zo(4,2,e,t)}function ih(e,t){return Zo(4,4,e,t)}function ah(e,t){if(typeof t=="function"){e=e();var i=t(e);return function(){typeof i=="function"?i():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function rh(e,t,i){i=i!=null?i.concat([e]):null,Zo(4,4,ah.bind(null,t,e),i)}function Du(){}function lh(e,t){var i=Ft();t=t===void 0?null:t;var l=i.memoizedState;return t!==null&&_u(t,l[1])?l[0]:(i.memoizedState=[e,t],e)}function oh(e,t){var i=Ft();t=t===void 0?null:t;var l=i.memoizedState;if(t!==null&&_u(t,l[1]))return l[0];if(l=e(),Za){Et(!0);try{e()}finally{Et(!1)}}return i.memoizedState=[l,t],l}function Lu(e,t,i){return i===void 0||(qi&1073741824)!==0&&(Je&261930)===0?e.memoizedState=t:(e.memoizedState=i,e=sb(),je.lanes|=e,ha|=e,i)}function sh(e,t,i,l){return Un(i,t)?i:Sr.current!==null?(e=Lu(e,i,l),Un(e,t)||(Pt=!0),e):(qi&42)===0||(qi&1073741824)!==0&&(Je&261930)===0?(Pt=!0,e.memoizedState=i):(e=sb(),je.lanes|=e,ha|=e,t)}function ch(e,t,i,l,c){var d=K.p;K.p=d!==0&&8>d?d:8;var y=G.T,E={};G.T=E,Bu(e,!1,t,i);try{var A=c(),B=G.S;if(B!==null&&B(E,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var P=cT(A,l);Nl(e,t,P,Yn(e))}else Nl(e,t,l,Yn(e))}catch(Z){Nl(e,t,{then:function(){},status:"rejected",reason:Z},Yn())}finally{K.p=d,y!==null&&E.types!==null&&(y.types=E.types),G.T=y}}function mT(){}function zu(e,t,i,l){if(e.tag!==5)throw Error(s(476));var c=uh(e).queue;ch(e,c,t,ve,i===null?mT:function(){return fh(e),i(l)})}function uh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ve,baseState:ve,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fi,lastRenderedState:ve},next:null};var i={};return t.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fi,lastRenderedState:i},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function fh(e){var t=uh(e);t.next===null&&(t=e.alternate.memoizedState),Nl(e,t.next.queue,{},Yn())}function Iu(){return rn(Pl)}function dh(){return Ft().memoizedState}function ph(){return Ft().memoizedState}function hT(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var i=Yn();e=ua(i);var l=fa(t,e,i);l!==null&&(Rn(l,t,i),xl(l,t,i)),t={cache:fu()},e.payload=t;return}t=t.return}}function bT(e,t,i){var l=Yn();i={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Xo(e)?mh(t,i):(i=eu(e,t,i,l),i!==null&&(Rn(i,e,l),hh(i,t,l)))}function gh(e,t,i){var l=Yn();Nl(e,t,i,l)}function Nl(e,t,i,l){var c={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(Xo(e))mh(t,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var y=t.lastRenderedState,E=d(y,i);if(c.hasEagerState=!0,c.eagerState=E,Un(E,y))return Oo(e,t,c,0),_t===null&&Co(),!1}catch{}if(i=eu(e,t,c,l),i!==null)return Rn(i,e,l),hh(i,t,l),!0}return!1}function Bu(e,t,i,l){if(l={lane:2,revertLane:hf(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Xo(e)){if(t)throw Error(s(479))}else t=eu(e,i,l,2),t!==null&&Rn(t,e,2)}function Xo(e){var t=e.alternate;return e===je||t!==null&&t===je}function mh(e,t){wr=jo=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function hh(e,t,i){if((i&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,i|=l,t.lanes=i,Ge(e,i)}}var Cl={readContext:rn,use:Ko,useCallback:Lt,useContext:Lt,useEffect:Lt,useImperativeHandle:Lt,useLayoutEffect:Lt,useInsertionEffect:Lt,useMemo:Lt,useReducer:Lt,useRef:Lt,useState:Lt,useDebugValue:Lt,useDeferredValue:Lt,useTransition:Lt,useSyncExternalStore:Lt,useId:Lt,useHostTransitionStatus:Lt,useFormState:Lt,useActionState:Lt,useOptimistic:Lt,useMemoCache:Lt,useCacheRefresh:Lt};Cl.useEffectEvent=Lt;var bh={readContext:rn,use:Ko,useCallback:function(e,t){return En().memoizedState=[e,t===void 0?null:t],e},useContext:rn,useEffect:eh,useImperativeHandle:function(e,t,i){i=i!=null?i.concat([e]):null,$o(4194308,4,ah.bind(null,t,e),i)},useLayoutEffect:function(e,t){return $o(4194308,4,e,t)},useInsertionEffect:function(e,t){$o(4,2,e,t)},useMemo:function(e,t){var i=En();t=t===void 0?null:t;var l=e();if(Za){Et(!0);try{e()}finally{Et(!1)}}return i.memoizedState=[l,t],l},useReducer:function(e,t,i){var l=En();if(i!==void 0){var c=i(t);if(Za){Et(!0);try{i(t)}finally{Et(!1)}}}else c=t;return l.memoizedState=l.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},l.queue=e,e=e.dispatch=bT.bind(null,je,e),[l.memoizedState,e]},useRef:function(e){var t=En();return e={current:e},t.memoizedState=e},useState:function(e){e=Ou(e);var t=e.queue,i=gh.bind(null,je,t);return t.dispatch=i,[e.memoizedState,i]},useDebugValue:Du,useDeferredValue:function(e,t){var i=En();return Lu(i,e,t)},useTransition:function(){var e=Ou(!1);return e=ch.bind(null,je,e.queue,!0,!1),En().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,i){var l=je,c=En();if(et){if(i===void 0)throw Error(s(407));i=i()}else{if(i=t(),_t===null)throw Error(s(349));(Je&127)!==0||Um(l,t,i)}c.memoizedState=i;var d={value:i,getSnapshot:t};return c.queue=d,eh(qm.bind(null,l,d,e),[e]),l.flags|=2048,Ar(9,{destroy:void 0},Hm.bind(null,l,d,i,t),null),i},useId:function(){var e=En(),t=_t.identifierPrefix;if(et){var i=xi,l=_i;i=(l&~(1<<32-St(l)-1)).toString(32)+i,t="_"+t+"R_"+i,i=Yo++,0<i&&(t+="H"+i.toString(32)),t+="_"}else i=uT++,t="_"+t+"r_"+i.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Iu,useFormState:Zm,useActionState:Zm,useOptimistic:function(e){var t=En();t.memoizedState=t.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=i,t=Bu.bind(null,je,!0,i),i.dispatch=t,[e,t]},useMemoCache:Au,useCacheRefresh:function(){return En().memoizedState=hT.bind(null,je)},useEffectEvent:function(e){var t=En(),i={impl:e};return t.memoizedState=i,function(){if((st&2)!==0)throw Error(s(440));return i.impl.apply(void 0,arguments)}}},Uu={readContext:rn,use:Ko,useCallback:lh,useContext:rn,useEffect:Ru,useImperativeHandle:rh,useInsertionEffect:nh,useLayoutEffect:ih,useMemo:oh,useReducer:Vo,useRef:Wm,useState:function(){return Vo(Fi)},useDebugValue:Du,useDeferredValue:function(e,t){var i=Ft();return sh(i,mt.memoizedState,e,t)},useTransition:function(){var e=Vo(Fi)[0],t=Ft().memoizedState;return[typeof e=="boolean"?e:Al(e),t]},useSyncExternalStore:Bm,useId:dh,useHostTransitionStatus:Iu,useFormState:Xm,useActionState:Xm,useOptimistic:function(e,t){var i=Ft();return jm(i,mt,e,t)},useMemoCache:Au,useCacheRefresh:ph};Uu.useEffectEvent=th;var yh={readContext:rn,use:Ko,useCallback:lh,useContext:rn,useEffect:Ru,useImperativeHandle:rh,useInsertionEffect:nh,useLayoutEffect:ih,useMemo:oh,useReducer:Cu,useRef:Wm,useState:function(){return Cu(Fi)},useDebugValue:Du,useDeferredValue:function(e,t){var i=Ft();return mt===null?Lu(i,e,t):sh(i,mt.memoizedState,e,t)},useTransition:function(){var e=Cu(Fi)[0],t=Ft().memoizedState;return[typeof e=="boolean"?e:Al(e),t]},useSyncExternalStore:Bm,useId:dh,useHostTransitionStatus:Iu,useFormState:Jm,useActionState:Jm,useOptimistic:function(e,t){var i=Ft();return mt!==null?jm(i,mt,e,t):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:Au,useCacheRefresh:ph};yh.useEffectEvent=th;function Hu(e,t,i,l){t=e.memoizedState,i=i(l,t),i=i==null?t:v({},t,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var qu={enqueueSetState:function(e,t,i){e=e._reactInternals;var l=Yn(),c=ua(l);c.payload=t,i!=null&&(c.callback=i),t=fa(e,c,l),t!==null&&(Rn(t,e,l),xl(t,e,l))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var l=Yn(),c=ua(l);c.tag=1,c.payload=t,i!=null&&(c.callback=i),t=fa(e,c,l),t!==null&&(Rn(t,e,l),xl(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=Yn(),l=ua(i);l.tag=2,t!=null&&(l.callback=t),t=fa(e,l,i),t!==null&&(Rn(t,e,i),xl(t,e,i))}};function vh(e,t,i,l,c,d,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,d,y):t.prototype&&t.prototype.isPureReactComponent?!ml(i,l)||!ml(c,d):!0}function kh(e,t,i,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,l),t.state!==e&&qu.enqueueReplaceState(t,t.state,null)}function Xa(e,t){var i=t;if("ref"in t){i={};for(var l in t)l!=="ref"&&(i[l]=t[l])}if(e=e.defaultProps){i===t&&(i=v({},i));for(var c in e)i[c]===void 0&&(i[c]=e[c])}return i}function Eh(e){No(e)}function _h(e){console.error(e)}function xh(e){No(e)}function Qo(e,t){try{var i=e.onUncaughtError;i(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Sh(e,t,i){try{var l=e.onCaughtError;l(i.value,{componentStack:i.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Fu(e,t,i){return i=ua(i),i.tag=3,i.payload={element:null},i.callback=function(){Qo(e,t)},i}function wh(e){return e=ua(e),e.tag=3,e}function Th(e,t,i,l){var c=i.type.getDerivedStateFromError;if(typeof c=="function"){var d=l.value;e.payload=function(){return c(d)},e.callback=function(){Sh(t,i,l)}}var y=i.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){Sh(t,i,l),typeof c!="function"&&(ba===null?ba=new Set([this]):ba.add(this));var E=l.stack;this.componentDidCatch(l.value,{componentStack:E!==null?E:""})})}function yT(e,t,i,l,c){if(i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=i.alternate,t!==null&&vr(t,i,c,!0),i=qn.current,i!==null){switch(i.tag){case 31:case 13:return ii===null?cs():i.alternate===null&&zt===0&&(zt=3),i.flags&=-257,i.flags|=65536,i.lanes=c,l===Uo?i.flags|=16384:(t=i.updateQueue,t===null?i.updateQueue=new Set([l]):t.add(l),pf(e,l,c)),!1;case 22:return i.flags|=65536,l===Uo?i.flags|=16384:(t=i.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},i.updateQueue=t):(i=t.retryQueue,i===null?t.retryQueue=new Set([l]):i.add(l)),pf(e,l,c)),!1}throw Error(s(435,i.tag))}return pf(e,l,c),cs(),!1}if(et)return t=qn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,l!==lu&&(e=Error(s(422),{cause:l}),yl(Wn(e,i)))):(l!==lu&&(t=Error(s(423),{cause:l}),yl(Wn(t,i))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,l=Wn(l,i),c=Fu(e.stateNode,l,c),bu(e,c),zt!==4&&(zt=2)),!1;var d=Error(s(520),{cause:l});if(d=Wn(d,i),Bl===null?Bl=[d]:Bl.push(d),zt!==4&&(zt=2),t===null)return!0;l=Wn(l,i),i=t;do{switch(i.tag){case 3:return i.flags|=65536,e=c&-c,i.lanes|=e,e=Fu(i.stateNode,l,e),bu(i,e),!1;case 1:if(t=i.type,d=i.stateNode,(i.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(ba===null||!ba.has(d))))return i.flags|=65536,c&=-c,i.lanes|=c,c=wh(c),Th(c,e,i,l),bu(i,c),!1}i=i.return}while(i!==null);return!1}var Gu=Error(s(461)),Pt=!1;function ln(e,t,i,l){t.child=e===null?Om(t,null,i,l):$a(t,e.child,i,l)}function Ah(e,t,i,l,c){i=i.render;var d=t.ref;if("ref"in l){var y={};for(var E in l)E!=="ref"&&(y[E]=l[E])}else y=l;return Ya(t),l=xu(e,t,i,y,d,c),E=Su(),e!==null&&!Pt?(wu(e,t,c),Gi(e,t,c)):(et&&E&&au(t),t.flags|=1,ln(e,t,l,c),t.child)}function Nh(e,t,i,l,c){if(e===null){var d=i.type;return typeof d=="function"&&!tu(d)&&d.defaultProps===void 0&&i.compare===null?(t.tag=15,t.type=d,Ch(e,t,d,l,c)):(e=Ro(i.type,null,l,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!Xu(e,c)){var y=d.memoizedProps;if(i=i.compare,i=i!==null?i:ml,i(y,l)&&e.ref===t.ref)return Gi(e,t,c)}return t.flags|=1,e=Ii(d,l),e.ref=t.ref,e.return=t,t.child=e}function Ch(e,t,i,l,c){if(e!==null){var d=e.memoizedProps;if(ml(d,l)&&e.ref===t.ref)if(Pt=!1,t.pendingProps=l=d,Xu(e,c))(e.flags&131072)!==0&&(Pt=!0);else return t.lanes=e.lanes,Gi(e,t,c)}return ju(e,t,i,l,c)}function Oh(e,t,i,l){var c=l.children,d=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(d=d!==null?d.baseLanes|i:i,e!==null){for(l=t.child=e.child,c=0;l!==null;)c=c|l.lanes|l.childLanes,l=l.sibling;l=c&~d}else l=0,t.child=null;return Mh(e,t,d,i,l)}if((i&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Io(t,d!==null?d.cachePool:null),d!==null?Dm(t,d):vu(),Lm(t);else return l=t.lanes=536870912,Mh(e,t,d!==null?d.baseLanes|i:i,i,l)}else d!==null?(Io(t,d.cachePool),Dm(t,d),pa(),t.memoizedState=null):(e!==null&&Io(t,null),vu(),pa());return ln(e,t,c,i),t.child}function Ol(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Mh(e,t,i,l,c){var d=pu();return d=d===null?null:{parent:jt._currentValue,pool:d},t.memoizedState={baseLanes:i,cachePool:d},e!==null&&Io(t,null),vu(),Lm(t),e!==null&&vr(e,t,l,!0),t.childLanes=c,null}function Jo(e,t){return t=es({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Rh(e,t,i){return $a(t,e.child,null,i),e=Jo(t,t.pendingProps),e.flags|=2,Fn(t),t.memoizedState=null,e}function vT(e,t,i){var l=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(et){if(l.mode==="hidden")return e=Jo(t,l),t.lanes=536870912,Ol(null,e);if(Eu(t),(e=Tt)?(e=Yb(e,ni),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ra!==null?{id:_i,overflow:xi}:null,retryLane:536870912,hydrationErrors:null},i=mm(e),i.return=t,t.child=i,an=t,Tt=null)):e=null,e===null)throw oa(t);return t.lanes=536870912,null}return Jo(t,l)}var d=e.memoizedState;if(d!==null){var y=d.dehydrated;if(Eu(t),c)if(t.flags&256)t.flags&=-257,t=Rh(e,t,i);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Pt||vr(e,t,i,!1),c=(i&e.childLanes)!==0,Pt||c){if(l=_t,l!==null&&(y=ct(l,i),y!==0&&y!==d.retryLane))throw d.retryLane=y,qa(e,y),Rn(l,e,y),Gu;cs(),t=Rh(e,t,i)}else e=d.treeContext,Tt=ai(y.nextSibling),an=t,et=!0,la=null,ni=!1,e!==null&&ym(t,e),t=Jo(t,l),t.flags|=4096;return t}return e=Ii(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Wo(e,t){var i=t.ref;if(i===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(s(284));(e===null||e.ref!==i)&&(t.flags|=4194816)}}function ju(e,t,i,l,c){return Ya(t),i=xu(e,t,i,l,void 0,c),l=Su(),e!==null&&!Pt?(wu(e,t,c),Gi(e,t,c)):(et&&l&&au(t),t.flags|=1,ln(e,t,i,c),t.child)}function Dh(e,t,i,l,c,d){return Ya(t),t.updateQueue=null,i=Im(t,l,i,c),zm(e),l=Su(),e!==null&&!Pt?(wu(e,t,d),Gi(e,t,d)):(et&&l&&au(t),t.flags|=1,ln(e,t,i,d),t.child)}function Lh(e,t,i,l,c){if(Ya(t),t.stateNode===null){var d=mr,y=i.contextType;typeof y=="object"&&y!==null&&(d=rn(y)),d=new i(l,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=qu,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=l,d.state=t.memoizedState,d.refs={},mu(t),y=i.contextType,d.context=typeof y=="object"&&y!==null?rn(y):mr,d.state=t.memoizedState,y=i.getDerivedStateFromProps,typeof y=="function"&&(Hu(t,i,y,l),d.state=t.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(y=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),y!==d.state&&qu.enqueueReplaceState(d,d.state,null),wl(t,l,d,c),Sl(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){d=t.stateNode;var E=t.memoizedProps,A=Xa(i,E);d.props=A;var B=d.context,P=i.contextType;y=mr,typeof P=="object"&&P!==null&&(y=rn(P));var Z=i.getDerivedStateFromProps;P=typeof Z=="function"||typeof d.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,P||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(E||B!==y)&&kh(t,d,l,y),ca=!1;var U=t.memoizedState;d.state=U,wl(t,l,d,c),Sl(),B=t.memoizedState,E||U!==B||ca?(typeof Z=="function"&&(Hu(t,i,Z,l),B=t.memoizedState),(A=ca||vh(t,i,A,l,U,B,y))?(P||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=B),d.props=l,d.state=B,d.context=y,l=A):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{d=t.stateNode,hu(e,t),y=t.memoizedProps,P=Xa(i,y),d.props=P,Z=t.pendingProps,U=d.context,B=i.contextType,A=mr,typeof B=="object"&&B!==null&&(A=rn(B)),E=i.getDerivedStateFromProps,(B=typeof E=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(y!==Z||U!==A)&&kh(t,d,l,A),ca=!1,U=t.memoizedState,d.state=U,wl(t,l,d,c),Sl();var F=t.memoizedState;y!==Z||U!==F||ca||e!==null&&e.dependencies!==null&&Lo(e.dependencies)?(typeof E=="function"&&(Hu(t,i,E,l),F=t.memoizedState),(P=ca||vh(t,i,P,l,U,F,A)||e!==null&&e.dependencies!==null&&Lo(e.dependencies))?(B||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(l,F,A),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(l,F,A)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=F),d.props=l,d.state=F,d.context=A,l=P):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),l=!1)}return d=l,Wo(e,t),l=(t.flags&128)!==0,d||l?(d=t.stateNode,i=l&&typeof i.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&l?(t.child=$a(t,e.child,null,c),t.child=$a(t,null,i,c)):ln(e,t,i,c),t.memoizedState=d.state,e=t.child):e=Gi(e,t,c),e}function zh(e,t,i,l){return Ga(),t.flags|=256,ln(e,t,i,l),t.child}var Yu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Pu(e){return{baseLanes:e,cachePool:Sm()}}function Ku(e,t,i){return e=e!==null?e.childLanes&~i:0,t&&(e|=jn),e}function Ih(e,t,i){var l=t.pendingProps,c=!1,d=(t.flags&128)!==0,y;if((y=d)||(y=e!==null&&e.memoizedState===null?!1:(qt.current&2)!==0),y&&(c=!0,t.flags&=-129),y=(t.flags&32)!==0,t.flags&=-33,e===null){if(et){if(c?da(t):pa(),(e=Tt)?(e=Yb(e,ni),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ra!==null?{id:_i,overflow:xi}:null,retryLane:536870912,hydrationErrors:null},i=mm(e),i.return=t,t.child=i,an=t,Tt=null)):e=null,e===null)throw oa(t);return Cf(e)?t.lanes=32:t.lanes=536870912,null}var E=l.children;return l=l.fallback,c?(pa(),c=t.mode,E=es({mode:"hidden",children:E},c),l=Fa(l,c,i,null),E.return=t,l.return=t,E.sibling=l,t.child=E,l=t.child,l.memoizedState=Pu(i),l.childLanes=Ku(e,y,i),t.memoizedState=Yu,Ol(null,l)):(da(t),Vu(t,E))}var A=e.memoizedState;if(A!==null&&(E=A.dehydrated,E!==null)){if(d)t.flags&256?(da(t),t.flags&=-257,t=$u(e,t,i)):t.memoizedState!==null?(pa(),t.child=e.child,t.flags|=128,t=null):(pa(),E=l.fallback,c=t.mode,l=es({mode:"visible",children:l.children},c),E=Fa(E,c,i,null),E.flags|=2,l.return=t,E.return=t,l.sibling=E,t.child=l,$a(t,e.child,null,i),l=t.child,l.memoizedState=Pu(i),l.childLanes=Ku(e,y,i),t.memoizedState=Yu,t=Ol(null,l));else if(da(t),Cf(E)){if(y=E.nextSibling&&E.nextSibling.dataset,y)var B=y.dgst;y=B,l=Error(s(419)),l.stack="",l.digest=y,yl({value:l,source:null,stack:null}),t=$u(e,t,i)}else if(Pt||vr(e,t,i,!1),y=(i&e.childLanes)!==0,Pt||y){if(y=_t,y!==null&&(l=ct(y,i),l!==0&&l!==A.retryLane))throw A.retryLane=l,qa(e,l),Rn(y,e,l),Gu;Nf(E)||cs(),t=$u(e,t,i)}else Nf(E)?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,Tt=ai(E.nextSibling),an=t,et=!0,la=null,ni=!1,e!==null&&ym(t,e),t=Vu(t,l.children),t.flags|=4096);return t}return c?(pa(),E=l.fallback,c=t.mode,A=e.child,B=A.sibling,l=Ii(A,{mode:"hidden",children:l.children}),l.subtreeFlags=A.subtreeFlags&65011712,B!==null?E=Ii(B,E):(E=Fa(E,c,i,null),E.flags|=2),E.return=t,l.return=t,l.sibling=E,t.child=l,Ol(null,l),l=t.child,E=e.child.memoizedState,E===null?E=Pu(i):(c=E.cachePool,c!==null?(A=jt._currentValue,c=c.parent!==A?{parent:A,pool:A}:c):c=Sm(),E={baseLanes:E.baseLanes|i,cachePool:c}),l.memoizedState=E,l.childLanes=Ku(e,y,i),t.memoizedState=Yu,Ol(e.child,l)):(da(t),i=e.child,e=i.sibling,i=Ii(i,{mode:"visible",children:l.children}),i.return=t,i.sibling=null,e!==null&&(y=t.deletions,y===null?(t.deletions=[e],t.flags|=16):y.push(e)),t.child=i,t.memoizedState=null,i)}function Vu(e,t){return t=es({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function es(e,t){return e=Hn(22,e,null,t),e.lanes=0,e}function $u(e,t,i){return $a(t,e.child,null,i),e=Vu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Bh(e,t,i){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),cu(e.return,t,i)}function Zu(e,t,i,l,c,d){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:c,treeForkCount:d}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=l,y.tail=i,y.tailMode=c,y.treeForkCount=d)}function Uh(e,t,i){var l=t.pendingProps,c=l.revealOrder,d=l.tail;l=l.children;var y=qt.current,E=(y&2)!==0;if(E?(y=y&1|2,t.flags|=128):y&=1,J(qt,y),ln(e,t,l,i),l=et?bl:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Bh(e,i,t);else if(e.tag===19)Bh(e,i,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(c){case"forwards":for(i=t.child,c=null;i!==null;)e=i.alternate,e!==null&&Go(e)===null&&(c=i),i=i.sibling;i=c,i===null?(c=t.child,t.child=null):(c=i.sibling,i.sibling=null),Zu(t,!1,c,i,d,l);break;case"backwards":case"unstable_legacy-backwards":for(i=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Go(e)===null){t.child=c;break}e=c.sibling,c.sibling=i,i=c,c=e}Zu(t,!0,i,null,d,l);break;case"together":Zu(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Gi(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),ha|=t.lanes,(i&t.childLanes)===0)if(e!==null){if(vr(e,t,i,!1),(i&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,i=Ii(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=Ii(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function Xu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Lo(e)))}function kT(e,t,i){switch(t.tag){case 3:kt(t,t.stateNode.containerInfo),sa(t,jt,e.memoizedState.cache),Ga();break;case 27:case 5:gt(t);break;case 4:kt(t,t.stateNode.containerInfo);break;case 10:sa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Eu(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(da(t),t.flags|=128,null):(i&t.child.childLanes)!==0?Ih(e,t,i):(da(t),e=Gi(e,t,i),e!==null?e.sibling:null);da(t);break;case 19:var c=(e.flags&128)!==0;if(l=(i&t.childLanes)!==0,l||(vr(e,t,i,!1),l=(i&t.childLanes)!==0),c){if(l)return Uh(e,t,i);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),J(qt,qt.current),l)break;return null;case 22:return t.lanes=0,Oh(e,t,i,t.pendingProps);case 24:sa(t,jt,e.memoizedState.cache)}return Gi(e,t,i)}function Hh(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps)Pt=!0;else{if(!Xu(e,i)&&(t.flags&128)===0)return Pt=!1,kT(e,t,i);Pt=(e.flags&131072)!==0}else Pt=!1,et&&(t.flags&1048576)!==0&&bm(t,bl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Ka(t.elementType),t.type=e,typeof e=="function")tu(e)?(l=Xa(e,l),t.tag=1,t=Lh(null,t,e,l,i)):(t.tag=0,t=ju(null,t,e,l,i));else{if(e!=null){var c=e.$$typeof;if(c===te){t.tag=11,t=Ah(null,t,e,l,i);break e}else if(c===ee){t.tag=14,t=Nh(null,t,e,l,i);break e}}throw t=X(e)||e,Error(s(306,t,""))}}return t;case 0:return ju(e,t,t.type,t.pendingProps,i);case 1:return l=t.type,c=Xa(l,t.pendingProps),Lh(e,t,l,c,i);case 3:e:{if(kt(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var d=t.memoizedState;c=d.element,hu(e,t),wl(t,l,null,i);var y=t.memoizedState;if(l=y.cache,sa(t,jt,l),l!==d.cache&&uu(t,[jt],i,!0),Sl(),l=y.element,d.isDehydrated)if(d={element:l,isDehydrated:!1,cache:y.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=zh(e,t,l,i);break e}else if(l!==c){c=Wn(Error(s(424)),t),yl(c),t=zh(e,t,l,i);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Tt=ai(e.firstChild),an=t,et=!0,la=null,ni=!0,i=Om(t,null,l,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Ga(),l===c){t=Gi(e,t,i);break e}ln(e,t,l,i)}t=t.child}return t;case 26:return Wo(e,t),e===null?(i=Xb(t.type,null,t.pendingProps,null))?t.memoizedState=i:et||(i=t.type,e=t.pendingProps,l=hs(Ce.current).createElement(i),l[It]=t,l[Bt]=e,on(l,i,e),Dt(l),t.stateNode=l):t.memoizedState=Xb(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return gt(t),e===null&&et&&(l=t.stateNode=Vb(t.type,t.pendingProps,Ce.current),an=t,ni=!0,c=Tt,Ea(t.type)?(Of=c,Tt=ai(l.firstChild)):Tt=c),ln(e,t,t.pendingProps.children,i),Wo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&et&&((c=l=Tt)&&(l=XT(l,t.type,t.pendingProps,ni),l!==null?(t.stateNode=l,an=t,Tt=ai(l.firstChild),ni=!1,c=!0):c=!1),c||oa(t)),gt(t),c=t.type,d=t.pendingProps,y=e!==null?e.memoizedProps:null,l=d.children,wf(c,d)?l=null:y!==null&&wf(c,y)&&(t.flags|=32),t.memoizedState!==null&&(c=xu(e,t,fT,null,null,i),Pl._currentValue=c),Wo(e,t),ln(e,t,l,i),t.child;case 6:return e===null&&et&&((e=i=Tt)&&(i=QT(i,t.pendingProps,ni),i!==null?(t.stateNode=i,an=t,Tt=null,e=!0):e=!1),e||oa(t)),null;case 13:return Ih(e,t,i);case 4:return kt(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=$a(t,null,l,i):ln(e,t,l,i),t.child;case 11:return Ah(e,t,t.type,t.pendingProps,i);case 7:return ln(e,t,t.pendingProps,i),t.child;case 8:return ln(e,t,t.pendingProps.children,i),t.child;case 12:return ln(e,t,t.pendingProps.children,i),t.child;case 10:return l=t.pendingProps,sa(t,t.type,l.value),ln(e,t,l.children,i),t.child;case 9:return c=t.type._context,l=t.pendingProps.children,Ya(t),c=rn(c),l=l(c),t.flags|=1,ln(e,t,l,i),t.child;case 14:return Nh(e,t,t.type,t.pendingProps,i);case 15:return Ch(e,t,t.type,t.pendingProps,i);case 19:return Uh(e,t,i);case 31:return vT(e,t,i);case 22:return Oh(e,t,i,t.pendingProps);case 24:return Ya(t),l=rn(jt),e===null?(c=pu(),c===null&&(c=_t,d=fu(),c.pooledCache=d,d.refCount++,d!==null&&(c.pooledCacheLanes|=i),c=d),t.memoizedState={parent:l,cache:c},mu(t),sa(t,jt,c)):((e.lanes&i)!==0&&(hu(e,t),wl(t,null,null,i),Sl()),c=e.memoizedState,d=t.memoizedState,c.parent!==l?(c={parent:l,cache:l},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),sa(t,jt,l)):(l=d.cache,sa(t,jt,l),l!==c.cache&&uu(t,[jt],i,!0))),ln(e,t,t.pendingProps.children,i),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function ji(e){e.flags|=4}function Qu(e,t,i,l,c){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(db())e.flags|=8192;else throw Va=Uo,gu}else e.flags&=-16777217}function qh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!ty(t))if(db())e.flags|=8192;else throw Va=Uo,gu}function ts(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?wt():536870912,e.lanes|=t,Mr|=t)}function Ml(e,t){if(!et)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function At(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,l=0;if(t)for(var c=e.child;c!==null;)i|=c.lanes|c.childLanes,l|=c.subtreeFlags&65011712,l|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)i|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=l,e.childLanes=i,t}function ET(e,t,i){var l=t.pendingProps;switch(ru(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return At(t),null;case 1:return At(t),null;case 3:return i=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Hi(jt),Ke(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(yr(t)?ji(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ou())),At(t),null;case 26:var c=t.type,d=t.memoizedState;return e===null?(ji(t),d!==null?(At(t),qh(t,d)):(At(t),Qu(t,c,null,l,i))):d?d!==e.memoizedState?(ji(t),At(t),qh(t,d)):(At(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ji(t),At(t),Qu(t,c,e,l,i)),null;case 27:if(zn(t),i=Ce.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ji(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return At(t),null}e=pe.current,yr(t)?vm(t):(e=Vb(c,l,i),t.stateNode=e,ji(t))}return At(t),null;case 5:if(zn(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ji(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return At(t),null}if(d=pe.current,yr(t))vm(t);else{var y=hs(Ce.current);switch(d){case 1:d=y.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:d=y.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":d=y.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":d=y.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":d=y.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof l.is=="string"?y.createElement("select",{is:l.is}):y.createElement("select"),l.multiple?d.multiple=!0:l.size&&(d.size=l.size);break;default:d=typeof l.is=="string"?y.createElement(c,{is:l.is}):y.createElement(c)}}d[It]=t,d[Bt]=l;e:for(y=t.child;y!==null;){if(y.tag===5||y.tag===6)d.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===t)break e;for(;y.sibling===null;){if(y.return===null||y.return===t)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}t.stateNode=d;e:switch(on(d,c,l),c){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ji(t)}}return At(t),Qu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,i),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ji(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=Ce.current,yr(t)){if(e=t.stateNode,i=t.memoizedProps,l=null,c=an,c!==null)switch(c.tag){case 27:case 5:l=c.memoizedProps}e[It]=t,e=!!(e.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||Ib(e.nodeValue,i)),e||oa(t,!0)}else e=hs(e).createTextNode(l),e[It]=t,t.stateNode=e}return At(t),null;case 31:if(i=t.memoizedState,e===null||e.memoizedState!==null){if(l=yr(t),i!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[It]=t}else Ga(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;At(t),e=!1}else i=ou(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return t.flags&256?(Fn(t),t):(Fn(t),null);if((t.flags&128)!==0)throw Error(s(558))}return At(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=yr(t),l!==null&&l.dehydrated!==null){if(e===null){if(!c)throw Error(s(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(s(317));c[It]=t}else Ga(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;At(t),c=!1}else c=ou(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Fn(t),t):(Fn(t),null)}return Fn(t),(t.flags&128)!==0?(t.lanes=i,t):(i=l!==null,e=e!==null&&e.memoizedState!==null,i&&(l=t.child,c=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(c=l.alternate.memoizedState.cachePool.pool),d=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(d=l.memoizedState.cachePool.pool),d!==c&&(l.flags|=2048)),i!==e&&i&&(t.child.flags|=8192),ts(t,t.updateQueue),At(t),null);case 4:return Ke(),e===null&&kf(t.stateNode.containerInfo),At(t),null;case 10:return Hi(t.type),At(t),null;case 19:if(_(qt),l=t.memoizedState,l===null)return At(t),null;if(c=(t.flags&128)!==0,d=l.rendering,d===null)if(c)Ml(l,!1);else{if(zt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Go(e),d!==null){for(t.flags|=128,Ml(l,!1),e=d.updateQueue,t.updateQueue=e,ts(t,e),t.subtreeFlags=0,e=i,i=t.child;i!==null;)gm(i,e),i=i.sibling;return J(qt,qt.current&1|2),et&&Bi(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&lt()>ls&&(t.flags|=128,c=!0,Ml(l,!1),t.lanes=4194304)}else{if(!c)if(e=Go(d),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,ts(t,e),Ml(l,!0),l.tail===null&&l.tailMode==="hidden"&&!d.alternate&&!et)return At(t),null}else 2*lt()-l.renderingStartTime>ls&&i!==536870912&&(t.flags|=128,c=!0,Ml(l,!1),t.lanes=4194304);l.isBackwards?(d.sibling=t.child,t.child=d):(e=l.last,e!==null?e.sibling=d:t.child=d,l.last=d)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=lt(),e.sibling=null,i=qt.current,J(qt,c?i&1|2:i&1),et&&Bi(t,l.treeForkCount),e):(At(t),null);case 22:case 23:return Fn(t),ku(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(i&536870912)!==0&&(t.flags&128)===0&&(At(t),t.subtreeFlags&6&&(t.flags|=8192)):At(t),i=t.updateQueue,i!==null&&ts(t,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==i&&(t.flags|=2048),e!==null&&_(Pa),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Hi(jt),At(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function _T(e,t){switch(ru(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hi(jt),Ke(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return zn(t),null;case 31:if(t.memoizedState!==null){if(Fn(t),t.alternate===null)throw Error(s(340));Ga()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Fn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Ga()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _(qt),null;case 4:return Ke(),null;case 10:return Hi(t.type),null;case 22:case 23:return Fn(t),ku(),e!==null&&_(Pa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Hi(jt),null;case 25:return null;default:return null}}function Fh(e,t){switch(ru(t),t.tag){case 3:Hi(jt),Ke();break;case 26:case 27:case 5:zn(t);break;case 4:Ke();break;case 31:t.memoizedState!==null&&Fn(t);break;case 13:Fn(t);break;case 19:_(qt);break;case 10:Hi(t.type);break;case 22:case 23:Fn(t),ku(),e!==null&&_(Pa);break;case 24:Hi(jt)}}function Rl(e,t){try{var i=t.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var c=l.next;i=c;do{if((i.tag&e)===e){l=void 0;var d=i.create,y=i.inst;l=d(),y.destroy=l}i=i.next}while(i!==c)}}catch(E){dt(t,t.return,E)}}function ga(e,t,i){try{var l=t.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var d=c.next;l=d;do{if((l.tag&e)===e){var y=l.inst,E=y.destroy;if(E!==void 0){y.destroy=void 0,c=t;var A=i,B=E;try{B()}catch(P){dt(c,A,P)}}}l=l.next}while(l!==d)}}catch(P){dt(t,t.return,P)}}function Gh(e){var t=e.updateQueue;if(t!==null){var i=e.stateNode;try{Rm(t,i)}catch(l){dt(e,e.return,l)}}}function jh(e,t,i){i.props=Xa(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(l){dt(e,t,l)}}function Dl(e,t){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof i=="function"?e.refCleanup=i(l):i.current=l}}catch(c){dt(e,t,c)}}function Si(e,t){var i=e.ref,l=e.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(c){dt(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(c){dt(e,t,c)}else i.current=null}function Yh(e){var t=e.type,i=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":i.autoFocus&&l.focus();break e;case"img":i.src?l.src=i.src:i.srcSet&&(l.srcset=i.srcSet)}}catch(c){dt(e,e.return,c)}}function Ju(e,t,i){try{var l=e.stateNode;YT(l,e.type,i,t),l[Bt]=t}catch(c){dt(e,e.return,c)}}function Ph(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ea(e.type)||e.tag===4}function Wu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ph(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ea(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ef(e,t,i){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,t):(t=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,t.appendChild(e),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=be));else if(l!==4&&(l===27&&Ea(e.type)&&(i=e.stateNode,t=null),e=e.child,e!==null))for(ef(e,t,i),e=e.sibling;e!==null;)ef(e,t,i),e=e.sibling}function ns(e,t,i){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(l!==4&&(l===27&&Ea(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(ns(e,t,i),e=e.sibling;e!==null;)ns(e,t,i),e=e.sibling}function Kh(e){var t=e.stateNode,i=e.memoizedProps;try{for(var l=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);on(t,l,i),t[It]=e,t[Bt]=i}catch(d){dt(e,e.return,d)}}var Yi=!1,Kt=!1,tf=!1,Vh=typeof WeakSet=="function"?WeakSet:Set,Wt=null;function xT(e,t){if(e=e.containerInfo,xf=xs,e=rm(e),$c(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var c=l.anchorOffset,d=l.focusNode;l=l.focusOffset;try{i.nodeType,d.nodeType}catch{i=null;break e}var y=0,E=-1,A=-1,B=0,P=0,Z=e,U=null;t:for(;;){for(var F;Z!==i||c!==0&&Z.nodeType!==3||(E=y+c),Z!==d||l!==0&&Z.nodeType!==3||(A=y+l),Z.nodeType===3&&(y+=Z.nodeValue.length),(F=Z.firstChild)!==null;)U=Z,Z=F;for(;;){if(Z===e)break t;if(U===i&&++B===c&&(E=y),U===d&&++P===l&&(A=y),(F=Z.nextSibling)!==null)break;Z=U,U=Z.parentNode}Z=F}i=E===-1||A===-1?null:{start:E,end:A}}else i=null}i=i||{start:0,end:0}}else i=null;for(Sf={focusedElem:e,selectionRange:i},xs=!1,Wt=t;Wt!==null;)if(t=Wt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Wt=e;else for(;Wt!==null;){switch(t=Wt,d=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i<e.length;i++)c=e[i],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,i=t,c=d.memoizedProps,d=d.memoizedState,l=i.stateNode;try{var ye=Xa(i.type,c);e=l.getSnapshotBeforeUpdate(ye,d),l.__reactInternalSnapshotBeforeUpdate=e}catch(Ne){dt(i,i.return,Ne)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,i=e.nodeType,i===9)Af(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Af(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Wt=e;break}Wt=t.return}}function $h(e,t,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:Ki(e,i),l&4&&Rl(5,i);break;case 1:if(Ki(e,i),l&4)if(e=i.stateNode,t===null)try{e.componentDidMount()}catch(y){dt(i,i.return,y)}else{var c=Xa(i.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){dt(i,i.return,y)}}l&64&&Gh(i),l&512&&Dl(i,i.return);break;case 3:if(Ki(e,i),l&64&&(e=i.updateQueue,e!==null)){if(t=null,i.child!==null)switch(i.child.tag){case 27:case 5:t=i.child.stateNode;break;case 1:t=i.child.stateNode}try{Rm(e,t)}catch(y){dt(i,i.return,y)}}break;case 27:t===null&&l&4&&Kh(i);case 26:case 5:Ki(e,i),t===null&&l&4&&Yh(i),l&512&&Dl(i,i.return);break;case 12:Ki(e,i);break;case 31:Ki(e,i),l&4&&Qh(e,i);break;case 13:Ki(e,i),l&4&&Jh(e,i),l&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=RT.bind(null,i),JT(e,i))));break;case 22:if(l=i.memoizedState!==null||Yi,!l){t=t!==null&&t.memoizedState!==null||Kt,c=Yi;var d=Kt;Yi=l,(Kt=t)&&!d?Vi(e,i,(i.subtreeFlags&8772)!==0):Ki(e,i),Yi=c,Kt=d}break;case 30:break;default:Ki(e,i)}}function Zh(e){var t=e.alternate;t!==null&&(e.alternate=null,Zh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Nt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ct=null,Nn=!1;function Pi(e,t,i){for(i=i.child;i!==null;)Xh(e,t,i),i=i.sibling}function Xh(e,t,i){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(Jt,i)}catch{}switch(i.tag){case 26:Kt||Si(i,t),Pi(e,t,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Kt||Si(i,t);var l=Ct,c=Nn;Ea(i.type)&&(Ct=i.stateNode,Nn=!1),Pi(e,t,i),Gl(i.stateNode),Ct=l,Nn=c;break;case 5:Kt||Si(i,t);case 6:if(l=Ct,c=Nn,Ct=null,Pi(e,t,i),Ct=l,Nn=c,Ct!==null)if(Nn)try{(Ct.nodeType===9?Ct.body:Ct.nodeName==="HTML"?Ct.ownerDocument.body:Ct).removeChild(i.stateNode)}catch(d){dt(i,t,d)}else try{Ct.removeChild(i.stateNode)}catch(d){dt(i,t,d)}break;case 18:Ct!==null&&(Nn?(e=Ct,Gb(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),Hr(e)):Gb(Ct,i.stateNode));break;case 4:l=Ct,c=Nn,Ct=i.stateNode.containerInfo,Nn=!0,Pi(e,t,i),Ct=l,Nn=c;break;case 0:case 11:case 14:case 15:ga(2,i,t),Kt||ga(4,i,t),Pi(e,t,i);break;case 1:Kt||(Si(i,t),l=i.stateNode,typeof l.componentWillUnmount=="function"&&jh(i,t,l)),Pi(e,t,i);break;case 21:Pi(e,t,i);break;case 22:Kt=(l=Kt)||i.memoizedState!==null,Pi(e,t,i),Kt=l;break;default:Pi(e,t,i)}}function Qh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Hr(e)}catch(i){dt(t,t.return,i)}}}function Jh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Hr(e)}catch(i){dt(t,t.return,i)}}function ST(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Vh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Vh),t;default:throw Error(s(435,e.tag))}}function is(e,t){var i=ST(e);t.forEach(function(l){if(!i.has(l)){i.add(l);var c=DT.bind(null,e,l);l.then(c,c)}})}function Cn(e,t){var i=t.deletions;if(i!==null)for(var l=0;l<i.length;l++){var c=i[l],d=e,y=t,E=y;e:for(;E!==null;){switch(E.tag){case 27:if(Ea(E.type)){Ct=E.stateNode,Nn=!1;break e}break;case 5:Ct=E.stateNode,Nn=!1;break e;case 3:case 4:Ct=E.stateNode.containerInfo,Nn=!0;break e}E=E.return}if(Ct===null)throw Error(s(160));Xh(d,y,c),Ct=null,Nn=!1,d=c.alternate,d!==null&&(d.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Wh(t,e),t=t.sibling}var fi=null;function Wh(e,t){var i=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Cn(t,e),On(e),l&4&&(ga(3,e,e.return),Rl(3,e),ga(5,e,e.return));break;case 1:Cn(t,e),On(e),l&512&&(Kt||i===null||Si(i,i.return)),l&64&&Yi&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?l:i.concat(l))));break;case 26:var c=fi;if(Cn(t,e),On(e),l&512&&(Kt||i===null||Si(i,i.return)),l&4){var d=i!==null?i.memoizedState:null;if(l=e.memoizedState,i===null)if(l===null)if(e.stateNode===null){e:{l=e.type,i=e.memoizedProps,c=c.ownerDocument||c;t:switch(l){case"title":d=c.getElementsByTagName("title")[0],(!d||d[Ut]||d[It]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=c.createElement(l),c.head.insertBefore(d,c.querySelector("head > title"))),on(d,l,i),d[It]=e,Dt(d),l=d;break e;case"link":var y=Wb("link","href",c).get(l+(i.href||""));if(y){for(var E=0;E<y.length;E++)if(d=y[E],d.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&d.getAttribute("rel")===(i.rel==null?null:i.rel)&&d.getAttribute("title")===(i.title==null?null:i.title)&&d.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){y.splice(E,1);break t}}d=c.createElement(l),on(d,l,i),c.head.appendChild(d);break;case"meta":if(y=Wb("meta","content",c).get(l+(i.content||""))){for(E=0;E<y.length;E++)if(d=y[E],d.getAttribute("content")===(i.content==null?null:""+i.content)&&d.getAttribute("name")===(i.name==null?null:i.name)&&d.getAttribute("property")===(i.property==null?null:i.property)&&d.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&d.getAttribute("charset")===(i.charSet==null?null:i.charSet)){y.splice(E,1);break t}}d=c.createElement(l),on(d,l,i),c.head.appendChild(d);break;default:throw Error(s(468,l))}d[It]=e,Dt(d),l=d}e.stateNode=l}else ey(c,e.type,e.stateNode);else e.stateNode=Jb(c,l,e.memoizedProps);else d!==l?(d===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):d.count--,l===null?ey(c,e.type,e.stateNode):Jb(c,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Ju(e,e.memoizedProps,i.memoizedProps)}break;case 27:Cn(t,e),On(e),l&512&&(Kt||i===null||Si(i,i.return)),i!==null&&l&4&&Ju(e,e.memoizedProps,i.memoizedProps);break;case 5:if(Cn(t,e),On(e),l&512&&(Kt||i===null||Si(i,i.return)),e.flags&32){c=e.stateNode;try{Li(c,"")}catch(ye){dt(e,e.return,ye)}}l&4&&e.stateNode!=null&&(c=e.memoizedProps,Ju(e,c,i!==null?i.memoizedProps:c)),l&1024&&(tf=!0);break;case 6:if(Cn(t,e),On(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,i=e.stateNode;try{i.nodeValue=l}catch(ye){dt(e,e.return,ye)}}break;case 3:if(vs=null,c=fi,fi=bs(t.containerInfo),Cn(t,e),fi=c,On(e),l&4&&i!==null&&i.memoizedState.isDehydrated)try{Hr(t.containerInfo)}catch(ye){dt(e,e.return,ye)}tf&&(tf=!1,eb(e));break;case 4:l=fi,fi=bs(e.stateNode.containerInfo),Cn(t,e),On(e),fi=l;break;case 12:Cn(t,e),On(e);break;case 31:Cn(t,e),On(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,is(e,l)));break;case 13:Cn(t,e),On(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(rs=lt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,is(e,l)));break;case 22:c=e.memoizedState!==null;var A=i!==null&&i.memoizedState!==null,B=Yi,P=Kt;if(Yi=B||c,Kt=P||A,Cn(t,e),Kt=P,Yi=B,On(e),l&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(i===null||A||Yi||Kt||Qa(e)),i=null,t=e;;){if(t.tag===5||t.tag===26){if(i===null){A=i=t;try{if(d=A.stateNode,c)y=d.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{E=A.stateNode;var Z=A.memoizedProps.style,U=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;E.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(ye){dt(A,A.return,ye)}}}else if(t.tag===6){if(i===null){A=t;try{A.stateNode.nodeValue=c?"":A.memoizedProps}catch(ye){dt(A,A.return,ye)}}}else if(t.tag===18){if(i===null){A=t;try{var F=A.stateNode;c?jb(F,!0):jb(A.stateNode,!1)}catch(ye){dt(A,A.return,ye)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;i===t&&(i=null),t=t.return}i===t&&(i=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(i=l.retryQueue,i!==null&&(l.retryQueue=null,is(e,i))));break;case 19:Cn(t,e),On(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,is(e,l)));break;case 30:break;case 21:break;default:Cn(t,e),On(e)}}function On(e){var t=e.flags;if(t&2){try{for(var i,l=e.return;l!==null;){if(Ph(l)){i=l;break}l=l.return}if(i==null)throw Error(s(160));switch(i.tag){case 27:var c=i.stateNode,d=Wu(e);ns(e,d,c);break;case 5:var y=i.stateNode;i.flags&32&&(Li(y,""),i.flags&=-33);var E=Wu(e);ns(e,E,y);break;case 3:case 4:var A=i.stateNode.containerInfo,B=Wu(e);ef(e,B,A);break;default:throw Error(s(161))}}catch(P){dt(e,e.return,P)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function eb(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;eb(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ki(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)$h(e,t.alternate,t),t=t.sibling}function Qa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ga(4,t,t.return),Qa(t);break;case 1:Si(t,t.return);var i=t.stateNode;typeof i.componentWillUnmount=="function"&&jh(t,t.return,i),Qa(t);break;case 27:Gl(t.stateNode);case 26:case 5:Si(t,t.return),Qa(t);break;case 22:t.memoizedState===null&&Qa(t);break;case 30:Qa(t);break;default:Qa(t)}e=e.sibling}}function Vi(e,t,i){for(i=i&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,c=e,d=t,y=d.flags;switch(d.tag){case 0:case 11:case 15:Vi(c,d,i),Rl(4,d);break;case 1:if(Vi(c,d,i),l=d,c=l.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(B){dt(l,l.return,B)}if(l=d,c=l.updateQueue,c!==null){var E=l.stateNode;try{var A=c.shared.hiddenCallbacks;if(A!==null)for(c.shared.hiddenCallbacks=null,c=0;c<A.length;c++)Mm(A[c],E)}catch(B){dt(l,l.return,B)}}i&&y&64&&Gh(d),Dl(d,d.return);break;case 27:Kh(d);case 26:case 5:Vi(c,d,i),i&&l===null&&y&4&&Yh(d),Dl(d,d.return);break;case 12:Vi(c,d,i);break;case 31:Vi(c,d,i),i&&y&4&&Qh(c,d);break;case 13:Vi(c,d,i),i&&y&4&&Jh(c,d);break;case 22:d.memoizedState===null&&Vi(c,d,i),Dl(d,d.return);break;case 30:break;default:Vi(c,d,i)}t=t.sibling}}function nf(e,t){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&vl(i))}function af(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&vl(e))}function di(e,t,i,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)tb(e,t,i,l),t=t.sibling}function tb(e,t,i,l){var c=t.flags;switch(t.tag){case 0:case 11:case 15:di(e,t,i,l),c&2048&&Rl(9,t);break;case 1:di(e,t,i,l);break;case 3:di(e,t,i,l),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&vl(e)));break;case 12:if(c&2048){di(e,t,i,l),e=t.stateNode;try{var d=t.memoizedProps,y=d.id,E=d.onPostCommit;typeof E=="function"&&E(y,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){dt(t,t.return,A)}}else di(e,t,i,l);break;case 31:di(e,t,i,l);break;case 13:di(e,t,i,l);break;case 23:break;case 22:d=t.stateNode,y=t.alternate,t.memoizedState!==null?d._visibility&2?di(e,t,i,l):Ll(e,t):d._visibility&2?di(e,t,i,l):(d._visibility|=2,Nr(e,t,i,l,(t.subtreeFlags&10256)!==0||!1)),c&2048&&nf(y,t);break;case 24:di(e,t,i,l),c&2048&&af(t.alternate,t);break;default:di(e,t,i,l)}}function Nr(e,t,i,l,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var d=e,y=t,E=i,A=l,B=y.flags;switch(y.tag){case 0:case 11:case 15:Nr(d,y,E,A,c),Rl(8,y);break;case 23:break;case 22:var P=y.stateNode;y.memoizedState!==null?P._visibility&2?Nr(d,y,E,A,c):Ll(d,y):(P._visibility|=2,Nr(d,y,E,A,c)),c&&B&2048&&nf(y.alternate,y);break;case 24:Nr(d,y,E,A,c),c&&B&2048&&af(y.alternate,y);break;default:Nr(d,y,E,A,c)}t=t.sibling}}function Ll(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var i=e,l=t,c=l.flags;switch(l.tag){case 22:Ll(i,l),c&2048&&nf(l.alternate,l);break;case 24:Ll(i,l),c&2048&&af(l.alternate,l);break;default:Ll(i,l)}t=t.sibling}}var zl=8192;function Cr(e,t,i){if(e.subtreeFlags&zl)for(e=e.child;e!==null;)nb(e,t,i),e=e.sibling}function nb(e,t,i){switch(e.tag){case 26:Cr(e,t,i),e.flags&zl&&e.memoizedState!==null&&uA(i,fi,e.memoizedState,e.memoizedProps);break;case 5:Cr(e,t,i);break;case 3:case 4:var l=fi;fi=bs(e.stateNode.containerInfo),Cr(e,t,i),fi=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=zl,zl=16777216,Cr(e,t,i),zl=l):Cr(e,t,i));break;default:Cr(e,t,i)}}function ib(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Il(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var l=t[i];Wt=l,rb(l,e)}ib(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ab(e),e=e.sibling}function ab(e){switch(e.tag){case 0:case 11:case 15:Il(e),e.flags&2048&&ga(9,e,e.return);break;case 3:Il(e);break;case 12:Il(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,as(e)):Il(e);break;default:Il(e)}}function as(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var l=t[i];Wt=l,rb(l,e)}ib(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ga(8,t,t.return),as(t);break;case 22:i=t.stateNode,i._visibility&2&&(i._visibility&=-3,as(t));break;default:as(t)}e=e.sibling}}function rb(e,t){for(;Wt!==null;){var i=Wt;switch(i.tag){case 0:case 11:case 15:ga(8,i,t);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var l=i.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:vl(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,Wt=l;else e:for(i=e;Wt!==null;){l=Wt;var c=l.sibling,d=l.return;if(Zh(l),l===i){Wt=null;break e}if(c!==null){c.return=d,Wt=c;break e}Wt=d}}}var wT={getCacheForType:function(e){var t=rn(jt),i=t.data.get(e);return i===void 0&&(i=e(),t.data.set(e,i)),i},cacheSignal:function(){return rn(jt).controller.signal}},TT=typeof WeakMap=="function"?WeakMap:Map,st=0,_t=null,Ze=null,Je=0,ft=0,Gn=null,ma=!1,Or=!1,rf=!1,$i=0,zt=0,ha=0,Ja=0,lf=0,jn=0,Mr=0,Bl=null,Mn=null,of=!1,rs=0,lb=0,ls=1/0,os=null,ba=null,Xt=0,ya=null,Rr=null,Zi=0,sf=0,cf=null,ob=null,Ul=0,uf=null;function Yn(){return(st&2)!==0&&Je!==0?Je&-Je:G.T!==null?hf():Mi()}function sb(){if(jn===0)if((Je&536870912)===0||et){var e=Oi;Oi<<=1,(Oi&3932160)===0&&(Oi=262144),jn=e}else jn=536870912;return e=qn.current,e!==null&&(e.flags|=32),jn}function Rn(e,t,i){(e===_t&&(ft===2||ft===9)||e.cancelPendingCommit!==null)&&(Dr(e,0),va(e,Je,jn,!1)),he(e,i),((st&2)===0||e!==_t)&&(e===_t&&((st&2)===0&&(Ja|=i),zt===4&&va(e,Je,jn,!1)),wi(e))}function cb(e,t,i){if((st&6)!==0)throw Error(s(327));var l=!i&&(t&127)===0&&(t&e.expiredLanes)===0||le(e,t),c=l?CT(e,t):df(e,t,!0),d=l;do{if(c===0){Or&&!l&&va(e,t,0,!1);break}else{if(i=e.current.alternate,d&&!AT(i)){c=df(e,t,!1),d=!1;continue}if(c===2){if(d=t,e.errorRecoveryDisabledLanes&d)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){t=y;e:{var E=e;c=Bl;var A=E.current.memoizedState.isDehydrated;if(A&&(Dr(E,y).flags|=256),y=df(E,y,!1),y!==2){if(rf&&!A){E.errorRecoveryDisabledLanes|=d,Ja|=d,c=4;break e}d=Mn,Mn=c,d!==null&&(Mn===null?Mn=d:Mn.push.apply(Mn,d))}c=y}if(d=!1,c!==2)continue}}if(c===1){Dr(e,0),va(e,t,0,!0);break}e:{switch(l=e,d=c,d){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:va(l,t,jn,!ma);break e;case 2:Mn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(c=rs+300-lt(),10<c)){if(va(l,t,jn,!ma),V(l,0,!0)!==0)break e;Zi=t,l.timeoutHandle=qb(ub.bind(null,l,i,Mn,os,of,t,jn,Ja,Mr,ma,d,"Throttled",-0,0),c);break e}ub(l,i,Mn,os,of,t,jn,Ja,Mr,ma,d,null,-0,0)}}break}while(!0);wi(e)}function ub(e,t,i,l,c,d,y,E,A,B,P,Z,U,F){if(e.timeoutHandle=-1,Z=t.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:be},nb(t,d,Z);var ye=(d&62914560)===d?rs-lt():(d&4194048)===d?lb-lt():0;if(ye=fA(Z,ye),ye!==null){Zi=d,e.cancelPendingCommit=ye(yb.bind(null,e,t,d,i,l,c,y,E,A,P,Z,null,U,F)),va(e,d,y,!B);return}}yb(e,t,d,i,l,c,y,E,A)}function AT(e){for(var t=e;;){var i=t.tag;if((i===0||i===11||i===15)&&t.flags&16384&&(i=t.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var l=0;l<i.length;l++){var c=i[l],d=c.getSnapshot;c=c.value;try{if(!Un(d(),c))return!1}catch{return!1}}if(i=t.child,t.subtreeFlags&16384&&i!==null)i.return=t,t=i;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function va(e,t,i,l){t&=~lf,t&=~Ja,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var c=t;0<c;){var d=31-St(c),y=1<<d;l[d]=-1,c&=~y}i!==0&&Se(e,i,t)}function ss(){return(st&6)===0?(Hl(0),!1):!0}function ff(){if(Ze!==null){if(ft===0)var e=Ze.return;else e=Ze,Ui=ja=null,Tu(e),xr=null,El=0,e=Ze;for(;e!==null;)Fh(e.alternate,e),e=e.return;Ze=null}}function Dr(e,t){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,VT(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),Zi=0,ff(),_t=e,Ze=i=Ii(e.current,null),Je=t,ft=0,Gn=null,ma=!1,Or=le(e,t),rf=!1,Mr=jn=lf=Ja=ha=zt=0,Mn=Bl=null,of=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var c=31-St(l),d=1<<c;t|=e[c],l&=~d}return $i=t,Co(),i}function fb(e,t){je=null,G.H=Cl,t===_r||t===Bo?(t=Am(),ft=3):t===gu?(t=Am(),ft=4):ft=t===Gu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Gn=t,Ze===null&&(zt=1,Qo(e,Wn(t,e.current)))}function db(){var e=qn.current;return e===null?!0:(Je&4194048)===Je?ii===null:(Je&62914560)===Je||(Je&536870912)!==0?e===ii:!1}function pb(){var e=G.H;return G.H=Cl,e===null?Cl:e}function gb(){var e=G.A;return G.A=wT,e}function cs(){zt=4,ma||(Je&4194048)!==Je&&qn.current!==null||(Or=!0),(ha&134217727)===0&&(Ja&134217727)===0||_t===null||va(_t,Je,jn,!1)}function df(e,t,i){var l=st;st|=2;var c=pb(),d=gb();(_t!==e||Je!==t)&&(os=null,Dr(e,t)),t=!1;var y=zt;e:do try{if(ft!==0&&Ze!==null){var E=Ze,A=Gn;switch(ft){case 8:ff(),y=6;break e;case 3:case 2:case 9:case 6:qn.current===null&&(t=!0);var B=ft;if(ft=0,Gn=null,Lr(e,E,A,B),i&&Or){y=0;break e}break;default:B=ft,ft=0,Gn=null,Lr(e,E,A,B)}}NT(),y=zt;break}catch(P){fb(e,P)}while(!0);return t&&e.shellSuspendCounter++,Ui=ja=null,st=l,G.H=c,G.A=d,Ze===null&&(_t=null,Je=0,Co()),y}function NT(){for(;Ze!==null;)mb(Ze)}function CT(e,t){var i=st;st|=2;var l=pb(),c=gb();_t!==e||Je!==t?(os=null,ls=lt()+500,Dr(e,t)):Or=le(e,t);e:do try{if(ft!==0&&Ze!==null){t=Ze;var d=Gn;t:switch(ft){case 1:ft=0,Gn=null,Lr(e,t,d,1);break;case 2:case 9:if(wm(d)){ft=0,Gn=null,hb(t);break}t=function(){ft!==2&&ft!==9||_t!==e||(ft=7),wi(e)},d.then(t,t);break e;case 3:ft=7;break e;case 4:ft=5;break e;case 7:wm(d)?(ft=0,Gn=null,hb(t)):(ft=0,Gn=null,Lr(e,t,d,7));break;case 5:var y=null;switch(Ze.tag){case 26:y=Ze.memoizedState;case 5:case 27:var E=Ze;if(y?ty(y):E.stateNode.complete){ft=0,Gn=null;var A=E.sibling;if(A!==null)Ze=A;else{var B=E.return;B!==null?(Ze=B,us(B)):Ze=null}break t}}ft=0,Gn=null,Lr(e,t,d,5);break;case 6:ft=0,Gn=null,Lr(e,t,d,6);break;case 8:ff(),zt=6;break e;default:throw Error(s(462))}}OT();break}catch(P){fb(e,P)}while(!0);return Ui=ja=null,G.H=l,G.A=c,st=i,Ze!==null?0:(_t=null,Je=0,Co(),zt)}function OT(){for(;Ze!==null&&!$n();)mb(Ze)}function mb(e){var t=Hh(e.alternate,e,$i);e.memoizedProps=e.pendingProps,t===null?us(e):Ze=t}function hb(e){var t=e,i=t.alternate;switch(t.tag){case 15:case 0:t=Dh(i,t,t.pendingProps,t.type,void 0,Je);break;case 11:t=Dh(i,t,t.pendingProps,t.type.render,t.ref,Je);break;case 5:Tu(t);default:Fh(i,t),t=Ze=gm(t,$i),t=Hh(i,t,$i)}e.memoizedProps=e.pendingProps,t===null?us(e):Ze=t}function Lr(e,t,i,l){Ui=ja=null,Tu(t),xr=null,El=0;var c=t.return;try{if(yT(e,c,t,i,Je)){zt=1,Qo(e,Wn(i,e.current)),Ze=null;return}}catch(d){if(c!==null)throw Ze=c,d;zt=1,Qo(e,Wn(i,e.current)),Ze=null;return}t.flags&32768?(et||l===1?e=!0:Or||(Je&536870912)!==0?e=!1:(ma=e=!0,(l===2||l===9||l===3||l===6)&&(l=qn.current,l!==null&&l.tag===13&&(l.flags|=16384))),bb(t,e)):us(t)}function us(e){var t=e;do{if((t.flags&32768)!==0){bb(t,ma);return}e=t.return;var i=ET(t.alternate,t,$i);if(i!==null){Ze=i;return}if(t=t.sibling,t!==null){Ze=t;return}Ze=t=e}while(t!==null);zt===0&&(zt=5)}function bb(e,t){do{var i=_T(e.alternate,e);if(i!==null){i.flags&=32767,Ze=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!t&&(e=e.sibling,e!==null)){Ze=e;return}Ze=e=i}while(e!==null);zt=6,Ze=null}function yb(e,t,i,l,c,d,y,E,A){e.cancelPendingCommit=null;do fs();while(Xt!==0);if((st&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(d=t.lanes|t.childLanes,d|=Wc,ge(e,i,d,y,E,A),e===_t&&(Ze=_t=null,Je=0),Rr=t,ya=e,Zi=i,sf=d,cf=c,ob=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,LT(qe,function(){return xb(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=G.T,G.T=null,c=K.p,K.p=2,y=st,st|=4;try{xT(e,t,i)}finally{st=y,K.p=c,G.T=l}}Xt=1,vb(),kb(),Eb()}}function vb(){if(Xt===1){Xt=0;var e=ya,t=Rr,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=G.T,G.T=null;var l=K.p;K.p=2;var c=st;st|=4;try{Wh(t,e);var d=Sf,y=rm(e.containerInfo),E=d.focusedElem,A=d.selectionRange;if(y!==E&&E&&E.ownerDocument&&am(E.ownerDocument.documentElement,E)){if(A!==null&&$c(E)){var B=A.start,P=A.end;if(P===void 0&&(P=B),"selectionStart"in E)E.selectionStart=B,E.selectionEnd=Math.min(P,E.value.length);else{var Z=E.ownerDocument||document,U=Z&&Z.defaultView||window;if(U.getSelection){var F=U.getSelection(),ye=E.textContent.length,Ne=Math.min(A.start,ye),bt=A.end===void 0?Ne:Math.min(A.end,ye);!F.extend&&Ne>bt&&(y=bt,bt=Ne,Ne=y);var R=im(E,Ne),O=im(E,bt);if(R&&O&&(F.rangeCount!==1||F.anchorNode!==R.node||F.anchorOffset!==R.offset||F.focusNode!==O.node||F.focusOffset!==O.offset)){var I=Z.createRange();I.setStart(R.node,R.offset),F.removeAllRanges(),Ne>bt?(F.addRange(I),F.extend(O.node,O.offset)):(I.setEnd(O.node,O.offset),F.addRange(I))}}}}for(Z=[],F=E;F=F.parentNode;)F.nodeType===1&&Z.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<Z.length;E++){var $=Z[E];$.element.scrollLeft=$.left,$.element.scrollTop=$.top}}xs=!!xf,Sf=xf=null}finally{st=c,K.p=l,G.T=i}}e.current=t,Xt=2}}function kb(){if(Xt===2){Xt=0;var e=ya,t=Rr,i=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||i){i=G.T,G.T=null;var l=K.p;K.p=2;var c=st;st|=4;try{$h(e,t.alternate,t)}finally{st=c,K.p=l,G.T=i}}Xt=3}}function Eb(){if(Xt===4||Xt===3){Xt=0,Rt();var e=ya,t=Rr,i=Zi,l=ob;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Xt=5:(Xt=0,Rr=ya=null,_b(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(ba=null),pn(i),t=t.stateNode,xt&&typeof xt.onCommitFiberRoot=="function")try{xt.onCommitFiberRoot(Jt,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=G.T,c=K.p,K.p=2,G.T=null;try{for(var d=e.onRecoverableError,y=0;y<l.length;y++){var E=l[y];d(E.value,{componentStack:E.stack})}}finally{G.T=t,K.p=c}}(Zi&3)!==0&&fs(),wi(e),c=e.pendingLanes,(i&261930)!==0&&(c&42)!==0?e===uf?Ul++:(Ul=0,uf=e):Ul=0,Hl(0)}}function _b(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,vl(t)))}function fs(){return vb(),kb(),Eb(),xb()}function xb(){if(Xt!==5)return!1;var e=ya,t=sf;sf=0;var i=pn(Zi),l=G.T,c=K.p;try{K.p=32>i?32:i,G.T=null,i=cf,cf=null;var d=ya,y=Zi;if(Xt=0,Rr=ya=null,Zi=0,(st&6)!==0)throw Error(s(331));var E=st;if(st|=4,ab(d.current),tb(d,d.current,y,i),st=E,Hl(0,!1),xt&&typeof xt.onPostCommitFiberRoot=="function")try{xt.onPostCommitFiberRoot(Jt,d)}catch{}return!0}finally{K.p=c,G.T=l,_b(e,t)}}function Sb(e,t,i){t=Wn(i,t),t=Fu(e.stateNode,t,2),e=fa(e,t,2),e!==null&&(he(e,2),wi(e))}function dt(e,t,i){if(e.tag===3)Sb(e,e,i);else for(;t!==null;){if(t.tag===3){Sb(t,e,i);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ba===null||!ba.has(l))){e=Wn(i,e),i=wh(2),l=fa(t,i,2),l!==null&&(Th(i,l,t,e),he(l,2),wi(l));break}}t=t.return}}function pf(e,t,i){var l=e.pingCache;if(l===null){l=e.pingCache=new TT;var c=new Set;l.set(t,c)}else c=l.get(t),c===void 0&&(c=new Set,l.set(t,c));c.has(i)||(rf=!0,c.add(i),e=MT.bind(null,e,t,i),t.then(e,e))}function MT(e,t,i){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,_t===e&&(Je&i)===i&&(zt===4||zt===3&&(Je&62914560)===Je&&300>lt()-rs?(st&2)===0&&Dr(e,0):lf|=i,Mr===Je&&(Mr=0)),wi(e)}function wb(e,t){t===0&&(t=wt()),e=qa(e,t),e!==null&&(he(e,t),wi(e))}function RT(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),wb(e,i)}function DT(e,t){var i=0;switch(e.tag){case 31:case 13:var l=e.stateNode,c=e.memoizedState;c!==null&&(i=c.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),wb(e,i)}function LT(e,t){return Ni(e,t)}var ds=null,zr=null,gf=!1,ps=!1,mf=!1,ka=0;function wi(e){e!==zr&&e.next===null&&(zr===null?ds=zr=e:zr=zr.next=e),ps=!0,gf||(gf=!0,IT())}function Hl(e,t){if(!mf&&ps){mf=!0;do for(var i=!1,l=ds;l!==null;){if(e!==0){var c=l.pendingLanes;if(c===0)var d=0;else{var y=l.suspendedLanes,E=l.pingedLanes;d=(1<<31-St(42|e)+1)-1,d&=c&~(y&~E),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(i=!0,Cb(l,d))}else d=Je,d=V(l,l===_t?d:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(d&3)===0||le(l,d)||(i=!0,Cb(l,d));l=l.next}while(i);mf=!1}}function zT(){Tb()}function Tb(){ps=gf=!1;var e=0;ka!==0&&KT()&&(e=ka);for(var t=lt(),i=null,l=ds;l!==null;){var c=l.next,d=Ab(l,t);d===0?(l.next=null,i===null?ds=c:i.next=c,c===null&&(zr=i)):(i=l,(e!==0||(d&3)!==0)&&(ps=!0)),l=c}Xt!==0&&Xt!==5||Hl(e),ka!==0&&(ka=0)}function Ab(e,t){for(var i=e.suspendedLanes,l=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var y=31-St(d),E=1<<y,A=c[y];A===-1?((E&i)===0||(E&l)!==0)&&(c[y]=De(E,t)):A<=t&&(e.expiredLanes|=E),d&=~E}if(t=_t,i=Je,i=V(e,e===t?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,i===0||e===t&&(ft===2||ft===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Bn(l),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||le(e,i)){if(t=i&-i,t===e.callbackPriority)return t;switch(l!==null&&Bn(l),pn(i)){case 2:case 8:i=Ae;break;case 32:i=qe;break;case 268435456:i=$t;break;default:i=qe}return l=Nb.bind(null,e),i=Ni(i,l),e.callbackPriority=t,e.callbackNode=i,t}return l!==null&&l!==null&&Bn(l),e.callbackPriority=2,e.callbackNode=null,2}function Nb(e,t){if(Xt!==0&&Xt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(fs()&&e.callbackNode!==i)return null;var l=Je;return l=V(e,e===_t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(cb(e,l,t),Ab(e,lt()),e.callbackNode!=null&&e.callbackNode===i?Nb.bind(null,e):null)}function Cb(e,t){if(fs())return null;cb(e,t,!0)}function IT(){$T(function(){(st&6)!==0?Ni(ae,zT):Tb()})}function hf(){if(ka===0){var e=kr;e===0&&(e=Wi,Wi<<=1,(Wi&261888)===0&&(Wi=256)),ka=e}return ka}function Ob(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ue(""+e)}function Mb(e,t){var i=t.ownerDocument.createElement("input");return i.name=t.name,i.value=t.value,e.id&&i.setAttribute("form",e.id),t.parentNode.insertBefore(i,t),e=new FormData(e),i.parentNode.removeChild(i),e}function BT(e,t,i,l,c){if(t==="submit"&&i&&i.stateNode===c){var d=Ob((c[Bt]||null).action),y=l.submitter;y&&(t=(t=y[Bt]||null)?Ob(t.formAction):y.getAttribute("formAction"),t!==null&&(d=t,y=null));var E=new wo("action","action",null,l,c);e.push({event:E,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ka!==0){var A=y?Mb(c,y):new FormData(c);zu(i,{pending:!0,data:A,method:c.method,action:d},null,A)}}else typeof d=="function"&&(E.preventDefault(),A=y?Mb(c,y):new FormData(c),zu(i,{pending:!0,data:A,method:c.method,action:d},d,A))},currentTarget:c}]})}}for(var bf=0;bf<Jc.length;bf++){var yf=Jc[bf],UT=yf.toLowerCase(),HT=yf[0].toUpperCase()+yf.slice(1);ui(UT,"on"+HT)}ui(sm,"onAnimationEnd"),ui(cm,"onAnimationIteration"),ui(um,"onAnimationStart"),ui("dblclick","onDoubleClick"),ui("focusin","onFocus"),ui("focusout","onBlur"),ui(tT,"onTransitionRun"),ui(nT,"onTransitionStart"),ui(iT,"onTransitionCancel"),ui(fm,"onTransitionEnd"),ke("onMouseEnter",["mouseout","mouseover"]),ke("onMouseLeave",["mouseout","mouseover"]),ke("onPointerEnter",["pointerout","pointerover"]),ke("onPointerLeave",["pointerout","pointerover"]),W("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),W("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),W("onBeforeInput",["compositionend","keypress","textInput","paste"]),W("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),W("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),W("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ql="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(" "),qT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ql));function Rb(e,t){t=(t&4)!==0;for(var i=0;i<e.length;i++){var l=e[i],c=l.event;l=l.listeners;e:{var d=void 0;if(t)for(var y=l.length-1;0<=y;y--){var E=l[y],A=E.instance,B=E.currentTarget;if(E=E.listener,A!==d&&c.isPropagationStopped())break e;d=E,c.currentTarget=B;try{d(c)}catch(P){No(P)}c.currentTarget=null,d=A}else for(y=0;y<l.length;y++){if(E=l[y],A=E.instance,B=E.currentTarget,E=E.listener,A!==d&&c.isPropagationStopped())break e;d=E,c.currentTarget=B;try{d(c)}catch(P){No(P)}c.currentTarget=null,d=A}}}}function Xe(e,t){var i=t[ta];i===void 0&&(i=t[ta]=new Set);var l=e+"__bubble";i.has(l)||(Db(t,e,2,!1),i.add(l))}function vf(e,t,i){var l=0;t&&(l|=4),Db(i,e,l,t)}var gs="_reactListening"+Math.random().toString(36).slice(2);function kf(e){if(!e[gs]){e[gs]=!0,oi.forEach(function(i){i!=="selectionchange"&&(qT.has(i)||vf(i,!1,e),vf(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[gs]||(t[gs]=!0,vf("selectionchange",!1,t))}}function Db(e,t,i,l){switch(sy(t)){case 2:var c=gA;break;case 8:c=mA;break;default:c=zf}i=c.bind(null,t,i,e),c=void 0,!Hc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),l?c!==void 0?e.addEventListener(t,i,{capture:!0,passive:c}):e.addEventListener(t,i,!0):c!==void 0?e.addEventListener(t,i,{passive:c}):e.addEventListener(t,i,!1)}function Ef(e,t,i,l,c){var d=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var y=l.tag;if(y===3||y===4){var E=l.stateNode.containerInfo;if(E===c)break;if(y===4)for(y=l.return;y!==null;){var A=y.tag;if((A===3||A===4)&&y.stateNode.containerInfo===c)return;y=y.return}for(;E!==null;){if(y=Xn(E),y===null)return;if(A=y.tag,A===5||A===6||A===26||A===27){l=d=y;continue e}E=E.parentNode}}l=l.return}Ug(function(){var B=d,P=it(i),Z=[];e:{var U=dm.get(e);if(U!==void 0){var F=wo,ye=e;switch(e){case"keypress":if(xo(i)===0)break e;case"keydown":case"keyup":F=Dw;break;case"focusin":ye="focus",F=jc;break;case"focusout":ye="blur",F=jc;break;case"beforeblur":case"afterblur":F=jc;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F=Fg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=Ew;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=Iw;break;case sm:case cm:case um:F=Sw;break;case fm:F=Uw;break;case"scroll":case"scrollend":F=vw;break;case"wheel":F=qw;break;case"copy":case"cut":case"paste":F=Tw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=jg;break;case"toggle":case"beforetoggle":F=Gw}var Ne=(t&4)!==0,bt=!Ne&&(e==="scroll"||e==="scrollend"),R=Ne?U!==null?U+"Capture":null:U;Ne=[];for(var O=B,I;O!==null;){var $=O;if(I=$.stateNode,$=$.tag,$!==5&&$!==26&&$!==27||I===null||R===null||($=sl(O,R),$!=null&&Ne.push(Fl(O,$,I))),bt)break;O=O.return}0<Ne.length&&(U=new F(U,ye,null,i,P),Z.push({event:U,listeners:Ne}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",U&&i!==Fe&&(ye=i.relatedTarget||i.fromElement)&&(Xn(ye)||ye[Zn]))break e;if((F||U)&&(U=P.window===P?P:(U=P.ownerDocument)?U.defaultView||U.parentWindow:window,F?(ye=i.relatedTarget||i.toElement,F=B,ye=ye?Xn(ye):null,ye!==null&&(bt=u(ye),Ne=ye.tag,ye!==bt||Ne!==5&&Ne!==27&&Ne!==6)&&(ye=null)):(F=null,ye=B),F!==ye)){if(Ne=Fg,$="onMouseLeave",R="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(Ne=jg,$="onPointerLeave",R="onPointerEnter",O="pointer"),bt=F==null?U:Ri(F),I=ye==null?U:Ri(ye),U=new Ne($,O+"leave",F,i,P),U.target=bt,U.relatedTarget=I,$=null,Xn(P)===B&&(Ne=new Ne(R,O+"enter",ye,i,P),Ne.target=I,Ne.relatedTarget=bt,$=Ne),bt=$,F&&ye)t:{for(Ne=FT,R=F,O=ye,I=0,$=R;$;$=Ne($))I++;$=0;for(var xe=O;xe;xe=Ne(xe))$++;for(;0<I-$;)R=Ne(R),I--;for(;0<$-I;)O=Ne(O),$--;for(;I--;){if(R===O||O!==null&&R===O.alternate){Ne=R;break t}R=Ne(R),O=Ne(O)}Ne=null}else Ne=null;F!==null&&Lb(Z,U,F,Ne,!1),ye!==null&&bt!==null&&Lb(Z,bt,ye,Ne,!0)}}e:{if(U=B?Ri(B):window,F=U.nodeName&&U.nodeName.toLowerCase(),F==="select"||F==="input"&&U.type==="file")var at=Qg;else if(Zg(U))if(Jg)at=Jw;else{at=Xw;var Ee=Zw}else F=U.nodeName,!F||F.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?B&&ci(B.elementType)&&(at=Qg):at=Qw;if(at&&(at=at(e,B))){Xg(Z,at,i,P);break e}Ee&&Ee(e,U,B),e==="focusout"&&B&&U.type==="number"&&B.memoizedProps.value!=null&&Tn(U,"number",U.value)}switch(Ee=B?Ri(B):window,e){case"focusin":(Zg(Ee)||Ee.contentEditable==="true")&&(dr=Ee,Zc=B,hl=null);break;case"focusout":hl=Zc=dr=null;break;case"mousedown":Xc=!0;break;case"contextmenu":case"mouseup":case"dragend":Xc=!1,lm(Z,i,P);break;case"selectionchange":if(eT)break;case"keydown":case"keyup":lm(Z,i,P)}var Ye;if(Pc)e:{switch(e){case"compositionstart":var We="onCompositionStart";break e;case"compositionend":We="onCompositionEnd";break e;case"compositionupdate":We="onCompositionUpdate";break e}We=void 0}else fr?Vg(e,i)&&(We="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(We="onCompositionStart");We&&(Yg&&i.locale!=="ko"&&(fr||We!=="onCompositionStart"?We==="onCompositionEnd"&&fr&&(Ye=Hg()):(aa=P,qc="value"in aa?aa.value:aa.textContent,fr=!0)),Ee=ms(B,We),0<Ee.length&&(We=new Gg(We,e,null,i,P),Z.push({event:We,listeners:Ee}),Ye?We.data=Ye:(Ye=$g(i),Ye!==null&&(We.data=Ye)))),(Ye=Yw?Pw(e,i):Kw(e,i))&&(We=ms(B,"onBeforeInput"),0<We.length&&(Ee=new Gg("onBeforeInput","beforeinput",null,i,P),Z.push({event:Ee,listeners:We}),Ee.data=Ye)),BT(Z,e,B,i,P)}Rb(Z,t)})}function Fl(e,t,i){return{instance:e,listener:t,currentTarget:i}}function ms(e,t){for(var i=t+"Capture",l=[];e!==null;){var c=e,d=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||d===null||(c=sl(e,i),c!=null&&l.unshift(Fl(e,c,d)),c=sl(e,t),c!=null&&l.push(Fl(e,c,d))),e.tag===3)return l;e=e.return}return[]}function FT(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Lb(e,t,i,l,c){for(var d=t._reactName,y=[];i!==null&&i!==l;){var E=i,A=E.alternate,B=E.stateNode;if(E=E.tag,A!==null&&A===l)break;E!==5&&E!==26&&E!==27||B===null||(A=B,c?(B=sl(i,d),B!=null&&y.unshift(Fl(i,B,A))):c||(B=sl(i,d),B!=null&&y.push(Fl(i,B,A)))),i=i.return}y.length!==0&&e.push({event:t,listeners:y})}var GT=/\r\n?/g,jT=/\u0000|\uFFFD/g;function zb(e){return(typeof e=="string"?e:""+e).replace(GT,`
9
+ `).replace(jT,"")}function Ib(e,t){return t=zb(t),zb(e)===t}function ht(e,t,i,l,c,d){switch(i){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Li(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Li(e,""+l);break;case"className":Le(e,"class",l);break;case"tabIndex":Le(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Le(e,i,l);break;case"style":Ia(e,l,d);break;case"data":if(t!=="object"){Le(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||i!=="href")){e.removeAttribute(i);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(i);break}l=ue(""+l),e.setAttribute(i,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(i,"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 d=="function"&&(i==="formAction"?(t!=="input"&&ht(e,t,"name",c.name,c,null),ht(e,t,"formEncType",c.formEncType,c,null),ht(e,t,"formMethod",c.formMethod,c,null),ht(e,t,"formTarget",c.formTarget,c,null)):(ht(e,t,"encType",c.encType,c,null),ht(e,t,"method",c.method,c,null),ht(e,t,"target",c.target,c,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(i);break}l=ue(""+l),e.setAttribute(i,l);break;case"onClick":l!=null&&(e.onclick=be);break;case"onScroll":l!=null&&Xe("scroll",e);break;case"onScrollEnd":l!=null&&Xe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(i=l.__html,i!=null){if(c.children!=null)throw Error(s(60));e.innerHTML=i}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}i=ue(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(i,""+l):e.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":l===!0?e.setAttribute(i,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(i,l):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(i,l):e.removeAttribute(i);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(i):e.setAttribute(i,l);break;case"popover":Xe("beforetoggle",e),Xe("toggle",e),Oe(e,"popover",l);break;case"xlinkActuate":Me(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Me(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Me(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Me(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Me(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Me(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Me(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Me(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Me(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Oe(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=rl.get(i)||i,Oe(e,i,l))}}function _f(e,t,i,l,c,d){switch(i){case"style":Ia(e,l,d);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(i=l.__html,i!=null){if(c.children!=null)throw Error(s(60));e.innerHTML=i}}break;case"children":typeof l=="string"?Li(e,l):(typeof l=="number"||typeof l=="bigint")&&Li(e,""+l);break;case"onScroll":l!=null&&Xe("scroll",e);break;case"onScrollEnd":l!=null&&Xe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=be);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!za.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(c=i.endsWith("Capture"),t=i.slice(2,c?i.length-7:void 0),d=e[Bt]||null,d=d!=null?d[i]:null,typeof d=="function"&&e.removeEventListener(t,d,c),typeof l=="function")){typeof d!="function"&&d!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(t,l,c);break e}i in e?e[i]=l:l===!0?e.setAttribute(i,""):Oe(e,i,l)}}}function on(e,t,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Xe("error",e),Xe("load",e);var l=!1,c=!1,d;for(d in i)if(i.hasOwnProperty(d)){var y=i[d];if(y!=null)switch(d){case"src":l=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ht(e,t,d,y,i,null)}}c&&ht(e,t,"srcSet",i.srcSet,i,null),l&&ht(e,t,"src",i.src,i,null);return;case"input":Xe("invalid",e);var E=d=y=c=null,A=null,B=null;for(l in i)if(i.hasOwnProperty(l)){var P=i[l];if(P!=null)switch(l){case"name":c=P;break;case"type":y=P;break;case"checked":A=P;break;case"defaultChecked":B=P;break;case"value":d=P;break;case"defaultValue":E=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(s(137,t));break;default:ht(e,t,l,P,i,null)}}al(e,d,E,A,B,y,c,!1);return;case"select":Xe("invalid",e),l=y=d=null;for(c in i)if(i.hasOwnProperty(c)&&(E=i[c],E!=null))switch(c){case"value":d=E;break;case"defaultValue":y=E;break;case"multiple":l=E;default:ht(e,t,c,E,i,null)}t=d,i=y,e.multiple=!!l,t!=null?ia(e,!!l,t,!1):i!=null&&ia(e,!!l,i,!0);return;case"textarea":Xe("invalid",e),d=c=l=null;for(y in i)if(i.hasOwnProperty(y)&&(E=i[y],E!=null))switch(y){case"value":l=E;break;case"defaultValue":c=E;break;case"children":d=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(s(91));break;default:ht(e,t,y,E,i,null)}ze(e,l,c,d);return;case"option":for(A in i)i.hasOwnProperty(A)&&(l=i[A],l!=null)&&(A==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":ht(e,t,A,l,i,null));return;case"dialog":Xe("beforetoggle",e),Xe("toggle",e),Xe("cancel",e),Xe("close",e);break;case"iframe":case"object":Xe("load",e);break;case"video":case"audio":for(l=0;l<ql.length;l++)Xe(ql[l],e);break;case"image":Xe("error",e),Xe("load",e);break;case"details":Xe("toggle",e);break;case"embed":case"source":case"link":Xe("error",e),Xe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(B in i)if(i.hasOwnProperty(B)&&(l=i[B],l!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ht(e,t,B,l,i,null)}return;default:if(ci(t)){for(P in i)i.hasOwnProperty(P)&&(l=i[P],l!==void 0&&_f(e,t,P,l,i,void 0));return}}for(E in i)i.hasOwnProperty(E)&&(l=i[E],l!=null&&ht(e,t,E,l,i,null))}function YT(e,t,i,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,d=null,y=null,E=null,A=null,B=null,P=null;for(F in i){var Z=i[F];if(i.hasOwnProperty(F)&&Z!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":A=Z;default:l.hasOwnProperty(F)||ht(e,t,F,null,l,Z)}}for(var U in l){var F=l[U];if(Z=i[U],l.hasOwnProperty(U)&&(F!=null||Z!=null))switch(U){case"type":d=F;break;case"name":c=F;break;case"checked":B=F;break;case"defaultChecked":P=F;break;case"value":y=F;break;case"defaultValue":E=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(s(137,t));break;default:F!==Z&&ht(e,t,U,F,l,Z)}}Ei(e,y,E,A,B,P,d,c);return;case"select":F=y=E=U=null;for(d in i)if(A=i[d],i.hasOwnProperty(d)&&A!=null)switch(d){case"value":break;case"multiple":F=A;default:l.hasOwnProperty(d)||ht(e,t,d,null,l,A)}for(c in l)if(d=l[c],A=i[c],l.hasOwnProperty(c)&&(d!=null||A!=null))switch(c){case"value":U=d;break;case"defaultValue":E=d;break;case"multiple":y=d;default:d!==A&&ht(e,t,c,d,l,A)}t=E,i=y,l=F,U!=null?ia(e,!!i,U,!1):!!l!=!!i&&(t!=null?ia(e,!!i,t,!0):ia(e,!!i,i?[]:"",!1));return;case"textarea":F=U=null;for(E in i)if(c=i[E],i.hasOwnProperty(E)&&c!=null&&!l.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:ht(e,t,E,null,l,c)}for(y in l)if(c=l[y],d=i[y],l.hasOwnProperty(y)&&(c!=null||d!=null))switch(y){case"value":U=c;break;case"defaultValue":F=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(s(91));break;default:c!==d&&ht(e,t,y,c,l,d)}ur(e,U,F);return;case"option":for(var ye in i)U=i[ye],i.hasOwnProperty(ye)&&U!=null&&!l.hasOwnProperty(ye)&&(ye==="selected"?e.selected=!1:ht(e,t,ye,null,l,U));for(A in l)U=l[A],F=i[A],l.hasOwnProperty(A)&&U!==F&&(U!=null||F!=null)&&(A==="selected"?e.selected=U&&typeof U!="function"&&typeof U!="symbol":ht(e,t,A,U,l,F));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ne in i)U=i[Ne],i.hasOwnProperty(Ne)&&U!=null&&!l.hasOwnProperty(Ne)&&ht(e,t,Ne,null,l,U);for(B in l)if(U=l[B],F=i[B],l.hasOwnProperty(B)&&U!==F&&(U!=null||F!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(s(137,t));break;default:ht(e,t,B,U,l,F)}return;default:if(ci(t)){for(var bt in i)U=i[bt],i.hasOwnProperty(bt)&&U!==void 0&&!l.hasOwnProperty(bt)&&_f(e,t,bt,void 0,l,U);for(P in l)U=l[P],F=i[P],!l.hasOwnProperty(P)||U===F||U===void 0&&F===void 0||_f(e,t,P,U,l,F);return}}for(var R in i)U=i[R],i.hasOwnProperty(R)&&U!=null&&!l.hasOwnProperty(R)&&ht(e,t,R,null,l,U);for(Z in l)U=l[Z],F=i[Z],!l.hasOwnProperty(Z)||U===F||U==null&&F==null||ht(e,t,Z,U,l,F)}function Bb(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function PT(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,i=performance.getEntriesByType("resource"),l=0;l<i.length;l++){var c=i[l],d=c.transferSize,y=c.initiatorType,E=c.duration;if(d&&E&&Bb(y)){for(y=0,E=c.responseEnd,l+=1;l<i.length;l++){var A=i[l],B=A.startTime;if(B>E)break;var P=A.transferSize,Z=A.initiatorType;P&&Bb(Z)&&(A=A.responseEnd,y+=P*(A<E?1:(E-B)/(A-B)))}if(--l,t+=8*(d+y)/(c.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var xf=null,Sf=null;function hs(e){return e.nodeType===9?e:e.ownerDocument}function Ub(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Hb(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function wf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Tf=null;function KT(){var e=window.event;return e&&e.type==="popstate"?e===Tf?!1:(Tf=e,!0):(Tf=null,!1)}var qb=typeof setTimeout=="function"?setTimeout:void 0,VT=typeof clearTimeout=="function"?clearTimeout:void 0,Fb=typeof Promise=="function"?Promise:void 0,$T=typeof queueMicrotask=="function"?queueMicrotask:typeof Fb<"u"?function(e){return Fb.resolve(null).then(e).catch(ZT)}:qb;function ZT(e){setTimeout(function(){throw e})}function Ea(e){return e==="head"}function Gb(e,t){var i=t,l=0;do{var c=i.nextSibling;if(e.removeChild(i),c&&c.nodeType===8)if(i=c.data,i==="/$"||i==="/&"){if(l===0){e.removeChild(c),Hr(t);return}l--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")l++;else if(i==="html")Gl(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,Gl(i);for(var d=i.firstChild;d;){var y=d.nextSibling,E=d.nodeName;d[Ut]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&d.rel.toLowerCase()==="stylesheet"||i.removeChild(d),d=y}}else i==="body"&&Gl(e.ownerDocument.body);i=c}while(i);Hr(t)}function jb(e,t){var i=e;e=0;do{var l=i.nextSibling;if(i.nodeType===1?t?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(t?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),l&&l.nodeType===8)if(i=l.data,i==="/$"){if(e===0)break;e--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||e++;i=l}while(i)}function Af(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var i=t;switch(t=t.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Af(i),Nt(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function XT(e,t,i,l){for(;e.nodeType===1;){var c=i;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Ut])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=ai(e.nextSibling),e===null)break}return null}function QT(e,t,i){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=ai(e.nextSibling),e===null))return null;return e}function Yb(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ai(e.nextSibling),e===null))return null;return e}function Nf(e){return e.data==="$?"||e.data==="$~"}function Cf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function JT(e,t){var i=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||i.readyState!=="loading")t();else{var l=function(){t(),i.removeEventListener("DOMContentLoaded",l)};i.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function ai(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Of=null;function Pb(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"||i==="/&"){if(t===0)return ai(e.nextSibling);t--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||t++}e=e.nextSibling}return null}function Kb(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(t===0)return e;t--}else i!=="/$"&&i!=="/&"||t++}e=e.previousSibling}return null}function Vb(e,t,i){switch(t=hs(i),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Gl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Nt(e)}var ri=new Map,$b=new Set;function bs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Xi=K.d;K.d={f:WT,r:eA,D:tA,C:nA,L:iA,m:aA,X:lA,S:rA,M:oA};function WT(){var e=Xi.f(),t=ss();return e||t}function eA(e){var t=gn(e);t!==null&&t.tag===5&&t.type==="form"?fh(t):Xi.r(e)}var Ir=typeof document>"u"?null:document;function Zb(e,t,i){var l=Ir;if(l&&typeof t=="string"&&t){var c=mn(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof i=="string"&&(c+='[crossorigin="'+i+'"]'),$b.has(c)||($b.add(c),e={rel:e,crossOrigin:i,href:t},l.querySelector(c)===null&&(t=l.createElement("link"),on(t,"link",e),Dt(t),l.head.appendChild(t)))}}function tA(e){Xi.D(e),Zb("dns-prefetch",e,null)}function nA(e,t){Xi.C(e,t),Zb("preconnect",e,t)}function iA(e,t,i){Xi.L(e,t,i);var l=Ir;if(l&&e&&t){var c='link[rel="preload"][as="'+mn(t)+'"]';t==="image"&&i&&i.imageSrcSet?(c+='[imagesrcset="'+mn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(c+='[imagesizes="'+mn(i.imageSizes)+'"]')):c+='[href="'+mn(e)+'"]';var d=c;switch(t){case"style":d=Br(e);break;case"script":d=Ur(e)}ri.has(d)||(e=v({rel:"preload",href:t==="image"&&i&&i.imageSrcSet?void 0:e,as:t},i),ri.set(d,e),l.querySelector(c)!==null||t==="style"&&l.querySelector(jl(d))||t==="script"&&l.querySelector(Yl(d))||(t=l.createElement("link"),on(t,"link",e),Dt(t),l.head.appendChild(t)))}}function aA(e,t){Xi.m(e,t);var i=Ir;if(i&&e){var l=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+mn(l)+'"][href="'+mn(e)+'"]',d=c;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Ur(e)}if(!ri.has(d)&&(e=v({rel:"modulepreload",href:e},t),ri.set(d,e),i.querySelector(c)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Yl(d)))return}l=i.createElement("link"),on(l,"link",e),Dt(l),i.head.appendChild(l)}}}function rA(e,t,i){Xi.S(e,t,i);var l=Ir;if(l&&e){var c=vi(l).hoistableStyles,d=Br(e);t=t||"default";var y=c.get(d);if(!y){var E={loading:0,preload:null};if(y=l.querySelector(jl(d)))E.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},i),(i=ri.get(d))&&Mf(e,i);var A=y=l.createElement("link");Dt(A),on(A,"link",e),A._p=new Promise(function(B,P){A.onload=B,A.onerror=P}),A.addEventListener("load",function(){E.loading|=1}),A.addEventListener("error",function(){E.loading|=2}),E.loading|=4,ys(y,t,l)}y={type:"stylesheet",instance:y,count:1,state:E},c.set(d,y)}}}function lA(e,t){Xi.X(e,t);var i=Ir;if(i&&e){var l=vi(i).hoistableScripts,c=Ur(e),d=l.get(c);d||(d=i.querySelector(Yl(c)),d||(e=v({src:e,async:!0},t),(t=ri.get(c))&&Rf(e,t),d=i.createElement("script"),Dt(d),on(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(c,d))}}function oA(e,t){Xi.M(e,t);var i=Ir;if(i&&e){var l=vi(i).hoistableScripts,c=Ur(e),d=l.get(c);d||(d=i.querySelector(Yl(c)),d||(e=v({src:e,async:!0,type:"module"},t),(t=ri.get(c))&&Rf(e,t),d=i.createElement("script"),Dt(d),on(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(c,d))}}function Xb(e,t,i,l){var c=(c=Ce.current)?bs(c):null;if(!c)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(t=Br(i.href),i=vi(c).hoistableStyles,l=i.get(t),l||(l={type:"style",instance:null,count:0,state:null},i.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=Br(i.href);var d=vi(c).hoistableStyles,y=d.get(e);if(y||(c=c.ownerDocument||c,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,y),(d=c.querySelector(jl(e)))&&!d._p&&(y.instance=d,y.state.loading=5),ri.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},ri.set(e,i),d||sA(c,e,i,y.state))),t&&l===null)throw Error(s(528,""));return y}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=i.async,i=i.src,typeof i=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ur(i),i=vi(c).hoistableScripts,l=i.get(t),l||(l={type:"script",instance:null,count:0,state:null},i.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Br(e){return'href="'+mn(e)+'"'}function jl(e){return'link[rel="stylesheet"]['+e+"]"}function Qb(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function sA(e,t,i,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),on(t,"link",i),Dt(t),e.head.appendChild(t))}function Ur(e){return'[src="'+mn(e)+'"]'}function Yl(e){return"script[async]"+e}function Jb(e,t,i){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+mn(i.href)+'"]');if(l)return t.instance=l,Dt(l),l;var c=v({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Dt(l),on(l,"style",c),ys(l,i.precedence,e),t.instance=l;case"stylesheet":c=Br(i.href);var d=e.querySelector(jl(c));if(d)return t.state.loading|=4,t.instance=d,Dt(d),d;l=Qb(i),(c=ri.get(c))&&Mf(l,c),d=(e.ownerDocument||e).createElement("link"),Dt(d);var y=d;return y._p=new Promise(function(E,A){y.onload=E,y.onerror=A}),on(d,"link",l),t.state.loading|=4,ys(d,i.precedence,e),t.instance=d;case"script":return d=Ur(i.src),(c=e.querySelector(Yl(d)))?(t.instance=c,Dt(c),c):(l=i,(c=ri.get(d))&&(l=v({},i),Rf(l,c)),e=e.ownerDocument||e,c=e.createElement("script"),Dt(c),on(c,"link",l),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,ys(l,i.precedence,e));return t.instance}function ys(e,t,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=l.length?l[l.length-1]:null,d=c,y=0;y<l.length;y++){var E=l[y];if(E.dataset.precedence===t)d=E;else if(d!==c)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=i.nodeType===9?i.head:i,t.insertBefore(e,t.firstChild))}function Mf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Rf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var vs=null;function Wb(e,t,i){if(vs===null){var l=new Map,c=vs=new Map;c.set(i,l)}else c=vs,l=c.get(i),l||(l=new Map,c.set(i,l));if(l.has(e))return l;for(l.set(e,null),i=i.getElementsByTagName(e),c=0;c<i.length;c++){var d=i[c];if(!(d[Ut]||d[It]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var y=d.getAttribute(t)||"";y=e+y;var E=l.get(y);E?E.push(d):l.set(y,[d])}}return l}function ey(e,t,i){e=e.ownerDocument||e,e.head.insertBefore(i,t==="title"?e.querySelector("head > title"):null)}function cA(e,t,i){if(i===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function ty(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function uA(e,t,i,l){if(i.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var c=Br(l.href),d=t.querySelector(jl(c));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ks.bind(e),t.then(e,e)),i.state.loading|=4,i.instance=d,Dt(d);return}d=t.ownerDocument||t,l=Qb(l),(c=ri.get(c))&&Mf(l,c),d=d.createElement("link"),Dt(d);var y=d;y._p=new Promise(function(E,A){y.onload=E,y.onerror=A}),on(d,"link",l),i.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,t),(t=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=ks.bind(e),t.addEventListener("load",i),t.addEventListener("error",i))}}var Df=0;function fA(e,t){return e.stylesheets&&e.count===0&&_s(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var l=setTimeout(function(){if(e.stylesheets&&_s(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+t);0<e.imgBytes&&Df===0&&(Df=62500*PT());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&_s(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>Df?50:800)+t);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(c)}}:null}function ks(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)_s(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Es=null;function _s(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Es=new Map,t.forEach(dA,e),Es=null,ks.call(e))}function dA(e,t){if(!(t.state.loading&4)){var i=Es.get(e);if(i)var l=i.get(null);else{i=new Map,Es.set(e,i);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<c.length;d++){var y=c[d];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(i.set(y.dataset.precedence,y),l=y)}l&&i.set(null,l)}c=t.instance,y=c.getAttribute("data-precedence"),d=i.get(y)||l,d===l&&i.set(null,c),i.set(y,c),this.count++,l=ks.bind(this),c.addEventListener("load",l),c.addEventListener("error",l),d?d.parentNode.insertBefore(c,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var Pl={$$typeof:Q,Provider:null,Consumer:null,_currentValue:ve,_currentValue2:ve,_threadCount:0};function pA(e,t,i,l,c,d,y,E,A){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Qe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qe(0),this.hiddenUpdates=Qe(null),this.identifierPrefix=l,this.onUncaughtError=c,this.onCaughtError=d,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function ny(e,t,i,l,c,d,y,E,A,B,P,Z){return e=new pA(e,t,i,y,A,B,P,Z,E),t=1,d===!0&&(t|=24),d=Hn(3,null,null,t),e.current=d,d.stateNode=e,t=fu(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:l,isDehydrated:i,cache:t},mu(d),e}function iy(e){return e?(e=mr,e):mr}function ay(e,t,i,l,c,d){c=iy(c),l.context===null?l.context=c:l.pendingContext=c,l=ua(t),l.payload={element:i},d=d===void 0?null:d,d!==null&&(l.callback=d),i=fa(e,l,t),i!==null&&(Rn(i,e,t),xl(i,e,t))}function ry(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function Lf(e,t){ry(e,t),(e=e.alternate)&&ry(e,t)}function ly(e){if(e.tag===13||e.tag===31){var t=qa(e,67108864);t!==null&&Rn(t,e,67108864),Lf(e,67108864)}}function oy(e){if(e.tag===13||e.tag===31){var t=Yn();t=vn(t);var i=qa(e,t);i!==null&&Rn(i,e,t),Lf(e,t)}}var xs=!0;function gA(e,t,i,l){var c=G.T;G.T=null;var d=K.p;try{K.p=2,zf(e,t,i,l)}finally{K.p=d,G.T=c}}function mA(e,t,i,l){var c=G.T;G.T=null;var d=K.p;try{K.p=8,zf(e,t,i,l)}finally{K.p=d,G.T=c}}function zf(e,t,i,l){if(xs){var c=If(l);if(c===null)Ef(e,t,l,Ss,i),cy(e,l);else if(bA(c,e,t,i,l))l.stopPropagation();else if(cy(e,l),t&4&&-1<hA.indexOf(e)){for(;c!==null;){var d=gn(c);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var y=N(d.pendingLanes);if(y!==0){var E=d;for(E.pendingLanes|=2,E.entangledLanes|=2;y;){var A=1<<31-St(y);E.entanglements[1]|=A,y&=~A}wi(d),(st&6)===0&&(ls=lt()+500,Hl(0))}}break;case 31:case 13:E=qa(d,2),E!==null&&Rn(E,d,2),ss(),Lf(d,2)}if(d=If(l),d===null&&Ef(e,t,l,Ss,i),d===c)break;c=d}c!==null&&l.stopPropagation()}else Ef(e,t,l,null,i)}}function If(e){return e=it(e),Bf(e)}var Ss=null;function Bf(e){if(Ss=null,e=Xn(e),e!==null){var t=u(e);if(t===null)e=null;else{var i=t.tag;if(i===13){if(e=g(t),e!==null)return e;e=null}else if(i===31){if(e=m(t),e!==null)return e;e=null}else if(i===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ss=e,null}function sy(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(j()){case ae:return 2;case Ae:return 8;case qe:case nt:return 32;case $t:return 268435456;default:return 32}default:return 32}}var Uf=!1,_a=null,xa=null,Sa=null,Kl=new Map,Vl=new Map,wa=[],hA="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 cy(e,t){switch(e){case"focusin":case"focusout":_a=null;break;case"dragenter":case"dragleave":xa=null;break;case"mouseover":case"mouseout":Sa=null;break;case"pointerover":case"pointerout":Kl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vl.delete(t.pointerId)}}function $l(e,t,i,l,c,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:i,eventSystemFlags:l,nativeEvent:d,targetContainers:[c]},t!==null&&(t=gn(t),t!==null&&ly(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function bA(e,t,i,l,c){switch(t){case"focusin":return _a=$l(_a,e,t,i,l,c),!0;case"dragenter":return xa=$l(xa,e,t,i,l,c),!0;case"mouseover":return Sa=$l(Sa,e,t,i,l,c),!0;case"pointerover":var d=c.pointerId;return Kl.set(d,$l(Kl.get(d)||null,e,t,i,l,c)),!0;case"gotpointercapture":return d=c.pointerId,Vl.set(d,$l(Vl.get(d)||null,e,t,i,l,c)),!0}return!1}function uy(e){var t=Xn(e.target);if(t!==null){var i=u(t);if(i!==null){if(t=i.tag,t===13){if(t=g(i),t!==null){e.blockedOn=t,ea(e.priority,function(){oy(i)});return}}else if(t===31){if(t=m(i),t!==null){e.blockedOn=t,ea(e.priority,function(){oy(i)});return}}else if(t===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ws(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var i=If(e.nativeEvent);if(i===null){i=e.nativeEvent;var l=new i.constructor(i.type,i);Fe=l,i.target.dispatchEvent(l),Fe=null}else return t=gn(i),t!==null&&ly(t),e.blockedOn=i,!1;t.shift()}return!0}function fy(e,t,i){ws(e)&&i.delete(t)}function yA(){Uf=!1,_a!==null&&ws(_a)&&(_a=null),xa!==null&&ws(xa)&&(xa=null),Sa!==null&&ws(Sa)&&(Sa=null),Kl.forEach(fy),Vl.forEach(fy)}function Ts(e,t){e.blockedOn===t&&(e.blockedOn=null,Uf||(Uf=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,yA)))}var As=null;function dy(e){As!==e&&(As=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){As===e&&(As=null);for(var t=0;t<e.length;t+=3){var i=e[t],l=e[t+1],c=e[t+2];if(typeof l!="function"){if(Bf(l||i)===null)continue;break}var d=gn(i);d!==null&&(e.splice(t,3),t-=3,zu(d,{pending:!0,data:c,method:i.method,action:l},l,c))}}))}function Hr(e){function t(A){return Ts(A,e)}_a!==null&&Ts(_a,e),xa!==null&&Ts(xa,e),Sa!==null&&Ts(Sa,e),Kl.forEach(t),Vl.forEach(t);for(var i=0;i<wa.length;i++){var l=wa[i];l.blockedOn===e&&(l.blockedOn=null)}for(;0<wa.length&&(i=wa[0],i.blockedOn===null);)uy(i),i.blockedOn===null&&wa.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(l=0;l<i.length;l+=3){var c=i[l],d=i[l+1],y=c[Bt]||null;if(typeof d=="function")y||dy(i);else if(y){var E=null;if(d&&d.hasAttribute("formAction")){if(c=d,y=d[Bt]||null)E=y.formAction;else if(Bf(c)!==null)continue}else E=y.action;typeof E=="function"?i[l+1]=E:(i.splice(l,3),l-=3),dy(i)}}}function py(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(y){return c=y})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),l||setTimeout(i,20)}function i(){if(!l&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(i,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function Hf(e){this._internalRoot=e}Ns.prototype.render=Hf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var i=t.current,l=Yn();ay(i,l,e,t,null,null)},Ns.prototype.unmount=Hf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ay(e.current,2,null,e,null,null),ss(),t[Zn]=null}};function Ns(e){this._internalRoot=e}Ns.prototype.unstable_scheduleHydration=function(e){if(e){var t=Mi();e={blockedOn:null,target:e,priority:t};for(var i=0;i<wa.length&&t!==0&&t<wa[i].priority;i++);wa.splice(i,0,e),i===0&&uy(e)}};var gy=r.version;if(gy!=="19.2.7")throw Error(s(527,gy,"19.2.7"));K.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=b(t),e=e!==null?h(e):null,e=e===null?null:e.stateNode,e};var vA={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cs.isDisabled&&Cs.supportsFiber)try{Jt=Cs.inject(vA),xt=Cs}catch{}}return Gr.createRoot=function(e,t){if(!f(e))throw Error(s(299));var i=!1,l="",c=Eh,d=_h,y=xh;return t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(y=t.onRecoverableError)),t=ny(e,1,!1,null,null,i,l,null,c,d,y,py),e[Zn]=t.current,kf(e),new Hf(t)},Gr.hydrateRoot=function(e,t,i){if(!f(e))throw Error(s(299));var l=!1,c="",d=Eh,y=_h,E=xh,A=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(y=i.onCaughtError),i.onRecoverableError!==void 0&&(E=i.onRecoverableError),i.formState!==void 0&&(A=i.formState)),t=ny(e,1,!0,t,i??null,l,c,A,d,y,E,py),t.context=iy(null),i=t.current,l=Yn(),l=vn(l),c=ua(l),c.callback=null,fa(i,c,l),i=l,t.current.lanes=i,he(t,i),wi(t),e[Zn]=t.current,kf(e),new Ns(t)},Gr.version="19.2.7",Gr}var Xf;function _y(){if(Xf)return Rs.exports;Xf=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Rs.exports=Ey(),Rs.exports}var xy=_y();function Qf(n){var a,r,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n)){var s=n.length;for(a=0;a<s;a++)n[a]&&(r=Qf(n[a]))&&(o&&(o+=" "),o+=r)}else for(r in n)n[r]&&(o&&(o+=" "),o+=r);return o}function Aa(){for(var n,a,r=0,o="",s=arguments.length;r<s;r++)(n=arguments[r])&&(a=Qf(n))&&(o&&(o+=" "),o+=a);return o}var me=Is(),Sy=$f();function Us({className:n,primaryColor:a="#0F766E",style:r}){return D.jsxs("svg",{className:n,style:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 320",role:"img","aria-labelledby":"title desc",children:[D.jsxs("g",{fill:"none",stroke:a,strokeWidth:"34",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{d:"M60 244 L132 88 Q142 66 160 66 Q178 66 188 88 L260 244"}),D.jsx("path",{d:"M60 244 H108"})]}),D.jsx("circle",{cx:"160",cy:"226",r:"18",fill:a})]})}function wy({className:n,primaryColor:a="#0F766E",secondaryColor:r="#0F1B3D",style:o}){return D.jsx("svg",{className:n,style:o,viewBox:"0 0 1000 320",xmlns:"http://www.w3.org/2000/svg",children:D.jsxs("g",{id:"Group",children:[D.jsx("path",{id:"Path",fill:"none",stroke:a,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 90 235 L 175 78 C 182.333333 64.666667 193.333333 58 208 58 C 222.666667 58 233.666667 64.666667 241 78 L 326 235"}),D.jsx("path",{id:"path1",fill:"none",stroke:a,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 91 235 L 142 235"}),D.jsx("path",{id:"path2",fill:a,stroke:"none",d:"M 203 223 C 203 232.38884 195.38884 240 186 240 C 176.61116 240 169 232.38884 169 223 C 169 213.61116 176.61116 206 186 206 C 195.38884 206 203 213.61116 203 223 Z"}),D.jsx("path",{id:"path3",fill:"none",stroke:r,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 365 62 L 365 238"}),D.jsx("path",{id:"path4",fill:"none",stroke:r,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 365 168 L 458 84"}),D.jsx("path",{id:"path5",fill:"none",stroke:r,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 398 139 L 468 238"}),D.jsx("path",{id:"path6",fill:"none",stroke:r,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 520 118 L 520 238"}),D.jsx("path",{id:"path7",fill:a,stroke:"none",d:"M 536 72 C 536 80.836548 528.836548 88 520 88 C 511.163452 88 504 80.836548 504 72 C 504 63.163452 511.163452 56 520 56 C 528.836548 56 536 63.163452 536 72 Z"}),D.jsx("path",{id:"path8",fill:"none",stroke:r,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 598 62 L 598 205 C 598 227 608 238 628 238 L 650 238"}),D.jsx("path",{id:"path9",fill:"none",stroke:r,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 710 118 L 710 238"}),D.jsx("path",{id:"path10",fill:a,stroke:"none",d:"M 726 72 C 726 80.836548 718.836548 88 710 88 C 701.163452 88 694 80.836548 694 72 C 694 63.163452 701.163452 56 710 56 C 718.836548 56 726 63.163452 726 72 Z"}),D.jsx("path",{id:"path11",fill:"none",stroke:a,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 921 178 C 921 214.45079 891.450806 244 855 244 C 818.549194 244 789 214.45079 789 178 C 789 141.54921 818.549194 112 855 112 C 891.450806 112 921 141.54921 921 178 Z"})]})})}function Zl({variant:n="mark",className:a,style:r,primaryColor:o,secondaryColor:s}){return n==="wordmark"?D.jsx(wy,{className:a,style:r,primaryColor:o,secondaryColor:s}):D.jsx(Us,{className:a,style:r,primaryColor:o})}function Hs(n){return D.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...n,children:D.jsx("path",{d:"M10 2.5 11.3 6l3.5 1.3-3.5 1.2L10 12l-1.3-3.5-3.5-1.2L8.7 6 10 2.5ZM15.5 11.5l.7 1.8 1.8.7-1.8.7-.7 1.8-.7-1.8-1.8-.7 1.8-.7.7-1.8ZM4.8 11.8l.7 1.7 1.7.7-1.7.6-.7 1.8-.7-1.8-1.7-.6 1.7-.7.7-1.7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}function Ty(n){return D.jsxs("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...n,children:[D.jsx("path",{d:"M17.2 2.8 8.8 11.2",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),D.jsx("path",{d:"m17.2 2.8-5.4 15-3-6.6-6.6-3 15-5.4Z",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Ay(n){return D.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...n,children:D.jsx("path",{d:"m5.5 5.5 9 9M14.5 5.5l-9 9",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round"})})}function Ny(n){return D.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...n,children:D.jsx("path",{d:"M7.5 3.8h5M4.5 6.2h11M6 6.2l.7 10h6.6l.7-10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function Cy(n){return D.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...n,children:D.jsx("path",{d:"M6.8 8.5v8M6.8 8.5H4.2c-.8 0-1.4.6-1.4 1.4v5.2c0 .8.6 1.4 1.4 1.4h2.6M6.8 8.5l3.7-5.2c.7-1 2.2-.5 2.2.7v3.1h2.6c1.1 0 2 .9 1.8 2l-.8 5.6c-.1 1-1 1.8-2 1.8H6.8",stroke:"currentColor",strokeWidth:"1.45",strokeLinecap:"round",strokeLinejoin:"round"})})}function Oy(n){return D.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...n,children:D.jsx("path",{d:"M13.2 11.5v-8M13.2 11.5h2.6c.8 0 1.4-.6 1.4-1.4V4.9c0-.8-.6-1.4-1.4-1.4h-2.6M13.2 11.5l-3.7 5.2c-.7 1-2.2.5-2.2-.7v-3.1H4.7c-1.1 0-2-.9-1.8-2l.8-5.6c.1-1 1-1.8 2-1.8h7.5",stroke:"currentColor",strokeWidth:"1.45",strokeLinecap:"round",strokeLinejoin:"round"})})}function My(n){return D.jsxs("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...n,children:[D.jsx("circle",{cx:"10",cy:"10",r:"3.2",stroke:"currentColor",strokeWidth:"1.5"}),D.jsx("path",{d:"M10 2.2v1.5M10 16.3v1.5M2.2 10h1.5M16.3 10h1.5M4.5 4.5l1.1 1.1M14.4 14.4l1.1 1.1M15.5 4.5l-1.1 1.1M5.6 14.4l-1.1 1.1",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}function Ry(n){return D.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...n,children:D.jsx("path",{d:"M16.7 12.3A6.8 6.8 0 0 1 7.7 3.3a6.8 6.8 0 1 0 9 9Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}const Dy=me.forwardRef(function({loading:a,disabled:r,copy:o,onSubmit:s,onReviewConsent:f,onDraftChange:u,disabledMessage:g,showPoweredBy:m},p){const[b,h]=me.useState(""),v=me.useRef(""),k=me.useRef(null);me.useLayoutEffect(()=>{const w=k.current;if(!w)return;w.style.height="auto";const q=Math.max(48,Math.min(w.scrollHeight,148));w.style.height=`${q}px`,w.style.overflowY=w.scrollHeight>148?"auto":"hidden"},[b]);const x=async()=>{const w=v.current.trim();if(!w)throw new Error("EMPTY_DRAFT");if(a)throw new Error("BUSY");if(r)throw new Error("INVALID_QUESTION");return h(""),v.current="",u?.("",!1),s(w)},C=w=>{w.preventDefault(),x().catch(()=>{})},M=w=>{w.key==="Enter"&&!w.shiftKey&&!w.nativeEvent.isComposing&&(w.preventDefault(),C(w))};return me.useImperativeHandle(p,()=>({getDraft:()=>v.current,setDraft:(w,q)=>{const H=q?.clearExisting===!1?`${v.current}${w}`:w;v.current=H,h(H),u?.(H,!1),q?.focus&&window.setTimeout(()=>k.current?.focus(),0)},clearDraft:()=>{v.current="",h(""),u?.("",!1)},focus:()=>k.current?.focus(),submit:x}),[u,s,b,a,r]),D.jsxs("form",{onSubmit:C,className:"akilio-composer",children:[D.jsxs("div",{className:"akilio-composer-box",children:[D.jsx("textarea",{ref:k,value:b,rows:1,onChange:w=>{v.current=w.target.value,h(w.target.value),u?.(w.target.value,!0)},onKeyDown:M,placeholder:o.placeholder,"aria-label":o.placeholder,disabled:r,title:r?g||o.privacyRequired:o.helper}),D.jsx("button",{type:"submit",disabled:a||r||!b.trim(),className:"akilio-composer-submit",title:a?o.loading:o.submit,children:D.jsx(Ty,{color:"#FFF"})})]}),r&&f&&D.jsxs("div",{className:"akilio-composer-help",children:[g||o.privacyRequired," ",D.jsx("button",{type:"button",className:"akilio-privacy-review",onClick:f,children:o.privacyReview})]}),m&&D.jsxs("div",{className:"akilio-powered-by",children:[o.poweredBy," ",D.jsx("a",{href:"https://akilio-ai.com",children:"Akilio"}),"."," ",o.aiContentWarning]})]})});function Ly({copy:n,onSuggestion:a,widgetAvailable:r,showBranding:o,primaryColor:s}){return D.jsxs("div",{className:"akilio-empty",children:[D.jsx("div",{className:"akilio-empty-icon",children:o?D.jsx(Zl,{variant:"mark",primaryColor:s}):D.jsx(Hs,{})}),D.jsx("h3",{children:n.title}),D.jsx("p",{children:r?n.emptyState:n.widgetUnavailable}),D.jsx("div",{className:"akilio-suggestions",children:r&&n.suggestions.slice(0,4).map(f=>D.jsx("button",{type:"button",onClick:()=>a(f),children:f},f))})]})}function xA(){}function SA(){}function zy(n,a){const r={};return(n[n.length-1]===""?[...n,""]:n).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Iy=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,By=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Uy={};function Jf(n,a){return(Uy.jsx?By:Iy).test(n)}const Hy=/[ \t\n\f\r]/g;function qy(n){return typeof n=="object"?n.type==="text"?Wf(n.value):!1:Wf(n)}function Wf(n){return n.replace(Hy,"")===""}class jr{constructor(a,r,o){this.normal=r,this.property=a,o&&(this.space=o)}}jr.prototype.normal={},jr.prototype.property={},jr.prototype.space=void 0;function ed(n,a){const r={},o={};for(const s of n)Object.assign(r,s.property),Object.assign(o,s.normal);return new jr(r,o,a)}function qs(n){return n.toLowerCase()}class _n{constructor(a,r){this.attribute=r,this.property=a}}_n.prototype.attribute="",_n.prototype.booleanish=!1,_n.prototype.boolean=!1,_n.prototype.commaOrSpaceSeparated=!1,_n.prototype.commaSeparated=!1,_n.prototype.defined=!1,_n.prototype.mustUseProperty=!1,_n.prototype.number=!1,_n.prototype.overloadedBoolean=!1,_n.prototype.property="",_n.prototype.spaceSeparated=!1,_n.prototype.space=void 0;let Fy=0;const Ie=Ca(),Gt=Ca(),Fs=Ca(),ie=Ca(),yt=Ca(),Na=Ca(),Dn=Ca();function Ca(){return 2**++Fy}const Gs=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ie,booleanish:Gt,commaOrSpaceSeparated:Dn,commaSeparated:Na,number:ie,overloadedBoolean:Fs,spaceSeparated:yt},Symbol.toStringTag,{value:"Module"})),js=Object.keys(Gs);class Ys extends _n{constructor(a,r,o,s){let f=-1;if(super(a,r),td(this,"space",s),typeof o=="number")for(;++f<js.length;){const u=js[f];td(this,js[f],(o&Gs[u])===Gs[u])}}}Ys.prototype.defined=!0;function td(n,a,r){r&&(n[a]=r)}function Wa(n){const a={},r={};for(const[o,s]of Object.entries(n.properties)){const f=new Ys(o,n.transform(n.attributes||{},o),s,n.space);n.mustUseProperty&&n.mustUseProperty.includes(o)&&(f.mustUseProperty=!0),a[o]=f,r[qs(o)]=o,r[qs(f.attribute)]=o}return new jr(a,r,n.space)}const nd=Wa({properties:{ariaActiveDescendant:null,ariaAtomic:Gt,ariaAutoComplete:null,ariaBusy:Gt,ariaChecked:Gt,ariaColCount:ie,ariaColIndex:ie,ariaColSpan:ie,ariaControls:yt,ariaCurrent:null,ariaDescribedBy:yt,ariaDetails:null,ariaDisabled:Gt,ariaDropEffect:yt,ariaErrorMessage:null,ariaExpanded:Gt,ariaFlowTo:yt,ariaGrabbed:Gt,ariaHasPopup:null,ariaHidden:Gt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:yt,ariaLevel:ie,ariaLive:null,ariaModal:Gt,ariaMultiLine:Gt,ariaMultiSelectable:Gt,ariaOrientation:null,ariaOwns:yt,ariaPlaceholder:null,ariaPosInSet:ie,ariaPressed:Gt,ariaReadOnly:Gt,ariaRelevant:null,ariaRequired:Gt,ariaRoleDescription:yt,ariaRowCount:ie,ariaRowIndex:ie,ariaRowSpan:ie,ariaSelected:Gt,ariaSetSize:ie,ariaSort:null,ariaValueMax:ie,ariaValueMin:ie,ariaValueNow:ie,ariaValueText:null,role:null},transform(n,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function id(n,a){return a in n?n[a]:a}function ad(n,a){return id(n,a.toLowerCase())}const Gy=Wa({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Na,acceptCharset:yt,accessKey:yt,action:null,allow:null,allowFullScreen:Ie,allowPaymentRequest:Ie,allowUserMedia:Ie,alpha:Ie,alt:null,as:null,async:Ie,autoCapitalize:null,autoComplete:yt,autoFocus:Ie,autoPlay:Ie,blocking:yt,capture:null,charSet:null,checked:Ie,cite:null,className:yt,closedBy:null,colorSpace:null,cols:ie,colSpan:ie,command:null,commandFor:null,content:null,contentEditable:Gt,controls:Ie,controlsList:yt,coords:ie|Na,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ie,defer:Ie,dir:null,dirName:null,disabled:Ie,download:Fs,draggable:Gt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ie,formTarget:null,headers:yt,height:ie,hidden:Fs,high:ie,href:null,hrefLang:null,htmlFor:yt,httpEquiv:yt,id:null,imageSizes:null,imageSrcSet:null,inert:Ie,inputMode:null,integrity:null,is:null,isMap:Ie,itemId:null,itemProp:yt,itemRef:yt,itemScope:Ie,itemType:yt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ie,low:ie,manifest:null,max:null,maxLength:ie,media:null,method:null,min:null,minLength:ie,multiple:Ie,muted:Ie,name:null,nonce:null,noModule:Ie,noValidate:Ie,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:Ie,optimum:ie,pattern:null,ping:yt,placeholder:null,playsInline:Ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ie,referrerPolicy:null,rel:yt,required:Ie,reversed:Ie,rows:ie,rowSpan:ie,sandbox:yt,scope:null,scoped:Ie,seamless:Ie,selected:Ie,shadowRootClonable:Ie,shadowRootCustomElementRegistry:Ie,shadowRootDelegatesFocus:Ie,shadowRootMode:null,shadowRootSerializable:Ie,shape:null,size:ie,sizes:null,slot:null,span:ie,spellCheck:Gt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ie,step:null,style:null,tabIndex:ie,target:null,title:null,translate:null,type:null,typeMustMatch:Ie,useMap:null,value:Gt,width:ie,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:yt,axis:null,background:null,bgColor:null,border:ie,borderColor:null,bottomMargin:ie,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ie,declare:Ie,event:null,face:null,frame:null,frameBorder:null,hSpace:ie,leftMargin:ie,link:null,longDesc:null,lowSrc:null,marginHeight:ie,marginWidth:ie,noResize:Ie,noHref:Ie,noShade:Ie,noWrap:Ie,object:null,profile:null,prompt:null,rev:null,rightMargin:ie,rules:null,scheme:null,scrolling:Gt,standby:null,summary:null,text:null,topMargin:ie,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ie,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Ie,disablePictureInPicture:Ie,disableRemotePlayback:Ie,exportParts:Na,part:yt,prefix:null,property:null,results:ie,security:null,unselectable:null},space:"html",transform:ad}),jy=Wa({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",maskType:"mask-type",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:Dn,accentHeight:ie,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ie,amplitude:ie,arabicForm:null,ascent:ie,attributeName:null,attributeType:null,azimuth:ie,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ie,by:null,calcMode:null,capHeight:ie,className:yt,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:ie,diffuseConstant:ie,direction:null,display:null,dur:null,divisor:ie,dominantBaseline:null,download:Ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:ie,enableBackground:null,end:null,event:null,exponent:ie,externalResourcesRequired:null,fill:null,fillOpacity:ie,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:Na,g2:Na,glyphName:Na,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ie,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ie,horizOriginX:ie,horizOriginY:ie,id:null,ideographic:ie,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ie,k:ie,k1:ie,k2:ie,k3:ie,k4:ie,kernelMatrix:Dn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ie,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ie,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:ie,overlineThickness:ie,paintOrder:null,panose1:null,path:null,pathLength:ie,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:yt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ie,pointsAtY:ie,pointsAtZ:ie,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Dn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Dn,rev:Dn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Dn,requiredFeatures:Dn,requiredFonts:Dn,requiredFormats:Dn,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:ie,specularExponent:ie,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ie,strikethroughThickness:ie,string:null,stroke:null,strokeDashArray:Dn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ie,strokeOpacity:ie,strokeWidth:null,style:null,surfaceScale:ie,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Dn,tabIndex:ie,tableValues:null,target:null,targetX:ie,targetY:ie,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Dn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ie,underlineThickness:ie,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ie,values:null,vAlphabetic:ie,vMathematical:ie,vectorEffect:null,vHanging:ie,vIdeographic:ie,version:null,vertAdvY:ie,vertOriginX:ie,vertOriginY:ie,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ie,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:id}),rd=Wa({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,a){return"xlink:"+a.slice(5).toLowerCase()}}),ld=Wa({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ad}),od=Wa({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,a){return"xml:"+a.slice(3).toLowerCase()}}),Yy={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"},Py=/[A-Z]/g,sd=/-[a-z]/g,Ky=/^data[-\w.:]+$/i;function Vy(n,a){const r=qs(a);let o=a,s=_n;if(r in n.normal)return n.property[n.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Ky.test(a)){if(a.charAt(4)==="-"){const f=a.slice(5).replace(sd,Zy);o="data"+f.charAt(0).toUpperCase()+f.slice(1)}else{const f=a.slice(4);if(!sd.test(f)){let u=f.replace(Py,$y);u.charAt(0)!=="-"&&(u="-"+u),a="data"+u}}s=Ys}return new s(o,a)}function $y(n){return"-"+n.toLowerCase()}function Zy(n){return n.charAt(1).toUpperCase()}const Xy=ed([nd,Gy,rd,ld,od],"html"),Ps=ed([nd,jy,rd,ld,od],"svg");function Qy(n){return n.join(" ").trim()}var er={},Ks,cd;function Jy(){if(cd)return Ks;cd=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,f=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,g=/^\s+|\s+$/g,m=`
10
+ `,p="/",b="*",h="",v="comment",k="declaration";function x(M,w){if(typeof M!="string")throw new TypeError("First argument must be a string");if(!M)return[];w=w||{};var q=1,H=1;function Q(oe){var X=oe.match(a);X&&(q+=X.length);var Y=oe.lastIndexOf(m);H=~Y?oe.length-Y:H+oe.length}function te(){var oe={line:q,column:H};return function(X){return X.position=new L(oe),fe(),X}}function L(oe){this.start=oe,this.end={line:q,column:H},this.source=w.source}L.prototype.content=M;function ce(oe){var X=new Error(w.source+":"+q+":"+H+": "+oe);if(X.reason=oe,X.filename=w.source,X.line=q,X.column=H,X.source=M,!w.silent)throw X}function ee(oe){var X=oe.exec(M);if(X){var Y=X[0];return Q(Y),M=M.slice(Y.length),X}}function fe(){ee(r)}function z(oe){var X;for(oe=oe||[];X=se();)X!==!1&&oe.push(X);return oe}function se(){var oe=te();if(!(p!=M.charAt(0)||b!=M.charAt(1))){for(var X=2;h!=M.charAt(X)&&(b!=M.charAt(X)||p!=M.charAt(X+1));)++X;if(X+=2,h===M.charAt(X-1))return ce("End of comment missing");var Y=M.slice(2,X-2);return H+=2,Q(Y),M=M.slice(X),H+=2,oe({type:v,comment:Y})}}function re(){var oe=te(),X=ee(o);if(X){if(se(),!ee(s))return ce("property missing ':'");var Y=ee(f),G=oe({type:k,property:C(X[0].replace(n,h)),value:Y?C(Y[0].replace(n,h)):h});return ee(u),G}}function _e(){var oe=[];z(oe);for(var X;X=re();)X!==!1&&(oe.push(X),z(oe));return oe}return fe(),_e()}function C(M){return M?M.replace(g,h):h}return Ks=x,Ks}var ud;function Wy(){if(ud)return er;ud=1;var n=er&&er.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(er,"__esModule",{value:!0}),er.default=r;const a=n(Jy());function r(o,s){let f=null;if(!o||typeof o!="string")return f;const u=(0,a.default)(o),g=typeof s=="function";return u.forEach(m=>{if(m.type!=="declaration")return;const{property:p,value:b}=m;g?s(p,b,m):b&&(f=f||{},f[p]=b)}),f}return er}var Yr={},fd;function e0(){if(fd)return Yr;fd=1,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,r=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,f=function(p){return!p||r.test(p)||n.test(p)},u=function(p,b){return b.toUpperCase()},g=function(p,b){return"".concat(b,"-")},m=function(p,b){return b===void 0&&(b={}),f(p)?p:(p=p.toLowerCase(),b.reactCompat?p=p.replace(s,g):p=p.replace(o,g),p.replace(a,u))};return Yr.camelCase=m,Yr}var Pr,dd;function t0(){if(dd)return Pr;dd=1;var n=Pr&&Pr.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},a=n(Wy()),r=e0();function o(s,f){var u={};return!s||typeof s!="string"||(0,a.default)(s,function(g,m){g&&m&&(u[(0,r.camelCase)(g,f)]=m)}),u}return o.default=o,Pr=o,Pr}var n0=t0();const i0=Os(n0),pd=gd("end"),Vs=gd("start");function gd(n){return a;function a(r){const o=r&&r.position&&r.position[n]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function a0(n){const a=Vs(n),r=pd(n);if(a&&r)return{start:a,end:r}}function Kr(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?md(n.position):"start"in n||"end"in n?md(n):"line"in n||"column"in n?$s(n):""}function $s(n){return hd(n&&n.line)+":"+hd(n&&n.column)}function md(n){return $s(n&&n.start)+"-"+$s(n&&n.end)}function hd(n){return n&&typeof n=="number"?n:1}class cn extends Error{constructor(a,r,o){super(),typeof r=="string"&&(o=r,r=void 0);let s="",f={},u=!1;if(r&&("line"in r&&"column"in r?f={place:r}:"start"in r&&"end"in r?f={place:r}:"type"in r?f={ancestors:[r],place:r.position}:f={...r}),typeof a=="string"?s=a:!f.cause&&a&&(u=!0,s=a.message,f.cause=a),!f.ruleId&&!f.source&&typeof o=="string"){const m=o.indexOf(":");m===-1?f.ruleId=o:(f.source=o.slice(0,m),f.ruleId=o.slice(m+1))}if(!f.place&&f.ancestors&&f.ancestors){const m=f.ancestors[f.ancestors.length-1];m&&(f.place=m.position)}const g=f.place&&"start"in f.place?f.place.start:f.place;this.ancestors=f.ancestors||void 0,this.cause=f.cause||void 0,this.column=g?g.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=g?g.line:void 0,this.name=Kr(f.place)||"1:1",this.place=f.place||void 0,this.reason=this.message,this.ruleId=f.ruleId||void 0,this.source=f.source||void 0,this.stack=u&&f.cause&&typeof f.cause.stack=="string"?f.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}cn.prototype.file="",cn.prototype.name="",cn.prototype.reason="",cn.prototype.message="",cn.prototype.stack="",cn.prototype.column=void 0,cn.prototype.line=void 0,cn.prototype.ancestors=void 0,cn.prototype.cause=void 0,cn.prototype.fatal=void 0,cn.prototype.place=void 0,cn.prototype.ruleId=void 0,cn.prototype.source=void 0;const Zs={}.hasOwnProperty,r0=new Map,l0=/[A-Z]/g,o0=new Set(["table","tbody","thead","tfoot","tr"]),s0=new Set(["td","th"]),bd="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function c0(n,a){if(!a||a.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=a.filePath||void 0;let o;if(a.development){if(typeof a.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=b0(r,a.jsxDEV)}else{if(typeof a.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof a.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");o=h0(r,a.jsx,a.jsxs)}const s={Fragment:a.Fragment,ancestors:[],components:a.components||{},create:o,elementAttributeNameCase:a.elementAttributeNameCase||"react",evaluater:a.createEvaluater?a.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:a.ignoreInvalidStyle||!1,passKeys:a.passKeys!==!1,passNode:a.passNode||!1,schema:a.space==="svg"?Ps:Xy,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},f=yd(s,n,void 0);return f&&typeof f!="string"?f:s.create(n,s.Fragment,{children:f||void 0},void 0)}function yd(n,a,r){if(a.type==="element")return u0(n,a,r);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return f0(n,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return p0(n,a,r);if(a.type==="mdxjsEsm")return d0(n,a);if(a.type==="root")return g0(n,a,r);if(a.type==="text")return m0(n,a)}function u0(n,a,r){const o=n.schema;let s=o;a.tagName.toLowerCase()==="svg"&&o.space==="html"&&(s=Ps,n.schema=s),n.ancestors.push(a);const f=kd(n,a.tagName,!1),u=y0(n,a);let g=Qs(n,a);return o0.has(a.tagName)&&(g=g.filter(function(m){return typeof m=="string"?!qy(m):!0})),vd(n,u,f,a),Xs(u,g),n.ancestors.pop(),n.schema=o,n.create(a,f,u,r)}function f0(n,a){if(a.data&&a.data.estree&&n.evaluater){const o=a.data.estree.body[0];return o.type,n.evaluater.evaluateExpression(o.expression)}Vr(n,a.position)}function d0(n,a){if(a.data&&a.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(a.data.estree);Vr(n,a.position)}function p0(n,a,r){const o=n.schema;let s=o;a.name==="svg"&&o.space==="html"&&(s=Ps,n.schema=s),n.ancestors.push(a);const f=a.name===null?n.Fragment:kd(n,a.name,!0),u=v0(n,a),g=Qs(n,a);return vd(n,u,f,a),Xs(u,g),n.ancestors.pop(),n.schema=o,n.create(a,f,u,r)}function g0(n,a,r){const o={};return Xs(o,Qs(n,a)),n.create(a,n.Fragment,o,r)}function m0(n,a){return a.value}function vd(n,a,r,o){typeof r!="string"&&r!==n.Fragment&&n.passNode&&(a.node=o)}function Xs(n,a){if(a.length>0){const r=a.length>1?a:a[0];r&&(n.children=r)}}function h0(n,a,r){return o;function o(s,f,u,g){const p=Array.isArray(u.children)?r:a;return g?p(f,u,g):p(f,u)}}function b0(n,a){return r;function r(o,s,f,u){const g=Array.isArray(f.children),m=Vs(o);return a(s,f,u,g,{columnNumber:m?m.column-1:void 0,fileName:n,lineNumber:m?m.line:void 0},void 0)}}function y0(n,a){const r={};let o,s;for(s in a.properties)if(s!=="children"&&Zs.call(a.properties,s)){const f=k0(n,s,a.properties[s]);if(f){const[u,g]=f;n.tableCellAlignToStyle&&u==="align"&&typeof g=="string"&&s0.has(a.tagName)?o=g:r[u]=g}}if(o){const f=r.style||(r.style={});f[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return r}function v0(n,a){const r={};for(const o of a.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&n.evaluater){const f=o.data.estree.body[0];f.type;const u=f.expression;u.type;const g=u.properties[0];g.type,Object.assign(r,n.evaluater.evaluateExpression(g.argument))}else Vr(n,a.position);else{const s=o.name;let f;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&n.evaluater){const g=o.value.data.estree.body[0];g.type,f=n.evaluater.evaluateExpression(g.expression)}else Vr(n,a.position);else f=o.value===null?!0:o.value;r[s]=f}return r}function Qs(n,a){const r=[];let o=-1;const s=n.passKeys?new Map:r0;for(;++o<a.children.length;){const f=a.children[o];let u;if(n.passKeys){const m=f.type==="element"?f.tagName:f.type==="mdxJsxFlowElement"||f.type==="mdxJsxTextElement"?f.name:void 0;if(m){const p=s.get(m)||0;u=m+"-"+p,s.set(m,p+1)}}const g=yd(n,f,u);g!==void 0&&r.push(g)}return r}function k0(n,a,r){const o=Vy(n.schema,a);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=o.commaSeparated?zy(r):Qy(r)),o.property==="style"){let s=typeof r=="object"?r:E0(n,String(r));return n.stylePropertyNameCase==="css"&&(s=_0(s)),["style",s]}return[n.elementAttributeNameCase==="react"&&o.space?Yy[o.property]||o.property:o.attribute,r]}}function E0(n,a){try{return i0(a,{reactCompat:!0})}catch(r){if(n.ignoreInvalidStyle)return{};const o=r,s=new cn("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=n.filePath||void 0,s.url=bd+"#cannot-parse-style-attribute",s}}function kd(n,a,r){let o;if(!r)o={type:"Literal",value:a};else if(a.includes(".")){const s=a.split(".");let f=-1,u;for(;++f<s.length;){const g=Jf(s[f])?{type:"Identifier",name:s[f]}:{type:"Literal",value:s[f]};u=u?{type:"MemberExpression",object:u,property:g,computed:!!(f&&g.type==="Literal"),optional:!1}:g}o=u}else o=Jf(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(o.type==="Literal"){const s=o.value;return Zs.call(n.components,s)?n.components[s]:s}if(n.evaluater)return n.evaluater.evaluateExpression(o);Vr(n)}function Vr(n,a){const r=new cn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:a,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=n.filePath||void 0,r.url=bd+"#cannot-handle-mdx-estrees-without-createevaluater",r}function _0(n){const a={};let r;for(r in n)Zs.call(n,r)&&(a[x0(r)]=n[r]);return a}function x0(n){let a=n.replace(l0,S0);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function S0(n){return"-"+n.toLowerCase()}const Js={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"]},w0={};function Ws(n,a){const r=w0,o=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Ed(n,o,s)}function Ed(n,a,r){if(T0(n)){if("value"in n)return n.type==="html"&&!r?"":n.value;if(a&&"alt"in n&&n.alt)return n.alt;if("children"in n)return _d(n.children,a,r)}return Array.isArray(n)?_d(n,a,r):""}function _d(n,a,r){const o=[];let s=-1;for(;++s<n.length;)o[s]=Ed(n[s],a,r);return o.join("")}function T0(n){return!!(n&&typeof n=="object")}const xd=document.createElement("i");function ec(n){const a="&"+n+";";xd.innerHTML=a;const r=xd.textContent;return r.charCodeAt(r.length-1)===59&&n!=="semi"||r===a?!1:r}function Ln(n,a,r,o){const s=n.length;let f=0,u;if(a<0?a=-a>s?0:s+a:a=a>s?s:a,r=r>0?r:0,o.length<1e4)u=Array.from(o),u.unshift(a,r),n.splice(...u);else for(r&&n.splice(a,r);f<o.length;)u=o.slice(f,f+1e4),u.unshift(a,0),n.splice(...u),f+=1e4,a+=1e4}function Pn(n,a){return n.length>0?(Ln(n,n.length,0,a),n):a}const Sd={}.hasOwnProperty;function wd(n){const a={};let r=-1;for(;++r<n.length;)A0(a,n[r]);return a}function A0(n,a){let r;for(r in a){const s=(Sd.call(n,r)?n[r]:void 0)||(n[r]={}),f=a[r];let u;if(f)for(u in f){Sd.call(s,u)||(s[u]=[]);const g=f[u];N0(s[u],Array.isArray(g)?g:g?[g]:[])}}}function N0(n,a){let r=-1;const o=[];for(;++r<a.length;)(a[r].add==="after"?n:o).push(a[r]);Ln(n,0,0,o)}function Td(n,a){const r=Number.parseInt(n,a);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function li(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const bn=Qi(/[A-Za-z]/),un=Qi(/[\dA-Za-z]/),C0=Qi(/[#-'*+\--9=?A-Z^-~]/);function Xl(n){return n!==null&&(n<32||n===127)}const tc=Qi(/\d/),O0=Qi(/[\dA-Fa-f]/),M0=Qi(/[!-/:-@[-`{-~]/);function we(n){return n!==null&&n<-2}function vt(n){return n!==null&&(n<0||n===32)}function $e(n){return n===-2||n===-1||n===32}const Ql=Qi(new RegExp("\\p{P}|\\p{S}","u")),Oa=Qi(/\s/);function Qi(n){return a;function a(r){return r!==null&&r>-1&&n.test(String.fromCharCode(r))}}function tr(n){const a=[];let r=-1,o=0,s=0;for(;++r<n.length;){const f=n.charCodeAt(r);let u="";if(f===37&&un(n.charCodeAt(r+1))&&un(n.charCodeAt(r+2)))s=2;else if(f<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(f))||(u=String.fromCharCode(f));else if(f>55295&&f<57344){const g=n.charCodeAt(r+1);f<56320&&g>56319&&g<57344?(u=String.fromCharCode(f,g),s=1):u="�"}else u=String.fromCharCode(f);u&&(a.push(n.slice(o,r),encodeURIComponent(u)),o=r+s+1,u=""),s&&(r+=s,s=0)}return a.join("")+n.slice(o)}function tt(n,a,r,o){const s=o?o-1:Number.POSITIVE_INFINITY;let f=0;return u;function u(m){return $e(m)?(n.enter(r),g(m)):a(m)}function g(m){return $e(m)&&f++<s?(n.consume(m),g):(n.exit(r),a(m))}}const R0={tokenize:D0};function D0(n){const a=n.attempt(this.parser.constructs.contentInitial,o,s);let r;return a;function o(g){if(g===null){n.consume(g);return}return n.enter("lineEnding"),n.consume(g),n.exit("lineEnding"),tt(n,a,"linePrefix")}function s(g){return n.enter("paragraph"),f(g)}function f(g){const m=n.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=m),r=m,u(g)}function u(g){if(g===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(g);return}return we(g)?(n.consume(g),n.exit("chunkText"),f):(n.consume(g),u)}}const L0={tokenize:z0},Ad={tokenize:I0};function z0(n){const a=this,r=[];let o=0,s,f,u;return g;function g(H){if(o<r.length){const Q=r[o];return a.containerState=Q[1],n.attempt(Q[0].continuation,m,p)(H)}return p(H)}function m(H){if(o++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,s&&q();const Q=a.events.length;let te=Q,L;for(;te--;)if(a.events[te][0]==="exit"&&a.events[te][1].type==="chunkFlow"){L=a.events[te][1].end;break}w(o);let ce=Q;for(;ce<a.events.length;)a.events[ce][1].end={...L},ce++;return Ln(a.events,te+1,0,a.events.slice(Q)),a.events.length=ce,p(H)}return g(H)}function p(H){if(o===r.length){if(!s)return v(H);if(s.currentConstruct&&s.currentConstruct.concrete)return x(H);a.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return a.containerState={},n.check(Ad,b,h)(H)}function b(H){return s&&q(),w(o),v(H)}function h(H){return a.parser.lazy[a.now().line]=o!==r.length,u=a.now().offset,x(H)}function v(H){return a.containerState={},n.attempt(Ad,k,x)(H)}function k(H){return o++,r.push([a.currentConstruct,a.containerState]),v(H)}function x(H){if(H===null){s&&q(),w(0),n.consume(H);return}return s=s||a.parser.flow(a.now()),n.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:f}),C(H)}function C(H){if(H===null){M(n.exit("chunkFlow"),!0),w(0),n.consume(H);return}return we(H)?(n.consume(H),M(n.exit("chunkFlow")),o=0,a.interrupt=void 0,g):(n.consume(H),C)}function M(H,Q){const te=a.sliceStream(H);if(Q&&te.push(null),H.previous=f,f&&(f.next=H),f=H,s.defineSkip(H.start),s.write(te),a.parser.lazy[H.start.line]){let L=s.events.length;for(;L--;)if(s.events[L][1].start.offset<u&&(!s.events[L][1].end||s.events[L][1].end.offset>u))return;const ce=a.events.length;let ee=ce,fe,z;for(;ee--;)if(a.events[ee][0]==="exit"&&a.events[ee][1].type==="chunkFlow"){if(fe){z=a.events[ee][1].end;break}fe=!0}for(w(o),L=ce;L<a.events.length;)a.events[L][1].end={...z},L++;Ln(a.events,ee+1,0,a.events.slice(ce)),a.events.length=L}}function w(H){let Q=r.length;for(;Q-- >H;){const te=r[Q];a.containerState=te[1],te[0].exit.call(a,n)}r.length=H}function q(){s.write([null]),f=void 0,s=void 0,a.containerState._closeFlow=void 0}}function I0(n,a,r){return tt(n,n.attempt(this.parser.constructs.document,a,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function nr(n){if(n===null||vt(n)||Oa(n))return 1;if(Ql(n))return 2}function Jl(n,a,r){const o=[];let s=-1;for(;++s<n.length;){const f=n[s].resolveAll;f&&!o.includes(f)&&(a=f(a,r),o.push(f))}return a}const nc={name:"attention",resolveAll:B0,tokenize:U0};function B0(n,a){let r=-1,o,s,f,u,g,m,p,b;for(;++r<n.length;)if(n[r][0]==="enter"&&n[r][1].type==="attentionSequence"&&n[r][1]._close){for(o=r;o--;)if(n[o][0]==="exit"&&n[o][1].type==="attentionSequence"&&n[o][1]._open&&a.sliceSerialize(n[o][1]).charCodeAt(0)===a.sliceSerialize(n[r][1]).charCodeAt(0)){if((n[o][1]._close||n[r][1]._open)&&(n[r][1].end.offset-n[r][1].start.offset)%3&&!((n[o][1].end.offset-n[o][1].start.offset+n[r][1].end.offset-n[r][1].start.offset)%3))continue;m=n[o][1].end.offset-n[o][1].start.offset>1&&n[r][1].end.offset-n[r][1].start.offset>1?2:1;const h={...n[o][1].end},v={...n[r][1].start};Nd(h,-m),Nd(v,m),u={type:m>1?"strongSequence":"emphasisSequence",start:h,end:{...n[o][1].end}},g={type:m>1?"strongSequence":"emphasisSequence",start:{...n[r][1].start},end:v},f={type:m>1?"strongText":"emphasisText",start:{...n[o][1].end},end:{...n[r][1].start}},s={type:m>1?"strong":"emphasis",start:{...u.start},end:{...g.end}},n[o][1].end={...u.start},n[r][1].start={...g.end},p=[],n[o][1].end.offset-n[o][1].start.offset&&(p=Pn(p,[["enter",n[o][1],a],["exit",n[o][1],a]])),p=Pn(p,[["enter",s,a],["enter",u,a],["exit",u,a],["enter",f,a]]),p=Pn(p,Jl(a.parser.constructs.insideSpan.null,n.slice(o+1,r),a)),p=Pn(p,[["exit",f,a],["enter",g,a],["exit",g,a],["exit",s,a]]),n[r][1].end.offset-n[r][1].start.offset?(b=2,p=Pn(p,[["enter",n[r][1],a],["exit",n[r][1],a]])):b=0,Ln(n,o-1,r-o+3,p),r=o+p.length-b-2;break}}for(r=-1;++r<n.length;)n[r][1].type==="attentionSequence"&&(n[r][1].type="data");return n}function U0(n,a){const r=this.parser.constructs.attentionMarkers.null,o=this.previous,s=nr(o);let f;return u;function u(m){return f=m,n.enter("attentionSequence"),g(m)}function g(m){if(m===f)return n.consume(m),g;const p=n.exit("attentionSequence"),b=nr(m),h=!b||b===2&&s||r.includes(m),v=!s||s===2&&b||r.includes(o);return p._open=!!(f===42?h:h&&(s||!v)),p._close=!!(f===42?v:v&&(b||!h)),a(m)}}function Nd(n,a){n.column+=a,n.offset+=a,n._bufferIndex+=a}const H0={name:"autolink",tokenize:q0};function q0(n,a,r){let o=0;return s;function s(k){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(k),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),f}function f(k){return bn(k)?(n.consume(k),u):k===64?r(k):p(k)}function u(k){return k===43||k===45||k===46||un(k)?(o=1,g(k)):p(k)}function g(k){return k===58?(n.consume(k),o=0,m):(k===43||k===45||k===46||un(k))&&o++<32?(n.consume(k),g):(o=0,p(k))}function m(k){return k===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(k),n.exit("autolinkMarker"),n.exit("autolink"),a):k===null||k===32||k===60||Xl(k)?r(k):(n.consume(k),m)}function p(k){return k===64?(n.consume(k),b):C0(k)?(n.consume(k),p):r(k)}function b(k){return un(k)?h(k):r(k)}function h(k){return k===46?(n.consume(k),o=0,b):k===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(k),n.exit("autolinkMarker"),n.exit("autolink"),a):v(k)}function v(k){if((k===45||un(k))&&o++<63){const x=k===45?v:h;return n.consume(k),x}return r(k)}}const $r={partial:!0,tokenize:F0};function F0(n,a,r){return o;function o(f){return $e(f)?tt(n,s,"linePrefix")(f):s(f)}function s(f){return f===null||we(f)?a(f):r(f)}}const Cd={continuation:{tokenize:j0},exit:Y0,name:"blockQuote",tokenize:G0};function G0(n,a,r){const o=this;return s;function s(u){if(u===62){const g=o.containerState;return g.open||(n.enter("blockQuote",{_container:!0}),g.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(u),n.exit("blockQuoteMarker"),f}return r(u)}function f(u){return $e(u)?(n.enter("blockQuotePrefixWhitespace"),n.consume(u),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),a):(n.exit("blockQuotePrefix"),a(u))}}function j0(n,a,r){const o=this;return s;function s(u){return $e(u)?tt(n,f,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):f(u)}function f(u){return n.attempt(Cd,a,r)(u)}}function Y0(n){n.exit("blockQuote")}const Od={name:"characterEscape",tokenize:P0};function P0(n,a,r){return o;function o(f){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(f),n.exit("escapeMarker"),s}function s(f){return M0(f)?(n.enter("characterEscapeValue"),n.consume(f),n.exit("characterEscapeValue"),n.exit("characterEscape"),a):r(f)}}const Md={name:"characterReference",tokenize:K0};function K0(n,a,r){const o=this;let s=0,f,u;return g;function g(h){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(h),n.exit("characterReferenceMarker"),m}function m(h){return h===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(h),n.exit("characterReferenceMarkerNumeric"),p):(n.enter("characterReferenceValue"),f=31,u=un,b(h))}function p(h){return h===88||h===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(h),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),f=6,u=O0,b):(n.enter("characterReferenceValue"),f=7,u=tc,b(h))}function b(h){if(h===59&&s){const v=n.exit("characterReferenceValue");return u===un&&!ec(o.sliceSerialize(v))?r(h):(n.enter("characterReferenceMarker"),n.consume(h),n.exit("characterReferenceMarker"),n.exit("characterReference"),a)}return u(h)&&s++<f?(n.consume(h),b):r(h)}}const Rd={partial:!0,tokenize:$0},Dd={concrete:!0,name:"codeFenced",tokenize:V0};function V0(n,a,r){const o=this,s={partial:!0,tokenize:te};let f=0,u=0,g;return m;function m(L){return p(L)}function p(L){const ce=o.events[o.events.length-1];return f=ce&&ce[1].type==="linePrefix"?ce[2].sliceSerialize(ce[1],!0).length:0,g=L,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),b(L)}function b(L){return L===g?(u++,n.consume(L),b):u<3?r(L):(n.exit("codeFencedFenceSequence"),$e(L)?tt(n,h,"whitespace")(L):h(L))}function h(L){return L===null||we(L)?(n.exit("codeFencedFence"),o.interrupt?a(L):n.check(Rd,C,Q)(L)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),v(L))}function v(L){return L===null||we(L)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),h(L)):$e(L)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),tt(n,k,"whitespace")(L)):L===96&&L===g?r(L):(n.consume(L),v)}function k(L){return L===null||we(L)?h(L):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),x(L))}function x(L){return L===null||we(L)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),h(L)):L===96&&L===g?r(L):(n.consume(L),x)}function C(L){return n.attempt(s,Q,M)(L)}function M(L){return n.enter("lineEnding"),n.consume(L),n.exit("lineEnding"),w}function w(L){return f>0&&$e(L)?tt(n,q,"linePrefix",f+1)(L):q(L)}function q(L){return L===null||we(L)?n.check(Rd,C,Q)(L):(n.enter("codeFlowValue"),H(L))}function H(L){return L===null||we(L)?(n.exit("codeFlowValue"),q(L)):(n.consume(L),H)}function Q(L){return n.exit("codeFenced"),a(L)}function te(L,ce,ee){let fe=0;return z;function z(X){return L.enter("lineEnding"),L.consume(X),L.exit("lineEnding"),se}function se(X){return L.enter("codeFencedFence"),$e(X)?tt(L,re,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(X):re(X)}function re(X){return X===g?(L.enter("codeFencedFenceSequence"),_e(X)):ee(X)}function _e(X){return X===g?(fe++,L.consume(X),_e):fe>=u?(L.exit("codeFencedFenceSequence"),$e(X)?tt(L,oe,"whitespace")(X):oe(X)):ee(X)}function oe(X){return X===null||we(X)?(L.exit("codeFencedFence"),ce(X)):ee(X)}}}function $0(n,a,r){const o=this;return s;function s(u){return u===null?r(u):(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),f)}function f(u){return o.parser.lazy[o.now().line]?r(u):a(u)}}const ic={name:"codeIndented",tokenize:X0},Z0={partial:!0,tokenize:Q0};function X0(n,a,r){const o=this;return s;function s(p){return n.enter("codeIndented"),tt(n,f,"linePrefix",5)(p)}function f(p){const b=o.events[o.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?u(p):r(p)}function u(p){return p===null?m(p):we(p)?n.attempt(Z0,u,m)(p):(n.enter("codeFlowValue"),g(p))}function g(p){return p===null||we(p)?(n.exit("codeFlowValue"),u(p)):(n.consume(p),g)}function m(p){return n.exit("codeIndented"),a(p)}}function Q0(n,a,r){const o=this;return s;function s(u){return o.parser.lazy[o.now().line]?r(u):we(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),s):tt(n,f,"linePrefix",5)(u)}function f(u){const g=o.events[o.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?a(u):we(u)?s(u):r(u)}}const J0={name:"codeText",previous:ev,resolve:W0,tokenize:tv};function W0(n){let a=n.length-4,r=3,o,s;if((n[r][1].type==="lineEnding"||n[r][1].type==="space")&&(n[a][1].type==="lineEnding"||n[a][1].type==="space")){for(o=r;++o<a;)if(n[o][1].type==="codeTextData"){n[r][1].type="codeTextPadding",n[a][1].type="codeTextPadding",r+=2,a-=2;break}}for(o=r-1,a++;++o<=a;)s===void 0?o!==a&&n[o][1].type!=="lineEnding"&&(s=o):(o===a||n[o][1].type==="lineEnding")&&(n[s][1].type="codeTextData",o!==s+2&&(n[s][1].end=n[o-1][1].end,n.splice(s+2,o-s-2),a-=o-s-2,o=s+2),s=void 0);return n}function ev(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function tv(n,a,r){let o=0,s,f;return u;function u(h){return n.enter("codeText"),n.enter("codeTextSequence"),g(h)}function g(h){return h===96?(n.consume(h),o++,g):(n.exit("codeTextSequence"),m(h))}function m(h){return h===null?r(h):h===32?(n.enter("space"),n.consume(h),n.exit("space"),m):h===96?(f=n.enter("codeTextSequence"),s=0,b(h)):we(h)?(n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),m):(n.enter("codeTextData"),p(h))}function p(h){return h===null||h===32||h===96||we(h)?(n.exit("codeTextData"),m(h)):(n.consume(h),p)}function b(h){return h===96?(n.consume(h),s++,b):s===o?(n.exit("codeTextSequence"),n.exit("codeText"),a(h)):(f.type="codeTextData",p(h))}}class nv{constructor(a){this.left=a?[...a]:[],this.right=[]}get(a){if(a<0||a>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+a+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return a<this.left.length?this.left[a]:this.right[this.right.length-a+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(a,r){const o=r??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(a,o):a>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(a,r,o){const s=r||0;this.setCursor(Math.trunc(a));const f=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return o&&Zr(this.left,o),f.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(a){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(a)}pushMany(a){this.setCursor(Number.POSITIVE_INFINITY),Zr(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),Zr(this.right,a.reverse())}setCursor(a){if(!(a===this.left.length||a>this.left.length&&this.right.length===0||a<0&&this.left.length===0))if(a<this.left.length){const r=this.left.splice(a,Number.POSITIVE_INFINITY);Zr(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);Zr(this.left,r.reverse())}}}function Zr(n,a){let r=0;if(a.length<1e4)n.push(...a);else for(;r<a.length;)n.push(...a.slice(r,r+1e4)),r+=1e4}function Ld(n){const a={};let r=-1,o,s,f,u,g,m,p;const b=new nv(n);for(;++r<b.length;){for(;r in a;)r=a[r];if(o=b.get(r),r&&o[1].type==="chunkFlow"&&b.get(r-1)[1].type==="listItemPrefix"&&(m=o[1]._tokenizer.events,f=0,f<m.length&&m[f][1].type==="lineEndingBlank"&&(f+=2),f<m.length&&m[f][1].type==="content"))for(;++f<m.length&&m[f][1].type!=="content";)m[f][1].type==="chunkText"&&(m[f][1]._isInFirstContentOfListItem=!0,f++);if(o[0]==="enter")o[1].contentType&&(Object.assign(a,iv(b,r)),r=a[r],p=!0);else if(o[1]._container){for(f=r,s=void 0;f--;)if(u=b.get(f),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(s&&(b.get(s)[1].type="lineEndingBlank"),u[1].type="lineEnding",s=f);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;s&&(o[1].end={...b.get(s)[1].start},g=b.slice(s,r),g.unshift(o),b.splice(s,r-s+1,g))}}return Ln(n,0,Number.POSITIVE_INFINITY,b.slice(0)),!p}function iv(n,a){const r=n.get(a)[1],o=n.get(a)[2];let s=a-1;const f=[];let u=r._tokenizer;u||(u=o.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const g=u.events,m=[],p={};let b,h,v=-1,k=r,x=0,C=0;const M=[C];for(;k;){for(;n.get(++s)[1]!==k;);f.push(s),k._tokenizer||(b=o.sliceStream(k),k.next||b.push(null),h&&u.defineSkip(k.start),k._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(b),k._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),h=k,k=k.next}for(k=r;++v<g.length;)g[v][0]==="exit"&&g[v-1][0]==="enter"&&g[v][1].type===g[v-1][1].type&&g[v][1].start.line!==g[v][1].end.line&&(C=v+1,M.push(C),k._tokenizer=void 0,k.previous=void 0,k=k.next);for(u.events=[],k?(k._tokenizer=void 0,k.previous=void 0):M.pop(),v=M.length;v--;){const w=g.slice(M[v],M[v+1]),q=f.pop();m.push([q,q+w.length-1]),n.splice(q,2,w)}for(m.reverse(),v=-1;++v<m.length;)p[x+m[v][0]]=x+m[v][1],x+=m[v][1]-m[v][0]-1;return p}const av={resolve:lv,tokenize:ov},rv={partial:!0,tokenize:sv};function lv(n){return Ld(n),n}function ov(n,a){let r;return o;function o(g){return n.enter("content"),r=n.enter("chunkContent",{contentType:"content"}),s(g)}function s(g){return g===null?f(g):we(g)?n.check(rv,u,f)(g):(n.consume(g),s)}function f(g){return n.exit("chunkContent"),n.exit("content"),a(g)}function u(g){return n.consume(g),n.exit("chunkContent"),r.next=n.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function sv(n,a,r){const o=this;return s;function s(u){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),tt(n,f,"linePrefix")}function f(u){if(u===null||we(u))return r(u);const g=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?a(u):n.interrupt(o.parser.constructs.flow,r,a)(u)}}function zd(n,a,r,o,s,f,u,g,m){const p=m||Number.POSITIVE_INFINITY;let b=0;return h;function h(w){return w===60?(n.enter(o),n.enter(s),n.enter(f),n.consume(w),n.exit(f),v):w===null||w===32||w===41||Xl(w)?r(w):(n.enter(o),n.enter(u),n.enter(g),n.enter("chunkString",{contentType:"string"}),C(w))}function v(w){return w===62?(n.enter(f),n.consume(w),n.exit(f),n.exit(s),n.exit(o),a):(n.enter(g),n.enter("chunkString",{contentType:"string"}),k(w))}function k(w){return w===62?(n.exit("chunkString"),n.exit(g),v(w)):w===null||w===60||we(w)?r(w):(n.consume(w),w===92?x:k)}function x(w){return w===60||w===62||w===92?(n.consume(w),k):k(w)}function C(w){return!b&&(w===null||w===41||vt(w))?(n.exit("chunkString"),n.exit(g),n.exit(u),n.exit(o),a(w)):b<p&&w===40?(n.consume(w),b++,C):w===41?(n.consume(w),b--,C):w===null||w===32||w===40||Xl(w)?r(w):(n.consume(w),w===92?M:C)}function M(w){return w===40||w===41||w===92?(n.consume(w),C):C(w)}}function Id(n,a,r,o,s,f){const u=this;let g=0,m;return p;function p(k){return n.enter(o),n.enter(s),n.consume(k),n.exit(s),n.enter(f),b}function b(k){return g>999||k===null||k===91||k===93&&!m||k===94&&!g&&"_hiddenFootnoteSupport"in u.parser.constructs?r(k):k===93?(n.exit(f),n.enter(s),n.consume(k),n.exit(s),n.exit(o),a):we(k)?(n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),b):(n.enter("chunkString",{contentType:"string"}),h(k))}function h(k){return k===null||k===91||k===93||we(k)||g++>999?(n.exit("chunkString"),b(k)):(n.consume(k),m||(m=!$e(k)),k===92?v:h)}function v(k){return k===91||k===92||k===93?(n.consume(k),g++,h):h(k)}}function Bd(n,a,r,o,s,f){let u;return g;function g(v){return v===34||v===39||v===40?(n.enter(o),n.enter(s),n.consume(v),n.exit(s),u=v===40?41:v,m):r(v)}function m(v){return v===u?(n.enter(s),n.consume(v),n.exit(s),n.exit(o),a):(n.enter(f),p(v))}function p(v){return v===u?(n.exit(f),m(u)):v===null?r(v):we(v)?(n.enter("lineEnding"),n.consume(v),n.exit("lineEnding"),tt(n,p,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),b(v))}function b(v){return v===u||v===null||we(v)?(n.exit("chunkString"),p(v)):(n.consume(v),v===92?h:b)}function h(v){return v===u||v===92?(n.consume(v),b):b(v)}}function Xr(n,a){let r;return o;function o(s){return we(s)?(n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),r=!0,o):$e(s)?tt(n,o,r?"linePrefix":"lineSuffix")(s):a(s)}}const cv={name:"definition",tokenize:fv},uv={partial:!0,tokenize:dv};function fv(n,a,r){const o=this;let s;return f;function f(k){return n.enter("definition"),u(k)}function u(k){return Id.call(o,n,g,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(k)}function g(k){return s=li(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),k===58?(n.enter("definitionMarker"),n.consume(k),n.exit("definitionMarker"),m):r(k)}function m(k){return vt(k)?Xr(n,p)(k):p(k)}function p(k){return zd(n,b,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(k)}function b(k){return n.attempt(uv,h,h)(k)}function h(k){return $e(k)?tt(n,v,"whitespace")(k):v(k)}function v(k){return k===null||we(k)?(n.exit("definition"),o.parser.defined.push(s),a(k)):r(k)}}function dv(n,a,r){return o;function o(g){return vt(g)?Xr(n,s)(g):r(g)}function s(g){return Bd(n,f,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(g)}function f(g){return $e(g)?tt(n,u,"whitespace")(g):u(g)}function u(g){return g===null||we(g)?a(g):r(g)}}const pv={name:"hardBreakEscape",tokenize:gv};function gv(n,a,r){return o;function o(f){return n.enter("hardBreakEscape"),n.consume(f),s}function s(f){return we(f)?(n.exit("hardBreakEscape"),a(f)):r(f)}}const mv={name:"headingAtx",resolve:hv,tokenize:bv};function hv(n,a){let r=n.length-2,o=3,s,f;return n[o][1].type==="whitespace"&&(o+=2),r-2>o&&n[r][1].type==="whitespace"&&(r-=2),n[r][1].type==="atxHeadingSequence"&&(o===r-1||r-4>o&&n[r-2][1].type==="whitespace")&&(r-=o+1===r?2:4),r>o&&(s={type:"atxHeadingText",start:n[o][1].start,end:n[r][1].end},f={type:"chunkText",start:n[o][1].start,end:n[r][1].end,contentType:"text"},Ln(n,o,r-o+1,[["enter",s,a],["enter",f,a],["exit",f,a],["exit",s,a]])),n}function bv(n,a,r){let o=0;return s;function s(b){return n.enter("atxHeading"),f(b)}function f(b){return n.enter("atxHeadingSequence"),u(b)}function u(b){return b===35&&o++<6?(n.consume(b),u):b===null||vt(b)?(n.exit("atxHeadingSequence"),g(b)):r(b)}function g(b){return b===35?(n.enter("atxHeadingSequence"),m(b)):b===null||we(b)?(n.exit("atxHeading"),a(b)):$e(b)?tt(n,g,"whitespace")(b):(n.enter("atxHeadingText"),p(b))}function m(b){return b===35?(n.consume(b),m):(n.exit("atxHeadingSequence"),g(b))}function p(b){return b===null||b===35||vt(b)?(n.exit("atxHeadingText"),g(b)):(n.consume(b),p)}}const yv=["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"],Ud=["pre","script","style","textarea"],vv={concrete:!0,name:"htmlFlow",resolveTo:_v,tokenize:xv},kv={partial:!0,tokenize:wv},Ev={partial:!0,tokenize:Sv};function _v(n){let a=n.length;for(;a--&&!(n[a][0]==="enter"&&n[a][1].type==="htmlFlow"););return a>1&&n[a-2][1].type==="linePrefix"&&(n[a][1].start=n[a-2][1].start,n[a+1][1].start=n[a-2][1].start,n.splice(a-2,2)),n}function xv(n,a,r){const o=this;let s,f,u,g,m;return p;function p(_){return b(_)}function b(_){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(_),h}function h(_){return _===33?(n.consume(_),v):_===47?(n.consume(_),f=!0,C):_===63?(n.consume(_),s=3,o.interrupt?a:S):bn(_)?(n.consume(_),u=String.fromCharCode(_),M):r(_)}function v(_){return _===45?(n.consume(_),s=2,k):_===91?(n.consume(_),s=5,g=0,x):bn(_)?(n.consume(_),s=4,o.interrupt?a:S):r(_)}function k(_){return _===45?(n.consume(_),o.interrupt?a:S):r(_)}function x(_){const J="CDATA[";return _===J.charCodeAt(g++)?(n.consume(_),g===J.length?o.interrupt?a:re:x):r(_)}function C(_){return bn(_)?(n.consume(_),u=String.fromCharCode(_),M):r(_)}function M(_){if(_===null||_===47||_===62||vt(_)){const J=_===47,pe=u.toLowerCase();return!J&&!f&&Ud.includes(pe)?(s=1,o.interrupt?a(_):re(_)):yv.includes(u.toLowerCase())?(s=6,J?(n.consume(_),w):o.interrupt?a(_):re(_)):(s=7,o.interrupt&&!o.parser.lazy[o.now().line]?r(_):f?q(_):H(_))}return _===45||un(_)?(n.consume(_),u+=String.fromCharCode(_),M):r(_)}function w(_){return _===62?(n.consume(_),o.interrupt?a:re):r(_)}function q(_){return $e(_)?(n.consume(_),q):z(_)}function H(_){return _===47?(n.consume(_),z):_===58||_===95||bn(_)?(n.consume(_),Q):$e(_)?(n.consume(_),H):z(_)}function Q(_){return _===45||_===46||_===58||_===95||un(_)?(n.consume(_),Q):te(_)}function te(_){return _===61?(n.consume(_),L):$e(_)?(n.consume(_),te):H(_)}function L(_){return _===null||_===60||_===61||_===62||_===96?r(_):_===34||_===39?(n.consume(_),m=_,ce):$e(_)?(n.consume(_),L):ee(_)}function ce(_){return _===m?(n.consume(_),m=null,fe):_===null||we(_)?r(_):(n.consume(_),ce)}function ee(_){return _===null||_===34||_===39||_===47||_===60||_===61||_===62||_===96||vt(_)?te(_):(n.consume(_),ee)}function fe(_){return _===47||_===62||$e(_)?H(_):r(_)}function z(_){return _===62?(n.consume(_),se):r(_)}function se(_){return _===null||we(_)?re(_):$e(_)?(n.consume(_),se):r(_)}function re(_){return _===45&&s===2?(n.consume(_),Y):_===60&&s===1?(n.consume(_),G):_===62&&s===4?(n.consume(_),Be):_===63&&s===3?(n.consume(_),S):_===93&&s===5?(n.consume(_),ve):we(_)&&(s===6||s===7)?(n.exit("htmlFlowData"),n.check(kv,T,_e)(_)):_===null||we(_)?(n.exit("htmlFlowData"),_e(_)):(n.consume(_),re)}function _e(_){return n.check(Ev,oe,T)(_)}function oe(_){return n.enter("lineEnding"),n.consume(_),n.exit("lineEnding"),X}function X(_){return _===null||we(_)?_e(_):(n.enter("htmlFlowData"),re(_))}function Y(_){return _===45?(n.consume(_),S):re(_)}function G(_){return _===47?(n.consume(_),u="",K):re(_)}function K(_){if(_===62){const J=u.toLowerCase();return Ud.includes(J)?(n.consume(_),Be):re(_)}return bn(_)&&u.length<8?(n.consume(_),u+=String.fromCharCode(_),K):re(_)}function ve(_){return _===93?(n.consume(_),S):re(_)}function S(_){return _===62?(n.consume(_),Be):_===45&&s===2?(n.consume(_),S):re(_)}function Be(_){return _===null||we(_)?(n.exit("htmlFlowData"),T(_)):(n.consume(_),Be)}function T(_){return n.exit("htmlFlow"),a(_)}}function Sv(n,a,r){const o=this;return s;function s(u){return we(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),f):r(u)}function f(u){return o.parser.lazy[o.now().line]?r(u):a(u)}}function wv(n,a,r){return o;function o(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),n.attempt($r,a,r)}}const Tv={name:"htmlText",tokenize:Av};function Av(n,a,r){const o=this;let s,f,u;return g;function g(S){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(S),m}function m(S){return S===33?(n.consume(S),p):S===47?(n.consume(S),te):S===63?(n.consume(S),H):bn(S)?(n.consume(S),ee):r(S)}function p(S){return S===45?(n.consume(S),b):S===91?(n.consume(S),f=0,x):bn(S)?(n.consume(S),q):r(S)}function b(S){return S===45?(n.consume(S),k):r(S)}function h(S){return S===null?r(S):S===45?(n.consume(S),v):we(S)?(u=h,G(S)):(n.consume(S),h)}function v(S){return S===45?(n.consume(S),k):h(S)}function k(S){return S===62?Y(S):S===45?v(S):h(S)}function x(S){const Be="CDATA[";return S===Be.charCodeAt(f++)?(n.consume(S),f===Be.length?C:x):r(S)}function C(S){return S===null?r(S):S===93?(n.consume(S),M):we(S)?(u=C,G(S)):(n.consume(S),C)}function M(S){return S===93?(n.consume(S),w):C(S)}function w(S){return S===62?Y(S):S===93?(n.consume(S),w):C(S)}function q(S){return S===null||S===62?Y(S):we(S)?(u=q,G(S)):(n.consume(S),q)}function H(S){return S===null?r(S):S===63?(n.consume(S),Q):we(S)?(u=H,G(S)):(n.consume(S),H)}function Q(S){return S===62?Y(S):H(S)}function te(S){return bn(S)?(n.consume(S),L):r(S)}function L(S){return S===45||un(S)?(n.consume(S),L):ce(S)}function ce(S){return we(S)?(u=ce,G(S)):$e(S)?(n.consume(S),ce):Y(S)}function ee(S){return S===45||un(S)?(n.consume(S),ee):S===47||S===62||vt(S)?fe(S):r(S)}function fe(S){return S===47?(n.consume(S),Y):S===58||S===95||bn(S)?(n.consume(S),z):we(S)?(u=fe,G(S)):$e(S)?(n.consume(S),fe):Y(S)}function z(S){return S===45||S===46||S===58||S===95||un(S)?(n.consume(S),z):se(S)}function se(S){return S===61?(n.consume(S),re):we(S)?(u=se,G(S)):$e(S)?(n.consume(S),se):fe(S)}function re(S){return S===null||S===60||S===61||S===62||S===96?r(S):S===34||S===39?(n.consume(S),s=S,_e):we(S)?(u=re,G(S)):$e(S)?(n.consume(S),re):(n.consume(S),oe)}function _e(S){return S===s?(n.consume(S),s=void 0,X):S===null?r(S):we(S)?(u=_e,G(S)):(n.consume(S),_e)}function oe(S){return S===null||S===34||S===39||S===60||S===61||S===96?r(S):S===47||S===62||vt(S)?fe(S):(n.consume(S),oe)}function X(S){return S===47||S===62||vt(S)?fe(S):r(S)}function Y(S){return S===62?(n.consume(S),n.exit("htmlTextData"),n.exit("htmlText"),a):r(S)}function G(S){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(S),n.exit("lineEnding"),K}function K(S){return $e(S)?tt(n,ve,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):ve(S)}function ve(S){return n.enter("htmlTextData"),u(S)}}const ac={name:"labelEnd",resolveAll:Mv,resolveTo:Rv,tokenize:Dv},Nv={tokenize:Lv},Cv={tokenize:zv},Ov={tokenize:Iv};function Mv(n){let a=-1;const r=[];for(;++a<n.length;){const o=n[a][1];if(r.push(n[a]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const s=o.type==="labelImage"?4:2;o.type="data",a+=s}}return n.length!==r.length&&Ln(n,0,n.length,r),n}function Rv(n,a){let r=n.length,o=0,s,f,u,g;for(;r--;)if(s=n[r][1],f){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;n[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(u){if(n[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(f=r,s.type!=="labelLink")){o=2;break}}else s.type==="labelEnd"&&(u=r);const m={type:n[f][1].type==="labelLink"?"link":"image",start:{...n[f][1].start},end:{...n[n.length-1][1].end}},p={type:"label",start:{...n[f][1].start},end:{...n[u][1].end}},b={type:"labelText",start:{...n[f+o+2][1].end},end:{...n[u-2][1].start}};return g=[["enter",m,a],["enter",p,a]],g=Pn(g,n.slice(f+1,f+o+3)),g=Pn(g,[["enter",b,a]]),g=Pn(g,Jl(a.parser.constructs.insideSpan.null,n.slice(f+o+4,u-3),a)),g=Pn(g,[["exit",b,a],n[u-2],n[u-1],["exit",p,a]]),g=Pn(g,n.slice(u+1)),g=Pn(g,[["exit",m,a]]),Ln(n,f,n.length,g),n}function Dv(n,a,r){const o=this;let s=o.events.length,f,u;for(;s--;)if((o.events[s][1].type==="labelImage"||o.events[s][1].type==="labelLink")&&!o.events[s][1]._balanced){f=o.events[s][1];break}return g;function g(v){return f?f._inactive?h(v):(u=o.parser.defined.includes(li(o.sliceSerialize({start:f.end,end:o.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(v),n.exit("labelMarker"),n.exit("labelEnd"),m):r(v)}function m(v){return v===40?n.attempt(Nv,b,u?b:h)(v):v===91?n.attempt(Cv,b,u?p:h)(v):u?b(v):h(v)}function p(v){return n.attempt(Ov,b,h)(v)}function b(v){return a(v)}function h(v){return f._balanced=!0,r(v)}}function Lv(n,a,r){return o;function o(h){return n.enter("resource"),n.enter("resourceMarker"),n.consume(h),n.exit("resourceMarker"),s}function s(h){return vt(h)?Xr(n,f)(h):f(h)}function f(h){return h===41?b(h):zd(n,u,g,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function u(h){return vt(h)?Xr(n,m)(h):b(h)}function g(h){return r(h)}function m(h){return h===34||h===39||h===40?Bd(n,p,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):b(h)}function p(h){return vt(h)?Xr(n,b)(h):b(h)}function b(h){return h===41?(n.enter("resourceMarker"),n.consume(h),n.exit("resourceMarker"),n.exit("resource"),a):r(h)}}function zv(n,a,r){const o=this;return s;function s(g){return Id.call(o,n,f,u,"reference","referenceMarker","referenceString")(g)}function f(g){return o.parser.defined.includes(li(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?a(g):r(g)}function u(g){return r(g)}}function Iv(n,a,r){return o;function o(f){return n.enter("reference"),n.enter("referenceMarker"),n.consume(f),n.exit("referenceMarker"),s}function s(f){return f===93?(n.enter("referenceMarker"),n.consume(f),n.exit("referenceMarker"),n.exit("reference"),a):r(f)}}const Bv={name:"labelStartImage",resolveAll:ac.resolveAll,tokenize:Uv};function Uv(n,a,r){const o=this;return s;function s(g){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(g),n.exit("labelImageMarker"),f}function f(g){return g===91?(n.enter("labelMarker"),n.consume(g),n.exit("labelMarker"),n.exit("labelImage"),u):r(g)}function u(g){return g===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(g):a(g)}}const Hv={name:"labelStartLink",resolveAll:ac.resolveAll,tokenize:qv};function qv(n,a,r){const o=this;return s;function s(u){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(u),n.exit("labelMarker"),n.exit("labelLink"),f}function f(u){return u===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(u):a(u)}}const rc={name:"lineEnding",tokenize:Fv};function Fv(n,a){return r;function r(o){return n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),tt(n,a,"linePrefix")}}const Wl={name:"thematicBreak",tokenize:Gv};function Gv(n,a,r){let o=0,s;return f;function f(p){return n.enter("thematicBreak"),u(p)}function u(p){return s=p,g(p)}function g(p){return p===s?(n.enter("thematicBreakSequence"),m(p)):o>=3&&(p===null||we(p))?(n.exit("thematicBreak"),a(p)):r(p)}function m(p){return p===s?(n.consume(p),o++,m):(n.exit("thematicBreakSequence"),$e(p)?tt(n,g,"whitespace")(p):g(p))}}const xn={continuation:{tokenize:Kv},exit:$v,name:"list",tokenize:Pv},jv={partial:!0,tokenize:Zv},Yv={partial:!0,tokenize:Vv};function Pv(n,a,r){const o=this,s=o.events[o.events.length-1];let f=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,u=0;return g;function g(k){const x=o.containerState.type||(k===42||k===43||k===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!o.containerState.marker||k===o.containerState.marker:tc(k)){if(o.containerState.type||(o.containerState.type=x,n.enter(x,{_container:!0})),x==="listUnordered")return n.enter("listItemPrefix"),k===42||k===45?n.check(Wl,r,p)(k):p(k);if(!o.interrupt||k===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),m(k)}return r(k)}function m(k){return tc(k)&&++u<10?(n.consume(k),m):(!o.interrupt||u<2)&&(o.containerState.marker?k===o.containerState.marker:k===41||k===46)?(n.exit("listItemValue"),p(k)):r(k)}function p(k){return n.enter("listItemMarker"),n.consume(k),n.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||k,n.check($r,o.interrupt?r:b,n.attempt(jv,v,h))}function b(k){return o.containerState.initialBlankLine=!0,f++,v(k)}function h(k){return $e(k)?(n.enter("listItemPrefixWhitespace"),n.consume(k),n.exit("listItemPrefixWhitespace"),v):r(k)}function v(k){return o.containerState.size=f+o.sliceSerialize(n.exit("listItemPrefix"),!0).length,a(k)}}function Kv(n,a,r){const o=this;return o.containerState._closeFlow=void 0,n.check($r,s,f);function s(g){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,tt(n,a,"listItemIndent",o.containerState.size+1)(g)}function f(g){return o.containerState.furtherBlankLines||!$e(g)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,u(g)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,n.attempt(Yv,a,u)(g))}function u(g){return o.containerState._closeFlow=!0,o.interrupt=void 0,tt(n,n.attempt(xn,a,r),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g)}}function Vv(n,a,r){const o=this;return tt(n,s,"listItemIndent",o.containerState.size+1);function s(f){const u=o.events[o.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===o.containerState.size?a(f):r(f)}}function $v(n){n.exit(this.containerState.type)}function Zv(n,a,r){const o=this;return tt(n,s,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(f){const u=o.events[o.events.length-1];return!$e(f)&&u&&u[1].type==="listItemPrefixWhitespace"?a(f):r(f)}}const Hd={name:"setextUnderline",resolveTo:Xv,tokenize:Qv};function Xv(n,a){let r=n.length,o,s,f;for(;r--;)if(n[r][0]==="enter"){if(n[r][1].type==="content"){o=r;break}n[r][1].type==="paragraph"&&(s=r)}else n[r][1].type==="content"&&n.splice(r,1),!f&&n[r][1].type==="definition"&&(f=r);const u={type:"setextHeading",start:{...n[o][1].start},end:{...n[n.length-1][1].end}};return n[s][1].type="setextHeadingText",f?(n.splice(s,0,["enter",u,a]),n.splice(f+1,0,["exit",n[o][1],a]),n[o][1].end={...n[f][1].end}):n[o][1]=u,n.push(["exit",u,a]),n}function Qv(n,a,r){const o=this;let s;return f;function f(p){let b=o.events.length,h;for(;b--;)if(o.events[b][1].type!=="lineEnding"&&o.events[b][1].type!=="linePrefix"&&o.events[b][1].type!=="content"){h=o.events[b][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||h)?(n.enter("setextHeadingLine"),s=p,u(p)):r(p)}function u(p){return n.enter("setextHeadingLineSequence"),g(p)}function g(p){return p===s?(n.consume(p),g):(n.exit("setextHeadingLineSequence"),$e(p)?tt(n,m,"lineSuffix")(p):m(p))}function m(p){return p===null||we(p)?(n.exit("setextHeadingLine"),a(p)):r(p)}}const Jv={tokenize:Wv};function Wv(n){const a=this,r=n.attempt($r,o,n.attempt(this.parser.constructs.flowInitial,s,tt(n,n.attempt(this.parser.constructs.flow,s,n.attempt(av,s)),"linePrefix")));return r;function o(f){if(f===null){n.consume(f);return}return n.enter("lineEndingBlank"),n.consume(f),n.exit("lineEndingBlank"),a.currentConstruct=void 0,r}function s(f){if(f===null){n.consume(f);return}return n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),a.currentConstruct=void 0,r}}const ek={resolveAll:Fd()},tk=qd("string"),nk=qd("text");function qd(n){return{resolveAll:Fd(n==="text"?ik:void 0),tokenize:a};function a(r){const o=this,s=this.parser.constructs[n],f=r.attempt(s,u,g);return u;function u(b){return p(b)?f(b):g(b)}function g(b){if(b===null){r.consume(b);return}return r.enter("data"),r.consume(b),m}function m(b){return p(b)?(r.exit("data"),f(b)):(r.consume(b),m)}function p(b){if(b===null)return!0;const h=s[b];let v=-1;if(h)for(;++v<h.length;){const k=h[v];if(!k.previous||k.previous.call(o,o.previous))return!0}return!1}}}function Fd(n){return a;function a(r,o){let s=-1,f;for(;++s<=r.length;)f===void 0?r[s]&&r[s][1].type==="data"&&(f=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==f+2&&(r[f][1].end=r[s-1][1].end,r.splice(f+2,s-f-2),s=f+2),f=void 0);return n?n(r,o):r}}function ik(n,a){let r=0;for(;++r<=n.length;)if((r===n.length||n[r][1].type==="lineEnding")&&n[r-1][1].type==="data"){const o=n[r-1][1],s=a.sliceStream(o);let f=s.length,u=-1,g=0,m;for(;f--;){const p=s[f];if(typeof p=="string"){for(u=p.length;p.charCodeAt(u-1)===32;)g++,u--;if(u)break;u=-1}else if(p===-2)m=!0,g++;else if(p!==-1){f++;break}}if(a._contentTypeTextTrailing&&r===n.length&&(g=0),g){const p={type:r===n.length||m||g<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:f?u:o.start._bufferIndex+u,_index:o.start._index+f,line:o.end.line,column:o.end.column-g,offset:o.end.offset-g},end:{...o.end}};o.end={...p.start},o.start.offset===o.end.offset?Object.assign(o,p):(n.splice(r,0,["enter",p,a],["exit",p,a]),r+=2)}r++}return n}const ak=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:cv},disable:{null:[]},document:{42:xn,43:xn,45:xn,48:xn,49:xn,50:xn,51:xn,52:xn,53:xn,54:xn,55:xn,56:xn,57:xn,62:Cd},flow:{35:mv,42:Wl,45:[Hd,Wl],60:vv,61:Hd,95:Wl,96:Dd,126:Dd},flowInitial:{[-2]:ic,[-1]:ic,32:ic},insideSpan:{null:[nc,ek]},string:{38:Md,92:Od},text:{[-5]:rc,[-4]:rc,[-3]:rc,33:Bv,38:Md,42:nc,60:[H0,Tv],91:Hv,92:[pv,Od],93:ac,95:nc,96:J0}},Symbol.toStringTag,{value:"Module"}));function rk(n,a,r){let o={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},f=[];let u=[],g=[];const m={attempt:ce(te),check:ce(L),consume:q,enter:H,exit:Q,interrupt:ce(L,{interrupt:!0})},p={code:null,containerState:{},defineSkip:C,events:[],now:x,parser:n,previous:null,sliceSerialize:v,sliceStream:k,write:h};let b=a.tokenize.call(p,m);return a.resolveAll&&f.push(a),p;function h(se){return u=Pn(u,se),M(),u[u.length-1]!==null?[]:(ee(a,0),p.events=Jl(f,p.events,p),p.events)}function v(se,re){return ok(k(se),re)}function k(se){return lk(u,se)}function x(){const{_bufferIndex:se,_index:re,line:_e,column:oe,offset:X}=o;return{_bufferIndex:se,_index:re,line:_e,column:oe,offset:X}}function C(se){s[se.line]=se.column,z()}function M(){let se;for(;o._index<u.length;){const re=u[o._index];if(typeof re=="string")for(se=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===se&&o._bufferIndex<re.length;)w(re.charCodeAt(o._bufferIndex));else w(re)}}function w(se){b=b(se)}function q(se){we(se)?(o.line++,o.column=1,o.offset+=se===-3?2:1,z()):se!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===u[o._index].length&&(o._bufferIndex=-1,o._index++)),p.previous=se}function H(se,re){const _e=re||{};return _e.type=se,_e.start=x(),p.events.push(["enter",_e,p]),g.push(_e),_e}function Q(se){const re=g.pop();return re.end=x(),p.events.push(["exit",re,p]),re}function te(se,re){ee(se,re.from)}function L(se,re){re.restore()}function ce(se,re){return _e;function _e(oe,X,Y){let G,K,ve,S;return Array.isArray(oe)?T(oe):"tokenize"in oe?T([oe]):Be(oe);function Be(de){return Ce;function Ce(Ue){const kt=Ue!==null&&de[Ue],Ke=Ue!==null&&de.null,gt=[...Array.isArray(kt)?kt:kt?[kt]:[],...Array.isArray(Ke)?Ke:Ke?[Ke]:[]];return T(gt)(Ue)}}function T(de){return G=de,K=0,de.length===0?Y:_(de[K])}function _(de){return Ce;function Ce(Ue){return S=fe(),ve=de,de.partial||(p.currentConstruct=de),de.name&&p.parser.constructs.disable.null.includes(de.name)?pe():de.tokenize.call(re?Object.assign(Object.create(p),re):p,m,J,pe)(Ue)}}function J(de){return se(ve,S),X}function pe(de){return S.restore(),++K<G.length?_(G[K]):Y}}}function ee(se,re){se.resolveAll&&!f.includes(se)&&f.push(se),se.resolve&&Ln(p.events,re,p.events.length-re,se.resolve(p.events.slice(re),p)),se.resolveTo&&(p.events=se.resolveTo(p.events,p))}function fe(){const se=x(),re=p.previous,_e=p.currentConstruct,oe=p.events.length,X=Array.from(g);return{from:oe,restore:Y};function Y(){o=se,p.previous=re,p.currentConstruct=_e,p.events.length=oe,g=X,z()}}function z(){o.line in s&&o.column<2&&(o.column=s[o.line],o.offset+=s[o.line]-1)}}function lk(n,a){const r=a.start._index,o=a.start._bufferIndex,s=a.end._index,f=a.end._bufferIndex;let u;if(r===s)u=[n[r].slice(o,f)];else{if(u=n.slice(r,s),o>-1){const g=u[0];typeof g=="string"?u[0]=g.slice(o):u.shift()}f>0&&u.push(n[s].slice(0,f))}return u}function ok(n,a){let r=-1;const o=[];let s;for(;++r<n.length;){const f=n[r];let u;if(typeof f=="string")u=f;else switch(f){case-5:{u="\r";break}case-4:{u=`
11
11
  `;break}case-3:{u=`\r
12
- `;break}case-2:{u=a?" ":" ";break}case-1:{if(!a&&s)continue;u=" ";break}default:u=String.fromCharCode(f)}s=f===-2,o.push(u)}return o.join("")}function a0(n){const o={constructs:xd([e0,...(n||{}).extensions||[]]),content:s(NE),defined:[],document:s(OE),flow:s($v),lazy:{},string:s(Qv),text:s(Jv)};return o;function s(f){return u;function u(g){return t0(o,f,g)}}}function r0(n){for(;!Rd(n););return n}const qd=/[\0\t\n\r]/g;function l0(){let n=1,a="",r=!0,o;return s;function s(f,u,g){const h=[];let p,b,m,E,v;for(f=a+(typeof f=="string"?f.toString():new TextDecoder(u||void 0).decode(f)),m=0,a="",r&&(f.charCodeAt(0)===65279&&m++,r=void 0);m<f.length;){if(qd.lastIndex=m,p=qd.exec(f),E=p&&p.index!==void 0?p.index:f.length,v=f.charCodeAt(E),!p){a=f.slice(m);break}if(v===10&&m===E&&o)h.push(-3),o=void 0;else switch(o&&(h.push(-5),o=void 0),m<E&&(h.push(f.slice(m,E)),n+=E-m),v){case 0:{h.push(65533),n++;break}case 9:{for(b=Math.ceil(n/4)*4,h.push(-2);n++<b;)h.push(-1);break}case 10:{h.push(-4),n=1;break}default:o=!0,n=1}m=E+1}return g&&(o&&h.push(-5),a&&h.push(a),h.push(null)),h}}const o0=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function s0(n){return n.replace(o0,c0)}function c0(n,a,r){if(a)return a;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),f=s===120||s===88;return Sd(r.slice(f?2:1),f?16:10)}return Qs(r)||n}const Fd={}.hasOwnProperty;function u0(n,a,r){return a&&typeof a=="object"&&(r=a,a=void 0),f0(r)(r0(a0(r).document().write(l0()(n,a,!0))))}function f0(n){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:f(bn),autolinkProtocol:fe,autolinkEmail:fe,atxHeading:f(Qt),blockQuote:f(ze),characterEscape:fe,characterReference:fe,codeFenced:f(un),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:f(un,u),codeText:f(zn,u),codeTextData:fe,data:fe,codeFlowValue:fe,definition:f(Xn),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:f(In),hardBreakEscape:f(Pe),hardBreakTrailing:f(Pe),htmlFlow:f(Jt,u),htmlFlowData:fe,htmlText:f(Jt,u),htmlTextData:fe,image:f(Bn),label:u,link:f(bn),listItem:f(Vt),listItemValue:E,listOrdered:f(yn,m),listUnordered:f(yn),paragraph:f(Bt),reference:k,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:f(Qt),strong:f(xn),thematicBreak:f(Ut)},exit:{atxHeading:h(),atxHeadingSequence:te,autolink:h(),autolinkEmail:ft,autolinkProtocol:xe,blockQuote:h(),characterEscapeValue:z,characterReferenceMarkerHexadecimal:de,characterReferenceMarkerNumeric:de,characterReferenceValue:Ee,characterReference:Me,codeFenced:h(M),codeFencedFence:C,codeFencedFenceInfo:v,codeFencedFenceMeta:x,codeFlowValue:z,codeIndented:h(w),codeText:h(Q),codeTextData:z,data:z,definition:h(),definitionDestinationString:J,definitionLabelString:q,definitionTitleString:H,emphasis:h(),hardBreakEscape:h(re),hardBreakTrailing:h(re),htmlFlow:h(ke),htmlFlowData:z,htmlText:h(le),htmlTextData:z,image:h(j),label:ve,labelText:P,lineEnding:oe,link:h(G),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:W,resourceDestinationString:S,resourceTitleString:Re,resource:T,setextHeading:h(ne),setextHeadingLineSequence:ce,setextHeadingText:D,strong:h(),thematicBreak:h()}};Gd(a,(n||{}).mdastExtensions||[]);const r={};return o;function o(Y){let ae={type:"root",children:[]};const Te={stack:[ae],tokenStack:[],config:a,enter:g,exit:p,buffer:u,resume:b,data:r},Ie=[];let We=-1;for(;++We<Y.length;)if(Y[We][1].type==="listOrdered"||Y[We][1].type==="listUnordered")if(Y[We][0]==="enter")Ie.push(We);else{const $t=Ie.pop();We=s(Y,$t,We)}for(We=-1;++We<Y.length;){const $t=a[Y[We][0]];Fd.call($t,Y[We][1].type)&&$t[Y[We][1].type].call(Object.assign({sliceSerialize:Y[We][2].sliceSerialize},Te),Y[We][1])}if(Te.tokenStack.length>0){const $t=Te.tokenStack[Te.tokenStack.length-1];($t[1]||jd).call(Te,void 0,$t[0])}for(ae.position={start:ji(Y.length>0?Y[0][1].start:{line:1,column:1,offset:0}),end:ji(Y.length>0?Y[Y.length-2][1].end:{line:1,column:1,offset:0})},We=-1;++We<a.transforms.length;)ae=a.transforms[We](ae)||ae;return ae}function s(Y,ae,Te){let Ie=ae-1,We=-1,$t=!1,fn,dn,pn,Nt;for(;++Ie<=Te;){const et=Y[Ie];switch(et[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{et[0]==="enter"?We++:We--,Nt=void 0;break}case"lineEndingBlank":{et[0]==="enter"&&(fn&&!Nt&&!We&&!pn&&(pn=Ie),Nt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Nt=void 0}if(!We&&et[0]==="enter"&&et[1].type==="listItemPrefix"||We===-1&&et[0]==="exit"&&(et[1].type==="listUnordered"||et[1].type==="listOrdered")){if(fn){let kt=Ie;for(dn=void 0;kt--;){const Wt=Y[kt];if(Wt[1].type==="lineEnding"||Wt[1].type==="lineEndingBlank"){if(Wt[0]==="exit")continue;dn&&(Y[dn][1].type="lineEndingBlank",$t=!0),Wt[1].type="lineEnding",dn=kt}else if(!(Wt[1].type==="linePrefix"||Wt[1].type==="blockQuotePrefix"||Wt[1].type==="blockQuotePrefixWhitespace"||Wt[1].type==="blockQuoteMarker"||Wt[1].type==="listItemIndent"))break}pn&&(!dn||pn<dn)&&(fn._spread=!0),fn.end=Object.assign({},dn?Y[dn][1].start:et[1].end),Y.splice(dn||Ie,0,["exit",fn,et[2]]),Ie++,Te++}if(et[1].type==="listItemPrefix"){const kt={type:"listItem",_spread:!1,start:Object.assign({},et[1].start),end:void 0};fn=kt,Y.splice(Ie,0,["enter",kt,et[2]]),Ie++,Te++,pn=void 0,Nt=!0}}}return Y[ae][1]._spread=$t,Te}function f(Y,ae){return Te;function Te(Ie){g.call(this,Y(Ie),Ie),ae&&ae.call(this,Ie)}}function u(){this.stack.push({type:"fragment",children:[]})}function g(Y,ae,Te){this.stack[this.stack.length-1].children.push(Y),this.stack.push(Y),this.tokenStack.push([ae,Te||void 0]),Y.position={start:ji(ae.start),end:void 0}}function h(Y){return ae;function ae(Te){Y&&Y.call(this,Te),p.call(this,Te)}}function p(Y,ae){const Te=this.stack.pop(),Ie=this.tokenStack.pop();if(Ie)Ie[0].type!==Y.type&&(ae?ae.call(this,Y,Ie[0]):(Ie[1]||jd).call(this,Y,Ie[0]));else throw new Error("Cannot close `"+Y.type+"` ("+qr({start:Y.start,end:Y.end})+"): it’s not open");Te.position.end=ji(Y.end)}function b(){return Xs(this.stack.pop())}function m(){this.data.expectingFirstListItemValue=!0}function E(Y){if(this.data.expectingFirstListItemValue){const ae=this.stack[this.stack.length-2];ae.start=Number.parseInt(this.sliceSerialize(Y),10),this.data.expectingFirstListItemValue=void 0}}function v(){const Y=this.resume(),ae=this.stack[this.stack.length-1];ae.lang=Y}function x(){const Y=this.resume(),ae=this.stack[this.stack.length-1];ae.meta=Y}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function M(){const Y=this.resume(),ae=this.stack[this.stack.length-1];ae.value=Y.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const Y=this.resume(),ae=this.stack[this.stack.length-1];ae.value=Y.replace(/(\r?\n|\r)$/g,"")}function q(Y){const ae=this.resume(),Te=this.stack[this.stack.length-1];Te.label=ae,Te.identifier=ri(this.sliceSerialize(Y)).toLowerCase()}function H(){const Y=this.resume(),ae=this.stack[this.stack.length-1];ae.title=Y}function J(){const Y=this.resume(),ae=this.stack[this.stack.length-1];ae.url=Y}function te(Y){const ae=this.stack[this.stack.length-1];if(!ae.depth){const Te=this.sliceSerialize(Y).length;ae.depth=Te}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function ce(Y){const ae=this.stack[this.stack.length-1];ae.depth=this.sliceSerialize(Y).codePointAt(0)===61?1:2}function ne(){this.data.setextHeadingSlurpLineEnding=void 0}function fe(Y){const Te=this.stack[this.stack.length-1].children;let Ie=Te[Te.length-1];(!Ie||Ie.type!=="text")&&(Ie=Un(),Ie.position={start:ji(Y.start),end:void 0},Te.push(Ie)),this.stack.push(Ie)}function z(Y){const ae=this.stack.pop();ae.value+=this.sliceSerialize(Y),ae.position.end=ji(Y.end)}function oe(Y){const ae=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Te=ae.children[ae.children.length-1];Te.position.end=ji(Y.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(ae.type)&&(fe.call(this,Y),z.call(this,Y))}function re(){this.data.atHardBreak=!0}function ke(){const Y=this.resume(),ae=this.stack[this.stack.length-1];ae.value=Y}function le(){const Y=this.resume(),ae=this.stack[this.stack.length-1];ae.value=Y}function Q(){const Y=this.resume(),ae=this.stack[this.stack.length-1];ae.value=Y}function G(){const Y=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";Y.type+="Reference",Y.referenceType=ae,delete Y.url,delete Y.title}else delete Y.identifier,delete Y.label;this.data.referenceType=void 0}function j(){const Y=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";Y.type+="Reference",Y.referenceType=ae,delete Y.url,delete Y.title}else delete Y.identifier,delete Y.label;this.data.referenceType=void 0}function P(Y){const ae=this.sliceSerialize(Y),Te=this.stack[this.stack.length-2];Te.label=s0(ae),Te.identifier=ri(ae).toLowerCase()}function ve(){const Y=this.stack[this.stack.length-1],ae=this.resume(),Te=this.stack[this.stack.length-1];if(this.data.inReference=!0,Te.type==="link"){const Ie=Y.children;Te.children=Ie}else Te.alt=ae}function S(){const Y=this.resume(),ae=this.stack[this.stack.length-1];ae.url=Y}function Re(){const Y=this.resume(),ae=this.stack[this.stack.length-1];ae.title=Y}function T(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function W(Y){const ae=this.resume(),Te=this.stack[this.stack.length-1];Te.label=ae,Te.identifier=ri(this.sliceSerialize(Y)).toLowerCase(),this.data.referenceType="full"}function de(Y){this.data.characterReferenceType=Y.type}function Ee(Y){const ae=this.sliceSerialize(Y),Te=this.data.characterReferenceType;let Ie;Te?(Ie=Sd(ae,Te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ie=Qs(ae);const We=this.stack[this.stack.length-1];We.value+=Ie}function Me(Y){const ae=this.stack.pop();ae.position.end=ji(Y.end)}function xe(Y){z.call(this,Y);const ae=this.stack[this.stack.length-1];ae.url=this.sliceSerialize(Y)}function ft(Y){z.call(this,Y);const ae=this.stack[this.stack.length-1];ae.url="mailto:"+this.sliceSerialize(Y)}function ze(){return{type:"blockquote",children:[]}}function un(){return{type:"code",lang:null,meta:null,value:""}}function zn(){return{type:"inlineCode",value:""}}function Xn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function In(){return{type:"emphasis",children:[]}}function Qt(){return{type:"heading",depth:0,children:[]}}function Pe(){return{type:"break"}}function Jt(){return{type:"html",value:""}}function Bn(){return{type:"image",title:null,url:"",alt:null}}function bn(){return{type:"link",title:null,url:"",children:[]}}function yn(Y){return{type:"list",ordered:Y.type==="listOrdered",start:null,spread:Y._spread,children:[]}}function Vt(Y){return{type:"listItem",spread:Y._spread,checked:null,children:[]}}function Bt(){return{type:"paragraph",children:[]}}function xn(){return{type:"strong",children:[]}}function Un(){return{type:"text",value:""}}function Ut(){return{type:"thematicBreak"}}}function ji(n){return{line:n.line,column:n.column,offset:n.offset}}function Gd(n,a){let r=-1;for(;++r<a.length;){const o=a[r];Array.isArray(o)?Gd(n,o):d0(n,o)}}function d0(n,a){let r;for(r in a)if(Fd.call(a,r))switch(r){case"canContainEols":{const o=a[r];o&&n[r].push(...o);break}case"transforms":{const o=a[r];o&&n[r].push(...o);break}case"enter":case"exit":{const o=a[r];o&&Object.assign(n[r],o);break}}}function jd(n,a){throw n?new Error("Cannot close `"+n.type+"` ("+qr({start:n.start,end:n.end})+"): a different token (`"+a.type+"`, "+qr({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+qr({start:a.start,end:a.end})+") is still open")}function p0(n){const a=this;a.parser=r;function r(o){return u0(o,{...a.data("settings"),...n,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function g0(n,a){const r={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(a),!0)};return n.patch(a,r),n.applyData(a,r)}function h0(n,a){const r={type:"element",tagName:"br",properties:{},children:[]};return n.patch(a,r),[n.applyData(a,r),{type:"text",value:`
13
- `}]}function m0(n,a){const r=a.value?a.value+`
14
- `:"",o={},s=a.lang?a.lang.split(/\s+/):[];s.length>0&&(o.className=["language-"+s[0]]);let f={type:"element",tagName:"code",properties:o,children:[{type:"text",value:r}]};return a.meta&&(f.data={meta:a.meta}),n.patch(a,f),f=n.applyData(a,f),f={type:"element",tagName:"pre",properties:{},children:[f]},n.patch(a,f),f}function b0(n,a){const r={type:"element",tagName:"del",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function y0(n,a){const r={type:"element",tagName:"em",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function E0(n,a){const r=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",o=String(a.identifier).toUpperCase(),s=$a(o.toLowerCase()),f=n.footnoteOrder.indexOf(o);let u,g=n.footnoteCounts.get(o);g===void 0?(g=0,n.footnoteOrder.push(o),u=n.footnoteOrder.length):u=f+1,g+=1,n.footnoteCounts.set(o,g);const h={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+s,id:r+"fnref-"+s+(g>1?"-"+g:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};n.patch(a,h);const p={type:"element",tagName:"sup",properties:{},children:[h]};return n.patch(a,p),n.applyData(a,p)}function v0(n,a){const r={type:"element",tagName:"h"+a.depth,properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function _0(n,a){if(n.options.allowDangerousHtml){const r={type:"raw",value:a.value};return n.patch(a,r),n.applyData(a,r)}}function Yd(n,a){const r=a.referenceType;let o="]";if(r==="collapsed"?o+="[]":r==="full"&&(o+="["+(a.label||a.identifier)+"]"),a.type==="imageReference")return[{type:"text",value:"!["+a.alt+o}];const s=n.all(a),f=s[0];f&&f.type==="text"?f.value="["+f.value:s.unshift({type:"text",value:"["});const u=s[s.length-1];return u&&u.type==="text"?u.value+=o:s.push({type:"text",value:o}),s}function k0(n,a){const r=String(a.identifier).toUpperCase(),o=n.definitionById.get(r);if(!o)return Yd(n,a);const s={src:$a(o.url||""),alt:a.alt};o.title!==null&&o.title!==void 0&&(s.title=o.title);const f={type:"element",tagName:"img",properties:s,children:[]};return n.patch(a,f),n.applyData(a,f)}function x0(n,a){const r={src:$a(a.url)};a.alt!==null&&a.alt!==void 0&&(r.alt=a.alt),a.title!==null&&a.title!==void 0&&(r.title=a.title);const o={type:"element",tagName:"img",properties:r,children:[]};return n.patch(a,o),n.applyData(a,o)}function S0(n,a){const r={type:"text",value:a.value.replace(/\r?\n|\r/g," ")};n.patch(a,r);const o={type:"element",tagName:"code",properties:{},children:[r]};return n.patch(a,o),n.applyData(a,o)}function w0(n,a){const r=String(a.identifier).toUpperCase(),o=n.definitionById.get(r);if(!o)return Yd(n,a);const s={href:$a(o.url||"")};o.title!==null&&o.title!==void 0&&(s.title=o.title);const f={type:"element",tagName:"a",properties:s,children:n.all(a)};return n.patch(a,f),n.applyData(a,f)}function T0(n,a){const r={href:$a(a.url)};a.title!==null&&a.title!==void 0&&(r.title=a.title);const o={type:"element",tagName:"a",properties:r,children:n.all(a)};return n.patch(a,o),n.applyData(a,o)}function A0(n,a,r){const o=n.all(a),s=r?N0(r):Pd(a),f={},u=[];if(typeof a.checked=="boolean"){const b=o[0];let m;b&&b.type==="element"&&b.tagName==="p"?m=b:(m={type:"element",tagName:"p",properties:{},children:[]},o.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:a.checked,disabled:!0},children:[]}),f.className=["task-list-item"]}let g=-1;for(;++g<o.length;){const b=o[g];(s||g!==0||b.type!=="element"||b.tagName!=="p")&&u.push({type:"text",value:`
15
- `}),b.type==="element"&&b.tagName==="p"&&!s?u.push(...b.children):u.push(b)}const h=o[o.length-1];h&&(s||h.type!=="element"||h.tagName!=="p")&&u.push({type:"text",value:`
16
- `});const p={type:"element",tagName:"li",properties:f,children:u};return n.patch(a,p),n.applyData(a,p)}function N0(n){let a=!1;if(n.type==="list"){a=n.spread||!1;const r=n.children;let o=-1;for(;!a&&++o<r.length;)a=Pd(r[o])}return a}function Pd(n){const a=n.spread;return a??n.children.length>1}function C0(n,a){const r={},o=n.all(a);let s=-1;for(typeof a.start=="number"&&a.start!==1&&(r.start=a.start);++s<o.length;){const u=o[s];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const f={type:"element",tagName:a.ordered?"ol":"ul",properties:r,children:n.wrap(o,!0)};return n.patch(a,f),n.applyData(a,f)}function O0(n,a){const r={type:"element",tagName:"p",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function M0(n,a){const r={type:"root",children:n.wrap(n.all(a))};return n.patch(a,r),n.applyData(a,r)}function R0(n,a){const r={type:"element",tagName:"strong",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function D0(n,a){const r=n.all(a),o=r.shift(),s=[];if(o){const u={type:"element",tagName:"thead",properties:{},children:n.wrap([o],!0)};n.patch(a.children[0],u),s.push(u)}if(r.length>0){const u={type:"element",tagName:"tbody",properties:{},children:n.wrap(r,!0)},g=Ys(a.children[1]),h=fd(a.children[a.children.length-1]);g&&h&&(u.position={start:g,end:h}),s.push(u)}const f={type:"element",tagName:"table",properties:{},children:n.wrap(s,!0)};return n.patch(a,f),n.applyData(a,f)}function L0(n,a,r){const o=r?r.children:void 0,f=(o?o.indexOf(a):1)===0?"th":"td",u=r&&r.type==="table"?r.align:void 0,g=u?u.length:a.children.length;let h=-1;const p=[];for(;++h<g;){const m=a.children[h],E={},v=u?u[h]:void 0;v&&(E.align=v);let x={type:"element",tagName:f,properties:E,children:[]};m&&(x.children=n.all(m),n.patch(m,x),x=n.applyData(m,x)),p.push(x)}const b={type:"element",tagName:"tr",properties:{},children:n.wrap(p,!0)};return n.patch(a,b),n.applyData(a,b)}function z0(n,a){const r={type:"element",tagName:"td",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}const Kd=9,Vd=32;function I0(n){const a=String(n),r=/\r?\n|\r/g;let o=r.exec(a),s=0;const f=[];for(;o;)f.push($d(a.slice(s,o.index),s>0,!0),o[0]),s=o.index+o[0].length,o=r.exec(a);return f.push($d(a.slice(s),s>0,!1)),f.join("")}function $d(n,a,r){let o=0,s=n.length;if(a){let f=n.codePointAt(o);for(;f===Kd||f===Vd;)o++,f=n.codePointAt(o)}if(r){let f=n.codePointAt(s-1);for(;f===Kd||f===Vd;)s--,f=n.codePointAt(s-1)}return s>o?n.slice(o,s):""}function B0(n,a){const r={type:"text",value:I0(String(a.value))};return n.patch(a,r),n.applyData(a,r)}function U0(n,a){const r={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(a,r),n.applyData(a,r)}const H0={blockquote:g0,break:h0,code:m0,delete:b0,emphasis:y0,footnoteReference:E0,heading:v0,html:_0,imageReference:k0,image:x0,inlineCode:S0,linkReference:w0,link:T0,listItem:A0,list:C0,paragraph:O0,root:M0,strong:R0,table:D0,tableCell:z0,tableRow:L0,text:B0,thematicBreak:U0,toml:Xl,yaml:Xl,definition:Xl,footnoteDefinition:Xl};function Xl(){}const Zd=-1,Ql=0,Pr=1,Jl=2,ic=3,ac=4,rc=5,lc=6,Xd=7,Qd=8,Jd=typeof self=="object"?self:globalThis,Wd=(n,a)=>{switch(n){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+n)}return new Jd[n](a)},q0=(n,a)=>{const r=(s,f)=>(n.set(f,s),s),o=s=>{if(n.has(s))return n.get(s);const[f,u]=a[s];switch(f){case Ql:case Zd:return r(u,s);case Pr:{const g=r([],s);for(const h of u)g.push(o(h));return g}case Jl:{const g=r({},s);for(const[h,p]of u)g[o(h)]=o(p);return g}case ic:return r(new Date(u),s);case ac:{const{source:g,flags:h}=u;return r(new RegExp(g,h),s)}case rc:{const g=r(new Map,s);for(const[h,p]of u)g.set(o(h),o(p));return g}case lc:{const g=r(new Set,s);for(const h of u)g.add(o(h));return g}case Xd:{const{name:g,message:h}=u;return r(typeof Jd[g]=="function"?Wd(g,h):new Error(h),s)}case Qd:return r(BigInt(u),s);case"BigInt":return r(Object(BigInt(u)),s);case"ArrayBuffer":return r(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:g}=new Uint8Array(u);return r(new DataView(g),u)}}return r(Wd(f,u),s)};return o},ep=n=>q0(new Map,n)(0),ka="",{toString:F0}={},{keys:G0}=Object,Kr=n=>{const a=typeof n;if(a!=="object"||!n)return[Ql,a];const r=F0.call(n).slice(8,-1);switch(r){case"Array":return[Pr,ka];case"Object":return[Jl,ka];case"Date":return[ic,ka];case"RegExp":return[ac,ka];case"Map":return[rc,ka];case"Set":return[lc,ka];case"DataView":return[Pr,r]}return r.includes("Array")?[Pr,r]:n instanceof Error?[Xd,n.name||"Error"]:[Jl,r]},Wl=([n,a])=>n===Ql&&(a==="function"||a==="symbol"),j0=(n,a,r,o)=>{const s=(u,g)=>{const h=o.push(u)-1;return r.set(g,h),h},f=u=>{if(r.has(u))return r.get(u);let[g,h]=Kr(u);switch(g){case Ql:{let b=u;switch(h){case"bigint":g=Qd,b=u.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+h);b=null;break;case"undefined":return s([Zd],u)}return s([g,b],u)}case Pr:{if(h){let E=u;return h==="DataView"?E=new Uint8Array(u.buffer):h==="ArrayBuffer"&&(E=new Uint8Array(u)),s([h,[...E]],u)}const b=[],m=s([g,b],u);for(const E of u)b.push(f(E));return m}case Jl:{if(h)switch(h){case"BigInt":return s([h,u.toString()],u);case"Boolean":case"Number":case"String":return s([h,u.valueOf()],u)}if(a&&"toJSON"in u)return f(u.toJSON());const b=[],m=s([g,b],u);for(const E of G0(u))(n||!Wl(Kr(u[E])))&&b.push([f(E),f(u[E])]);return m}case ic:return s([g,isNaN(u.getTime())?ka:u.toISOString()],u);case ac:{const{source:b,flags:m}=u;return s([g,{source:b,flags:m}],u)}case rc:{const b=[],m=s([g,b],u);for(const[E,v]of u)(n||!(Wl(Kr(E))||Wl(Kr(v))))&&b.push([f(E),f(v)]);return m}case lc:{const b=[],m=s([g,b],u);for(const E of u)(n||!Wl(Kr(E)))&&b.push(f(E));return m}}const{message:p}=u;return s([g,{name:h,message:p}],u)};return f},tp=(n,{json:a,lossy:r}={})=>{const o=[];return j0(!(a||r),!!a,new Map,o)(n),o},eo=typeof structuredClone=="function"?(n,a)=>a&&("json"in a||"lossy"in a)?ep(tp(n,a)):structuredClone(n):(n,a)=>ep(tp(n,a));function Y0(n,a){const r=[{type:"text",value:"↩"}];return a>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(a)}]}),r}function P0(n,a){return"Back to reference "+(n+1)+(a>1?"-"+a:"")}function K0(n){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",r=n.options.footnoteBackContent||Y0,o=n.options.footnoteBackLabel||P0,s=n.options.footnoteLabel||"Footnotes",f=n.options.footnoteLabelTagName||"h2",u=n.options.footnoteLabelProperties||{className:["sr-only"]},g=[];let h=-1;for(;++h<n.footnoteOrder.length;){const p=n.footnoteById.get(n.footnoteOrder[h]);if(!p)continue;const b=n.all(p),m=String(p.identifier).toUpperCase(),E=$a(m.toLowerCase());let v=0;const x=[],C=n.footnoteCounts.get(m);for(;C!==void 0&&++v<=C;){x.length>0&&x.push({type:"text",value:" "});let q=typeof r=="string"?r:r(h,v);typeof q=="string"&&(q={type:"text",value:q}),x.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+E+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(h,v),className:["data-footnote-backref"]},children:Array.isArray(q)?q:[q]})}const M=b[b.length-1];if(M&&M.type==="element"&&M.tagName==="p"){const q=M.children[M.children.length-1];q&&q.type==="text"?q.value+=" ":M.children.push({type:"text",value:" "}),M.children.push(...x)}else b.push(...x);const w={type:"element",tagName:"li",properties:{id:a+"fn-"+E},children:n.wrap(b,!0)};n.patch(p,w),g.push(w)}if(g.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:f,properties:{...eo(u),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
12
+ `;break}case-2:{u=a?" ":" ";break}case-1:{if(!a&&s)continue;u=" ";break}default:u=String.fromCharCode(f)}s=f===-2,o.push(u)}return o.join("")}function sk(n){const o={constructs:wd([ak,...(n||{}).extensions||[]]),content:s(R0),defined:[],document:s(L0),flow:s(Jv),lazy:{},string:s(tk),text:s(nk)};return o;function s(f){return u;function u(g){return rk(o,f,g)}}}function ck(n){for(;!Ld(n););return n}const Gd=/[\0\t\n\r]/g;function uk(){let n=1,a="",r=!0,o;return s;function s(f,u,g){const m=[];let p,b,h,v,k;for(f=a+(typeof f=="string"?f.toString():new TextDecoder(u||void 0).decode(f)),h=0,a="",r&&(f.charCodeAt(0)===65279&&h++,r=void 0);h<f.length;){if(Gd.lastIndex=h,p=Gd.exec(f),v=p&&p.index!==void 0?p.index:f.length,k=f.charCodeAt(v),!p){a=f.slice(h);break}if(k===10&&h===v&&o)m.push(-3),o=void 0;else switch(o&&(m.push(-5),o=void 0),h<v&&(m.push(f.slice(h,v)),n+=v-h),k){case 0:{m.push(65533),n++;break}case 9:{for(b=Math.ceil(n/4)*4,m.push(-2);n++<b;)m.push(-1);break}case 10:{m.push(-4),n=1;break}default:o=!0,n=1}h=v+1}return g&&(o&&m.push(-5),a&&m.push(a),m.push(null)),m}}const fk=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function dk(n){return n.replace(fk,pk)}function pk(n,a,r){if(a)return a;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),f=s===120||s===88;return Td(r.slice(f?2:1),f?16:10)}return ec(r)||n}const jd={}.hasOwnProperty;function gk(n,a,r){return a&&typeof a=="object"&&(r=a,a=void 0),mk(r)(ck(sk(r).document().write(uk()(n,a,!0))))}function mk(n){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:f(Vn),autolinkProtocol:fe,autolinkEmail:fe,atxHeading:f(en),blockQuote:f(Ke),characterEscape:fe,characterReference:fe,codeFenced:f(gt),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:f(gt,u),codeText:f(zn,u),codeTextData:fe,data:fe,codeFlowValue:fe,definition:f(Vt),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:f(bi),hardBreakEscape:f(Ve),hardBreakTrailing:f(Ve),htmlFlow:f(Qt,u),htmlFlowData:fe,htmlText:f(Qt,u),htmlTextData:fe,image:f(Sn),label:u,link:f(Vn),listItem:f(Ni),listItemValue:v,listOrdered:f(In,h),listUnordered:f(In),paragraph:f(Bn),reference:_,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:f(en),strong:f($n),thematicBreak:f(lt)},exit:{atxHeading:m(),atxHeadingSequence:te,autolink:m(),autolinkEmail:kt,autolinkProtocol:Ue,blockQuote:m(),characterEscapeValue:z,characterReferenceMarkerHexadecimal:pe,characterReferenceMarkerNumeric:pe,characterReferenceValue:de,characterReference:Ce,codeFenced:m(M),codeFencedFence:C,codeFencedFenceInfo:k,codeFencedFenceMeta:x,codeFlowValue:z,codeIndented:m(w),codeText:m(X),codeTextData:z,data:z,definition:m(),definitionDestinationString:Q,definitionLabelString:q,definitionTitleString:H,emphasis:m(),hardBreakEscape:m(re),hardBreakTrailing:m(re),htmlFlow:m(_e),htmlFlowData:z,htmlText:m(oe),htmlTextData:z,image:m(G),label:ve,labelText:K,lineEnding:se,link:m(Y),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:J,resourceDestinationString:S,resourceTitleString:Be,resource:T,setextHeading:m(ee),setextHeadingLineSequence:ce,setextHeadingText:L,strong:m(),thematicBreak:m()}};Yd(a,(n||{}).mdastExtensions||[]);const r={};return o;function o(j){let ae={type:"root",children:[]};const Ae={stack:[ae],tokenStack:[],config:a,enter:g,exit:p,buffer:u,resume:b,data:r},qe=[];let nt=-1;for(;++nt<j.length;)if(j[nt][1].type==="listOrdered"||j[nt][1].type==="listUnordered")if(j[nt][0]==="enter")qe.push(nt);else{const $t=qe.pop();nt=s(j,$t,nt)}for(nt=-1;++nt<j.length;){const $t=a[j[nt][0]];jd.call($t,j[nt][1].type)&&$t[j[nt][1].type].call(Object.assign({sliceSerialize:j[nt][2].sliceSerialize},Ae),j[nt][1])}if(Ae.tokenStack.length>0){const $t=Ae.tokenStack[Ae.tokenStack.length-1];($t[1]||Pd).call(Ae,void 0,$t[0])}for(ae.position={start:Ji(j.length>0?j[0][1].start:{line:1,column:1,offset:0}),end:Ji(j.length>0?j[j.length-2][1].end:{line:1,column:1,offset:0})},nt=-1;++nt<a.transforms.length;)ae=a.transforms[nt](ae)||ae;return ae}function s(j,ae,Ae){let qe=ae-1,nt=-1,$t=!1,dn,tn,Jt,xt;for(;++qe<=Ae;){const Et=j[qe];switch(Et[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Et[0]==="enter"?nt++:nt--,xt=void 0;break}case"lineEndingBlank":{Et[0]==="enter"&&(dn&&!xt&&!nt&&!Jt&&(Jt=qe),xt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:xt=void 0}if(!nt&&Et[0]==="enter"&&Et[1].type==="listItemPrefix"||nt===-1&&Et[0]==="exit"&&(Et[1].type==="listUnordered"||Et[1].type==="listOrdered")){if(dn){let St=qe;for(tn=void 0;St--;){const nn=j[St];if(nn[1].type==="lineEnding"||nn[1].type==="lineEndingBlank"){if(nn[0]==="exit")continue;tn&&(j[tn][1].type="lineEndingBlank",$t=!0),nn[1].type="lineEnding",tn=St}else if(!(nn[1].type==="linePrefix"||nn[1].type==="blockQuotePrefix"||nn[1].type==="blockQuotePrefixWhitespace"||nn[1].type==="blockQuoteMarker"||nn[1].type==="listItemIndent"))break}Jt&&(!tn||Jt<tn)&&(dn._spread=!0),dn.end=Object.assign({},tn?j[tn][1].start:Et[1].end),j.splice(tn||qe,0,["exit",dn,Et[2]]),qe++,Ae++}if(Et[1].type==="listItemPrefix"){const St={type:"listItem",_spread:!1,start:Object.assign({},Et[1].start),end:void 0};dn=St,j.splice(qe,0,["enter",St,Et[2]]),qe++,Ae++,Jt=void 0,xt=!0}}}return j[ae][1]._spread=$t,Ae}function f(j,ae){return Ae;function Ae(qe){g.call(this,j(qe),qe),ae&&ae.call(this,qe)}}function u(){this.stack.push({type:"fragment",children:[]})}function g(j,ae,Ae){this.stack[this.stack.length-1].children.push(j),this.stack.push(j),this.tokenStack.push([ae,Ae||void 0]),j.position={start:Ji(ae.start),end:void 0}}function m(j){return ae;function ae(Ae){j&&j.call(this,Ae),p.call(this,Ae)}}function p(j,ae){const Ae=this.stack.pop(),qe=this.tokenStack.pop();if(qe)qe[0].type!==j.type&&(ae?ae.call(this,j,qe[0]):(qe[1]||Pd).call(this,j,qe[0]));else throw new Error("Cannot close `"+j.type+"` ("+Kr({start:j.start,end:j.end})+"): it’s not open");Ae.position.end=Ji(j.end)}function b(){return Ws(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function v(j){if(this.data.expectingFirstListItemValue){const ae=this.stack[this.stack.length-2];ae.start=Number.parseInt(this.sliceSerialize(j),10),this.data.expectingFirstListItemValue=void 0}}function k(){const j=this.resume(),ae=this.stack[this.stack.length-1];ae.lang=j}function x(){const j=this.resume(),ae=this.stack[this.stack.length-1];ae.meta=j}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function M(){const j=this.resume(),ae=this.stack[this.stack.length-1];ae.value=j.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const j=this.resume(),ae=this.stack[this.stack.length-1];ae.value=j.replace(/(\r?\n|\r)$/g,"")}function q(j){const ae=this.resume(),Ae=this.stack[this.stack.length-1];Ae.label=ae,Ae.identifier=li(this.sliceSerialize(j)).toLowerCase()}function H(){const j=this.resume(),ae=this.stack[this.stack.length-1];ae.title=j}function Q(){const j=this.resume(),ae=this.stack[this.stack.length-1];ae.url=j}function te(j){const ae=this.stack[this.stack.length-1];if(!ae.depth){const Ae=this.sliceSerialize(j).length;ae.depth=Ae}}function L(){this.data.setextHeadingSlurpLineEnding=!0}function ce(j){const ae=this.stack[this.stack.length-1];ae.depth=this.sliceSerialize(j).codePointAt(0)===61?1:2}function ee(){this.data.setextHeadingSlurpLineEnding=void 0}function fe(j){const Ae=this.stack[this.stack.length-1].children;let qe=Ae[Ae.length-1];(!qe||qe.type!=="text")&&(qe=Rt(),qe.position={start:Ji(j.start),end:void 0},Ae.push(qe)),this.stack.push(qe)}function z(j){const ae=this.stack.pop();ae.value+=this.sliceSerialize(j),ae.position.end=Ji(j.end)}function se(j){const ae=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ae=ae.children[ae.children.length-1];Ae.position.end=Ji(j.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(ae.type)&&(fe.call(this,j),z.call(this,j))}function re(){this.data.atHardBreak=!0}function _e(){const j=this.resume(),ae=this.stack[this.stack.length-1];ae.value=j}function oe(){const j=this.resume(),ae=this.stack[this.stack.length-1];ae.value=j}function X(){const j=this.resume(),ae=this.stack[this.stack.length-1];ae.value=j}function Y(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=ae,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function G(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=ae,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function K(j){const ae=this.sliceSerialize(j),Ae=this.stack[this.stack.length-2];Ae.label=dk(ae),Ae.identifier=li(ae).toLowerCase()}function ve(){const j=this.stack[this.stack.length-1],ae=this.resume(),Ae=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ae.type==="link"){const qe=j.children;Ae.children=qe}else Ae.alt=ae}function S(){const j=this.resume(),ae=this.stack[this.stack.length-1];ae.url=j}function Be(){const j=this.resume(),ae=this.stack[this.stack.length-1];ae.title=j}function T(){this.data.inReference=void 0}function _(){this.data.referenceType="collapsed"}function J(j){const ae=this.resume(),Ae=this.stack[this.stack.length-1];Ae.label=ae,Ae.identifier=li(this.sliceSerialize(j)).toLowerCase(),this.data.referenceType="full"}function pe(j){this.data.characterReferenceType=j.type}function de(j){const ae=this.sliceSerialize(j),Ae=this.data.characterReferenceType;let qe;Ae?(qe=Td(ae,Ae==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):qe=ec(ae);const nt=this.stack[this.stack.length-1];nt.value+=qe}function Ce(j){const ae=this.stack.pop();ae.position.end=Ji(j.end)}function Ue(j){z.call(this,j);const ae=this.stack[this.stack.length-1];ae.url=this.sliceSerialize(j)}function kt(j){z.call(this,j);const ae=this.stack[this.stack.length-1];ae.url="mailto:"+this.sliceSerialize(j)}function Ke(){return{type:"blockquote",children:[]}}function gt(){return{type:"code",lang:null,meta:null,value:""}}function zn(){return{type:"inlineCode",value:""}}function Vt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function bi(){return{type:"emphasis",children:[]}}function en(){return{type:"heading",depth:0,children:[]}}function Ve(){return{type:"break"}}function Qt(){return{type:"html",value:""}}function Sn(){return{type:"image",title:null,url:"",alt:null}}function Vn(){return{type:"link",title:null,url:"",children:[]}}function In(j){return{type:"list",ordered:j.type==="listOrdered",start:null,spread:j._spread,children:[]}}function Ni(j){return{type:"listItem",spread:j._spread,checked:null,children:[]}}function Bn(){return{type:"paragraph",children:[]}}function $n(){return{type:"strong",children:[]}}function Rt(){return{type:"text",value:""}}function lt(){return{type:"thematicBreak"}}}function Ji(n){return{line:n.line,column:n.column,offset:n.offset}}function Yd(n,a){let r=-1;for(;++r<a.length;){const o=a[r];Array.isArray(o)?Yd(n,o):hk(n,o)}}function hk(n,a){let r;for(r in a)if(jd.call(a,r))switch(r){case"canContainEols":{const o=a[r];o&&n[r].push(...o);break}case"transforms":{const o=a[r];o&&n[r].push(...o);break}case"enter":case"exit":{const o=a[r];o&&Object.assign(n[r],o);break}}}function Pd(n,a){throw n?new Error("Cannot close `"+n.type+"` ("+Kr({start:n.start,end:n.end})+"): a different token (`"+a.type+"`, "+Kr({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+Kr({start:a.start,end:a.end})+") is still open")}function bk(n){const a=this;a.parser=r;function r(o){return gk(o,{...a.data("settings"),...n,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function yk(n,a){const r={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(a),!0)};return n.patch(a,r),n.applyData(a,r)}function vk(n,a){const r={type:"element",tagName:"br",properties:{},children:[]};return n.patch(a,r),[n.applyData(a,r),{type:"text",value:`
13
+ `}]}function kk(n,a){const r=a.value?a.value+`
14
+ `:"",o={},s=a.lang?a.lang.split(/\s+/):[];s.length>0&&(o.className=["language-"+s[0]]);let f={type:"element",tagName:"code",properties:o,children:[{type:"text",value:r}]};return a.meta&&(f.data={meta:a.meta}),n.patch(a,f),f=n.applyData(a,f),f={type:"element",tagName:"pre",properties:{},children:[f]},n.patch(a,f),f}function Ek(n,a){const r={type:"element",tagName:"del",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function _k(n,a){const r={type:"element",tagName:"em",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function xk(n,a){const r=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",o=String(a.identifier).toUpperCase(),s=tr(o.toLowerCase()),f=n.footnoteOrder.indexOf(o);let u,g=n.footnoteCounts.get(o);g===void 0?(g=0,n.footnoteOrder.push(o),u=n.footnoteOrder.length):u=f+1,g+=1,n.footnoteCounts.set(o,g);const m={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+s,id:r+"fnref-"+s+(g>1?"-"+g:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};n.patch(a,m);const p={type:"element",tagName:"sup",properties:{},children:[m]};return n.patch(a,p),n.applyData(a,p)}function Sk(n,a){const r={type:"element",tagName:"h"+a.depth,properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function wk(n,a){if(n.options.allowDangerousHtml){const r={type:"raw",value:a.value};return n.patch(a,r),n.applyData(a,r)}}function Kd(n,a){const r=a.referenceType;let o="]";if(r==="collapsed"?o+="[]":r==="full"&&(o+="["+(a.label||a.identifier)+"]"),a.type==="imageReference")return[{type:"text",value:"!["+a.alt+o}];const s=n.all(a),f=s[0];f&&f.type==="text"?f.value="["+f.value:s.unshift({type:"text",value:"["});const u=s[s.length-1];return u&&u.type==="text"?u.value+=o:s.push({type:"text",value:o}),s}function Tk(n,a){const r=String(a.identifier).toUpperCase(),o=n.definitionById.get(r);if(!o)return Kd(n,a);const s={src:tr(o.url||""),alt:a.alt};o.title!==null&&o.title!==void 0&&(s.title=o.title);const f={type:"element",tagName:"img",properties:s,children:[]};return n.patch(a,f),n.applyData(a,f)}function Ak(n,a){const r={src:tr(a.url)};a.alt!==null&&a.alt!==void 0&&(r.alt=a.alt),a.title!==null&&a.title!==void 0&&(r.title=a.title);const o={type:"element",tagName:"img",properties:r,children:[]};return n.patch(a,o),n.applyData(a,o)}function Nk(n,a){const r={type:"text",value:a.value.replace(/\r?\n|\r/g," ")};n.patch(a,r);const o={type:"element",tagName:"code",properties:{},children:[r]};return n.patch(a,o),n.applyData(a,o)}function Ck(n,a){const r=String(a.identifier).toUpperCase(),o=n.definitionById.get(r);if(!o)return Kd(n,a);const s={href:tr(o.url||"")};o.title!==null&&o.title!==void 0&&(s.title=o.title);const f={type:"element",tagName:"a",properties:s,children:n.all(a)};return n.patch(a,f),n.applyData(a,f)}function Ok(n,a){const r={href:tr(a.url)};a.title!==null&&a.title!==void 0&&(r.title=a.title);const o={type:"element",tagName:"a",properties:r,children:n.all(a)};return n.patch(a,o),n.applyData(a,o)}function Mk(n,a,r){const o=n.all(a),s=r?Rk(r):Vd(a),f={},u=[];if(typeof a.checked=="boolean"){const b=o[0];let h;b&&b.type==="element"&&b.tagName==="p"?h=b:(h={type:"element",tagName:"p",properties:{},children:[]},o.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:a.checked,disabled:!0},children:[]}),f.className=["task-list-item"]}let g=-1;for(;++g<o.length;){const b=o[g];(s||g!==0||b.type!=="element"||b.tagName!=="p")&&u.push({type:"text",value:`
15
+ `}),b.type==="element"&&b.tagName==="p"&&!s?u.push(...b.children):u.push(b)}const m=o[o.length-1];m&&(s||m.type!=="element"||m.tagName!=="p")&&u.push({type:"text",value:`
16
+ `});const p={type:"element",tagName:"li",properties:f,children:u};return n.patch(a,p),n.applyData(a,p)}function Rk(n){let a=!1;if(n.type==="list"){a=n.spread||!1;const r=n.children;let o=-1;for(;!a&&++o<r.length;)a=Vd(r[o])}return a}function Vd(n){const a=n.spread;return a??n.children.length>1}function Dk(n,a){const r={},o=n.all(a);let s=-1;for(typeof a.start=="number"&&a.start!==1&&(r.start=a.start);++s<o.length;){const u=o[s];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const f={type:"element",tagName:a.ordered?"ol":"ul",properties:r,children:n.wrap(o,!0)};return n.patch(a,f),n.applyData(a,f)}function Lk(n,a){const r={type:"element",tagName:"p",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function zk(n,a){const r={type:"root",children:n.wrap(n.all(a))};return n.patch(a,r),n.applyData(a,r)}function Ik(n,a){const r={type:"element",tagName:"strong",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function Bk(n,a){const r=n.all(a),o=r.shift(),s=[];if(o){const u={type:"element",tagName:"thead",properties:{},children:n.wrap([o],!0)};n.patch(a.children[0],u),s.push(u)}if(r.length>0){const u={type:"element",tagName:"tbody",properties:{},children:n.wrap(r,!0)},g=Vs(a.children[1]),m=pd(a.children[a.children.length-1]);g&&m&&(u.position={start:g,end:m}),s.push(u)}const f={type:"element",tagName:"table",properties:{},children:n.wrap(s,!0)};return n.patch(a,f),n.applyData(a,f)}function Uk(n,a,r){const o=r?r.children:void 0,f=(o?o.indexOf(a):1)===0?"th":"td",u=r&&r.type==="table"?r.align:void 0,g=u?u.length:a.children.length;let m=-1;const p=[];for(;++m<g;){const h=a.children[m],v={},k=u?u[m]:void 0;k&&(v.align=k);let x={type:"element",tagName:f,properties:v,children:[]};h&&(x.children=n.all(h),n.patch(h,x),x=n.applyData(h,x)),p.push(x)}const b={type:"element",tagName:"tr",properties:{},children:n.wrap(p,!0)};return n.patch(a,b),n.applyData(a,b)}function Hk(n,a){const r={type:"element",tagName:"td",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}const $d=9,Zd=32;function qk(n){const a=String(n),r=/\r?\n|\r/g;let o=r.exec(a),s=0;const f=[];for(;o;)f.push(Xd(a.slice(s,o.index),s>0,!0),o[0]),s=o.index+o[0].length,o=r.exec(a);return f.push(Xd(a.slice(s),s>0,!1)),f.join("")}function Xd(n,a,r){let o=0,s=n.length;if(a){let f=n.codePointAt(o);for(;f===$d||f===Zd;)o++,f=n.codePointAt(o)}if(r){let f=n.codePointAt(s-1);for(;f===$d||f===Zd;)s--,f=n.codePointAt(s-1)}return s>o?n.slice(o,s):""}function Fk(n,a){const r={type:"text",value:qk(String(a.value))};return n.patch(a,r),n.applyData(a,r)}function Gk(n,a){const r={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(a,r),n.applyData(a,r)}const jk={blockquote:yk,break:vk,code:kk,delete:Ek,emphasis:_k,footnoteReference:xk,heading:Sk,html:wk,imageReference:Tk,image:Ak,inlineCode:Nk,linkReference:Ck,link:Ok,listItem:Mk,list:Dk,paragraph:Lk,root:zk,strong:Ik,table:Bk,tableCell:Hk,tableRow:Uk,text:Fk,thematicBreak:Gk,toml:eo,yaml:eo,definition:eo,footnoteDefinition:eo};function eo(){}const Qd=-1,to=0,Qr=1,no=2,lc=3,oc=4,sc=5,cc=6,Jd=7,Wd=8,ep=typeof self=="object"?self:globalThis,tp=(n,a)=>{switch(n){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+n)}return new ep[n](a)},Yk=(n,a)=>{const r=(s,f)=>(n.set(f,s),s),o=s=>{if(n.has(s))return n.get(s);const[f,u]=a[s];switch(f){case to:case Qd:return r(u,s);case Qr:{const g=r([],s);for(const m of u)g.push(o(m));return g}case no:{const g=r({},s);for(const[m,p]of u)g[o(m)]=o(p);return g}case lc:return r(new Date(u),s);case oc:{const{source:g,flags:m}=u;return r(new RegExp(g,m),s)}case sc:{const g=r(new Map,s);for(const[m,p]of u)g.set(o(m),o(p));return g}case cc:{const g=r(new Set,s);for(const m of u)g.add(o(m));return g}case Jd:{const{name:g,message:m}=u;return r(typeof ep[g]=="function"?tp(g,m):new Error(m),s)}case Wd:return r(BigInt(u),s);case"BigInt":return r(Object(BigInt(u)),s);case"ArrayBuffer":return r(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:g}=new Uint8Array(u);return r(new DataView(g),u)}}return r(tp(f,u),s)};return o},np=n=>Yk(new Map,n)(0),Ma="",{toString:Pk}={},{keys:Kk}=Object,Jr=n=>{const a=typeof n;if(a!=="object"||!n)return[to,a];const r=Pk.call(n).slice(8,-1);switch(r){case"Array":return[Qr,Ma];case"Object":return[no,Ma];case"Date":return[lc,Ma];case"RegExp":return[oc,Ma];case"Map":return[sc,Ma];case"Set":return[cc,Ma];case"DataView":return[Qr,r]}return r.includes("Array")?[Qr,r]:n instanceof Error?[Jd,n.name||"Error"]:[no,r]},io=([n,a])=>n===to&&(a==="function"||a==="symbol"),Vk=(n,a,r,o)=>{const s=(u,g)=>{const m=o.push(u)-1;return r.set(g,m),m},f=u=>{if(r.has(u))return r.get(u);let[g,m]=Jr(u);switch(g){case to:{let b=u;switch(m){case"bigint":g=Wd,b=u.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+m);b=null;break;case"undefined":return s([Qd],u)}return s([g,b],u)}case Qr:{if(m){let v=u;return m==="DataView"?v=new Uint8Array(u.buffer):m==="ArrayBuffer"&&(v=new Uint8Array(u)),s([m,[...v]],u)}const b=[],h=s([g,b],u);for(const v of u)b.push(f(v));return h}case no:{if(m)switch(m){case"BigInt":return s([m,u.toString()],u);case"Boolean":case"Number":case"String":return s([m,u.valueOf()],u)}if(a&&"toJSON"in u)return f(u.toJSON());const b=[],h=s([g,b],u);for(const v of Kk(u))(n||!io(Jr(u[v])))&&b.push([f(v),f(u[v])]);return h}case lc:return s([g,isNaN(u.getTime())?Ma:u.toISOString()],u);case oc:{const{source:b,flags:h}=u;return s([g,{source:b,flags:h}],u)}case sc:{const b=[],h=s([g,b],u);for(const[v,k]of u)(n||!(io(Jr(v))||io(Jr(k))))&&b.push([f(v),f(k)]);return h}case cc:{const b=[],h=s([g,b],u);for(const v of u)(n||!io(Jr(v)))&&b.push(f(v));return h}}const{message:p}=u;return s([g,{name:m,message:p}],u)};return f},ip=(n,{json:a,lossy:r}={})=>{const o=[];return Vk(!(a||r),!!a,new Map,o)(n),o},ao=typeof structuredClone=="function"?(n,a)=>a&&("json"in a||"lossy"in a)?np(ip(n,a)):structuredClone(n):(n,a)=>np(ip(n,a));function $k(n,a){const r=[{type:"text",value:"↩"}];return a>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(a)}]}),r}function Zk(n,a){return"Back to reference "+(n+1)+(a>1?"-"+a:"")}function Xk(n){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",r=n.options.footnoteBackContent||$k,o=n.options.footnoteBackLabel||Zk,s=n.options.footnoteLabel||"Footnotes",f=n.options.footnoteLabelTagName||"h2",u=n.options.footnoteLabelProperties||{className:["sr-only"]},g=[];let m=-1;for(;++m<n.footnoteOrder.length;){const p=n.footnoteById.get(n.footnoteOrder[m]);if(!p)continue;const b=n.all(p),h=String(p.identifier).toUpperCase(),v=tr(h.toLowerCase());let k=0;const x=[],C=n.footnoteCounts.get(h);for(;C!==void 0&&++k<=C;){x.length>0&&x.push({type:"text",value:" "});let q=typeof r=="string"?r:r(m,k);typeof q=="string"&&(q={type:"text",value:q}),x.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+v+(k>1?"-"+k:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(m,k),className:["data-footnote-backref"]},children:Array.isArray(q)?q:[q]})}const M=b[b.length-1];if(M&&M.type==="element"&&M.tagName==="p"){const q=M.children[M.children.length-1];q&&q.type==="text"?q.value+=" ":M.children.push({type:"text",value:" "}),M.children.push(...x)}else b.push(...x);const w={type:"element",tagName:"li",properties:{id:a+"fn-"+v},children:n.wrap(b,!0)};n.patch(p,w),g.push(w)}if(g.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:f,properties:{...ao(u),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
17
17
  `},{type:"element",tagName:"ol",properties:{},children:n.wrap(g,!0)},{type:"text",value:`
18
- `}]}}const Vr=(function(n){if(n==null)return X0;if(typeof n=="function")return to(n);if(typeof n=="object")return Array.isArray(n)?V0(n):$0(n);if(typeof n=="string")return Z0(n);throw new Error("Expected function, string, or object as test")});function V0(n){const a=[];let r=-1;for(;++r<n.length;)a[r]=Vr(n[r]);return to(o);function o(...s){let f=-1;for(;++f<a.length;)if(a[f].apply(this,s))return!0;return!1}}function $0(n){const a=n;return to(r);function r(o){const s=o;let f;for(f in n)if(s[f]!==a[f])return!1;return!0}}function Z0(n){return to(a);function a(r){return r&&r.type===n}}function to(n){return a;function a(r,o,s){return!!(Q0(r)&&n.call(this,r,typeof o=="number"?o:void 0,s||void 0))}}function X0(){return!0}function Q0(n){return n!==null&&typeof n=="object"&&"type"in n}function wA(n){return n}const np=[],J0=!0,oc=!1,W0="skip";function ip(n,a,r,o){let s;typeof a=="function"&&typeof r!="function"?(o=r,r=a):s=a;const f=Vr(s),u=o?-1:1;g(n,void 0,[])();function g(h,p,b){const m=h&&typeof h=="object"?h:{};if(typeof m.type=="string"){const v=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(E,"name",{value:"node ("+(h.type+(v?"<"+v+">":""))+")"})}return E;function E(){let v=np,x,C,M;if((!a||f(h,p,b[b.length-1]||void 0))&&(v=e_(r(h,b)),v[0]===oc))return v;if("children"in h&&h.children){const w=h;if(w.children&&v[0]!==W0)for(C=(o?w.children.length:-1)+u,M=b.concat(w);C>-1&&C<w.children.length;){const q=w.children[C];if(x=g(q,C,M)(),x[0]===oc)return x;C=typeof x[1]=="number"?x[1]:C+u}}return v}}}function e_(n){return Array.isArray(n)?n:typeof n=="number"?[J0,n]:n==null?np:[n]}function no(n,a,r,o){let s,f,u;typeof a=="function"&&typeof r!="function"?(f=void 0,u=a,s=r):(f=a,u=r,s=o),ip(n,f,g,s);function g(h,p){const b=p[p.length-1],m=b?b.children.indexOf(h):void 0;return u(h,m,b)}}const sc={}.hasOwnProperty,t_={};function n_(n,a){const r=a||t_,o=new Map,s=new Map,f=new Map,u={...H0,...r.handlers},g={all:p,applyData:a_,definitionById:o,footnoteById:s,footnoteCounts:f,footnoteOrder:[],handlers:u,one:h,options:r,patch:i_,wrap:l_};return no(n,function(b){if(b.type==="definition"||b.type==="footnoteDefinition"){const m=b.type==="definition"?o:s,E=String(b.identifier).toUpperCase();m.has(E)||m.set(E,b)}}),g;function h(b,m){const E=b.type,v=g.handlers[E];if(sc.call(g.handlers,E)&&v)return v(g,b,m);if(g.options.passThrough&&g.options.passThrough.includes(E)){if("children"in b){const{children:C,...M}=b,w=eo(M);return w.children=g.all(b),w}return eo(b)}return(g.options.unknownHandler||r_)(g,b,m)}function p(b){const m=[];if("children"in b){const E=b.children;let v=-1;for(;++v<E.length;){const x=g.one(E[v],b);if(x){if(v&&E[v-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=ap(x.value)),!Array.isArray(x)&&x.type==="element")){const C=x.children[0];C&&C.type==="text"&&(C.value=ap(C.value))}Array.isArray(x)?m.push(...x):m.push(x)}}}return m}}function i_(n,a){n.position&&(a.position=eE(n))}function a_(n,a){let r=a;if(n&&n.data){const o=n.data.hName,s=n.data.hChildren,f=n.data.hProperties;if(typeof o=="string")if(r.type==="element")r.tagName=o;else{const u="children"in r?r.children:[r];r={type:"element",tagName:o,properties:{},children:u}}r.type==="element"&&f&&Object.assign(r.properties,eo(f)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function r_(n,a){const r=a.data||{},o="value"in a&&!(sc.call(r,"hProperties")||sc.call(r,"hChildren"))?{type:"text",value:a.value}:{type:"element",tagName:"div",properties:{},children:n.all(a)};return n.patch(a,o),n.applyData(a,o)}function l_(n,a){const r=[];let o=-1;for(a&&r.push({type:"text",value:`
18
+ `}]}}const Wr=(function(n){if(n==null)return eE;if(typeof n=="function")return ro(n);if(typeof n=="object")return Array.isArray(n)?Qk(n):Jk(n);if(typeof n=="string")return Wk(n);throw new Error("Expected function, string, or object as test")});function Qk(n){const a=[];let r=-1;for(;++r<n.length;)a[r]=Wr(n[r]);return ro(o);function o(...s){let f=-1;for(;++f<a.length;)if(a[f].apply(this,s))return!0;return!1}}function Jk(n){const a=n;return ro(r);function r(o){const s=o;let f;for(f in n)if(s[f]!==a[f])return!1;return!0}}function Wk(n){return ro(a);function a(r){return r&&r.type===n}}function ro(n){return a;function a(r,o,s){return!!(tE(r)&&n.call(this,r,typeof o=="number"?o:void 0,s||void 0))}}function eE(){return!0}function tE(n){return n!==null&&typeof n=="object"&&"type"in n}function LA(n){return n}const ap=[],nE=!0,uc=!1,iE="skip";function rp(n,a,r,o){let s;typeof a=="function"&&typeof r!="function"?(o=r,r=a):s=a;const f=Wr(s),u=o?-1:1;g(n,void 0,[])();function g(m,p,b){const h=m&&typeof m=="object"?m:{};if(typeof h.type=="string"){const k=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(m.type+(k?"<"+k+">":""))+")"})}return v;function v(){let k=ap,x,C,M;if((!a||f(m,p,b[b.length-1]||void 0))&&(k=aE(r(m,b)),k[0]===uc))return k;if("children"in m&&m.children){const w=m;if(w.children&&k[0]!==iE)for(C=(o?w.children.length:-1)+u,M=b.concat(w);C>-1&&C<w.children.length;){const q=w.children[C];if(x=g(q,C,M)(),x[0]===uc)return x;C=typeof x[1]=="number"?x[1]:C+u}}return k}}}function aE(n){return Array.isArray(n)?n:typeof n=="number"?[nE,n]:n==null?ap:[n]}function lo(n,a,r,o){let s,f,u;typeof a=="function"&&typeof r!="function"?(f=void 0,u=a,s=r):(f=a,u=r,s=o),rp(n,f,g,s);function g(m,p){const b=p[p.length-1],h=b?b.children.indexOf(m):void 0;return u(m,h,b)}}const fc={}.hasOwnProperty,rE={};function lE(n,a){const r=a||rE,o=new Map,s=new Map,f=new Map,u={...jk,...r.handlers},g={all:p,applyData:sE,definitionById:o,footnoteById:s,footnoteCounts:f,footnoteOrder:[],handlers:u,one:m,options:r,patch:oE,wrap:uE};return lo(n,function(b){if(b.type==="definition"||b.type==="footnoteDefinition"){const h=b.type==="definition"?o:s,v=String(b.identifier).toUpperCase();h.has(v)||h.set(v,b)}}),g;function m(b,h){const v=b.type,k=g.handlers[v];if(fc.call(g.handlers,v)&&k)return k(g,b,h);if(g.options.passThrough&&g.options.passThrough.includes(v)){if("children"in b){const{children:C,...M}=b,w=ao(M);return w.children=g.all(b),w}return ao(b)}return(g.options.unknownHandler||cE)(g,b,h)}function p(b){const h=[];if("children"in b){const v=b.children;let k=-1;for(;++k<v.length;){const x=g.one(v[k],b);if(x){if(k&&v[k-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=lp(x.value)),!Array.isArray(x)&&x.type==="element")){const C=x.children[0];C&&C.type==="text"&&(C.value=lp(C.value))}Array.isArray(x)?h.push(...x):h.push(x)}}}return h}}function oE(n,a){n.position&&(a.position=a0(n))}function sE(n,a){let r=a;if(n&&n.data){const o=n.data.hName,s=n.data.hChildren,f=n.data.hProperties;if(typeof o=="string")if(r.type==="element")r.tagName=o;else{const u="children"in r?r.children:[r];r={type:"element",tagName:o,properties:{},children:u}}r.type==="element"&&f&&Object.assign(r.properties,ao(f)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function cE(n,a){const r=a.data||{},o="value"in a&&!(fc.call(r,"hProperties")||fc.call(r,"hChildren"))?{type:"text",value:a.value}:{type:"element",tagName:"div",properties:{},children:n.all(a)};return n.patch(a,o),n.applyData(a,o)}function uE(n,a){const r=[];let o=-1;for(a&&r.push({type:"text",value:`
19
19
  `});++o<n.length;)o&&r.push({type:"text",value:`
20
20
  `}),r.push(n[o]);return a&&n.length>0&&r.push({type:"text",value:`
21
- `}),r}function ap(n){let a=0,r=n.charCodeAt(a);for(;r===9||r===32;)a++,r=n.charCodeAt(a);return n.slice(a)}function rp(n,a){const r=n_(n,a),o=r.one(n,void 0),s=K0(r),f=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return s&&f.children.push({type:"text",value:`
22
- `},s),f}function o_(n,a){return n&&"run"in n?async function(r,o){const s=rp(r,{file:o,...a});await n.run(s,o)}:function(r,o){return rp(r,{file:o,...n||a})}}function lp(n){if(n)throw n}var cc,op;function s_(){if(op)return cc;op=1;var n=Object.prototype.hasOwnProperty,a=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=function(p){return typeof Array.isArray=="function"?Array.isArray(p):a.call(p)==="[object Array]"},f=function(p){if(!p||a.call(p)!=="[object Object]")return!1;var b=n.call(p,"constructor"),m=p.constructor&&p.constructor.prototype&&n.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!b&&!m)return!1;var E;for(E in p);return typeof E>"u"||n.call(p,E)},u=function(p,b){r&&b.name==="__proto__"?r(p,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):p[b.name]=b.newValue},g=function(p,b){if(b==="__proto__")if(n.call(p,b)){if(o)return o(p,b).value}else return;return p[b]};return cc=function h(){var p,b,m,E,v,x,C=arguments[0],M=1,w=arguments.length,q=!1;for(typeof C=="boolean"&&(q=C,C=arguments[1]||{},M=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});M<w;++M)if(p=arguments[M],p!=null)for(b in p)m=g(C,b),E=g(p,b),C!==E&&(q&&E&&(f(E)||(v=s(E)))?(v?(v=!1,x=m&&s(m)?m:[]):x=m&&f(m)?m:{},u(C,{name:b,newValue:h(q,x,E)})):typeof E<"u"&&u(C,{name:b,newValue:E}));return C},cc}var c_=s_();const uc=Ns(c_);function fc(n){if(typeof n!="object"||n===null)return!1;const a=Object.getPrototypeOf(n);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function u_(){const n=[],a={run:r,use:o};return a;function r(...s){let f=-1;const u=s.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);g(null,...s);function g(h,...p){const b=n[++f];let m=-1;if(h){u(h);return}for(;++m<s.length;)(p[m]===null||p[m]===void 0)&&(p[m]=s[m]);s=p,b?f_(b,g)(...p):u(null,...p)}}function o(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return n.push(s),a}}function f_(n,a){let r;return o;function o(...u){const g=n.length>u.length;let h;g&&u.push(s);try{h=n.apply(this,u)}catch(p){const b=p;if(g&&r)throw b;return s(b)}g||(h&&h.then&&typeof h.then=="function"?h.then(f,s):h instanceof Error?s(h):f(h))}function s(u,...g){r||(r=!0,a(u,...g))}function f(u){s(null,u)}}const gi={basename:d_,dirname:p_,extname:g_,join:h_,sep:"/"};function d_(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');$r(n);let r=0,o=-1,s=n.length,f;if(a===void 0||a.length===0||a.length>n.length){for(;s--;)if(n.codePointAt(s)===47){if(f){r=s+1;break}}else o<0&&(f=!0,o=s+1);return o<0?"":n.slice(r,o)}if(a===n)return"";let u=-1,g=a.length-1;for(;s--;)if(n.codePointAt(s)===47){if(f){r=s+1;break}}else u<0&&(f=!0,u=s+1),g>-1&&(n.codePointAt(s)===a.codePointAt(g--)?g<0&&(o=s):(g=-1,o=u));return r===o?o=u:o<0&&(o=n.length),n.slice(r,o)}function p_(n){if($r(n),n.length===0)return".";let a=-1,r=n.length,o;for(;--r;)if(n.codePointAt(r)===47){if(o){a=r;break}}else o||(o=!0);return a<0?n.codePointAt(0)===47?"/":".":a===1&&n.codePointAt(0)===47?"//":n.slice(0,a)}function g_(n){$r(n);let a=n.length,r=-1,o=0,s=-1,f=0,u;for(;a--;){const g=n.codePointAt(a);if(g===47){if(u){o=a+1;break}continue}r<0&&(u=!0,r=a+1),g===46?s<0?s=a:f!==1&&(f=1):s>-1&&(f=-1)}return s<0||r<0||f===0||f===1&&s===r-1&&s===o+1?"":n.slice(s,r)}function h_(...n){let a=-1,r;for(;++a<n.length;)$r(n[a]),n[a]&&(r=r===void 0?n[a]:r+"/"+n[a]);return r===void 0?".":m_(r)}function m_(n){$r(n);const a=n.codePointAt(0)===47;let r=b_(n,!a);return r.length===0&&!a&&(r="."),r.length>0&&n.codePointAt(n.length-1)===47&&(r+="/"),a?"/"+r:r}function b_(n,a){let r="",o=0,s=-1,f=0,u=-1,g,h;for(;++u<=n.length;){if(u<n.length)g=n.codePointAt(u);else{if(g===47)break;g=47}if(g===47){if(!(s===u-1||f===1))if(s!==u-1&&f===2){if(r.length<2||o!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(h=r.lastIndexOf("/"),h!==r.length-1){h<0?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=u,f=0;continue}}else if(r.length>0){r="",o=0,s=u,f=0;continue}}a&&(r=r.length>0?r+"/..":"..",o=2)}else r.length>0?r+="/"+n.slice(s+1,u):r=n.slice(s+1,u),o=u-s-1;s=u,f=0}else g===46&&f>-1?f++:f=-1}return r}function $r(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const y_={cwd:E_};function E_(){return"/"}function dc(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function v_(n){if(typeof n=="string")n=new URL(n);else if(!dc(n)){const a=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw a.code="ERR_INVALID_ARG_TYPE",a}if(n.protocol!=="file:"){const a=new TypeError("The URL must be of scheme file");throw a.code="ERR_INVALID_URL_SCHEME",a}return __(n)}function __(n){if(n.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const a=n.pathname;let r=-1;for(;++r<a.length;)if(a.codePointAt(r)===37&&a.codePointAt(r+1)===50){const o=a.codePointAt(r+2);if(o===70||o===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(a)}const pc=["history","path","basename","stem","extname","dirname"];class sp{constructor(a){let r;a?dc(a)?r={path:a}:typeof a=="string"||k_(a)?r={value:a}:r=a:r={},this.cwd="cwd"in r?"":y_.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<pc.length;){const f=pc[o];f in r&&r[f]!==void 0&&r[f]!==null&&(this[f]=f==="history"?[...r[f]]:r[f])}let s;for(s in r)pc.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?gi.basename(this.path):void 0}set basename(a){hc(a,"basename"),gc(a,"basename"),this.path=gi.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?gi.dirname(this.path):void 0}set dirname(a){cp(this.basename,"dirname"),this.path=gi.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?gi.extname(this.path):void 0}set extname(a){if(gc(a,"extname"),cp(this.dirname,"extname"),a){if(a.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(a.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=gi.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){dc(a)&&(a=v_(a)),hc(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?gi.basename(this.path,this.extname):void 0}set stem(a){hc(a,"stem"),gc(a,"stem"),this.path=gi.join(this.dirname||"",a+(this.extname||""))}fail(a,r,o){const s=this.message(a,r,o);throw s.fatal=!0,s}info(a,r,o){const s=this.message(a,r,o);return s.fatal=void 0,s}message(a,r,o){const s=new on(a,r,o);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(a){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(a||void 0).decode(this.value)}}function gc(n,a){if(n&&n.includes(gi.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+gi.sep+"`")}function hc(n,a){if(!n)throw new Error("`"+a+"` cannot be empty")}function cp(n,a){if(!n)throw new Error("Setting `"+a+"` requires `path` to be set too")}function k_(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const x_=(function(n){const o=this.constructor.prototype,s=o[n],f=function(){return s.apply(f,arguments)};return Object.setPrototypeOf(f,o),f}),S_={}.hasOwnProperty;class mc extends x_{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=u_()}copy(){const a=new mc;let r=-1;for(;++r<this.attachers.length;){const o=this.attachers[r];a.use(...o)}return a.data(uc(!0,{},this.namespace)),a}data(a,r){return typeof a=="string"?arguments.length===2?(Ec("data",this.frozen),this.namespace[a]=r,this):S_.call(this.namespace,a)&&this.namespace[a]||void 0:a?(Ec("data",this.frozen),this.namespace=a,this):this.namespace}freeze(){if(this.frozen)return this;const a=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const s=r.call(a,...o);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const r=io(a),o=this.parser||this.Parser;return bc("parse",o),o(String(r),r)}process(a,r){const o=this;return this.freeze(),bc("process",this.parser||this.Parser),yc("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(f,u){const g=io(a),h=o.parse(g);o.run(h,g,function(b,m,E){if(b||!m||!E)return p(b);const v=m,x=o.stringify(v,E);A_(x)?E.value=x:E.result=x,p(b,E)});function p(b,m){b||!m?u(b):f?f(m):r(void 0,m)}}}processSync(a){let r=!1,o;return this.freeze(),bc("processSync",this.parser||this.Parser),yc("processSync",this.compiler||this.Compiler),this.process(a,s),fp("processSync","process",r),o;function s(f,u){r=!0,lp(f),o=u}}run(a,r,o){up(a),this.freeze();const s=this.transformers;return!o&&typeof r=="function"&&(o=r,r=void 0),o?f(void 0,o):new Promise(f);function f(u,g){const h=io(r);s.run(a,h,p);function p(b,m,E){const v=m||a;b?g(b):u?u(v):o(void 0,v,E)}}}runSync(a,r){let o=!1,s;return this.run(a,r,f),fp("runSync","run",o),s;function f(u,g){lp(u),s=g,o=!0}}stringify(a,r){this.freeze();const o=io(r),s=this.compiler||this.Compiler;return yc("stringify",s),up(a),s(a,o)}use(a,...r){const o=this.attachers,s=this.namespace;if(Ec("use",this.frozen),a!=null)if(typeof a=="function")h(a,r);else if(typeof a=="object")Array.isArray(a)?g(a):u(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function f(p){if(typeof p=="function")h(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[b,...m]=p;h(b,m)}else u(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function u(p){if(!("plugins"in p)&&!("settings"in p))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");g(p.plugins),p.settings&&(s.settings=uc(!0,s.settings,p.settings))}function g(p){let b=-1;if(p!=null)if(Array.isArray(p))for(;++b<p.length;){const m=p[b];f(m)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function h(p,b){let m=-1,E=-1;for(;++m<o.length;)if(o[m][0]===p){E=m;break}if(E===-1)o.push([p,...b]);else if(b.length>0){let[v,...x]=b;const C=o[E][1];fc(C)&&fc(v)&&(v=uc(!0,C,v)),o[E]=[p,v,...x]}}}}const w_=new mc().freeze();function bc(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function yc(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function Ec(n,a){if(a)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function up(n){if(!fc(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function fp(n,a,r){if(!r)throw new Error("`"+n+"` finished async. Use `"+a+"` instead")}function io(n){return T_(n)?n:new sp(n)}function T_(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function A_(n){return typeof n=="string"||N_(n)}function N_(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const C_="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",dp=[],pp={allowDangerousHtml:!0},O_=/^(https?|ircs?|mailto|xmpp)$/i,M_=[{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 R_(n){const a=D_(n),r=L_(n);return z_(a.runSync(a.parse(r),r),n)}function D_(n){const a=n.rehypePlugins||dp,r=n.remarkPlugins||dp,o=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...pp}:pp;return w_().use(p0).use(r).use(o_,o).use(a)}function L_(n){const a=n.children||"",r=new sp;return typeof a=="string"&&(r.value=a),r}function z_(n,a){const r=a.allowedElements,o=a.allowElement,s=a.components,f=a.disallowedElements,u=a.skipHtml,g=a.unwrapDisallowed,h=a.urlTransform||I_;for(const b of M_)Object.hasOwn(a,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+C_+b.id,void 0);return no(n,p),rE(n,{Fragment:L.Fragment,components:s,ignoreInvalidStyle:!0,jsx:L.jsx,jsxs:L.jsxs,passKeys:!0,passNode:!0});function p(b,m,E){if(b.type==="raw"&&E&&typeof m=="number")return u?E.children.splice(m,1):E.children[m]={type:"text",value:b.value},m;if(b.type==="element"){let v;for(v in Zs)if(Object.hasOwn(Zs,v)&&Object.hasOwn(b.properties,v)){const x=b.properties[v],C=Zs[v];(C===null||C.includes(b.tagName))&&(b.properties[v]=h(String(x||""),v,b))}}if(b.type==="element"){let v=r?!r.includes(b.tagName):f?f.includes(b.tagName):!1;if(!v&&o&&typeof m=="number"&&(v=!o(b,m,E)),v&&E&&typeof m=="number")return g&&b.children?E.children.splice(m,1,...b.children):E.children.splice(m,1),m}}}function I_(n){const a=n.indexOf(":"),r=n.indexOf("?"),o=n.indexOf("#"),s=n.indexOf("/");return a===-1||s!==-1&&a>s||r!==-1&&a>r||o!==-1&&a>o||O_.test(n.slice(0,a))?n:""}const gp=(function(n,a,r){const o=Vr(r);if(!n||!n.type||!n.children)throw new Error("Expected parent node");if(typeof a=="number"){if(a<0||a===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(a=n.children.indexOf(a),a<0)throw new Error("Expected child node or index");for(;++a<n.children.length;)if(o(n.children[a],a,n))return n.children[a]}),xa=(function(n){if(n==null)return H_;if(typeof n=="string")return U_(n);if(typeof n=="object")return B_(n);if(typeof n=="function")return vc(n);throw new Error("Expected function, string, or array as `test`")});function B_(n){const a=[];let r=-1;for(;++r<n.length;)a[r]=xa(n[r]);return vc(o);function o(...s){let f=-1;for(;++f<a.length;)if(a[f].apply(this,s))return!0;return!1}}function U_(n){return vc(a);function a(r){return r.tagName===n}}function vc(n){return a;function a(r,o,s){return!!(q_(r)&&n.call(this,r,typeof o=="number"?o:void 0,s||void 0))}}function H_(n){return!!(n&&typeof n=="object"&&"type"in n&&n.type==="element"&&"tagName"in n&&typeof n.tagName=="string")}function q_(n){return n!==null&&typeof n=="object"&&"type"in n&&"tagName"in n}const hp=/\n/g,mp=/[\t ]+/g,_c=xa("br"),bp=xa($_),F_=xa("p"),yp=xa("tr"),G_=xa(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",V_,Z_]),Ep=xa(["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 j_(n,a){const r=a||{},o="children"in n?n.children:[],s=Ep(n),f=kp(n,{whitespace:r.whitespace||"normal"}),u=[];(n.type==="text"||n.type==="comment")&&u.push(..._p(n,{breakBefore:!0,breakAfter:!0}));let g=-1;for(;++g<o.length;)u.push(...vp(o[g],n,{whitespace:f,breakBefore:g?void 0:s,breakAfter:g<o.length-1?_c(o[g+1]):s}));const h=[];let p;for(g=-1;++g<u.length;){const b=u[g];typeof b=="number"?p!==void 0&&b>p&&(p=b):b&&(p!==void 0&&p>-1&&h.push(`
23
- `.repeat(p)||" "),p=-1,h.push(b))}return h.join("")}function vp(n,a,r){return n.type==="element"?Y_(n,a,r):n.type==="text"?r.whitespace==="normal"?_p(n,r):P_(n):[]}function Y_(n,a,r){const o=kp(n,r),s=n.children||[];let f=-1,u=[];if(G_(n))return u;let g,h;for(_c(n)||yp(n)&&gp(a,n,yp)?h=`
24
- `:F_(n)?(g=2,h=2):Ep(n)&&(g=1,h=1);++f<s.length;)u=u.concat(vp(s[f],n,{whitespace:o,breakBefore:f?void 0:g,breakAfter:f<s.length-1?_c(s[f+1]):h}));return bp(n)&&gp(a,n,bp)&&u.push(" "),g&&u.unshift(g),h&&u.push(h),u}function _p(n,a){const r=String(n.value),o=[],s=[];let f=0;for(;f<=r.length;){hp.lastIndex=f;const h=hp.exec(r),p=h&&"index"in h?h.index:r.length;o.push(K_(r.slice(f,p).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),f===0?a.breakBefore:!0,p===r.length?a.breakAfter:!0)),f=p+1}let u=-1,g;for(;++u<o.length;)o[u].charCodeAt(o[u].length-1)===8203||u<o.length-1&&o[u+1].charCodeAt(0)===8203?(s.push(o[u]),g=void 0):o[u]?(typeof g=="number"&&s.push(g),s.push(o[u]),g=0):(u===0||u===o.length-1)&&s.push(0);return s}function P_(n){return[String(n.value)]}function K_(n,a,r){const o=[];let s=0,f;for(;s<n.length;){mp.lastIndex=s;const u=mp.exec(n);f=u?u.index:n.length,!s&&!f&&u&&!a&&o.push(""),s!==f&&o.push(n.slice(s,f)),s=u?f+u[0].length:f}return s!==f&&!r&&o.push(""),o.join(" ")}function kp(n,a){if(n.type==="element"){const r=n.properties||{};switch(n.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":a.whitespace;case"textarea":return"pre-wrap"}}return a.whitespace}function V_(n){return!!(n.properties||{}).hidden}function $_(n){return n.tagName==="td"||n.tagName==="th"}function Z_(n){return n.tagName==="dialog"&&!(n.properties||{}).open}function X_(n){const a=n.regex,r=n.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",u="(?!struct)("+o+"|"+a.optional(s)+"[a-zA-Z_]\\w*"+a.optional("<[^<>]+>")+")",g={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},p={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},n.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},b={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},m={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},n.inherit(p,{className:"string"}),{className:"string",begin:/<.*?>/},r,n.C_BLOCK_COMMENT_MODE]},E={className:"title",begin:a.optional(s)+n.IDENT_RE,relevance:0},v=a.optional(s)+n.IDENT_RE+"\\s*\\(",x=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],C=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],M=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],w=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],J={type:C,keyword:x,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:M},te={className:"function.dispatch",relevance:0,keywords:{_hint:w},begin:a.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,n.IDENT_RE,a.lookahead(/(<[^<>]+>|)\s*\(/))},D=[te,m,g,r,n.C_BLOCK_COMMENT_MODE,b,p],ce={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:J,contains:D.concat([{begin:/\(/,end:/\)/,keywords:J,contains:D.concat(["self"]),relevance:0}]),relevance:0},ne={className:"function",begin:"("+u+"[\\*&\\s]+)+"+v,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:J,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:o,keywords:J,relevance:0},{begin:v,returnBegin:!0,contains:[E],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[p,b]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:J,relevance:0,contains:[r,n.C_BLOCK_COMMENT_MODE,p,b,g,{begin:/\(/,end:/\)/,keywords:J,relevance:0,contains:["self",r,n.C_BLOCK_COMMENT_MODE,p,b,g]}]},g,r,n.C_BLOCK_COMMENT_MODE,m]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:J,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(ce,ne,te,D,[m,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:J,contains:["self",g]},{begin:n.IDENT_RE+"::",keywords:J},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function Q_(n){const a={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},r=X_(n),o=r.keywords;return o.type=[...o.type,...a.type],o.literal=[...o.literal,...a.literal],o.built_in=[...o.built_in,...a.built_in],o._hints=a._hints,r.name="Arduino",r.aliases=["ino"],r.supersetOf="cpp",r}function J_(n){const a=n.regex,r={},o={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:a.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},o]});const s={className:"subst",begin:/\$\(/,end:/\)/,contains:[n.BACKSLASH_ESCAPE]},f=n.inherit(n.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),u={begin:/<<-?\s*(?=\w+)/,starts:{contains:[n.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},g={className:"string",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,r,s]};s.contains.push(g);const h={match:/\\"/},p={className:"string",begin:/'/,end:/'/},b={match:/\\'/},m={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},n.NUMBER_MODE,r]},E=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],v=n.SHEBANG({binary:`(${E.join("|")})`,relevance:10}),x={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[n.inherit(n.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},C=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],M=["true","false"],w={match:/(\/[a-z._-]+)+/},q=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],H=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],J=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],te=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:C,literal:M,built_in:[...q,...H,"set","shopt",...J,...te]},contains:[v,n.SHEBANG(),x,m,f,u,w,g,h,p,b,r]}}function W_(n){const a=n.regex,r=n.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",u="("+o+"|"+a.optional(s)+"[a-zA-Z_]\\w*"+a.optional("<[^<>]+>")+")",g={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},p={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},n.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},b={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},m={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},n.inherit(p,{className:"string"}),{className:"string",begin:/<.*?>/},r,n.C_BLOCK_COMMENT_MODE]},E={className:"title",begin:a.optional(s)+n.IDENT_RE,relevance:0},v=a.optional(s)+n.IDENT_RE+"\\s*\\(",M={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},w=[m,g,r,n.C_BLOCK_COMMENT_MODE,b,p],q={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:M,contains:w.concat([{begin:/\(/,end:/\)/,keywords:M,contains:w.concat(["self"]),relevance:0}]),relevance:0},H={begin:"("+u+"[\\*&\\s]+)+"+v,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:M,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:o,keywords:M,relevance:0},{begin:v,returnBegin:!0,contains:[n.inherit(E,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:M,relevance:0,contains:[r,n.C_BLOCK_COMMENT_MODE,p,b,g,{begin:/\(/,end:/\)/,keywords:M,relevance:0,contains:["self",r,n.C_BLOCK_COMMENT_MODE,p,b,g]}]},g,r,n.C_BLOCK_COMMENT_MODE,m]};return{name:"C",aliases:["h"],keywords:M,disableAutodetect:!0,illegal:"</",contains:[].concat(q,H,w,[m,{begin:n.IDENT_RE+"::",keywords:M},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},n.TITLE_MODE]}]),exports:{preprocessor:m,strings:p,keywords:M}}}function ek(n){const a=n.regex,r=n.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",u="(?!struct)("+o+"|"+a.optional(s)+"[a-zA-Z_]\\w*"+a.optional("<[^<>]+>")+")",g={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},p={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},n.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},b={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},m={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},n.inherit(p,{className:"string"}),{className:"string",begin:/<.*?>/},r,n.C_BLOCK_COMMENT_MODE]},E={className:"title",begin:a.optional(s)+n.IDENT_RE,relevance:0},v=a.optional(s)+n.IDENT_RE+"\\s*\\(",x=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],C=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],M=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],w=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],J={type:C,keyword:x,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:M},te={className:"function.dispatch",relevance:0,keywords:{_hint:w},begin:a.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,n.IDENT_RE,a.lookahead(/(<[^<>]+>|)\s*\(/))},D=[te,m,g,r,n.C_BLOCK_COMMENT_MODE,b,p],ce={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:J,contains:D.concat([{begin:/\(/,end:/\)/,keywords:J,contains:D.concat(["self"]),relevance:0}]),relevance:0},ne={className:"function",begin:"("+u+"[\\*&\\s]+)+"+v,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:J,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:o,keywords:J,relevance:0},{begin:v,returnBegin:!0,contains:[E],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[p,b]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:J,relevance:0,contains:[r,n.C_BLOCK_COMMENT_MODE,p,b,g,{begin:/\(/,end:/\)/,keywords:J,relevance:0,contains:["self",r,n.C_BLOCK_COMMENT_MODE,p,b,g]}]},g,r,n.C_BLOCK_COMMENT_MODE,m]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:J,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(ce,ne,te,D,[m,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:J,contains:["self",g]},{begin:n.IDENT_RE+"::",keywords:J},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function tk(n){const a=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],r=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],o=["default","false","null","true"],s=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],f=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],u={keyword:s.concat(f),built_in:a,literal:o},g=n.inherit(n.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),h={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},p={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},b={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},m=n.inherit(b,{illegal:/\n/}),E={className:"subst",begin:/\{/,end:/\}/,keywords:u},v=n.inherit(E,{illegal:/\n/}),x={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},n.BACKSLASH_ESCAPE,v]},C={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},E]},M=n.inherit(C,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},v]});E.contains=[C,x,b,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,h,n.C_BLOCK_COMMENT_MODE],v.contains=[M,x,m,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,h,n.inherit(n.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const w={variants:[p,C,x,b,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},q={begin:"<",end:">",contains:[{beginKeywords:"in out"},g]},H=n.IDENT_RE+"(<"+n.IDENT_RE+"(\\s*,\\s*"+n.IDENT_RE+")*>)?(\\[\\])?",J={begin:"@"+n.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:u,illegal:/::/,contains:[n.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},w,h,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},g,q,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[g,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[g,q,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+H+"\\s+)+"+n.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:u,contains:[{beginKeywords:r.join(" "),relevance:0},{begin:n.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[n.TITLE_MODE,q],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,relevance:0,contains:[w,h,n.C_BLOCK_COMMENT_MODE]},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},J]}}const nk=n=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:n.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:n.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),ik=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],ak=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],rk=[...ik,...ak],lk=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),ok=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),sk=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),ck=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function uk(n){const a=n.regex,r=nk(n),o={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},s="and or not only",f=/@-?\w[\w]*(-\w+)*/,u="[a-zA-Z-][a-zA-Z0-9_-]*",g=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[r.BLOCK_COMMENT,o,r.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+u,relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+ok.join("|")+")"},{begin:":(:)?("+sk.join("|")+")"}]},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+ck.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[r.BLOCK_COMMENT,r.HEXCOLOR,r.IMPORTANT,r.CSS_NUMBER_MODE,...g,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...g,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},r.FUNCTION_DISPATCH]},{begin:a.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:f},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:s,attribute:lk.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...g,r.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+rk.join("|")+")\\b"}]}}function fk(n){const a=n.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:a.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:a.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function dk(n){const f={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:f,illegal:"</",contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{className:"string",variants:[n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[n.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:f,illegal:/["']/}]}]}}function pk(n){const a=n.regex,r=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[n.HASH_COMMENT_MODE,n.QUOTE_STRING_MODE,n.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:a.concat(r,a.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function gk(n){const a=n.regex,r={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:n.NUMBER_RE}]},o=n.COMMENT();o.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const s={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},f={className:"literal",begin:/\bon|off|true|false|yes|no\b/},u={className:"string",contains:[n.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},g={begin:/\[/,end:/\]/,contains:[o,f,s,u,r,"self"],relevance:0},h=/[A-Za-z0-9_-]+/,p=/"(\\"|[^"])*"/,b=/'[^']*'/,m=a.either(h,p,b),E=a.concat(m,"(\\s*\\.\\s*",m,")*",a.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[o,{className:"section",begin:/\[+/,end:/\]+/},{begin:E,className:"attr",starts:{end:/$/,contains:[o,g,f,s,u,r]}}]}}var Xa="[0-9](_*[0-9])*",ao=`\\.(${Xa})`,ro="[0-9a-fA-F](_*[0-9a-fA-F])*",xp={className:"number",variants:[{begin:`(\\b(${Xa})((${ao})|\\.)?|(${ao}))[eE][+-]?(${Xa})[fFdD]?\\b`},{begin:`\\b(${Xa})((${ao})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${ao})[fFdD]?\\b`},{begin:`\\b(${Xa})[fFdD]\\b`},{begin:`\\b0[xX]((${ro})\\.?|(${ro})?\\.(${ro}))[pP][+-]?(${Xa})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${ro})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Sp(n,a,r){return r===-1?"":n.replace(a,o=>Sp(n,a,r-1))}function hk(n){const a=n.regex,r="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",o=r+Sp("(?:<"+r+"~~~(?:\\s*,\\s*"+r+"~~~)*>)?",/~~~/g,2),h={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},p={className:"meta",begin:"@"+r,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},b={className:"params",begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[n.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:h,illegal:/<\/|#/,contains:[n.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[n.BACKSLASH_ESCAPE]},n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[a.concat(/(?!else)/,r),/\s+/,r,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,r],className:{1:"keyword",3:"title.class"},contains:[b,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+o+"\\s+)",n.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:h,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[p,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,xp,n.C_BLOCK_COMMENT_MODE]},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},xp,p]}}const wp="[A-Za-z$_][0-9A-Za-z$_]*",mk=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],bk=["true","false","null","undefined","NaN","Infinity"],Tp=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Ap=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Np=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],yk=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Ek=[].concat(Np,Tp,Ap);function vk(n){const a=n.regex,r=(P,{after:ve})=>{const S="</"+P[0].slice(1);return P.input.indexOf(S,ve)!==-1},o=wp,s={begin:"<>",end:"</>"},f=/<[A-Za-z0-9\\._:-]+\s*\/>/,u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(P,ve)=>{const S=P[0].length+P.index,Re=P.input[S];if(Re==="<"||Re===","){ve.ignoreMatch();return}Re===">"&&(r(P,{after:S})||ve.ignoreMatch());let T;const k=P.input.substring(S);if(T=k.match(/^\s*=/)){ve.ignoreMatch();return}if((T=k.match(/^\s+extends\s+/))&&T.index===0){ve.ignoreMatch();return}}},g={$pattern:wp,keyword:mk,literal:bk,built_in:Ek,"variable.language":yk},h="[0-9](_?[0-9])*",p=`\\.(${h})`,b="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",m={className:"number",variants:[{begin:`(\\b(${b})((${p})|\\.)?|(${p}))[eE][+-]?(${h})\\b`},{begin:`\\b(${b})\\b((${p})\\b|\\.)?|(${p})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},E={className:"subst",begin:"\\$\\{",end:"\\}",keywords:g,contains:[]},v={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,E],subLanguage:"xml"}},x={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,E],subLanguage:"css"}},C={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,E],subLanguage:"graphql"}},M={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,E]},q={className:"comment",variants:[n.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:o+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),n.C_BLOCK_COMMENT_MODE,n.C_LINE_COMMENT_MODE]},H=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,v,x,C,M,{match:/\$\d+/},m];E.contains=H.concat({begin:/\{/,end:/\}/,keywords:g,contains:["self"].concat(H)});const J=[].concat(q,E.contains),te=J.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:["self"].concat(J)}]),D={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:te},ce={variants:[{match:[/class/,/\s+/,o,/\s+/,/extends/,/\s+/,a.concat(o,"(",a.concat(/\./,o),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,o],scope:{1:"keyword",3:"title.class"}}]},ne={relevance:0,match:a.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Tp,...Ap]}},fe={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},z={variants:[{match:[/function/,/\s+/,o,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[D],illegal:/%/},oe={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function re(P){return a.concat("(?!",P.join("|"),")")}const ke={match:a.concat(/\b/,re([...Np,"super","import"].map(P=>`${P}\\s*\\(`)),o,a.lookahead(/\s*\(/)),className:"title.function",relevance:0},le={begin:a.concat(/\./,a.lookahead(a.concat(o,/(?![0-9A-Za-z$_(])/))),end:o,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Q={match:[/get|set/,/\s+/,o,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},D]},G="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",j={match:[/const|var|let/,/\s+/,o,/\s*/,/=\s*/,/(async\s*)?/,a.lookahead(G)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[D]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:g,exports:{PARAMS_CONTAINS:te,CLASS_REFERENCE:ne},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),fe,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,v,x,C,M,q,{match:/\$\d+/},m,ne,{scope:"attr",match:o+a.lookahead(":"),relevance:0},j,{begin:"("+n.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[q,n.REGEXP_MODE,{className:"function",begin:G,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:te}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:f},{begin:u.begin,"on:begin":u.isTrulyOpeningTag,end:u.end}],subLanguage:"xml",contains:[{begin:u.begin,end:u.end,skip:!0,contains:["self"]}]}]},z,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+n.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[D,n.inherit(n.TITLE_MODE,{begin:o,className:"title.function"})]},{match:/\.\.\./,relevance:0},le,{match:"\\$"+o,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[D]},ke,oe,ce,Q,{match:/\$[(.]/}]}}function _k(n){const a={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},r={match:/[{}[\],:]/,className:"punctuation",relevance:0},o=["true","false","null"],s={scope:"literal",beginKeywords:o.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:o},contains:[a,r,n.QUOTE_STRING_MODE,s,n.C_NUMBER_MODE,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var Qa="[0-9](_*[0-9])*",lo=`\\.(${Qa})`,oo="[0-9a-fA-F](_*[0-9a-fA-F])*",kk={className:"number",variants:[{begin:`(\\b(${Qa})((${lo})|\\.)?|(${lo}))[eE][+-]?(${Qa})[fFdD]?\\b`},{begin:`\\b(${Qa})((${lo})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${lo})[fFdD]?\\b`},{begin:`\\b(${Qa})[fFdD]\\b`},{begin:`\\b0[xX]((${oo})\\.?|(${oo})?\\.(${oo}))[pP][+-]?(${Qa})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${oo})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function xk(n){const a={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},r={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},o={className:"symbol",begin:n.UNDERSCORE_IDENT_RE+"@"},s={className:"subst",begin:/\$\{/,end:/\}/,contains:[n.C_NUMBER_MODE]},f={className:"variable",begin:"\\$"+n.UNDERSCORE_IDENT_RE},u={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[f,s]},{begin:"'",end:"'",illegal:/\n/,contains:[n.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[n.BACKSLASH_ESCAPE,f,s]}]};s.contains.push(u);const g={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+n.UNDERSCORE_IDENT_RE+")?"},h={className:"meta",begin:"@"+n.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[n.inherit(u,{className:"string"}),"self"]}]},p=kk,b=n.COMMENT("/\\*","\\*/",{contains:[n.C_BLOCK_COMMENT_MODE]}),m={variants:[{className:"type",begin:n.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},E=m;return E.variants[1].contains=[m],m.variants[1].contains=[E],{name:"Kotlin",aliases:["kt","kts"],keywords:a,contains:[n.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),n.C_LINE_COMMENT_MODE,b,r,o,g,h,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:a,relevance:5,contains:[{begin:n.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[n.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:a,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[m,n.C_LINE_COMMENT_MODE,b],relevance:0},n.C_LINE_COMMENT_MODE,b,g,h,u,n.C_NUMBER_MODE]},b]},{begin:[/class|interface|trait/,/\s+/,n.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},n.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},g,h]},u,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
25
- `},p]}}const Sk=n=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:n.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:n.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),wk=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Tk=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Ak=[...wk,...Tk],Nk=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Cp=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Op=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Ck=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),Ok=Cp.concat(Op).sort().reverse();function Mk(n){const a=Sk(n),r=Ok,o="and or not only",s="[\\w-]+",f="("+s+"|@\\{"+s+"\\})",u=[],g=[],h=function(H){return{className:"string",begin:"~?"+H+".*?"+H}},p=function(H,J,te){return{className:H,begin:J,relevance:te}},b={$pattern:/[a-z-]+/,keyword:o,attribute:Nk.join(" ")},m={begin:"\\(",end:"\\)",contains:g,keywords:b,relevance:0};g.push(n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,h("'"),h('"'),a.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},a.HEXCOLOR,m,p("variable","@@?"+s,10),p("variable","@\\{"+s+"\\}"),p("built_in","~?`[^`]*?`"),{className:"attribute",begin:s+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},a.IMPORTANT,{beginKeywords:"and not"},a.FUNCTION_DISPATCH);const E=g.concat({begin:/\{/,end:/\}/,contains:u}),v={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(g)},x={begin:f+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},a.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Ck.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:g}}]},C={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:b,returnEnd:!0,contains:g,relevance:0}},M={className:"variable",variants:[{begin:"@"+s+"\\s*:",relevance:15},{begin:"@"+s}],starts:{end:"[;}]",returnEnd:!0,contains:E}},w={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:f,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,v,p("keyword","all\\b"),p("variable","@\\{"+s+"\\}"),{begin:"\\b("+Ak.join("|")+")\\b",className:"selector-tag"},a.CSS_NUMBER_MODE,p("selector-tag",f,0),p("selector-id","#"+f),p("selector-class","\\."+f,0),p("selector-tag","&",0),a.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+Cp.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+Op.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:E},{begin:"!important"},a.FUNCTION_DISPATCH]},q={begin:s+`:(:)?(${r.join("|")})`,returnBegin:!0,contains:[w]};return u.push(n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,C,M,q,x,w,v,a.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:u}}function Rk(n){const a="\\[=*\\[",r="\\]=*\\]",o={begin:a,end:r,contains:["self"]},s=[n.COMMENT("--(?!"+a+")","$"),n.COMMENT("--"+a,r,{contains:[o],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:n.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:s.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[n.inherit(n.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:s}].concat(s)},n.C_NUMBER_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,{className:"string",begin:a,end:r,contains:[o],relevance:5}])}}function Dk(n){const a={className:"variable",variants:[{begin:"\\$\\("+n.UNDERSCORE_IDENT_RE+"\\)",contains:[n.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},r={className:"string",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,a]},o={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[a,r]},s={begin:"^"+n.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},f={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},u={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[a]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[n.HASH_COMMENT_MODE,a,r,o,s,f,u]}}function Lk(n){const a=n.regex,r={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},o={begin:"^[-\\*]{3,}",end:"$"},s={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},f={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},u={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},g=/[A-Za-z][A-Za-z0-9+.-]*/,h={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:a.concat(/\[.+?\]\(/,g,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},p={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},b={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},m=n.inherit(p,{contains:[]}),E=n.inherit(b,{contains:[]});p.contains.push(E),b.contains.push(m);let v=[r,h];return[p,b,m,E].forEach(w=>{w.contains=w.contains.concat(v)}),v=v.concat(p,b),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:v},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:v}]}]},r,f,p,b,{className:"quote",begin:"^>\\s+",contains:v,end:"$"},s,o,h,u,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function zk(n){const a={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},r=/[a-zA-Z@][a-zA-Z0-9_]*/,g={"variable.language":["this","super"],$pattern:r,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},h={$pattern:r,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:g,illegal:"</",contains:[a,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.C_NUMBER_MODE,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},n.inherit(n.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+h.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:h,contains:[n.UNDERSCORE_TITLE_MODE]},{begin:"\\."+n.UNDERSCORE_IDENT_RE,relevance:0}]}}function Ik(n){const a=n.regex,r=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],o=/[dualxmsipngr]{0,12}/,s={$pattern:/[\w.]+/,keyword:r.join(" ")},f={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:s},u={begin:/->\{/,end:/\}/},g={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},h={scope:"variable",variants:[{begin:/\$\d/},{begin:a.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[g]},p={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},b=[n.BACKSLASH_ESCAPE,f,h],m=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],E=(C,M,w="\\1")=>{const q=w==="\\1"?w:a.concat(w,M);return a.concat(a.concat("(?:",C,")"),M,/(?:\\.|[^\\\/])*?/,q,/(?:\\.|[^\\\/])*?/,w,o)},v=(C,M,w)=>a.concat(a.concat("(?:",C,")"),M,/(?:\\.|[^\\\/])*?/,w,o),x=[h,n.HASH_COMMENT_MODE,n.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),u,{className:"string",contains:b,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[n.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},p,{begin:"(\\/\\/|"+n.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[n.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:E("s|tr|y",a.either(...m,{capture:!0}))},{begin:E("s|tr|y","\\(","\\)")},{begin:E("s|tr|y","\\[","\\]")},{begin:E("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:v("(?:m|qr)?",/\//,/\//)},{begin:v("m|qr",a.either(...m,{capture:!0}),/\1/)},{begin:v("m|qr",/\(/,/\)/)},{begin:v("m|qr",/\[/,/\]/)},{begin:v("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[n.TITLE_MODE,g]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[n.TITLE_MODE,g,p]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return f.contains=x,u.contains=x,{name:"Perl",aliases:["pl","pm"],keywords:s,contains:x}}function Bk(n){const a=n.regex,r=/(?![A-Za-z0-9])(?![$])/,o=a.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,r),s=a.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,r),f=a.concat(/[A-Z]+/,r),u={scope:"variable",match:"\\$+"+o},g={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},h={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},p=n.inherit(n.APOS_STRING_MODE,{illegal:null}),b=n.inherit(n.QUOTE_STRING_MODE,{illegal:null,contains:n.QUOTE_STRING_MODE.contains.concat(h)}),m={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:n.QUOTE_STRING_MODE.contains.concat(h),"on:begin":(le,Q)=>{Q.data._beginMatch=le[1]||le[2]},"on:end":(le,Q)=>{Q.data._beginMatch!==le[1]&&Q.ignoreMatch()}},E=n.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),v=`[
26
- ]`,x={scope:"string",variants:[b,p,m,E]},C={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},M=["false","null","true"],w=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],q=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],J={keyword:w,literal:(le=>{const Q=[];return le.forEach(G=>{Q.push(G),G.toLowerCase()===G?Q.push(G.toUpperCase()):Q.push(G.toLowerCase())}),Q})(M),built_in:q},te=le=>le.map(Q=>Q.replace(/\|\d+$/,"")),D={variants:[{match:[/new/,a.concat(v,"+"),a.concat("(?!",te(q).join("\\b|"),"\\b)"),s],scope:{1:"keyword",4:"title.class"}}]},ce=a.concat(o,"\\b(?!\\()"),ne={variants:[{match:[a.concat(/::/,a.lookahead(/(?!class\b)/)),ce],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[s,a.concat(/::/,a.lookahead(/(?!class\b)/)),ce],scope:{1:"title.class",3:"variable.constant"}},{match:[s,a.concat("::",a.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[s,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},fe={scope:"attr",match:a.concat(o,a.lookahead(":"),a.lookahead(/(?!::)/))},z={relevance:0,begin:/\(/,end:/\)/,keywords:J,contains:[fe,u,ne,n.C_BLOCK_COMMENT_MODE,x,C,D]},oe={relevance:0,match:[/\b/,a.concat("(?!fn\\b|function\\b|",te(w).join("\\b|"),"|",te(q).join("\\b|"),"\\b)"),o,a.concat(v,"*"),a.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[z]};z.contains.push(oe);const re=[fe,ne,n.C_BLOCK_COMMENT_MODE,x,C,D],ke={begin:a.concat(/#\[\s*\\?/,a.either(s,f)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:M,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:M,keyword:["new","array"]},contains:["self",...re]},...re,{scope:"meta",variants:[{match:s},{match:f}]}]};return{case_insensitive:!1,keywords:J,contains:[ke,n.HASH_COMMENT_MODE,n.COMMENT("//","$"),n.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:n.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},g,{scope:"variable.language",match:/\$this\b/},u,oe,ne,{match:[/const/,/\s/,o],scope:{1:"keyword",3:"variable.constant"}},D,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},n.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:J,contains:["self",ke,u,ne,n.C_BLOCK_COMMENT_MODE,x,C]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},n.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[n.inherit(n.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},n.UNDERSCORE_TITLE_MODE]},x,C]}}function Uk(n){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},n.inherit(n.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),n.inherit(n.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function Hk(n){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function qk(n){const a=n.regex,r=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),o=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],g={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:o,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},h={className:"meta",begin:/^(>>>|\.\.\.) /},p={className:"subst",begin:/\{/,end:/\}/,keywords:g,illegal:/#/},b={begin:/\{\{/,relevance:0},m={className:"string",contains:[n.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[n.BACKSLASH_ESCAPE,h],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[n.BACKSLASH_ESCAPE,h],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[n.BACKSLASH_ESCAPE,h,b,p]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[n.BACKSLASH_ESCAPE,h,b,p]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[n.BACKSLASH_ESCAPE,b,p]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,b,p]},n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},E="[0-9](_?[0-9])*",v=`(\\b(${E}))?\\.(${E})|\\b(${E})\\.`,x=`\\b|${o.join("|")}`,C={className:"number",relevance:0,variants:[{begin:`(\\b(${E})|(${v}))[eE][+-]?(${E})[jJ]?(?=${x})`},{begin:`(${v})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${x})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${x})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${x})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${x})`},{begin:`\\b(${E})[jJ](?=${x})`}]},M={className:"comment",begin:a.lookahead(/# type:/),end:/$/,keywords:g,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},w={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:["self",h,C,m,n.HASH_COMMENT_MODE]}]};return p.contains=[m,C,h],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:g,illegal:/(<\/|\?)|=>/,contains:[h,C,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},m,M,n.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[w]},{variants:[{match:[/\bclass/,/\s+/,r,/\s*/,/\(\s*/,r,/\s*\)/]},{match:[/\bclass/,/\s+/,r]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[C,w,m]}]}}function Fk(n){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function Gk(n){const a=n.regex,r=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,o=a.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),s=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,f=a.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:r,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[n.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:a.lookahead(a.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:r},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),n.HASH_COMMENT_MODE,{scope:"string",contains:[n.BACKSLASH_ESCAPE],variants:[n.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),n.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),n.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),n.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),n.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),n.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[s,o]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,o]},{scope:{1:"punctuation",2:"number"},match:[f,o]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,o]}]},{scope:{3:"operator"},match:[r,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:s},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:f},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function jk(n){const a=n.regex,r="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",o=a.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),s=a.concat(o,/(::\w+)*/),u={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},g={className:"doctag",begin:"@[A-Za-z]+"},h={begin:"#<",end:">"},p=[n.COMMENT("#","$",{contains:[g]}),n.COMMENT("^=begin","^=end",{contains:[g],relevance:10}),n.COMMENT("^__END__",n.MATCH_NOTHING_RE)],b={className:"subst",begin:/#\{/,end:/\}/,keywords:u},m={className:"string",contains:[n.BACKSLASH_ESCAPE,b],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:a.concat(/<<[-~]?'?/,a.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[n.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[n.BACKSLASH_ESCAPE,b]})]}]},E="[1-9](_?[0-9])*|0",v="[0-9](_?[0-9])*",x={className:"number",relevance:0,variants:[{begin:`\\b(${E})(\\.(${v}))?([eE][+-]?(${v})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},C={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:u}]},D=[m,{variants:[{match:[/class\s+/,s,/\s+<\s+/,s]},{match:[/\b(class|module)\s+/,s]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:u},{match:[/(include|extend)\s+/,s],scope:{2:"title.class"},keywords:u},{relevance:0,match:[s,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:o,scope:"title.class"},{match:[/def/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[C]},{begin:n.IDENT_RE+"::"},{className:"symbol",begin:n.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[m,{begin:r}],relevance:0},x,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:u},{begin:"("+n.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[n.BACKSLASH_ESCAPE,b],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(h,p),relevance:0}].concat(h,p);b.contains=D,C.contains=D;const z=[{begin:/^\s*=>/,starts:{end:"$",contains:D}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:u,contains:D}}];return p.unshift(h),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:u,illegal:/\/\*/,contains:[n.SHEBANG({binary:"ruby"})].concat(z).concat(p).concat(D)}}function Yk(n){const a=n.regex,r=/(r#)?/,o=a.concat(r,n.UNDERSCORE_IDENT_RE),s=a.concat(r,n.IDENT_RE),f={className:"title.function.invoke",relevance:0,begin:a.concat(/\b/,/(?!let|for|while|if|else|match\b)/,s,a.lookahead(/\s*\(/))},u="([ui](8|16|32|64|128|size)|f(32|64))?",g=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],h=["true","false","Some","None","Ok","Err"],p=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],b=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:n.IDENT_RE+"!?",type:b,keyword:g,literal:h,built_in:p},illegal:"</",contains:[n.C_LINE_COMMENT_MODE,n.COMMENT("/\\*","\\*/",{contains:["self"]}),n.inherit(n.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+u},{begin:"\\b0o([0-7_]+)"+u},{begin:"\\b0x([A-Fa-f0-9_]+)"+u},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+u}],relevance:0},{begin:[/fn/,/\s+/,o],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,o],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,o,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,o],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,o],className:{1:"keyword",3:"title.class"}},{begin:n.IDENT_RE+"::",keywords:{keyword:"Self",built_in:p,type:b}},{className:"punctuation",begin:"->"},f]}}const Pk=n=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:n.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:n.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Kk=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Vk=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],$k=[...Kk,...Vk],Zk=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Xk=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Qk=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Jk=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function Wk(n){const a=Pk(n),r=Qk,o=Xk,s="@[a-z-]+",f="and or not only",g={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,a.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},a.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+$k.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+o.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+r.join("|")+")"},g,{begin:/\(/,end:/\)/,contains:[a.CSS_NUMBER_MODE]},a.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Jk.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[a.BLOCK_COMMENT,g,a.HEXCOLOR,a.CSS_NUMBER_MODE,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,a.IMPORTANT,a.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:s,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:f,attribute:Zk.join(" ")},contains:[{begin:s,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},g,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,a.HEXCOLOR,a.CSS_NUMBER_MODE]},a.FUNCTION_DISPATCH]}}function e1(n){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function t1(n){const a=n.regex,r=n.COMMENT("--","$"),o={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},s={begin:/"/,end:/"/,contains:[{match:/""/}]},f=["true","false","unknown"],u=["double precision","large object","with timezone","without timezone"],g=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],h=["add","asc","collation","desc","final","first","last","view"],p=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],b=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],m=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],E=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],v=b,x=[...p,...h].filter(te=>!b.includes(te)),C={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},M={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},w={match:a.concat(/\b/,a.either(...v),/\s*\(/),relevance:0,keywords:{built_in:v}};function q(te){return a.concat(/\b/,a.either(...te.map(D=>D.replace(/\s+/,"\\s+"))),/\b/)}const H={scope:"keyword",match:q(E),relevance:0};function J(te,{exceptions:D,when:ce}={}){const ne=ce;return D=D||[],te.map(fe=>fe.match(/\|\d+$/)||D.includes(fe)?fe:ne(fe)?`${fe}|0`:fe)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:J(x,{when:te=>te.length<3}),literal:f,type:g,built_in:m},contains:[{scope:"type",match:q(u)},H,w,C,o,s,n.C_NUMBER_MODE,n.C_BLOCK_COMMENT_MODE,r,M]}}function Mp(n){return n?typeof n=="string"?n:n.source:null}function Zr(n){return ut("(?=",n,")")}function ut(...n){return n.map(r=>Mp(r)).join("")}function n1(n){const a=n[n.length-1];return typeof a=="object"&&a.constructor===Object?(n.splice(n.length-1,1),a):{}}function mn(...n){return"("+(n1(n).capture?"":"?:")+n.map(o=>Mp(o)).join("|")+")"}const kc=n=>ut(/\b/,n,/\w$/.test(n)?/\b/:/\B/),i1=["Protocol","Type"].map(kc),Rp=["init","self"].map(kc),a1=["Any","Self"],xc=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],Dp=["false","nil","true"],r1=["assignment","associativity","higherThan","left","lowerThan","none","right"],l1=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],Lp=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],zp=mn(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),Ip=mn(zp,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Sc=ut(zp,Ip,"*"),Bp=mn(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),so=mn(Bp,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),hi=ut(Bp,so,"*"),co=ut(/[A-Z]/,so,"*"),o1=["attached","autoclosure",ut(/convention\(/,mn("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",ut(/objc\(/,hi,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],s1=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function c1(n){const a={match:/\s+/,relevance:0},r=n.COMMENT("/\\*","\\*/",{contains:["self"]}),o=[n.C_LINE_COMMENT_MODE,r],s={match:[/\./,mn(...i1,...Rp)],className:{2:"keyword"}},f={match:ut(/\./,mn(...xc)),relevance:0},u=xc.filter(Pe=>typeof Pe=="string").concat(["_|0"]),g=xc.filter(Pe=>typeof Pe!="string").concat(a1).map(kc),h={variants:[{className:"keyword",match:mn(...g,...Rp)}]},p={$pattern:mn(/\b\w+/,/#\w+/),keyword:u.concat(l1),literal:Dp},b=[s,f,h],m={match:ut(/\./,mn(...Lp)),relevance:0},E={className:"built_in",match:ut(/\b/,mn(...Lp),/(?=\()/)},v=[m,E],x={match:/->/,relevance:0},C={className:"operator",relevance:0,variants:[{match:Sc},{match:`\\.(\\.|${Ip})+`}]},M=[x,C],w="([0-9]_*)+",q="([0-9a-fA-F]_*)+",H={className:"number",relevance:0,variants:[{match:`\\b(${w})(\\.(${w}))?([eE][+-]?(${w}))?\\b`},{match:`\\b0x(${q})(\\.(${q}))?([pP][+-]?(${w}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},J=(Pe="")=>({className:"subst",variants:[{match:ut(/\\/,Pe,/[0\\tnr"']/)},{match:ut(/\\/,Pe,/u\{[0-9a-fA-F]{1,8}\}/)}]}),te=(Pe="")=>({className:"subst",match:ut(/\\/,Pe,/[\t ]*(?:[\r\n]|\r\n)/)}),D=(Pe="")=>({className:"subst",label:"interpol",begin:ut(/\\/,Pe,/\(/),end:/\)/}),ce=(Pe="")=>({begin:ut(Pe,/"""/),end:ut(/"""/,Pe),contains:[J(Pe),te(Pe),D(Pe)]}),ne=(Pe="")=>({begin:ut(Pe,/"/),end:ut(/"/,Pe),contains:[J(Pe),D(Pe)]}),fe={className:"string",variants:[ce(),ce("#"),ce("##"),ce("###"),ne(),ne("#"),ne("##"),ne("###")]},z=[n.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[n.BACKSLASH_ESCAPE]}],oe={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:z},re=Pe=>{const Jt=ut(Pe,/\//),Bn=ut(/\//,Pe);return{begin:Jt,end:Bn,contains:[...z,{scope:"comment",begin:`#(?!.*${Bn})`,end:/$/}]}},ke={scope:"regexp",variants:[re("###"),re("##"),re("#"),oe]},le={match:ut(/`/,hi,/`/)},Q={className:"variable",match:/\$\d+/},G={className:"variable",match:`\\$${so}+`},j=[le,Q,G],P={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:s1,contains:[...M,H,fe]}]}},ve={scope:"keyword",match:ut(/@/,mn(...o1),Zr(mn(/\(/,/\s+/)))},S={scope:"meta",match:ut(/@/,hi)},Re=[P,ve,S],T={match:Zr(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:ut(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,so,"+")},{className:"type",match:co,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:ut(/\s+&\s+/,Zr(co)),relevance:0}]},k={begin:/</,end:/>/,keywords:p,contains:[...o,...b,...Re,x,T]};T.contains.push(k);const W={match:ut(hi,/\s*:/),keywords:"_|0",relevance:0},de={begin:/\(/,end:/\)/,relevance:0,keywords:p,contains:["self",W,...o,ke,...b,...v,...M,H,fe,...j,...Re,T]},Ee={begin:/</,end:/>/,keywords:"repeat each",contains:[...o,T]},Me={begin:mn(Zr(ut(hi,/\s*:/)),Zr(ut(hi,/\s+/,hi,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:hi}]},xe={begin:/\(/,end:/\)/,keywords:p,contains:[Me,...o,...b,...M,H,fe,...Re,T,de],endsParent:!0,illegal:/["']/},ft={match:[/(func|macro)/,/\s+/,mn(le.match,hi,Sc)],className:{1:"keyword",3:"title.function"},contains:[Ee,xe,a],illegal:[/\[/,/%/]},ze={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Ee,xe,a],illegal:/\[|%/},un={match:[/operator/,/\s+/,Sc],className:{1:"keyword",3:"title"}},zn={begin:[/precedencegroup/,/\s+/,co],className:{1:"keyword",3:"title"},contains:[T],keywords:[...r1,...Dp],end:/}/},Xn={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},In={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},Qt={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,hi,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:p,contains:[Ee,...b,{begin:/:/,end:/\{/,keywords:p,contains:[{scope:"title.class.inherited",match:co},...b],relevance:0}]};for(const Pe of fe.variants){const Jt=Pe.contains.find(bn=>bn.label==="interpol");Jt.keywords=p;const Bn=[...b,...v,...M,H,fe,...j];Jt.contains=[...Bn,{begin:/\(/,end:/\)/,contains:["self",...Bn]}]}return{name:"Swift",keywords:p,contains:[...o,ft,ze,Xn,In,Qt,un,zn,{beginKeywords:"import",end:/$/,contains:[...o],relevance:0},ke,...b,...v,...M,H,fe,...j,...Re,T,de]}}const uo="[A-Za-z$_][0-9A-Za-z$_]*",Up=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Hp=["true","false","null","undefined","NaN","Infinity"],qp=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Fp=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Gp=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],jp=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Yp=[].concat(Gp,qp,Fp);function u1(n){const a=n.regex,r=(P,{after:ve})=>{const S="</"+P[0].slice(1);return P.input.indexOf(S,ve)!==-1},o=uo,s={begin:"<>",end:"</>"},f=/<[A-Za-z0-9\\._:-]+\s*\/>/,u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(P,ve)=>{const S=P[0].length+P.index,Re=P.input[S];if(Re==="<"||Re===","){ve.ignoreMatch();return}Re===">"&&(r(P,{after:S})||ve.ignoreMatch());let T;const k=P.input.substring(S);if(T=k.match(/^\s*=/)){ve.ignoreMatch();return}if((T=k.match(/^\s+extends\s+/))&&T.index===0){ve.ignoreMatch();return}}},g={$pattern:uo,keyword:Up,literal:Hp,built_in:Yp,"variable.language":jp},h="[0-9](_?[0-9])*",p=`\\.(${h})`,b="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",m={className:"number",variants:[{begin:`(\\b(${b})((${p})|\\.)?|(${p}))[eE][+-]?(${h})\\b`},{begin:`\\b(${b})\\b((${p})\\b|\\.)?|(${p})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},E={className:"subst",begin:"\\$\\{",end:"\\}",keywords:g,contains:[]},v={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,E],subLanguage:"xml"}},x={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,E],subLanguage:"css"}},C={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,E],subLanguage:"graphql"}},M={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,E]},q={className:"comment",variants:[n.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:o+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),n.C_BLOCK_COMMENT_MODE,n.C_LINE_COMMENT_MODE]},H=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,v,x,C,M,{match:/\$\d+/},m];E.contains=H.concat({begin:/\{/,end:/\}/,keywords:g,contains:["self"].concat(H)});const J=[].concat(q,E.contains),te=J.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:["self"].concat(J)}]),D={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:te},ce={variants:[{match:[/class/,/\s+/,o,/\s+/,/extends/,/\s+/,a.concat(o,"(",a.concat(/\./,o),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,o],scope:{1:"keyword",3:"title.class"}}]},ne={relevance:0,match:a.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...qp,...Fp]}},fe={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},z={variants:[{match:[/function/,/\s+/,o,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[D],illegal:/%/},oe={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function re(P){return a.concat("(?!",P.join("|"),")")}const ke={match:a.concat(/\b/,re([...Gp,"super","import"].map(P=>`${P}\\s*\\(`)),o,a.lookahead(/\s*\(/)),className:"title.function",relevance:0},le={begin:a.concat(/\./,a.lookahead(a.concat(o,/(?![0-9A-Za-z$_(])/))),end:o,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Q={match:[/get|set/,/\s+/,o,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},D]},G="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",j={match:[/const|var|let/,/\s+/,o,/\s*/,/=\s*/,/(async\s*)?/,a.lookahead(G)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[D]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:g,exports:{PARAMS_CONTAINS:te,CLASS_REFERENCE:ne},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),fe,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,v,x,C,M,q,{match:/\$\d+/},m,ne,{scope:"attr",match:o+a.lookahead(":"),relevance:0},j,{begin:"("+n.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[q,n.REGEXP_MODE,{className:"function",begin:G,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:te}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:f},{begin:u.begin,"on:begin":u.isTrulyOpeningTag,end:u.end}],subLanguage:"xml",contains:[{begin:u.begin,end:u.end,skip:!0,contains:["self"]}]}]},z,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+n.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[D,n.inherit(n.TITLE_MODE,{begin:o,className:"title.function"})]},{match:/\.\.\./,relevance:0},le,{match:"\\$"+o,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[D]},ke,oe,ce,Q,{match:/\$[(.]/}]}}function f1(n){const a=n.regex,r=u1(n),o=uo,s=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],f={begin:[/namespace/,/\s+/,n.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},u={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:s},contains:[r.exports.CLASS_REFERENCE]},g={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},h=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],p={$pattern:uo,keyword:Up.concat(h),literal:Hp,built_in:Yp.concat(s),"variable.language":jp},b={className:"meta",begin:"@"+o},m=(C,M,w)=>{const q=C.contains.findIndex(H=>H.label===M);if(q===-1)throw new Error("can not find mode to replace");C.contains.splice(q,1,w)};Object.assign(r.keywords,p),r.exports.PARAMS_CONTAINS.push(b);const E=r.contains.find(C=>C.scope==="attr"),v=Object.assign({},E,{match:a.concat(o,a.lookahead(/\s*\?:/))});r.exports.PARAMS_CONTAINS.push([r.exports.CLASS_REFERENCE,E,v]),r.contains=r.contains.concat([b,f,u,v]),m(r,"shebang",n.SHEBANG()),m(r,"use_strict",g);const x=r.contains.find(C=>C.label==="func.def");return x.relevance=0,Object.assign(r,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),r}function d1(n){const a=n.regex,r={className:"string",begin:/"(""|[^/n])"C\b/},o={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},s=/\d{1,2}\/\d{1,2}\/\d{4}/,f=/\d{4}-\d{1,2}-\d{1,2}/,u=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,g=/\d{1,2}(:\d{1,2}){1,2}/,h={className:"literal",variants:[{begin:a.concat(/# */,a.either(f,s),/ *#/)},{begin:a.concat(/# */,g,/ *#/)},{begin:a.concat(/# */,u,/ *#/)},{begin:a.concat(/# */,a.either(f,s),/ +/,a.either(u,g),/ *#/)}]},p={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},b={className:"label",begin:/^\w+:/},m=n.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),E=n.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[r,o,h,p,b,m,E,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[E]}]}}function p1(n){n.regex;const a=n.COMMENT(/\(;/,/;\)/);a.contains.push("self");const r=n.COMMENT(/;;/,/$/),o=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],s={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},f={className:"variable",begin:/\$[\w_]+/},u={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},g={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},h={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},p={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:o},contains:[r,a,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},f,u,s,n.QUOTE_STRING_MODE,h,p,g]}}function g1(n){const a=n.regex,r=a.concat(/[\p{L}_]/u,a.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),o=/[\p{L}0-9._:-]+/u,s={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},f={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},u=n.inherit(f,{begin:/\(/,end:/\)/}),g=n.inherit(n.APOS_STRING_MODE,{className:"string"}),h=n.inherit(n.QUOTE_STRING_MODE,{className:"string"}),p={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:o,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[s]},{begin:/'/,end:/'/,contains:[s]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[f,h,g,u,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[f,u,h,g]}]}]},n.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[h]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[p],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[p],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:a.concat(/</,a.lookahead(a.concat(r,a.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:p}]},{className:"tag",begin:a.concat(/<\//,a.lookahead(a.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function h1(n){const a="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",o={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},s={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},f={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},u={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[n.BACKSLASH_ESCAPE,s]},g=n.inherit(u,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),E={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},v={end:",",endsWithParent:!0,excludeEnd:!0,keywords:a,relevance:0},x={begin:/\{/,end:/\}/,contains:[v],illegal:"\\n",relevance:0},C={begin:"\\[",end:"\\]",contains:[v],illegal:"\\n",relevance:0},M=[o,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+r},{className:"type",begin:"!<"+r+">"},{className:"type",begin:"!"+r},{className:"type",begin:"!!"+r},{className:"meta",begin:"&"+n.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+n.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},n.HASH_COMMENT_MODE,{beginKeywords:a,keywords:{literal:a}},E,{className:"number",begin:n.C_NUMBER_RE+"\\b",relevance:0},x,C,f,u],w=[...M];return w.pop(),w.push(g),v.contains=w,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:M}}const m1={arduino:Q_,bash:J_,c:W_,cpp:ek,csharp:tk,css:uk,diff:fk,go:dk,graphql:pk,ini:gk,java:hk,javascript:vk,json:_k,kotlin:xk,less:Mk,lua:Rk,makefile:Dk,markdown:Lk,objectivec:zk,perl:Ik,php:Bk,"php-template":Uk,plaintext:Hk,python:qk,"python-repl":Fk,r:Gk,ruby:jk,rust:Yk,scss:Wk,shell:e1,sql:t1,swift:c1,typescript:f1,vbnet:d1,wasm:p1,xml:g1,yaml:h1};var wc,Pp;function b1(){if(Pp)return wc;Pp=1;function n(N){return N instanceof Map?N.clear=N.delete=N.set=function(){throw new Error("map is read-only")}:N instanceof Set&&(N.add=N.clear=N.delete=function(){throw new Error("set is read-only")}),Object.freeze(N),Object.getOwnPropertyNames(N).forEach(V=>{const ee=N[V],Ae=typeof ee;(Ae==="object"||Ae==="function")&&!Object.isFrozen(ee)&&n(ee)}),N}class a{constructor(V){V.data===void 0&&(V.data={}),this.data=V.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(N){return N.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function o(N,...V){const ee=Object.create(null);for(const Ae in N)ee[Ae]=N[Ae];return V.forEach(function(Ae){for(const dt in Ae)ee[dt]=Ae[dt]}),ee}const s="</span>",f=N=>!!N.scope,u=(N,{prefix:V})=>{if(N.startsWith("language:"))return N.replace("language:","language-");if(N.includes(".")){const ee=N.split(".");return[`${V}${ee.shift()}`,...ee.map((Ae,dt)=>`${Ae}${"_".repeat(dt+1)}`)].join(" ")}return`${V}${N}`};class g{constructor(V,ee){this.buffer="",this.classPrefix=ee.classPrefix,V.walk(this)}addText(V){this.buffer+=r(V)}openNode(V){if(!f(V))return;const ee=u(V.scope,{prefix:this.classPrefix});this.span(ee)}closeNode(V){f(V)&&(this.buffer+=s)}value(){return this.buffer}span(V){this.buffer+=`<span class="${V}">`}}const h=(N={})=>{const V={children:[]};return Object.assign(V,N),V};class p{constructor(){this.rootNode=h(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(V){this.top.children.push(V)}openNode(V){const ee=h({scope:V});this.add(ee),this.stack.push(ee)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(V){return this.constructor._walk(V,this.rootNode)}static _walk(V,ee){return typeof ee=="string"?V.addText(ee):ee.children&&(V.openNode(ee),ee.children.forEach(Ae=>this._walk(V,Ae)),V.closeNode(ee)),V}static _collapse(V){typeof V!="string"&&V.children&&(V.children.every(ee=>typeof ee=="string")?V.children=[V.children.join("")]:V.children.forEach(ee=>{p._collapse(ee)}))}}class b extends p{constructor(V){super(),this.options=V}addText(V){V!==""&&this.add(V)}startScope(V){this.openNode(V)}endScope(){this.closeNode()}__addSublanguage(V,ee){const Ae=V.root;ee&&(Ae.scope=`language:${ee}`),this.add(Ae)}toHTML(){return new g(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function m(N){return N?typeof N=="string"?N:N.source:null}function E(N){return C("(?=",N,")")}function v(N){return C("(?:",N,")*")}function x(N){return C("(?:",N,")?")}function C(...N){return N.map(ee=>m(ee)).join("")}function M(N){const V=N[N.length-1];return typeof V=="object"&&V.constructor===Object?(N.splice(N.length-1,1),V):{}}function w(...N){return"("+(M(N).capture?"":"?:")+N.map(Ae=>m(Ae)).join("|")+")"}function q(N){return new RegExp(N.toString()+"|").exec("").length-1}function H(N,V){const ee=N&&N.exec(V);return ee&&ee.index===0}const J=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function te(N,{joinWith:V}){let ee=0;return N.map(Ae=>{ee+=1;const dt=ee;let tt=m(Ae),he="";for(;tt.length>0;){const pe=J.exec(tt);if(!pe){he+=tt;break}he+=tt.substring(0,pe.index),tt=tt.substring(pe.index+pe[0].length),pe[0][0]==="\\"&&pe[1]?he+="\\"+String(Number(pe[1])+dt):(he+=pe[0],pe[0]==="("&&ee++)}return he}).map(Ae=>`(${Ae})`).join(V)}const D=/\b\B/,ce="[a-zA-Z]\\w*",ne="[a-zA-Z_]\\w*",fe="\\b\\d+(\\.\\d+)?",z="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",oe="\\b(0b[01]+)",re="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ke=(N={})=>{const V=/^#![ ]*\//;return N.binary&&(N.begin=C(V,/.*\b/,N.binary,/\b.*/)),o({scope:"meta",begin:V,end:/$/,relevance:0,"on:begin":(ee,Ae)=>{ee.index!==0&&Ae.ignoreMatch()}},N)},le={begin:"\\\\[\\s\\S]",relevance:0},Q={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[le]},G={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[le]},j={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},P=function(N,V,ee={}){const Ae=o({scope:"comment",begin:N,end:V,contains:[]},ee);Ae.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const dt=w("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Ae.contains.push({begin:C(/[ ]+/,"(",dt,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Ae},ve=P("//","$"),S=P("/\\*","\\*/"),Re=P("#","$"),T={scope:"number",begin:fe,relevance:0},k={scope:"number",begin:z,relevance:0},W={scope:"number",begin:oe,relevance:0},de={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[le,{begin:/\[/,end:/\]/,relevance:0,contains:[le]}]},Ee={scope:"title",begin:ce,relevance:0},Me={scope:"title",begin:ne,relevance:0},xe={begin:"\\.\\s*"+ne,relevance:0};var ze=Object.freeze({__proto__:null,APOS_STRING_MODE:Q,BACKSLASH_ESCAPE:le,BINARY_NUMBER_MODE:W,BINARY_NUMBER_RE:oe,COMMENT:P,C_BLOCK_COMMENT_MODE:S,C_LINE_COMMENT_MODE:ve,C_NUMBER_MODE:k,C_NUMBER_RE:z,END_SAME_AS_BEGIN:function(N){return Object.assign(N,{"on:begin":(V,ee)=>{ee.data._beginMatch=V[1]},"on:end":(V,ee)=>{ee.data._beginMatch!==V[1]&&ee.ignoreMatch()}})},HASH_COMMENT_MODE:Re,IDENT_RE:ce,MATCH_NOTHING_RE:D,METHOD_GUARD:xe,NUMBER_MODE:T,NUMBER_RE:fe,PHRASAL_WORDS_MODE:j,QUOTE_STRING_MODE:G,REGEXP_MODE:de,RE_STARTERS_RE:re,SHEBANG:ke,TITLE_MODE:Ee,UNDERSCORE_IDENT_RE:ne,UNDERSCORE_TITLE_MODE:Me});function un(N,V){N.input[N.index-1]==="."&&V.ignoreMatch()}function zn(N,V){N.className!==void 0&&(N.scope=N.className,delete N.className)}function Xn(N,V){V&&N.beginKeywords&&(N.begin="\\b("+N.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",N.__beforeBegin=un,N.keywords=N.keywords||N.beginKeywords,delete N.beginKeywords,N.relevance===void 0&&(N.relevance=0))}function In(N,V){Array.isArray(N.illegal)&&(N.illegal=w(...N.illegal))}function Qt(N,V){if(N.match){if(N.begin||N.end)throw new Error("begin & end are not supported with match");N.begin=N.match,delete N.match}}function Pe(N,V){N.relevance===void 0&&(N.relevance=1)}const Jt=(N,V)=>{if(!N.beforeMatch)return;if(N.starts)throw new Error("beforeMatch cannot be used with starts");const ee=Object.assign({},N);Object.keys(N).forEach(Ae=>{delete N[Ae]}),N.keywords=ee.keywords,N.begin=C(ee.beforeMatch,E(ee.begin)),N.starts={relevance:0,contains:[Object.assign(ee,{endsParent:!0})]},N.relevance=0,delete ee.beforeMatch},Bn=["of","and","for","in","not","or","if","then","parent","list","value"],bn="keyword";function yn(N,V,ee=bn){const Ae=Object.create(null);return typeof N=="string"?dt(ee,N.split(" ")):Array.isArray(N)?dt(ee,N):Object.keys(N).forEach(function(tt){Object.assign(Ae,yn(N[tt],V,tt))}),Ae;function dt(tt,he){V&&(he=he.map(pe=>pe.toLowerCase())),he.forEach(function(pe){const Ce=pe.split("|");Ae[Ce[0]]=[tt,Vt(Ce[0],Ce[1])]})}}function Vt(N,V){return V?Number(V):Bt(N)?0:1}function Bt(N){return Bn.includes(N.toLowerCase())}const xn={},Un=N=>{console.error(N)},Ut=(N,...V)=>{console.log(`WARN: ${N}`,...V)},Y=(N,V)=>{xn[`${N}/${V}`]||(console.log(`Deprecated as of ${N}. ${V}`),xn[`${N}/${V}`]=!0)},ae=new Error;function Te(N,V,{key:ee}){let Ae=0;const dt=N[ee],tt={},he={};for(let pe=1;pe<=V.length;pe++)he[pe+Ae]=dt[pe],tt[pe+Ae]=!0,Ae+=q(V[pe-1]);N[ee]=he,N[ee]._emit=tt,N[ee]._multi=!0}function Ie(N){if(Array.isArray(N.begin)){if(N.skip||N.excludeBegin||N.returnBegin)throw Un("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ae;if(typeof N.beginScope!="object"||N.beginScope===null)throw Un("beginScope must be object"),ae;Te(N,N.begin,{key:"beginScope"}),N.begin=te(N.begin,{joinWith:""})}}function We(N){if(Array.isArray(N.end)){if(N.skip||N.excludeEnd||N.returnEnd)throw Un("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ae;if(typeof N.endScope!="object"||N.endScope===null)throw Un("endScope must be object"),ae;Te(N,N.end,{key:"endScope"}),N.end=te(N.end,{joinWith:""})}}function $t(N){N.scope&&typeof N.scope=="object"&&N.scope!==null&&(N.beginScope=N.scope,delete N.scope)}function fn(N){$t(N),typeof N.beginScope=="string"&&(N.beginScope={_wrap:N.beginScope}),typeof N.endScope=="string"&&(N.endScope={_wrap:N.endScope}),Ie(N),We(N)}function dn(N){function V(he,pe){return new RegExp(m(he),"m"+(N.case_insensitive?"i":"")+(N.unicodeRegex?"u":"")+(pe?"g":""))}class ee{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(pe,Ce){Ce.position=this.position++,this.matchIndexes[this.matchAt]=Ce,this.regexes.push([Ce,pe]),this.matchAt+=q(pe)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const pe=this.regexes.map(Ce=>Ce[1]);this.matcherRe=V(te(pe,{joinWith:"|"}),!0),this.lastIndex=0}exec(pe){this.matcherRe.lastIndex=this.lastIndex;const Ce=this.matcherRe.exec(pe);if(!Ce)return null;const Ct=Ce.findIndex((qn,xi)=>xi>0&&qn!==void 0),xt=this.matchIndexes[Ct];return Ce.splice(0,Ct),Object.assign(Ce,xt)}}class Ae{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(pe){if(this.multiRegexes[pe])return this.multiRegexes[pe];const Ce=new ee;return this.rules.slice(pe).forEach(([Ct,xt])=>Ce.addRule(Ct,xt)),Ce.compile(),this.multiRegexes[pe]=Ce,Ce}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(pe,Ce){this.rules.push([pe,Ce]),Ce.type==="begin"&&this.count++}exec(pe){const Ce=this.getMatcher(this.regexIndex);Ce.lastIndex=this.lastIndex;let Ct=Ce.exec(pe);if(this.resumingScanAtSamePosition()&&!(Ct&&Ct.index===this.lastIndex)){const xt=this.getMatcher(0);xt.lastIndex=this.lastIndex+1,Ct=xt.exec(pe)}return Ct&&(this.regexIndex+=Ct.position+1,this.regexIndex===this.count&&this.considerAll()),Ct}}function dt(he){const pe=new Ae;return he.contains.forEach(Ce=>pe.addRule(Ce.begin,{rule:Ce,type:"begin"})),he.terminatorEnd&&pe.addRule(he.terminatorEnd,{type:"end"}),he.illegal&&pe.addRule(he.illegal,{type:"illegal"}),pe}function tt(he,pe){const Ce=he;if(he.isCompiled)return Ce;[zn,Qt,fn,Jt].forEach(xt=>xt(he,pe)),N.compilerExtensions.forEach(xt=>xt(he,pe)),he.__beforeBegin=null,[Xn,In,Pe].forEach(xt=>xt(he,pe)),he.isCompiled=!0;let Ct=null;return typeof he.keywords=="object"&&he.keywords.$pattern&&(he.keywords=Object.assign({},he.keywords),Ct=he.keywords.$pattern,delete he.keywords.$pattern),Ct=Ct||/\w+/,he.keywords&&(he.keywords=yn(he.keywords,N.case_insensitive)),Ce.keywordPatternRe=V(Ct,!0),pe&&(he.begin||(he.begin=/\B|\b/),Ce.beginRe=V(Ce.begin),!he.end&&!he.endsWithParent&&(he.end=/\B|\b/),he.end&&(Ce.endRe=V(Ce.end)),Ce.terminatorEnd=m(Ce.end)||"",he.endsWithParent&&pe.terminatorEnd&&(Ce.terminatorEnd+=(he.end?"|":"")+pe.terminatorEnd)),he.illegal&&(Ce.illegalRe=V(he.illegal)),he.contains||(he.contains=[]),he.contains=[].concat(...he.contains.map(function(xt){return Nt(xt==="self"?he:xt)})),he.contains.forEach(function(xt){tt(xt,Ce)}),he.starts&&tt(he.starts,pe),Ce.matcher=dt(Ce),Ce}if(N.compilerExtensions||(N.compilerExtensions=[]),N.contains&&N.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return N.classNameAliases=o(N.classNameAliases||{}),tt(N)}function pn(N){return N?N.endsWithParent||pn(N.starts):!1}function Nt(N){return N.variants&&!N.cachedVariants&&(N.cachedVariants=N.variants.map(function(V){return o(N,{variants:null},V)})),N.cachedVariants?N.cachedVariants:pn(N)?o(N,{starts:N.starts?o(N.starts):null}):Object.isFrozen(N)?o(N):N}var et="11.11.1";class kt extends Error{constructor(V,ee){super(V),this.name="HTMLInjectionError",this.html=ee}}const Wt=r,Yi=o,tr=Symbol("nomatch"),wa=7,En=function(N){const V=Object.create(null),ee=Object.create(null),Ae=[];let dt=!0;const tt="Could not find the language '{}', did you forget to load/include a language module?",he={disableAutodetect:!0,name:"Plain text",contains:[]};let pe={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:b};function Ce($){return pe.noHighlightRe.test($)}function Ct($){let ge=$.className+" ";ge+=$.parentNode?$.parentNode.className:"";const Ue=pe.languageDetectRe.exec(ge);if(Ue){const He=Sn(Ue[1]);return He||(Ut(tt.replace("{}",Ue[1])),Ut("Falling back to no-highlight mode for this block.",$)),He?Ue[1]:"no-highlight"}return ge.split(/\s+/).find(He=>Ce(He)||Sn(He))}function xt($,ge,Ue){let He="",Et="";typeof ge=="object"?(He=$,Ue=ge.ignoreIllegals,Et=ge.language):(Y("10.7.0","highlight(lang, code, ...args) has been deprecated."),Y("10.7.0",`Please use highlight(code, options) instead.
27
- https://github.com/highlightjs/highlight.js/issues/2277`),Et=$,He=ge),Ue===void 0&&(Ue=!0);const Yt={code:He,language:Et};je("before:highlight",Yt);const Ht=Yt.result?Yt.result:qn(Yt.language,Yt.code,Ue);return Ht.code=Yt.code,je("after:highlight",Ht),Ht}function qn($,ge,Ue,He){const Et=Object.create(null);function Yt(se,me){return se.keywords[me]}function Ht(){if(!De.keywords){Pt.addText(ot);return}let se=0;De.keywordPatternRe.lastIndex=0;let me=De.keywordPatternRe.exec(ot),qe="";for(;me;){qe+=ot.substring(se,me.index);const it=Tn.case_insensitive?me[0].toLowerCase():me[0],Mt=Yt(De,it);if(Mt){const[gn,Eo]=Mt;if(Pt.addText(qe),qe="",Et[it]=(Et[it]||0)+1,Et[it]<=wa&&(Ca+=Eo),gn.startsWith("_"))qe+=me[0];else{const il=Tn.classNameAliases[gn]||gn;Ot(me[0],il)}}else qe+=me[0];se=De.keywordPatternRe.lastIndex,me=De.keywordPatternRe.exec(ot)}qe+=ot.substring(se),Pt.addText(qe)}function ci(){if(ot==="")return;let se=null;if(typeof De.subLanguage=="string"){if(!V[De.subLanguage]){Pt.addText(ot);return}se=qn(De.subLanguage,ot,!0,Si[De.subLanguage]),Si[De.subLanguage]=se._top}else se=Pi(ot,De.subLanguage.length?De.subLanguage:null);De.relevance>0&&(Ca+=se.relevance),Pt.__addSublanguage(se._emitter,se.language)}function St(){De.subLanguage!=null?ci():Ht(),ot=""}function Ot(se,me){se!==""&&(Pt.startScope(me),Pt.addText(se),Pt.endScope())}function Wr(se,me){let qe=1;const it=me.length-1;for(;qe<=it;){if(!se._emit[qe]){qe++;continue}const Mt=Tn.classNameAliases[se[qe]]||se[qe],gn=me[qe];Mt?Ot(gn,Mt):(ot=gn,Ht(),ot=""),qe++}}function bo(se,me){return se.scope&&typeof se.scope=="string"&&Pt.openNode(Tn.classNameAliases[se.scope]||se.scope),se.beginScope&&(se.beginScope._wrap?(Ot(ot,Tn.classNameAliases[se.beginScope._wrap]||se.beginScope._wrap),ot=""):se.beginScope._multi&&(Wr(se.beginScope,me),ot="")),De=Object.create(se,{parent:{value:De}}),De}function nr(se,me,qe){let it=H(se.endRe,qe);if(it){if(se["on:end"]){const Mt=new a(se);se["on:end"](me,Mt),Mt.isMatchIgnored&&(it=!1)}if(it){for(;se.endsParent&&se.parent;)se=se.parent;return se}}if(se.endsWithParent)return nr(se.parent,me,qe)}function yo(se){return De.matcher.regexIndex===0?(ot+=se[0],1):(nl=!0,0)}function ir(se){const me=se[0],qe=se.rule,it=new a(qe),Mt=[qe.__beforeBegin,qe["on:begin"]];for(const gn of Mt)if(gn&&(gn(se,it),it.isMatchIgnored))return yo(me);return qe.skip?ot+=me:(qe.excludeBegin&&(ot+=me),St(),!qe.returnBegin&&!qe.excludeBegin&&(ot=me)),bo(qe,se),qe.returnBegin?0:me.length}function Ic(se){const me=se[0],qe=ge.substring(se.index),it=nr(De,se,qe);if(!it)return tr;const Mt=De;De.endScope&&De.endScope._wrap?(St(),Ot(me,De.endScope._wrap)):De.endScope&&De.endScope._multi?(St(),Wr(De.endScope,se)):Mt.skip?ot+=me:(Mt.returnEnd||Mt.excludeEnd||(ot+=me),St(),Mt.excludeEnd&&(ot=me));do De.scope&&Pt.closeNode(),!De.skip&&!De.subLanguage&&(Ca+=De.relevance),De=De.parent;while(De!==it.parent);return it.starts&&bo(it.starts,se),Mt.returnEnd?0:me.length}function wn(){const se=[];for(let me=De;me!==Tn;me=me.parent)me.scope&&se.unshift(me.scope);se.forEach(me=>Pt.openNode(me))}let $i={};function el(se,me){const qe=me&&me[0];if(ot+=se,qe==null)return St(),0;if($i.type==="begin"&&me.type==="end"&&$i.index===me.index&&qe===""){if(ot+=ge.slice(me.index,me.index+1),!dt){const it=new Error(`0 width match regex (${$})`);throw it.languageName=$,it.badRule=$i.rule,it}return 1}if($i=me,me.type==="begin")return ir(me);if(me.type==="illegal"&&!Ue){const it=new Error('Illegal lexeme "'+qe+'" for mode "'+(De.scope||"<unnamed>")+'"');throw it.mode=De,it}else if(me.type==="end"){const it=Ic(me);if(it!==tr)return it}if(me.type==="illegal"&&qe==="")return ot+=`
28
- `,1;if(tl>1e5&&tl>me.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ot+=qe,qe.length}const Tn=Sn($);if(!Tn)throw Un(tt.replace("{}",$)),new Error('Unknown language: "'+$+'"');const Zi=dn(Tn);let ar="",De=He||Zi;const Si={},Pt=new pe.__emitter(pe);wn();let ot="",Ca=0,ui=0,tl=0,nl=!1;try{if(Tn.__emitTokens)Tn.__emitTokens(ge,Pt);else{for(De.matcher.considerAll();;){tl++,nl?nl=!1:De.matcher.considerAll(),De.matcher.lastIndex=ui;const se=De.matcher.exec(ge);if(!se)break;const me=ge.substring(ui,se.index),qe=el(me,se);ui=se.index+qe}el(ge.substring(ui))}return Pt.finalize(),ar=Pt.toHTML(),{language:$,value:ar,relevance:Ca,illegal:!1,_emitter:Pt,_top:De}}catch(se){if(se.message&&se.message.includes("Illegal"))return{language:$,value:Wt(ge),illegal:!0,relevance:0,_illegalBy:{message:se.message,index:ui,context:ge.slice(ui-100,ui+100),mode:se.mode,resultSoFar:ar},_emitter:Pt};if(dt)return{language:$,value:Wt(ge),illegal:!1,relevance:0,errorRaised:se,_emitter:Pt,_top:De};throw se}}function xi($){const ge={value:Wt($),illegal:!1,relevance:0,_top:he,_emitter:new pe.__emitter(pe)};return ge._emitter.addText($),ge}function Pi($,ge){ge=ge||pe.languages||Object.keys(V);const Ue=xi($),He=ge.filter(Sn).filter(si).map(St=>qn(St,$,!1));He.unshift(Ue);const Et=He.sort((St,Ot)=>{if(St.relevance!==Ot.relevance)return Ot.relevance-St.relevance;if(St.language&&Ot.language){if(Sn(St.language).supersetOf===Ot.language)return 1;if(Sn(Ot.language).supersetOf===St.language)return-1}return 0}),[Yt,Ht]=Et,ci=Yt;return ci.secondBest=Ht,ci}function Ta($,ge,Ue){const He=ge&&ee[ge]||Ue;$.classList.add("hljs"),$.classList.add(`language-${He}`)}function Zt($){let ge=null;const Ue=Ct($);if(Ce(Ue))return;if(je("before:highlightElement",{el:$,language:Ue}),$.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",$);return}if($.children.length>0&&(pe.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn($)),pe.throwUnescapedHTML))throw new kt("One of your code blocks includes unescaped HTML.",$.innerHTML);ge=$;const He=ge.textContent,Et=Ue?xt(He,{language:Ue,ignoreIllegals:!0}):Pi(He);$.innerHTML=Et.value,$.dataset.highlighted="yes",Ta($,Ue,Et.language),$.result={language:Et.language,re:Et.relevance,relevance:Et.relevance},Et.secondBest&&($.secondBest={language:Et.secondBest.language,relevance:Et.secondBest.relevance}),je("after:highlightElement",{el:$,result:Et,text:He})}function nt($){pe=Yi(pe,$)}const _t=()=>{Vi(),Y("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function li(){Vi(),Y("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Ki=!1;function Vi(){function $(){Vi()}if(document.readyState==="loading"){Ki||window.addEventListener("DOMContentLoaded",$,!1),Ki=!0;return}document.querySelectorAll(pe.cssSelector).forEach(Zt)}function Aa($,ge){let Ue=null;try{Ue=ge(N)}catch(He){if(Un("Language definition for '{}' could not be registered.".replace("{}",$)),dt)Un(He);else throw He;Ue=he}Ue.name||(Ue.name=$),V[$]=Ue,Ue.rawDefinition=ge.bind(null,N),Ue.aliases&&oi(Ue.aliases,{languageName:$})}function Na($){delete V[$];for(const ge of Object.keys(ee))ee[ge]===$&&delete ee[ge]}function en(){return Object.keys(V)}function Sn($){return $=($||"").toLowerCase(),V[$]||V[ee[$]]}function oi($,{languageName:ge}){typeof $=="string"&&($=[$]),$.forEach(Ue=>{ee[Ue.toLowerCase()]=ge})}function si($){const ge=Sn($);return ge&&!ge.disableAutodetect}function ue($){$["before:highlightBlock"]&&!$["before:highlightElement"]&&($["before:highlightElement"]=ge=>{$["before:highlightBlock"](Object.assign({block:ge.el},ge))}),$["after:highlightBlock"]&&!$["after:highlightElement"]&&($["after:highlightElement"]=ge=>{$["after:highlightBlock"](Object.assign({block:ge.el},ge))})}function Ge($){ue($),Ae.push($)}function we($){const ge=Ae.indexOf($);ge!==-1&&Ae.splice(ge,1)}function je($,ge){const Ue=$;Ae.forEach(function(He){He[Ue]&&He[Ue](ge)})}function pt($){return Y("10.7.0","highlightBlock will be removed entirely in v12.0"),Y("10.7.0","Please use highlightElement now."),Zt($)}Object.assign(N,{highlight:xt,highlightAuto:Pi,highlightAll:Vi,highlightElement:Zt,highlightBlock:pt,configure:nt,initHighlighting:_t,initHighlightingOnLoad:li,registerLanguage:Aa,unregisterLanguage:Na,listLanguages:en,getLanguage:Sn,registerAliases:oi,autoDetection:si,inherit:Yi,addPlugin:Ge,removePlugin:we}),N.debugMode=function(){dt=!1},N.safeMode=function(){dt=!0},N.versionString=et,N.regex={concat:C,lookahead:E,either:w,optional:x,anyNumberOfTimes:v};for(const $ in ze)typeof ze[$]=="object"&&n(ze[$]);return Object.assign(N,ze),N},Hn=En({});return Hn.newInstance=()=>En({}),wc=Hn,Hn.HighlightJS=Hn,Hn.default=Hn,wc}var y1=b1();const E1=Ns(y1),Kp={},v1="hljs-";function _1(n){const a=E1.newInstance();return n&&f(n),{highlight:r,highlightAuto:o,listLanguages:s,register:f,registerAlias:u,registered:g};function r(h,p,b){const m=b||Kp,E=typeof m.prefix=="string"?m.prefix:v1;if(!a.getLanguage(h))throw new Error("Unknown language: `"+h+"` is not registered");a.configure({__emitter:k1,classPrefix:E});const v=a.highlight(p,{ignoreIllegals:!0,language:h});if(v.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:v.errorRaised});const x=v._emitter.root,C=x.data;return C.language=v.language,C.relevance=v.relevance,x}function o(h,p){const m=(p||Kp).subset||s();let E=-1,v=0,x;for(;++E<m.length;){const C=m[E];if(!a.getLanguage(C))continue;const M=r(C,h,p);M.data&&M.data.relevance!==void 0&&M.data.relevance>v&&(v=M.data.relevance,x=M)}return x||{type:"root",children:[],data:{language:void 0,relevance:v}}}function s(){return a.listLanguages()}function f(h,p){if(typeof h=="string")a.registerLanguage(h,p);else{let b;for(b in h)Object.hasOwn(h,b)&&a.registerLanguage(b,h[b])}}function u(h,p){if(typeof h=="string")a.registerAliases(typeof p=="string"?p:[...p],{languageName:h});else{let b;for(b in h)if(Object.hasOwn(h,b)){const m=h[b];a.registerAliases(typeof m=="string"?m:[...m],{languageName:b})}}}function g(h){return!!a.getLanguage(h)}}class k1{constructor(a){this.options=a,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(a){if(a==="")return;const r=this.stack[this.stack.length-1],o=r.children[r.children.length-1];o&&o.type==="text"?o.value+=a:r.children.push({type:"text",value:a})}startScope(a){this.openNode(String(a))}endScope(){this.closeNode()}__addSublanguage(a,r){const o=this.stack[this.stack.length-1],s=a.root.children;r?o.children.push({type:"element",tagName:"span",properties:{className:[r]},children:s}):o.children.push(...s)}openNode(a){const r=this,o=a.split(".").map(function(u,g){return g?u+"_".repeat(g):r.options.classPrefix+u}),s=this.stack[this.stack.length-1],f={type:"element",tagName:"span",properties:{className:o},children:[]};s.children.push(f),this.stack.push(f)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const x1={};function S1(n){const a=n||x1,r=a.aliases,o=a.detect||!1,s=a.languages||m1,f=a.plainText,u=a.prefix,g=a.subset;let h="hljs";const p=_1(s);if(r&&p.registerAlias(r),u){const b=u.indexOf("-");h=b===-1?u:u.slice(0,b)}return function(b,m){no(b,"element",function(E,v,x){if(E.tagName!=="code"||!x||x.type!=="element"||x.tagName!=="pre")return;const C=w1(E);if(C===!1||!C&&!o||C&&f&&f.includes(C))return;Array.isArray(E.properties.className)||(E.properties.className=[]),E.properties.className.includes(h)||E.properties.className.unshift(h);const M=j_(E,{whitespace:"pre"});let w;try{w=C?p.highlight(C,M,{prefix:u}):p.highlightAuto(M,{prefix:u,subset:g})}catch(q){const H=q;if(C&&/Unknown language/.test(H.message)){m.message("Cannot highlight as `"+C+"`, it’s not registered",{ancestors:[x,E],cause:H,place:E.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw H}!C&&w.data&&w.data.language&&E.properties.className.push("language-"+w.data.language),w.children.length>0&&(E.children=w.children)})}}function w1(n){const a=n.properties.className;let r=-1;if(!Array.isArray(a))return;let o;for(;++r<a.length;){const s=String(a[r]);if(s==="no-highlight"||s==="nohighlight")return!1;!o&&s.slice(0,5)==="lang-"&&(o=s.slice(5)),!o&&s.slice(0,9)==="language-"&&(o=s.slice(9))}return o}function Vp(n,a){const r=String(n);if(typeof a!="string")throw new TypeError("Expected character");let o=0,s=r.indexOf(a);for(;s!==-1;)o++,s=r.indexOf(a,s+a.length);return o}function T1(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function A1(n,a,r){const s=Vr((r||{}).ignore||[]),f=N1(a);let u=-1;for(;++u<f.length;)ip(n,"text",g);function g(p,b){let m=-1,E;for(;++m<b.length;){const v=b[m],x=E?E.children:void 0;if(s(v,x?x.indexOf(v):void 0,E))return;E=v}if(E)return h(p,b)}function h(p,b){const m=b[b.length-1],E=f[u][0],v=f[u][1];let x=0;const M=m.children.indexOf(p);let w=!1,q=[];E.lastIndex=0;let H=E.exec(p.value);for(;H;){const J=H.index,te={index:H.index,input:H.input,stack:[...b,p]};let D=v(...H,te);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?E.lastIndex=J+1:(x!==J&&q.push({type:"text",value:p.value.slice(x,J)}),Array.isArray(D)?q.push(...D):D&&q.push(D),x=J+H[0].length,w=!0),!E.global)break;H=E.exec(p.value)}return w?(x<p.value.length&&q.push({type:"text",value:p.value.slice(x)}),m.children.splice(M,1,...q)):q=[p],M+q.length}}function N1(n){const a=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!n[0]||Array.isArray(n[0])?n:[n];let o=-1;for(;++o<r.length;){const s=r[o];a.push([C1(s[0]),O1(s[1])])}return a}function C1(n){return typeof n=="string"?new RegExp(T1(n),"g"):n}function O1(n){return typeof n=="function"?n:function(){return n}}const Tc="phrasing",Ac=["autolink","link","image","label"];function M1(){return{transforms:[U1],enter:{literalAutolink:D1,literalAutolinkEmail:Nc,literalAutolinkHttp:Nc,literalAutolinkWww:Nc},exit:{literalAutolink:B1,literalAutolinkEmail:I1,literalAutolinkHttp:L1,literalAutolinkWww:z1}}}function R1(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Tc,notInConstruct:Ac},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Tc,notInConstruct:Ac},{character:":",before:"[ps]",after:"\\/",inConstruct:Tc,notInConstruct:Ac}]}}function D1(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function Nc(n){this.config.enter.autolinkProtocol.call(this,n)}function L1(n){this.config.exit.autolinkProtocol.call(this,n)}function z1(n){this.config.exit.data.call(this,n);const a=this.stack[this.stack.length-1];a.type,a.url="http://"+this.sliceSerialize(n)}function I1(n){this.config.exit.autolinkEmail.call(this,n)}function B1(n){this.exit(n)}function U1(n){A1(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,H1],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),q1]],{ignore:["link","linkReference"]})}function H1(n,a,r,o,s){let f="";if(!$p(s)||(/^w/i.test(a)&&(r=a+r,a="",f="http://"),!F1(r)))return!1;const u=G1(r+o);if(!u[0])return!1;const g={type:"link",title:null,url:f+a+u[0],children:[{type:"text",value:a+u[0]}]};return u[1]?[g,{type:"text",value:u[1]}]:g}function q1(n,a,r,o){return!$p(o,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+r,children:[{type:"text",value:a+"@"+r}]}}function F1(n){const a=n.split(".");return!(a.length<2||a[a.length-1]&&(/_/.test(a[a.length-1])||!/[a-zA-Z\d]/.test(a[a.length-1]))||a[a.length-2]&&(/_/.test(a[a.length-2])||!/[a-zA-Z\d]/.test(a[a.length-2])))}function G1(n){const a=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!a)return[n,void 0];n=n.slice(0,a.index);let r=a[0],o=r.indexOf(")");const s=Vp(n,"(");let f=Vp(n,")");for(;o!==-1&&s>f;)n+=r.slice(0,o+1),r=r.slice(o+1),o=r.indexOf(")"),f++;return[n,r]}function $p(n,a){const r=n.input.charCodeAt(n.index-1);return(n.index===0||_a(r)||Vl(r))&&(!a||r!==47)}Zp.peek=Q1;function j1(){this.buffer()}function Y1(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function P1(){this.buffer()}function K1(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function V1(n){const a=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=ri(this.sliceSerialize(n)).toLowerCase(),r.label=a}function $1(n){this.exit(n)}function Z1(n){const a=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=ri(this.sliceSerialize(n)).toLowerCase(),r.label=a}function X1(n){this.exit(n)}function Q1(){return"["}function Zp(n,a,r,o){const s=r.createTracker(o);let f=s.move("[^");const u=r.enter("footnoteReference"),g=r.enter("reference");return f+=s.move(r.safe(r.associationId(n),{after:"]",before:f})),g(),u(),f+=s.move("]"),f}function J1(){return{enter:{gfmFootnoteCallString:j1,gfmFootnoteCall:Y1,gfmFootnoteDefinitionLabelString:P1,gfmFootnoteDefinition:K1},exit:{gfmFootnoteCallString:V1,gfmFootnoteCall:$1,gfmFootnoteDefinitionLabelString:Z1,gfmFootnoteDefinition:X1}}}function W1(n){let a=!1;return n&&n.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:r,footnoteReference:Zp},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(o,s,f,u){const g=f.createTracker(u);let h=g.move("[^");const p=f.enter("footnoteDefinition"),b=f.enter("label");return h+=g.move(f.safe(f.associationId(o),{before:h,after:"]"})),b(),h+=g.move("]:"),o.children&&o.children.length>0&&(g.shift(4),h+=g.move((a?`
29
- `:" ")+f.indentLines(f.containerFlow(o,g.current()),a?Xp:ex))),p(),h}}function ex(n,a,r){return a===0?n:Xp(n,a,r)}function Xp(n,a,r){return(r?"":" ")+n}const tx=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Qp.peek=lx;function nx(){return{canContainEols:["delete"],enter:{strikethrough:ax},exit:{strikethrough:rx}}}function ix(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:tx}],handlers:{delete:Qp}}}function ax(n){this.enter({type:"delete",children:[]},n)}function rx(n){this.exit(n)}function Qp(n,a,r,o){const s=r.createTracker(o),f=r.enter("strikethrough");let u=s.move("~~");return u+=r.containerPhrasing(n,{...s.current(),before:u,after:"~"}),u+=s.move("~~"),f(),u}function lx(){return"~"}function ox(n){return n.length}function sx(n,a){const r=a||{},o=(r.align||[]).concat(),s=r.stringLength||ox,f=[],u=[],g=[],h=[];let p=0,b=-1;for(;++b<n.length;){const C=[],M=[];let w=-1;for(n[b].length>p&&(p=n[b].length);++w<n[b].length;){const q=cx(n[b][w]);if(r.alignDelimiters!==!1){const H=s(q);M[w]=H,(h[w]===void 0||H>h[w])&&(h[w]=H)}C.push(q)}u[b]=C,g[b]=M}let m=-1;if(typeof o=="object"&&"length"in o)for(;++m<p;)f[m]=Jp(o[m]);else{const C=Jp(o);for(;++m<p;)f[m]=C}m=-1;const E=[],v=[];for(;++m<p;){const C=f[m];let M="",w="";C===99?(M=":",w=":"):C===108?M=":":C===114&&(w=":");let q=r.alignDelimiters===!1?1:Math.max(1,h[m]-M.length-w.length);const H=M+"-".repeat(q)+w;r.alignDelimiters!==!1&&(q=M.length+q+w.length,q>h[m]&&(h[m]=q),v[m]=q),E[m]=H}u.splice(1,0,E),g.splice(1,0,v),b=-1;const x=[];for(;++b<u.length;){const C=u[b],M=g[b];m=-1;const w=[];for(;++m<p;){const q=C[m]||"";let H="",J="";if(r.alignDelimiters!==!1){const te=h[m]-(M[m]||0),D=f[m];D===114?H=" ".repeat(te):D===99?te%2?(H=" ".repeat(te/2+.5),J=" ".repeat(te/2-.5)):(H=" ".repeat(te/2),J=H):J=" ".repeat(te)}r.delimiterStart!==!1&&!m&&w.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&q==="")&&(r.delimiterStart!==!1||m)&&w.push(" "),r.alignDelimiters!==!1&&w.push(H),w.push(q),r.alignDelimiters!==!1&&w.push(J),r.padding!==!1&&w.push(" "),(r.delimiterEnd!==!1||m!==p-1)&&w.push("|")}x.push(r.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return x.join(`
30
- `)}function cx(n){return n==null?"":String(n)}function Jp(n){const a=typeof n=="string"?n.codePointAt(0):0;return a===67||a===99?99:a===76||a===108?108:a===82||a===114?114:0}function ux(n,a,r,o){const s=r.enter("blockquote"),f=r.createTracker(o);f.move("> "),f.shift(2);const u=r.indentLines(r.containerFlow(n,f.current()),fx);return s(),u}function fx(n,a,r){return">"+(r?"":" ")+n}function dx(n,a){return Wp(n,a.inConstruct,!0)&&!Wp(n,a.notInConstruct,!1)}function Wp(n,a,r){if(typeof a=="string"&&(a=[a]),!a||a.length===0)return r;let o=-1;for(;++o<a.length;)if(n.includes(a[o]))return!0;return!1}function eg(n,a,r,o){let s=-1;for(;++s<r.unsafe.length;)if(r.unsafe[s].character===`
31
- `&&dx(r.stack,r.unsafe[s]))return/[ \t]/.test(o.before)?"":" ";return`\\
32
- `}function px(n,a){const r=String(n);let o=r.indexOf(a),s=o,f=0,u=0;if(typeof a!="string")throw new TypeError("Expected substring");for(;o!==-1;)o===s?++f>u&&(u=f):f=1,s=o+a.length,o=r.indexOf(a,s);return u}function gx(n,a){return!!(a.options.fences===!1&&n.value&&!n.lang&&/[^ \r\n]/.test(n.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(n.value))}function hx(n){const a=n.options.fence||"`";if(a!=="`"&&a!=="~")throw new Error("Cannot serialize code with `"+a+"` for `options.fence`, expected `` ` `` or `~`");return a}function mx(n,a,r,o){const s=hx(r),f=n.value||"",u=s==="`"?"GraveAccent":"Tilde";if(gx(n,r)){const m=r.enter("codeIndented"),E=r.indentLines(f,bx);return m(),E}const g=r.createTracker(o),h=s.repeat(Math.max(px(f,s)+1,3)),p=r.enter("codeFenced");let b=g.move(h);if(n.lang){const m=r.enter(`codeFencedLang${u}`);b+=g.move(r.safe(n.lang,{before:b,after:" ",encode:["`"],...g.current()})),m()}if(n.lang&&n.meta){const m=r.enter(`codeFencedMeta${u}`);b+=g.move(" "),b+=g.move(r.safe(n.meta,{before:b,after:`
33
- `,encode:["`"],...g.current()})),m()}return b+=g.move(`
21
+ `}),r}function lp(n){let a=0,r=n.charCodeAt(a);for(;r===9||r===32;)a++,r=n.charCodeAt(a);return n.slice(a)}function op(n,a){const r=lE(n,a),o=r.one(n,void 0),s=Xk(r),f=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return s&&f.children.push({type:"text",value:`
22
+ `},s),f}function fE(n,a){return n&&"run"in n?async function(r,o){const s=op(r,{file:o,...a});await n.run(s,o)}:function(r,o){return op(r,{file:o,...n||a})}}function sp(n){if(n)throw n}var dc,cp;function dE(){if(cp)return dc;cp=1;var n=Object.prototype.hasOwnProperty,a=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=function(p){return typeof Array.isArray=="function"?Array.isArray(p):a.call(p)==="[object Array]"},f=function(p){if(!p||a.call(p)!=="[object Object]")return!1;var b=n.call(p,"constructor"),h=p.constructor&&p.constructor.prototype&&n.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!b&&!h)return!1;var v;for(v in p);return typeof v>"u"||n.call(p,v)},u=function(p,b){r&&b.name==="__proto__"?r(p,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):p[b.name]=b.newValue},g=function(p,b){if(b==="__proto__")if(n.call(p,b)){if(o)return o(p,b).value}else return;return p[b]};return dc=function m(){var p,b,h,v,k,x,C=arguments[0],M=1,w=arguments.length,q=!1;for(typeof C=="boolean"&&(q=C,C=arguments[1]||{},M=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});M<w;++M)if(p=arguments[M],p!=null)for(b in p)h=g(C,b),v=g(p,b),C!==v&&(q&&v&&(f(v)||(k=s(v)))?(k?(k=!1,x=h&&s(h)?h:[]):x=h&&f(h)?h:{},u(C,{name:b,newValue:m(q,x,v)})):typeof v<"u"&&u(C,{name:b,newValue:v}));return C},dc}var pE=dE();const pc=Os(pE);function gc(n){if(typeof n!="object"||n===null)return!1;const a=Object.getPrototypeOf(n);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function gE(){const n=[],a={run:r,use:o};return a;function r(...s){let f=-1;const u=s.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);g(null,...s);function g(m,...p){const b=n[++f];let h=-1;if(m){u(m);return}for(;++h<s.length;)(p[h]===null||p[h]===void 0)&&(p[h]=s[h]);s=p,b?mE(b,g)(...p):u(null,...p)}}function o(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return n.push(s),a}}function mE(n,a){let r;return o;function o(...u){const g=n.length>u.length;let m;g&&u.push(s);try{m=n.apply(this,u)}catch(p){const b=p;if(g&&r)throw b;return s(b)}g||(m&&m.then&&typeof m.then=="function"?m.then(f,s):m instanceof Error?s(m):f(m))}function s(u,...g){r||(r=!0,a(u,...g))}function f(u){s(null,u)}}const pi={basename:hE,dirname:bE,extname:yE,join:vE,sep:"/"};function hE(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');el(n);let r=0,o=-1,s=n.length,f;if(a===void 0||a.length===0||a.length>n.length){for(;s--;)if(n.codePointAt(s)===47){if(f){r=s+1;break}}else o<0&&(f=!0,o=s+1);return o<0?"":n.slice(r,o)}if(a===n)return"";let u=-1,g=a.length-1;for(;s--;)if(n.codePointAt(s)===47){if(f){r=s+1;break}}else u<0&&(f=!0,u=s+1),g>-1&&(n.codePointAt(s)===a.codePointAt(g--)?g<0&&(o=s):(g=-1,o=u));return r===o?o=u:o<0&&(o=n.length),n.slice(r,o)}function bE(n){if(el(n),n.length===0)return".";let a=-1,r=n.length,o;for(;--r;)if(n.codePointAt(r)===47){if(o){a=r;break}}else o||(o=!0);return a<0?n.codePointAt(0)===47?"/":".":a===1&&n.codePointAt(0)===47?"//":n.slice(0,a)}function yE(n){el(n);let a=n.length,r=-1,o=0,s=-1,f=0,u;for(;a--;){const g=n.codePointAt(a);if(g===47){if(u){o=a+1;break}continue}r<0&&(u=!0,r=a+1),g===46?s<0?s=a:f!==1&&(f=1):s>-1&&(f=-1)}return s<0||r<0||f===0||f===1&&s===r-1&&s===o+1?"":n.slice(s,r)}function vE(...n){let a=-1,r;for(;++a<n.length;)el(n[a]),n[a]&&(r=r===void 0?n[a]:r+"/"+n[a]);return r===void 0?".":kE(r)}function kE(n){el(n);const a=n.codePointAt(0)===47;let r=EE(n,!a);return r.length===0&&!a&&(r="."),r.length>0&&n.codePointAt(n.length-1)===47&&(r+="/"),a?"/"+r:r}function EE(n,a){let r="",o=0,s=-1,f=0,u=-1,g,m;for(;++u<=n.length;){if(u<n.length)g=n.codePointAt(u);else{if(g===47)break;g=47}if(g===47){if(!(s===u-1||f===1))if(s!==u-1&&f===2){if(r.length<2||o!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(m=r.lastIndexOf("/"),m!==r.length-1){m<0?(r="",o=0):(r=r.slice(0,m),o=r.length-1-r.lastIndexOf("/")),s=u,f=0;continue}}else if(r.length>0){r="",o=0,s=u,f=0;continue}}a&&(r=r.length>0?r+"/..":"..",o=2)}else r.length>0?r+="/"+n.slice(s+1,u):r=n.slice(s+1,u),o=u-s-1;s=u,f=0}else g===46&&f>-1?f++:f=-1}return r}function el(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const _E={cwd:xE};function xE(){return"/"}function mc(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function SE(n){if(typeof n=="string")n=new URL(n);else if(!mc(n)){const a=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw a.code="ERR_INVALID_ARG_TYPE",a}if(n.protocol!=="file:"){const a=new TypeError("The URL must be of scheme file");throw a.code="ERR_INVALID_URL_SCHEME",a}return wE(n)}function wE(n){if(n.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const a=n.pathname;let r=-1;for(;++r<a.length;)if(a.codePointAt(r)===37&&a.codePointAt(r+1)===50){const o=a.codePointAt(r+2);if(o===70||o===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(a)}const hc=["history","path","basename","stem","extname","dirname"];class up{constructor(a){let r;a?mc(a)?r={path:a}:typeof a=="string"||TE(a)?r={value:a}:r=a:r={},this.cwd="cwd"in r?"":_E.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<hc.length;){const f=hc[o];f in r&&r[f]!==void 0&&r[f]!==null&&(this[f]=f==="history"?[...r[f]]:r[f])}let s;for(s in r)hc.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?pi.basename(this.path):void 0}set basename(a){yc(a,"basename"),bc(a,"basename"),this.path=pi.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?pi.dirname(this.path):void 0}set dirname(a){fp(this.basename,"dirname"),this.path=pi.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?pi.extname(this.path):void 0}set extname(a){if(bc(a,"extname"),fp(this.dirname,"extname"),a){if(a.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(a.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=pi.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){mc(a)&&(a=SE(a)),yc(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?pi.basename(this.path,this.extname):void 0}set stem(a){yc(a,"stem"),bc(a,"stem"),this.path=pi.join(this.dirname||"",a+(this.extname||""))}fail(a,r,o){const s=this.message(a,r,o);throw s.fatal=!0,s}info(a,r,o){const s=this.message(a,r,o);return s.fatal=void 0,s}message(a,r,o){const s=new cn(a,r,o);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(a){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(a||void 0).decode(this.value)}}function bc(n,a){if(n&&n.includes(pi.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+pi.sep+"`")}function yc(n,a){if(!n)throw new Error("`"+a+"` cannot be empty")}function fp(n,a){if(!n)throw new Error("Setting `"+a+"` requires `path` to be set too")}function TE(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const AE=(function(n){const o=this.constructor.prototype,s=o[n],f=function(){return s.apply(f,arguments)};return Object.setPrototypeOf(f,o),f}),NE={}.hasOwnProperty;class vc extends AE{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=gE()}copy(){const a=new vc;let r=-1;for(;++r<this.attachers.length;){const o=this.attachers[r];a.use(...o)}return a.data(pc(!0,{},this.namespace)),a}data(a,r){return typeof a=="string"?arguments.length===2?(_c("data",this.frozen),this.namespace[a]=r,this):NE.call(this.namespace,a)&&this.namespace[a]||void 0:a?(_c("data",this.frozen),this.namespace=a,this):this.namespace}freeze(){if(this.frozen)return this;const a=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const s=r.call(a,...o);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const r=oo(a),o=this.parser||this.Parser;return kc("parse",o),o(String(r),r)}process(a,r){const o=this;return this.freeze(),kc("process",this.parser||this.Parser),Ec("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(f,u){const g=oo(a),m=o.parse(g);o.run(m,g,function(b,h,v){if(b||!h||!v)return p(b);const k=h,x=o.stringify(k,v);ME(x)?v.value=x:v.result=x,p(b,v)});function p(b,h){b||!h?u(b):f?f(h):r(void 0,h)}}}processSync(a){let r=!1,o;return this.freeze(),kc("processSync",this.parser||this.Parser),Ec("processSync",this.compiler||this.Compiler),this.process(a,s),pp("processSync","process",r),o;function s(f,u){r=!0,sp(f),o=u}}run(a,r,o){dp(a),this.freeze();const s=this.transformers;return!o&&typeof r=="function"&&(o=r,r=void 0),o?f(void 0,o):new Promise(f);function f(u,g){const m=oo(r);s.run(a,m,p);function p(b,h,v){const k=h||a;b?g(b):u?u(k):o(void 0,k,v)}}}runSync(a,r){let o=!1,s;return this.run(a,r,f),pp("runSync","run",o),s;function f(u,g){sp(u),s=g,o=!0}}stringify(a,r){this.freeze();const o=oo(r),s=this.compiler||this.Compiler;return Ec("stringify",s),dp(a),s(a,o)}use(a,...r){const o=this.attachers,s=this.namespace;if(_c("use",this.frozen),a!=null)if(typeof a=="function")m(a,r);else if(typeof a=="object")Array.isArray(a)?g(a):u(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function f(p){if(typeof p=="function")m(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[b,...h]=p;m(b,h)}else u(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function u(p){if(!("plugins"in p)&&!("settings"in p))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");g(p.plugins),p.settings&&(s.settings=pc(!0,s.settings,p.settings))}function g(p){let b=-1;if(p!=null)if(Array.isArray(p))for(;++b<p.length;){const h=p[b];f(h)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function m(p,b){let h=-1,v=-1;for(;++h<o.length;)if(o[h][0]===p){v=h;break}if(v===-1)o.push([p,...b]);else if(b.length>0){let[k,...x]=b;const C=o[v][1];gc(C)&&gc(k)&&(k=pc(!0,C,k)),o[v]=[p,k,...x]}}}}const CE=new vc().freeze();function kc(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function Ec(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function _c(n,a){if(a)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function dp(n){if(!gc(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function pp(n,a,r){if(!r)throw new Error("`"+n+"` finished async. Use `"+a+"` instead")}function oo(n){return OE(n)?n:new up(n)}function OE(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function ME(n){return typeof n=="string"||RE(n)}function RE(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const DE="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",gp=[],mp={allowDangerousHtml:!0},LE=/^(https?|ircs?|mailto|xmpp)$/i,zE=[{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 IE(n){const a=BE(n),r=UE(n);return HE(a.runSync(a.parse(r),r),n)}function BE(n){const a=n.rehypePlugins||gp,r=n.remarkPlugins||gp,o=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...mp}:mp;return CE().use(bk).use(r).use(fE,o).use(a)}function UE(n){const a=n.children||"",r=new up;return typeof a=="string"&&(r.value=a),r}function HE(n,a){const r=a.allowedElements,o=a.allowElement,s=a.components,f=a.disallowedElements,u=a.skipHtml,g=a.unwrapDisallowed,m=a.urlTransform||qE;for(const b of zE)Object.hasOwn(a,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+DE+b.id,void 0);return lo(n,p),c0(n,{Fragment:D.Fragment,components:s,ignoreInvalidStyle:!0,jsx:D.jsx,jsxs:D.jsxs,passKeys:!0,passNode:!0});function p(b,h,v){if(b.type==="raw"&&v&&typeof h=="number")return u?v.children.splice(h,1):v.children[h]={type:"text",value:b.value},h;if(b.type==="element"){let k;for(k in Js)if(Object.hasOwn(Js,k)&&Object.hasOwn(b.properties,k)){const x=b.properties[k],C=Js[k];(C===null||C.includes(b.tagName))&&(b.properties[k]=m(String(x||""),k,b))}}if(b.type==="element"){let k=r?!r.includes(b.tagName):f?f.includes(b.tagName):!1;if(!k&&o&&typeof h=="number"&&(k=!o(b,h,v)),k&&v&&typeof h=="number")return g&&b.children?v.children.splice(h,1,...b.children):v.children.splice(h,1),h}}}function qE(n){const a=n.indexOf(":"),r=n.indexOf("?"),o=n.indexOf("#"),s=n.indexOf("/");return a===-1||s!==-1&&a>s||r!==-1&&a>r||o!==-1&&a>o||LE.test(n.slice(0,a))?n:""}const hp=(function(n,a,r){const o=Wr(r);if(!n||!n.type||!n.children)throw new Error("Expected parent node");if(typeof a=="number"){if(a<0||a===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(a=n.children.indexOf(a),a<0)throw new Error("Expected child node or index");for(;++a<n.children.length;)if(o(n.children[a],a,n))return n.children[a]}),Ra=(function(n){if(n==null)return jE;if(typeof n=="string")return GE(n);if(typeof n=="object")return FE(n);if(typeof n=="function")return xc(n);throw new Error("Expected function, string, or array as `test`")});function FE(n){const a=[];let r=-1;for(;++r<n.length;)a[r]=Ra(n[r]);return xc(o);function o(...s){let f=-1;for(;++f<a.length;)if(a[f].apply(this,s))return!0;return!1}}function GE(n){return xc(a);function a(r){return r.tagName===n}}function xc(n){return a;function a(r,o,s){return!!(YE(r)&&n.call(this,r,typeof o=="number"?o:void 0,s||void 0))}}function jE(n){return!!(n&&typeof n=="object"&&"type"in n&&n.type==="element"&&"tagName"in n&&typeof n.tagName=="string")}function YE(n){return n!==null&&typeof n=="object"&&"type"in n&&"tagName"in n}const bp=/\n/g,yp=/[\t ]+/g,Sc=Ra("br"),vp=Ra(JE),PE=Ra("p"),kp=Ra("tr"),KE=Ra(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",QE,WE]),Ep=Ra(["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 VE(n,a){const r=a||{},o="children"in n?n.children:[],s=Ep(n),f=Sp(n,{whitespace:r.whitespace||"normal"}),u=[];(n.type==="text"||n.type==="comment")&&u.push(...xp(n,{breakBefore:!0,breakAfter:!0}));let g=-1;for(;++g<o.length;)u.push(..._p(o[g],n,{whitespace:f,breakBefore:g?void 0:s,breakAfter:g<o.length-1?Sc(o[g+1]):s}));const m=[];let p;for(g=-1;++g<u.length;){const b=u[g];typeof b=="number"?p!==void 0&&b>p&&(p=b):b&&(p!==void 0&&p>-1&&m.push(`
23
+ `.repeat(p)||" "),p=-1,m.push(b))}return m.join("")}function _p(n,a,r){return n.type==="element"?$E(n,a,r):n.type==="text"?r.whitespace==="normal"?xp(n,r):ZE(n):[]}function $E(n,a,r){const o=Sp(n,r),s=n.children||[];let f=-1,u=[];if(KE(n))return u;let g,m;for(Sc(n)||kp(n)&&hp(a,n,kp)?m=`
24
+ `:PE(n)?(g=2,m=2):Ep(n)&&(g=1,m=1);++f<s.length;)u=u.concat(_p(s[f],n,{whitespace:o,breakBefore:f?void 0:g,breakAfter:f<s.length-1?Sc(s[f+1]):m}));return vp(n)&&hp(a,n,vp)&&u.push(" "),g&&u.unshift(g),m&&u.push(m),u}function xp(n,a){const r=String(n.value),o=[],s=[];let f=0;for(;f<=r.length;){bp.lastIndex=f;const m=bp.exec(r),p=m&&"index"in m?m.index:r.length;o.push(XE(r.slice(f,p).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),f===0?a.breakBefore:!0,p===r.length?a.breakAfter:!0)),f=p+1}let u=-1,g;for(;++u<o.length;)o[u].charCodeAt(o[u].length-1)===8203||u<o.length-1&&o[u+1].charCodeAt(0)===8203?(s.push(o[u]),g=void 0):o[u]?(typeof g=="number"&&s.push(g),s.push(o[u]),g=0):(u===0||u===o.length-1)&&s.push(0);return s}function ZE(n){return[String(n.value)]}function XE(n,a,r){const o=[];let s=0,f;for(;s<n.length;){yp.lastIndex=s;const u=yp.exec(n);f=u?u.index:n.length,!s&&!f&&u&&!a&&o.push(""),s!==f&&o.push(n.slice(s,f)),s=u?f+u[0].length:f}return s!==f&&!r&&o.push(""),o.join(" ")}function Sp(n,a){if(n.type==="element"){const r=n.properties||{};switch(n.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":a.whitespace;case"textarea":return"pre-wrap"}}return a.whitespace}function QE(n){return!!(n.properties||{}).hidden}function JE(n){return n.tagName==="td"||n.tagName==="th"}function WE(n){return n.tagName==="dialog"&&!(n.properties||{}).open}function e_(n){const a=n.regex,r=n.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",u="(?!struct)("+o+"|"+a.optional(s)+"[a-zA-Z_]\\w*"+a.optional("<[^<>]+>")+")",g={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},p={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},n.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},b={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},h={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},n.inherit(p,{className:"string"}),{className:"string",begin:/<.*?>/},r,n.C_BLOCK_COMMENT_MODE]},v={className:"title",begin:a.optional(s)+n.IDENT_RE,relevance:0},k=a.optional(s)+n.IDENT_RE+"\\s*\\(",x=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],C=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],M=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],w=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],Q={type:C,keyword:x,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:M},te={className:"function.dispatch",relevance:0,keywords:{_hint:w},begin:a.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,n.IDENT_RE,a.lookahead(/(<[^<>]+>|)\s*\(/))},L=[te,h,g,r,n.C_BLOCK_COMMENT_MODE,b,p],ce={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:Q,contains:L.concat([{begin:/\(/,end:/\)/,keywords:Q,contains:L.concat(["self"]),relevance:0}]),relevance:0},ee={className:"function",begin:"("+u+"[\\*&\\s]+)+"+k,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:Q,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:o,keywords:Q,relevance:0},{begin:k,returnBegin:!0,contains:[v],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[p,b]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:Q,relevance:0,contains:[r,n.C_BLOCK_COMMENT_MODE,p,b,g,{begin:/\(/,end:/\)/,keywords:Q,relevance:0,contains:["self",r,n.C_BLOCK_COMMENT_MODE,p,b,g]}]},g,r,n.C_BLOCK_COMMENT_MODE,h]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:Q,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(ce,ee,te,L,[h,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:Q,contains:["self",g]},{begin:n.IDENT_RE+"::",keywords:Q},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function t_(n){const a={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},r=e_(n),o=r.keywords;return o.type=[...o.type,...a.type],o.literal=[...o.literal,...a.literal],o.built_in=[...o.built_in,...a.built_in],o._hints=a._hints,r.name="Arduino",r.aliases=["ino"],r.supersetOf="cpp",r}function n_(n){const a=n.regex,r={},o={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:a.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},o]});const s={className:"subst",begin:/\$\(/,end:/\)/,contains:[n.BACKSLASH_ESCAPE]},f=n.inherit(n.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),u={begin:/<<-?\s*(?=\w+)/,starts:{contains:[n.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},g={className:"string",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,r,s]};s.contains.push(g);const m={match:/\\"/},p={className:"string",begin:/'/,end:/'/},b={match:/\\'/},h={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},n.NUMBER_MODE,r]},v=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],k=n.SHEBANG({binary:`(${v.join("|")})`,relevance:10}),x={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[n.inherit(n.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},C=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],M=["true","false"],w={match:/(\/[a-z._-]+)+/},q=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],H=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],Q=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],te=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:C,literal:M,built_in:[...q,...H,"set","shopt",...Q,...te]},contains:[k,n.SHEBANG(),x,h,f,u,w,g,m,p,b,r]}}function i_(n){const a=n.regex,r=n.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",u="("+o+"|"+a.optional(s)+"[a-zA-Z_]\\w*"+a.optional("<[^<>]+>")+")",g={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},p={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},n.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},b={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},h={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},n.inherit(p,{className:"string"}),{className:"string",begin:/<.*?>/},r,n.C_BLOCK_COMMENT_MODE]},v={className:"title",begin:a.optional(s)+n.IDENT_RE,relevance:0},k=a.optional(s)+n.IDENT_RE+"\\s*\\(",M={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},w=[h,g,r,n.C_BLOCK_COMMENT_MODE,b,p],q={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:M,contains:w.concat([{begin:/\(/,end:/\)/,keywords:M,contains:w.concat(["self"]),relevance:0}]),relevance:0},H={begin:"("+u+"[\\*&\\s]+)+"+k,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:M,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:o,keywords:M,relevance:0},{begin:k,returnBegin:!0,contains:[n.inherit(v,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:M,relevance:0,contains:[r,n.C_BLOCK_COMMENT_MODE,p,b,g,{begin:/\(/,end:/\)/,keywords:M,relevance:0,contains:["self",r,n.C_BLOCK_COMMENT_MODE,p,b,g]}]},g,r,n.C_BLOCK_COMMENT_MODE,h]};return{name:"C",aliases:["h"],keywords:M,disableAutodetect:!0,illegal:"</",contains:[].concat(q,H,w,[h,{begin:n.IDENT_RE+"::",keywords:M},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},n.TITLE_MODE]}]),exports:{preprocessor:h,strings:p,keywords:M}}}function a_(n){const a=n.regex,r=n.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",u="(?!struct)("+o+"|"+a.optional(s)+"[a-zA-Z_]\\w*"+a.optional("<[^<>]+>")+")",g={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},p={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},n.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},b={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},h={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},n.inherit(p,{className:"string"}),{className:"string",begin:/<.*?>/},r,n.C_BLOCK_COMMENT_MODE]},v={className:"title",begin:a.optional(s)+n.IDENT_RE,relevance:0},k=a.optional(s)+n.IDENT_RE+"\\s*\\(",x=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],C=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],M=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],w=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],Q={type:C,keyword:x,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:M},te={className:"function.dispatch",relevance:0,keywords:{_hint:w},begin:a.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,n.IDENT_RE,a.lookahead(/(<[^<>]+>|)\s*\(/))},L=[te,h,g,r,n.C_BLOCK_COMMENT_MODE,b,p],ce={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:Q,contains:L.concat([{begin:/\(/,end:/\)/,keywords:Q,contains:L.concat(["self"]),relevance:0}]),relevance:0},ee={className:"function",begin:"("+u+"[\\*&\\s]+)+"+k,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:Q,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:o,keywords:Q,relevance:0},{begin:k,returnBegin:!0,contains:[v],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[p,b]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:Q,relevance:0,contains:[r,n.C_BLOCK_COMMENT_MODE,p,b,g,{begin:/\(/,end:/\)/,keywords:Q,relevance:0,contains:["self",r,n.C_BLOCK_COMMENT_MODE,p,b,g]}]},g,r,n.C_BLOCK_COMMENT_MODE,h]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:Q,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(ce,ee,te,L,[h,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:Q,contains:["self",g]},{begin:n.IDENT_RE+"::",keywords:Q},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function r_(n){const a=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],r=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],o=["default","false","null","true"],s=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],f=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],u={keyword:s.concat(f),built_in:a,literal:o},g=n.inherit(n.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),m={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},p={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},b={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},h=n.inherit(b,{illegal:/\n/}),v={className:"subst",begin:/\{/,end:/\}/,keywords:u},k=n.inherit(v,{illegal:/\n/}),x={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},n.BACKSLASH_ESCAPE,k]},C={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},v]},M=n.inherit(C,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},k]});v.contains=[C,x,b,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,m,n.C_BLOCK_COMMENT_MODE],k.contains=[M,x,h,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,m,n.inherit(n.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const w={variants:[p,C,x,b,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},q={begin:"<",end:">",contains:[{beginKeywords:"in out"},g]},H=n.IDENT_RE+"(<"+n.IDENT_RE+"(\\s*,\\s*"+n.IDENT_RE+")*>)?(\\[\\])?",Q={begin:"@"+n.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:u,illegal:/::/,contains:[n.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},w,m,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},g,q,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[g,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[g,q,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+H+"\\s+)+"+n.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:u,contains:[{beginKeywords:r.join(" "),relevance:0},{begin:n.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[n.TITLE_MODE,q],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,relevance:0,contains:[w,m,n.C_BLOCK_COMMENT_MODE]},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},Q]}}const l_=n=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:n.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:n.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),o_=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],s_=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],c_=[...o_,...s_],u_=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),f_=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),d_=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),p_=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function g_(n){const a=n.regex,r=l_(n),o={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},s="and or not only",f=/@-?\w[\w]*(-\w+)*/,u="[a-zA-Z-][a-zA-Z0-9_-]*",g=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[r.BLOCK_COMMENT,o,r.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+u,relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+f_.join("|")+")"},{begin:":(:)?("+d_.join("|")+")"}]},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+p_.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[r.BLOCK_COMMENT,r.HEXCOLOR,r.IMPORTANT,r.CSS_NUMBER_MODE,...g,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...g,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},r.FUNCTION_DISPATCH]},{begin:a.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:f},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:s,attribute:u_.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...g,r.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+c_.join("|")+")\\b"}]}}function m_(n){const a=n.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:a.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:a.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function h_(n){const f={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:f,illegal:"</",contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{className:"string",variants:[n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[n.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:f,illegal:/["']/}]}]}}function b_(n){const a=n.regex,r=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[n.HASH_COMMENT_MODE,n.QUOTE_STRING_MODE,n.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:a.concat(r,a.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function y_(n){const a=n.regex,r={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:n.NUMBER_RE}]},o=n.COMMENT();o.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const s={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},f={className:"literal",begin:/\bon|off|true|false|yes|no\b/},u={className:"string",contains:[n.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},g={begin:/\[/,end:/\]/,contains:[o,f,s,u,r,"self"],relevance:0},m=/[A-Za-z0-9_-]+/,p=/"(\\"|[^"])*"/,b=/'[^']*'/,h=a.either(m,p,b),v=a.concat(h,"(\\s*\\.\\s*",h,")*",a.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[o,{className:"section",begin:/\[+/,end:/\]+/},{begin:v,className:"attr",starts:{end:/$/,contains:[o,g,f,s,u,r]}}]}}var ir="[0-9](_*[0-9])*",so=`\\.(${ir})`,co="[0-9a-fA-F](_*[0-9a-fA-F])*",wp={className:"number",variants:[{begin:`(\\b(${ir})((${so})|\\.)?|(${so}))[eE][+-]?(${ir})[fFdD]?\\b`},{begin:`\\b(${ir})((${so})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${so})[fFdD]?\\b`},{begin:`\\b(${ir})[fFdD]\\b`},{begin:`\\b0[xX]((${co})\\.?|(${co})?\\.(${co}))[pP][+-]?(${ir})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${co})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Tp(n,a,r){return r===-1?"":n.replace(a,o=>Tp(n,a,r-1))}function v_(n){const a=n.regex,r="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",o=r+Tp("(?:<"+r+"~~~(?:\\s*,\\s*"+r+"~~~)*>)?",/~~~/g,2),m={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},p={className:"meta",begin:"@"+r,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},b={className:"params",begin:/\(/,end:/\)/,keywords:m,relevance:0,contains:[n.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:m,illegal:/<\/|#/,contains:[n.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[n.BACKSLASH_ESCAPE]},n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[a.concat(/(?!else)/,r),/\s+/,r,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,r],className:{1:"keyword",3:"title.class"},contains:[b,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+o+"\\s+)",n.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:m,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:m,relevance:0,contains:[p,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,wp,n.C_BLOCK_COMMENT_MODE]},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},wp,p]}}const Ap="[A-Za-z$_][0-9A-Za-z$_]*",k_=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],E_=["true","false","null","undefined","NaN","Infinity"],Np=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Cp=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Op=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],__=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],x_=[].concat(Op,Np,Cp);function S_(n){const a=n.regex,r=(K,{after:ve})=>{const S="</"+K[0].slice(1);return K.input.indexOf(S,ve)!==-1},o=Ap,s={begin:"<>",end:"</>"},f=/<[A-Za-z0-9\\._:-]+\s*\/>/,u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(K,ve)=>{const S=K[0].length+K.index,Be=K.input[S];if(Be==="<"||Be===","){ve.ignoreMatch();return}Be===">"&&(r(K,{after:S})||ve.ignoreMatch());let T;const _=K.input.substring(S);if(T=_.match(/^\s*=/)){ve.ignoreMatch();return}if((T=_.match(/^\s+extends\s+/))&&T.index===0){ve.ignoreMatch();return}}},g={$pattern:Ap,keyword:k_,literal:E_,built_in:x_,"variable.language":__},m="[0-9](_?[0-9])*",p=`\\.(${m})`,b="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",h={className:"number",variants:[{begin:`(\\b(${b})((${p})|\\.)?|(${p}))[eE][+-]?(${m})\\b`},{begin:`\\b(${b})\\b((${p})\\b|\\.)?|(${p})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},v={className:"subst",begin:"\\$\\{",end:"\\}",keywords:g,contains:[]},k={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,v],subLanguage:"xml"}},x={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,v],subLanguage:"css"}},C={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,v],subLanguage:"graphql"}},M={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,v]},q={className:"comment",variants:[n.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:o+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),n.C_BLOCK_COMMENT_MODE,n.C_LINE_COMMENT_MODE]},H=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,k,x,C,M,{match:/\$\d+/},h];v.contains=H.concat({begin:/\{/,end:/\}/,keywords:g,contains:["self"].concat(H)});const Q=[].concat(q,v.contains),te=Q.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:["self"].concat(Q)}]),L={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:te},ce={variants:[{match:[/class/,/\s+/,o,/\s+/,/extends/,/\s+/,a.concat(o,"(",a.concat(/\./,o),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,o],scope:{1:"keyword",3:"title.class"}}]},ee={relevance:0,match:a.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Np,...Cp]}},fe={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},z={variants:[{match:[/function/,/\s+/,o,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[L],illegal:/%/},se={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function re(K){return a.concat("(?!",K.join("|"),")")}const _e={match:a.concat(/\b/,re([...Op,"super","import"].map(K=>`${K}\\s*\\(`)),o,a.lookahead(/\s*\(/)),className:"title.function",relevance:0},oe={begin:a.concat(/\./,a.lookahead(a.concat(o,/(?![0-9A-Za-z$_(])/))),end:o,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},X={match:[/get|set/,/\s+/,o,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},L]},Y="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",G={match:[/const|var|let/,/\s+/,o,/\s*/,/=\s*/,/(async\s*)?/,a.lookahead(Y)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[L]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:g,exports:{PARAMS_CONTAINS:te,CLASS_REFERENCE:ee},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),fe,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,k,x,C,M,q,{match:/\$\d+/},h,ee,{scope:"attr",match:o+a.lookahead(":"),relevance:0},G,{begin:"("+n.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[q,n.REGEXP_MODE,{className:"function",begin:Y,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:te}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:f},{begin:u.begin,"on:begin":u.isTrulyOpeningTag,end:u.end}],subLanguage:"xml",contains:[{begin:u.begin,end:u.end,skip:!0,contains:["self"]}]}]},z,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+n.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[L,n.inherit(n.TITLE_MODE,{begin:o,className:"title.function"})]},{match:/\.\.\./,relevance:0},oe,{match:"\\$"+o,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[L]},_e,se,ce,X,{match:/\$[(.]/}]}}function w_(n){const a={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},r={match:/[{}[\],:]/,className:"punctuation",relevance:0},o=["true","false","null"],s={scope:"literal",beginKeywords:o.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:o},contains:[a,r,n.QUOTE_STRING_MODE,s,n.C_NUMBER_MODE,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var ar="[0-9](_*[0-9])*",uo=`\\.(${ar})`,fo="[0-9a-fA-F](_*[0-9a-fA-F])*",T_={className:"number",variants:[{begin:`(\\b(${ar})((${uo})|\\.)?|(${uo}))[eE][+-]?(${ar})[fFdD]?\\b`},{begin:`\\b(${ar})((${uo})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${uo})[fFdD]?\\b`},{begin:`\\b(${ar})[fFdD]\\b`},{begin:`\\b0[xX]((${fo})\\.?|(${fo})?\\.(${fo}))[pP][+-]?(${ar})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${fo})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function A_(n){const a={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},r={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},o={className:"symbol",begin:n.UNDERSCORE_IDENT_RE+"@"},s={className:"subst",begin:/\$\{/,end:/\}/,contains:[n.C_NUMBER_MODE]},f={className:"variable",begin:"\\$"+n.UNDERSCORE_IDENT_RE},u={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[f,s]},{begin:"'",end:"'",illegal:/\n/,contains:[n.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[n.BACKSLASH_ESCAPE,f,s]}]};s.contains.push(u);const g={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+n.UNDERSCORE_IDENT_RE+")?"},m={className:"meta",begin:"@"+n.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[n.inherit(u,{className:"string"}),"self"]}]},p=T_,b=n.COMMENT("/\\*","\\*/",{contains:[n.C_BLOCK_COMMENT_MODE]}),h={variants:[{className:"type",begin:n.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},v=h;return v.variants[1].contains=[h],h.variants[1].contains=[v],{name:"Kotlin",aliases:["kt","kts"],keywords:a,contains:[n.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),n.C_LINE_COMMENT_MODE,b,r,o,g,m,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:a,relevance:5,contains:[{begin:n.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[n.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:a,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[h,n.C_LINE_COMMENT_MODE,b],relevance:0},n.C_LINE_COMMENT_MODE,b,g,m,u,n.C_NUMBER_MODE]},b]},{begin:[/class|interface|trait/,/\s+/,n.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},n.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},g,m]},u,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
25
+ `},p]}}const N_=n=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:n.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:n.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),C_=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],O_=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],M_=[...C_,...O_],R_=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Mp=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Rp=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),D_=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),L_=Mp.concat(Rp).sort().reverse();function z_(n){const a=N_(n),r=L_,o="and or not only",s="[\\w-]+",f="("+s+"|@\\{"+s+"\\})",u=[],g=[],m=function(H){return{className:"string",begin:"~?"+H+".*?"+H}},p=function(H,Q,te){return{className:H,begin:Q,relevance:te}},b={$pattern:/[a-z-]+/,keyword:o,attribute:R_.join(" ")},h={begin:"\\(",end:"\\)",contains:g,keywords:b,relevance:0};g.push(n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,m("'"),m('"'),a.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},a.HEXCOLOR,h,p("variable","@@?"+s,10),p("variable","@\\{"+s+"\\}"),p("built_in","~?`[^`]*?`"),{className:"attribute",begin:s+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},a.IMPORTANT,{beginKeywords:"and not"},a.FUNCTION_DISPATCH);const v=g.concat({begin:/\{/,end:/\}/,contains:u}),k={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(g)},x={begin:f+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},a.CSS_VARIABLE,{className:"attribute",begin:"\\b("+D_.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:g}}]},C={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:b,returnEnd:!0,contains:g,relevance:0}},M={className:"variable",variants:[{begin:"@"+s+"\\s*:",relevance:15},{begin:"@"+s}],starts:{end:"[;}]",returnEnd:!0,contains:v}},w={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:f,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,k,p("keyword","all\\b"),p("variable","@\\{"+s+"\\}"),{begin:"\\b("+M_.join("|")+")\\b",className:"selector-tag"},a.CSS_NUMBER_MODE,p("selector-tag",f,0),p("selector-id","#"+f),p("selector-class","\\."+f,0),p("selector-tag","&",0),a.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+Mp.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+Rp.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:v},{begin:"!important"},a.FUNCTION_DISPATCH]},q={begin:s+`:(:)?(${r.join("|")})`,returnBegin:!0,contains:[w]};return u.push(n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,C,M,q,x,w,k,a.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:u}}function I_(n){const a="\\[=*\\[",r="\\]=*\\]",o={begin:a,end:r,contains:["self"]},s=[n.COMMENT("--(?!"+a+")","$"),n.COMMENT("--"+a,r,{contains:[o],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:n.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:s.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[n.inherit(n.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:s}].concat(s)},n.C_NUMBER_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,{className:"string",begin:a,end:r,contains:[o],relevance:5}])}}function B_(n){const a={className:"variable",variants:[{begin:"\\$\\("+n.UNDERSCORE_IDENT_RE+"\\)",contains:[n.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},r={className:"string",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,a]},o={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[a,r]},s={begin:"^"+n.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},f={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},u={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[a]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[n.HASH_COMMENT_MODE,a,r,o,s,f,u]}}function U_(n){const a=n.regex,r={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},o={begin:"^[-\\*]{3,}",end:"$"},s={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},f={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},u={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},g=/[A-Za-z][A-Za-z0-9+.-]*/,m={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:a.concat(/\[.+?\]\(/,g,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},p={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},b={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},h=n.inherit(p,{contains:[]}),v=n.inherit(b,{contains:[]});p.contains.push(v),b.contains.push(h);let k=[r,m];return[p,b,h,v].forEach(w=>{w.contains=w.contains.concat(k)}),k=k.concat(p,b),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:k},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:k}]}]},r,f,p,b,{className:"quote",begin:"^>\\s+",contains:k,end:"$"},s,o,m,u,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function H_(n){const a={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},r=/[a-zA-Z@][a-zA-Z0-9_]*/,g={"variable.language":["this","super"],$pattern:r,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},m={$pattern:r,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:g,illegal:"</",contains:[a,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.C_NUMBER_MODE,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},n.inherit(n.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+m.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:m,contains:[n.UNDERSCORE_TITLE_MODE]},{begin:"\\."+n.UNDERSCORE_IDENT_RE,relevance:0}]}}function q_(n){const a=n.regex,r=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],o=/[dualxmsipngr]{0,12}/,s={$pattern:/[\w.]+/,keyword:r.join(" ")},f={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:s},u={begin:/->\{/,end:/\}/},g={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},m={scope:"variable",variants:[{begin:/\$\d/},{begin:a.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[g]},p={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},b=[n.BACKSLASH_ESCAPE,f,m],h=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],v=(C,M,w="\\1")=>{const q=w==="\\1"?w:a.concat(w,M);return a.concat(a.concat("(?:",C,")"),M,/(?:\\.|[^\\\/])*?/,q,/(?:\\.|[^\\\/])*?/,w,o)},k=(C,M,w)=>a.concat(a.concat("(?:",C,")"),M,/(?:\\.|[^\\\/])*?/,w,o),x=[m,n.HASH_COMMENT_MODE,n.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),u,{className:"string",contains:b,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[n.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},p,{begin:"(\\/\\/|"+n.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[n.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:v("s|tr|y",a.either(...h,{capture:!0}))},{begin:v("s|tr|y","\\(","\\)")},{begin:v("s|tr|y","\\[","\\]")},{begin:v("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:k("(?:m|qr)?",/\//,/\//)},{begin:k("m|qr",a.either(...h,{capture:!0}),/\1/)},{begin:k("m|qr",/\(/,/\)/)},{begin:k("m|qr",/\[/,/\]/)},{begin:k("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[n.TITLE_MODE,g]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[n.TITLE_MODE,g,p]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return f.contains=x,u.contains=x,{name:"Perl",aliases:["pl","pm"],keywords:s,contains:x}}function F_(n){const a=n.regex,r=/(?![A-Za-z0-9])(?![$])/,o=a.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,r),s=a.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,r),f=a.concat(/[A-Z]+/,r),u={scope:"variable",match:"\\$+"+o},g={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},m={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},p=n.inherit(n.APOS_STRING_MODE,{illegal:null}),b=n.inherit(n.QUOTE_STRING_MODE,{illegal:null,contains:n.QUOTE_STRING_MODE.contains.concat(m)}),h={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:n.QUOTE_STRING_MODE.contains.concat(m),"on:begin":(oe,X)=>{X.data._beginMatch=oe[1]||oe[2]},"on:end":(oe,X)=>{X.data._beginMatch!==oe[1]&&X.ignoreMatch()}},v=n.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),k=`[
26
+ ]`,x={scope:"string",variants:[b,p,h,v]},C={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},M=["false","null","true"],w=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],q=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],Q={keyword:w,literal:(oe=>{const X=[];return oe.forEach(Y=>{X.push(Y),Y.toLowerCase()===Y?X.push(Y.toUpperCase()):X.push(Y.toLowerCase())}),X})(M),built_in:q},te=oe=>oe.map(X=>X.replace(/\|\d+$/,"")),L={variants:[{match:[/new/,a.concat(k,"+"),a.concat("(?!",te(q).join("\\b|"),"\\b)"),s],scope:{1:"keyword",4:"title.class"}}]},ce=a.concat(o,"\\b(?!\\()"),ee={variants:[{match:[a.concat(/::/,a.lookahead(/(?!class\b)/)),ce],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[s,a.concat(/::/,a.lookahead(/(?!class\b)/)),ce],scope:{1:"title.class",3:"variable.constant"}},{match:[s,a.concat("::",a.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[s,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},fe={scope:"attr",match:a.concat(o,a.lookahead(":"),a.lookahead(/(?!::)/))},z={relevance:0,begin:/\(/,end:/\)/,keywords:Q,contains:[fe,u,ee,n.C_BLOCK_COMMENT_MODE,x,C,L]},se={relevance:0,match:[/\b/,a.concat("(?!fn\\b|function\\b|",te(w).join("\\b|"),"|",te(q).join("\\b|"),"\\b)"),o,a.concat(k,"*"),a.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[z]};z.contains.push(se);const re=[fe,ee,n.C_BLOCK_COMMENT_MODE,x,C,L],_e={begin:a.concat(/#\[\s*\\?/,a.either(s,f)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:M,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:M,keyword:["new","array"]},contains:["self",...re]},...re,{scope:"meta",variants:[{match:s},{match:f}]}]};return{case_insensitive:!1,keywords:Q,contains:[_e,n.HASH_COMMENT_MODE,n.COMMENT("//","$"),n.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:n.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},g,{scope:"variable.language",match:/\$this\b/},u,se,ee,{match:[/const/,/\s/,o],scope:{1:"keyword",3:"variable.constant"}},L,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},n.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:Q,contains:["self",_e,u,ee,n.C_BLOCK_COMMENT_MODE,x,C]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},n.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[n.inherit(n.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},n.UNDERSCORE_TITLE_MODE]},x,C]}}function G_(n){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},n.inherit(n.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),n.inherit(n.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function j_(n){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function Y_(n){const a=n.regex,r=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),o=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],g={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:o,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},m={className:"meta",begin:/^(>>>|\.\.\.) /},p={className:"subst",begin:/\{/,end:/\}/,keywords:g,illegal:/#/},b={begin:/\{\{/,relevance:0},h={className:"string",contains:[n.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[n.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[n.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[n.BACKSLASH_ESCAPE,m,b,p]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[n.BACKSLASH_ESCAPE,m,b,p]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[n.BACKSLASH_ESCAPE,b,p]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,b,p]},n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},v="[0-9](_?[0-9])*",k=`(\\b(${v}))?\\.(${v})|\\b(${v})\\.`,x=`\\b|${o.join("|")}`,C={className:"number",relevance:0,variants:[{begin:`(\\b(${v})|(${k}))[eE][+-]?(${v})[jJ]?(?=${x})`},{begin:`(${k})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${x})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${x})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${x})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${x})`},{begin:`\\b(${v})[jJ](?=${x})`}]},M={className:"comment",begin:a.lookahead(/# type:/),end:/$/,keywords:g,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},w={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:["self",m,C,h,n.HASH_COMMENT_MODE]}]};return p.contains=[h,C,m],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:g,illegal:/(<\/|\?)|=>/,contains:[m,C,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},h,M,n.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[w]},{variants:[{match:[/\bclass/,/\s+/,r,/\s*/,/\(\s*/,r,/\s*\)/]},{match:[/\bclass/,/\s+/,r]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[C,w,h]}]}}function P_(n){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function K_(n){const a=n.regex,r=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,o=a.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),s=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,f=a.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:r,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[n.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:a.lookahead(a.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:r},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),n.HASH_COMMENT_MODE,{scope:"string",contains:[n.BACKSLASH_ESCAPE],variants:[n.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),n.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),n.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),n.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),n.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),n.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[s,o]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,o]},{scope:{1:"punctuation",2:"number"},match:[f,o]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,o]}]},{scope:{3:"operator"},match:[r,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:s},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:f},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function V_(n){const a=n.regex,r="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",o=a.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),s=a.concat(o,/(::\w+)*/),u={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},g={className:"doctag",begin:"@[A-Za-z]+"},m={begin:"#<",end:">"},p=[n.COMMENT("#","$",{contains:[g]}),n.COMMENT("^=begin","^=end",{contains:[g],relevance:10}),n.COMMENT("^__END__",n.MATCH_NOTHING_RE)],b={className:"subst",begin:/#\{/,end:/\}/,keywords:u},h={className:"string",contains:[n.BACKSLASH_ESCAPE,b],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:a.concat(/<<[-~]?'?/,a.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[n.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[n.BACKSLASH_ESCAPE,b]})]}]},v="[1-9](_?[0-9])*|0",k="[0-9](_?[0-9])*",x={className:"number",relevance:0,variants:[{begin:`\\b(${v})(\\.(${k}))?([eE][+-]?(${k})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},C={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:u}]},L=[h,{variants:[{match:[/class\s+/,s,/\s+<\s+/,s]},{match:[/\b(class|module)\s+/,s]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:u},{match:[/(include|extend)\s+/,s],scope:{2:"title.class"},keywords:u},{relevance:0,match:[s,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:o,scope:"title.class"},{match:[/def/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[C]},{begin:n.IDENT_RE+"::"},{className:"symbol",begin:n.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[h,{begin:r}],relevance:0},x,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:u},{begin:"("+n.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[n.BACKSLASH_ESCAPE,b],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(m,p),relevance:0}].concat(m,p);b.contains=L,C.contains=L;const z=[{begin:/^\s*=>/,starts:{end:"$",contains:L}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:u,contains:L}}];return p.unshift(m),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:u,illegal:/\/\*/,contains:[n.SHEBANG({binary:"ruby"})].concat(z).concat(p).concat(L)}}function $_(n){const a=n.regex,r=/(r#)?/,o=a.concat(r,n.UNDERSCORE_IDENT_RE),s=a.concat(r,n.IDENT_RE),f={className:"title.function.invoke",relevance:0,begin:a.concat(/\b/,/(?!let|for|while|if|else|match\b)/,s,a.lookahead(/\s*\(/))},u="([ui](8|16|32|64|128|size)|f(32|64))?",g=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],m=["true","false","Some","None","Ok","Err"],p=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],b=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:n.IDENT_RE+"!?",type:b,keyword:g,literal:m,built_in:p},illegal:"</",contains:[n.C_LINE_COMMENT_MODE,n.COMMENT("/\\*","\\*/",{contains:["self"]}),n.inherit(n.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+u},{begin:"\\b0o([0-7_]+)"+u},{begin:"\\b0x([A-Fa-f0-9_]+)"+u},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+u}],relevance:0},{begin:[/fn/,/\s+/,o],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,o],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,o,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,o],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,o],className:{1:"keyword",3:"title.class"}},{begin:n.IDENT_RE+"::",keywords:{keyword:"Self",built_in:p,type:b}},{className:"punctuation",begin:"->"},f]}}const Z_=n=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:n.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:n.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),X_=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Q_=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],J_=[...X_,...Q_],W_=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),e1=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),t1=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),n1=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function i1(n){const a=Z_(n),r=t1,o=e1,s="@[a-z-]+",f="and or not only",g={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,a.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},a.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+J_.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+o.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+r.join("|")+")"},g,{begin:/\(/,end:/\)/,contains:[a.CSS_NUMBER_MODE]},a.CSS_VARIABLE,{className:"attribute",begin:"\\b("+n1.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[a.BLOCK_COMMENT,g,a.HEXCOLOR,a.CSS_NUMBER_MODE,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,a.IMPORTANT,a.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:s,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:f,attribute:W_.join(" ")},contains:[{begin:s,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},g,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,a.HEXCOLOR,a.CSS_NUMBER_MODE]},a.FUNCTION_DISPATCH]}}function a1(n){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function r1(n){const a=n.regex,r=n.COMMENT("--","$"),o={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},s={begin:/"/,end:/"/,contains:[{match:/""/}]},f=["true","false","unknown"],u=["double precision","large object","with timezone","without timezone"],g=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],m=["add","asc","collation","desc","final","first","last","view"],p=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],b=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],h=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],v=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],k=b,x=[...p,...m].filter(te=>!b.includes(te)),C={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},M={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},w={match:a.concat(/\b/,a.either(...k),/\s*\(/),relevance:0,keywords:{built_in:k}};function q(te){return a.concat(/\b/,a.either(...te.map(L=>L.replace(/\s+/,"\\s+"))),/\b/)}const H={scope:"keyword",match:q(v),relevance:0};function Q(te,{exceptions:L,when:ce}={}){const ee=ce;return L=L||[],te.map(fe=>fe.match(/\|\d+$/)||L.includes(fe)?fe:ee(fe)?`${fe}|0`:fe)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:Q(x,{when:te=>te.length<3}),literal:f,type:g,built_in:h},contains:[{scope:"type",match:q(u)},H,w,C,o,s,n.C_NUMBER_MODE,n.C_BLOCK_COMMENT_MODE,r,M]}}function Dp(n){return n?typeof n=="string"?n:n.source:null}function tl(n){return pt("(?=",n,")")}function pt(...n){return n.map(r=>Dp(r)).join("")}function l1(n){const a=n[n.length-1];return typeof a=="object"&&a.constructor===Object?(n.splice(n.length-1,1),a):{}}function yn(...n){return"("+(l1(n).capture?"":"?:")+n.map(o=>Dp(o)).join("|")+")"}const wc=n=>pt(/\b/,n,/\w$/.test(n)?/\b/:/\B/),o1=["Protocol","Type"].map(wc),Lp=["init","self"].map(wc),s1=["Any","Self"],Tc=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],zp=["false","nil","true"],c1=["assignment","associativity","higherThan","left","lowerThan","none","right"],u1=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],Ip=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],Bp=yn(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),Up=yn(Bp,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Ac=pt(Bp,Up,"*"),Hp=yn(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),po=yn(Hp,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),gi=pt(Hp,po,"*"),go=pt(/[A-Z]/,po,"*"),f1=["attached","autoclosure",pt(/convention\(/,yn("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",pt(/objc\(/,gi,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],d1=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function p1(n){const a={match:/\s+/,relevance:0},r=n.COMMENT("/\\*","\\*/",{contains:["self"]}),o=[n.C_LINE_COMMENT_MODE,r],s={match:[/\./,yn(...o1,...Lp)],className:{2:"keyword"}},f={match:pt(/\./,yn(...Tc)),relevance:0},u=Tc.filter(Ve=>typeof Ve=="string").concat(["_|0"]),g=Tc.filter(Ve=>typeof Ve!="string").concat(s1).map(wc),m={variants:[{className:"keyword",match:yn(...g,...Lp)}]},p={$pattern:yn(/\b\w+/,/#\w+/),keyword:u.concat(u1),literal:zp},b=[s,f,m],h={match:pt(/\./,yn(...Ip)),relevance:0},v={className:"built_in",match:pt(/\b/,yn(...Ip),/(?=\()/)},k=[h,v],x={match:/->/,relevance:0},C={className:"operator",relevance:0,variants:[{match:Ac},{match:`\\.(\\.|${Up})+`}]},M=[x,C],w="([0-9]_*)+",q="([0-9a-fA-F]_*)+",H={className:"number",relevance:0,variants:[{match:`\\b(${w})(\\.(${w}))?([eE][+-]?(${w}))?\\b`},{match:`\\b0x(${q})(\\.(${q}))?([pP][+-]?(${w}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},Q=(Ve="")=>({className:"subst",variants:[{match:pt(/\\/,Ve,/[0\\tnr"']/)},{match:pt(/\\/,Ve,/u\{[0-9a-fA-F]{1,8}\}/)}]}),te=(Ve="")=>({className:"subst",match:pt(/\\/,Ve,/[\t ]*(?:[\r\n]|\r\n)/)}),L=(Ve="")=>({className:"subst",label:"interpol",begin:pt(/\\/,Ve,/\(/),end:/\)/}),ce=(Ve="")=>({begin:pt(Ve,/"""/),end:pt(/"""/,Ve),contains:[Q(Ve),te(Ve),L(Ve)]}),ee=(Ve="")=>({begin:pt(Ve,/"/),end:pt(/"/,Ve),contains:[Q(Ve),L(Ve)]}),fe={className:"string",variants:[ce(),ce("#"),ce("##"),ce("###"),ee(),ee("#"),ee("##"),ee("###")]},z=[n.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[n.BACKSLASH_ESCAPE]}],se={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:z},re=Ve=>{const Qt=pt(Ve,/\//),Sn=pt(/\//,Ve);return{begin:Qt,end:Sn,contains:[...z,{scope:"comment",begin:`#(?!.*${Sn})`,end:/$/}]}},_e={scope:"regexp",variants:[re("###"),re("##"),re("#"),se]},oe={match:pt(/`/,gi,/`/)},X={className:"variable",match:/\$\d+/},Y={className:"variable",match:`\\$${po}+`},G=[oe,X,Y],K={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:d1,contains:[...M,H,fe]}]}},ve={scope:"keyword",match:pt(/@/,yn(...f1),tl(yn(/\(/,/\s+/)))},S={scope:"meta",match:pt(/@/,gi)},Be=[K,ve,S],T={match:tl(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:pt(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,po,"+")},{className:"type",match:go,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:pt(/\s+&\s+/,tl(go)),relevance:0}]},_={begin:/</,end:/>/,keywords:p,contains:[...o,...b,...Be,x,T]};T.contains.push(_);const J={match:pt(gi,/\s*:/),keywords:"_|0",relevance:0},pe={begin:/\(/,end:/\)/,relevance:0,keywords:p,contains:["self",J,...o,_e,...b,...k,...M,H,fe,...G,...Be,T]},de={begin:/</,end:/>/,keywords:"repeat each",contains:[...o,T]},Ce={begin:yn(tl(pt(gi,/\s*:/)),tl(pt(gi,/\s+/,gi,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:gi}]},Ue={begin:/\(/,end:/\)/,keywords:p,contains:[Ce,...o,...b,...M,H,fe,...Be,T,pe],endsParent:!0,illegal:/["']/},kt={match:[/(func|macro)/,/\s+/,yn(oe.match,gi,Ac)],className:{1:"keyword",3:"title.function"},contains:[de,Ue,a],illegal:[/\[/,/%/]},Ke={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[de,Ue,a],illegal:/\[|%/},gt={match:[/operator/,/\s+/,Ac],className:{1:"keyword",3:"title"}},zn={begin:[/precedencegroup/,/\s+/,go],className:{1:"keyword",3:"title"},contains:[T],keywords:[...c1,...zp],end:/}/},Vt={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},bi={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},en={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,gi,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:p,contains:[de,...b,{begin:/:/,end:/\{/,keywords:p,contains:[{scope:"title.class.inherited",match:go},...b],relevance:0}]};for(const Ve of fe.variants){const Qt=Ve.contains.find(Vn=>Vn.label==="interpol");Qt.keywords=p;const Sn=[...b,...k,...M,H,fe,...G];Qt.contains=[...Sn,{begin:/\(/,end:/\)/,contains:["self",...Sn]}]}return{name:"Swift",keywords:p,contains:[...o,kt,Ke,Vt,bi,en,gt,zn,{beginKeywords:"import",end:/$/,contains:[...o],relevance:0},_e,...b,...k,...M,H,fe,...G,...Be,T,pe]}}const mo="[A-Za-z$_][0-9A-Za-z$_]*",qp=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Fp=["true","false","null","undefined","NaN","Infinity"],Gp=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],jp=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Yp=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Pp=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Kp=[].concat(Yp,Gp,jp);function g1(n){const a=n.regex,r=(K,{after:ve})=>{const S="</"+K[0].slice(1);return K.input.indexOf(S,ve)!==-1},o=mo,s={begin:"<>",end:"</>"},f=/<[A-Za-z0-9\\._:-]+\s*\/>/,u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(K,ve)=>{const S=K[0].length+K.index,Be=K.input[S];if(Be==="<"||Be===","){ve.ignoreMatch();return}Be===">"&&(r(K,{after:S})||ve.ignoreMatch());let T;const _=K.input.substring(S);if(T=_.match(/^\s*=/)){ve.ignoreMatch();return}if((T=_.match(/^\s+extends\s+/))&&T.index===0){ve.ignoreMatch();return}}},g={$pattern:mo,keyword:qp,literal:Fp,built_in:Kp,"variable.language":Pp},m="[0-9](_?[0-9])*",p=`\\.(${m})`,b="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",h={className:"number",variants:[{begin:`(\\b(${b})((${p})|\\.)?|(${p}))[eE][+-]?(${m})\\b`},{begin:`\\b(${b})\\b((${p})\\b|\\.)?|(${p})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},v={className:"subst",begin:"\\$\\{",end:"\\}",keywords:g,contains:[]},k={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,v],subLanguage:"xml"}},x={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,v],subLanguage:"css"}},C={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,v],subLanguage:"graphql"}},M={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,v]},q={className:"comment",variants:[n.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:o+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),n.C_BLOCK_COMMENT_MODE,n.C_LINE_COMMENT_MODE]},H=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,k,x,C,M,{match:/\$\d+/},h];v.contains=H.concat({begin:/\{/,end:/\}/,keywords:g,contains:["self"].concat(H)});const Q=[].concat(q,v.contains),te=Q.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:["self"].concat(Q)}]),L={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:te},ce={variants:[{match:[/class/,/\s+/,o,/\s+/,/extends/,/\s+/,a.concat(o,"(",a.concat(/\./,o),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,o],scope:{1:"keyword",3:"title.class"}}]},ee={relevance:0,match:a.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Gp,...jp]}},fe={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},z={variants:[{match:[/function/,/\s+/,o,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[L],illegal:/%/},se={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function re(K){return a.concat("(?!",K.join("|"),")")}const _e={match:a.concat(/\b/,re([...Yp,"super","import"].map(K=>`${K}\\s*\\(`)),o,a.lookahead(/\s*\(/)),className:"title.function",relevance:0},oe={begin:a.concat(/\./,a.lookahead(a.concat(o,/(?![0-9A-Za-z$_(])/))),end:o,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},X={match:[/get|set/,/\s+/,o,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},L]},Y="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",G={match:[/const|var|let/,/\s+/,o,/\s*/,/=\s*/,/(async\s*)?/,a.lookahead(Y)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[L]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:g,exports:{PARAMS_CONTAINS:te,CLASS_REFERENCE:ee},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),fe,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,k,x,C,M,q,{match:/\$\d+/},h,ee,{scope:"attr",match:o+a.lookahead(":"),relevance:0},G,{begin:"("+n.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[q,n.REGEXP_MODE,{className:"function",begin:Y,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:te}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:f},{begin:u.begin,"on:begin":u.isTrulyOpeningTag,end:u.end}],subLanguage:"xml",contains:[{begin:u.begin,end:u.end,skip:!0,contains:["self"]}]}]},z,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+n.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[L,n.inherit(n.TITLE_MODE,{begin:o,className:"title.function"})]},{match:/\.\.\./,relevance:0},oe,{match:"\\$"+o,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[L]},_e,se,ce,X,{match:/\$[(.]/}]}}function m1(n){const a=n.regex,r=g1(n),o=mo,s=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],f={begin:[/namespace/,/\s+/,n.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},u={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:s},contains:[r.exports.CLASS_REFERENCE]},g={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},m=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],p={$pattern:mo,keyword:qp.concat(m),literal:Fp,built_in:Kp.concat(s),"variable.language":Pp},b={className:"meta",begin:"@"+o},h=(C,M,w)=>{const q=C.contains.findIndex(H=>H.label===M);if(q===-1)throw new Error("can not find mode to replace");C.contains.splice(q,1,w)};Object.assign(r.keywords,p),r.exports.PARAMS_CONTAINS.push(b);const v=r.contains.find(C=>C.scope==="attr"),k=Object.assign({},v,{match:a.concat(o,a.lookahead(/\s*\?:/))});r.exports.PARAMS_CONTAINS.push([r.exports.CLASS_REFERENCE,v,k]),r.contains=r.contains.concat([b,f,u,k]),h(r,"shebang",n.SHEBANG()),h(r,"use_strict",g);const x=r.contains.find(C=>C.label==="func.def");return x.relevance=0,Object.assign(r,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),r}function h1(n){const a=n.regex,r={className:"string",begin:/"(""|[^/n])"C\b/},o={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},s=/\d{1,2}\/\d{1,2}\/\d{4}/,f=/\d{4}-\d{1,2}-\d{1,2}/,u=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,g=/\d{1,2}(:\d{1,2}){1,2}/,m={className:"literal",variants:[{begin:a.concat(/# */,a.either(f,s),/ *#/)},{begin:a.concat(/# */,g,/ *#/)},{begin:a.concat(/# */,u,/ *#/)},{begin:a.concat(/# */,a.either(f,s),/ +/,a.either(u,g),/ *#/)}]},p={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},b={className:"label",begin:/^\w+:/},h=n.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),v=n.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[r,o,m,p,b,h,v,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[v]}]}}function b1(n){n.regex;const a=n.COMMENT(/\(;/,/;\)/);a.contains.push("self");const r=n.COMMENT(/;;/,/$/),o=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],s={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},f={className:"variable",begin:/\$[\w_]+/},u={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},g={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},m={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},p={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:o},contains:[r,a,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},f,u,s,n.QUOTE_STRING_MODE,m,p,g]}}function y1(n){const a=n.regex,r=a.concat(/[\p{L}_]/u,a.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),o=/[\p{L}0-9._:-]+/u,s={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},f={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},u=n.inherit(f,{begin:/\(/,end:/\)/}),g=n.inherit(n.APOS_STRING_MODE,{className:"string"}),m=n.inherit(n.QUOTE_STRING_MODE,{className:"string"}),p={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:o,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[s]},{begin:/'/,end:/'/,contains:[s]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[f,m,g,u,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[f,u,m,g]}]}]},n.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[m]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[p],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[p],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:a.concat(/</,a.lookahead(a.concat(r,a.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:p}]},{className:"tag",begin:a.concat(/<\//,a.lookahead(a.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function v1(n){const a="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",o={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},s={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},f={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},u={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[n.BACKSLASH_ESCAPE,s]},g=n.inherit(u,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),v={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},k={end:",",endsWithParent:!0,excludeEnd:!0,keywords:a,relevance:0},x={begin:/\{/,end:/\}/,contains:[k],illegal:"\\n",relevance:0},C={begin:"\\[",end:"\\]",contains:[k],illegal:"\\n",relevance:0},M=[o,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+r},{className:"type",begin:"!<"+r+">"},{className:"type",begin:"!"+r},{className:"type",begin:"!!"+r},{className:"meta",begin:"&"+n.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+n.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},n.HASH_COMMENT_MODE,{beginKeywords:a,keywords:{literal:a}},v,{className:"number",begin:n.C_NUMBER_RE+"\\b",relevance:0},x,C,f,u],w=[...M];return w.pop(),w.push(g),k.contains=w,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:M}}const k1={arduino:t_,bash:n_,c:i_,cpp:a_,csharp:r_,css:g_,diff:m_,go:h_,graphql:b_,ini:y_,java:v_,javascript:S_,json:w_,kotlin:A_,less:z_,lua:I_,makefile:B_,markdown:U_,objectivec:H_,perl:q_,php:F_,"php-template":G_,plaintext:j_,python:Y_,"python-repl":P_,r:K_,ruby:V_,rust:$_,scss:i1,shell:a1,sql:r1,swift:p1,typescript:m1,vbnet:h1,wasm:b1,xml:y1,yaml:v1};var Nc,Vp;function E1(){if(Vp)return Nc;Vp=1;function n(N){return N instanceof Map?N.clear=N.delete=N.set=function(){throw new Error("map is read-only")}:N instanceof Set&&(N.add=N.clear=N.delete=function(){throw new Error("set is read-only")}),Object.freeze(N),Object.getOwnPropertyNames(N).forEach(V=>{const le=N[V],De=typeof le;(De==="object"||De==="function")&&!Object.isFrozen(le)&&n(le)}),N}class a{constructor(V){V.data===void 0&&(V.data={}),this.data=V.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(N){return N.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function o(N,...V){const le=Object.create(null);for(const De in N)le[De]=N[De];return V.forEach(function(De){for(const wt in De)le[wt]=De[wt]}),le}const s="</span>",f=N=>!!N.scope,u=(N,{prefix:V})=>{if(N.startsWith("language:"))return N.replace("language:","language-");if(N.includes(".")){const le=N.split(".");return[`${V}${le.shift()}`,...le.map((De,wt)=>`${De}${"_".repeat(wt+1)}`)].join(" ")}return`${V}${N}`};class g{constructor(V,le){this.buffer="",this.classPrefix=le.classPrefix,V.walk(this)}addText(V){this.buffer+=r(V)}openNode(V){if(!f(V))return;const le=u(V.scope,{prefix:this.classPrefix});this.span(le)}closeNode(V){f(V)&&(this.buffer+=s)}value(){return this.buffer}span(V){this.buffer+=`<span class="${V}">`}}const m=(N={})=>{const V={children:[]};return Object.assign(V,N),V};class p{constructor(){this.rootNode=m(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(V){this.top.children.push(V)}openNode(V){const le=m({scope:V});this.add(le),this.stack.push(le)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(V){return this.constructor._walk(V,this.rootNode)}static _walk(V,le){return typeof le=="string"?V.addText(le):le.children&&(V.openNode(le),le.children.forEach(De=>this._walk(V,De)),V.closeNode(le)),V}static _collapse(V){typeof V!="string"&&V.children&&(V.children.every(le=>typeof le=="string")?V.children=[V.children.join("")]:V.children.forEach(le=>{p._collapse(le)}))}}class b extends p{constructor(V){super(),this.options=V}addText(V){V!==""&&this.add(V)}startScope(V){this.openNode(V)}endScope(){this.closeNode()}__addSublanguage(V,le){const De=V.root;le&&(De.scope=`language:${le}`),this.add(De)}toHTML(){return new g(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function h(N){return N?typeof N=="string"?N:N.source:null}function v(N){return C("(?=",N,")")}function k(N){return C("(?:",N,")*")}function x(N){return C("(?:",N,")?")}function C(...N){return N.map(le=>h(le)).join("")}function M(N){const V=N[N.length-1];return typeof V=="object"&&V.constructor===Object?(N.splice(N.length-1,1),V):{}}function w(...N){return"("+(M(N).capture?"":"?:")+N.map(De=>h(De)).join("|")+")"}function q(N){return new RegExp(N.toString()+"|").exec("").length-1}function H(N,V){const le=N&&N.exec(V);return le&&le.index===0}const Q=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function te(N,{joinWith:V}){let le=0;return N.map(De=>{le+=1;const wt=le;let Qe=h(De),he="";for(;Qe.length>0;){const ge=Q.exec(Qe);if(!ge){he+=Qe;break}he+=Qe.substring(0,ge.index),Qe=Qe.substring(ge.index+ge[0].length),ge[0][0]==="\\"&&ge[1]?he+="\\"+String(Number(ge[1])+wt):(he+=ge[0],ge[0]==="("&&le++)}return he}).map(De=>`(${De})`).join(V)}const L=/\b\B/,ce="[a-zA-Z]\\w*",ee="[a-zA-Z_]\\w*",fe="\\b\\d+(\\.\\d+)?",z="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",se="\\b(0b[01]+)",re="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",_e=(N={})=>{const V=/^#![ ]*\//;return N.binary&&(N.begin=C(V,/.*\b/,N.binary,/\b.*/)),o({scope:"meta",begin:V,end:/$/,relevance:0,"on:begin":(le,De)=>{le.index!==0&&De.ignoreMatch()}},N)},oe={begin:"\\\\[\\s\\S]",relevance:0},X={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[oe]},Y={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[oe]},G={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},K=function(N,V,le={}){const De=o({scope:"comment",begin:N,end:V,contains:[]},le);De.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const wt=w("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return De.contains.push({begin:C(/[ ]+/,"(",wt,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),De},ve=K("//","$"),S=K("/\\*","\\*/"),Be=K("#","$"),T={scope:"number",begin:fe,relevance:0},_={scope:"number",begin:z,relevance:0},J={scope:"number",begin:se,relevance:0},pe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[oe,{begin:/\[/,end:/\]/,relevance:0,contains:[oe]}]},de={scope:"title",begin:ce,relevance:0},Ce={scope:"title",begin:ee,relevance:0},Ue={begin:"\\.\\s*"+ee,relevance:0};var Ke=Object.freeze({__proto__:null,APOS_STRING_MODE:X,BACKSLASH_ESCAPE:oe,BINARY_NUMBER_MODE:J,BINARY_NUMBER_RE:se,COMMENT:K,C_BLOCK_COMMENT_MODE:S,C_LINE_COMMENT_MODE:ve,C_NUMBER_MODE:_,C_NUMBER_RE:z,END_SAME_AS_BEGIN:function(N){return Object.assign(N,{"on:begin":(V,le)=>{le.data._beginMatch=V[1]},"on:end":(V,le)=>{le.data._beginMatch!==V[1]&&le.ignoreMatch()}})},HASH_COMMENT_MODE:Be,IDENT_RE:ce,MATCH_NOTHING_RE:L,METHOD_GUARD:Ue,NUMBER_MODE:T,NUMBER_RE:fe,PHRASAL_WORDS_MODE:G,QUOTE_STRING_MODE:Y,REGEXP_MODE:pe,RE_STARTERS_RE:re,SHEBANG:_e,TITLE_MODE:de,UNDERSCORE_IDENT_RE:ee,UNDERSCORE_TITLE_MODE:Ce});function gt(N,V){N.input[N.index-1]==="."&&V.ignoreMatch()}function zn(N,V){N.className!==void 0&&(N.scope=N.className,delete N.className)}function Vt(N,V){V&&N.beginKeywords&&(N.begin="\\b("+N.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",N.__beforeBegin=gt,N.keywords=N.keywords||N.beginKeywords,delete N.beginKeywords,N.relevance===void 0&&(N.relevance=0))}function bi(N,V){Array.isArray(N.illegal)&&(N.illegal=w(...N.illegal))}function en(N,V){if(N.match){if(N.begin||N.end)throw new Error("begin & end are not supported with match");N.begin=N.match,delete N.match}}function Ve(N,V){N.relevance===void 0&&(N.relevance=1)}const Qt=(N,V)=>{if(!N.beforeMatch)return;if(N.starts)throw new Error("beforeMatch cannot be used with starts");const le=Object.assign({},N);Object.keys(N).forEach(De=>{delete N[De]}),N.keywords=le.keywords,N.begin=C(le.beforeMatch,v(le.begin)),N.starts={relevance:0,contains:[Object.assign(le,{endsParent:!0})]},N.relevance=0,delete le.beforeMatch},Sn=["of","and","for","in","not","or","if","then","parent","list","value"],Vn="keyword";function In(N,V,le=Vn){const De=Object.create(null);return typeof N=="string"?wt(le,N.split(" ")):Array.isArray(N)?wt(le,N):Object.keys(N).forEach(function(Qe){Object.assign(De,In(N[Qe],V,Qe))}),De;function wt(Qe,he){V&&(he=he.map(ge=>ge.toLowerCase())),he.forEach(function(ge){const Se=ge.split("|");De[Se[0]]=[Qe,Ni(Se[0],Se[1])]})}}function Ni(N,V){return V?Number(V):Bn(N)?0:1}function Bn(N){return Sn.includes(N.toLowerCase())}const $n={},Rt=N=>{console.error(N)},lt=(N,...V)=>{console.log(`WARN: ${N}`,...V)},j=(N,V)=>{$n[`${N}/${V}`]||(console.log(`Deprecated as of ${N}. ${V}`),$n[`${N}/${V}`]=!0)},ae=new Error;function Ae(N,V,{key:le}){let De=0;const wt=N[le],Qe={},he={};for(let ge=1;ge<=V.length;ge++)he[ge+De]=wt[ge],Qe[ge+De]=!0,De+=q(V[ge-1]);N[le]=he,N[le]._emit=Qe,N[le]._multi=!0}function qe(N){if(Array.isArray(N.begin)){if(N.skip||N.excludeBegin||N.returnBegin)throw Rt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ae;if(typeof N.beginScope!="object"||N.beginScope===null)throw Rt("beginScope must be object"),ae;Ae(N,N.begin,{key:"beginScope"}),N.begin=te(N.begin,{joinWith:""})}}function nt(N){if(Array.isArray(N.end)){if(N.skip||N.excludeEnd||N.returnEnd)throw Rt("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ae;if(typeof N.endScope!="object"||N.endScope===null)throw Rt("endScope must be object"),ae;Ae(N,N.end,{key:"endScope"}),N.end=te(N.end,{joinWith:""})}}function $t(N){N.scope&&typeof N.scope=="object"&&N.scope!==null&&(N.beginScope=N.scope,delete N.scope)}function dn(N){$t(N),typeof N.beginScope=="string"&&(N.beginScope={_wrap:N.beginScope}),typeof N.endScope=="string"&&(N.endScope={_wrap:N.endScope}),qe(N),nt(N)}function tn(N){function V(he,ge){return new RegExp(h(he),"m"+(N.case_insensitive?"i":"")+(N.unicodeRegex?"u":"")+(ge?"g":""))}class le{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(ge,Se){Se.position=this.position++,this.matchIndexes[this.matchAt]=Se,this.regexes.push([Se,ge]),this.matchAt+=q(ge)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const ge=this.regexes.map(Se=>Se[1]);this.matcherRe=V(te(ge,{joinWith:"|"}),!0),this.lastIndex=0}exec(ge){this.matcherRe.lastIndex=this.lastIndex;const Se=this.matcherRe.exec(ge);if(!Se)return null;const Ge=Se.findIndex((vn,pn)=>pn>0&&vn!==void 0),ct=this.matchIndexes[Ge];return Se.splice(0,Ge),Object.assign(Se,ct)}}class De{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(ge){if(this.multiRegexes[ge])return this.multiRegexes[ge];const Se=new le;return this.rules.slice(ge).forEach(([Ge,ct])=>Se.addRule(Ge,ct)),Se.compile(),this.multiRegexes[ge]=Se,Se}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(ge,Se){this.rules.push([ge,Se]),Se.type==="begin"&&this.count++}exec(ge){const Se=this.getMatcher(this.regexIndex);Se.lastIndex=this.lastIndex;let Ge=Se.exec(ge);if(this.resumingScanAtSamePosition()&&!(Ge&&Ge.index===this.lastIndex)){const ct=this.getMatcher(0);ct.lastIndex=this.lastIndex+1,Ge=ct.exec(ge)}return Ge&&(this.regexIndex+=Ge.position+1,this.regexIndex===this.count&&this.considerAll()),Ge}}function wt(he){const ge=new De;return he.contains.forEach(Se=>ge.addRule(Se.begin,{rule:Se,type:"begin"})),he.terminatorEnd&&ge.addRule(he.terminatorEnd,{type:"end"}),he.illegal&&ge.addRule(he.illegal,{type:"illegal"}),ge}function Qe(he,ge){const Se=he;if(he.isCompiled)return Se;[zn,en,dn,Qt].forEach(ct=>ct(he,ge)),N.compilerExtensions.forEach(ct=>ct(he,ge)),he.__beforeBegin=null,[Vt,bi,Ve].forEach(ct=>ct(he,ge)),he.isCompiled=!0;let Ge=null;return typeof he.keywords=="object"&&he.keywords.$pattern&&(he.keywords=Object.assign({},he.keywords),Ge=he.keywords.$pattern,delete he.keywords.$pattern),Ge=Ge||/\w+/,he.keywords&&(he.keywords=In(he.keywords,N.case_insensitive)),Se.keywordPatternRe=V(Ge,!0),ge&&(he.begin||(he.begin=/\B|\b/),Se.beginRe=V(Se.begin),!he.end&&!he.endsWithParent&&(he.end=/\B|\b/),he.end&&(Se.endRe=V(Se.end)),Se.terminatorEnd=h(Se.end)||"",he.endsWithParent&&ge.terminatorEnd&&(Se.terminatorEnd+=(he.end?"|":"")+ge.terminatorEnd)),he.illegal&&(Se.illegalRe=V(he.illegal)),he.contains||(he.contains=[]),he.contains=[].concat(...he.contains.map(function(ct){return xt(ct==="self"?he:ct)})),he.contains.forEach(function(ct){Qe(ct,Se)}),he.starts&&Qe(he.starts,ge),Se.matcher=wt(Se),Se}if(N.compilerExtensions||(N.compilerExtensions=[]),N.contains&&N.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return N.classNameAliases=o(N.classNameAliases||{}),Qe(N)}function Jt(N){return N?N.endsWithParent||Jt(N.starts):!1}function xt(N){return N.variants&&!N.cachedVariants&&(N.cachedVariants=N.variants.map(function(V){return o(N,{variants:null},V)})),N.cachedVariants?N.cachedVariants:Jt(N)?o(N,{starts:N.starts?o(N.starts):null}):Object.isFrozen(N)?o(N):N}var Et="11.11.1";class St extends Error{constructor(V,le){super(V),this.name="HTMLInjectionError",this.html=le}}const nn=r,Ci=o,La=Symbol("nomatch"),Wi=7,Oi=function(N){const V=Object.create(null),le=Object.create(null),De=[];let wt=!0;const Qe="Could not find the language '{}', did you forget to load/include a language module?",he={disableAutodetect:!0,name:"Plain text",contains:[]};let ge={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:b};function Se(W){return ge.noHighlightRe.test(W)}function Ge(W){let ke=W.className+" ";ke+=W.parentNode?W.parentNode.className:"";const Pe=ge.languageDetectRe.exec(ke);if(Pe){const ot=Nt(Pe[1]);return ot||(lt(Qe.replace("{}",Pe[1])),lt("Falling back to no-highlight mode for this block.",W)),ot?Pe[1]:"no-highlight"}return ke.split(/\s+/).find(ot=>Se(ot)||Nt(ot))}function ct(W,ke,Pe){let ot="",ne="";typeof ke=="object"?(ot=W,Pe=ke.ignoreIllegals,ne=ke.language):(j("10.7.0","highlight(lang, code, ...args) has been deprecated."),j("10.7.0",`Please use highlight(code, options) instead.
27
+ https://github.com/highlightjs/highlight.js/issues/2277`),ne=W,ot=ke),Pe===void 0&&(Pe=!0);const Te={code:ot,language:ne};oi("before:highlight",Te);const Oe=Te.result?Te.result:vn(Te.language,Te.code,Pe);return Oe.code=Te.code,oi("after:highlight",Oe),Oe}function vn(W,ke,Pe,ot){const ne=Object.create(null);function Te(ue,be){return ue.keywords[be]}function Oe(){if(!ze.keywords){Zt.addText(ut);return}let ue=0;ze.keywordPatternRe.lastIndex=0;let be=ze.keywordPatternRe.exec(ut),Fe="";for(;be;){Fe+=ut.substring(ue,be.index);const it=Tn.case_insensitive?be[0].toLowerCase():be[0],Mt=Te(ze,it);if(Mt){const[hn,Eo]=Mt;if(Zt.addText(Fe),Fe="",ne[it]=(ne[it]||0)+1,ne[it]<=Wi&&(Ia+=Eo),hn.startsWith("_"))Fe+=be[0];else{const ol=Tn.classNameAliases[hn]||hn;Re(be[0],ol)}}else Fe+=be[0];ue=ze.keywordPatternRe.lastIndex,be=ze.keywordPatternRe.exec(ut)}Fe+=ut.substring(ue),Zt.addText(Fe)}function Le(){if(ut==="")return;let ue=null;if(typeof ze.subLanguage=="string"){if(!V[ze.subLanguage]){Zt.addText(ut);return}ue=vn(ze.subLanguage,ut,!0,Li[ze.subLanguage]),Li[ze.subLanguage]=ue._top}else ue=Mi(ut,ze.subLanguage.length?ze.subLanguage:null);ze.relevance>0&&(Ia+=ue.relevance),Zt.__addSublanguage(ue._emitter,ue.language)}function Me(){ze.subLanguage!=null?Le():Oe(),ut=""}function Re(ue,be){ue!==""&&(Zt.startScope(be),Zt.addText(ue),Zt.endScope())}function kn(ue,be){let Fe=1;const it=be.length-1;for(;Fe<=it;){if(!ue._emit[Fe]){Fe++;continue}const Mt=Tn.classNameAliases[ue[Fe]]||ue[Fe],hn=be[Fe];Mt?Re(hn,Mt):(ut=hn,Oe(),ut=""),Fe++}}function si(ue,be){return ue.scope&&typeof ue.scope=="string"&&Zt.openNode(Tn.classNameAliases[ue.scope]||ue.scope),ue.beginScope&&(ue.beginScope._wrap?(Re(ut,Tn.classNameAliases[ue.beginScope._wrap]||ue.beginScope._wrap),ut=""):ue.beginScope._multi&&(kn(ue.beginScope,be),ut="")),ze=Object.create(ue,{parent:{value:ze}}),ze}function Ht(ue,be,Fe){let it=H(ue.endRe,Fe);if(it){if(ue["on:end"]){const Mt=new a(ue);ue["on:end"](be,Mt),Mt.isMatchIgnored&&(it=!1)}if(it){for(;ue.endsParent&&ue.parent;)ue=ue.parent;return ue}}if(ue.endsWithParent)return Ht(ue.parent,be,Fe)}function Di(ue){return ze.matcher.regexIndex===0?(ut+=ue[0],1):(ll=!0,0)}function Qn(ue){const be=ue[0],Fe=ue.rule,it=new a(Fe),Mt=[Fe.__beforeBegin,Fe["on:begin"]];for(const hn of Mt)if(hn&&(hn(ue,it),it.isMatchIgnored))return Di(be);return Fe.skip?ut+=be:(Fe.excludeBegin&&(ut+=be),Me(),!Fe.returnBegin&&!Fe.excludeBegin&&(ut=be)),si(Fe,ue),Fe.returnBegin?0:be.length}function ki(ue){const be=ue[0],Fe=ke.substring(ue.index),it=Ht(ze,ue,Fe);if(!it)return La;const Mt=ze;ze.endScope&&ze.endScope._wrap?(Me(),Re(be,ze.endScope._wrap)):ze.endScope&&ze.endScope._multi?(Me(),kn(ze.endScope,ue)):Mt.skip?ut+=be:(Mt.returnEnd||Mt.excludeEnd||(ut+=be),Me(),Mt.excludeEnd&&(ut=be));do ze.scope&&Zt.closeNode(),!ze.skip&&!ze.subLanguage&&(Ia+=ze.relevance),ze=ze.parent;while(ze!==it.parent);return it.starts&&si(it.starts,ue),Mt.returnEnd?0:be.length}function mn(){const ue=[];for(let be=ze;be!==Tn;be=be.parent)be.scope&&ue.unshift(be.scope);ue.forEach(be=>Zt.openNode(be))}let Ei={};function al(ue,be){const Fe=be&&be[0];if(ut+=ue,Fe==null)return Me(),0;if(Ei.type==="begin"&&be.type==="end"&&Ei.index===be.index&&Fe===""){if(ut+=ke.slice(be.index,be.index+1),!wt){const it=new Error(`0 width match regex (${W})`);throw it.languageName=W,it.badRule=Ei.rule,it}return 1}if(Ei=be,be.type==="begin")return Qn(be);if(be.type==="illegal"&&!Pe){const it=new Error('Illegal lexeme "'+Fe+'" for mode "'+(ze.scope||"<unnamed>")+'"');throw it.mode=ze,it}else if(be.type==="end"){const it=ki(be);if(it!==La)return it}if(be.type==="illegal"&&Fe==="")return ut+=`
28
+ `,1;if(rl>1e5&&rl>be.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ut+=Fe,Fe.length}const Tn=Nt(W);if(!Tn)throw Rt(Qe.replace("{}",W)),new Error('Unknown language: "'+W+'"');const ia=tn(Tn);let ur="",ze=ot||ia;const Li={},Zt=new ge.__emitter(ge);mn();let ut="",Ia=0,ci=0,rl=0,ll=!1;try{if(Tn.__emitTokens)Tn.__emitTokens(ke,Zt);else{for(ze.matcher.considerAll();;){rl++,ll?ll=!1:ze.matcher.considerAll(),ze.matcher.lastIndex=ci;const ue=ze.matcher.exec(ke);if(!ue)break;const be=ke.substring(ci,ue.index),Fe=al(be,ue);ci=ue.index+Fe}al(ke.substring(ci))}return Zt.finalize(),ur=Zt.toHTML(),{language:W,value:ur,relevance:Ia,illegal:!1,_emitter:Zt,_top:ze}}catch(ue){if(ue.message&&ue.message.includes("Illegal"))return{language:W,value:nn(ke),illegal:!0,relevance:0,_illegalBy:{message:ue.message,index:ci,context:ke.slice(ci-100,ci+100),mode:ue.mode,resultSoFar:ur},_emitter:Zt};if(wt)return{language:W,value:nn(ke),illegal:!1,relevance:0,errorRaised:ue,_emitter:Zt,_top:ze};throw ue}}function pn(W){const ke={value:nn(W),illegal:!1,relevance:0,_top:he,_emitter:new ge.__emitter(ge)};return ke._emitter.addText(W),ke}function Mi(W,ke){ke=ke||ge.languages||Object.keys(V);const Pe=pn(W),ot=ke.filter(Nt).filter(gn).map(Me=>vn(Me,W,!1));ot.unshift(Pe);const ne=ot.sort((Me,Re)=>{if(Me.relevance!==Re.relevance)return Re.relevance-Me.relevance;if(Me.language&&Re.language){if(Nt(Me.language).supersetOf===Re.language)return 1;if(Nt(Re.language).supersetOf===Me.language)return-1}return 0}),[Te,Oe]=ne,Le=Te;return Le.secondBest=Oe,Le}function ea(W,ke,Pe){const ot=ke&&le[ke]||Pe;W.classList.add("hljs"),W.classList.add(`language-${ot}`)}function wn(W){let ke=null;const Pe=Ge(W);if(Se(Pe))return;if(oi("before:highlightElement",{el:W,language:Pe}),W.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",W);return}if(W.children.length>0&&(ge.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(W)),ge.throwUnescapedHTML))throw new St("One of your code blocks includes unescaped HTML.",W.innerHTML);ke=W;const ot=ke.textContent,ne=Pe?ct(ot,{language:Pe,ignoreIllegals:!0}):Mi(ot);W.innerHTML=ne.value,W.dataset.highlighted="yes",ea(W,Pe,ne.language),W.result={language:ne.language,re:ne.relevance,relevance:ne.relevance},ne.secondBest&&(W.secondBest={language:ne.secondBest.language,relevance:ne.secondBest.relevance}),oi("after:highlightElement",{el:W,result:ne,text:ot})}function It(W){ge=Ci(ge,W)}const Bt=()=>{na(),j("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Zn(){na(),j("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let ta=!1;function na(){function W(){na()}if(document.readyState==="loading"){ta||window.addEventListener("DOMContentLoaded",W,!1),ta=!0;return}document.querySelectorAll(ge.cssSelector).forEach(wn)}function cr(W,ke){let Pe=null;try{Pe=ke(N)}catch(ot){if(Rt("Language definition for '{}' could not be registered.".replace("{}",W)),wt)Rt(ot);else throw ot;Pe=he}Pe.name||(Pe.name=W),V[W]=Pe,Pe.rawDefinition=ke.bind(null,N),Pe.aliases&&Xn(Pe.aliases,{languageName:W})}function yi(W){delete V[W];for(const ke of Object.keys(le))le[ke]===W&&delete le[ke]}function Ut(){return Object.keys(V)}function Nt(W){return W=(W||"").toLowerCase(),V[W]||V[le[W]]}function Xn(W,{languageName:ke}){typeof W=="string"&&(W=[W]),W.forEach(Pe=>{le[Pe.toLowerCase()]=ke})}function gn(W){const ke=Nt(W);return ke&&!ke.disableAutodetect}function Ri(W){W["before:highlightBlock"]&&!W["before:highlightElement"]&&(W["before:highlightElement"]=ke=>{W["before:highlightBlock"](Object.assign({block:ke.el},ke))}),W["after:highlightBlock"]&&!W["after:highlightElement"]&&(W["after:highlightElement"]=ke=>{W["after:highlightBlock"](Object.assign({block:ke.el},ke))})}function vi(W){Ri(W),De.push(W)}function Dt(W){const ke=De.indexOf(W);ke!==-1&&De.splice(ke,1)}function oi(W,ke){const Pe=W;De.forEach(function(ot){ot[Pe]&&ot[Pe](ke)})}function za(W){return j("10.7.0","highlightBlock will be removed entirely in v12.0"),j("10.7.0","Please use highlightElement now."),wn(W)}Object.assign(N,{highlight:ct,highlightAuto:Mi,highlightAll:na,highlightElement:wn,highlightBlock:za,configure:It,initHighlighting:Bt,initHighlightingOnLoad:Zn,registerLanguage:cr,unregisterLanguage:yi,listLanguages:Ut,getLanguage:Nt,registerAliases:Xn,autoDetection:gn,inherit:Ci,addPlugin:vi,removePlugin:Dt}),N.debugMode=function(){wt=!1},N.safeMode=function(){wt=!0},N.versionString=Et,N.regex={concat:C,lookahead:v,either:w,optional:x,anyNumberOfTimes:k};for(const W in Ke)typeof Ke[W]=="object"&&n(Ke[W]);return Object.assign(N,Ke),N},Ot=Oi({});return Ot.newInstance=()=>Oi({}),Nc=Ot,Ot.HighlightJS=Ot,Ot.default=Ot,Nc}var _1=E1();const x1=Os(_1),$p={},S1="hljs-";function w1(n){const a=x1.newInstance();return n&&f(n),{highlight:r,highlightAuto:o,listLanguages:s,register:f,registerAlias:u,registered:g};function r(m,p,b){const h=b||$p,v=typeof h.prefix=="string"?h.prefix:S1;if(!a.getLanguage(m))throw new Error("Unknown language: `"+m+"` is not registered");a.configure({__emitter:T1,classPrefix:v});const k=a.highlight(p,{ignoreIllegals:!0,language:m});if(k.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:k.errorRaised});const x=k._emitter.root,C=x.data;return C.language=k.language,C.relevance=k.relevance,x}function o(m,p){const h=(p||$p).subset||s();let v=-1,k=0,x;for(;++v<h.length;){const C=h[v];if(!a.getLanguage(C))continue;const M=r(C,m,p);M.data&&M.data.relevance!==void 0&&M.data.relevance>k&&(k=M.data.relevance,x=M)}return x||{type:"root",children:[],data:{language:void 0,relevance:k}}}function s(){return a.listLanguages()}function f(m,p){if(typeof m=="string")a.registerLanguage(m,p);else{let b;for(b in m)Object.hasOwn(m,b)&&a.registerLanguage(b,m[b])}}function u(m,p){if(typeof m=="string")a.registerAliases(typeof p=="string"?p:[...p],{languageName:m});else{let b;for(b in m)if(Object.hasOwn(m,b)){const h=m[b];a.registerAliases(typeof h=="string"?h:[...h],{languageName:b})}}}function g(m){return!!a.getLanguage(m)}}class T1{constructor(a){this.options=a,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(a){if(a==="")return;const r=this.stack[this.stack.length-1],o=r.children[r.children.length-1];o&&o.type==="text"?o.value+=a:r.children.push({type:"text",value:a})}startScope(a){this.openNode(String(a))}endScope(){this.closeNode()}__addSublanguage(a,r){const o=this.stack[this.stack.length-1],s=a.root.children;r?o.children.push({type:"element",tagName:"span",properties:{className:[r]},children:s}):o.children.push(...s)}openNode(a){const r=this,o=a.split(".").map(function(u,g){return g?u+"_".repeat(g):r.options.classPrefix+u}),s=this.stack[this.stack.length-1],f={type:"element",tagName:"span",properties:{className:o},children:[]};s.children.push(f),this.stack.push(f)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const A1={};function N1(n){const a=n||A1,r=a.aliases,o=a.detect||!1,s=a.languages||k1,f=a.plainText,u=a.prefix,g=a.subset;let m="hljs";const p=w1(s);if(r&&p.registerAlias(r),u){const b=u.indexOf("-");m=b===-1?u:u.slice(0,b)}return function(b,h){lo(b,"element",function(v,k,x){if(v.tagName!=="code"||!x||x.type!=="element"||x.tagName!=="pre")return;const C=C1(v);if(C===!1||!C&&!o||C&&f&&f.includes(C))return;Array.isArray(v.properties.className)||(v.properties.className=[]),v.properties.className.includes(m)||v.properties.className.unshift(m);const M=VE(v,{whitespace:"pre"});let w;try{w=C?p.highlight(C,M,{prefix:u}):p.highlightAuto(M,{prefix:u,subset:g})}catch(q){const H=q;if(C&&/Unknown language/.test(H.message)){h.message("Cannot highlight as `"+C+"`, it’s not registered",{ancestors:[x,v],cause:H,place:v.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw H}!C&&w.data&&w.data.language&&v.properties.className.push("language-"+w.data.language),w.children.length>0&&(v.children=w.children)})}}function C1(n){const a=n.properties.className;let r=-1;if(!Array.isArray(a))return;let o;for(;++r<a.length;){const s=String(a[r]);if(s==="no-highlight"||s==="nohighlight")return!1;!o&&s.slice(0,5)==="lang-"&&(o=s.slice(5)),!o&&s.slice(0,9)==="language-"&&(o=s.slice(9))}return o}function Zp(n,a){const r=String(n);if(typeof a!="string")throw new TypeError("Expected character");let o=0,s=r.indexOf(a);for(;s!==-1;)o++,s=r.indexOf(a,s+a.length);return o}function O1(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function M1(n,a,r){const s=Wr((r||{}).ignore||[]),f=R1(a);let u=-1;for(;++u<f.length;)rp(n,"text",g);function g(p,b){let h=-1,v;for(;++h<b.length;){const k=b[h],x=v?v.children:void 0;if(s(k,x?x.indexOf(k):void 0,v))return;v=k}if(v)return m(p,b)}function m(p,b){const h=b[b.length-1],v=f[u][0],k=f[u][1];let x=0;const M=h.children.indexOf(p);let w=!1,q=[];v.lastIndex=0;let H=v.exec(p.value);for(;H;){const Q=H.index,te={index:H.index,input:H.input,stack:[...b,p]};let L=k(...H,te);if(typeof L=="string"&&(L=L.length>0?{type:"text",value:L}:void 0),L===!1?v.lastIndex=Q+1:(x!==Q&&q.push({type:"text",value:p.value.slice(x,Q)}),Array.isArray(L)?q.push(...L):L&&q.push(L),x=Q+H[0].length,w=!0),!v.global)break;H=v.exec(p.value)}return w?(x<p.value.length&&q.push({type:"text",value:p.value.slice(x)}),h.children.splice(M,1,...q)):q=[p],M+q.length}}function R1(n){const a=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!n[0]||Array.isArray(n[0])?n:[n];let o=-1;for(;++o<r.length;){const s=r[o];a.push([D1(s[0]),L1(s[1])])}return a}function D1(n){return typeof n=="string"?new RegExp(O1(n),"g"):n}function L1(n){return typeof n=="function"?n:function(){return n}}const Cc="phrasing",Oc=["autolink","link","image","label"];function z1(){return{transforms:[G1],enter:{literalAutolink:B1,literalAutolinkEmail:Mc,literalAutolinkHttp:Mc,literalAutolinkWww:Mc},exit:{literalAutolink:F1,literalAutolinkEmail:q1,literalAutolinkHttp:U1,literalAutolinkWww:H1}}}function I1(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Cc,notInConstruct:Oc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Cc,notInConstruct:Oc},{character:":",before:"[ps]",after:"\\/",inConstruct:Cc,notInConstruct:Oc}]}}function B1(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function Mc(n){this.config.enter.autolinkProtocol.call(this,n)}function U1(n){this.config.exit.autolinkProtocol.call(this,n)}function H1(n){this.config.exit.data.call(this,n);const a=this.stack[this.stack.length-1];a.type,a.url="http://"+this.sliceSerialize(n)}function q1(n){this.config.exit.autolinkEmail.call(this,n)}function F1(n){this.exit(n)}function G1(n){M1(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,j1],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Y1]],{ignore:["link","linkReference"]})}function j1(n,a,r,o,s){let f="";if(!Xp(s)||(/^w/i.test(a)&&(r=a+r,a="",f="http://"),!P1(r)))return!1;const u=K1(r+o);if(!u[0])return!1;const g={type:"link",title:null,url:f+a+u[0],children:[{type:"text",value:a+u[0]}]};return u[1]?[g,{type:"text",value:u[1]}]:g}function Y1(n,a,r,o){return!Xp(o,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+r,children:[{type:"text",value:a+"@"+r}]}}function P1(n){const a=n.split(".");return!(a.length<2||a[a.length-1]&&(/_/.test(a[a.length-1])||!/[a-zA-Z\d]/.test(a[a.length-1]))||a[a.length-2]&&(/_/.test(a[a.length-2])||!/[a-zA-Z\d]/.test(a[a.length-2])))}function K1(n){const a=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!a)return[n,void 0];n=n.slice(0,a.index);let r=a[0],o=r.indexOf(")");const s=Zp(n,"(");let f=Zp(n,")");for(;o!==-1&&s>f;)n+=r.slice(0,o+1),r=r.slice(o+1),o=r.indexOf(")"),f++;return[n,r]}function Xp(n,a){const r=n.input.charCodeAt(n.index-1);return(n.index===0||Oa(r)||Ql(r))&&(!a||r!==47)}Qp.peek=tx;function V1(){this.buffer()}function $1(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function Z1(){this.buffer()}function X1(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function Q1(n){const a=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=li(this.sliceSerialize(n)).toLowerCase(),r.label=a}function J1(n){this.exit(n)}function W1(n){const a=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=li(this.sliceSerialize(n)).toLowerCase(),r.label=a}function ex(n){this.exit(n)}function tx(){return"["}function Qp(n,a,r,o){const s=r.createTracker(o);let f=s.move("[^");const u=r.enter("footnoteReference"),g=r.enter("reference");return f+=s.move(r.safe(r.associationId(n),{after:"]",before:f})),g(),u(),f+=s.move("]"),f}function nx(){return{enter:{gfmFootnoteCallString:V1,gfmFootnoteCall:$1,gfmFootnoteDefinitionLabelString:Z1,gfmFootnoteDefinition:X1},exit:{gfmFootnoteCallString:Q1,gfmFootnoteCall:J1,gfmFootnoteDefinitionLabelString:W1,gfmFootnoteDefinition:ex}}}function ix(n){let a=!1;return n&&n.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:r,footnoteReference:Qp},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(o,s,f,u){const g=f.createTracker(u);let m=g.move("[^");const p=f.enter("footnoteDefinition"),b=f.enter("label");return m+=g.move(f.safe(f.associationId(o),{before:m,after:"]"})),b(),m+=g.move("]:"),o.children&&o.children.length>0&&(g.shift(4),m+=g.move((a?`
29
+ `:" ")+f.indentLines(f.containerFlow(o,g.current()),a?Jp:ax))),p(),m}}function ax(n,a,r){return a===0?n:Jp(n,a,r)}function Jp(n,a,r){return(r?"":" ")+n}const rx=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Wp.peek=ux;function lx(){return{canContainEols:["delete"],enter:{strikethrough:sx},exit:{strikethrough:cx}}}function ox(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:rx}],handlers:{delete:Wp}}}function sx(n){this.enter({type:"delete",children:[]},n)}function cx(n){this.exit(n)}function Wp(n,a,r,o){const s=r.createTracker(o),f=r.enter("strikethrough");let u=s.move("~~");return u+=r.containerPhrasing(n,{...s.current(),before:u,after:"~"}),u+=s.move("~~"),f(),u}function ux(){return"~"}function fx(n){return n.length}function dx(n,a){const r=a||{},o=(r.align||[]).concat(),s=r.stringLength||fx,f=[],u=[],g=[],m=[];let p=0,b=-1;for(;++b<n.length;){const C=[],M=[];let w=-1;for(n[b].length>p&&(p=n[b].length);++w<n[b].length;){const q=px(n[b][w]);if(r.alignDelimiters!==!1){const H=s(q);M[w]=H,(m[w]===void 0||H>m[w])&&(m[w]=H)}C.push(q)}u[b]=C,g[b]=M}let h=-1;if(typeof o=="object"&&"length"in o)for(;++h<p;)f[h]=eg(o[h]);else{const C=eg(o);for(;++h<p;)f[h]=C}h=-1;const v=[],k=[];for(;++h<p;){const C=f[h];let M="",w="";C===99?(M=":",w=":"):C===108?M=":":C===114&&(w=":");let q=r.alignDelimiters===!1?1:Math.max(1,m[h]-M.length-w.length);const H=M+"-".repeat(q)+w;r.alignDelimiters!==!1&&(q=M.length+q+w.length,q>m[h]&&(m[h]=q),k[h]=q),v[h]=H}u.splice(1,0,v),g.splice(1,0,k),b=-1;const x=[];for(;++b<u.length;){const C=u[b],M=g[b];h=-1;const w=[];for(;++h<p;){const q=C[h]||"";let H="",Q="";if(r.alignDelimiters!==!1){const te=m[h]-(M[h]||0),L=f[h];L===114?H=" ".repeat(te):L===99?te%2?(H=" ".repeat(te/2+.5),Q=" ".repeat(te/2-.5)):(H=" ".repeat(te/2),Q=H):Q=" ".repeat(te)}r.delimiterStart!==!1&&!h&&w.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&q==="")&&(r.delimiterStart!==!1||h)&&w.push(" "),r.alignDelimiters!==!1&&w.push(H),w.push(q),r.alignDelimiters!==!1&&w.push(Q),r.padding!==!1&&w.push(" "),(r.delimiterEnd!==!1||h!==p-1)&&w.push("|")}x.push(r.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return x.join(`
30
+ `)}function px(n){return n==null?"":String(n)}function eg(n){const a=typeof n=="string"?n.codePointAt(0):0;return a===67||a===99?99:a===76||a===108?108:a===82||a===114?114:0}function gx(n,a,r,o){const s=r.enter("blockquote"),f=r.createTracker(o);f.move("> "),f.shift(2);const u=r.indentLines(r.containerFlow(n,f.current()),mx);return s(),u}function mx(n,a,r){return">"+(r?"":" ")+n}function hx(n,a){return tg(n,a.inConstruct,!0)&&!tg(n,a.notInConstruct,!1)}function tg(n,a,r){if(typeof a=="string"&&(a=[a]),!a||a.length===0)return r;let o=-1;for(;++o<a.length;)if(n.includes(a[o]))return!0;return!1}function ng(n,a,r,o){let s=-1;for(;++s<r.unsafe.length;)if(r.unsafe[s].character===`
31
+ `&&hx(r.stack,r.unsafe[s]))return/[ \t]/.test(o.before)?"":" ";return`\\
32
+ `}function bx(n,a){const r=String(n);let o=r.indexOf(a),s=o,f=0,u=0;if(typeof a!="string")throw new TypeError("Expected substring");for(;o!==-1;)o===s?++f>u&&(u=f):f=1,s=o+a.length,o=r.indexOf(a,s);return u}function yx(n,a){return!!(a.options.fences===!1&&n.value&&!n.lang&&/[^ \r\n]/.test(n.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(n.value))}function vx(n){const a=n.options.fence||"`";if(a!=="`"&&a!=="~")throw new Error("Cannot serialize code with `"+a+"` for `options.fence`, expected `` ` `` or `~`");return a}function kx(n,a,r,o){const s=vx(r),f=n.value||"",u=s==="`"?"GraveAccent":"Tilde";if(yx(n,r)){const h=r.enter("codeIndented"),v=r.indentLines(f,Ex);return h(),v}const g=r.createTracker(o),m=s.repeat(Math.max(bx(f,s)+1,3)),p=r.enter("codeFenced");let b=g.move(m);if(n.lang){const h=r.enter(`codeFencedLang${u}`);b+=g.move(r.safe(n.lang,{before:b,after:" ",encode:["`"],...g.current()})),h()}if(n.lang&&n.meta){const h=r.enter(`codeFencedMeta${u}`);b+=g.move(" "),b+=g.move(r.safe(n.meta,{before:b,after:`
33
+ `,encode:["`"],...g.current()})),h()}return b+=g.move(`
34
34
  `),f&&(b+=g.move(f+`
35
- `)),b+=g.move(h),p(),b}function bx(n,a,r){return(r?"":" ")+n}function Cc(n){const a=n.options.quote||'"';if(a!=='"'&&a!=="'")throw new Error("Cannot serialize title with `"+a+"` for `options.quote`, expected `\"`, or `'`");return a}function yx(n,a,r,o){const s=Cc(r),f=s==='"'?"Quote":"Apostrophe",u=r.enter("definition");let g=r.enter("label");const h=r.createTracker(o);let p=h.move("[");return p+=h.move(r.safe(r.associationId(n),{before:p,after:"]",...h.current()})),p+=h.move("]: "),g(),!n.url||/[\0- \u007F]/.test(n.url)?(g=r.enter("destinationLiteral"),p+=h.move("<"),p+=h.move(r.safe(n.url,{before:p,after:">",...h.current()})),p+=h.move(">")):(g=r.enter("destinationRaw"),p+=h.move(r.safe(n.url,{before:p,after:n.title?" ":`
36
- `,...h.current()}))),g(),n.title&&(g=r.enter(`title${f}`),p+=h.move(" "+s),p+=h.move(r.safe(n.title,{before:p,after:s,...h.current()})),p+=h.move(s),g()),u(),p}function Ex(n){const a=n.options.emphasis||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize emphasis with `"+a+"` for `options.emphasis`, expected `*`, or `_`");return a}function Xr(n){return"&#x"+n.toString(16).toUpperCase()+";"}function fo(n,a,r){const o=Za(n),s=Za(a);return o===void 0?s===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:o===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}tg.peek=vx;function tg(n,a,r,o){const s=Ex(r),f=r.enter("emphasis"),u=r.createTracker(o),g=u.move(s);let h=u.move(r.containerPhrasing(n,{after:s,before:g,...u.current()}));const p=h.charCodeAt(0),b=fo(o.before.charCodeAt(o.before.length-1),p,s);b.inside&&(h=Xr(p)+h.slice(1));const m=h.charCodeAt(h.length-1),E=fo(o.after.charCodeAt(0),m,s);E.inside&&(h=h.slice(0,-1)+Xr(m));const v=u.move(s);return f(),r.attentionEncodeSurroundingInfo={after:E.outside,before:b.outside},g+h+v}function vx(n,a,r){return r.options.emphasis||"*"}function _x(n,a){let r=!1;return no(n,function(o){if("value"in o&&/\r?\n|\r/.test(o.value)||o.type==="break")return r=!0,oc}),!!((!n.depth||n.depth<3)&&Xs(n)&&(a.options.setext||r))}function kx(n,a,r,o){const s=Math.max(Math.min(6,n.depth||1),1),f=r.createTracker(o);if(_x(n,r)){const b=r.enter("headingSetext"),m=r.enter("phrasing"),E=r.containerPhrasing(n,{...f.current(),before:`
35
+ `)),b+=g.move(m),p(),b}function Ex(n,a,r){return(r?"":" ")+n}function Rc(n){const a=n.options.quote||'"';if(a!=='"'&&a!=="'")throw new Error("Cannot serialize title with `"+a+"` for `options.quote`, expected `\"`, or `'`");return a}function _x(n,a,r,o){const s=Rc(r),f=s==='"'?"Quote":"Apostrophe",u=r.enter("definition");let g=r.enter("label");const m=r.createTracker(o);let p=m.move("[");return p+=m.move(r.safe(r.associationId(n),{before:p,after:"]",...m.current()})),p+=m.move("]: "),g(),!n.url||/[\0- \u007F]/.test(n.url)?(g=r.enter("destinationLiteral"),p+=m.move("<"),p+=m.move(r.safe(n.url,{before:p,after:">",...m.current()})),p+=m.move(">")):(g=r.enter("destinationRaw"),p+=m.move(r.safe(n.url,{before:p,after:n.title?" ":`
36
+ `,...m.current()}))),g(),n.title&&(g=r.enter(`title${f}`),p+=m.move(" "+s),p+=m.move(r.safe(n.title,{before:p,after:s,...m.current()})),p+=m.move(s),g()),u(),p}function xx(n){const a=n.options.emphasis||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize emphasis with `"+a+"` for `options.emphasis`, expected `*`, or `_`");return a}function nl(n){return"&#x"+n.toString(16).toUpperCase()+";"}function ho(n,a,r){const o=nr(n),s=nr(a);return o===void 0?s===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:o===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}ig.peek=Sx;function ig(n,a,r,o){const s=xx(r),f=r.enter("emphasis"),u=r.createTracker(o),g=u.move(s);let m=u.move(r.containerPhrasing(n,{after:s,before:g,...u.current()}));const p=m.charCodeAt(0),b=ho(o.before.charCodeAt(o.before.length-1),p,s);b.inside&&(m=nl(p)+m.slice(1));const h=m.charCodeAt(m.length-1),v=ho(o.after.charCodeAt(0),h,s);v.inside&&(m=m.slice(0,-1)+nl(h));const k=u.move(s);return f(),r.attentionEncodeSurroundingInfo={after:v.outside,before:b.outside},g+m+k}function Sx(n,a,r){return r.options.emphasis||"*"}function wx(n,a){let r=!1;return lo(n,function(o){if("value"in o&&/\r?\n|\r/.test(o.value)||o.type==="break")return r=!0,uc}),!!((!n.depth||n.depth<3)&&Ws(n)&&(a.options.setext||r))}function Tx(n,a,r,o){const s=Math.max(Math.min(6,n.depth||1),1),f=r.createTracker(o);if(wx(n,r)){const b=r.enter("headingSetext"),h=r.enter("phrasing"),v=r.containerPhrasing(n,{...f.current(),before:`
37
37
  `,after:`
38
- `});return m(),b(),E+`
39
- `+(s===1?"=":"-").repeat(E.length-(Math.max(E.lastIndexOf("\r"),E.lastIndexOf(`
40
- `))+1))}const u="#".repeat(s),g=r.enter("headingAtx"),h=r.enter("phrasing");f.move(u+" ");let p=r.containerPhrasing(n,{before:"# ",after:`
41
- `,...f.current()});return/^[\t ]/.test(p)&&(p=Xr(p.charCodeAt(0))+p.slice(1)),p=p?u+" "+p:u,r.options.closeAtx&&(p+=" "+u),h(),g(),p}ng.peek=xx;function ng(n){return n.value||""}function xx(){return"<"}ig.peek=Sx;function ig(n,a,r,o){const s=Cc(r),f=s==='"'?"Quote":"Apostrophe",u=r.enter("image");let g=r.enter("label");const h=r.createTracker(o);let p=h.move("![");return p+=h.move(r.safe(n.alt,{before:p,after:"]",...h.current()})),p+=h.move("]("),g(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(g=r.enter("destinationLiteral"),p+=h.move("<"),p+=h.move(r.safe(n.url,{before:p,after:">",...h.current()})),p+=h.move(">")):(g=r.enter("destinationRaw"),p+=h.move(r.safe(n.url,{before:p,after:n.title?" ":")",...h.current()}))),g(),n.title&&(g=r.enter(`title${f}`),p+=h.move(" "+s),p+=h.move(r.safe(n.title,{before:p,after:s,...h.current()})),p+=h.move(s),g()),p+=h.move(")"),u(),p}function Sx(){return"!"}ag.peek=wx;function ag(n,a,r,o){const s=n.referenceType,f=r.enter("imageReference");let u=r.enter("label");const g=r.createTracker(o);let h=g.move("![");const p=r.safe(n.alt,{before:h,after:"]",...g.current()});h+=g.move(p+"]["),u();const b=r.stack;r.stack=[],u=r.enter("reference");const m=r.safe(r.associationId(n),{before:h,after:"]",...g.current()});return u(),r.stack=b,f(),s==="full"||!p||p!==m?h+=g.move(m+"]"):s==="shortcut"?h=h.slice(0,-1):h+=g.move("]"),h}function wx(){return"!"}rg.peek=Tx;function rg(n,a,r){let o=n.value||"",s="`",f=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(o);)s+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++f<r.unsafe.length;){const u=r.unsafe[f],g=r.compilePattern(u);let h;if(u.atBreak)for(;h=g.exec(o);){let p=h.index;o.charCodeAt(p)===10&&o.charCodeAt(p-1)===13&&p--,o=o.slice(0,p)+" "+o.slice(h.index+1)}}return s+o+s}function Tx(){return"`"}function lg(n,a){const r=Xs(n);return!!(!a.options.resourceLink&&n.url&&!n.title&&n.children&&n.children.length===1&&n.children[0].type==="text"&&(r===n.url||"mailto:"+r===n.url)&&/^[a-z][a-z+.-]+:/i.test(n.url)&&!/[\0- <>\u007F]/.test(n.url))}og.peek=Ax;function og(n,a,r,o){const s=Cc(r),f=s==='"'?"Quote":"Apostrophe",u=r.createTracker(o);let g,h;if(lg(n,r)){const b=r.stack;r.stack=[],g=r.enter("autolink");let m=u.move("<");return m+=u.move(r.containerPhrasing(n,{before:m,after:">",...u.current()})),m+=u.move(">"),g(),r.stack=b,m}g=r.enter("link"),h=r.enter("label");let p=u.move("[");return p+=u.move(r.containerPhrasing(n,{before:p,after:"](",...u.current()})),p+=u.move("]("),h(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(h=r.enter("destinationLiteral"),p+=u.move("<"),p+=u.move(r.safe(n.url,{before:p,after:">",...u.current()})),p+=u.move(">")):(h=r.enter("destinationRaw"),p+=u.move(r.safe(n.url,{before:p,after:n.title?" ":")",...u.current()}))),h(),n.title&&(h=r.enter(`title${f}`),p+=u.move(" "+s),p+=u.move(r.safe(n.title,{before:p,after:s,...u.current()})),p+=u.move(s),h()),p+=u.move(")"),g(),p}function Ax(n,a,r){return lg(n,r)?"<":"["}sg.peek=Nx;function sg(n,a,r,o){const s=n.referenceType,f=r.enter("linkReference");let u=r.enter("label");const g=r.createTracker(o);let h=g.move("[");const p=r.containerPhrasing(n,{before:h,after:"]",...g.current()});h+=g.move(p+"]["),u();const b=r.stack;r.stack=[],u=r.enter("reference");const m=r.safe(r.associationId(n),{before:h,after:"]",...g.current()});return u(),r.stack=b,f(),s==="full"||!p||p!==m?h+=g.move(m+"]"):s==="shortcut"?h=h.slice(0,-1):h+=g.move("]"),h}function Nx(){return"["}function Oc(n){const a=n.options.bullet||"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bullet`, expected `*`, `+`, or `-`");return a}function Cx(n){const a=Oc(n),r=n.options.bulletOther;if(!r)return a==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===a)throw new Error("Expected `bullet` (`"+a+"`) and `bulletOther` (`"+r+"`) to be different");return r}function Ox(n){const a=n.options.bulletOrdered||".";if(a!=="."&&a!==")")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOrdered`, expected `.` or `)`");return a}function cg(n){const a=n.options.rule||"*";if(a!=="*"&&a!=="-"&&a!=="_")throw new Error("Cannot serialize rules with `"+a+"` for `options.rule`, expected `*`, `-`, or `_`");return a}function Mx(n,a,r,o){const s=r.enter("list"),f=r.bulletCurrent;let u=n.ordered?Ox(r):Oc(r);const g=n.ordered?u==="."?")":".":Cx(r);let h=a&&r.bulletLastUsed?u===r.bulletLastUsed:!1;if(!n.ordered){const b=n.children?n.children[0]:void 0;if((u==="*"||u==="-")&&b&&(!b.children||!b.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(h=!0),cg(r)===u&&b){let m=-1;for(;++m<n.children.length;){const E=n.children[m];if(E&&E.type==="listItem"&&E.children&&E.children[0]&&E.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(u=g),r.bulletCurrent=u;const p=r.containerFlow(n,o);return r.bulletLastUsed=u,r.bulletCurrent=f,s(),p}function Rx(n){const a=n.options.listItemIndent||"one";if(a!=="tab"&&a!=="one"&&a!=="mixed")throw new Error("Cannot serialize items with `"+a+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return a}function Dx(n,a,r,o){const s=Rx(r);let f=r.bulletCurrent||Oc(r);a&&a.type==="list"&&a.ordered&&(f=(typeof a.start=="number"&&a.start>-1?a.start:1)+(r.options.incrementListMarker===!1?0:a.children.indexOf(n))+f);let u=f.length+1;(s==="tab"||s==="mixed"&&(a&&a.type==="list"&&a.spread||n.spread))&&(u=Math.ceil(u/4)*4);const g=r.createTracker(o);g.move(f+" ".repeat(u-f.length)),g.shift(u);const h=r.enter("listItem"),p=r.indentLines(r.containerFlow(n,g.current()),b);return h(),p;function b(m,E,v){return E?(v?"":" ".repeat(u))+m:(v?f:f+" ".repeat(u-f.length))+m}}function Lx(n,a,r,o){const s=r.enter("paragraph"),f=r.enter("phrasing"),u=r.containerPhrasing(n,o);return f(),s(),u}const zx=Vr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Ix(n,a,r,o){return(n.children.some(function(u){return zx(u)})?r.containerPhrasing:r.containerFlow).call(r,n,o)}function Bx(n){const a=n.options.strong||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize strong with `"+a+"` for `options.strong`, expected `*`, or `_`");return a}ug.peek=Ux;function ug(n,a,r,o){const s=Bx(r),f=r.enter("strong"),u=r.createTracker(o),g=u.move(s+s);let h=u.move(r.containerPhrasing(n,{after:s,before:g,...u.current()}));const p=h.charCodeAt(0),b=fo(o.before.charCodeAt(o.before.length-1),p,s);b.inside&&(h=Xr(p)+h.slice(1));const m=h.charCodeAt(h.length-1),E=fo(o.after.charCodeAt(0),m,s);E.inside&&(h=h.slice(0,-1)+Xr(m));const v=u.move(s+s);return f(),r.attentionEncodeSurroundingInfo={after:E.outside,before:b.outside},g+h+v}function Ux(n,a,r){return r.options.strong||"*"}function Hx(n,a,r,o){return r.safe(n.value,o)}function qx(n){const a=n.options.ruleRepetition||3;if(a<3)throw new Error("Cannot serialize rules with repetition `"+a+"` for `options.ruleRepetition`, expected `3` or more");return a}function Fx(n,a,r){const o=(cg(r)+(r.options.ruleSpaces?" ":"")).repeat(qx(r));return r.options.ruleSpaces?o.slice(0,-1):o}const fg={blockquote:ux,break:eg,code:mx,definition:yx,emphasis:tg,hardBreak:eg,heading:kx,html:ng,image:ig,imageReference:ag,inlineCode:rg,link:og,linkReference:sg,list:Mx,listItem:Dx,paragraph:Lx,root:Ix,strong:ug,text:Hx,thematicBreak:Fx};function Gx(){return{enter:{table:jx,tableData:dg,tableHeader:dg,tableRow:Px},exit:{codeText:Kx,table:Yx,tableData:Mc,tableHeader:Mc,tableRow:Mc}}}function jx(n){const a=n._align;this.enter({type:"table",align:a.map(function(r){return r==="none"?null:r}),children:[]},n),this.data.inTable=!0}function Yx(n){this.exit(n),this.data.inTable=void 0}function Px(n){this.enter({type:"tableRow",children:[]},n)}function Mc(n){this.exit(n)}function dg(n){this.enter({type:"tableCell",children:[]},n)}function Kx(n){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,Vx));const r=this.stack[this.stack.length-1];r.type,r.value=a,this.exit(n)}function Vx(n,a){return a==="|"?a:n}function $x(n){const a=n||{},r=a.tableCellPadding,o=a.tablePipeAlign,s=a.stringLength,f=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
42
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:E,table:u,tableCell:h,tableRow:g}};function u(v,x,C,M){return p(b(v,C,M),v.align)}function g(v,x,C,M){const w=m(v,C,M),q=p([w]);return q.slice(0,q.indexOf(`
43
- `))}function h(v,x,C,M){const w=C.enter("tableCell"),q=C.enter("phrasing"),H=C.containerPhrasing(v,{...M,before:f,after:f});return q(),w(),H}function p(v,x){return sx(v,{align:x,alignDelimiters:o,padding:r,stringLength:s})}function b(v,x,C){const M=v.children;let w=-1;const q=[],H=x.enter("table");for(;++w<M.length;)q[w]=m(M[w],x,C);return H(),q}function m(v,x,C){const M=v.children;let w=-1;const q=[],H=x.enter("tableRow");for(;++w<M.length;)q[w]=h(M[w],v,x,C);return H(),q}function E(v,x,C){let M=fg.inlineCode(v,x,C);return C.stack.includes("tableCell")&&(M=M.replace(/\|/g,"\\$&")),M}}function Zx(){return{exit:{taskListCheckValueChecked:pg,taskListCheckValueUnchecked:pg,paragraph:Qx}}}function Xx(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Jx}}}function pg(n){const a=this.stack[this.stack.length-2];a.type,a.checked=n.type==="taskListCheckValueChecked"}function Qx(n){const a=this.stack[this.stack.length-2];if(a&&a.type==="listItem"&&typeof a.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const o=r.children[0];if(o&&o.type==="text"){const s=a.children;let f=-1,u;for(;++f<s.length;){const g=s[f];if(g.type==="paragraph"){u=g;break}}u===r&&(o.value=o.value.slice(1),o.value.length===0?r.children.shift():r.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}}this.exit(n)}function Jx(n,a,r,o){const s=n.children[0],f=typeof n.checked=="boolean"&&s&&s.type==="paragraph",u="["+(n.checked?"x":" ")+"] ",g=r.createTracker(o);f&&g.move(u);let h=fg.listItem(n,a,r,{...o,...g.current()});return f&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),h;function p(b){return b+u}}function Wx(){return[M1(),J1(),nx(),Gx(),Zx()]}function eS(n){return{extensions:[R1(),W1(n),ix(),$x(n),Xx()]}}const tS={tokenize:oS,partial:!0},gg={tokenize:sS,partial:!0},hg={tokenize:cS,partial:!0},mg={tokenize:uS,partial:!0},nS={tokenize:fS,partial:!0},bg={name:"wwwAutolink",tokenize:rS,previous:Eg},yg={name:"protocolAutolink",tokenize:lS,previous:vg},_i={name:"emailAutolink",tokenize:aS,previous:_g},mi={};function iS(){return{text:mi}}let Sa=48;for(;Sa<123;)mi[Sa]=_i,Sa++,Sa===58?Sa=65:Sa===91&&(Sa=97);mi[43]=_i,mi[45]=_i,mi[46]=_i,mi[95]=_i,mi[72]=[_i,yg],mi[104]=[_i,yg],mi[87]=[_i,bg],mi[119]=[_i,bg];function aS(n,a,r){const o=this;let s,f;return u;function u(m){return!Rc(m)||!_g.call(o,o.previous)||Dc(o.events)?r(m):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),g(m))}function g(m){return Rc(m)?(n.consume(m),g):m===64?(n.consume(m),h):r(m)}function h(m){return m===46?n.check(nS,b,p)(m):m===45||m===95||sn(m)?(f=!0,n.consume(m),h):b(m)}function p(m){return n.consume(m),s=!0,h}function b(m){return f&&s&&hn(o.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),a(m)):r(m)}}function rS(n,a,r){const o=this;return s;function s(u){return u!==87&&u!==119||!Eg.call(o,o.previous)||Dc(o.events)?r(u):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(tS,n.attempt(gg,n.attempt(hg,f),r),r)(u))}function f(u){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),a(u)}}function lS(n,a,r){const o=this;let s="",f=!1;return u;function u(m){return(m===72||m===104)&&vg.call(o,o.previous)&&!Dc(o.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),s+=String.fromCodePoint(m),n.consume(m),g):r(m)}function g(m){if(hn(m)&&s.length<5)return s+=String.fromCodePoint(m),n.consume(m),g;if(m===58){const E=s.toLowerCase();if(E==="http"||E==="https")return n.consume(m),h}return r(m)}function h(m){return m===47?(n.consume(m),f?p:(f=!0,h)):r(m)}function p(m){return m===null||Kl(m)||yt(m)||_a(m)||Vl(m)?r(m):n.attempt(gg,n.attempt(hg,b),r)(m)}function b(m){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),a(m)}}function oS(n,a,r){let o=0;return s;function s(u){return(u===87||u===119)&&o<3?(o++,n.consume(u),s):u===46&&o===3?(n.consume(u),f):r(u)}function f(u){return u===null?r(u):a(u)}}function sS(n,a,r){let o,s,f;return u;function u(p){return p===46||p===95?n.check(mg,h,g)(p):p===null||yt(p)||_a(p)||p!==45&&Vl(p)?h(p):(f=!0,n.consume(p),u)}function g(p){return p===95?o=!0:(s=o,o=void 0),n.consume(p),u}function h(p){return s||o||!f?r(p):a(p)}}function cS(n,a){let r=0,o=0;return s;function s(u){return u===40?(r++,n.consume(u),s):u===41&&o<r?f(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?n.check(mg,a,f)(u):u===null||yt(u)||_a(u)?a(u):(n.consume(u),s)}function f(u){return u===41&&o++,n.consume(u),s}}function uS(n,a,r){return o;function o(g){return g===33||g===34||g===39||g===41||g===42||g===44||g===46||g===58||g===59||g===63||g===95||g===126?(n.consume(g),o):g===38?(n.consume(g),f):g===93?(n.consume(g),s):g===60||g===null||yt(g)||_a(g)?a(g):r(g)}function s(g){return g===null||g===40||g===91||yt(g)||_a(g)?a(g):o(g)}function f(g){return hn(g)?u(g):r(g)}function u(g){return g===59?(n.consume(g),o):hn(g)?(n.consume(g),u):r(g)}}function fS(n,a,r){return o;function o(f){return n.consume(f),s}function s(f){return sn(f)?r(f):a(f)}}function Eg(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||yt(n)}function vg(n){return!hn(n)}function _g(n){return!(n===47||Rc(n))}function Rc(n){return n===43||n===45||n===46||n===95||sn(n)}function Dc(n){let a=n.length,r=!1;for(;a--;){const o=n[a][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){r=!0;break}if(o._gfmAutolinkLiteralWalkedInto){r=!1;break}}return n.length>0&&!r&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const dS={tokenize:vS,partial:!0};function pS(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:bS,continuation:{tokenize:yS},exit:ES}},text:{91:{name:"gfmFootnoteCall",tokenize:mS},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:gS,resolveTo:hS}}}}function gS(n,a,r){const o=this;let s=o.events.length;const f=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let u;for(;s--;){const h=o.events[s][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 g;function g(h){if(!u||!u._balanced)return r(h);const p=ri(o.sliceSerialize({start:u.end,end:o.now()}));return p.codePointAt(0)!==94||!f.includes(p.slice(1))?r(h):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(h),n.exit("gfmFootnoteCallLabelMarker"),a(h))}}function hS(n,a){let r=n.length;for(;r--;)if(n[r][1].type==="labelImage"&&n[r][0]==="enter"){n[r][1];break}n[r+1][1].type="data",n[r+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},n[r+3][1].start),end:Object.assign({},n[n.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},n[r+3][1].end),end:Object.assign({},n[r+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const f={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},n[n.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},f.start),end:Object.assign({},f.end)},g=[n[r+1],n[r+2],["enter",o,a],n[r+3],n[r+4],["enter",s,a],["exit",s,a],["enter",f,a],["enter",u,a],["exit",u,a],["exit",f,a],n[n.length-2],n[n.length-1],["exit",o,a]];return n.splice(r,n.length-r+1,...g),n}function mS(n,a,r){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let f=0,u;return g;function g(m){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(m),n.exit("gfmFootnoteCallLabelMarker"),h}function h(m){return m!==94?r(m):(n.enter("gfmFootnoteCallMarker"),n.consume(m),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",p)}function p(m){if(f>999||m===93&&!u||m===null||m===91||yt(m))return r(m);if(m===93){n.exit("chunkString");const E=n.exit("gfmFootnoteCallString");return s.includes(ri(o.sliceSerialize(E)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(m),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),a):r(m)}return yt(m)||(u=!0),f++,n.consume(m),m===92?b:p}function b(m){return m===91||m===92||m===93?(n.consume(m),f++,p):p(m)}}function bS(n,a,r){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let f,u=0,g;return h;function h(x){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(x),n.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(x){return x===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(x),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",b):r(x)}function b(x){if(u>999||x===93&&!g||x===null||x===91||yt(x))return r(x);if(x===93){n.exit("chunkString");const C=n.exit("gfmFootnoteDefinitionLabelString");return f=ri(o.sliceSerialize(C)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(x),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),E}return yt(x)||(g=!0),u++,n.consume(x),x===92?m:b}function m(x){return x===91||x===92||x===93?(n.consume(x),u++,b):b(x)}function E(x){return x===58?(n.enter("definitionMarker"),n.consume(x),n.exit("definitionMarker"),s.includes(f)||s.push(f),Je(n,v,"gfmFootnoteDefinitionWhitespace")):r(x)}function v(x){return a(x)}}function yS(n,a,r){return n.check(Gr,a,n.attempt(dS,a,r))}function ES(n){n.exit("gfmFootnoteDefinition")}function vS(n,a,r){const o=this;return Je(n,s,"gfmFootnoteDefinitionIndent",5);function s(f){const u=o.events[o.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?a(f):r(f)}}function _S(n){let r=(n||{}).singleTilde;const o={name:"strikethrough",tokenize:f,resolveAll:s};return r==null&&(r=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function s(u,g){let h=-1;for(;++h<u.length;)if(u[h][0]==="enter"&&u[h][1].type==="strikethroughSequenceTemporary"&&u[h][1]._close){let p=h;for(;p--;)if(u[p][0]==="exit"&&u[p][1].type==="strikethroughSequenceTemporary"&&u[p][1]._open&&u[h][1].end.offset-u[h][1].start.offset===u[p][1].end.offset-u[p][1].start.offset){u[h][1].type="strikethroughSequence",u[p][1].type="strikethroughSequence";const b={type:"strikethrough",start:Object.assign({},u[p][1].start),end:Object.assign({},u[h][1].end)},m={type:"strikethroughText",start:Object.assign({},u[p][1].end),end:Object.assign({},u[h][1].start)},E=[["enter",b,g],["enter",u[p][1],g],["exit",u[p][1],g],["enter",m,g]],v=g.parser.constructs.insideSpan.null;v&&Ln(E,E.length,0,$l(v,u.slice(p+1,h),g)),Ln(E,E.length,0,[["exit",m,g],["enter",u[h][1],g],["exit",u[h][1],g],["exit",b,g]]),Ln(u,p-1,h-p+3,E),h=p+E.length-2;break}}for(h=-1;++h<u.length;)u[h][1].type==="strikethroughSequenceTemporary"&&(u[h][1].type="data");return u}function f(u,g,h){const p=this.previous,b=this.events;let m=0;return E;function E(x){return p===126&&b[b.length-1][1].type!=="characterEscape"?h(x):(u.enter("strikethroughSequenceTemporary"),v(x))}function v(x){const C=Za(p);if(x===126)return m>1?h(x):(u.consume(x),m++,v);if(m<2&&!r)return h(x);const M=u.exit("strikethroughSequenceTemporary"),w=Za(x);return M._open=!w||w===2&&!!C,M._close=!C||C===2&&!!w,g(x)}}}class kS{constructor(){this.map=[]}add(a,r,o){xS(this,a,r,o)}consume(a){if(this.map.sort(function(f,u){return f[0]-u[0]}),this.map.length===0)return;let r=this.map.length;const o=[];for(;r>0;)r-=1,o.push(a.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),a.length=this.map[r][0];o.push(a.slice()),a.length=0;let s=o.pop();for(;s;){for(const f of s)a.push(f);s=o.pop()}this.map.length=0}}function xS(n,a,r,o){let s=0;if(!(r===0&&o.length===0)){for(;s<n.map.length;){if(n.map[s][0]===a){n.map[s][1]+=r,n.map[s][2].push(...o);return}s+=1}n.map.push([a,r,o])}}function SS(n,a){let r=!1;const o=[];for(;a<n.length;){const s=n[a];if(r){if(s[0]==="enter")s[1].type==="tableContent"&&o.push(n[a+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(n[a-1][1].type==="tableDelimiterMarker"){const f=o.length-1;o[f]=o[f]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(r=!0);a+=1}return o}function wS(){return{flow:{null:{name:"table",tokenize:TS,resolveAll:AS}}}}function TS(n,a,r){const o=this;let s=0,f=0,u;return g;function g(z){let oe=o.events.length-1;for(;oe>-1;){const le=o.events[oe][1].type;if(le==="lineEnding"||le==="linePrefix")oe--;else break}const re=oe>-1?o.events[oe][1].type:null,ke=re==="tableHead"||re==="tableRow"?D:h;return ke===D&&o.parser.lazy[o.now().line]?r(z):ke(z)}function h(z){return n.enter("tableHead"),n.enter("tableRow"),p(z)}function p(z){return z===124||(u=!0,f+=1),b(z)}function b(z){return z===null?r(z):Ne(z)?f>1?(f=0,o.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(z),n.exit("lineEnding"),v):r(z):Ke(z)?Je(n,b,"whitespace")(z):(f+=1,u&&(u=!1,s+=1),z===124?(n.enter("tableCellDivider"),n.consume(z),n.exit("tableCellDivider"),u=!0,b):(n.enter("data"),m(z)))}function m(z){return z===null||z===124||yt(z)?(n.exit("data"),b(z)):(n.consume(z),z===92?E:m)}function E(z){return z===92||z===124?(n.consume(z),m):m(z)}function v(z){return o.interrupt=!1,o.parser.lazy[o.now().line]?r(z):(n.enter("tableDelimiterRow"),u=!1,Ke(z)?Je(n,x,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):x(z))}function x(z){return z===45||z===58?M(z):z===124?(u=!0,n.enter("tableCellDivider"),n.consume(z),n.exit("tableCellDivider"),C):te(z)}function C(z){return Ke(z)?Je(n,M,"whitespace")(z):M(z)}function M(z){return z===58?(f+=1,u=!0,n.enter("tableDelimiterMarker"),n.consume(z),n.exit("tableDelimiterMarker"),w):z===45?(f+=1,w(z)):z===null||Ne(z)?J(z):te(z)}function w(z){return z===45?(n.enter("tableDelimiterFiller"),q(z)):te(z)}function q(z){return z===45?(n.consume(z),q):z===58?(u=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(z),n.exit("tableDelimiterMarker"),H):(n.exit("tableDelimiterFiller"),H(z))}function H(z){return Ke(z)?Je(n,J,"whitespace")(z):J(z)}function J(z){return z===124?x(z):z===null||Ne(z)?!u||s!==f?te(z):(n.exit("tableDelimiterRow"),n.exit("tableHead"),a(z)):te(z)}function te(z){return r(z)}function D(z){return n.enter("tableRow"),ce(z)}function ce(z){return z===124?(n.enter("tableCellDivider"),n.consume(z),n.exit("tableCellDivider"),ce):z===null||Ne(z)?(n.exit("tableRow"),a(z)):Ke(z)?Je(n,ce,"whitespace")(z):(n.enter("data"),ne(z))}function ne(z){return z===null||z===124||yt(z)?(n.exit("data"),ce(z)):(n.consume(z),z===92?fe:ne)}function fe(z){return z===92||z===124?(n.consume(z),ne):ne(z)}}function AS(n,a){let r=-1,o=!0,s=0,f=[0,0,0,0],u=[0,0,0,0],g=!1,h=0,p,b,m;const E=new kS;for(;++r<n.length;){const v=n[r],x=v[1];v[0]==="enter"?x.type==="tableHead"?(g=!1,h!==0&&(kg(E,a,h,p,b),b=void 0,h=0),p={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},E.add(r,0,[["enter",p,a]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(o=!0,m=void 0,f=[0,0,0,0],u=[0,r+1,0,0],g&&(g=!1,b={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},E.add(r,0,[["enter",b,a]])),s=x.type==="tableDelimiterRow"?2:b?3:1):s&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(o=!1,u[2]===0&&(f[1]!==0&&(u[0]=u[1],m=po(E,a,f,s,void 0,m),f=[0,0,0,0]),u[2]=r)):x.type==="tableCellDivider"&&(o?o=!1:(f[1]!==0&&(u[0]=u[1],m=po(E,a,f,s,void 0,m)),f=u,u=[f[1],r,0,0])):x.type==="tableHead"?(g=!0,h=r):x.type==="tableRow"||x.type==="tableDelimiterRow"?(h=r,f[1]!==0?(u[0]=u[1],m=po(E,a,f,s,r,m)):u[1]!==0&&(m=po(E,a,u,s,r,m)),s=0):s&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(u[3]=r)}for(h!==0&&kg(E,a,h,p,b),E.consume(a.events),r=-1;++r<a.events.length;){const v=a.events[r];v[0]==="enter"&&v[1].type==="table"&&(v[1]._align=SS(a.events,r))}return n}function po(n,a,r,o,s,f){const u=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",g="tableContent";r[0]!==0&&(f.end=Object.assign({},Ja(a.events,r[0])),n.add(r[0],0,[["exit",f,a]]));const h=Ja(a.events,r[1]);if(f={type:u,start:Object.assign({},h),end:Object.assign({},h)},n.add(r[1],0,[["enter",f,a]]),r[2]!==0){const p=Ja(a.events,r[2]),b=Ja(a.events,r[3]),m={type:g,start:Object.assign({},p),end:Object.assign({},b)};if(n.add(r[2],0,[["enter",m,a]]),o!==2){const E=a.events[r[2]],v=a.events[r[3]];if(E[1].end=Object.assign({},v[1].end),E[1].type="chunkText",E[1].contentType="text",r[3]>r[2]+1){const x=r[2]+1,C=r[3]-r[2]-1;n.add(x,C,[])}}n.add(r[3]+1,0,[["exit",m,a]])}return s!==void 0&&(f.end=Object.assign({},Ja(a.events,s)),n.add(s,0,[["exit",f,a]]),f=void 0),f}function kg(n,a,r,o,s){const f=[],u=Ja(a.events,r);s&&(s.end=Object.assign({},u),f.push(["exit",s,a])),o.end=Object.assign({},u),f.push(["exit",o,a]),n.add(r+1,0,f)}function Ja(n,a){const r=n[a],o=r[0]==="enter"?"start":"end";return r[1][o]}const NS={name:"tasklistCheck",tokenize:OS};function CS(){return{text:{91:NS}}}function OS(n,a,r){const o=this;return s;function s(h){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?r(h):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(h),n.exit("taskListCheckMarker"),f)}function f(h){return yt(h)?(n.enter("taskListCheckValueUnchecked"),n.consume(h),n.exit("taskListCheckValueUnchecked"),u):h===88||h===120?(n.enter("taskListCheckValueChecked"),n.consume(h),n.exit("taskListCheckValueChecked"),u):r(h)}function u(h){return h===93?(n.enter("taskListCheckMarker"),n.consume(h),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),g):r(h)}function g(h){return Ne(h)?a(h):Ke(h)?n.check({tokenize:MS},a,r)(h):r(h)}}function MS(n,a,r){return Je(n,o,"whitespace");function o(s){return s===null?r(s):a(s)}}function RS(n){return xd([iS(),pS(),_S(n),wS(),CS()])}const DS={};function LS(n){const a=this,r=n||DS,o=a.data(),s=o.micromarkExtensions||(o.micromarkExtensions=[]),f=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),u=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);s.push(RS(r)),f.push(Wx()),u.push(eS(r))}function zS(n){const a=new RegExp(`(?<!]\\(|]\\(<|href=["']|src=["'])(https?:\\/\\/[^\\s<>"')]+)(?![^[]*\\]\\))`,"g");return n.replace(a,r=>{const o=r.replace(/[.,;:!?]+$/g,""),s=r.slice(o.length);return`[${o}](${o})${s}`})}const IS=ye.memo(function({content:a}){return L.jsx(R_,{rehypePlugins:[S1],remarkPlugins:[LS],children:zS(a)})});function BS(n){return n.variants?.find(a=>a.available)||n.variants?.[0]}function xg(n,a,r){if(!n)return"";const o=Number(n);if(!Number.isFinite(o))return n;try{return new Intl.NumberFormat(r,{style:a?"currency":"decimal",currency:a||void 0,maximumFractionDigits:2}).format(o)}catch{return`${o.toFixed(2)}${a?` ${a}`:""}`}}const US=ye.memo(function({commerce:a,copy:r,locale:o,onProductClick:s}){const f=ye.useMemo(()=>Array.isArray(a.products)?a.products.filter(u=>u?.id&&u?.title):[],[a.products]);return f.length?L.jsxs("section",{className:"akilio-products","aria-label":r.products,children:[L.jsxs("div",{className:"akilio-products-heading",children:[L.jsx("strong",{children:r.products}),L.jsx("span",{children:f.length})]}),L.jsx("div",{className:"akilio-product-grid",role:"list",children:f.map(u=>{const g=BS(u),h=!!g?.available&&u.available!=="false",p=xg(g?.price,g?.currency,o),b=xg(g?.compare_at_price||void 0,g?.currency,o);return L.jsxs("article",{className:"akilio-product-card",role:"listitem",children:[L.jsxs("div",{className:"akilio-product-media",children:[u.image_url?L.jsx("img",{src:u.image_url,alt:"",loading:"lazy",decoding:"async"}):L.jsx("div",{className:"akilio-product-placeholder","aria-hidden":"true",children:"A"}),L.jsx("span",{className:h?"akilio-stock akilio-stock--available":"akilio-stock",children:h?r.inStock:r.outOfStock})]}),L.jsxs("div",{className:"akilio-product-body",children:[u.vendor&&L.jsx("span",{className:"akilio-product-vendor",children:u.vendor}),L.jsx("h4",{children:u.title}),g?.title&&g.title!==u.title&&L.jsx("span",{className:"akilio-product-variant",children:g.title}),L.jsxs("div",{className:"akilio-product-price",children:[p?L.jsx("strong",{children:p}):L.jsx("strong",{children:r.unavailable}),b&&b!==p&&L.jsx("del",{children:b})]}),u.url?L.jsx("a",{className:"akilio-product-action",href:u.url,target:"_blank",rel:"noopener noreferrer",onClick:()=>s?.(u,g),children:r.viewProduct}):L.jsx("button",{type:"button",className:"akilio-product-action",disabled:!h,onClick:()=>s?.(u,g),children:r.viewProduct})]})]},u.id)})})]}):null});function HS(n){return Array.isArray(n)?n.filter(a=>a?.title||a?.url):[]}function qS(n){return typeof n=="number"?`${Math.round(n*100)}%`:typeof n=="string"&&n.trim()?n:null}const Sg=ye.memo(function({message:a,copy:r,locale:o,onFeedback:s,onProductClick:f,onSuggestion:u}){const g=a.role==="user",h=HS(a.sources),p=qS(a.confidence);return L.jsx("div",{className:Fi("akilio-message-row",g?"akilio-message-row--user":"akilio-message-row--assistant"),children:L.jsxs("div",{className:Fi("akilio-bubble",g&&"akilio-bubble--user",a.error&&"akilio-bubble--error"),children:[!g&&!a.error&&L.jsxs("div",{className:"akilio-bubble-meta",children:[L.jsx(Pl,{className:"akilio-mini-icon"}),L.jsx("span",{children:r.online}),p&&L.jsx("span",{className:"akilio-confidence",children:p})]}),L.jsx("div",{className:Fi("akilio-answer",g&&"akilio-answer--user"),children:g?L.jsx("p",{children:a.content}):L.jsx(IS,{content:a.content})}),!g&&a.commerce?.products?.length?L.jsx(US,{commerce:a.commerce,copy:r,locale:o,onProductClick:(b,m)=>f?.(a,b,m)}):null,!g&&!a.error&&a.suggestions?.length?L.jsx("div",{className:"akilio-response-suggestions","aria-label":"Suggested follow-up questions",children:a.suggestions.map(b=>L.jsx("button",{type:"button",onClick:()=>u?.(b),children:b},b))}):null,!g&&h.length>0&&L.jsxs("details",{className:"akilio-sources",children:[L.jsxs("summary",{children:[r.sources," · ",h.length]}),L.jsx("div",{className:"akilio-sources-list",children:h.map((b,m)=>L.jsxs("div",{className:"akilio-source-card",children:[L.jsx("strong",{children:b.title||"Untitled source"}),typeof b.section_path=="string"&&L.jsx("span",{children:b.section_path}),b.url&&L.jsx("a",{href:b.url,target:"_blank",rel:"noreferrer",children:b.url})]},`${b.url||b.title}-${m}`))})]}),!g&&!a.error&&a.backendMessageId&&L.jsxs("div",{className:"akilio-feedback",children:[L.jsx("span",{children:a.feedback?r.feedbackThanks:r.feedbackQuestion}),L.jsx("button",{type:"button",className:Fi(a.feedback==="up"&&"akilio-feedback-active"),onClick:()=>s?.(a,"up"),"aria-label":r.voteUp,children:L.jsx(Ay,{})}),L.jsx("button",{type:"button",className:Fi(a.feedback==="down"&&"akilio-feedback-active"),onClick:()=>s?.(a,"down"),"aria-label":r.voteDown,children:L.jsx(Ny,{})})]})]})})}),FS=ye.memo(function({messages:a,copy:r,locale:o,onFeedback:s,onProductClick:f,onSuggestion:u}){return L.jsx(L.Fragment,{children:a.map(g=>L.jsx(Sg,{message:g,copy:r,locale:o,onFeedback:s,onProductClick:f,onSuggestion:u},g.id))})}),GS=ye.forwardRef(function({loading:a,disabled:r,copy:o,onSubmit:s,onReviewConsent:f,onDraftChange:u,disabledMessage:g,showPoweredBy:h},p){const[b,m]=ye.useState(""),E=ye.useRef(""),v=ye.useRef(null);ye.useLayoutEffect(()=>{const w=v.current;if(!w)return;w.style.height="auto";const q=Math.max(48,Math.min(w.scrollHeight,148));w.style.height=`${q}px`,w.style.overflowY=w.scrollHeight>148?"auto":"hidden"},[b]);const x=async()=>{const w=E.current.trim();if(!w)throw new Error("EMPTY_DRAFT");if(a)throw new Error("BUSY");if(r)throw new Error("INVALID_QUESTION");return m(""),E.current="",u?.("",!1),s(w)},C=w=>{w.preventDefault(),x().catch(()=>{})},M=w=>{w.key==="Enter"&&!w.shiftKey&&!w.nativeEvent.isComposing&&(w.preventDefault(),C(w))};return ye.useImperativeHandle(p,()=>({getDraft:()=>E.current,setDraft:(w,q)=>{const H=q?.clearExisting===!1?`${E.current}${w}`:w;E.current=H,m(H),u?.(H,!1),q?.focus&&window.setTimeout(()=>v.current?.focus(),0)},clearDraft:()=>{E.current="",m(""),u?.("",!1)},focus:()=>v.current?.focus(),submit:x}),[u,s,b,a,r]),L.jsxs("form",{onSubmit:C,className:"akilio-composer",children:[L.jsxs("div",{className:"akilio-composer-box",children:[L.jsx("textarea",{ref:v,value:b,rows:2,onChange:w=>{E.current=w.target.value,m(w.target.value),u?.(w.target.value,!0)},onKeyDown:M,placeholder:o.placeholder,"aria-label":o.placeholder,disabled:r}),L.jsxs("div",{className:"akilio-composer-footer",children:[L.jsxs("span",{children:[r?g||o.privacyRequired:o.helper,r&&f&&L.jsxs(L.Fragment,{children:[" ",L.jsx("button",{type:"button",className:"akilio-privacy-review",onClick:f,children:o.privacyReview})]})]}),L.jsxs("button",{type:"submit",disabled:a||r||!b.trim(),children:[a?o.loading:o.submit,L.jsx(Sy,{})]})]})]}),h&&L.jsx("div",{className:"akilio-powered-by",children:o.poweredBy})]})});function jS({copy:n,label:a}){return L.jsxs("div",{className:"akilio-message-row akilio-message-row--assistant akilio-stream-activity",role:"status","aria-live":"polite","aria-atomic":"true",children:[L.jsx("span",{className:"akilio-stream-activity-icon","aria-hidden":"true",children:L.jsx(Pl,{className:"akilio-mini-icon"})}),L.jsxs("div",{className:"akilio-stream-activity-content",children:[L.jsx("span",{className:"akilio-stream-activity-label",children:a||n.loading},a),L.jsx("span",{className:"akilio-stream-activity-pulse","aria-hidden":"true"})]})]})}function YS({copy:n,onSuggestion:a,widgetAvailable:r,showBranding:o}){return L.jsxs("div",{className:"akilio-empty",children:[L.jsx("div",{className:"akilio-empty-icon",children:o?L.jsx(Is,{variant:"mark"}):L.jsx(Pl,{})}),L.jsx("h3",{children:n.title}),L.jsx("p",{children:r?n.emptyState:n.widgetUnavailable}),L.jsx("div",{className:"akilio-suggestions",children:r&&n.suggestions.slice(0,4).map(s=>L.jsx("button",{type:"button",onClick:()=>a(s),children:s},s))})]})}const PS=ye.forwardRef(function(a,r){const{open:o,isDesktop:s,inline:f,colorMode:u,allowColorModeToggle:g,widgetAvailable:h,showBranding:p,showPoweredBy:b,copy:m,locale:E,messages:v,streamingMessage:x,loading:C,loadingLabel:M,consentDecision:w,consentGranted:q,requireConsent:H,privacyNotice:J,privacyNoticeUrl:te,onConsentDecision:D,onClose:ce,onToggleColorMode:ne,onClear:fe,onSubmit:z,onDraftChange:oe,onFeedback:re,onProductClick:ke,onSuggestion:le}=a,Q=ye.useRef(null),G=ye.useRef(null);return ye.useImperativeHandle(r,()=>({getDraft:()=>G.current?.getDraft()||"",setDraft:(j,P)=>G.current?.setDraft(j,P),clearDraft:()=>G.current?.clearDraft(),focusDraft:()=>G.current?.focus(),submitDraft:()=>G.current?G.current.submit():Promise.reject(new Error("NOT_READY"))}),[]),ye.useEffect(()=>{o&&Q.current?.scrollTo({top:Q.current.scrollHeight,behavior:v.length>1?"auto":"smooth"})},[v.length,x?.content,C,o]),L.jsxs("aside",{className:Fi("akilio-panel",s&&"akilio-panel--desktop",f&&"akilio-panel--inline",o&&"akilio-panel--open"),"aria-hidden":!o,"aria-label":m.title,children:[L.jsx("div",{className:"akilio-panel-glow"}),L.jsx("header",{className:"akilio-panel-header",children:L.jsxs("div",{className:"akilio-header-content",children:[L.jsxs("div",{className:"akilio-header-topline",children:[p&&L.jsx("div",{className:"akilio-logo",children:L.jsx(Is,{variant:"wordmark"})}),L.jsxs("div",{className:"akilio-header-title",children:[L.jsx("h2",{children:m.title}),L.jsxs("span",{className:Fi("akilio-online",!h&&"akilio-online--unavailable"),children:[L.jsx("i",{}),h?m.online:m.widgetUnavailable]})]}),L.jsxs("div",{className:"akilio-header-actions",children:[g&&L.jsx("button",{type:"button",onClick:ne,title:u==="dark"?m.switchToLightMode:m.switchToDarkMode,"aria-label":u==="dark"?m.switchToLightMode:m.switchToDarkMode,children:u==="dark"?L.jsx(Cy,{}):L.jsx(Oy,{})}),L.jsx("button",{type:"button",onClick:fe,title:m.clearHistory,"aria-label":m.clearHistory,children:L.jsx(Ty,{})}),!f&&L.jsx("button",{type:"button",onClick:ce,title:m.close,"aria-label":m.close,children:L.jsx(wy,{})})]})]}),L.jsx("p",{className:"akilio-header-description",children:m.description})]})}),L.jsxs("div",{ref:Q,className:"akilio-thread","aria-live":"polite","aria-relevant":"additions",children:[v.length===0&&!C?L.jsx(YS,{copy:m,onSuggestion:z,widgetAvailable:h,showBranding:p}):L.jsx(FS,{messages:v,copy:m,locale:E,onFeedback:re,onProductClick:ke,onSuggestion:le}),x&&L.jsx(Sg,{message:x,copy:m,locale:E,onFeedback:re,onProductClick:ke,onSuggestion:le}),C&&!x&&L.jsx(jS,{copy:m,label:M})]}),(J||H)&&w==="pending"&&L.jsxs("section",{className:"akilio-privacy","aria-label":m.privacyTitle,children:[L.jsxs("div",{children:[L.jsx("strong",{children:m.privacyTitle}),L.jsxs("p",{children:[J||m.privacyDefaultNotice," ",te&&L.jsx("a",{href:te,target:"_blank",rel:"noreferrer",children:m.privacyTitle})]}),H&&L.jsx("p",{className:"akilio-privacy-consent-copy",children:m.privacyAccept})]}),L.jsxs("div",{className:"akilio-privacy-actions",children:[L.jsx("button",{type:"button",className:"akilio-privacy-decline",onClick:()=>D("rejected"),children:m.privacyDecline}),L.jsx("button",{type:"button",className:"akilio-privacy-accept",onClick:()=>D("accepted"),children:m.privacyAcceptAction})]})]}),L.jsx(GS,{ref:G,loading:C,disabled:!h||H&&!q,disabledMessage:h?m.privacyRequired:m.widgetUnavailable,showPoweredBy:b,copy:m,onSubmit:z,onDraftChange:oe,onReviewConsent:H&&w==="rejected"?()=>D("pending"):void 0})]})});function KS({label:n,onClick:a,showBranding:r=!0}){return L.jsxs("button",{id:"akilio-launcher",type:"button",className:"akilio-launcher",onClick:a,children:[L.jsx("span",{children:r?L.jsx(Is,{variant:"mark",className:"akilio-launcher-logo"}):L.jsx(Pl,{className:"akilio-launcher-logo"})}),L.jsx("strong",{children:n})]})}const VS="(min-width: 1280px)";function $S(n=VS){const[a,r]=ye.useState(!1);return ye.useEffect(()=>{if(typeof window>"u")return;const o=window.matchMedia(n),s=()=>r(o.matches);return s(),o.addEventListener?.("change",s),()=>o.removeEventListener?.("change",s)},[n]),a}const Wa=60;function ZS(n,a){if(!n)return a;try{return JSON.parse(n)}catch{return a}}function XS(n){const a=ye.useMemo(()=>`akilio:${n.projectKey}:${n.locale||"default"}:messages:v1`,[n.projectKey,n.locale]),[r,o]=ye.useState([]),[s,f]=ye.useState(!1);return ye.useEffect(()=>{if(!n.enabled||typeof window>"u"){f(!0);return}const u=ZS(window.localStorage.getItem(a),[]);o(Array.isArray(u)?u.slice(-Wa):[]),f(!0)},[n.enabled,a]),ye.useEffect(()=>{!n.enabled||!s||typeof window>"u"||window.localStorage.setItem(a,JSON.stringify(r.slice(-Wa)))},[r,n.enabled,a,s]),[r,o,a]}function Qr(n){const[a,r]=ye.useState(n.initialValue||""),[o,s]=ye.useState(!1);return ye.useEffect(()=>{if(!n.enabled||typeof window>"u"){s(!0);return}r(window.localStorage.getItem(n.key)||n.initialValue||""),s(!0)},[n.enabled,n.initialValue,n.key]),ye.useEffect(()=>{!n.enabled||!o||typeof window>"u"||(a?window.localStorage.setItem(n.key,a):window.localStorage.removeItem(n.key))},[n.enabled,o,n.key,a]),[a,r]}class Lc extends Error{status;payload;constructor(a,r,o){super(a),this.name="AkilioHttpError",this.status=r,this.payload=o}}function wg(n,a){return`${n.replace(/\/$/,"")}${a.startsWith("/")?a:`/${a}`}`}async function Tg(n){const a=await n.text();let r={};try{r=a?JSON.parse(a):{}}catch{r={detail:a}}if(!n.ok){const o=r?.detail||r?.error||r?.message||`Request failed with status ${n.status}`;throw new Lc(o,n.status,r)}return r}function zc(n,a,r){const o=`${n.replace(/\/$/,"")}|${a}|${r||"anonymous"}`;let s=2166136261;for(let f=0;f<o.length;f+=1)s^=o.charCodeAt(f),s=Math.imul(s,16777619);return`akilio:widget-token:v1:${(s>>>0).toString(16)}`}function QS(n){if(typeof window>"u")return null;try{const a=window.sessionStorage.getItem(n);return a?JSON.parse(a):null}catch{return null}}function Ag(n,a){if(!(typeof window>"u"))try{a?window.sessionStorage.setItem(n,JSON.stringify(a)):window.sessionStorage.removeItem(n)}catch{}}class JS{apiBaseUrl;fetchImpl;auth;widgetToken=null;widgetTokenPromise=null;widgetTokenPromiseKey=null;constructor(a){this.apiBaseUrl=a.apiBaseUrl;const r=a.fetchImpl||globalThis.fetch;if(!r)throw new Error("Fetch API is not available in this environment");this.fetchImpl=r.bind(globalThis),this.auth=a.auth}hasHostManagedToken(){return!!(this.auth?.getAccessToken||this.auth?.accessToken)}async hostManagedToken(){return(this.auth?.getAccessToken?await this.auth.getAccessToken():this.auth?.accessToken)||null}tokenIsUsable(a,r,o){const s=Math.max(0,this.auth?.tokenRefreshLeewaySeconds??30);return a.projectKey===r&&a.subject===o&&a.expiresAt>Date.now()+s*1e3}clearWidgetToken(a,r){this.widgetToken=null,Ag(zc(this.apiBaseUrl,a,r),null)}async issueWidgetToken(a,r){const o=await this.publicRequest(`/api/v1/projects/${encodeURIComponent(a)}/widget-token/`,{method:"POST",body:JSON.stringify(r?{subject:r}:{})}),s=Math.max(1,Number(o.expires_in)||1),f={token:o.token,tokenType:o.token_type||"Bearer",expiresAt:Date.now()+s*1e3,projectKey:a,subject:r};return this.widgetToken=f,Ag(zc(this.apiBaseUrl,a,r),f),this.auth?.onWidgetToken?.({token:f.token,tokenType:f.tokenType,expiresAt:f.expiresAt}),f}async ensureWidgetToken(a,r,o=!1){if(!o&&this.widgetToken&&this.tokenIsUsable(this.widgetToken,a,r))return this.widgetToken;const s=zc(this.apiBaseUrl,a,r);if(!o){const u=QS(s);if(u&&this.tokenIsUsable(u,a,r))return this.widgetToken=u,u}o&&this.clearWidgetToken(a,r);const f=`${a}|${r||""}`;return(!this.widgetTokenPromise||this.widgetTokenPromiseKey!==f)&&(this.widgetTokenPromiseKey=f,this.widgetTokenPromise=this.issueWidgetToken(a,r).finally(()=>{this.widgetTokenPromiseKey===f&&(this.widgetTokenPromise=null,this.widgetTokenPromiseKey=null)})),this.widgetTokenPromise}async baseHeaders(a=!1){const r={Accept:"application/json",...this.auth?.headers||{}};return a&&(r["Content-Type"]="application/json"),this.auth?.apiKey&&(r[this.auth.apiKeyHeader||"X-Akilio-Key"]=this.auth.apiKey),r}async execute(a,r,o){const s=await this.fetchImpl(wg(this.apiBaseUrl,a),{...r,credentials:this.auth?.credentials||"omit",headers:{...o,...r.headers||{}}});return Tg(s)}async publicRequest(a,r={}){return this.execute(a,r,await this.baseHeaders(!!r.body))}async authenticatedRequest(a,r,o,s={}){const f=await this.baseHeaders(!!s.body),u=await this.hostManagedToken();if(u)return f.Authorization=`${this.auth?.tokenScheme||"Bearer"} ${u}`,this.execute(o,s,f);if(this.auth?.autoIssueWidgetToken===!1)throw new Error("No widget authentication token is available");let g=await this.ensureWidgetToken(a,r);f.Authorization=`${g.tokenType} ${g.token}`;try{return await this.execute(o,s,f)}catch(h){if(!(h instanceof Lc)||h.status!==401)throw h;return g=await this.ensureWidgetToken(a,r,!0),f.Authorization=`${g.tokenType} ${g.token}`,this.execute(o,s,f)}}async authenticatedResponse(a,r,o,s={}){const f=await this.baseHeaders(!!s.body);f.Accept="text/event-stream";const u=await this.hostManagedToken();if(u)f.Authorization=`${this.auth?.tokenScheme||"Bearer"} ${u}`;else{if(this.auth?.autoIssueWidgetToken===!1)throw new Error("No widget authentication token is available");const p=await this.ensureWidgetToken(a,r);f.Authorization=`${p.tokenType} ${p.token}`}const g=()=>this.fetchImpl(wg(this.apiBaseUrl,o),{...s,credentials:this.auth?.credentials||"omit",headers:{...f,...s.headers||{}}});let h=await g();if(h.status===401&&!u){await h.body?.cancel().catch(()=>{});const p=await this.ensureWidgetToken(a,r,!0);f.Authorization=`${p.tokenType} ${p.token}`,h=await g()}return h.ok||await Tg(h),h}getProjectConfig(a){return this.publicRequest(`/api/v1/projects/${encodeURIComponent(a)}/config/`)}async prepareWidgetToken(a,r){this.hasHostManagedToken()||this.auth?.autoIssueWidgetToken===!1||await this.ensureWidgetToken(a,r)}sendMessage(a,r,o){return this.authenticatedRequest(a,r,"/api/v1/chat/",{method:"POST",body:JSON.stringify(o)})}async sendMessageStream(a,r,o,s={},f){let u;try{u=await this.authenticatedResponse(a,r,"/api/v1/chat/stream/",{method:"POST",body:JSON.stringify(o),signal:f})}catch(E){if(E instanceof Lc&&[404,405,406,415,501].includes(E.status))return this.sendMessage(a,r,o);throw E}if(!u.body)throw new Error("Streaming response body is unavailable");const g=u.body.getReader(),h=new TextDecoder;let p="",b=null;const m=E=>{let v="message";const x=[];for(const M of E.split(/\r?\n/))!M||M.startsWith(":")||(M.startsWith("event:")&&(v=M.slice(6).trim()),M.startsWith("data:")&&x.push(M.slice(5).trimStart()));if(!x.length)return;let C;try{const M=JSON.parse(x.join(`
38
+ `});return h(),b(),v+`
39
+ `+(s===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
40
+ `))+1))}const u="#".repeat(s),g=r.enter("headingAtx"),m=r.enter("phrasing");f.move(u+" ");let p=r.containerPhrasing(n,{before:"# ",after:`
41
+ `,...f.current()});return/^[\t ]/.test(p)&&(p=nl(p.charCodeAt(0))+p.slice(1)),p=p?u+" "+p:u,r.options.closeAtx&&(p+=" "+u),m(),g(),p}ag.peek=Ax;function ag(n){return n.value||""}function Ax(){return"<"}rg.peek=Nx;function rg(n,a,r,o){const s=Rc(r),f=s==='"'?"Quote":"Apostrophe",u=r.enter("image");let g=r.enter("label");const m=r.createTracker(o);let p=m.move("![");return p+=m.move(r.safe(n.alt,{before:p,after:"]",...m.current()})),p+=m.move("]("),g(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(g=r.enter("destinationLiteral"),p+=m.move("<"),p+=m.move(r.safe(n.url,{before:p,after:">",...m.current()})),p+=m.move(">")):(g=r.enter("destinationRaw"),p+=m.move(r.safe(n.url,{before:p,after:n.title?" ":")",...m.current()}))),g(),n.title&&(g=r.enter(`title${f}`),p+=m.move(" "+s),p+=m.move(r.safe(n.title,{before:p,after:s,...m.current()})),p+=m.move(s),g()),p+=m.move(")"),u(),p}function Nx(){return"!"}lg.peek=Cx;function lg(n,a,r,o){const s=n.referenceType,f=r.enter("imageReference");let u=r.enter("label");const g=r.createTracker(o);let m=g.move("![");const p=r.safe(n.alt,{before:m,after:"]",...g.current()});m+=g.move(p+"]["),u();const b=r.stack;r.stack=[],u=r.enter("reference");const h=r.safe(r.associationId(n),{before:m,after:"]",...g.current()});return u(),r.stack=b,f(),s==="full"||!p||p!==h?m+=g.move(h+"]"):s==="shortcut"?m=m.slice(0,-1):m+=g.move("]"),m}function Cx(){return"!"}og.peek=Ox;function og(n,a,r){let o=n.value||"",s="`",f=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(o);)s+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++f<r.unsafe.length;){const u=r.unsafe[f],g=r.compilePattern(u);let m;if(u.atBreak)for(;m=g.exec(o);){let p=m.index;o.charCodeAt(p)===10&&o.charCodeAt(p-1)===13&&p--,o=o.slice(0,p)+" "+o.slice(m.index+1)}}return s+o+s}function Ox(){return"`"}function sg(n,a){const r=Ws(n);return!!(!a.options.resourceLink&&n.url&&!n.title&&n.children&&n.children.length===1&&n.children[0].type==="text"&&(r===n.url||"mailto:"+r===n.url)&&/^[a-z][a-z+.-]+:/i.test(n.url)&&!/[\0- <>\u007F]/.test(n.url))}cg.peek=Mx;function cg(n,a,r,o){const s=Rc(r),f=s==='"'?"Quote":"Apostrophe",u=r.createTracker(o);let g,m;if(sg(n,r)){const b=r.stack;r.stack=[],g=r.enter("autolink");let h=u.move("<");return h+=u.move(r.containerPhrasing(n,{before:h,after:">",...u.current()})),h+=u.move(">"),g(),r.stack=b,h}g=r.enter("link"),m=r.enter("label");let p=u.move("[");return p+=u.move(r.containerPhrasing(n,{before:p,after:"](",...u.current()})),p+=u.move("]("),m(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(m=r.enter("destinationLiteral"),p+=u.move("<"),p+=u.move(r.safe(n.url,{before:p,after:">",...u.current()})),p+=u.move(">")):(m=r.enter("destinationRaw"),p+=u.move(r.safe(n.url,{before:p,after:n.title?" ":")",...u.current()}))),m(),n.title&&(m=r.enter(`title${f}`),p+=u.move(" "+s),p+=u.move(r.safe(n.title,{before:p,after:s,...u.current()})),p+=u.move(s),m()),p+=u.move(")"),g(),p}function Mx(n,a,r){return sg(n,r)?"<":"["}ug.peek=Rx;function ug(n,a,r,o){const s=n.referenceType,f=r.enter("linkReference");let u=r.enter("label");const g=r.createTracker(o);let m=g.move("[");const p=r.containerPhrasing(n,{before:m,after:"]",...g.current()});m+=g.move(p+"]["),u();const b=r.stack;r.stack=[],u=r.enter("reference");const h=r.safe(r.associationId(n),{before:m,after:"]",...g.current()});return u(),r.stack=b,f(),s==="full"||!p||p!==h?m+=g.move(h+"]"):s==="shortcut"?m=m.slice(0,-1):m+=g.move("]"),m}function Rx(){return"["}function Dc(n){const a=n.options.bullet||"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bullet`, expected `*`, `+`, or `-`");return a}function Dx(n){const a=Dc(n),r=n.options.bulletOther;if(!r)return a==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===a)throw new Error("Expected `bullet` (`"+a+"`) and `bulletOther` (`"+r+"`) to be different");return r}function Lx(n){const a=n.options.bulletOrdered||".";if(a!=="."&&a!==")")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOrdered`, expected `.` or `)`");return a}function fg(n){const a=n.options.rule||"*";if(a!=="*"&&a!=="-"&&a!=="_")throw new Error("Cannot serialize rules with `"+a+"` for `options.rule`, expected `*`, `-`, or `_`");return a}function zx(n,a,r,o){const s=r.enter("list"),f=r.bulletCurrent;let u=n.ordered?Lx(r):Dc(r);const g=n.ordered?u==="."?")":".":Dx(r);let m=a&&r.bulletLastUsed?u===r.bulletLastUsed:!1;if(!n.ordered){const b=n.children?n.children[0]:void 0;if((u==="*"||u==="-")&&b&&(!b.children||!b.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(m=!0),fg(r)===u&&b){let h=-1;for(;++h<n.children.length;){const v=n.children[h];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){m=!0;break}}}}m&&(u=g),r.bulletCurrent=u;const p=r.containerFlow(n,o);return r.bulletLastUsed=u,r.bulletCurrent=f,s(),p}function Ix(n){const a=n.options.listItemIndent||"one";if(a!=="tab"&&a!=="one"&&a!=="mixed")throw new Error("Cannot serialize items with `"+a+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return a}function Bx(n,a,r,o){const s=Ix(r);let f=r.bulletCurrent||Dc(r);a&&a.type==="list"&&a.ordered&&(f=(typeof a.start=="number"&&a.start>-1?a.start:1)+(r.options.incrementListMarker===!1?0:a.children.indexOf(n))+f);let u=f.length+1;(s==="tab"||s==="mixed"&&(a&&a.type==="list"&&a.spread||n.spread))&&(u=Math.ceil(u/4)*4);const g=r.createTracker(o);g.move(f+" ".repeat(u-f.length)),g.shift(u);const m=r.enter("listItem"),p=r.indentLines(r.containerFlow(n,g.current()),b);return m(),p;function b(h,v,k){return v?(k?"":" ".repeat(u))+h:(k?f:f+" ".repeat(u-f.length))+h}}function Ux(n,a,r,o){const s=r.enter("paragraph"),f=r.enter("phrasing"),u=r.containerPhrasing(n,o);return f(),s(),u}const Hx=Wr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function qx(n,a,r,o){return(n.children.some(function(u){return Hx(u)})?r.containerPhrasing:r.containerFlow).call(r,n,o)}function Fx(n){const a=n.options.strong||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize strong with `"+a+"` for `options.strong`, expected `*`, or `_`");return a}dg.peek=Gx;function dg(n,a,r,o){const s=Fx(r),f=r.enter("strong"),u=r.createTracker(o),g=u.move(s+s);let m=u.move(r.containerPhrasing(n,{after:s,before:g,...u.current()}));const p=m.charCodeAt(0),b=ho(o.before.charCodeAt(o.before.length-1),p,s);b.inside&&(m=nl(p)+m.slice(1));const h=m.charCodeAt(m.length-1),v=ho(o.after.charCodeAt(0),h,s);v.inside&&(m=m.slice(0,-1)+nl(h));const k=u.move(s+s);return f(),r.attentionEncodeSurroundingInfo={after:v.outside,before:b.outside},g+m+k}function Gx(n,a,r){return r.options.strong||"*"}function jx(n,a,r,o){return r.safe(n.value,o)}function Yx(n){const a=n.options.ruleRepetition||3;if(a<3)throw new Error("Cannot serialize rules with repetition `"+a+"` for `options.ruleRepetition`, expected `3` or more");return a}function Px(n,a,r){const o=(fg(r)+(r.options.ruleSpaces?" ":"")).repeat(Yx(r));return r.options.ruleSpaces?o.slice(0,-1):o}const pg={blockquote:gx,break:ng,code:kx,definition:_x,emphasis:ig,hardBreak:ng,heading:Tx,html:ag,image:rg,imageReference:lg,inlineCode:og,link:cg,linkReference:ug,list:zx,listItem:Bx,paragraph:Ux,root:qx,strong:dg,text:jx,thematicBreak:Px};function Kx(){return{enter:{table:Vx,tableData:gg,tableHeader:gg,tableRow:Zx},exit:{codeText:Xx,table:$x,tableData:Lc,tableHeader:Lc,tableRow:Lc}}}function Vx(n){const a=n._align;this.enter({type:"table",align:a.map(function(r){return r==="none"?null:r}),children:[]},n),this.data.inTable=!0}function $x(n){this.exit(n),this.data.inTable=void 0}function Zx(n){this.enter({type:"tableRow",children:[]},n)}function Lc(n){this.exit(n)}function gg(n){this.enter({type:"tableCell",children:[]},n)}function Xx(n){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,Qx));const r=this.stack[this.stack.length-1];r.type,r.value=a,this.exit(n)}function Qx(n,a){return a==="|"?a:n}function Jx(n){const a=n||{},r=a.tableCellPadding,o=a.tablePipeAlign,s=a.stringLength,f=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
42
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:u,tableCell:m,tableRow:g}};function u(k,x,C,M){return p(b(k,C,M),k.align)}function g(k,x,C,M){const w=h(k,C,M),q=p([w]);return q.slice(0,q.indexOf(`
43
+ `))}function m(k,x,C,M){const w=C.enter("tableCell"),q=C.enter("phrasing"),H=C.containerPhrasing(k,{...M,before:f,after:f});return q(),w(),H}function p(k,x){return dx(k,{align:x,alignDelimiters:o,padding:r,stringLength:s})}function b(k,x,C){const M=k.children;let w=-1;const q=[],H=x.enter("table");for(;++w<M.length;)q[w]=h(M[w],x,C);return H(),q}function h(k,x,C){const M=k.children;let w=-1;const q=[],H=x.enter("tableRow");for(;++w<M.length;)q[w]=m(M[w],k,x,C);return H(),q}function v(k,x,C){let M=pg.inlineCode(k,x,C);return C.stack.includes("tableCell")&&(M=M.replace(/\|/g,"\\$&")),M}}function Wx(){return{exit:{taskListCheckValueChecked:mg,taskListCheckValueUnchecked:mg,paragraph:tS}}}function eS(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:nS}}}function mg(n){const a=this.stack[this.stack.length-2];a.type,a.checked=n.type==="taskListCheckValueChecked"}function tS(n){const a=this.stack[this.stack.length-2];if(a&&a.type==="listItem"&&typeof a.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const o=r.children[0];if(o&&o.type==="text"){const s=a.children;let f=-1,u;for(;++f<s.length;){const g=s[f];if(g.type==="paragraph"){u=g;break}}u===r&&(o.value=o.value.slice(1),o.value.length===0?r.children.shift():r.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}}this.exit(n)}function nS(n,a,r,o){const s=n.children[0],f=typeof n.checked=="boolean"&&s&&s.type==="paragraph",u="["+(n.checked?"x":" ")+"] ",g=r.createTracker(o);f&&g.move(u);let m=pg.listItem(n,a,r,{...o,...g.current()});return f&&(m=m.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),m;function p(b){return b+u}}function iS(){return[z1(),nx(),lx(),Kx(),Wx()]}function aS(n){return{extensions:[I1(),ix(n),ox(),Jx(n),eS()]}}const rS={tokenize:fS,partial:!0},hg={tokenize:dS,partial:!0},bg={tokenize:pS,partial:!0},yg={tokenize:gS,partial:!0},lS={tokenize:mS,partial:!0},vg={name:"wwwAutolink",tokenize:cS,previous:Eg},kg={name:"protocolAutolink",tokenize:uS,previous:_g},Ti={name:"emailAutolink",tokenize:sS,previous:xg},mi={};function oS(){return{text:mi}}let Da=48;for(;Da<123;)mi[Da]=Ti,Da++,Da===58?Da=65:Da===91&&(Da=97);mi[43]=Ti,mi[45]=Ti,mi[46]=Ti,mi[95]=Ti,mi[72]=[Ti,kg],mi[104]=[Ti,kg],mi[87]=[Ti,vg],mi[119]=[Ti,vg];function sS(n,a,r){const o=this;let s,f;return u;function u(h){return!zc(h)||!xg.call(o,o.previous)||Ic(o.events)?r(h):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),g(h))}function g(h){return zc(h)?(n.consume(h),g):h===64?(n.consume(h),m):r(h)}function m(h){return h===46?n.check(lS,b,p)(h):h===45||h===95||un(h)?(f=!0,n.consume(h),m):b(h)}function p(h){return n.consume(h),s=!0,m}function b(h){return f&&s&&bn(o.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),a(h)):r(h)}}function cS(n,a,r){const o=this;return s;function s(u){return u!==87&&u!==119||!Eg.call(o,o.previous)||Ic(o.events)?r(u):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(rS,n.attempt(hg,n.attempt(bg,f),r),r)(u))}function f(u){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),a(u)}}function uS(n,a,r){const o=this;let s="",f=!1;return u;function u(h){return(h===72||h===104)&&_g.call(o,o.previous)&&!Ic(o.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),s+=String.fromCodePoint(h),n.consume(h),g):r(h)}function g(h){if(bn(h)&&s.length<5)return s+=String.fromCodePoint(h),n.consume(h),g;if(h===58){const v=s.toLowerCase();if(v==="http"||v==="https")return n.consume(h),m}return r(h)}function m(h){return h===47?(n.consume(h),f?p:(f=!0,m)):r(h)}function p(h){return h===null||Xl(h)||vt(h)||Oa(h)||Ql(h)?r(h):n.attempt(hg,n.attempt(bg,b),r)(h)}function b(h){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),a(h)}}function fS(n,a,r){let o=0;return s;function s(u){return(u===87||u===119)&&o<3?(o++,n.consume(u),s):u===46&&o===3?(n.consume(u),f):r(u)}function f(u){return u===null?r(u):a(u)}}function dS(n,a,r){let o,s,f;return u;function u(p){return p===46||p===95?n.check(yg,m,g)(p):p===null||vt(p)||Oa(p)||p!==45&&Ql(p)?m(p):(f=!0,n.consume(p),u)}function g(p){return p===95?o=!0:(s=o,o=void 0),n.consume(p),u}function m(p){return s||o||!f?r(p):a(p)}}function pS(n,a){let r=0,o=0;return s;function s(u){return u===40?(r++,n.consume(u),s):u===41&&o<r?f(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?n.check(yg,a,f)(u):u===null||vt(u)||Oa(u)?a(u):(n.consume(u),s)}function f(u){return u===41&&o++,n.consume(u),s}}function gS(n,a,r){return o;function o(g){return g===33||g===34||g===39||g===41||g===42||g===44||g===46||g===58||g===59||g===63||g===95||g===126?(n.consume(g),o):g===38?(n.consume(g),f):g===93?(n.consume(g),s):g===60||g===null||vt(g)||Oa(g)?a(g):r(g)}function s(g){return g===null||g===40||g===91||vt(g)||Oa(g)?a(g):o(g)}function f(g){return bn(g)?u(g):r(g)}function u(g){return g===59?(n.consume(g),o):bn(g)?(n.consume(g),u):r(g)}}function mS(n,a,r){return o;function o(f){return n.consume(f),s}function s(f){return un(f)?r(f):a(f)}}function Eg(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||vt(n)}function _g(n){return!bn(n)}function xg(n){return!(n===47||zc(n))}function zc(n){return n===43||n===45||n===46||n===95||un(n)}function Ic(n){let a=n.length,r=!1;for(;a--;){const o=n[a][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){r=!0;break}if(o._gfmAutolinkLiteralWalkedInto){r=!1;break}}return n.length>0&&!r&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const hS={tokenize:SS,partial:!0};function bS(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:ES,continuation:{tokenize:_S},exit:xS}},text:{91:{name:"gfmFootnoteCall",tokenize:kS},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:yS,resolveTo:vS}}}}function yS(n,a,r){const o=this;let s=o.events.length;const f=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let u;for(;s--;){const m=o.events[s][1];if(m.type==="labelImage"){u=m;break}if(m.type==="gfmFootnoteCall"||m.type==="labelLink"||m.type==="label"||m.type==="image"||m.type==="link")break}return g;function g(m){if(!u||!u._balanced)return r(m);const p=li(o.sliceSerialize({start:u.end,end:o.now()}));return p.codePointAt(0)!==94||!f.includes(p.slice(1))?r(m):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(m),n.exit("gfmFootnoteCallLabelMarker"),a(m))}}function vS(n,a){let r=n.length;for(;r--;)if(n[r][1].type==="labelImage"&&n[r][0]==="enter"){n[r][1];break}n[r+1][1].type="data",n[r+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},n[r+3][1].start),end:Object.assign({},n[n.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},n[r+3][1].end),end:Object.assign({},n[r+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const f={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},n[n.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},f.start),end:Object.assign({},f.end)},g=[n[r+1],n[r+2],["enter",o,a],n[r+3],n[r+4],["enter",s,a],["exit",s,a],["enter",f,a],["enter",u,a],["exit",u,a],["exit",f,a],n[n.length-2],n[n.length-1],["exit",o,a]];return n.splice(r,n.length-r+1,...g),n}function kS(n,a,r){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let f=0,u;return g;function g(h){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(h),n.exit("gfmFootnoteCallLabelMarker"),m}function m(h){return h!==94?r(h):(n.enter("gfmFootnoteCallMarker"),n.consume(h),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",p)}function p(h){if(f>999||h===93&&!u||h===null||h===91||vt(h))return r(h);if(h===93){n.exit("chunkString");const v=n.exit("gfmFootnoteCallString");return s.includes(li(o.sliceSerialize(v)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(h),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),a):r(h)}return vt(h)||(u=!0),f++,n.consume(h),h===92?b:p}function b(h){return h===91||h===92||h===93?(n.consume(h),f++,p):p(h)}}function ES(n,a,r){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let f,u=0,g;return m;function m(x){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(x),n.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(x){return x===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(x),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",b):r(x)}function b(x){if(u>999||x===93&&!g||x===null||x===91||vt(x))return r(x);if(x===93){n.exit("chunkString");const C=n.exit("gfmFootnoteDefinitionLabelString");return f=li(o.sliceSerialize(C)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(x),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),v}return vt(x)||(g=!0),u++,n.consume(x),x===92?h:b}function h(x){return x===91||x===92||x===93?(n.consume(x),u++,b):b(x)}function v(x){return x===58?(n.enter("definitionMarker"),n.consume(x),n.exit("definitionMarker"),s.includes(f)||s.push(f),tt(n,k,"gfmFootnoteDefinitionWhitespace")):r(x)}function k(x){return a(x)}}function _S(n,a,r){return n.check($r,a,n.attempt(hS,a,r))}function xS(n){n.exit("gfmFootnoteDefinition")}function SS(n,a,r){const o=this;return tt(n,s,"gfmFootnoteDefinitionIndent",5);function s(f){const u=o.events[o.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?a(f):r(f)}}function wS(n){let r=(n||{}).singleTilde;const o={name:"strikethrough",tokenize:f,resolveAll:s};return r==null&&(r=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function s(u,g){let m=-1;for(;++m<u.length;)if(u[m][0]==="enter"&&u[m][1].type==="strikethroughSequenceTemporary"&&u[m][1]._close){let p=m;for(;p--;)if(u[p][0]==="exit"&&u[p][1].type==="strikethroughSequenceTemporary"&&u[p][1]._open&&u[m][1].end.offset-u[m][1].start.offset===u[p][1].end.offset-u[p][1].start.offset){u[m][1].type="strikethroughSequence",u[p][1].type="strikethroughSequence";const b={type:"strikethrough",start:Object.assign({},u[p][1].start),end:Object.assign({},u[m][1].end)},h={type:"strikethroughText",start:Object.assign({},u[p][1].end),end:Object.assign({},u[m][1].start)},v=[["enter",b,g],["enter",u[p][1],g],["exit",u[p][1],g],["enter",h,g]],k=g.parser.constructs.insideSpan.null;k&&Ln(v,v.length,0,Jl(k,u.slice(p+1,m),g)),Ln(v,v.length,0,[["exit",h,g],["enter",u[m][1],g],["exit",u[m][1],g],["exit",b,g]]),Ln(u,p-1,m-p+3,v),m=p+v.length-2;break}}for(m=-1;++m<u.length;)u[m][1].type==="strikethroughSequenceTemporary"&&(u[m][1].type="data");return u}function f(u,g,m){const p=this.previous,b=this.events;let h=0;return v;function v(x){return p===126&&b[b.length-1][1].type!=="characterEscape"?m(x):(u.enter("strikethroughSequenceTemporary"),k(x))}function k(x){const C=nr(p);if(x===126)return h>1?m(x):(u.consume(x),h++,k);if(h<2&&!r)return m(x);const M=u.exit("strikethroughSequenceTemporary"),w=nr(x);return M._open=!w||w===2&&!!C,M._close=!C||C===2&&!!w,g(x)}}}class TS{constructor(){this.map=[]}add(a,r,o){AS(this,a,r,o)}consume(a){if(this.map.sort(function(f,u){return f[0]-u[0]}),this.map.length===0)return;let r=this.map.length;const o=[];for(;r>0;)r-=1,o.push(a.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),a.length=this.map[r][0];o.push(a.slice()),a.length=0;let s=o.pop();for(;s;){for(const f of s)a.push(f);s=o.pop()}this.map.length=0}}function AS(n,a,r,o){let s=0;if(!(r===0&&o.length===0)){for(;s<n.map.length;){if(n.map[s][0]===a){n.map[s][1]+=r,n.map[s][2].push(...o);return}s+=1}n.map.push([a,r,o])}}function NS(n,a){let r=!1;const o=[];for(;a<n.length;){const s=n[a];if(r){if(s[0]==="enter")s[1].type==="tableContent"&&o.push(n[a+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(n[a-1][1].type==="tableDelimiterMarker"){const f=o.length-1;o[f]=o[f]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(r=!0);a+=1}return o}function CS(){return{flow:{null:{name:"table",tokenize:OS,resolveAll:MS}}}}function OS(n,a,r){const o=this;let s=0,f=0,u;return g;function g(z){let se=o.events.length-1;for(;se>-1;){const oe=o.events[se][1].type;if(oe==="lineEnding"||oe==="linePrefix")se--;else break}const re=se>-1?o.events[se][1].type:null,_e=re==="tableHead"||re==="tableRow"?L:m;return _e===L&&o.parser.lazy[o.now().line]?r(z):_e(z)}function m(z){return n.enter("tableHead"),n.enter("tableRow"),p(z)}function p(z){return z===124||(u=!0,f+=1),b(z)}function b(z){return z===null?r(z):we(z)?f>1?(f=0,o.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(z),n.exit("lineEnding"),k):r(z):$e(z)?tt(n,b,"whitespace")(z):(f+=1,u&&(u=!1,s+=1),z===124?(n.enter("tableCellDivider"),n.consume(z),n.exit("tableCellDivider"),u=!0,b):(n.enter("data"),h(z)))}function h(z){return z===null||z===124||vt(z)?(n.exit("data"),b(z)):(n.consume(z),z===92?v:h)}function v(z){return z===92||z===124?(n.consume(z),h):h(z)}function k(z){return o.interrupt=!1,o.parser.lazy[o.now().line]?r(z):(n.enter("tableDelimiterRow"),u=!1,$e(z)?tt(n,x,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):x(z))}function x(z){return z===45||z===58?M(z):z===124?(u=!0,n.enter("tableCellDivider"),n.consume(z),n.exit("tableCellDivider"),C):te(z)}function C(z){return $e(z)?tt(n,M,"whitespace")(z):M(z)}function M(z){return z===58?(f+=1,u=!0,n.enter("tableDelimiterMarker"),n.consume(z),n.exit("tableDelimiterMarker"),w):z===45?(f+=1,w(z)):z===null||we(z)?Q(z):te(z)}function w(z){return z===45?(n.enter("tableDelimiterFiller"),q(z)):te(z)}function q(z){return z===45?(n.consume(z),q):z===58?(u=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(z),n.exit("tableDelimiterMarker"),H):(n.exit("tableDelimiterFiller"),H(z))}function H(z){return $e(z)?tt(n,Q,"whitespace")(z):Q(z)}function Q(z){return z===124?x(z):z===null||we(z)?!u||s!==f?te(z):(n.exit("tableDelimiterRow"),n.exit("tableHead"),a(z)):te(z)}function te(z){return r(z)}function L(z){return n.enter("tableRow"),ce(z)}function ce(z){return z===124?(n.enter("tableCellDivider"),n.consume(z),n.exit("tableCellDivider"),ce):z===null||we(z)?(n.exit("tableRow"),a(z)):$e(z)?tt(n,ce,"whitespace")(z):(n.enter("data"),ee(z))}function ee(z){return z===null||z===124||vt(z)?(n.exit("data"),ce(z)):(n.consume(z),z===92?fe:ee)}function fe(z){return z===92||z===124?(n.consume(z),ee):ee(z)}}function MS(n,a){let r=-1,o=!0,s=0,f=[0,0,0,0],u=[0,0,0,0],g=!1,m=0,p,b,h;const v=new TS;for(;++r<n.length;){const k=n[r],x=k[1];k[0]==="enter"?x.type==="tableHead"?(g=!1,m!==0&&(Sg(v,a,m,p,b),b=void 0,m=0),p={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},v.add(r,0,[["enter",p,a]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(o=!0,h=void 0,f=[0,0,0,0],u=[0,r+1,0,0],g&&(g=!1,b={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},v.add(r,0,[["enter",b,a]])),s=x.type==="tableDelimiterRow"?2:b?3:1):s&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(o=!1,u[2]===0&&(f[1]!==0&&(u[0]=u[1],h=bo(v,a,f,s,void 0,h),f=[0,0,0,0]),u[2]=r)):x.type==="tableCellDivider"&&(o?o=!1:(f[1]!==0&&(u[0]=u[1],h=bo(v,a,f,s,void 0,h)),f=u,u=[f[1],r,0,0])):x.type==="tableHead"?(g=!0,m=r):x.type==="tableRow"||x.type==="tableDelimiterRow"?(m=r,f[1]!==0?(u[0]=u[1],h=bo(v,a,f,s,r,h)):u[1]!==0&&(h=bo(v,a,u,s,r,h)),s=0):s&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(u[3]=r)}for(m!==0&&Sg(v,a,m,p,b),v.consume(a.events),r=-1;++r<a.events.length;){const k=a.events[r];k[0]==="enter"&&k[1].type==="table"&&(k[1]._align=NS(a.events,r))}return n}function bo(n,a,r,o,s,f){const u=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",g="tableContent";r[0]!==0&&(f.end=Object.assign({},rr(a.events,r[0])),n.add(r[0],0,[["exit",f,a]]));const m=rr(a.events,r[1]);if(f={type:u,start:Object.assign({},m),end:Object.assign({},m)},n.add(r[1],0,[["enter",f,a]]),r[2]!==0){const p=rr(a.events,r[2]),b=rr(a.events,r[3]),h={type:g,start:Object.assign({},p),end:Object.assign({},b)};if(n.add(r[2],0,[["enter",h,a]]),o!==2){const v=a.events[r[2]],k=a.events[r[3]];if(v[1].end=Object.assign({},k[1].end),v[1].type="chunkText",v[1].contentType="text",r[3]>r[2]+1){const x=r[2]+1,C=r[3]-r[2]-1;n.add(x,C,[])}}n.add(r[3]+1,0,[["exit",h,a]])}return s!==void 0&&(f.end=Object.assign({},rr(a.events,s)),n.add(s,0,[["exit",f,a]]),f=void 0),f}function Sg(n,a,r,o,s){const f=[],u=rr(a.events,r);s&&(s.end=Object.assign({},u),f.push(["exit",s,a])),o.end=Object.assign({},u),f.push(["exit",o,a]),n.add(r+1,0,f)}function rr(n,a){const r=n[a],o=r[0]==="enter"?"start":"end";return r[1][o]}const RS={name:"tasklistCheck",tokenize:LS};function DS(){return{text:{91:RS}}}function LS(n,a,r){const o=this;return s;function s(m){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?r(m):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(m),n.exit("taskListCheckMarker"),f)}function f(m){return vt(m)?(n.enter("taskListCheckValueUnchecked"),n.consume(m),n.exit("taskListCheckValueUnchecked"),u):m===88||m===120?(n.enter("taskListCheckValueChecked"),n.consume(m),n.exit("taskListCheckValueChecked"),u):r(m)}function u(m){return m===93?(n.enter("taskListCheckMarker"),n.consume(m),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),g):r(m)}function g(m){return we(m)?a(m):$e(m)?n.check({tokenize:zS},a,r)(m):r(m)}}function zS(n,a,r){return tt(n,o,"whitespace");function o(s){return s===null?r(s):a(s)}}function IS(n){return wd([oS(),bS(),wS(n),CS(),DS()])}const BS={};function US(n){const a=this,r=n||BS,o=a.data(),s=o.micromarkExtensions||(o.micromarkExtensions=[]),f=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),u=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);s.push(IS(r)),f.push(iS()),u.push(aS(r))}function HS(n){const a=new RegExp(`(?<!]\\(|]\\(<|href=["']|src=["'])(https?:\\/\\/[^\\s<>"')]+)(?![^[]*\\]\\))`,"g");return n.replace(a,r=>{const o=r.replace(/[.,;:!?]+$/g,""),s=r.slice(o.length);return`[${o}](${o})${s}`})}function qS(n){return n.replace(/\[source\s+(\d+)\]/gi,(a,r)=>`[\`${r}\`](#source-${r})`)}function FS(n){const a=HS(n);return qS(a)}const GS=me.memo(function({content:a}){return D.jsx(IE,{rehypePlugins:[N1],remarkPlugins:[US],children:FS(a)})});function jS(n){return n.variants?.find(a=>a.available)||n.variants?.[0]}function wg(n,a,r){if(!n)return"";const o=Number(n);if(!Number.isFinite(o))return n;try{return new Intl.NumberFormat(r,{style:a?"currency":"decimal",currency:a||void 0,maximumFractionDigits:2}).format(o)}catch{return`${o.toFixed(2)}${a?` ${a}`:""}`}}function YS({product:n,copy:a,locale:r,layout:o="vertical",onProductClick:s}){const f=jS(n),u=!!f?.available&&n.available!=="false",g=wg(f?.price,f?.currency,r),m=wg(f?.compare_at_price||void 0,f?.currency,r);return D.jsxs("article",{className:`akilio-product-card akilio-product-card--${o}`,role:"listitem",children:[D.jsxs("div",{className:"akilio-product-media",children:[n.image_url?D.jsx("img",{src:n.image_url,alt:"",loading:"lazy",decoding:"async"}):D.jsx("div",{className:"akilio-product-placeholder","aria-hidden":"true",children:"A"}),D.jsx("span",{className:u?"akilio-stock akilio-stock--available":"akilio-stock",children:u?a.inStock:a.outOfStock})]}),D.jsxs("div",{className:"akilio-product-body",children:[n.vendor&&D.jsx("span",{className:"akilio-product-vendor",children:n.vendor}),D.jsx("h4",{children:n.title}),f?.title&&f.title!==n.title&&D.jsx("span",{className:"akilio-product-variant",children:f.title}),D.jsxs("div",{className:"akilio-product-price",children:[g?D.jsx("strong",{children:g}):D.jsx("strong",{children:a.unavailable}),m&&m!==g&&D.jsx("del",{children:m})]}),n.url?D.jsx("a",{className:"akilio-product-action",href:n.url,target:"_blank",rel:"noopener noreferrer",onClick:()=>s?.(n,f),children:a.viewProduct}):D.jsx("button",{type:"button",className:"akilio-product-action",disabled:!u,onClick:()=>s?.(n,f),children:a.viewProduct})]})]},n.id)}const PS=me.memo(function({commerce:a,copy:r,locale:o,onProductClick:s}){const f=me.useMemo(()=>Array.isArray(a.products)?a.products.filter(g=>g?.id&&g?.title):[],[a.products]);if(!f.length)return null;const u=f.length>3?"vertical":"horizontal";return D.jsxs("section",{className:"akilio-products","aria-label":r.products,children:[D.jsxs("div",{className:"akilio-products-heading",children:[D.jsx("strong",{children:r.products}),D.jsx("span",{children:f.length})]}),D.jsx("div",{className:`akilio-products-grid akilio-products-grid--${u}`,role:"list",children:f.map(g=>D.jsx(YS,{product:g,copy:r,locale:o,layout:u,onProductClick:s}))})]})});function KS(n){return Array.isArray(n)?n.filter(a=>a?.title||a?.url):[]}const Tg=me.memo(function({message:a,copy:r,locale:o,onFeedback:s,onProductClick:f,onSuggestion:u,primaryColor:g}){const m=a.role==="user",p=KS(a.sources);return D.jsx("div",{className:Aa("akilio-message-row",m?"akilio-message-row--user":"akilio-message-row--assistant"),children:D.jsxs("div",{className:Aa("akilio-bubble",m&&"akilio-bubble--user",a.error&&"akilio-bubble--error"),children:[!m&&!a.error&&D.jsxs("div",{className:"akilio-bubble-meta",children:[D.jsx(Us,{style:{width:"20px",height:"20px"},primaryColor:g}),D.jsx("span",{children:r.title})]}),D.jsx("div",{className:Aa("akilio-answer",m&&"akilio-answer--user"),children:m?D.jsx("p",{children:a.content}):D.jsx(GS,{content:a.content})}),!m&&a.commerce?.products?.length?D.jsx(PS,{commerce:a.commerce,copy:r,locale:o,onProductClick:(b,h)=>f?.(a,b,h)}):null,!m&&!a.error&&a.suggestions?.length?D.jsx("div",{className:"akilio-response-suggestions","aria-label":"Suggested follow-up questions",children:a.suggestions.map(b=>D.jsx("button",{type:"button",onClick:()=>u?.(b),children:b},b))}):null,!m&&p.length>0&&D.jsxs("details",{className:"akilio-sources",children:[D.jsxs("summary",{children:[r.sources," · ",p.length]}),D.jsx("div",{className:"akilio-sources-list",children:p.map((b,h)=>D.jsxs("div",{className:"akilio-source-card",children:[D.jsx("strong",{children:b.title||"Untitled source"}),typeof b.section_path=="string"&&D.jsx("span",{children:b.section_path}),b.url&&D.jsx("a",{href:b.url,target:"_blank",rel:"noreferrer",children:b.url})]},`${b.url||b.title}-${h}`))})]}),!m&&!a.error&&a.backendMessageId&&D.jsxs("div",{className:"akilio-feedback",children:[D.jsx("span",{children:a.feedback?r.feedbackThanks:r.feedbackQuestion}),D.jsx("button",{type:"button",className:Aa(a.feedback==="up"&&"akilio-feedback-active"),onClick:()=>s?.(a,"up"),"aria-label":r.voteUp,children:D.jsx(Cy,{})}),D.jsx("button",{type:"button",className:Aa(a.feedback==="down"&&"akilio-feedback-active"),onClick:()=>s?.(a,"down"),"aria-label":r.voteDown,children:D.jsx(Oy,{})})]})]})})}),VS=me.memo(function({messages:a,copy:r,locale:o,onFeedback:s,onProductClick:f,onSuggestion:u,primaryColor:g}){return D.jsx(D.Fragment,{children:a.map(m=>D.jsx(Tg,{message:m,copy:r,locale:o,onFeedback:s,onProductClick:f,onSuggestion:u,primaryColor:g},m.id))})});function $S({copy:n,label:a,primaryColor:r}){return D.jsxs("div",{className:"akilio-message-row akilio-message-row--assistant akilio-stream-activity",role:"status","aria-live":"polite","aria-atomic":"true",children:[D.jsx("span",{className:"akilio-stream-activity-icon","aria-hidden":"true",children:D.jsx(Us,{style:{width:"20px",height:"20px"},primaryColor:r})}),D.jsxs("div",{className:"akilio-stream-activity-content",children:[D.jsx("span",{className:"akilio-stream-activity-label",children:a||n.loading},a),D.jsx("span",{className:"akilio-stream-activity-pulse","aria-hidden":"true"})]})]})}const ZS=me.forwardRef(function(a,r){const{open:o,isDesktop:s,inline:f,colorMode:u,allowColorModeToggle:g,widgetAvailable:m,showBranding:p,showPoweredBy:b,copy:h,locale:v,messages:k,streamingMessage:x,loading:C,loadingLabel:M,consentDecision:w,consentGranted:q,requireConsent:H,privacyNotice:Q,privacyNoticeUrl:te,onConsentDecision:L,onClose:ce,onToggleColorMode:ee,onClear:fe,onSubmit:z,onDraftChange:se,onFeedback:re,onProductClick:_e,onSuggestion:oe,primaryColor:X}=a,Y=me.useRef(null),G=me.useRef(null);return me.useImperativeHandle(r,()=>({getDraft:()=>G.current?.getDraft()||"",setDraft:(K,ve)=>G.current?.setDraft(K,ve),clearDraft:()=>G.current?.clearDraft(),focusDraft:()=>G.current?.focus(),submitDraft:()=>G.current?G.current.submit():Promise.reject(new Error("NOT_READY"))}),[]),me.useEffect(()=>{o&&Y.current?.scrollTo({top:Y.current.scrollHeight,behavior:k.length>1?"auto":"smooth"})},[k.length,x?.content,C,o]),D.jsxs("aside",{className:Aa("akilio-panel",s&&"akilio-panel--desktop",f&&"akilio-panel--inline",o&&"akilio-panel--open"),"aria-hidden":!o,"aria-label":h.title,children:[D.jsx("div",{className:"akilio-panel-glow"}),D.jsxs("header",{className:"akilio-panel-header",children:[p&&D.jsx("div",{className:"akilio-logo",children:D.jsx(Zl,{variant:"mark",style:{width:40,height:40},primaryColor:X})}),D.jsxs("div",{className:"akilio-header-content",children:[D.jsxs("div",{className:"akilio-header-topline",children:[D.jsx("div",{className:"akilio-header-title",children:D.jsx("h2",{children:h.title})}),D.jsxs("div",{className:"akilio-header-actions",children:[g&&D.jsx("button",{type:"button",onClick:ee,title:u==="dark"?h.switchToLightMode:h.switchToDarkMode,"aria-label":u==="dark"?h.switchToLightMode:h.switchToDarkMode,children:u==="dark"?D.jsx(My,{}):D.jsx(Ry,{})}),D.jsx("button",{type:"button",onClick:fe,title:h.clearHistory,"aria-label":h.clearHistory,children:D.jsx(Ny,{})}),!f&&D.jsx("button",{type:"button",onClick:ce,title:h.close,"aria-label":h.close,children:D.jsx(Ay,{})})]})]}),D.jsx("p",{className:"akilio-header-description",children:h.description})]})]}),D.jsxs("div",{ref:Y,className:"akilio-thread","aria-live":"polite","aria-relevant":"additions",children:[k.length===0&&!C?D.jsx(Ly,{copy:h,onSuggestion:z,widgetAvailable:m,showBranding:p,primaryColor:X}):D.jsx(VS,{messages:k,copy:h,locale:v,onFeedback:re,onProductClick:_e,onSuggestion:oe,primaryColor:X}),x&&D.jsx(Tg,{message:x,copy:h,locale:v,onFeedback:re,onProductClick:_e,onSuggestion:oe,primaryColor:X}),C&&!x&&D.jsx($S,{copy:h,label:M,primaryColor:X})]}),(Q||H)&&w==="pending"&&D.jsxs("section",{className:"akilio-privacy","aria-label":h.privacyTitle,children:[D.jsxs("div",{children:[D.jsx("strong",{children:h.privacyTitle}),D.jsxs("p",{children:[Q||h.privacyDefaultNotice," ",te&&D.jsx("a",{href:te,target:"_blank",rel:"noreferrer",children:h.privacyTitle})]}),H&&D.jsx("p",{className:"akilio-privacy-consent-copy",children:h.privacyAccept})]}),D.jsxs("div",{className:"akilio-privacy-actions",children:[D.jsx("button",{type:"button",className:"akilio-privacy-decline",onClick:()=>L("rejected"),children:h.privacyDecline}),D.jsx("button",{type:"button",className:"akilio-privacy-accept",onClick:()=>L("accepted"),children:h.privacyAcceptAction})]})]}),D.jsx(Dy,{ref:G,loading:C,disabled:!m||H&&!q,disabledMessage:m?h.privacyRequired:h.widgetUnavailable,showPoweredBy:b,copy:h,onSubmit:z,onDraftChange:se,onReviewConsent:H&&w==="rejected"?()=>L("pending"):void 0})]})});function XS({label:n,onClick:a,showBranding:r=!0,primaryColor:o}){return D.jsxs("button",{id:"akilio-launcher",type:"button",className:"akilio-launcher",onClick:a,children:[D.jsx("span",{children:r?D.jsx(Zl,{variant:"mark",className:"akilio-launcher-logo",primaryColor:o}):D.jsx(Hs,{className:"akilio-launcher-logo"})}),D.jsx("strong",{children:n})]})}function QS({title:n,message:a,actionLabel:r,dismissLabel:o,onDismiss:s,onOpen:f,primaryColor:u,showBranding:g}){return D.jsxs("section",{className:"akilio-coachmark",role:"status","aria-live":"polite","aria-label":n,children:[D.jsx("button",{type:"button",className:"akilio-coachmark-close",onClick:s,"aria-label":o,children:D.jsx("span",{"aria-hidden":"true",children:"×"})}),D.jsx("div",{className:"akilio-coachmark-icon","aria-hidden":"true",children:g?D.jsx(Zl,{variant:"mark",primaryColor:u}):D.jsx(Hs,{})}),D.jsxs("div",{className:"akilio-coachmark-content",children:[D.jsx("strong",{children:n}),D.jsx("p",{children:a}),D.jsx("button",{type:"button",className:"akilio-coachmark-action",onClick:f,children:r})]})]})}const JS="(min-width: 1280px)";function WS(n=JS){const[a,r]=me.useState(!1);return me.useEffect(()=>{if(typeof window>"u")return;const o=window.matchMedia(n),s=()=>r(o.matches);return s(),o.addEventListener?.("change",s),()=>o.removeEventListener?.("change",s)},[n]),a}const lr=60;function Ag(n,a){if(!n)return a;try{return JSON.parse(n)}catch{return a}}function ew(n){const a=me.useMemo(()=>`akilio:${n.projectKey}:${n.locale||"default"}:messages:v1`,[n.projectKey,n.locale]),[r,o]=me.useState([]),[s,f]=me.useState(!1);return me.useEffect(()=>{if(!n.enabled||typeof window>"u"){f(!0);return}const u=Ag(window.localStorage.getItem(a),[]);o(Array.isArray(u)?u.slice(-lr):[]),f(!0)},[n.enabled,a]),me.useEffect(()=>{!n.enabled||!s||typeof window>"u"||window.localStorage.setItem(a,JSON.stringify(r.slice(-lr)))},[r,n.enabled,a,s]),[r,o,a]}function or(n){const[a,r]=me.useState(n.initialValue||""),[o,s]=me.useState(!1);return me.useEffect(()=>{if(!n.enabled||typeof window>"u"){s(!0);return}r(window.localStorage.getItem(n.key)||n.initialValue||""),s(!0)},[n.enabled,n.initialValue,n.key]),me.useEffect(()=>{!n.enabled||!o||typeof window>"u"||(a?window.localStorage.setItem(n.key,a):window.localStorage.removeItem(n.key))},[n.enabled,o,n.key,a]),[a,r]}const tw={version:"0.6.5"};function hi(n){const a=n.toLowerCase();return Array.from(document.scripts).some(r=>(r.src||"").toLowerCase().includes(a))}function nw(n){const a=n.toLowerCase();return Array.from(document.querySelectorAll("link[href]")).some(r=>r.href.toLowerCase().includes(a))}function iw(n,a){return Array.from(document.querySelectorAll(`meta[${n}]`)).some(r=>r.getAttribute(n)===a)}function aw(n){const a=n.toLowerCase();return Array.from(document.body?.classList??[]).some(r=>r.toLowerCase().includes(a))}function rw(){const n=window.location.hostname.toLowerCase(),a=document.documentElement.innerHTML.toLowerCase(),r=[];if(window.Shopify&&r.push("window.Shopify"),hi("cdn.shopify.com")&&r.push("cdn.shopify.com script"),a.includes("shopify-section")&&r.push("shopify-section markup"),n.endsWith(".myshopify.com")&&r.push("myshopify.com hostname"),r.length>=2)return{integration:"shopify",confidence:"high",signals:r};if(r.length===1)return{integration:"shopify",confidence:"medium",signals:r};const o=[];if(window.wcSettings&&o.push("window.wcSettings"),hi("woocommerce")&&o.push("WooCommerce script"),aw("woocommerce")&&o.push("WooCommerce body class"),(a.includes("woocommerce-cart")||a.includes("woocommerce-checkout")||a.includes("wc-block-"))&&o.push("WooCommerce markup"),o.length>=2)return{integration:"woocommerce",confidence:"high",signals:o};if(o.length===1)return{integration:"woocommerce",confidence:"medium",signals:o};const s=[];if(nw("/wp-json/")&&s.push("WordPress REST API link"),(hi("/wp-content/")||hi("/wp-includes/"))&&s.push("WordPress asset path"),(a.includes("/wp-content/")||a.includes("/wp-includes/"))&&s.push("WordPress HTML asset path"),iw("name","generator")&&document.querySelector('meta[name="generator"]')?.content.toLowerCase()?.includes("wordpress")&&s.push("WordPress generator metadata"),s.length>=2)return{integration:"wordpress",confidence:"high",signals:s};if(s.length===1)return{integration:"wordpress",confidence:"medium",signals:s};const f=[];if((window.prestashop||window.PrestaShop)&&f.push("PrestaShop global"),hi("/modules/")&&a.includes("prestashop")&&f.push("PrestaShop module assets"),document.querySelector('meta[name="generator"]')?.content.toLowerCase()?.includes("prestashop")&&f.push("PrestaShop generator metadata"),f.length>=2)return{integration:"prestashop",confidence:"high",signals:f};if(f.length===1)return{integration:"prestashop",confidence:"medium",signals:f};const g=[];return window.requirejs&&hi("mage/")&&g.push("Magento RequireJS modules"),(hi("/static/frontend/")||a.includes("mage-init"))&&g.push("Magento frontend assets"),a.includes("data-mage-init")&&g.push("data-mage-init"),g.length>=2?{integration:"magento",confidence:"high",signals:g}:g.length===1?{integration:"magento",confidence:"medium",signals:g}:a.includes("wixstatic.com")||hi("wixstatic.com")?{integration:"wix",confidence:"high",signals:["Wix static assets"]}:document.documentElement.hasAttribute("data-wf-page")||hi("webflow")?{integration:"webflow",confidence:"high",signals:["Webflow page attributes or assets"]}:hi("static1.squarespace.com")||a.includes("squarespace")?{integration:"squarespace",confidence:"medium",signals:["Squarespace assets"]}:window.__NEXT_DATA__||document.getElementById("__next")?{integration:"nextjs",confidence:"high",signals:["Next.js runtime markers"]}:document.querySelector("[ng-version]")||window.angular?{integration:"angular",confidence:"high",signals:["Angular runtime markers"]}:window.__NUXT__||document.getElementById("__nuxt")?{integration:"vue",confidence:"medium",signals:["Nuxt/Vue runtime markers"]}:window.Vue?{integration:"vue",confidence:"medium",signals:["Vue global"]}:document.getElementById("root")||document.querySelector("[data-reactroot]")?{integration:"react",confidence:"low",signals:["Possible React root element"]}:{integration:"unknown",confidence:"low",signals:[]}}class Bc extends Error{status;payload;constructor(a,r,o){super(a),this.name="AkilioHttpError",this.status=r,this.payload=o}}function Ng(n,a){return`${n.replace(/\/$/,"")}${a.startsWith("/")?a:`/${a}`}`}async function Cg(n){const a=await n.text();let r={};try{r=a?JSON.parse(a):{}}catch{r={detail:a}}if(!n.ok){const o=r?.detail||r?.error||r?.message||`Request failed with status ${n.status}`;throw new Bc(o,n.status,r)}return r}function Uc(n,a,r){const o=`${n.replace(/\/$/,"")}|${a}|${r||"anonymous"}`;let s=2166136261;for(let f=0;f<o.length;f+=1)s^=o.charCodeAt(f),s=Math.imul(s,16777619);return`akilio:widget-token:v1:${(s>>>0).toString(16)}`}function lw(n){if(typeof window>"u")return null;try{const a=window.sessionStorage.getItem(n);return a?JSON.parse(a):null}catch{return null}}function Og(n,a){if(!(typeof window>"u"))try{a?window.sessionStorage.setItem(n,JSON.stringify(a)):window.sessionStorage.removeItem(n)}catch{}}class ow{apiBaseUrl;fetchImpl;auth;widgetToken=null;widgetTokenPromise=null;widgetTokenPromiseKey=null;mode;locale;constructor(a){this.apiBaseUrl=a.apiBaseUrl;const r=a.fetchImpl||globalThis.fetch;if(!r)throw new Error("Fetch API is not available in this environment");this.fetchImpl=r.bind(globalThis),this.auth=a.auth,this.mode=a.mode,this.locale=a.locale}hasHostManagedToken(){return!!(this.auth?.getAccessToken||this.auth?.accessToken)}async hostManagedToken(){return(this.auth?.getAccessToken?await this.auth.getAccessToken():this.auth?.accessToken)||null}tokenIsUsable(a,r,o){const s=Math.max(0,this.auth?.tokenRefreshLeewaySeconds??30);return a.projectKey===r&&a.subject===o&&a.expiresAt>Date.now()+s*1e3}clearWidgetToken(a,r){this.widgetToken=null,Og(Uc(this.apiBaseUrl,a,r),null)}async issueWidgetToken(a,r){const o=await this.publicRequest(`/api/v1/projects/${encodeURIComponent(a)}/widget-token/`,{method:"POST",body:JSON.stringify(r?{subject:r}:{})}),s=Math.max(1,Number(o.expires_in)||1),f={token:o.token,tokenType:o.token_type||"Bearer",expiresAt:Date.now()+s*1e3,projectKey:a,subject:r};return this.widgetToken=f,Og(Uc(this.apiBaseUrl,a,r),f),this.auth?.onWidgetToken?.({token:f.token,tokenType:f.tokenType,expiresAt:f.expiresAt}),f}async ensureWidgetToken(a,r,o=!1){if(!o&&this.widgetToken&&this.tokenIsUsable(this.widgetToken,a,r))return this.widgetToken;const s=Uc(this.apiBaseUrl,a,r);if(!o){const u=lw(s);if(u&&this.tokenIsUsable(u,a,r))return this.widgetToken=u,u}o&&this.clearWidgetToken(a,r);const f=`${a}|${r||""}`;return(!this.widgetTokenPromise||this.widgetTokenPromiseKey!==f)&&(this.widgetTokenPromiseKey=f,this.widgetTokenPromise=this.issueWidgetToken(a,r).finally(()=>{this.widgetTokenPromiseKey===f&&(this.widgetTokenPromise=null,this.widgetTokenPromiseKey=null)})),this.widgetTokenPromise}async baseHeaders(a=!1){const r={Accept:"application/json",...this.auth?.headers||{}};return a&&(r["Content-Type"]="application/json"),this.auth?.apiKey&&(r[this.auth.apiKeyHeader||"X-Akilio-Key"]=this.auth.apiKey),r}async execute(a,r,o){const s=await this.fetchImpl(Ng(this.apiBaseUrl,a),{...r,credentials:this.auth?.credentials||"omit",headers:{...o,...r.headers||{}}});return Cg(s)}async publicRequest(a,r={}){return this.execute(a,r,await this.baseHeaders(!!r.body))}async authenticatedRequest(a,r,o,s={}){const f=await this.baseHeaders(!!s.body),u=await this.hostManagedToken();if(u)return f.Authorization=`${this.auth?.tokenScheme||"Bearer"} ${u}`,this.execute(o,s,f);if(this.auth?.autoIssueWidgetToken===!1)throw new Error("No widget authentication token is available");let g=await this.ensureWidgetToken(a,r);f.Authorization=`${g.tokenType} ${g.token}`;try{return await this.execute(o,s,f)}catch(m){if(!(m instanceof Bc)||m.status!==401)throw m;return g=await this.ensureWidgetToken(a,r,!0),f.Authorization=`${g.tokenType} ${g.token}`,this.execute(o,s,f)}}async authenticatedResponse(a,r,o,s={}){const f=await this.baseHeaders(!!s.body);f.Accept="text/event-stream";const u=await this.hostManagedToken();if(u)f.Authorization=`${this.auth?.tokenScheme||"Bearer"} ${u}`;else{if(this.auth?.autoIssueWidgetToken===!1)throw new Error("No widget authentication token is available");const p=await this.ensureWidgetToken(a,r);f.Authorization=`${p.tokenType} ${p.token}`}const g=()=>this.fetchImpl(Ng(this.apiBaseUrl,o),{...s,credentials:this.auth?.credentials||"omit",headers:{...f,...s.headers||{}}});let m=await g();if(m.status===401&&!u){await m.body?.cancel().catch(()=>{});const p=await this.ensureWidgetToken(a,r,!0);f.Authorization=`${p.tokenType} ${p.token}`,m=await g()}return m.ok||await Cg(m),m}getProjectConfig(a){const r=rw();return this.publicRequest(`/api/v1/projects/${encodeURIComponent(a)}/config/`,{method:"POST",body:JSON.stringify({widget:{version:tw.version,mode:this.mode,locale:this.locale,integration:r},browser:{screen_width:window.innerWidth,viewport_width:window.innerWidth,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,referrer:document.referrer||void 0}})})}async prepareWidgetToken(a,r){this.hasHostManagedToken()||this.auth?.autoIssueWidgetToken===!1||await this.ensureWidgetToken(a,r)}sendMessage(a,r,o){return this.authenticatedRequest(a,r,"/api/v1/chat/",{method:"POST",body:JSON.stringify(o)})}async sendMessageStream(a,r,o,s={},f){let u;try{u=await this.authenticatedResponse(a,r,"/api/v1/chat/stream/",{method:"POST",body:JSON.stringify(o),signal:f})}catch(v){if(v instanceof Bc&&[404,405,406,415,501].includes(v.status))return this.sendMessage(a,r,o);throw v}if(!u.body)throw new Error("Streaming response body is unavailable");const g=u.body.getReader(),m=new TextDecoder;let p="",b=null;const h=v=>{let k="message";const x=[];for(const M of v.split(/\r?\n/))!M||M.startsWith(":")||(M.startsWith("event:")&&(k=M.slice(6).trim()),M.startsWith("data:")&&x.push(M.slice(5).trimStart()));if(!x.length)return;let C;try{const M=JSON.parse(x.join(`
44
44
  `));C=M&&typeof M=="object"?M:{value:M}}catch{C={detail:x.join(`
45
- `)}}if(s.onEvent?.({event:v,data:C}),v==="status")s.onStatus?.(String(C.stage||""),C);else if(v==="conversation"){const M=C.conversation_id||C.id;M&&s.onConversation?.(String(M))}else if(v==="answer.delta")typeof C.delta=="string"&&s.onDelta?.(C.delta);else if(v==="final")b=C;else if(v==="error")throw new Error(String(C.detail||C.error||C.message||"Streaming request failed"))};for(;;){const{value:E,done:v}=await g.read();p+=h.decode(E,{stream:!v});const x=p.split(/\r?\n\r?\n/);p=x.pop()||"";for(const C of x)m(C);if(v)break}if(p.trim()&&m(p),!b)throw new Error("The stream ended before a final response was received");return b}getConversation(a,r,o){const s=new URLSearchParams({project_key:a});return this.authenticatedRequest(a,r,`/api/v1/conversations/${encodeURIComponent(o)}/?${s}`)}deleteConversation(a,r,o){const s=new URLSearchParams({project_key:a});return this.authenticatedRequest(a,r,`/api/v1/conversations/${encodeURIComponent(o)}/?${s}`,{method:"DELETE"})}sendCommerceEvent(a,r,o){return this.authenticatedRequest(a,r,"/api/v1/commerce/events/",{method:"POST",body:JSON.stringify(o)})}sendFeedback(a){return this.authenticatedRequest(a.projectKey,a.subject,`/api/v1/messages/${encodeURIComponent(a.messageId)}/feedback/`,{method:"POST",body:JSON.stringify({project_key:a.projectKey,rating:a.rating,comment:a.comment||"",metadata:a.metadata||{}})})}}function WS(n){const r=(n.locale||"").toLowerCase().startsWith("fr")?{launcher:"Demander à Akilio",title:"Demander à Akilio",description:"Posez vos questions à partir des contenus validés de cette organisation.",placeholder:"Posez votre question...",helper:"Entrée pour envoyer. Maj + Entrée pour une nouvelle ligne.",submit:"Envoyer",loading:"Réflexion...",searching:"Recherche des informations pertinentes...",reviewingSources:"Consultation des sources...",checkingAnswer:"Vérification de la réponse...",preparingAnswer:"Préparation de la réponse...",emptyState:"Commencez avec une question ou choisissez une suggestion.",sources:"Sources",confidence:"Confiance",clearHistory:"Effacer",close:"Fermer",online:"Assistant IA",feedbackQuestion:"Cette réponse est-elle utile ?",feedbackThanks:"Merci pour votre retour.",voteUp:"Utile",voteDown:"Pas utile",requestFailed:"Impossible d’obtenir une réponse pour le moment.",configFailed:"Impossible de charger la configuration Akilio.",newChat:"Nouvelle conversation",privacyTitle:"Confidentialité",privacyAccept:"J’accepte que ma question et les données de conversation soient traitées pour fournir une réponse.",privacyAcceptAction:"Accepter",privacyDecline:"Refuser",privacyReview:"Revoir mon choix de confidentialité",privacyRequired:"Votre consentement est requis avant d’envoyer une question.",widgetUnavailable:"Cet assistant est temporairement indisponible.",poweredBy:"Propulsé par Akilio",privacyDefaultNotice:"Vos questions peuvent être enregistrées afin de fournir le service et améliorer sa qualité.",switchToLightMode:"Passer au thème clair",switchToDarkMode:"Passer au thème sombre",products:"Produits",viewProduct:"Voir le produit",fromPrice:"À partir de",unavailable:"Prix indisponible",inStock:"En stock",outOfStock:"Rupture de stock",suggestions:["Quels services offrez-vous ?","Comment puis-je vous contacter ?","Où trouver plus d’informations ?","Pouvez-vous résumer cette page ?"]}:{launcher:"Ask Akilio",title:"Ask Akilio",description:"Ask questions using this organization’s verified content.",placeholder:"Ask your question...",helper:"Press Enter to send. Shift + Enter for a new line.",submit:"Send",loading:"Thinking...",searching:"Searching for relevant information...",reviewingSources:"Reviewing sources...",checkingAnswer:"Checking the answer...",preparingAnswer:"Preparing the answer...",emptyState:"Start with a question or choose a suggestion.",sources:"Sources",confidence:"Confidence",clearHistory:"Clear",close:"Close",online:"AI assistant",feedbackQuestion:"Was this answer useful?",feedbackThanks:"Thanks for your feedback.",voteUp:"Useful",voteDown:"Not useful",requestFailed:"Unable to get an answer right now.",configFailed:"Unable to load Akilio configuration.",newChat:"New chat",privacyTitle:"Privacy",privacyAccept:"I agree that my question and conversation data may be processed to provide an answer.",privacyAcceptAction:"Accept",privacyDecline:"Decline",privacyReview:"Review privacy choice",privacyRequired:"Consent is required before sending a question.",widgetUnavailable:"This assistant is temporarily unavailable.",poweredBy:"Powered by Akilio",privacyDefaultNotice:"Your questions may be stored to provide the service and improve its quality.",switchToLightMode:"Switch to light mode",switchToDarkMode:"Switch to dark mode",products:"Products",viewProduct:"View product",fromPrice:"From",unavailable:"Price unavailable",inStock:"In stock",outOfStock:"Out of stock",suggestions:["What services do you offer?","How can I contact you?","Where can I find more information?","Can you summarize this page?"]},o=n.projectConfig,s=n.overrides||{};return{...r,launcher:s.launcher||o?.theme_config?.launcherLabel||r.launcher,title:s.title||o?.title||r.title,placeholder:s.placeholder||o?.placeholder||r.placeholder,suggestions:o?.starter_questions?.length?o.starter_questions:r.suggestions,...s}}const Ng=":host,.akilio-root{--akilio-primary: #0F766E;--akilio-primary-hover: #115E59;--akilio-primary-foreground: #ffffff;--akilio-accent: #2563eb;--akilio-radius: 22px;--akilio-panel-width: 440px;--akilio-z-index: 2147483647}:host{all:initial;display:block;direction:ltr;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;text-align:left;color-scheme:light dark;pointer-events:none}.akilio-launcher,.akilio-overlay,.akilio-panel{pointer-events:auto}:host *,:host *:before,:host *:after,.akilio-root,.akilio-root *:before,.akilio-root *:after{box-sizing:border-box}.akilio-root button,.akilio-root input,.akilio-root textarea,.akilio-root select{font:inherit;color:inherit}.akilio-root,.akilio-root *{box-sizing:border-box}.akilio-root{color:#18181b;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.akilio-launcher{position:fixed;right:22px;bottom:22px;z-index:calc(var(--akilio-z-index) - 10);display:inline-flex;align-items:center;gap:10px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:linear-gradient(135deg,var(--akilio-primary),var(--akilio-primary-hover));color:#fff!important;padding:11px 16px 11px 12px;cursor:pointer;box-shadow:0 24px 60px #18181b40,0 0 0 1px #09090b14;transition:transform .26s ease,box-shadow .18s ease,background .18s ease}.akilio-launcher:hover{transform:translateY(-2px);box-shadow:0 28px 70px #0891b240,0 0 0 1px #09090b14}.akilio-launcher span{display:grid;width:30px;height:30px;place-items:center;overflow:hidden;border-radius:999px;background:#fff!important}.akilio-launcher-logo{display:block;width:22px;height:22px;object-fit:contain}.akilio-launcher strong{font-size:14px;font-weight:750;letter-spacing:-.01em}.akilio-overlay{position:fixed;inset:0;z-index:calc(var(--akilio-z-index) - 2);border:0;background:#09090b75;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);cursor:default}.akilio-panel{position:fixed;top:0;right:0;z-index:var(--akilio-z-index);display:flex;width:min(100vw,var(--akilio-panel-width));height:100dvh;transform:translate(103%);flex-direction:column;overflow:hidden;border-left:1px solid rgba(212,212,216,.9);background:#f8fafc;box-shadow:-30px 0 90px #0f172a3d;transition:transform .26s cubic-bezier(.2,.8,.2,1)}.akilio-panel--open{transform:translate(0)}.akilio-root[data-akilio-mode=floating] .akilio-panel{top:auto;right:22px;bottom:88px;width:min(400px,calc(100vw - 32px));height:min(650px,calc(100dvh - 116px));min-height:420px;transform:translateY(18px) scale(.98);transform-origin:right bottom;border:1px solid rgba(212,212,216,.9);border-radius:var(--akilio-radius);box-shadow:0 28px 80px #0f172a3d;opacity:0;visibility:hidden;pointer-events:none;transition:transform .22s cubic-bezier(.2,.8,.2,1),opacity .18s ease,visibility .18s ease}.akilio-root[data-akilio-mode=floating] .akilio-panel--open{transform:translateY(0) scale(1);opacity:1;visibility:visible;pointer-events:auto}.akilio-panel-glow{position:absolute;inset:0 0 auto;height:185px;pointer-events:none;background:radial-gradient(circle at 0% 0%,color-mix(in srgb,var(--akilio-primary) 35%,transparent),transparent 36%),radial-gradient(circle at 100% 0%,rgba(37,99,235,.22),transparent 34%)}.akilio-panel-header{position:relative;display:flex;align-items:flex-start;gap:12px;border-bottom:1px solid rgba(212,212,216,.82);background:#ffffffc7;padding:16px;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.akilio-logo,.akilio-empty-icon{display:grid;flex-shrink:0;place-items:center}.akilio-logo{width:94px;height:34px}.akilio-logo img{display:block;width:100%;height:100%;object-fit:contain;object-position:left center}.akilio-empty-icon{width:64px;height:64px;border:1px solid rgba(124,58,237,.12);border-radius:calc(var(--akilio-radius) - 4px);background:#ffffffe0;box-shadow:0 18px 42px #6d28d929}.akilio-empty-icon img{display:block;width:42px;height:42px;object-fit:contain}.akilio-header-content{min-width:0;flex:1}.akilio-header-topline{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:10px}.akilio-header-title{display:flex;min-width:0;align-items:center;gap:8px}.akilio-header-title h2{overflow:hidden;margin:0;color:#09090b;font-size:14px;font-weight:800;letter-spacing:-.015em;text-overflow:ellipsis;white-space:nowrap}.akilio-online{display:inline-flex;align-items:center;gap:5px;border-radius:999px;background:#10b9811f;color:#047857;padding:3px 8px;font-size:10px;font-weight:800;white-space:nowrap}.akilio-online i{width:6px;height:6px;border-radius:999px;background:#10b981}.akilio-header-description{display:-webkit-box;margin:6px 0 0;overflow:hidden;color:#71717a;font-size:12px;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:3}.akilio-header-actions{display:flex;flex-shrink:0;align-items:center;gap:4px}.akilio-header-actions button{display:grid;width:36px;height:36px;place-items:center;border:0;border-radius:999px;background:transparent;color:#71717a;cursor:pointer;transition:background .16s ease,color .16s ease}.akilio-header-actions button:hover{background:#f4f4f5;color:#09090b}.akilio-header-actions svg{width:18px;height:18px}.akilio-thread{position:relative;display:flex;flex:1;flex-direction:column;gap:14px;overflow-y:auto;padding:18px 16px 22px}.akilio-message-row{display:flex;width:100%}.akilio-message-row--user{justify-content:flex-end}.akilio-message-row--assistant{justify-content:flex-start}.akilio-stream-activity{align-items:center;gap:10px;min-height:38px;padding:2px 4px;color:#52525b}.akilio-stream-activity-icon{display:grid;width:28px;height:28px;flex:0 0 28px;place-items:center;border:1px solid color-mix(in srgb,var(--akilio-primary) 22%,#d4d4d8);border-radius:999px;background:color-mix(in srgb,var(--akilio-primary) 8%,#fff);color:var(--akilio-primary)}.akilio-stream-activity-content{display:flex;min-width:0;align-items:center;gap:8px}.akilio-stream-activity-label{font-size:13px;font-weight:550;line-height:1.4;animation:akilio-status-in .18s ease-out}.akilio-stream-activity-pulse{width:6px;height:6px;flex:0 0 6px;border-radius:999px;background:var(--akilio-primary);animation:akilio-status-pulse 1.2s ease-in-out infinite}@keyframes akilio-status-in{0%{transform:translateY(2px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes akilio-status-pulse{0%,to{transform:scale(.75);opacity:.35}50%{transform:scale(1);opacity:1}}.akilio-bubble{max-width:88%;overflow:hidden;border:1px solid rgba(212,212,216,.86);border-radius:26px 26px 26px 8px;background:#fffffff0;color:#27272a;padding:13px 15px;box-shadow:0 10px 28px #0f172a12}.akilio-bubble--user{border-color:#ffffff26;border-bottom-right-radius:8px;border-bottom-left-radius:26px;background:linear-gradient(135deg,var(--akilio-primary),var(--akilio-primary-hover));color:#fff}.akilio-bubble--error{border-color:#f8717159;background:#fef2f2;color:#991b1b}.akilio-bubble-meta{display:flex;align-items:center;gap:7px;margin-bottom:8px;color:var(--akilio-primary);font-size:10px;font-weight:850;letter-spacing:.15em;text-transform:uppercase}.akilio-mini-icon{width:14px;height:14px}.akilio-confidence{margin-left:auto;border-radius:999px;background:color-mix(in srgb,var(--akilio-primary) 11%,transparent);padding:2px 7px;color:var(--akilio-primary);letter-spacing:0;text-transform:none}.akilio-answer{color:inherit;font-size:14px;line-height:1.7}.akilio-answer p{margin:.5rem 0}.akilio-answer p:first-child{margin-top:0}.akilio-answer p:last-child{margin-bottom:0}.akilio-answer ul,.akilio-answer ol{margin:.625rem 0 .625rem 1.25rem;padding-left:.75rem}.akilio-answer ul{list-style:disc}.akilio-answer ol{list-style:decimal}.akilio-answer li{margin:.25rem 0}.akilio-answer a{color:var(--akilio-primary);font-weight:700;text-decoration:underline;text-underline-offset:3px}.akilio-answer code{border-radius:7px;background:#0f172a14;padding:.12rem .35rem;font-size:.86em}.akilio-answer pre{margin:.75rem 0;overflow-x:auto;border:1px solid rgba(148,163,184,.2);border-radius:16px;background:#020617;padding:13px}.akilio-answer pre code{background:transparent;color:#e2e8f0;padding:0}.akilio-answer .hljs-keyword,.akilio-answer .hljs-selector-tag,.akilio-answer .hljs-built_in{color:#f0abfc}.akilio-answer .hljs-string,.akilio-answer .hljs-attr,.akilio-answer .hljs-symbol{color:#86efac}.akilio-answer .hljs-number,.akilio-answer .hljs-literal{color:#fcd34d}.akilio-answer .hljs-comment{color:#64748b;font-style:italic}.akilio-answer .hljs-title,.akilio-answer .hljs-function{color:#7dd3fc}.akilio-answer .hljs-variable{color:#fdba74}.akilio-answer--user{white-space:pre-wrap}.akilio-answer--user code{background:#ffffff29}.akilio-sources{margin-top:11px;overflow:hidden;border:1px solid rgba(212,212,216,.85);border-radius:16px;background:#f4f4f5c7}.akilio-sources summary{cursor:pointer;padding:9px 11px;color:#52525b;font-size:12px;font-weight:800}.akilio-sources-list{display:grid;gap:8px;border-top:1px solid rgba(212,212,216,.85);padding:8px}.akilio-source-card{display:grid;gap:3px;border:1px solid rgba(212,212,216,.82);border-radius:13px;background:#fff;padding:8px;font-size:12px}.akilio-source-card strong{color:#18181b}.akilio-source-card span{color:#71717a}.akilio-source-card a{overflow:hidden;color:var(--akilio-primary);text-overflow:ellipsis;white-space:nowrap}.akilio-feedback{display:flex;align-items:center;gap:7px;margin-top:11px;color:#71717a;font-size:11px}.akilio-feedback span{margin-right:auto}.akilio-feedback button{display:grid;width:28px;height:28px;place-items:center;border:1px solid rgba(212,212,216,.9);border-radius:999px;background:#fff;color:#71717a;cursor:pointer}.akilio-feedback button:hover,.akilio-feedback .akilio-feedback-active{border-color:color-mix(in srgb,var(--akilio-primary) 35%,#d4d4d8);color:var(--akilio-primary)}.akilio-feedback svg{width:14px;height:14px}.akilio-dots{display:flex;gap:6px;padding:2px 0}.akilio-dots span{width:8px;height:8px;border-radius:999px;background:var(--akilio-primary);animation:akilio-bounce .9s infinite ease-in-out}.akilio-dots span:nth-child(2){animation-delay:.1s}.akilio-dots span:nth-child(3){animation-delay:.2s}@keyframes akilio-bounce{0%,80%,to{transform:translateY(0);opacity:.45}40%{transform:translateY(-4px);opacity:1}}.akilio-empty{margin:auto;display:flex;max-width:340px;flex-direction:column;align-items:center;padding:34px 0;text-align:center}.akilio-empty-icon{width:58px;height:58px;margin-bottom:16px}.akilio-empty h3{margin:0;color:#09090b;font-size:17px;font-weight:850;letter-spacing:-.02em}.akilio-empty p{margin:8px 0 0;color:#71717a;font-size:14px;line-height:1.65}.akilio-suggestions{display:grid;width:100%;gap:9px;margin-top:18px}.akilio-suggestions button{border:1px solid rgba(212,212,216,.9);border-radius:16px;background:#fff;color:#3f3f46;cursor:pointer;padding:10px 12px;text-align:left;font-size:12px;font-weight:700;box-shadow:0 5px 14px #0f172a0a;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.akilio-suggestions button:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--akilio-primary) 35%,#d4d4d8);box-shadow:0 12px 22px #0f172a14}.akilio-composer{position:relative;border-top:1px solid rgba(212,212,216,.85);background:#ffffffdb;padding:12px;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.akilio-composer-box{border:1px solid rgba(212,212,216,.95);border-radius:24px;background:#f8fafc;padding:8px;box-shadow:inset 0 1px 2px #0f172a0a;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}.akilio-composer-box:focus-within{border-color:color-mix(in srgb,var(--akilio-primary) 55%,#d4d4d8);background:#fff;box-shadow:0 0 0 4px color-mix(in srgb,var(--akilio-primary) 13%,transparent),inset 0 1px 2px #0f172a08}.akilio-composer textarea{width:100%;min-height:48px;max-height:148px;height:48px;overflow-y:hidden;resize:none;border:0;outline:0;background:transparent;color:#09090b;padding:8px 10px;font:inherit;font-size:14px;line-height:1.55}.akilio-online--unavailable{color:#a16207}.akilio-online--unavailable i{background:#f59e0b;box-shadow:0 0 0 3px #f59e0b29}.akilio-composer textarea::placeholder{color:#a1a1aa}.akilio-composer-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 2px 2px 7px}.akilio-composer-footer span{color:#71717a;font-size:11px}.akilio-composer-footer button{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:999px;background:var(--akilio-primary);color:#fff;cursor:pointer;padding:10px 15px;font-size:12px;font-weight:850;box-shadow:0 10px 24px #0f172a24;transition:transform .15s ease,opacity .15s ease}.akilio-composer-footer button:hover:not(:disabled){transform:translateY(-1px);background:var(--akilio-primary-hover)}.akilio-powered-by{padding:7px 4px 0;color:#71717a;font-size:10px;font-weight:600;line-height:1.2;text-align:center}.akilio-composer-footer button:disabled{cursor:not-allowed;opacity:.45}.akilio-composer-footer svg{width:15px;height:15px}.akilio-tour{max-width:360px;border-radius:18px!important}@media(max-width:640px){.akilio-launcher{right:16px;bottom:16px;padding:10px 12px}.akilio-launcher strong{display:none}.akilio-panel{width:100vw}.akilio-bubble{max-width:94%}.akilio-composer-footer span{display:none}}.akilio-root[data-akilio-mode=inline]{width:100%;height:100%;min-height:520px}.akilio-panel--inline{position:relative;inset:auto;width:100%;height:100%;min-height:520px;transform:none;border:1px solid rgba(212,212,216,.9);border-radius:var(--akilio-radius);box-shadow:0 18px 50px #0f172a1f}.akilio-privacy{display:grid;gap:8px;border-top:1px solid rgba(212,212,216,.82);background:#ffffffe6;padding:10px 14px;font-size:11px;line-height:1.45}.akilio-privacy strong{color:#18181b}.akilio-privacy p{margin:2px 0 0;color:#71717a}.akilio-privacy a{color:var(--akilio-primary);font-weight:700}.akilio-privacy label{display:flex;align-items:flex-start;gap:8px;color:#3f3f46;cursor:pointer}.akilio-privacy input{margin-top:2px;accent-color:var(--akilio-primary)}.akilio-composer textarea:disabled{cursor:not-allowed;opacity:.65}.akilio-root button:focus-visible,.akilio-root a:focus-visible,.akilio-root input:focus-visible{outline:3px solid color-mix(in srgb,var(--akilio-primary) 45%,transparent);outline-offset:2px}.akilio-root .akilio-composer textarea:focus,.akilio-root .akilio-composer textarea:focus-visible{border:0;outline:none;box-shadow:none}@media(prefers-reduced-motion:reduce){.akilio-root *,.akilio-root *:before,.akilio-root *:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.akilio-root[data-akilio-color-mode=dark]{color:#e4e4e7}.akilio-root[data-akilio-color-mode=dark] .akilio-panel,.akilio-root[data-akilio-color-mode=dark] .akilio-panel--inline{background:var(--akilio-surface, #09090b);border-color:#27272a}.akilio-root[data-akilio-color-mode=dark] .akilio-panel-header,.akilio-root[data-akilio-color-mode=dark] .akilio-privacy{background:#18181beb;border-color:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-header-title h2,.akilio-root[data-akilio-color-mode=dark] .akilio-empty h3,.akilio-root[data-akilio-color-mode=dark] .akilio-privacy strong{color:var(--akilio-text, #fafafa)}.akilio-root[data-akilio-color-mode=dark] .akilio-header-description,.akilio-root[data-akilio-color-mode=dark] .akilio-empty p,.akilio-root[data-akilio-color-mode=dark] .akilio-privacy p,.akilio-root[data-akilio-color-mode=dark] .akilio-privacy label,.akilio-root[data-akilio-color-mode=dark] .akilio-stream-activity{color:var(--akilio-muted, #a1a1aa)}.akilio-root[data-akilio-color-mode=dark] .akilio-stream-activity-icon{border-color:color-mix(in srgb,var(--akilio-primary) 35%,#3f3f46);background:color-mix(in srgb,var(--akilio-primary) 15%,#18181b)}.akilio-root[data-akilio-color-mode=dark] .akilio-bubble{background:#18181b;border-color:#3f3f46;color:#e4e4e7;box-shadow:none}.akilio-root[data-akilio-color-mode=dark] .akilio-bubble--user{background:linear-gradient(135deg,var(--akilio-primary),var(--akilio-accent));color:var(--akilio-primary-foreground)}.akilio-root[data-akilio-color-mode=dark] .akilio-sources{background:#09090b;border-color:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-sources-list{border-color:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-source-card,.akilio-root[data-akilio-color-mode=dark] .akilio-feedback button,.akilio-root[data-akilio-color-mode=dark] .akilio-composer-box{background:#18181b;border-color:#3f3f46;color:#e4e4e7}.akilio-root[data-akilio-color-mode=dark] .akilio-source-card strong{color:#fafafa}.akilio-root[data-akilio-color-mode=dark] .akilio-source-card span,.akilio-root[data-akilio-color-mode=dark] .akilio-feedback{color:#a1a1aa}@media(prefers-color-scheme:dark){.akilio-root[data-akilio-color-mode=system] .akilio-panel,.akilio-root[data-akilio-color-mode=system] .akilio-panel--inline{background:#09090b;border-color:#27272a}.akilio-root[data-akilio-color-mode=system] .akilio-panel-header,.akilio-root[data-akilio-color-mode=system] .akilio-privacy{background:#18181beb;border-color:#3f3f46}.akilio-root[data-akilio-color-mode=system] .akilio-header-title h2,.akilio-root[data-akilio-color-mode=system] .akilio-empty h3,.akilio-root[data-akilio-color-mode=system] .akilio-privacy strong{color:#fafafa}.akilio-root[data-akilio-color-mode=system] .akilio-header-description,.akilio-root[data-akilio-color-mode=system] .akilio-empty p,.akilio-root[data-akilio-color-mode=system] .akilio-privacy p,.akilio-root[data-akilio-color-mode=system] .akilio-privacy label{color:#a1a1aa}.akilio-root[data-akilio-color-mode=system] .akilio-bubble{background:#18181b;border-color:#3f3f46;color:#e4e4e7;box-shadow:none}.akilio-root[data-akilio-color-mode=system] .akilio-bubble--user{background:linear-gradient(135deg,var(--akilio-primary),var(--akilio-accent));color:var(--akilio-primary-foreground)}.akilio-root[data-akilio-color-mode=system] .akilio-source-card,.akilio-root[data-akilio-color-mode=system] .akilio-feedback button,.akilio-root[data-akilio-color-mode=system] .akilio-composer-box{background:#18181b;border-color:#3f3f46;color:#e4e4e7}}@media(max-width:640px){.akilio-launcher{right:14px;bottom:max(14px,env(safe-area-inset-bottom));padding:10px}.akilio-launcher strong{display:none}.akilio-panel{width:100vw;height:100dvh;border-left:0}.akilio-root[data-akilio-mode=floating] .akilio-panel{right:14px;bottom:calc(76px + env(safe-area-inset-bottom));width:calc(100vw - 28px);height:min(640px,calc(100dvh - 104px - env(safe-area-inset-bottom)));min-height:min(420px,calc(100dvh - 104px));border:1px solid rgba(212,212,216,.9);border-radius:18px}.akilio-panel-header{padding-top:max(14px,env(safe-area-inset-top))}.akilio-thread{padding-inline:12px}.akilio-bubble{max-width:94%}.akilio-composer{padding-bottom:max(10px,env(safe-area-inset-bottom))}.akilio-root[data-akilio-mode=inline]{min-height:480px}.akilio-panel--inline{min-height:480px;border-radius:16px}}.akilio-root[data-akilio-color-mode=dark] .akilio-composer{background:#18181beb;border-color:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-composer textarea{color:var(--akilio-text, #fafafa);caret-color:var(--akilio-text, #fafafa);-webkit-text-fill-color:var(--akilio-text, #fafafa)}.akilio-root[data-akilio-color-mode=dark] .akilio-composer textarea::placeholder{color:var(--akilio-muted, #a1a1aa);-webkit-text-fill-color:var(--akilio-muted, #a1a1aa);opacity:1}.akilio-root[data-akilio-color-mode=dark] .akilio-composer-footer span,.akilio-root[data-akilio-color-mode=dark] .akilio-powered-by{color:var(--akilio-muted, #a1a1aa)}.akilio-root[data-akilio-color-mode=dark] .akilio-composer-box:focus-within{background:#18181b}@media(max-width:420px){.akilio-logo{width:78px;height:30px}}.akilio-privacy-consent-copy{margin-top:6px!important}.akilio-privacy-actions{display:flex;justify-content:flex-end;gap:8px}.akilio-privacy-actions button{border:1px solid rgba(161,161,170,.65);border-radius:999px;padding:6px 12px;font:inherit;font-weight:700;cursor:pointer}.akilio-privacy-decline{background:transparent;color:#52525b}.akilio-privacy-accept{border-color:var(--akilio-primary)!important;background:var(--akilio-primary);color:#fff}.akilio-privacy-review{border:0;background:transparent;color:var(--akilio-primary);font:inherit;font-weight:700;text-decoration:underline;cursor:pointer;padding:0}.akilio-products{margin-top:14px;min-width:0}.akilio-products-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;font-size:12px;color:#64748b}.akilio-products-heading span{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:#eef2ff;color:#4338ca;font-weight:700}.akilio-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.akilio-product-card{min-width:0;overflow:hidden;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 6px 20px #0f172a0f}.akilio-product-media{position:relative;aspect-ratio:4 / 3;overflow:hidden;background:#f1f5f9}.akilio-product-media img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .18s ease}.akilio-product-card:hover .akilio-product-media img{transform:scale(1.025)}.akilio-product-placeholder{width:100%;height:100%;display:grid;place-items:center;color:var(--akilio-primary);font-size:30px;font-weight:800;background:linear-gradient(145deg,#0891b21f,#2563eb14)}.akilio-stock{position:absolute;top:8px;right:8px;max-width:calc(100% - 16px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:4px 7px;border-radius:999px;background:#7f1d1de6;color:#fff;font-size:9px;font-weight:700}.akilio-stock--available{background:#065f46e6}.akilio-product-body{padding:11px}.akilio-product-vendor,.akilio-product-variant{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b;font-size:10px}.akilio-product-card h4{margin:4px 0 8px;min-height:34px;overflow:hidden;color:#0f172a;font-size:13px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.akilio-product-price{min-height:37px;display:flex;flex-wrap:wrap;align-items:baseline;gap:5px;margin-bottom:9px}.akilio-product-price strong{color:#0f172a;font-size:14px}.akilio-product-price del{color:#94a3b8;font-size:10px}.akilio-product-action{width:100%;min-height:34px;display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border:0;border-radius:10px;background:var(--akilio-primary);color:var(--akilio-primary-foreground);font:inherit;font-size:11px;font-weight:700;text-decoration:none;cursor:pointer}.akilio-product-action:hover{filter:brightness(.96)}.akilio-product-action:focus-visible{outline:3px solid color-mix(in srgb,var(--akilio-primary) 28%,transparent);outline-offset:2px}.akilio-product-action:disabled{opacity:.55;cursor:not-allowed}.akilio-root[data-akilio-color-mode=dark] .akilio-products-heading{color:#94a3b8}.akilio-root[data-akilio-color-mode=dark] .akilio-products-heading span{background:#312e81;color:#e0e7ff}.akilio-root[data-akilio-color-mode=dark] .akilio-product-card{background:#111827;border-color:#334155;box-shadow:none}.akilio-root[data-akilio-color-mode=dark] .akilio-product-media{background:#1e293b}.akilio-root[data-akilio-color-mode=dark] .akilio-product-card h4,.akilio-root[data-akilio-color-mode=dark] .akilio-product-price strong{color:#f8fafc}.akilio-root[data-akilio-color-mode=dark] .akilio-product-vendor,.akilio-root[data-akilio-color-mode=dark] .akilio-product-variant{color:#94a3b8}@media(max-width:390px){.akilio-product-grid{grid-template-columns:1fr}.akilio-product-media{aspect-ratio:16 / 9}}.akilio-response-suggestions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.akilio-response-suggestions button{appearance:none;border:1px solid color-mix(in srgb,var(--akilio-primary) 26%,#d4d4d8);border-radius:999px;background:color-mix(in srgb,var(--akilio-primary) 7%,#ffffff);color:color-mix(in srgb,var(--akilio-primary) 72%,#18181b);cursor:pointer;padding:8px 11px;text-align:left;font:inherit;font-size:12px;font-weight:700;line-height:1.35;transition:transform .15s ease,border-color .15s ease,background .15s ease}.akilio-response-suggestions button:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--akilio-primary) 52%,#d4d4d8);background:color-mix(in srgb,var(--akilio-primary) 12%,#ffffff)}.akilio-response-suggestions button:focus-visible{outline:3px solid color-mix(in srgb,var(--akilio-primary) 24%,transparent);outline-offset:2px}.akilio-root[data-akilio-color-mode=dark] .akilio-response-suggestions button{border-color:color-mix(in srgb,var(--akilio-primary) 34%,#3f3f46);background:color-mix(in srgb,var(--akilio-primary) 14%,#18181b);color:#f4f4f5}";class go extends Error{code;constructor(a,r){super(r),this.name="AkilioPublicApiError",this.code=a}}function Zn(n,a){typeof window>"u"||window.dispatchEvent(new CustomEvent(`akilio:${n}`,{detail:a||{}}))}function cn(n,a){return new go(n,a)}function er(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now()}-${Math.random().toString(16).slice(2)}`}function Jr(){return new Date().toISOString()}function Cg(n){const a=typeof n=="function"?n():n||{};return typeof window>"u"?a:{url:a.url||window.location.href,title:a.title||document.title,...a}}function ew(n,a){const r={...n?.theme_config||{},...a||{}};return{"--akilio-primary":String(r.primary||"#0F766E"),"--akilio-primary-hover":String(r.primaryDark||"#115E59"),"--akilio-primary-foreground":String(r.primaryForeground||"#ffffff"),"--akilio-accent":String(r.accent||"#2563eb"),"--akilio-radius":String(r.radius||"22px"),"--akilio-panel-width":`${Number(r.panelWidth||440)}px`,"--akilio-z-index":String(Number(r.zIndex||2147483647)),"--akilio-surface":String(r.surface||""),"--akilio-text":String(r.text||""),"--akilio-muted":String(r.muted||"")}}function tw(n,a){ye.useEffect(()=>{if(typeof document>"u")return;const r=document.documentElement;return r.classList.toggle("akilio-panel-open",n&&a),()=>r.classList.remove("akilio-panel-open")},[n,a])}function Og(n){return Array.isArray(n)?n.filter(a=>typeof a=="string").map(a=>a.trim()).filter(Boolean).slice(0,6):[]}function nw(n){if(typeof n.answer=="string"&&n.answer.trim())return n.answer;const a=n.content;if(a&&typeof a=="object")for(const r of["answer","text","message"]){const o=a[r];if(typeof o=="string"&&o.trim())return o}return""}function Mg(n){if(!n)return null;try{const a=JSON.parse(n);return a&&typeof a=="object"?a:null}catch{return null}}function iw(n,a=!0){return{id:er(),role:"assistant",content:nw(n),backendMessageId:n.message_id,conversationId:n.conversation_id,confidence:n.confidence,sources:n.sources||[],provider:n.provider,model:n.model,costUsd:n.cost_usd,commerce:a&&n.commerce||null,suggestions:Og(n.suggestions),createdAt:Jr()}}function Rg({apiBaseUrl:n="https://api.akilio-ai.com",projectKey:a,locale:r="en",mode:o="floating",colorMode:s="system",allowColorModeToggle:f=!0,showAkilioBranding:u=!0,streaming:g=!0,defaultOpen:h=!1,open:p,launcher:b="default",persistOpenState:m=!0,enableTour:E=!0,enableLocalHistory:v=!0,enableServerHistorySync:x=!0,anonymousId:C,externalUserId:M,channel:w,audience:q,productArea:H,assistantMode:J,pageContext:te,auth:D,accessToken:ce,privacyNotice:ne,privacyNoticeUrl:fe,requireConsent:z,consentNoticeVersion:oe="v1",initialConsent:re=!1,onConsentChange:ke,copy:le,theme:Q,className:G,onOpenChange:j,onMessage:P,onProductClick:ve,onError:S}){const Re=ye.useRef(null),T=ye.useRef(null),k=ye.useRef(0),W=ye.useRef({open:!1,busy:!1,conversationId:null}),[de,Ee]=ye.useState(null),Me=ye.useMemo(()=>({...D||{},accessToken:D?.accessToken||ce}),[ce,D]),xe=ye.useMemo(()=>new JS({apiBaseUrl:n,auth:Me}),[n,Me]),ft=$S(),[ze,un]=ye.useState(null),[zn,Xn]=ye.useState(null),[In,Qt]=ye.useState(!1),[Pe,Jt]=ye.useState({stage:"",message:""}),[Bn,bn]=ye.useState(null),[yn,Vt]=XS({enabled:v,projectKey:a,locale:r}),[Bt,xn]=Qr({enabled:v,key:`akilio:${a}:${r}:conversation-id:v2`}),Un=ye.useMemo(()=>er(),[a]),[Ut]=Qr({enabled:!0,key:`akilio:${a}:widget-subject:v1`,initialValue:Un}),[Y,ae]=Qr({enabled:m,key:`akilio:${a}:panel-open:v2`,initialValue:h?"true":""}),[Te,Ie]=Qr({enabled:!0,key:`akilio:${a}:consent:${oe}`,initialValue:re?"true":""}),[We,$t]=ye.useState(h),[fn,dn]=Qr({enabled:!0,key:`akilio:${a}:color-mode:v1`}),[pn,Nt]=ye.useState("light"),et=o==="inline",kt=o==="floating",Wt=o==="hybrid"||o==="side-panel",Yi=!et&&(o==="side-panel"||o==="hybrid"&&ft),tr=!et&&!kt&&(o==="drawer"||o==="hybrid"&&!ft),En=et||(p??(m&&Y==="true"||We)),Hn=s||Q?.colorMode||ze?.theme_config?.colorMode||"system",N=fn==="light"||fn==="dark"||fn==="system"?fn:Hn,V=N==="system"?pn:N,ee=ye.useMemo(()=>WS({locale:r,projectConfig:ze,overrides:le}),[le,r,ze]),Ae=ze?.widget_policy,dt=Ae?.available!==!1,tt=Ae?.commerce_enabled!==!1,he=Ae?.assistant_mode||J,pe=Ae?.branding==="akilio_required"||Ae?.branding!=="white_label"&&u,Ce=Ae?.branding==="akilio_required",Ct=ye.useMemo(()=>tt?yn:yn.map(ue=>ue.commerce?{...ue,commerce:null}:ue),[tt,yn]),xt=ye.useMemo(()=>ew(ze,Q),[ze,Q]),qn=z??ze?.require_consent??!1,xi=ne||ze?.privacy_notice||"",Pi=fe||ze?.privacy_notice_url,Ta=Te==="true"||Te==="accepted"?"accepted":Te==="rejected"?"rejected":"pending",Zt=Ta==="accepted",nt=M||C||Ut||void 0,_t=ye.useCallback(ue=>{if(et)return;const Ge=W.current.open!==ue;W.current.open=ue,p===void 0&&($t(ue),m&&ae(ue?"true":"")),j?.(ue),Ge&&Zn(ue?"open":"close")},[p,et,j,m,ae]),li=ye.useMemo(()=>({open:En,openChat:()=>_t(!0),closeChat:()=>_t(!1),toggleChat:()=>_t(!En)}),[En,_t]),Ki=ye.useCallback(ue=>{Ie(ue==="pending"?"":ue),ue!=="pending"&&ke?.(ue==="accepted")},[ke,Ie]);ye.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const ue=window.matchMedia("(prefers-color-scheme: dark)"),Ge=()=>Nt(ue.matches?"dark":"light");return Ge(),ue.addEventListener?.("change",Ge),()=>ue.removeEventListener?.("change",Ge)},[]);const Vi=ye.useCallback(()=>{dn(V==="dark"?"light":"dark")},[V,dn]);tw(En,Yi&&Wt),ye.useEffect(()=>{let ue=!1;return xe.getProjectConfig(a).then(Ge=>{ue||(un(Ge),Xn(null))}).catch(Ge=>{ue||(Xn(Ge.message),S?.(Ge))}),()=>{ue=!0}},[xe,S,a]),ye.useEffect(()=>{nt&&xe.prepareWidgetToken(a,nt).catch(ue=>S?.(ue))},[xe,S,a,nt]),ye.useEffect(()=>{if(!x||!nt||!Bt||yn.length>0)return;let ue=!1;return xe.getConversation(a,nt,Bt).then(Ge=>{ue||Vt(Ge.messages.map(we=>({id:we.id,backendMessageId:we.role==="assistant"?we.id:void 0,conversationId:Ge.id,role:we.role,content:we.content,sources:we.sources||[],confidence:we.confidence,commerce:(()=>{const je=we.metadata&&typeof we.metadata=="object"?we.metadata:null,pt=Mg(we.structured_content);return tt&&(je?.commerce||pt?.commerce)||null})(),suggestions:(()=>{const je=we.metadata&&typeof we.metadata=="object"?we.metadata:null,pt=Mg(we.structured_content);return Og(je?.suggestions||pt?.suggestions)})(),createdAt:we.created_at})).slice(-Wa))}).catch(()=>xn("")),()=>{ue=!0}},[xe,tt,Bt,x,yn.length,a,xn,Vt,nt]);const Aa=ye.useCallback(()=>{Vt([]),xn("")},[xn,Vt]),Na=ye.useCallback(async ue=>{if(!ue)throw cn("INVALID_QUESTION","Question is empty");if(!dt)throw cn("INVALID_QUESTION","This widget is not currently available");if(In)throw cn("BUSY","An answer is already in progress");if(qn&&!Zt)throw cn("INVALID_QUESTION","Privacy consent is required");const Ge=Cg(te),we={id:er(),role:"user",content:ue,createdAt:Jr(),conversationId:Bt||void 0};Vt(pt=>[...pt,we].slice(-Wa)),P?.(we),Zn("question",{question:ue}),Qt(!0),W.current.busy=!0,Zn("answer-start",{question:ue}),Jt({stage:"",message:""}),bn(null);const je=er();try{const pt={project_key:a,conversation_id:Bt||void 0,message:ue,locale:r,channel:w||Ge.channel||"docs",audience:q||Ge.audience,product_area:H||Ge.productArea,assistant_mode:he||void 0,page:{url:Ge.url,title:Ge.title,...Ge.metadata||{}},anonymous_id:C,external_user_id:M,consent:{granted:Zt,granted_at:Zt?Jr():void 0,notice_version:oe}};let $="";const ge=g?await xe.sendMessageStream(a,nt,pt,{onStatus:(He,Et)=>{const Yt=Et.message||Et.label;Jt({stage:He,message:typeof Yt=="string"?Yt:""})},onConversation:He=>{W.current.conversationId=He,xn(He)},onDelta:He=>{$+=He,Zn("answer-delta",{delta:He}),bn({id:je,role:"assistant",content:$,conversationId:Bt||void 0,createdAt:Jr(),streaming:!0})}}):await xe.sendMessage(a,nt,pt);W.current.conversationId=ge.conversation_id,xn(ge.conversation_id);const Ue={...iw(ge,tt),id:$?je:er(),streaming:!1};return bn(null),Vt(He=>[...He,Ue].slice(-Wa)),P?.(Ue),Zn("answer-complete",{response:ge}),ge}catch(pt){const $=pt instanceof Error?pt:new Error(ee.requestFailed),ge={id:er(),role:"assistant",content:$.message||ee.requestFailed,createdAt:Jr(),error:!0};throw bn(null),Vt(Ue=>[...Ue,ge].slice(-Wa)),S?.($),Zn("error",{code:pt instanceof go?pt.code:"STREAM_FAILED",message:$.message||ee.requestFailed}),$}finally{Qt(!1),W.current.busy=!1,Jt({stage:"",message:""})}},[C,q,w,xe,tt,Zt,oe,Bt,ee.requestFailed,qn,he,M,In,r,S,P,te,H,a,xn,Vt,g,nt,dt]),en=ye.useCallback(()=>{const ue=T.current;ue&&(T.current=null,ue.timer&&window.clearTimeout(ue.timer),ue.reject(cn("TYPING_CANCELLED","Draft typing was cancelled")),Zn("typing-cancel",{draft:Re.current?.getDraft()||""}))},[]),Sn=ye.useCallback((ue,Ge)=>{Ge&&T.current&&en(),Zn("draft-change",{draft:ue})},[en]);W.current={open:En,busy:In,conversationId:Bt||null},ye.useEffect(()=>{if(typeof window>"u"||window.AkilioWidget)return;const ue=()=>{if(!Re.current)throw cn("NOT_READY","The widget is not ready");return Re.current},Ge=async(je,pt={})=>{if(en(),typeof je!="string")throw cn("INVALID_QUESTION","Draft must be a string");ue().setDraft(je,{focus:pt.focus,clearExisting:pt.clearExisting??!0}),await new Promise($=>window.setTimeout($,0))},we=Object.freeze({open:async()=>{_t(!0),await new Promise(je=>window.setTimeout(je,0))},close:async()=>{_t(!1),await new Promise(je=>window.setTimeout(je,0))},setDraft:Ge,typeDraft:async(je,pt={})=>{if(en(),typeof je!="string"||!je.length)throw cn("INVALID_QUESTION","Question must not be empty");const $=ue(),ge=pt.clearExisting===!1?$.getDraft():"",Ue=Math.max(0,Number(pt.interval??35)),He=++k.current;return Zn("typing-start",{textLength:je.length}),new Promise(async(Et,Yt)=>{T.current={id:He,reject:Yt};try{for(let Ht=1;Ht<=je.length;Ht+=1){if(await new Promise(ci=>{const St=window.setTimeout(ci,Ue);T.current?.id===He&&(T.current.timer=St)}),T.current?.id!==He)return;$.setDraft(`${ge}${je.slice(0,Ht)}`,{clearExisting:!0,focus:pt.focus&&Ht===1})}if(T.current?.id!==He)return;T.current=null,Zn("typing-complete",{draft:$.getDraft()}),Et()}catch(Ht){T.current=null,Yt(Ht)}})},clearDraft:async()=>{en(),ue().clearDraft()},cancelTyping:en,submit:async()=>{if(W.current.busy)throw cn("BUSY","An answer is already in progress");const je=ue();if(!je.getDraft().trim())throw cn("EMPTY_DRAFT","The draft is empty");try{return await je.submitDraft()}catch($){throw $ instanceof go?$:$ instanceof Error&&$.message==="BUSY"?cn("BUSY","An answer is already in progress"):$ instanceof Error&&$.message==="EMPTY_DRAFT"?cn("EMPTY_DRAFT","The draft is empty"):$ instanceof Error&&$.message==="INVALID_QUESTION"?cn("INVALID_QUESTION","The question is invalid"):cn("STREAM_FAILED",$ instanceof Error?$.message:"Streaming failed")}},ask:async(je,pt)=>(await Ge(je,pt),we.submit()),reset:async()=>{try{if(en(),W.current.busy)throw cn("BUSY","An answer is already in progress");Aa(),W.current.conversationId=null,ue().clearDraft(),bn(null),Zn("reset")}catch(je){throw je instanceof go?je:cn("RESET_FAILED","The conversation could not be reset")}},getState:()=>({ready:!!Re.current,open:W.current.open,busy:W.current.busy,typing:!!T.current,draft:Re.current?.getDraft()||"",conversationId:W.current.conversationId})});return window.AkilioWidget=we,Zn("ready"),()=>{en(),window.AkilioWidget===we&&delete window.AkilioWidget}},[en,Aa,_t]);const oi=ye.useCallback((ue,Ge,we)=>{tt&&(ve?.(Ge,we),xe.sendCommerceEvent(a,nt,{event_type:ue.commerce?.capability==="product_search"?"search":"recommendation",product_id:Ge.id,variant_id:we?.id||null,conversation_id:ue.conversationId||Bt||null,external_user_id:M||"",value:we?.price||null,currency:we?.currency||"",metadata:{source:"widget_product_card",capability:ue.commerce?.capability,product_url:Ge.url||""}}).catch(je=>S?.(je)))},[xe,tt,Bt,M,S,ve,a,nt]),si=ye.useCallback(async(ue,Ge)=>{if(ue.backendMessageId){Vt(we=>we.map(je=>je.id===ue.id?{...je,feedback:Ge}:je));try{await xe.sendFeedback({projectKey:a,subject:nt,messageId:ue.backendMessageId,rating:Ge,metadata:{conversation_id:ue.conversationId||Bt,locale:r,page:Cg(te)}})}catch(we){S?.(we instanceof Error?we:new Error("Feedback request failed"))}}},[xe,Bt,r,S,te,a,Vt,nt]);return L.jsxs("div",{ref:Ee,className:Fi("akilio-root",G),style:xt,"data-akilio-mode":et?"inline":kt?"floating":Yi?"side-panel":"drawer","data-akilio-color-mode":V,children:[!et&&b==="default"&&L.jsx(KS,{label:pe?ee.launcher:ee.title,onClick:li.toggleChat,showBranding:pe}),!et&&typeof b=="function"&&b(li),tr&&En&&L.jsx("button",{type:"button",className:"akilio-overlay","aria-label":ee.close,onClick:()=>_t(!1)}),L.jsx(PS,{ref:Re,open:En,isDesktop:Yi,inline:et,colorMode:V,allowColorModeToggle:f,widgetAvailable:dt,showBranding:pe,showPoweredBy:Ce,locale:r,copy:{...ee,description:zn?`${ee.description} ${ee.configFailed}: ${zn}`:ee.description},messages:Ct,streamingMessage:Bn,loading:In,loadingLabel:Pe.message||(()=>{const ue=Pe.stage.toLowerCase();return ue.includes("retriev")||ue.includes("search")?ee.searching:ue.includes("ground")||ue.includes("source")?ee.reviewingSources:ue.includes("valid")||ue.includes("check")||ue.includes("safety")?ee.checkingAnswer:ue.includes("answer")||ue.includes("generat")||ue.includes("prepar")?ee.preparingAnswer:ee.loading})(),consentDecision:Ta,consentGranted:Zt,requireConsent:qn,privacyNotice:xi,privacyNoticeUrl:Pi,onConsentDecision:Ki,onClose:()=>_t(!1),onToggleColorMode:Vi,onClear:Aa,onSubmit:Na,onDraftChange:Sn,onFeedback:si,onProductClick:oi,onSuggestion:ue=>{Na(ue).catch(()=>{})}})]})}function aw(n){const a=n.styleIsolation??"shadow",r=(n.mode??"floating")!=="inline",o=ye.useRef(null),[s,f]=ye.useState(null);return ye.useEffect(()=>{if(a!=="shadow"||!o.current){f(null);return}const u=o.current,g=u.shadowRoot??u.attachShadow({mode:"open"});if(r&&(u.style.position="fixed",u.style.inset="0",u.style.width="100vw",u.style.height="100dvh",u.style.margin="0",u.style.padding="0",u.style.border="0",u.style.background="transparent",u.style.pointerEvents="none",u.style.zIndex="2147483647",u.style.isolation="isolate",typeof u.showPopover=="function")){u.setAttribute("popover","manual");try{u.showPopover()}catch{u.removeAttribute("popover")}}let h=g.querySelector("style[data-akilio-styles]");h||(h=document.createElement("style"),h.setAttribute("data-akilio-styles",""),h.textContent=Ng,g.appendChild(h));let p=g.querySelector("[data-akilio-shadow-mount]");return p||(p=document.createElement("div"),p.setAttribute("data-akilio-shadow-mount",""),g.appendChild(p)),f(p),()=>{if(typeof u.hidePopover=="function")try{u.hidePopover()}catch{}u.removeAttribute("popover"),u.removeAttribute("style")}},[a,r]),a==="shadow"?L.jsx("div",{ref:o,"data-akilio-shadow-host":"true",children:s&&_y.createPortal(L.jsx(Rg,{...n}),s)}):L.jsxs(L.Fragment,{children:[a==="scoped"&&L.jsx("style",{"data-akilio-styles":!0,children:Ng}),L.jsx(Rg,{...n})]})}const ho=new Map;function rw(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`akilio-${Date.now()}-${Math.random().toString(16).slice(2)}`}function lw(n){if(n instanceof HTMLElement)return n;if(typeof n=="string"){const r=document.querySelector(n);if(!r)throw new Error(`Akilio target not found: ${n}`);return r}const a=document.createElement("div");return a.setAttribute("data-akilio-root","true"),document.body.appendChild(a),a}function ki(n,a=!1){return n==null||n===""?a:["1","true","yes","on"].includes(n.toLowerCase())}function ow(n){if(n)try{return JSON.parse(n)}catch{return}}function sw(n){const a=n.dataset,r=a.apiBaseUrl||a.apiUrl||"https://api.akilio-ai.com",o=a.projectKey;if(!o)throw new Error("Missing data-project-key on Akilio script tag");return{apiBaseUrl:r,projectKey:o,locale:a.locale||document.documentElement.lang||"en",mode:a.mode||"floating",colorMode:a.colorMode||"system",allowColorModeToggle:ki(a.allowColorModeToggle,!0),showAkilioBranding:ki(a.showAkilioBranding,!0),streaming:ki(a.streaming,!0),styleIsolation:a.styleIsolation||"shadow",defaultOpen:ki(a.defaultOpen),launcher:a.launcher==="hidden"?"hidden":"default",persistOpenState:ki(a.persistOpenState,!0),enableTour:ki(a.enableTour,!0),enableLocalHistory:ki(a.enableLocalHistory,!0),enableServerHistorySync:ki(a.enableServerHistorySync,!0),anonymousId:a.anonymousId,externalUserId:a.externalUserId,accessToken:a.accessToken||a.widgetToken,auth:a.apiKey?{apiKey:a.apiKey,apiKeyHeader:a.apiKeyHeader}:void 0,privacyNotice:a.privacyNotice,privacyNoticeUrl:a.privacyNoticeUrl,requireConsent:ki(a.requireConsent),consentNoticeVersion:a.consentNoticeVersion||"v1",channel:a.channel||"website",audience:a.audience||"visitor",productArea:a.productArea,assistantMode:a.assistantMode,theme:ow(a.theme),pageContext:()=>({url:window.location.href,title:document.title,channel:a.channel||"website",audience:a.audience||"visitor",productArea:a.productArea,assistantMode:a.assistantMode})}}function mo(n){if(typeof document>"u")throw new Error("Akilio can only be mounted in a browser environment");const a=lw(n.target),r=a.id||rw();a.id||(a.id=r);const o=vy.createRoot(a),{target:s,...f}=n;let u=n.open,g=n.open??n.defaultOpen??!1;const h=()=>{o.render(L.jsx(aw,{...f,open:u,onOpenChange:m=>{g=m,n.onOpenChange?.(m),u!==void 0&&(u=m,h())}}))},p=m=>{u=m,g=m,h(),n.onOpenChange?.(m)};h();const b={id:r,element:a,root:o,open:()=>p(!0),close:()=>p(!1),toggle:()=>p(!g),destroy:()=>{o.unmount(),ho.delete(r),a.getAttribute("data-akilio-root")==="true"&&a.remove()}};return ho.set(r,b),b}function Dg(n){ho.get(n)?.destroy()}function Lg(){for(const n of Array.from(ho.values()))n.destroy()}const cw={mount:mo,init:mo,destroy:Dg,destroyAll:Lg};if(typeof window<"u"){window.Akilio=cw;const n=()=>{if(window.__AKILIO_WIDGET_AUTO_MOUNTED__)return;const r=document.currentScript||document.querySelector("script[data-akilio-widget]");if(r&&r.dataset.autoInit!=="false"&&r.dataset.akilioMounted!=="true"){r.dataset.akilioMounted="true",window.__AKILIO_WIDGET_AUTO_MOUNTED__=!0;try{mo(sw(r))}catch(o){delete r.dataset.akilioMounted,delete window.__AKILIO_WIDGET_AUTO_MOUNTED__,console.error("[Akilio] Widget initialization failed:",o)}}};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",n,{once:!0}):n()}return Lr.destroy=Dg,Lr.destroyAll=Lg,Lr.mount=mo,Object.defineProperty(Lr,Symbol.toStringTag,{value:"Module"}),Lr})({});
45
+ `)}}if(s.onEvent?.({event:k,data:C}),k==="status")s.onStatus?.(String(C.stage||""),C);else if(k==="conversation"){const M=C.conversation_id||C.id;M&&s.onConversation?.(String(M))}else if(k==="answer.delta")typeof C.delta=="string"&&s.onDelta?.(C.delta);else if(k==="final")b=C;else if(k==="error")throw new Error(String(C.detail||C.error||C.message||"Streaming request failed"))};for(;;){const{value:v,done:k}=await g.read();p+=m.decode(v,{stream:!k});const x=p.split(/\r?\n\r?\n/);p=x.pop()||"";for(const C of x)h(C);if(k)break}if(p.trim()&&h(p),!b)throw new Error("The stream ended before a final response was received");return b}getConversation(a,r,o){const s=new URLSearchParams({project_key:a});return this.authenticatedRequest(a,r,`/api/v1/conversations/${encodeURIComponent(o)}/?${s}`)}deleteConversation(a,r,o){const s=new URLSearchParams({project_key:a});return this.authenticatedRequest(a,r,`/api/v1/conversations/${encodeURIComponent(o)}/?${s}`,{method:"DELETE"})}sendCommerceEvent(a,r,o){return this.authenticatedRequest(a,r,"/api/v1/commerce/events/",{method:"POST",body:JSON.stringify(o)})}sendFeedback(a){return this.authenticatedRequest(a.projectKey,a.subject,`/api/v1/messages/${encodeURIComponent(a.messageId)}/feedback/`,{method:"POST",body:JSON.stringify({project_key:a.projectKey,rating:a.rating,comment:a.comment||"",metadata:a.metadata||{}})})}}function sw(n){const r=(n.locale||"").toLowerCase().startsWith("fr")?{launcher:"Demander à Akilio",title:"Demander à Akilio",description:"Propulsé par l'IA",placeholder:"Posez votre question...",helper:"Entrée pour envoyer. Maj + Entrée pour une nouvelle ligne.",submit:"Envoyer",loading:"Réflexion...",searching:"Recherche des informations pertinentes...",reviewingSources:"Consultation des sources...",checkingAnswer:"Vérification de la réponse...",preparingAnswer:"Préparation de la réponse...",emptyState:"Commencez avec une question ou choisissez une suggestion.",sources:"Sources",confidence:"Confiance",clearHistory:"Effacer",close:"Fermer",online:"Assistant IA",feedbackQuestion:"Cette réponse est-elle utile ?",feedbackThanks:"Merci pour votre retour.",voteUp:"Utile",voteDown:"Pas utile",requestFailed:"Impossible d’obtenir une réponse pour le moment.",configFailed:"Impossible de charger la configuration Akilio.",newChat:"Nouvelle conversation",privacyTitle:"Confidentialité",privacyAccept:"J’accepte que ma question et les données de conversation soient traitées pour fournir une réponse.",privacyAcceptAction:"Accepter",privacyDecline:"Refuser",privacyReview:"Revoir mon choix de confidentialité",privacyRequired:"Votre consentement est requis avant d’envoyer une question.",widgetUnavailable:"Cet assistant est temporairement indisponible.",poweredBy:"Propulsé par",aiContentWarning:"Le contenu généré par l’IA peut être inexact ou incomplet.",tourTitle:"Besoin d’aide ?",tourMessage:"Posez une question à l’assistant pour trouver rapidement une réponse.",tourAction:"Essayer",tourDismiss:"Fermer cette aide",privacyDefaultNotice:"Vos questions peuvent être enregistrées afin de fournir le service et améliorer sa qualité.",switchToLightMode:"Passer au thème clair",switchToDarkMode:"Passer au thème sombre",products:"Produits",viewProduct:"Voir le produit",fromPrice:"À partir de",unavailable:"Prix indisponible",inStock:"En stock",outOfStock:"Rupture de stock",suggestions:["Quels services offrez-vous ?","Comment puis-je vous contacter ?","Où trouver plus d’informations ?","Pouvez-vous résumer cette page ?"]}:{launcher:"Ask Akilio",title:"Ask Akilio",description:"Powered by AI",placeholder:"Ask your question...",helper:"Press Enter to send. Shift + Enter for a new line.",submit:"Send",loading:"Thinking...",searching:"Searching for relevant information...",reviewingSources:"Reviewing sources...",checkingAnswer:"Checking the answer...",preparingAnswer:"Preparing the answer...",emptyState:"Start with a question or choose a suggestion.",sources:"Sources",confidence:"Confidence",clearHistory:"Clear",close:"Close",online:"AI assistant",feedbackQuestion:"Was this answer useful?",feedbackThanks:"Thanks for your feedback.",voteUp:"Useful",voteDown:"Not useful",requestFailed:"Unable to get an answer right now.",configFailed:"Unable to load Akilio configuration.",newChat:"New chat",privacyTitle:"Privacy",privacyAccept:"I agree that my question and conversation data may be processed to provide an answer.",privacyAcceptAction:"Accept",privacyDecline:"Decline",privacyReview:"Review privacy choice",privacyRequired:"Consent is required before sending a question.",widgetUnavailable:"This assistant is temporarily unavailable.",poweredBy:"Powered by",aiContentWarning:"AI content may be inaccurate or incomplete.",tourTitle:"Need help?",tourMessage:"Ask the assistant a question to quickly find the information you need.",tourAction:"Try it",tourDismiss:"Dismiss this tip",privacyDefaultNotice:"Your questions may be stored to provide the service and improve its quality.",switchToLightMode:"Switch to light mode",switchToDarkMode:"Switch to dark mode",products:"Products",viewProduct:"View product",fromPrice:"From",unavailable:"Price unavailable",inStock:"In stock",outOfStock:"Out of stock",suggestions:["What services do you offer?","How can I contact you?","Where can I find more information?","Can you summarize this page?"]},o=n.projectConfig,s=n.overrides||{};return{...r,launcher:s.launcher||o?.theme_config?.launcher_label||r.launcher,title:s.title||o?.title||r.title,placeholder:s.placeholder||o?.placeholder||r.placeholder,suggestions:o?.starter_questions?.length?o.starter_questions:r.suggestions,...s}}const Mg=':host,.akilio-root{--akilio-primary: #0f766e;--akilio-primary-hover: #115e59;--akilio-primary-foreground: #ffffff;--akilio-accent: #2563eb;--akilio-radius: 22px;--akilio-panel-width: 440px;--akilio-z-index: 2147483647}:host{all:initial;display:block;direction:ltr;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;text-align:left;color-scheme:light dark;pointer-events:none}.akilio-launcher,.akilio-overlay,.akilio-panel{pointer-events:auto}:host *,:host *:before,:host *:after,.akilio-root,.akilio-root *:before,.akilio-root *:after{box-sizing:border-box}.akilio-root button,.akilio-root input,.akilio-root textarea,.akilio-root select{font:inherit;color:inherit}.akilio-root,.akilio-root *{box-sizing:border-box}.akilio-root{color:#18181b;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.akilio-launcher{position:fixed;right:22px;bottom:22px;z-index:calc(var(--akilio-z-index) - 10);display:inline-flex;align-items:center;gap:10px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:linear-gradient(135deg,var(--akilio-primary),color-mix(in srgb,var(--akilio-primary) 80%,transparent));color:#fff!important;padding:11px 16px 11px 12px;cursor:pointer;box-shadow:0 24px 60px #18181b40,0 0 0 1px #09090b14;transition:transform .26s ease,box-shadow .18s ease,background .18s ease}.akilio-launcher:hover{transform:translateY(-2px);box-shadow:0 28px 70px #0891b240,0 0 0 1px #09090b14}.akilio-launcher span{display:grid;width:30px;height:30px;place-items:center;overflow:hidden;border-radius:999px;background:#fff!important}.akilio-launcher-logo{display:block;width:22px;height:22px;object-fit:contain}.akilio-launcher strong{font-size:14px;font-weight:750;letter-spacing:-.01em}.akilio-overlay{position:fixed;inset:0;z-index:calc(var(--akilio-z-index) - 2);border:0;background:#09090b75;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);cursor:default}.akilio-panel{position:fixed;top:0;right:0;z-index:var(--akilio-z-index);display:flex;width:min(100vw,var(--akilio-panel-width));height:100dvh;transform:translate(103%);flex-direction:column;overflow:hidden;border-left:1px solid rgba(212,212,216,.9);background:#f8fafc;box-shadow:-30px 0 90px #0f172a3d;transition:transform .26s cubic-bezier(.2,.8,.2,1)}.akilio-panel--open{transform:translate(0)}.akilio-root[data-akilio-mode=floating] .akilio-panel{top:auto;right:22px;bottom:88px;width:min(400px,calc(100vw - 32px));height:min(650px,calc(100dvh - 116px));min-height:420px;transform:translateY(18px) scale(.98);transform-origin:right bottom;border:1px solid rgba(212,212,216,.9);border-radius:var(--akilio-radius);box-shadow:0 28px 80px #0f172a3d;opacity:0;visibility:hidden;pointer-events:none;transition:transform .22s cubic-bezier(.2,.8,.2,1),opacity .18s ease,visibility .18s ease}.akilio-root[data-akilio-mode=floating] .akilio-panel--open{transform:translateY(0) scale(1);opacity:1;visibility:visible;pointer-events:auto}.akilio-panel-glow{position:absolute;inset:0 0 auto;height:185px;pointer-events:none;background:radial-gradient(circle at 0% 0%,color-mix(in srgb,var(--akilio-primary) 35%,transparent),transparent 36%),radial-gradient(circle at 100% 0%,rgba(37,99,235,.22),transparent 34%)}.akilio-panel-header{position:relative;display:flex;align-items:flex-start;gap:12px;border-bottom:1px solid rgba(212,212,216,.82);background:#ffffffc7;padding:10px;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.akilio-logo,.akilio-empty-icon{display:grid;flex-shrink:0;place-items:center}.akilio-logo img{display:block;width:100%;height:100%;object-fit:contain;object-position:left center}.akilio-empty-icon{width:64px;height:64px;border:1px solid rgba(124,58,237,.12);border-radius:calc(var(--akilio-radius) - 4px);background:#ffffffe0;box-shadow:0 18px 42px #6d28d929}.akilio-empty-icon img{display:block;width:42px;height:42px;object-fit:contain}.akilio-header-content{min-width:0;flex:1}.akilio-header-topline{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:10px}.akilio-header-title{display:flex;min-width:0;align-items:center;gap:8px}.akilio-header-title h2{overflow:hidden;margin:0;color:#09090b;font-size:14px;font-weight:800;letter-spacing:-.015em;text-overflow:ellipsis;white-space:nowrap}.akilio-online{display:inline-flex;align-items:center;gap:5px;border-radius:999px;background:#10b9811f;color:#047857;padding:3px 8px;font-size:10px;font-weight:800;white-space:nowrap}.akilio-online i{width:6px;height:6px;border-radius:999px;background:#10b981}.akilio-header-description{display:-webkit-box;margin:0;overflow:hidden;color:#71717a;font-size:12px;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:3}.akilio-header-actions{display:flex;flex-shrink:0;align-items:center;gap:4px}.akilio-header-actions button{display:grid;width:25px;height:25px;place-items:center;border:0;border-radius:999px;background:transparent;color:#71717a;cursor:pointer;transition:background .16s ease,color .16s ease}.akilio-header-actions button:hover{background:#f4f4f5;color:#09090b}.akilio-header-actions svg{width:18px;height:18px}.akilio-thread{position:relative;display:flex;flex:1;flex-direction:column;gap:14px;overflow-y:auto;padding:18px 16px 22px}.akilio-message-row{display:flex;width:100%}.akilio-message-row--user{justify-content:flex-end}.akilio-message-row--assistant{justify-content:flex-start}.akilio-stream-activity{align-items:center;gap:10px;min-height:38px;padding:2px 4px;color:#52525b}.akilio-stream-activity-icon{display:grid;width:28px;height:28px;flex:0 0 28px;place-items:center;border:1px solid color-mix(in srgb,var(--akilio-primary) 22%,#d4d4d8);border-radius:999px;background:color-mix(in srgb,var(--akilio-primary) 8%,#fff);color:var(--akilio-primary)}.akilio-stream-activity-content{display:flex;min-width:0;align-items:center;gap:8px}.akilio-stream-activity-label{font-size:13px;font-weight:550;line-height:1.4;animation:akilio-status-in .18s ease-out}.akilio-stream-activity-pulse{width:6px;height:6px;flex:0 0 6px;border-radius:999px;background:var(--akilio-primary);animation:akilio-status-pulse 1.2s ease-in-out infinite}@keyframes akilio-status-in{0%{transform:translateY(2px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes akilio-status-pulse{0%,to{transform:scale(.75);opacity:.35}50%{transform:scale(1);opacity:1}}.akilio-bubble{max-width:88%;overflow:hidden;border:1px solid rgba(212,212,216,.86);border-radius:26px 26px 26px 8px;background:#fffffff0;color:#27272a;padding:13px 15px;box-shadow:0 10px 28px #0f172a12}.akilio-bubble--user{border-color:#ffffff26;border-bottom-right-radius:8px;border-bottom-left-radius:26px;background:linear-gradient(135deg,var(--akilio-primary),color-mix(in srgb,var(--akilio-primary) 80%,transparent));color:#fff}.akilio-bubble--error{border-color:#f8717159;background:#fef2f2;color:#991b1b}.akilio-bubble-meta{display:flex;align-items:center;gap:7px;margin-bottom:8px;color:var(--akilio-primary);font-size:10px;font-weight:850;letter-spacing:.15em;text-transform:uppercase}.akilio-mini-icon{width:14px;height:14px}.akilio-confidence{margin-left:auto;border-radius:999px;background:color-mix(in srgb,var(--akilio-primary) 11%,transparent);padding:2px 7px;color:var(--akilio-primary);letter-spacing:0;text-transform:none}.akilio-answer{color:inherit;font-size:.8rem;line-height:1.7}.akilio-answer h2{font-size:1rem;font-weight:700;margin:0}.akilio-answer p{margin:.5rem 0}.akilio-answer p:first-child{margin-top:0}.akilio-answer p:last-child{margin-bottom:0}.akilio-answer ul,.akilio-answer ol{margin:.625rem 0 .625rem 1.25rem;padding-left:.75rem}.akilio-answer ul{list-style:disc}.akilio-answer ol{list-style:decimal}.akilio-answer li{margin:.25rem 0}.akilio-answer a{color:var(--akilio-primary);font-weight:700;text-decoration:underline;text-underline-offset:3px}.akilio-answer code{border-radius:7px;background:#0f172a14;padding:.12rem .35rem;font-size:.86em}.akilio-answer pre{margin:.75rem 0;overflow-x:auto;border:1px solid rgba(148,163,184,.2);border-radius:16px;background:#020617;padding:13px}.akilio-answer pre code{background:transparent;color:#e2e8f0;padding:0}.akilio-answer .hljs-keyword,.akilio-answer .hljs-selector-tag,.akilio-answer .hljs-built_in{color:#f0abfc}.akilio-answer .hljs-string,.akilio-answer .hljs-attr,.akilio-answer .hljs-symbol{color:#86efac}.akilio-answer .hljs-number,.akilio-answer .hljs-literal{color:#fcd34d}.akilio-answer .hljs-comment{color:#64748b;font-style:italic}.akilio-answer .hljs-title,.akilio-answer .hljs-function{color:#7dd3fc}.akilio-answer .hljs-variable{color:#fdba74}.akilio-answer--user{white-space:pre-wrap}.akilio-answer--user code{background:#ffffff29}.akilio-sources{margin-top:11px;overflow:hidden;border:1px solid rgba(212,212,216,.85);border-radius:16px;background:#f4f4f5c7}.akilio-sources summary{cursor:pointer;padding:9px 11px;color:#52525b;font-size:12px;font-weight:800}.akilio-sources-list{display:grid;gap:8px;border-top:1px solid rgba(212,212,216,.85);padding:8px}.akilio-source-card{display:grid;gap:3px;border:1px solid rgba(212,212,216,.82);border-radius:13px;background:#fff;padding:8px;font-size:12px}.akilio-source-card strong{color:#18181b}.akilio-source-card span{color:#71717a}.akilio-source-card a{overflow:hidden;color:var(--akilio-primary);text-overflow:ellipsis;white-space:nowrap}.akilio-feedback{display:flex;align-items:center;gap:7px;margin-top:11px;color:#71717a;font-size:11px}.akilio-feedback span{margin-right:auto}.akilio-feedback button{display:grid;width:28px;height:28px;place-items:center;border:1px solid rgba(212,212,216,.9);border-radius:999px;background:#fff;color:#71717a;cursor:pointer}.akilio-feedback button:hover,.akilio-feedback .akilio-feedback-active{border-color:color-mix(in srgb,var(--akilio-primary) 35%,#d4d4d8);color:var(--akilio-primary)}.akilio-feedback svg{width:14px;height:14px}.akilio-dots{display:flex;gap:6px;padding:2px 0}.akilio-dots span{width:8px;height:8px;border-radius:999px;background:var(--akilio-primary);animation:akilio-bounce .9s infinite ease-in-out}.akilio-dots span:nth-child(2){animation-delay:.1s}.akilio-dots span:nth-child(3){animation-delay:.2s}@keyframes akilio-bounce{0%,80%,to{transform:translateY(0);opacity:.45}40%{transform:translateY(-4px);opacity:1}}.akilio-empty{margin:auto;display:flex;max-width:340px;flex-direction:column;align-items:center;padding:34px 0;text-align:center}.akilio-empty-icon{width:58px;height:58px;margin-bottom:16px}.akilio-empty h3{margin:0;color:#09090b;font-size:17px;font-weight:850;letter-spacing:-.02em}.akilio-empty p{margin:8px 0 0;color:#71717a;font-size:14px;line-height:1.65}.akilio-suggestions{display:grid;width:100%;gap:9px;margin-top:18px}.akilio-suggestions button{border:1px solid rgba(212,212,216,.9);border-radius:16px;background:#fff;color:#3f3f46;cursor:pointer;padding:10px 12px;text-align:left;font-size:12px;font-weight:700;box-shadow:0 5px 14px #0f172a0a;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.akilio-suggestions button:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--akilio-primary) 35%,#d4d4d8);box-shadow:0 12px 22px #0f172a14}.akilio-composer{position:relative;border-top:1px solid rgba(212,212,216,.85);background:#ffffffdb;padding:8px 12px;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.akilio-composer-box{display:flex;align-items:flex-end;gap:8px;border:1px solid rgba(212,212,216,.95);border-radius:24px;background:#f8fafc;padding:6px 12px;box-shadow:inset 0 1px 2px #0f172a0a;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}.akilio-composer-box:focus-within{border-color:color-mix(in srgb,var(--akilio-primary) 55%,#d4d4d8);background:#fff;box-shadow:0 0 0 4px color-mix(in srgb,var(--akilio-primary) 13%,transparent),inset 0 1px 2px #0f172a08}.akilio-composer textarea{flex:1;min-height:36px;max-height:120px;height:36px;overflow-y:hidden;resize:none;border:0;outline:0;background:transparent;color:#09090b;padding:6px 0;font:inherit;font-size:14px;line-height:1.5}.akilio-online--unavailable{color:#a16207}.akilio-online--unavailable i{background:#f59e0b;box-shadow:0 0 0 3px #f59e0b29}.akilio-composer textarea::placeholder{color:#a1a1aa}.akilio-composer-submit{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:0;border-radius:999px;background:var(--akilio-primary);color:#fff;cursor:pointer;padding:0;transition:background .15s ease,opacity .15s ease,transform .15s ease}.akilio-composer-submit:hover:not(:disabled){background:var(--akilio-primary-hover);transform:scale(1.05)}.akilio-composer-submit:active:not(:disabled){transform:scale(.98)}.akilio-composer-submit:disabled{opacity:.45;cursor:not-allowed}.akilio-composer-submit svg{width:16px;height:16px}.akilio-composer-help{margin-top:6px;padding:0 12px;color:#71717a;font-size:11px;line-height:1.4;display:flex;align-items:center;gap:4px}.akilio-powered-by{margin-top:6px;padding:0 4px;color:#71717a;font-size:10px;font-weight:600;line-height:1.2;text-align:center}.akilio-coachmark{position:fixed;right:22px;bottom:94px;z-index:calc(var(--akilio-z-index) - 1);display:flex;width:min(320px,calc(100vw - 32px));gap:11px;border:1px solid color-mix(in srgb,var(--akilio-primary) 24%,#d4d4d8);border-radius:18px;background:#fffffffa;color:#17211f;padding:15px 38px 15px 15px;pointer-events:auto;box-shadow:0 24px 64px #042f2e2e,0 0 0 1px #0f766e0a;animation:akilio-coachmark-in .2s cubic-bezier(.2,.8,.2,1)}.akilio-coachmark:after{position:absolute;right:30px;bottom:-7px;width:13px;height:13px;transform:rotate(45deg);border-right:1px solid color-mix(in srgb,var(--akilio-primary) 24%,#d4d4d8);border-bottom:1px solid color-mix(in srgb,var(--akilio-primary) 24%,#d4d4d8);background:#fff;content:""}.akilio-coachmark-icon{display:grid;width:32px;height:32px;flex:0 0 32px;place-items:center;border-radius:999px;background:color-mix(in srgb,var(--akilio-primary) 11%,#fff);color:var(--akilio-primary)}.akilio-coachmark-icon svg{width:17px;height:17px}.akilio-coachmark-content{min-width:0}.akilio-coachmark-content strong{display:block;margin:0 0 3px;color:#17211f;font-size:14px;line-height:1.35}.akilio-coachmark-content p{margin:0;color:#52525b;font-size:12px;line-height:1.5}.akilio-coachmark-action{margin-top:9px;border:0;border-radius:999px;background:var(--akilio-primary);color:var(--akilio-primary-foreground);padding:7px 12px;cursor:pointer;font-size:11px;font-weight:750}.akilio-coachmark-close{position:absolute;top:8px;right:8px;display:grid;width:26px;height:26px;place-items:center;border:0;border-radius:999px;background:transparent;color:#71717a;cursor:pointer;font-size:20px;line-height:1}.akilio-coachmark-close:hover{background:#f4f4f5;color:#18181b}@keyframes akilio-coachmark-in{0%{transform:translateY(8px) scale(.98);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}@media(max-width:640px){.akilio-launcher{right:16px;bottom:16px;padding:10px 12px}.akilio-coachmark{right:16px;bottom:82px}.akilio-launcher strong{display:none}.akilio-panel{width:100vw}.akilio-bubble{max-width:94%}.akilio-composer-help{display:none}}.akilio-root[data-akilio-mode=inline]{width:100%;height:100%;min-height:520px}.akilio-panel--inline{position:relative;inset:auto;width:100%;height:100%;min-height:520px;transform:none;border:1px solid rgba(212,212,216,.9);border-radius:var(--akilio-radius);box-shadow:0 18px 50px #0f172a1f}.akilio-privacy{display:grid;gap:8px;border-top:1px solid rgba(212,212,216,.82);background:#ffffffe6;padding:10px 14px;font-size:11px;line-height:1.45}.akilio-privacy strong{color:#18181b}.akilio-privacy p{margin:2px 0 0;color:#71717a}.akilio-privacy a{color:var(--akilio-primary);font-weight:700}.akilio-privacy label{display:flex;align-items:flex-start;gap:8px;color:#3f3f46;cursor:pointer}.akilio-privacy input{margin-top:2px;accent-color:var(--akilio-primary)}.akilio-composer textarea:disabled{cursor:not-allowed;opacity:.65}.akilio-root button:focus-visible,.akilio-root a:focus-visible,.akilio-root input:focus-visible{outline:3px solid color-mix(in srgb,var(--akilio-primary) 45%,transparent);outline-offset:2px}.akilio-root .akilio-composer textarea:focus,.akilio-root .akilio-composer textarea:focus-visible{border:0;outline:none;box-shadow:none}@media(prefers-reduced-motion:reduce){.akilio-root *,.akilio-root *:before,.akilio-root *:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.akilio-root[data-akilio-color-mode=dark]{color:#e4e4e7}.akilio-root[data-akilio-color-mode=dark] .akilio-panel,.akilio-root[data-akilio-color-mode=dark] .akilio-panel--inline{background:var(--akilio-surface, #09090b);border-color:#27272a}.akilio-root[data-akilio-color-mode=dark] .akilio-panel-header,.akilio-root[data-akilio-color-mode=dark] .akilio-privacy{background:#18181beb;border-color:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-header-title h2,.akilio-root[data-akilio-color-mode=dark] .akilio-empty h3,.akilio-root[data-akilio-color-mode=dark] .akilio-privacy strong{color:var(--akilio-text, #fafafa)}.akilio-root[data-akilio-color-mode=dark] .akilio-header-description,.akilio-root[data-akilio-color-mode=dark] .akilio-empty p,.akilio-root[data-akilio-color-mode=dark] .akilio-privacy p,.akilio-root[data-akilio-color-mode=dark] .akilio-privacy label,.akilio-root[data-akilio-color-mode=dark] .akilio-stream-activity{color:var(--akilio-muted, #a1a1aa)}.akilio-root[data-akilio-color-mode=dark] .akilio-stream-activity-icon{border-color:color-mix(in srgb,var(--akilio-primary) 35%,#3f3f46);background:color-mix(in srgb,var(--akilio-primary) 15%,#18181b)}.akilio-root[data-akilio-color-mode=dark] .akilio-bubble{background:#18181b;border-color:#3f3f46;color:#e4e4e7;box-shadow:none}.akilio-root[data-akilio-color-mode=dark] .akilio-bubble--user{background:linear-gradient(135deg,var(--akilio-primary),var(--akilio-accent));color:var(--akilio-primary-foreground)}.akilio-root[data-akilio-color-mode=dark] .akilio-sources{background:#09090b;border-color:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-sources-list{border-color:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-source-card,.akilio-root[data-akilio-color-mode=dark] .akilio-feedback button,.akilio-root[data-akilio-color-mode=dark] .akilio-composer-box{background:#18181b;border-color:#3f3f46;color:#e4e4e7}.akilio-root[data-akilio-color-mode=dark] .akilio-source-card strong{color:#fafafa}.akilio-root[data-akilio-color-mode=dark] .akilio-source-card span,.akilio-root[data-akilio-color-mode=dark] .akilio-feedback{color:#a1a1aa}@media(prefers-color-scheme:dark){.akilio-root[data-akilio-color-mode=system] .akilio-panel,.akilio-root[data-akilio-color-mode=system] .akilio-panel--inline{background:#09090b;border-color:#27272a}.akilio-root[data-akilio-color-mode=system] .akilio-panel-header,.akilio-root[data-akilio-color-mode=system] .akilio-privacy{background:#18181beb;border-color:#3f3f46}.akilio-root[data-akilio-color-mode=system] .akilio-header-title h2,.akilio-root[data-akilio-color-mode=system] .akilio-empty h3,.akilio-root[data-akilio-color-mode=system] .akilio-privacy strong{color:#fafafa}.akilio-root[data-akilio-color-mode=system] .akilio-header-description,.akilio-root[data-akilio-color-mode=system] .akilio-empty p,.akilio-root[data-akilio-color-mode=system] .akilio-privacy p,.akilio-root[data-akilio-color-mode=system] .akilio-privacy label{color:#a1a1aa}.akilio-root[data-akilio-color-mode=system] .akilio-bubble{background:#18181b;border-color:#3f3f46;color:#e4e4e7;box-shadow:none}.akilio-root[data-akilio-color-mode=system] .akilio-bubble--user{background:linear-gradient(135deg,var(--akilio-primary),var(--akilio-accent));color:var(--akilio-primary-foreground)}.akilio-root[data-akilio-color-mode=system] .akilio-source-card,.akilio-root[data-akilio-color-mode=system] .akilio-feedback button,.akilio-root[data-akilio-color-mode=system] .akilio-composer-box{background:#18181b;border-color:#3f3f46;color:#e4e4e7}}@media(max-width:640px){.akilio-launcher{right:14px;bottom:max(14px,env(safe-area-inset-bottom));padding:10px}.akilio-launcher strong{display:none}.akilio-panel{width:100vw;height:100dvh;border-left:0}.akilio-root[data-akilio-mode=floating] .akilio-panel{right:14px;bottom:calc(76px + env(safe-area-inset-bottom));width:calc(100vw - 28px);height:min(640px,calc(100dvh - 104px - env(safe-area-inset-bottom)));min-height:min(420px,calc(100dvh - 104px));border:1px solid rgba(212,212,216,.9);border-radius:18px}.akilio-panel-header{padding-top:max(10px,env(safe-area-inset-top))}.akilio-thread{padding-inline:12px}.akilio-bubble{max-width:94%}.akilio-composer{padding-bottom:max(10px,env(safe-area-inset-bottom))}.akilio-root[data-akilio-mode=inline]{min-height:480px}.akilio-panel--inline{min-height:480px;border-radius:16px}}.akilio-root[data-akilio-color-mode=dark] .akilio-composer{background:#18181beb;border-color:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-composer-box{background:#18181b;border-color:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-composer textarea{color:var(--akilio-text, #fafafa);caret-color:var(--akilio-text, #fafafa);-webkit-text-fill-color:var(--akilio-text, #fafafa)}.akilio-root[data-akilio-color-mode=dark] .akilio-composer textarea::placeholder{color:var(--akilio-muted, #a1a1aa);-webkit-text-fill-color:var(--akilio-muted, #a1a1aa);opacity:1}.akilio-root[data-akilio-color-mode=dark] .akilio-composer-help,.akilio-root[data-akilio-color-mode=dark] .akilio-powered-by{color:var(--akilio-muted, #a1a1aa)}.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark{border-color:color-mix(in srgb,var(--akilio-primary) 34%,#3f3f46);background:#18181bfa;color:#fafafa;box-shadow:0 24px 64px #0000006b}.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark:after{border-color:color-mix(in srgb,var(--akilio-primary) 34%,#3f3f46);background:#18181b}.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark-content strong{color:#fafafa}.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark-content p,.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark-close{color:#a1a1aa}.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark-close:hover{background:#27272a;color:#fafafa}.akilio-root[data-akilio-color-mode=dark] .akilio-composer-box:focus-within{background:#18181b;border-color:color-mix(in srgb,var(--akilio-primary) 55%,#3f3f46)}.akilio-privacy-consent-copy{margin-top:6px!important}.akilio-privacy-actions{display:flex;justify-content:flex-end;gap:8px}.akilio-privacy-actions button{border:1px solid rgba(161,161,170,.65);border-radius:999px;padding:6px 12px;font:inherit;font-weight:700;cursor:pointer}.akilio-privacy-decline{background:transparent;color:#52525b}.akilio-privacy-accept{border-color:var(--akilio-primary)!important;background:var(--akilio-primary);color:#fff}.akilio-privacy-review{border:0;background:transparent;color:var(--akilio-primary);font:inherit;font-weight:700;text-decoration:underline;cursor:pointer;padding:0}.akilio-products{margin-top:14px;min-width:0}.akilio-products-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;font-size:12px;color:#64748b}.akilio-products-heading span{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:#eef2ff;color:#4338ca;font-weight:700}.akilio-products-grid,.akilio-products-grid--vertical{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.akilio-products-grid--horizontal{display:flex;flex-direction:column;gap:10px}@media(max-width:640px){.akilio-products-grid--vertical{grid-template-columns:1fr}}@media(max-width:390px){.akilio-products-grid--vertical{grid-template-columns:1fr}.akilio-products-grid--horizontal{gap:8px}}.akilio-product-card{min-width:0;overflow:hidden;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 6px 20px #0f172a0f}.akilio-product-media{position:relative;aspect-ratio:4 / 3;overflow:hidden;background:#f1f5f9}.akilio-product-media img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .18s ease}.akilio-product-card:hover .akilio-product-media img{transform:scale(1.025)}.akilio-product-placeholder{width:100%;height:100%;display:grid;place-items:center;color:var(--akilio-primary);font-size:30px;font-weight:800;background:linear-gradient(145deg,#0891b21f,#2563eb14)}.akilio-stock{position:absolute;top:8px;right:8px;max-width:calc(100% - 16px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:4px 7px;border-radius:999px;background:#7f1d1de6;color:#fff;font-size:9px;font-weight:700}.akilio-stock--available{background:#065f46e6}.akilio-product-body{padding:11px}.akilio-product-vendor,.akilio-product-variant{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b;font-size:10px}.akilio-product-card h4{margin:4px 0 8px;min-height:34px;overflow:hidden;color:#0f172a;font-size:13px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.akilio-product-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px}.akilio-product-price strong{color:#0f172a;font-size:14px}.akilio-product-price del{color:#94a3b8;font-size:10px}.akilio-product-action{width:auto;min-height:auto;display:inline-flex;align-items:center;justify-content:center;padding:6px 12px;border:0;border-radius:6px;background:transparent;color:var(--akilio-primary);font:inherit;font-size:11px;font-weight:700;text-decoration:underline;text-underline-offset:2px;cursor:pointer;transition:color .15s ease,background .15s ease}.akilio-product-action:hover{background:color-mix(in srgb,var(--akilio-primary) 8%,transparent);text-decoration:underline}.akilio-product-action:focus-visible{outline:3px solid color-mix(in srgb,var(--akilio-primary) 28%,transparent);outline-offset:2px}.akilio-product-action:disabled{opacity:.55;cursor:not-allowed}.akilio-root[data-akilio-color-mode=dark] .akilio-products-heading{color:#94a3b8}.akilio-root[data-akilio-color-mode=dark] .akilio-products-heading span{background:#312e81;color:#e0e7ff}.akilio-root[data-akilio-color-mode=dark] .akilio-product-card{background:#111827;border-color:#334155;box-shadow:none}.akilio-root[data-akilio-color-mode=dark] .akilio-product-media{background:#1e293b}.akilio-root[data-akilio-color-mode=dark] .akilio-product-card h4,.akilio-root[data-akilio-color-mode=dark] .akilio-product-price strong{color:#f8fafc}.akilio-root[data-akilio-color-mode=dark] .akilio-product-vendor,.akilio-root[data-akilio-color-mode=dark] .akilio-product-variant{color:#94a3b8}@media(max-width:390px){.akilio-products-grid{grid-template-columns:1fr}.akilio-product-media{aspect-ratio:16 / 9}}.akilio-response-suggestions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.akilio-response-suggestions button{appearance:none;border:1px solid color-mix(in srgb,var(--akilio-primary) 26%,#d4d4d8);border-radius:15px;background:color-mix(in srgb,var(--akilio-primary) 7%,#ffffff);color:color-mix(in srgb,var(--akilio-primary) 72%,#18181b);cursor:pointer;padding:8px 11px;text-align:left;font:inherit;font-size:12px;font-weight:700;line-height:1.35;transition:transform .15s ease,border-color .15s ease,background .15s ease}.akilio-response-suggestions button:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--akilio-primary) 52%,#d4d4d8);background:color-mix(in srgb,var(--akilio-primary) 12%,#ffffff)}.akilio-response-suggestions button:focus-visible{outline:3px solid color-mix(in srgb,var(--akilio-primary) 24%,transparent);outline-offset:2px}.akilio-root[data-akilio-color-mode=dark] .akilio-response-suggestions button{border-color:color-mix(in srgb,var(--akilio-primary) 34%,#3f3f46);background:color-mix(in srgb,var(--akilio-primary) 14%,#18181b);color:#f4f4f5}.akilio-product-card--vertical{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 6px 20px #0f172a0f}.akilio-product-card--vertical .akilio-product-media{position:relative;aspect-ratio:4 / 3;overflow:hidden;background:#f1f5f9}.akilio-product-card--vertical .akilio-product-body{padding:11px;display:flex;flex-direction:column}.akilio-product-card--horizontal{display:flex;flex-direction:row;gap:12px;min-width:0;overflow:hidden;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 6px 20px #0f172a0f;align-items:stretch}.akilio-product-card--horizontal .akilio-product-media{flex:0 0 25%;min-width:80px;position:relative;aspect-ratio:1 / 1;overflow:hidden;background:#f1f5f9}.akilio-product-card--horizontal .akilio-product-body{flex:1;padding:11px;display:flex;flex-direction:column;justify-content:space-between;min-width:0}.akilio-product-card--horizontal .akilio-product-action{width:100%}.akilio-root[data-akilio-color-mode=dark] .akilio-product-card--vertical,.akilio-root[data-akilio-color-mode=dark] .akilio-product-card--horizontal{background:#111827;border-color:#334155;box-shadow:none}.akilio-root[data-akilio-color-mode=dark] .akilio-product-card--vertical .akilio-product-media,.akilio-root[data-akilio-color-mode=dark] .akilio-product-card--horizontal .akilio-product-media{background:#1e293b}@media(prefers-color-scheme:dark){.akilio-root[data-akilio-color-mode=system] .akilio-product-card--vertical,.akilio-root[data-akilio-color-mode=system] .akilio-product-card--horizontal{background:#111827;border-color:#334155;box-shadow:none}.akilio-root[data-akilio-color-mode=system] .akilio-product-card--vertical .akilio-product-media,.akilio-root[data-akilio-color-mode=system] .akilio-product-card--horizontal .akilio-product-media{background:#1e293b}}@media(max-width:480px){.akilio-product-card--horizontal{flex-direction:column;gap:0}.akilio-product-card--horizontal .akilio-product-media{flex:1;min-width:unset;aspect-ratio:4 / 3}}@media(max-width:390px){.akilio-product-card--vertical .akilio-product-media{aspect-ratio:16 / 9}.akilio-product-card--horizontal{flex-direction:column}.akilio-product-card--horizontal .akilio-product-media{aspect-ratio:16 / 9}}.source-ref{display:inline-flex;align-items:center;justify-content:center;margin-left:.3rem;padding:.1rem .45rem;border-radius:999px;font-size:.68rem;font-weight:600;letter-spacing:.01em;line-height:1.2;vertical-align:super;color:#334155;background:linear-gradient(180deg,#f8fafc,#eef2ff);border:1px solid #dbeafe;box-shadow:0 1px 2px #0f172a14;-webkit-user-select:none;user-select:none;white-space:nowrap}';class yo extends Error{code;constructor(a,r){super(r),this.name="AkilioPublicApiError",this.code=a}}function Kn(n,a){typeof window>"u"||window.dispatchEvent(new CustomEvent(`akilio:${n}`,{detail:a||{}}))}function fn(n,a){return new yo(n,a)}function sr(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now()}-${Math.random().toString(16).slice(2)}`}function il(){return new Date().toISOString()}function Rg(n){const a=typeof n=="function"?n():n||{};return typeof window>"u"?a:{url:a.url||window.location.href,title:a.title||document.title,...a}}function cw(n,a){const r={...n?.theme_config||{},...a||{}};return{"--akilio-primary":String(r.primary_color||"#0F766E"),"--akilio-primary-hover":String(r.primary_dark_color||"#115E59"),"--akilio-primary-foreground":String(r.primary_foreground_color||"#ffffff"),"--akilio-accent":String(r.accent_color||"#2563eb"),"--akilio-radius":String(r.radius||"22px"),"--akilio-panel-width":`${Number(r.panel_width||440)}px`,"--akilio-z-index":String(Number(r.z_index||2147483647)),"--akilio-surface":String(r.surface_color||""),"--akilio-text":String(r.text_color||""),"--akilio-muted":String(r.muted_color||"")}}function uw(n,a){me.useEffect(()=>{if(typeof document>"u")return;const r=document.documentElement;return r.classList.toggle("akilio-panel-open",n&&a),()=>r.classList.remove("akilio-panel-open")},[n,a])}function Dg(n){return Array.isArray(n)?n.filter(a=>typeof a=="string").map(a=>a.trim()).filter(Boolean).slice(0,6):[]}function fw(n){if(typeof n.answer=="string"&&n.answer.trim())return n.answer;const a=n.content;if(a&&typeof a=="object")for(const r of["answer","text","message"]){const o=a[r];if(typeof o=="string"&&o.trim())return o}return""}function Lg(n){if(!n)return null;try{const a=JSON.parse(n);return a&&typeof a=="object"?a:null}catch{return null}}function dw(n,a=!0){return{id:sr(),role:"assistant",content:fw(n),backendMessageId:n.message_id,conversationId:n.conversation_id,confidence:n.confidence,sources:n.sources||[],provider:n.provider,model:n.model,commerce:a&&n.commerce||null,suggestions:Dg(n.suggestions),createdAt:il()}}function zg({apiBaseUrl:n="https://api.akilio-ai.com",projectKey:a,locale:r="en",mode:o="floating",colorMode:s="system",allowColorModeToggle:f=!0,showAkilioBranding:u=!0,streaming:g=!0,defaultOpen:m=!1,open:p,launcher:b="default",persistOpenState:h=!0,enableTour:v=!0,tourDelayMs:k=3e3,tourVersion:x="v1",enableLocalHistory:C=!0,enableServerHistorySync:M=!0,anonymousId:w,externalUserId:q,channel:H,audience:Q,productArea:te,assistantMode:L,pageContext:ce,auth:ee,accessToken:fe,privacyNotice:z,privacyNoticeUrl:se,requireConsent:re,consentNoticeVersion:_e="v1",initialConsent:oe=!1,onConsentChange:X,copy:Y,theme:G,className:K,onOpenChange:ve,onMessage:S,onProductClick:Be,onError:T}){const _=me.useRef(null),J=me.useRef(null),pe=me.useRef(0),de=me.useRef({open:!1,busy:!1,conversationId:null}),Ce=`akilio:${a}:config`,[Ue,kt]=me.useState(null),Ke=me.useMemo(()=>({...ee||{},accessToken:ee?.accessToken||fe}),[fe,ee]),gt=me.useMemo(()=>new ow({apiBaseUrl:n,auth:Ke,mode:o,locale:r}),[n,Ke,o,r]),zn=WS(),[Vt,bi]=me.useState(Ag(localStorage.getItem(Ce),null)),[en,Ve]=me.useState(null),[Qt,Sn]=me.useState(!1),[Vn,In]=me.useState({stage:"",message:""}),[Ni,Bn]=me.useState(null),[$n,Rt]=ew({enabled:C,projectKey:a,locale:r}),[lt,j]=or({enabled:C,key:`akilio:${a}:${r}:conversation-id:v2`}),ae=me.useMemo(()=>sr(),[a]),[Ae]=or({enabled:!0,key:`akilio:${a}:widget-subject:v1`,initialValue:ae}),[qe,nt]=or({enabled:h,key:`akilio:${a}:panel-open:v2`,initialValue:m?"true":""}),[$t,dn]=or({enabled:!0,key:`akilio:${a}:coachmark:${x||"v1"}`}),[tn,Jt]=me.useState(!1),[xt,Et]=or({enabled:!0,key:`akilio:${a}:consent:${_e}`,initialValue:oe?"true":""}),[St,nn]=me.useState(m),[Ci,La]=or({enabled:!0,key:`akilio:${a}:color-mode:v1`}),[Wi,Oi]=me.useState("light"),Ot=o==="inline",N=o==="floating",V=o==="hybrid"||o==="side-panel",le=!Ot&&(o==="side-panel"||o==="hybrid"&&zn),De=!Ot&&!N&&(o==="drawer"||o==="hybrid"&&!zn),Qe=Ot||(p??(h&&qe==="true"||St)),he=s||G?.color_mode||Vt?.theme_config?.color_mode||"system",ge=Ci==="light"||Ci==="dark"||Ci==="system"?Ci:he,Se=ge==="system"?Wi:ge,Ge=me.useMemo(()=>sw({locale:r,projectConfig:Vt,overrides:Y}),[Y,r,Vt]),ct=Vt?.widget_policy,vn=ct?.available!==!1,pn=ct?.commerce_enabled!==!1,Mi=ct?.assistant_mode||L,ea=ct?.branding==="akilio_required"||ct?.branding!=="white_label"&&u,wn=ct?.branding==="akilio_required",It=me.useMemo(()=>pn?$n:$n.map(ne=>ne.commerce?{...ne,commerce:null}:ne),[pn,$n]),Bt=me.useMemo(()=>cw(Vt,G),[Vt,G]),Zn=re??Vt?.require_consent??!1,ta=z||Vt?.privacy_notice||"",na=se||Vt?.privacy_notice_url,cr=xt==="true"||xt==="accepted"?"accepted":xt==="rejected"?"rejected":"pending",yi=cr==="accepted",Ut=q||w||Ae||void 0,Nt=me.useCallback(ne=>{if(Ot)return;const Te=de.current.open!==ne;de.current.open=ne,p===void 0&&(nn(ne),h&&nt(ne?"true":"")),ve?.(ne),Te&&Kn(ne?"open":"close")},[p,Ot,ve,h,nt]),Xn=me.useMemo(()=>({open:Qe,openChat:()=>Nt(!0),closeChat:()=>Nt(!1),toggleChat:()=>Nt(!Qe)}),[Qe,Nt]),gn=me.useCallback(()=>{Jt(!1),dn("seen")},[dn]),Ri=me.useCallback(()=>{gn(),Nt(!0)},[gn,Nt]),vi=me.useCallback(ne=>{Et(ne==="pending"?"":ne),ne!=="pending"&&X?.(ne==="accepted")},[X,Et]);me.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const ne=window.matchMedia("(prefers-color-scheme: dark)"),Te=()=>Oi(ne.matches?"dark":"light");return Te(),ne.addEventListener?.("change",Te),()=>ne.removeEventListener?.("change",Te)},[]);const Dt=me.useCallback(()=>{La(Se==="dark"?"light":"dark")},[Se,La]);uw(Qe,le&&V),me.useEffect(()=>{if(!(v&&!Ot&&b==="default"&&vn&&!Qe)){Jt(!1),Qe&&v&&dn("seen");return}const Te=(Me=!1)=>{(Me||$t!=="seen")&&Jt(!0)},Oe=window.setTimeout(()=>Te(!1),Math.min(6e4,Math.max(0,Number(k)||0))),Le=()=>Te(!0);return window.addEventListener("akilio:start-tour",Le),()=>{window.clearTimeout(Oe),window.removeEventListener("akilio:start-tour",Le)}},[v,Ot,b,Qe,dn,k,$t,vn]),me.useEffect(()=>{if(!tn)return;const ne=Te=>{Te.key==="Escape"&&gn()};return window.addEventListener("keydown",ne),()=>window.removeEventListener("keydown",ne)},[tn,gn]),me.useEffect(()=>{let ne=!1;return gt.getProjectConfig(a).then(Te=>{ne||(window.localStorage.setItem(Ce,JSON.stringify(Te)),bi(Te),Ve(null))}).catch(Te=>{ne||(Ve(Te.message),T?.(Te))}),()=>{ne=!0}},[gt,T,a]),me.useEffect(()=>{Ut&&gt.prepareWidgetToken(a,Ut).catch(ne=>T?.(ne))},[gt,T,a,Ut]),me.useEffect(()=>{if(!M||!Ut||!lt||$n.length>0)return;let ne=!1;return gt.getConversation(a,Ut,lt).then(Te=>{ne||Rt(Te.messages.map(Oe=>({id:Oe.id,backendMessageId:Oe.role==="assistant"?Oe.id:void 0,conversationId:Te.id,role:Oe.role,content:Oe.content,sources:Oe.sources||[],confidence:Oe.confidence,commerce:(()=>{const Le=Oe.metadata&&typeof Oe.metadata=="object"?Oe.metadata:null,Me=Lg(Oe.structured_content);return pn&&(Le?.commerce||Me?.commerce)||null})(),suggestions:(()=>{const Le=Oe.metadata&&typeof Oe.metadata=="object"?Oe.metadata:null,Me=Lg(Oe.structured_content);return Dg(Le?.suggestions||Me?.suggestions)})(),createdAt:Oe.created_at})).slice(-lr))}).catch(()=>j("")),()=>{ne=!0}},[gt,pn,lt,M,$n.length,a,j,Rt,Ut]);const oi=me.useCallback(()=>{Rt([]),j("")},[j,Rt]),za=me.useCallback(async ne=>{if(!ne)throw fn("INVALID_QUESTION","Question is empty");if(!vn)throw fn("INVALID_QUESTION","This widget is not currently available");if(Qt)throw fn("BUSY","An answer is already in progress");if(Zn&&!yi)throw fn("INVALID_QUESTION","Privacy consent is required");const Te=Rg(ce),Oe={id:sr(),role:"user",content:ne,createdAt:il(),conversationId:lt||void 0};Rt(Me=>[...Me,Oe].slice(-lr)),S?.(Oe),Kn("question",{question:ne}),Sn(!0),de.current.busy=!0,Kn("answer-start",{question:ne}),In({stage:"",message:""}),Bn(null);const Le=sr();try{const Me={project_key:a,conversation_id:lt||void 0,message:ne,locale:r,channel:H||Te.channel||"docs",audience:Q||Te.audience,product_area:te||Te.productArea,assistant_mode:Mi||void 0,page:{url:Te.url,title:Te.title,...Te.metadata||{}},anonymous_id:w,external_user_id:q,consent:{granted:yi,granted_at:yi?il():void 0,notice_version:_e}};let Re="";const kn=g?await gt.sendMessageStream(a,Ut,Me,{onStatus:(Ht,Di)=>{const Qn=Di.message||Di.label;In({stage:Ht,message:typeof Qn=="string"?Qn:""})},onConversation:Ht=>{de.current.conversationId=Ht,j(Ht)},onDelta:Ht=>{Re+=Ht,Kn("answer-delta",{delta:Ht}),Bn({id:Le,role:"assistant",content:Re,conversationId:lt||void 0,createdAt:il(),streaming:!0})}}):await gt.sendMessage(a,Ut,Me);de.current.conversationId=kn.conversation_id,j(kn.conversation_id);const si={...dw(kn,pn),id:Re?Le:sr(),streaming:!1};return Bn(null),Rt(Ht=>[...Ht,si].slice(-lr)),S?.(si),Kn("answer-complete",{response:kn}),kn}catch(Me){const Re=Me instanceof Error?Me:new Error(Ge.requestFailed),kn={id:sr(),role:"assistant",content:Re.message||Ge.requestFailed,createdAt:il(),error:!0};throw Bn(null),Rt(si=>[...si,kn].slice(-lr)),T?.(Re),Kn("error",{code:Me instanceof yo?Me.code:"STREAM_FAILED",message:Re.message||Ge.requestFailed}),Re}finally{Sn(!1),de.current.busy=!1,In({stage:"",message:""})}},[w,Q,H,gt,pn,yi,_e,lt,Ge.requestFailed,Zn,Mi,q,Qt,r,T,S,ce,te,a,j,Rt,g,Ut,vn]),W=me.useCallback(()=>{const ne=J.current;ne&&(J.current=null,ne.timer&&window.clearTimeout(ne.timer),ne.reject(fn("TYPING_CANCELLED","Draft typing was cancelled")),Kn("typing-cancel",{draft:_.current?.getDraft()||""}))},[]),ke=me.useCallback((ne,Te)=>{Te&&J.current&&W(),Kn("draft-change",{draft:ne})},[W]);de.current={open:Qe,busy:Qt,conversationId:lt||null},me.useEffect(()=>{if(typeof window>"u"||window.AkilioWidget)return;const ne=()=>{if(!_.current)throw fn("NOT_READY","The widget is not ready");return _.current},Te=async(Le,Me={})=>{if(W(),typeof Le!="string")throw fn("INVALID_QUESTION","Draft must be a string");ne().setDraft(Le,{focus:Me.focus,clearExisting:Me.clearExisting??!0}),await new Promise(Re=>window.setTimeout(Re,0))},Oe=Object.freeze({open:async()=>{Nt(!0),await new Promise(Le=>window.setTimeout(Le,0))},close:async()=>{Nt(!1),await new Promise(Le=>window.setTimeout(Le,0))},setDraft:Te,typeDraft:async(Le,Me={})=>{if(W(),typeof Le!="string"||!Le.length)throw fn("INVALID_QUESTION","Question must not be empty");const Re=ne(),kn=Me.clearExisting===!1?Re.getDraft():"",si=Math.max(0,Number(Me.interval??35)),Ht=++pe.current;return Kn("typing-start",{textLength:Le.length}),new Promise(async(Di,Qn)=>{J.current={id:Ht,reject:Qn};try{for(let ki=1;ki<=Le.length;ki+=1){if(await new Promise(mn=>{const Ei=window.setTimeout(mn,si);J.current?.id===Ht&&(J.current.timer=Ei)}),J.current?.id!==Ht)return;Re.setDraft(`${kn}${Le.slice(0,ki)}`,{clearExisting:!0,focus:Me.focus&&ki===1})}if(J.current?.id!==Ht)return;J.current=null,Kn("typing-complete",{draft:Re.getDraft()}),Di()}catch(ki){J.current=null,Qn(ki)}})},clearDraft:async()=>{W(),ne().clearDraft()},cancelTyping:W,submit:async()=>{if(de.current.busy)throw fn("BUSY","An answer is already in progress");const Le=ne();if(!Le.getDraft().trim())throw fn("EMPTY_DRAFT","The draft is empty");try{return await Le.submitDraft()}catch(Re){throw Re instanceof yo?Re:Re instanceof Error&&Re.message==="BUSY"?fn("BUSY","An answer is already in progress"):Re instanceof Error&&Re.message==="EMPTY_DRAFT"?fn("EMPTY_DRAFT","The draft is empty"):Re instanceof Error&&Re.message==="INVALID_QUESTION"?fn("INVALID_QUESTION","The question is invalid"):fn("STREAM_FAILED",Re instanceof Error?Re.message:"Streaming failed")}},ask:async(Le,Me)=>(await Te(Le,Me),Oe.submit()),reset:async()=>{try{if(W(),de.current.busy)throw fn("BUSY","An answer is already in progress");oi(),de.current.conversationId=null,ne().clearDraft(),Bn(null),Kn("reset")}catch(Le){throw Le instanceof yo?Le:fn("RESET_FAILED","The conversation could not be reset")}},getState:()=>({ready:!!_.current,open:de.current.open,busy:de.current.busy,typing:!!J.current,draft:_.current?.getDraft()||"",conversationId:de.current.conversationId})});return window.AkilioWidget=Oe,Kn("ready"),()=>{W(),window.AkilioWidget===Oe&&delete window.AkilioWidget}},[W,oi,Nt]);const Pe=me.useCallback((ne,Te,Oe)=>{pn&&(Be?.(Te,Oe),gt.sendCommerceEvent(a,Ut,{event_type:ne.commerce?.capability==="product_search"?"search":"recommendation",product_id:Te.id,variant_id:Oe?.id||null,conversation_id:ne.conversationId||lt||null,external_user_id:q||"",value:Oe?.price||null,currency:Oe?.currency||"",metadata:{source:"widget_product_card",capability:ne.commerce?.capability,product_url:Te.url||""}}).catch(Le=>T?.(Le)))},[gt,pn,lt,q,T,Be,a,Ut]),ot=me.useCallback(async(ne,Te)=>{if(ne.backendMessageId){Rt(Oe=>Oe.map(Le=>Le.id===ne.id?{...Le,feedback:Te}:Le));try{await gt.sendFeedback({projectKey:a,subject:Ut,messageId:ne.backendMessageId,rating:Te,metadata:{conversation_id:ne.conversationId||lt,locale:r,page:Rg(ce)}})}catch(Oe){T?.(Oe instanceof Error?Oe:new Error("Feedback request failed"))}}},[gt,lt,r,T,ce,a,Rt,Ut]);return D.jsxs("div",{ref:kt,className:Aa("akilio-root",K),style:Bt,"data-akilio-mode":Ot?"inline":N?"floating":le?"side-panel":"drawer","data-akilio-color-mode":Se,children:[!Ot&&b==="default"&&D.jsxs(D.Fragment,{children:[tn&&D.jsx(QS,{title:Ge.tourTitle,message:Ge.tourMessage,actionLabel:Ge.tourAction,dismissLabel:Ge.tourDismiss,onDismiss:gn,onOpen:Ri,primaryColor:Bt["--akilio-primary"]||void 0,showBranding:u}),D.jsx(XS,{label:ea?Ge.launcher:Ge.title,onClick:()=>{gn(),Xn.toggleChat()},showBranding:ea,primaryColor:Bt["--akilio-primary"]||void 0})]}),!Ot&&typeof b=="function"&&b(Xn),De&&Qe&&D.jsx("button",{type:"button",className:"akilio-overlay","aria-label":Ge.close,onClick:()=>Nt(!1)}),D.jsx(ZS,{ref:_,open:Qe,isDesktop:le,inline:Ot,colorMode:Se,allowColorModeToggle:f,widgetAvailable:vn,showBranding:ea,showPoweredBy:wn,locale:r,copy:{...Ge,description:en?`${Ge.description} ${Ge.configFailed}: ${en}`:Ge.description},messages:It,streamingMessage:Ni,loading:Qt,loadingLabel:Vn.message||(()=>{const ne=Vn.stage.toLowerCase();return ne.includes("retriev")||ne.includes("search")?Ge.searching:ne.includes("ground")||ne.includes("source")?Ge.reviewingSources:ne.includes("valid")||ne.includes("check")||ne.includes("safety")?Ge.checkingAnswer:ne.includes("answer")||ne.includes("generat")||ne.includes("prepar")?Ge.preparingAnswer:Ge.loading})(),consentDecision:cr,consentGranted:yi,requireConsent:Zn,privacyNotice:ta,privacyNoticeUrl:na,onConsentDecision:vi,onClose:()=>Nt(!1),onToggleColorMode:Dt,onClear:oi,onSubmit:za,onDraftChange:ke,onFeedback:ot,onProductClick:Pe,onSuggestion:ne=>{za(ne).catch(()=>{})},primaryColor:Bt["--akilio-primary"]||void 0})]})}function pw(n){const a=n.styleIsolation??"shadow",r=(n.mode??"floating")!=="inline",o=me.useRef(null),[s,f]=me.useState(null);return me.useEffect(()=>{if(a!=="shadow"||!o.current){f(null);return}const u=o.current,g=u.shadowRoot??u.attachShadow({mode:"open"});if(r&&(u.style.position="fixed",u.style.inset="0",u.style.width="100vw",u.style.height="100dvh",u.style.margin="0",u.style.padding="0",u.style.border="0",u.style.background="transparent",u.style.pointerEvents="none",u.style.zIndex="2147483647",u.style.isolation="isolate",typeof u.showPopover=="function")){u.setAttribute("popover","manual");try{u.showPopover()}catch{u.removeAttribute("popover")}}let m=g.querySelector("style[data-akilio-styles]");m||(m=document.createElement("style"),m.setAttribute("data-akilio-styles",""),m.textContent=Mg,g.appendChild(m));let p=g.querySelector("[data-akilio-shadow-mount]");return p||(p=document.createElement("div"),p.setAttribute("data-akilio-shadow-mount",""),g.appendChild(p)),f(p),()=>{if(typeof u.hidePopover=="function")try{u.hidePopover()}catch{}u.removeAttribute("popover"),u.removeAttribute("style")}},[a,r]),a==="shadow"?D.jsx("div",{ref:o,"data-akilio-shadow-host":"true",children:s&&Sy.createPortal(D.jsx(zg,{...n}),s)}):D.jsxs(D.Fragment,{children:[a==="scoped"&&D.jsx("style",{"data-akilio-styles":!0,children:Mg}),D.jsx(zg,{...n})]})}const vo=new Map;function gw(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`akilio-${Date.now()}-${Math.random().toString(16).slice(2)}`}function mw(n){if(n instanceof HTMLElement)return n;if(typeof n=="string"){const r=document.querySelector(n);if(!r)throw new Error(`Akilio target not found: ${n}`);return r}const a=document.createElement("div");return a.setAttribute("data-akilio-root","true"),document.body.appendChild(a),a}function Ai(n,a=!1){return n==null||n===""?a:["1","true","yes","on"].includes(n.toLowerCase())}function hw(n){if(n)try{return JSON.parse(n)}catch{return}}function bw(n){const a=n.dataset,r=a.apiBaseUrl||a.apiUrl||"https://api.akilio-ai.com",o=a.projectKey;if(!o)throw new Error("Missing data-project-key on Akilio script tag");return{apiBaseUrl:r,projectKey:o,locale:a.locale||document.documentElement.lang||"en",mode:a.mode||"floating",colorMode:a.colorMode||"system",allowColorModeToggle:Ai(a.allowColorModeToggle,!0),showAkilioBranding:Ai(a.showAkilioBranding,!0),streaming:Ai(a.streaming,!0),styleIsolation:a.styleIsolation||"shadow",defaultOpen:Ai(a.defaultOpen),launcher:a.launcher==="hidden"?"hidden":"default",persistOpenState:Ai(a.persistOpenState,!0),enableTour:Ai(a.enableTour,!0),tourDelayMs:a.tourDelayMs?Math.max(0,Number(a.tourDelayMs)||0):void 0,tourVersion:a.tourVersion||void 0,enableLocalHistory:Ai(a.enableLocalHistory,!0),enableServerHistorySync:Ai(a.enableServerHistorySync,!0),anonymousId:a.anonymousId,externalUserId:a.externalUserId,accessToken:a.accessToken||a.widgetToken,auth:a.apiKey?{apiKey:a.apiKey,apiKeyHeader:a.apiKeyHeader}:void 0,privacyNotice:a.privacyNotice,privacyNoticeUrl:a.privacyNoticeUrl,requireConsent:Ai(a.requireConsent),consentNoticeVersion:a.consentNoticeVersion||"v1",channel:a.channel||"website",audience:a.audience||"visitor",productArea:a.productArea,assistantMode:a.assistantMode,theme:hw(a.theme),pageContext:()=>({url:window.location.href,title:document.title,channel:a.channel||"website",audience:a.audience||"visitor",productArea:a.productArea,assistantMode:a.assistantMode}),integration:a.integration}}function ko(n){if(typeof document>"u")throw new Error("Akilio can only be mounted in a browser environment");const a=mw(n.target),r=a.id||gw();a.id||(a.id=r);const o=xy.createRoot(a),{target:s,...f}=n;let u=n.open,g=n.open??n.defaultOpen??!1;const m=()=>{o.render(D.jsx(pw,{...f,open:u,onOpenChange:h=>{g=h,n.onOpenChange?.(h),u!==void 0&&(u=h,m())}}))},p=h=>{u=h,g=h,m(),n.onOpenChange?.(h)};m();const b={id:r,element:a,root:o,open:()=>p(!0),close:()=>p(!1),toggle:()=>p(!g),destroy:()=>{o.unmount(),vo.delete(r),a.getAttribute("data-akilio-root")==="true"&&a.remove()}};return vo.set(r,b),b}function Ig(n){vo.get(n)?.destroy()}function Bg(){for(const n of Array.from(vo.values()))n.destroy()}const yw={mount:ko,init:ko,destroy:Ig,destroyAll:Bg};if(typeof window<"u"){window.Akilio=yw;const n=()=>{if(window.__AKILIO_WIDGET_AUTO_MOUNTED__)return;const r=document.currentScript||document.querySelector("script[data-akilio-widget]");if(r&&r.dataset.autoInit!=="false"&&r.dataset.akilioMounted!=="true"){r.dataset.akilioMounted="true",window.__AKILIO_WIDGET_AUTO_MOUNTED__=!0;try{ko(bw(r))}catch(o){delete r.dataset.akilioMounted,delete window.__AKILIO_WIDGET_AUTO_MOUNTED__,console.error("[Akilio] Widget initialization failed:",o)}}};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",n,{once:!0}):n()}return qr.destroy=Ig,qr.destroyAll=Bg,qr.mount=ko,Object.defineProperty(qr,Symbol.toStringTag,{value:"Module"}),qr})({});