@mitodl/smoot-design 6.3.0 → 6.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles/remoteTutorDrawer.es.js +13408 -12643
- package/dist/bundles/remoteTutorDrawer.umd.js +59 -53
- package/dist/cjs/bundles/RemoteTutorDrawer/RemoteTutorDrawer.js +4 -4
- package/dist/cjs/bundles/RemoteTutorDrawer/RemoteTutorDrawer.stories.js +3 -1
- package/dist/cjs/bundles/RemoteTutorDrawer/RemoteTutorDrawer.test.js +1 -1
- package/dist/cjs/bundles/remoteTutorDrawer.js +4 -1
- package/dist/cjs/components/AiChat/AiChat.js +17 -10
- package/dist/cjs/components/AiChat/AiChat.stories.js +16 -2
- package/dist/cjs/components/AiChat/Markdown.d.ts +7 -0
- package/dist/cjs/components/AiChat/Markdown.js +14 -0
- package/dist/cjs/components/AiChat/test-utils/api.js +40 -1
- package/dist/cjs/components/AiChat/types.d.ts +5 -0
- package/dist/esm/bundles/RemoteTutorDrawer/RemoteTutorDrawer.js +4 -4
- package/dist/esm/bundles/RemoteTutorDrawer/RemoteTutorDrawer.stories.js +3 -1
- package/dist/esm/bundles/RemoteTutorDrawer/RemoteTutorDrawer.test.js +1 -1
- package/dist/esm/bundles/remoteTutorDrawer.js +4 -1
- package/dist/esm/components/AiChat/AiChat.js +17 -10
- package/dist/esm/components/AiChat/AiChat.stories.js +16 -2
- package/dist/esm/components/AiChat/Markdown.d.ts +7 -0
- package/dist/esm/components/AiChat/Markdown.js +12 -0
- package/dist/esm/components/AiChat/test-utils/api.js +40 -1
- package/dist/esm/components/AiChat/types.d.ts +5 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(ur,Gn){typeof exports=="object"&&typeof module<"u"?Gn(exports):typeof define=="function"&&define.amd?define(["exports"],Gn):(ur=typeof globalThis<"u"?globalThis:ur||self,Gn(ur.remoteTutorDrawer={}))})(this,function(ur){"use strict";var
|
|
1
|
+
(function(ur,Gn){typeof exports=="object"&&typeof module<"u"?Gn(exports):typeof define=="function"&&define.amd?define(["exports"],Gn):(ur=typeof globalThis<"u"?globalThis:ur||self,Gn(ur.remoteTutorDrawer={}))})(this,function(ur){"use strict";var eB=Object.defineProperty;var tB=(ur,Gn,or)=>Gn in ur?eB(ur,Gn,{enumerable:!0,configurable:!0,writable:!0,value:or}):ur[Gn]=or;var Xl=(ur,Gn,or)=>tB(ur,typeof Gn!="symbol"?Gn+"":Gn,or);function Gn(e,t){for(var r=0;r<t.length;r++){const i=t[r];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(i,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>i[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function or(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gf={exports:{}},We={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var im;function rC(){if(im)return We;im=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),E=Symbol.iterator;function T(C){return C===null||typeof C!="object"?null:(C=E&&C[E]||C["@@iterator"],typeof C=="function"?C:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,x={};function B(C,Z,fe){this.props=C,this.context=Z,this.refs=x,this.updater=fe||y}B.prototype.isReactComponent={},B.prototype.setState=function(C,Z){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,Z,"setState")},B.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function O(){}O.prototype=B.prototype;function P(C,Z,fe){this.props=C,this.context=Z,this.refs=x,this.updater=fe||y}var L=P.prototype=new O;L.constructor=P,v(L,B.prototype),L.isPureReactComponent=!0;var M=Array.isArray,D={H:null,A:null,T:null,S:null,V:null},N=Object.prototype.hasOwnProperty;function z(C,Z,fe,k,be,Re){return fe=Re.ref,{$$typeof:e,type:C,key:Z,ref:fe!==void 0?fe:null,props:Re}}function q(C,Z){return z(C.type,Z,void 0,void 0,void 0,C.props)}function V(C){return typeof C=="object"&&C!==null&&C.$$typeof===e}function _(C){var Z={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(fe){return Z[fe]})}var j=/\/+/g;function $(C,Z){return typeof C=="object"&&C!==null&&C.key!=null?_(""+C.key):Z.toString(36)}function ee(){}function X(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(ee,ee):(C.status="pending",C.then(function(Z){C.status==="pending"&&(C.status="fulfilled",C.value=Z)},function(Z){C.status==="pending"&&(C.status="rejected",C.reason=Z)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function te(C,Z,fe,k,be){var Re=typeof C;(Re==="undefined"||Re==="boolean")&&(C=null);var Te=!1;if(C===null)Te=!0;else switch(Re){case"bigint":case"string":case"number":Te=!0;break;case"object":switch(C.$$typeof){case e:case t:Te=!0;break;case b:return Te=C._init,te(Te(C._payload),Z,fe,k,be)}}if(Te)return be=be(C),Te=k===""?"."+$(C,0):k,M(be)?(fe="",Te!=null&&(fe=Te.replace(j,"$&/")+"/"),te(be,Z,fe,"",function(ut){return ut})):be!=null&&(V(be)&&(be=q(be,fe+(be.key==null||C&&C.key===be.key?"":(""+be.key).replace(j,"$&/")+"/")+Te)),Z.push(be)),1;Te=0;var Xe=k===""?".":k+":";if(M(C))for(var Be=0;Be<C.length;Be++)k=C[Be],Re=Xe+$(k,Be),Te+=te(k,Z,fe,Re,be);else if(Be=T(C),typeof Be=="function")for(C=Be.call(C),Be=0;!(k=C.next()).done;)k=k.value,Re=Xe+$(k,Be++),Te+=te(k,Z,fe,Re,be);else if(Re==="object"){if(typeof C.then=="function")return te(X(C),Z,fe,k,be);throw Z=String(C),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return Te}function F(C,Z,fe){if(C==null)return C;var k=[],be=0;return te(C,k,"","",function(Re){return Z.call(fe,Re,be++)}),k}function ie(C){if(C._status===-1){var Z=C._result;Z=Z(),Z.then(function(fe){(C._status===0||C._status===-1)&&(C._status=1,C._result=fe)},function(fe){(C._status===0||C._status===-1)&&(C._status=2,C._result=fe)}),C._status===-1&&(C._status=0,C._result=Z)}if(C._status===1)return C._result.default;throw C._result}var Q=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)};function he(){}return We.Children={map:F,forEach:function(C,Z,fe){F(C,function(){Z.apply(this,arguments)},fe)},count:function(C){var Z=0;return F(C,function(){Z++}),Z},toArray:function(C){return F(C,function(Z){return Z})||[]},only:function(C){if(!V(C))throw Error("React.Children.only expected to receive a single React element child.");return C}},We.Component=B,We.Fragment=r,We.Profiler=o,We.PureComponent=P,We.StrictMode=i,We.Suspense=h,We.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,We.__COMPILER_RUNTIME={__proto__:null,c:function(C){return D.H.useMemoCache(C)}},We.cache=function(C){return function(){return C.apply(null,arguments)}},We.cloneElement=function(C,Z,fe){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var k=v({},C.props),be=C.key,Re=void 0;if(Z!=null)for(Te in Z.ref!==void 0&&(Re=void 0),Z.key!==void 0&&(be=""+Z.key),Z)!N.call(Z,Te)||Te==="key"||Te==="__self"||Te==="__source"||Te==="ref"&&Z.ref===void 0||(k[Te]=Z[Te]);var Te=arguments.length-2;if(Te===1)k.children=fe;else if(1<Te){for(var Xe=Array(Te),Be=0;Be<Te;Be++)Xe[Be]=arguments[Be+2];k.children=Xe}return z(C.type,be,void 0,void 0,Re,k)},We.createContext=function(C){return C={$$typeof:c,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:s,_context:C},C},We.createElement=function(C,Z,fe){var k,be={},Re=null;if(Z!=null)for(k in Z.key!==void 0&&(Re=""+Z.key),Z)N.call(Z,k)&&k!=="key"&&k!=="__self"&&k!=="__source"&&(be[k]=Z[k]);var Te=arguments.length-2;if(Te===1)be.children=fe;else if(1<Te){for(var Xe=Array(Te),Be=0;Be<Te;Be++)Xe[Be]=arguments[Be+2];be.children=Xe}if(C&&C.defaultProps)for(k in Te=C.defaultProps,Te)be[k]===void 0&&(be[k]=Te[k]);return z(C,Re,void 0,void 0,null,be)},We.createRef=function(){return{current:null}},We.forwardRef=function(C){return{$$typeof:d,render:C}},We.isValidElement=V,We.lazy=function(C){return{$$typeof:b,_payload:{_status:-1,_result:C},_init:ie}},We.memo=function(C,Z){return{$$typeof:p,type:C,compare:Z===void 0?null:Z}},We.startTransition=function(C){var Z=D.T,fe={};D.T=fe;try{var k=C(),be=D.S;be!==null&&be(fe,k),typeof k=="object"&&k!==null&&typeof k.then=="function"&&k.then(he,Q)}catch(Re){Q(Re)}finally{D.T=Z}},We.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},We.use=function(C){return D.H.use(C)},We.useActionState=function(C,Z,fe){return D.H.useActionState(C,Z,fe)},We.useCallback=function(C,Z){return D.H.useCallback(C,Z)},We.useContext=function(C){return D.H.useContext(C)},We.useDebugValue=function(){},We.useDeferredValue=function(C,Z){return D.H.useDeferredValue(C,Z)},We.useEffect=function(C,Z,fe){var k=D.H;if(typeof fe=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return k.useEffect(C,Z)},We.useId=function(){return D.H.useId()},We.useImperativeHandle=function(C,Z,fe){return D.H.useImperativeHandle(C,Z,fe)},We.useInsertionEffect=function(C,Z){return D.H.useInsertionEffect(C,Z)},We.useLayoutEffect=function(C,Z){return D.H.useLayoutEffect(C,Z)},We.useMemo=function(C,Z){return D.H.useMemo(C,Z)},We.useOptimistic=function(C,Z){return D.H.useOptimistic(C,Z)},We.useReducer=function(C,Z,fe){return D.H.useReducer(C,Z,fe)},We.useRef=function(C){return D.H.useRef(C)},We.useState=function(C){return D.H.useState(C)},We.useSyncExternalStore=function(C,Z,fe){return D.H.useSyncExternalStore(C,Z,fe)},We.useTransition=function(){return D.H.useTransition()},We.version="19.1.0",We}var um;function Ql(){return um||(um=1,gf.exports=rC()),gf.exports}var A=Ql();const St=or(A),bf=Gn({__proto__:null,default:St},[A]);var Ef={exports:{}},Gu={},yf={exports:{}},Tf={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* scheduler.production.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var om;function aC(){return om||(om=1,function(e){function t(F,ie){var Q=F.length;F.push(ie);e:for(;0<Q;){var he=Q-1>>>1,C=F[he];if(0<o(C,ie))F[he]=ie,F[Q]=C,Q=he;else break e}}function r(F){return F.length===0?null:F[0]}function i(F){if(F.length===0)return null;var ie=F[0],Q=F.pop();if(Q!==ie){F[0]=Q;e:for(var he=0,C=F.length,Z=C>>>1;he<Z;){var fe=2*(he+1)-1,k=F[fe],be=fe+1,Re=F[be];if(0>o(k,Q))be<C&&0>o(Re,k)?(F[he]=Re,F[be]=Q,he=be):(F[he]=k,F[fe]=Q,he=fe);else if(be<C&&0>o(Re,Q))F[he]=Re,F[be]=Q,he=be;else break e}}return ie}function o(F,ie){var Q=F.sortIndex-ie.sortIndex;return Q!==0?Q:F.id-ie.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var h=[],p=[],b=1,E=null,T=3,y=!1,v=!1,x=!1,B=!1,O=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function M(F){for(var ie=r(p);ie!==null;){if(ie.callback===null)i(p);else if(ie.startTime<=F)i(p),ie.sortIndex=ie.expirationTime,t(h,ie);else break;ie=r(p)}}function D(F){if(x=!1,M(F),!v)if(r(h)!==null)v=!0,N||(N=!0,$());else{var ie=r(p);ie!==null&&te(D,ie.startTime-F)}}var N=!1,z=-1,q=5,V=-1;function _(){return B?!0:!(e.unstable_now()-V<q)}function j(){if(B=!1,N){var F=e.unstable_now();V=F;var ie=!0;try{e:{v=!1,x&&(x=!1,P(z),z=-1),y=!0;var Q=T;try{t:{for(M(F),E=r(h);E!==null&&!(E.expirationTime>F&&_());){var he=E.callback;if(typeof he=="function"){E.callback=null,T=E.priorityLevel;var C=he(E.expirationTime<=F);if(F=e.unstable_now(),typeof C=="function"){E.callback=C,M(F),ie=!0;break t}E===r(h)&&i(h),M(F)}else i(h);E=r(h)}if(E!==null)ie=!0;else{var Z=r(p);Z!==null&&te(D,Z.startTime-F),ie=!1}}break e}finally{E=null,T=Q,y=!1}ie=void 0}}finally{ie?$():N=!1}}}var $;if(typeof L=="function")$=function(){L(j)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,X=ee.port2;ee.port1.onmessage=j,$=function(){X.postMessage(null)}}else $=function(){O(j,0)};function te(F,ie){z=O(function(){F(e.unstable_now())},ie)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return T},e.unstable_next=function(F){switch(T){case 1:case 2:case 3:var ie=3;break;default:ie=T}var Q=T;T=ie;try{return F()}finally{T=Q}},e.unstable_requestPaint=function(){B=!0},e.unstable_runWithPriority=function(F,ie){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var Q=T;T=F;try{return ie()}finally{T=Q}},e.unstable_scheduleCallback=function(F,ie,Q){var he=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?he+Q:he):Q=he,F){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=Q+C,F={id:b++,callback:ie,priorityLevel:F,startTime:Q,expirationTime:C,sortIndex:-1},Q>he?(F.sortIndex=Q,t(p,F),r(h)===null&&F===r(p)&&(x?(P(z),z=-1):x=!0,te(D,Q-he))):(F.sortIndex=C,t(h,F),v||y||(v=!0,N||(N=!0,$()))),F},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(F){var ie=T;return function(){var Q=T;T=ie;try{return F.apply(this,arguments)}finally{T=Q}}}}(Tf)),Tf}var lm;function iC(){return lm||(lm=1,yf.exports=aC()),yf.exports}var Sf={exports:{}},Sn={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* react-dom.production.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var
|
|
25
|
+
*/var sm;function uC(){if(sm)return Sn;sm=1;var e=Ql();function t(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 i={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(h,p,b){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:E==null?null:""+E,children:h,containerInfo:p,implementation:b}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Sn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Sn.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(t(299));return s(h,p,null,b)},Sn.flushSync=function(h){var p=c.T,b=i.p;try{if(c.T=null,i.p=2,h)return h()}finally{c.T=p,i.p=b,i.d.f()}},Sn.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,i.d.C(h,p))},Sn.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},Sn.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var b=p.as,E=d(b,p.crossOrigin),T=typeof p.integrity=="string"?p.integrity:void 0,y=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?i.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:E,integrity:T,fetchPriority:y}):b==="script"&&i.d.X(h,{crossOrigin:E,integrity:T,fetchPriority:y,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Sn.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=d(p.as,p.crossOrigin);i.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&&i.d.M(h)},Sn.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,E=d(b,p.crossOrigin);i.d.L(h,b,{crossOrigin:E,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(h,p){if(typeof h=="string")if(p){var b=d(p.as,p.crossOrigin);i.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 i.d.m(h)},Sn.requestFormReset=function(h){i.d.r(h)},Sn.unstable_batchedUpdates=function(h,p){return h(p)},Sn.useFormState=function(h,p,b){return c.H.useFormState(h,p,b)},Sn.useFormStatus=function(){return c.H.useHostTransitionStatus()},Sn.version="19.1.0",Sn}var cm;function fm(){if(cm)return Sf.exports;cm=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Sf.exports=uC(),Sf.exports}/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom-client.production.js
|
|
28
28
|
*
|
|
@@ -30,23 +30,23 @@
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var nm;function US(){if(nm)return qu;nm=1;var e=BS(),t=qo(),r=tm();function i(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)a+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function s(n){var a=n,u=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,(a.flags&4098)!==0&&(u=a.return),n=a.return;while(n)}return a.tag===3?u:null}function c(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function d(n){if(s(n)!==n)throw Error(i(188))}function p(n){var a=n.alternate;if(!a){if(a=s(n),a===null)throw Error(i(188));return a!==n?null:n}for(var u=n,o=a;;){var f=u.return;if(f===null)break;var h=f.alternate;if(h===null){if(o=f.return,o!==null){u=o;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===u)return d(f),n;if(h===o)return d(f),a;h=h.sibling}throw Error(i(188))}if(u.return!==o.return)u=f,o=h;else{for(var S=!1,v=f.child;v;){if(v===u){S=!0,u=f,o=h;break}if(v===o){S=!0,o=f,u=h;break}v=v.sibling}if(!S){for(v=h.child;v;){if(v===u){S=!0,u=h,o=f;break}if(v===o){S=!0,o=h,u=f;break}v=v.sibling}if(!S)throw Error(i(189))}}if(u.alternate!==o)throw Error(i(190))}if(u.tag!==3)throw Error(i(188));return u.stateNode.current===u?n:a}function m(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=m(n),a!==null)return a;n=n.sibling}return null}var b=Object.assign,E=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),q=Symbol.for("react.consumer"),M=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),_=Symbol.for("react.memo_cache_sentinel"),z=Symbol.iterator;function $(n){return n===null||typeof n!="object"?null:(n=z&&n[z]||n["@@iterator"],typeof n=="function"?n:null)}var Z=Symbol.for("react.client.reference");function X(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===Z?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case R:return"Fragment";case U:return"Profiler";case x:return"StrictMode";case k:return"Suspense";case N:return"SuspenseList";case G:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case y:return"Portal";case M:return(n.displayName||"Context")+".Provider";case q:return(n._context.displayName||"Context")+".Consumer";case P:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case Y:return a=n.displayName||null,a!==null?a:X(n.type)||"Memo";case j:a=n._payload,n=n._init;try{return X(n(a))}catch{}}return null}var te=Array.isArray,H=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},me=[],C=-1;function J(n){return{current:n}}function fe(n){0>C||(n.current=me[C],me[C]=null,C--)}function O(n,a){C++,me[C]=n.current,n.current=a}var be=J(null),Ne=J(null),Ee=J(null),Ke=J(null);function Me(n,a){switch(O(Ee,a),O(Ne,n),O(be,null),a.nodeType){case 9:case 11:n=(n=a.documentElement)&&(n=n.namespaceURI)?lS(n):0;break;default:if(n=a.tagName,a=a.namespaceURI)a=lS(a),n=oS(a,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}fe(be),O(be,n)}function lt(){fe(be),fe(Ne),fe(Ee)}function yt(n){n.memoizedState!==null&&O(Ke,n);var a=be.current,u=oS(a,n.type);a!==u&&(O(Ne,n),O(be,u))}function Re(n){Ne.current===n&&(fe(be),fe(Ne)),Ke.current===n&&(fe(Ke),Uo._currentValue=ie)}var We=Object.prototype.hasOwnProperty,Oe=e.unstable_scheduleCallback,Se=e.unstable_cancelCallback,Fe=e.unstable_shouldYield,Ve=e.unstable_requestPaint,ke=e.unstable_now,Le=e.unstable_getCurrentPriorityLevel,je=e.unstable_ImmediatePriority,nt=e.unstable_UserBlockingPriority,Et=e.unstable_NormalPriority,Ie=e.unstable_LowPriority,nn=e.unstable_IdlePriority,Pt=e.log,Tt=e.unstable_setDisableYieldValue,ae=null,de=null;function Ce(n){if(typeof Pt=="function"&&Tt(n),de&&typeof de.setStrictMode=="function")try{de.setStrictMode(ae,n)}catch{}}var Ae=Math.clz32?Math.clz32:kt,we=Math.log,Ge=Math.LN2;function kt(n){return n>>>=0,n===0?32:31-(we(n)/Ge|0)|0}var St=256,Zn=4194304;function fn(n){var a=n&42;if(a!==0)return a;switch(n&-n){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:case 262144:case 524288:case 1048576:case 2097152:return n&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function rn(n,a,u){var o=n.pendingLanes;if(o===0)return 0;var f=0,h=n.suspendedLanes,S=n.pingedLanes;n=n.warmLanes;var v=o&134217727;return v!==0?(o=v&~h,o!==0?f=fn(o):(S&=v,S!==0?f=fn(S):u||(u=v&~n,u!==0&&(f=fn(u))))):(v=o&~h,v!==0?f=fn(v):S!==0?f=fn(S):u||(u=o&~n,u!==0&&(f=fn(u)))),f===0?0:a!==0&&a!==f&&(a&h)===0&&(h=f&-f,u=a&-a,h>=u||h===32&&(u&4194048)!==0)?a:f}function Hn(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function Fn(n,a){switch(n){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function di(){var n=St;return St<<=1,(St&4194048)===0&&(St=256),n}function Ks(){var n=Zn;return Zn<<=1,(Zn&62914560)===0&&(Zn=4194304),n}function Vl(n){for(var a=[],u=0;31>u;u++)a.push(n);return a}function ea(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function F0(n,a,u,o,f,h){var S=n.pendingLanes;n.pendingLanes=u,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=u,n.entangledLanes&=u,n.errorRecoveryDisabledLanes&=u,n.shellSuspendCounter=0;var v=n.entanglements,B=n.expirationTimes,ee=n.hiddenUpdates;for(u=S&~u;0<u;){var oe=31-Ae(u),ce=1<<oe;v[oe]=0,B[oe]=-1;var ne=ee[oe];if(ne!==null)for(ee[oe]=null,oe=0;oe<ne.length;oe++){var re=ne[oe];re!==null&&(re.lane&=-536870913)}u&=~ce}o!==0&&Ws(n,o,0),h!==0&&f===0&&n.tag!==0&&(n.suspendedLanes|=h&~(S&~a))}function Ws(n,a,u){n.pendingLanes|=a,n.suspendedLanes&=~a;var o=31-Ae(a);n.entangledLanes|=a,n.entanglements[o]=n.entanglements[o]|1073741824|u&4194090}function Zs(n,a){var u=n.entangledLanes|=a;for(n=n.entanglements;u;){var o=31-Ae(u),f=1<<o;f&a|n[o]&a&&(n[o]|=a),u&=~f}}function Gl(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function $l(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Js(){var n=Q.p;return n!==0?n:(n=window.event,n===void 0?32:RS(n.type))}function _e(n,a){var u=Q.p;try{return Q.p=n,a()}finally{Q.p=u}}var xe=Math.random().toString(36).slice(2),He="__reactFiber$"+xe,qe="__reactProps$"+xe,Ct="__reactContainer$"+xe,zn="__reactEvents$"+xe,ta="__reactListeners$"+xe,hi="__reactHandles$"+xe,Xl="__reactResources$"+xe,na="__reactMarker$"+xe;function z0(n){delete n[He],delete n[qe],delete n[zn],delete n[ta],delete n[hi]}function uu(n){var a=n[He];if(a)return a;for(var u=n.parentNode;u;){if(a=u[Ct]||u[He]){if(u=a.alternate,a.child!==null||u!==null&&u.child!==null)for(n=dS(n);n!==null;){if(u=n[He])return u;n=dS(n)}return a}n=u,u=n.parentNode}return null}function lu(n){if(n=n[He]||n[Ct]){var a=n.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return n}return null}function Ql(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(i(33))}function ou(n){var a=n[Xl];return a||(a=n[Xl]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function dn(n){n[na]=!0}var K2=new Set,W2={};function pi(n,a){su(n,a),su(n+"Capture",a)}function su(n,a){for(W2[n]=a,n=0;n<a.length;n++)K2.add(a[n])}var VL=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]*$"),Z2={},J2={};function GL(n){return We.call(J2,n)?!0:We.call(Z2,n)?!1:VL.test(n)?J2[n]=!0:(Z2[n]=!0,!1)}function ec(n,a,u){if(GL(a))if(u===null)n.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":n.removeAttribute(a);return;case"boolean":var o=a.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){n.removeAttribute(a);return}}n.setAttribute(a,""+u)}}function tc(n,a,u){if(u===null)n.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttribute(a,""+u)}}function ra(n,a,u,o){if(o===null)n.removeAttribute(u);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(u);return}n.setAttributeNS(a,u,""+o)}}var Y0,ey;function cu(n){if(Y0===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);Y0=a&&a[1]||"",ey=-1<u.stack.indexOf(`
|
|
33
|
+
*/var dm;function oC(){if(dm)return Gu;dm=1;var e=iC(),t=Ql(),r=fm();function i(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)a+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function s(n){var a=n,u=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,(a.flags&4098)!==0&&(u=a.return),n=a.return;while(n)}return a.tag===3?u:null}function c(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function d(n){if(s(n)!==n)throw Error(i(188))}function h(n){var a=n.alternate;if(!a){if(a=s(n),a===null)throw Error(i(188));return a!==n?null:n}for(var u=n,l=a;;){var f=u.return;if(f===null)break;var m=f.alternate;if(m===null){if(l=f.return,l!==null){u=l;continue}break}if(f.child===m.child){for(m=f.child;m;){if(m===u)return d(f),n;if(m===l)return d(f),a;m=m.sibling}throw Error(i(188))}if(u.return!==l.return)u=f,l=m;else{for(var S=!1,R=f.child;R;){if(R===u){S=!0,u=f,l=m;break}if(R===l){S=!0,l=f,u=m;break}R=R.sibling}if(!S){for(R=m.child;R;){if(R===u){S=!0,u=m,l=f;break}if(R===l){S=!0,l=m,u=f;break}R=R.sibling}if(!S)throw Error(i(189))}}if(u.alternate!==l)throw Error(i(190))}if(u.tag!==3)throw Error(i(188));return u.stateNode.current===u?n:a}function p(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=p(n),a!==null)return a;n=n.sibling}return null}var b=Object.assign,E=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),P=Symbol.for("react.consumer"),L=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),_=Symbol.for("react.memo_cache_sentinel"),j=Symbol.iterator;function $(n){return n===null||typeof n!="object"?null:(n=j&&n[j]||n["@@iterator"],typeof n=="function"?n:null)}var ee=Symbol.for("react.client.reference");function X(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===ee?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case v:return"Fragment";case B:return"Profiler";case x:return"StrictMode";case D:return"Suspense";case N:return"SuspenseList";case V:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case y:return"Portal";case L:return(n.displayName||"Context")+".Provider";case P:return(n._context.displayName||"Context")+".Consumer";case M:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case z:return a=n.displayName||null,a!==null?a:X(n.type)||"Memo";case q:a=n._payload,n=n._init;try{return X(n(a))}catch{}}return null}var te=Array.isArray,F=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},he=[],C=-1;function Z(n){return{current:n}}function fe(n){0>C||(n.current=he[C],he[C]=null,C--)}function k(n,a){C++,he[C]=n.current,n.current=a}var be=Z(null),Re=Z(null),Te=Z(null),Xe=Z(null);function Be(n,a){switch(k(Te,a),k(Re,n),k(be,null),a.nodeType){case 9:case 11:n=(n=a.documentElement)&&(n=n.namespaceURI)?kS(n):0;break;default:if(n=a.tagName,a=a.namespaceURI)a=kS(a),n=IS(a,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}fe(be),k(be,n)}function ut(){fe(be),fe(Re),fe(Te)}function Ct(n){n.memoizedState!==null&&k(Xe,n);var a=be.current,u=IS(a,n.type);a!==u&&(k(Re,n),k(be,u))}function gt(n){Re.current===n&&(fe(be),fe(Re)),Xe.current===n&&(fe(Xe),jl._currentValue=Q)}var Ne=Object.prototype.hasOwnProperty,Oe=e.unstable_scheduleCallback,Ce=e.unstable_cancelCallback,we=e.unstable_shouldYield,ke=e.unstable_requestPaint,Me=e.unstable_now,Fe=e.unstable_getCurrentPriorityLevel,qe=e.unstable_ImmediatePriority,$e=e.unstable_UserBlockingPriority,ct=e.unstable_NormalPriority,Ie=e.unstable_LowPriority,un=e.unstable_IdlePriority,Ft=e.log,Bt=e.unstable_setDisableYieldValue,ae=null,de=null;function Se(n){if(typeof Ft=="function"&&Bt(n),de&&typeof de.setStrictMode=="function")try{de.setStrictMode(ae,n)}catch{}}var Ae=Math.clz32?Math.clz32:Tt,Pe=Math.log,Ve=Math.LN2;function Tt(n){return n>>>=0,n===0?32:31-(Pe(n)/Ve|0)|0}var At=256,Zn=4194304;function fn(n){var a=n&42;if(a!==0)return a;switch(n&-n){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:case 262144:case 524288:case 1048576:case 2097152:return n&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function nn(n,a,u){var l=n.pendingLanes;if(l===0)return 0;var f=0,m=n.suspendedLanes,S=n.pingedLanes;n=n.warmLanes;var R=l&134217727;return R!==0?(l=R&~m,l!==0?f=fn(l):(S&=R,S!==0?f=fn(S):u||(u=R&~n,u!==0&&(f=fn(u))))):(R=l&~m,R!==0?f=fn(R):S!==0?f=fn(S):u||(u=l&~n,u!==0&&(f=fn(u)))),f===0?0:a!==0&&a!==f&&(a&m)===0&&(m=f&-f,u=a&-a,m>=u||m===32&&(u&4194048)!==0)?a:f}function Hn(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function Fn(n,a){switch(n){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function pi(){var n=At;return At<<=1,(At&4194048)===0&&(At=256),n}function tc(){var n=Zn;return Zn<<=1,(Zn&62914560)===0&&(Zn=4194304),n}function Wo(n){for(var a=[],u=0;31>u;u++)a.push(n);return a}function ea(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function K0(n,a,u,l,f,m){var S=n.pendingLanes;n.pendingLanes=u,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=u,n.entangledLanes&=u,n.errorRecoveryDisabledLanes&=u,n.shellSuspendCounter=0;var R=n.entanglements,H=n.expirationTimes,J=n.hiddenUpdates;for(u=S&~u;0<u;){var le=31-Ae(u),ce=1<<le;R[le]=0,H[le]=-1;var ne=J[le];if(ne!==null)for(J[le]=null,le=0;le<ne.length;le++){var re=ne[le];re!==null&&(re.lane&=-536870913)}u&=~ce}l!==0&&nc(n,l,0),m!==0&&f===0&&n.tag!==0&&(n.suspendedLanes|=m&~(S&~a))}function nc(n,a,u){n.pendingLanes|=a,n.suspendedLanes&=~a;var l=31-Ae(a);n.entangledLanes|=a,n.entanglements[l]=n.entanglements[l]|1073741824|u&4194090}function rc(n,a){var u=n.entangledLanes|=a;for(n=n.entanglements;u;){var l=31-Ae(u),f=1<<l;f&a|n[l]&a&&(n[l]|=a),u&=~f}}function Zo(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Jo(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function ac(){var n=ie.p;return n!==0?n:(n=window.event,n===void 0?32:KS(n.type))}function xe(n,a){var u=ie.p;try{return ie.p=n,a()}finally{ie.p=u}}var _e=Math.random().toString(36).slice(2),Ye="__reactFiber$"+_e,Ge="__reactProps$"+_e,xt="__reactContainer$"+_e,zn="__reactEvents$"+_e,ta="__reactListeners$"+_e,mi="__reactHandles$"+_e,el="__reactResources$"+_e,na="__reactMarker$"+_e;function W0(n){delete n[Ye],delete n[Ge],delete n[zn],delete n[ta],delete n[mi]}function lu(n){var a=n[Ye];if(a)return a;for(var u=n.parentNode;u;){if(a=u[xt]||u[Ye]){if(u=a.alternate,a.child!==null||u!==null&&u.child!==null)for(n=MS(n);n!==null;){if(u=n[Ye])return u;n=MS(n)}return a}n=u,u=n.parentNode}return null}function su(n){if(n=n[Ye]||n[xt]){var a=n.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return n}return null}function tl(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(i(33))}function cu(n){var a=n[el];return a||(a=n[el]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function dn(n){n[na]=!0}var yy=new Set,Ty={};function gi(n,a){fu(n,a),fu(n+"Capture",a)}function fu(n,a){for(Ty[n]=a,n=0;n<a.length;n++)yy.add(a[n])}var GL=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]*$"),Sy={},Cy={};function $L(n){return Ne.call(Cy,n)?!0:Ne.call(Sy,n)?!1:GL.test(n)?Cy[n]=!0:(Sy[n]=!0,!1)}function ic(n,a,u){if($L(a))if(u===null)n.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":n.removeAttribute(a);return;case"boolean":var l=a.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){n.removeAttribute(a);return}}n.setAttribute(a,""+u)}}function uc(n,a,u){if(u===null)n.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttribute(a,""+u)}}function ra(n,a,u,l){if(l===null)n.removeAttribute(u);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(u);return}n.setAttributeNS(a,u,""+l)}}var Z0,Ay;function du(n){if(Z0===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);Z0=a&&a[1]||"",Ay=-1<u.stack.indexOf(`
|
|
34
34
|
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
35
|
-
`+
|
|
36
|
-
`),
|
|
37
|
-
`);for(f=
|
|
38
|
-
`+
|
|
35
|
+
`+Z0+n+Ay}var J0=!1;function eh(n,a){if(!n||J0)return"";J0=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(a){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(re){var ne=re}Reflect.construct(n,[],ce)}else{try{ce.call()}catch(re){ne=re}n.call(ce.prototype)}}else{try{throw Error()}catch(re){ne=re}(ce=n())&&typeof ce.catch=="function"&&ce.catch(function(){})}}catch(re){if(re&&ne&&typeof re.stack=="string")return[re.stack,ne.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=l.DetermineComponentFrameRoot(),S=m[0],R=m[1];if(S&&R){var H=S.split(`
|
|
36
|
+
`),J=R.split(`
|
|
37
|
+
`);for(f=l=0;l<H.length&&!H[l].includes("DetermineComponentFrameRoot");)l++;for(;f<J.length&&!J[f].includes("DetermineComponentFrameRoot");)f++;if(l===H.length||f===J.length)for(l=H.length-1,f=J.length-1;1<=l&&0<=f&&H[l]!==J[f];)f--;for(;1<=l&&0<=f;l--,f--)if(H[l]!==J[f]){if(l!==1||f!==1)do if(l--,f--,0>f||H[l]!==J[f]){var le=`
|
|
38
|
+
`+H[l].replace(" at new "," at ");return n.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",n.displayName)),le}while(1<=l&&0<=f);break}}}finally{J0=!1,Error.prepareStackTrace=u}return(u=n?n.displayName||n.name:"")?du(u):""}function XL(n){switch(n.tag){case 26:case 27:case 5:return du(n.type);case 16:return du("Lazy");case 13:return du("Suspense");case 19:return du("SuspenseList");case 0:case 15:return eh(n.type,!1);case 11:return eh(n.type.render,!1);case 1:return eh(n.type,!0);case 31:return du("Activity");default:return""}}function xy(n){try{var a="";do a+=XL(n),n=n.return;while(n);return a}catch(u){return`
|
|
39
39
|
Error generating stack: `+u.message+`
|
|
40
|
-
`+u.stack}}function mr(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function ny(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function XL(n){var a=ny(n)?"checked":"value",u=Object.getOwnPropertyDescriptor(n.constructor.prototype,a),o=""+n[a];if(!n.hasOwnProperty(a)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var f=u.get,h=u.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return f.call(this)},set:function(S){o=""+S,h.call(this,S)}}),Object.defineProperty(n,a,{enumerable:u.enumerable}),{getValue:function(){return o},setValue:function(S){o=""+S},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function nc(n){n._valueTracker||(n._valueTracker=XL(n))}function ry(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var u=a.getValue(),o="";return n&&(o=ny(n)?n.checked?"true":"false":n.value),n=o,n!==u?(a.setValue(n),!0):!1}function rc(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var QL=/[\n"\\]/g;function gr(n){return n.replace(QL,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function V0(n,a,u,o,f,h,S,v){n.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?n.type=S:n.removeAttribute("type"),a!=null?S==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+mr(a)):n.value!==""+mr(a)&&(n.value=""+mr(a)):S!=="submit"&&S!=="reset"||n.removeAttribute("value"),a!=null?G0(n,S,mr(a)):u!=null?G0(n,S,mr(u)):o!=null&&n.removeAttribute("value"),f==null&&h!=null&&(n.defaultChecked=!!h),f!=null&&(n.checked=f&&typeof f!="function"&&typeof f!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?n.name=""+mr(v):n.removeAttribute("name")}function ay(n,a,u,o,f,h,S,v){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(n.type=h),a!=null||u!=null){if(!(h!=="submit"&&h!=="reset"||a!=null))return;u=u!=null?""+mr(u):"",a=a!=null?""+mr(a):u,v||a===n.value||(n.value=a),n.defaultValue=a}o=o??f,o=typeof o!="function"&&typeof o!="symbol"&&!!o,n.checked=v?n.checked:!!o,n.defaultChecked=!!o,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(n.name=S)}function G0(n,a,u){a==="number"&&rc(n.ownerDocument)===n||n.defaultValue===""+u||(n.defaultValue=""+u)}function fu(n,a,u,o){if(n=n.options,a){a={};for(var f=0;f<u.length;f++)a["$"+u[f]]=!0;for(u=0;u<n.length;u++)f=a.hasOwnProperty("$"+n[u].value),n[u].selected!==f&&(n[u].selected=f),f&&o&&(n[u].defaultSelected=!0)}else{for(u=""+mr(u),a=null,f=0;f<n.length;f++){if(n[f].value===u){n[f].selected=!0,o&&(n[f].defaultSelected=!0);return}a!==null||n[f].disabled||(a=n[f])}a!==null&&(a.selected=!0)}}function iy(n,a,u){if(a!=null&&(a=""+mr(a),a!==n.value&&(n.value=a),u==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=u!=null?""+mr(u):""}function uy(n,a,u,o){if(a==null){if(o!=null){if(u!=null)throw Error(i(92));if(te(o)){if(1<o.length)throw Error(i(93));o=o[0]}u=o}u==null&&(u=""),a=u}u=mr(a),n.defaultValue=u,o=n.textContent,o===u&&o!==""&&o!==null&&(n.value=o)}function du(n,a){if(a){var u=n.firstChild;if(u&&u===n.lastChild&&u.nodeType===3){u.nodeValue=a;return}}n.textContent=a}var KL=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 ly(n,a,u){var o=a.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?o?n.setProperty(a,""):a==="float"?n.cssFloat="":n[a]="":o?n.setProperty(a,u):typeof u!="number"||u===0||KL.has(a)?a==="float"?n.cssFloat=u:n[a]=(""+u).trim():n[a]=u+"px"}function oy(n,a,u){if(a!=null&&typeof a!="object")throw Error(i(62));if(n=n.style,u!=null){for(var o in u)!u.hasOwnProperty(o)||a!=null&&a.hasOwnProperty(o)||(o.indexOf("--")===0?n.setProperty(o,""):o==="float"?n.cssFloat="":n[o]="");for(var f in a)o=a[f],a.hasOwnProperty(f)&&u[f]!==o&&ly(n,f,o)}else for(var h in a)a.hasOwnProperty(h)&&ly(n,h,a[h])}function $0(n){if(n.indexOf("-")===-1)return!1;switch(n){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 WL=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"]]),ZL=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ac(n){return ZL.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var X0=null;function Q0(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var hu=null,pu=null;function sy(n){var a=lu(n);if(a&&(n=a.stateNode)){var u=n[qe]||null;e:switch(n=a.stateNode,a.type){case"input":if(V0(n,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),a=u.name,u.type==="radio"&&a!=null){for(u=n;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+gr(""+a)+'"][type="radio"]'),a=0;a<u.length;a++){var o=u[a];if(o!==n&&o.form===n.form){var f=o[qe]||null;if(!f)throw Error(i(90));V0(o,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(a=0;a<u.length;a++)o=u[a],o.form===n.form&&ry(o)}break e;case"textarea":iy(n,u.value,u.defaultValue);break e;case"select":a=u.value,a!=null&&fu(n,!!u.multiple,a,!1)}}}var K0=!1;function cy(n,a,u){if(K0)return n(a,u);K0=!0;try{var o=n(a);return o}finally{if(K0=!1,(hu!==null||pu!==null)&&(jc(),hu&&(a=hu,n=pu,pu=hu=null,sy(a),n)))for(a=0;a<n.length;a++)sy(n[a])}}function Kl(n,a){var u=n.stateNode;if(u===null)return null;var o=u[qe]||null;if(o===null)return null;u=o[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(n=n.type,o=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!o;break e;default:n=!1}if(n)return null;if(u&&typeof u!="function")throw Error(i(231,a,typeof u));return u}var aa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),W0=!1;if(aa)try{var Wl={};Object.defineProperty(Wl,"passive",{get:function(){W0=!0}}),window.addEventListener("test",Wl,Wl),window.removeEventListener("test",Wl,Wl)}catch{W0=!1}var Ia=null,Z0=null,ic=null;function fy(){if(ic)return ic;var n,a=Z0,u=a.length,o,f="value"in Ia?Ia.value:Ia.textContent,h=f.length;for(n=0;n<u&&a[n]===f[n];n++);var S=u-n;for(o=1;o<=S&&a[u-o]===f[h-o];o++);return ic=f.slice(n,1<o?1-o:void 0)}function uc(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function lc(){return!0}function dy(){return!1}function Yn(n){function a(u,o,f,h,S){this._reactName=u,this._targetInst=f,this.type=o,this.nativeEvent=h,this.target=S,this.currentTarget=null;for(var v in n)n.hasOwnProperty(v)&&(u=n[v],this[v]=u?u(h):h[v]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?lc:dy,this.isPropagationStopped=dy,this}return b(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=lc)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=lc)},persist:function(){},isPersistent:lc}),a}var mi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},oc=Yn(mi),Zl=b({},mi,{view:0,detail:0}),JL=Yn(Zl),J0,eh,Jl,sc=b({},Zl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nh,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Jl&&(Jl&&n.type==="mousemove"?(J0=n.screenX-Jl.screenX,eh=n.screenY-Jl.screenY):eh=J0=0,Jl=n),J0)},movementY:function(n){return"movementY"in n?n.movementY:eh}}),hy=Yn(sc),eM=b({},sc,{dataTransfer:0}),tM=Yn(eM),nM=b({},Zl,{relatedTarget:0}),th=Yn(nM),rM=b({},mi,{animationName:0,elapsedTime:0,pseudoElement:0}),aM=Yn(rM),iM=b({},mi,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),uM=Yn(iM),lM=b({},mi,{data:0}),py=Yn(lM),oM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sM={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"},cM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fM(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=cM[n])?!!a[n]:!1}function nh(){return fM}var dM=b({},Zl,{key:function(n){if(n.key){var a=oM[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=uc(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?sM[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nh,charCode:function(n){return n.type==="keypress"?uc(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?uc(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),hM=Yn(dM),pM=b({},sc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),my=Yn(pM),mM=b({},Zl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nh}),gM=Yn(mM),bM=b({},mi,{propertyName:0,elapsedTime:0,pseudoElement:0}),EM=Yn(bM),yM=b({},sc,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),TM=Yn(yM),SM=b({},mi,{newState:0,oldState:0}),CM=Yn(SM),AM=[9,13,27,32],rh=aa&&"CompositionEvent"in window,eo=null;aa&&"documentMode"in document&&(eo=document.documentMode);var _M=aa&&"TextEvent"in window&&!eo,gy=aa&&(!rh||eo&&8<eo&&11>=eo),by=" ",Ey=!1;function yy(n,a){switch(n){case"keyup":return AM.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ty(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var mu=!1;function xM(n,a){switch(n){case"compositionend":return Ty(a);case"keypress":return a.which!==32?null:(Ey=!0,by);case"textInput":return n=a.data,n===by&&Ey?null:n;default:return null}}function vM(n,a){if(mu)return n==="compositionend"||!rh&&yy(n,a)?(n=fy(),ic=Z0=Ia=null,mu=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return gy&&a.locale!=="ko"?null:a.data;default:return null}}var RM={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 Sy(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!RM[n.type]:a==="textarea"}function Cy(n,a,u,o){hu?pu?pu.push(o):pu=[o]:hu=o,a=Qc(a,"onChange"),0<a.length&&(u=new oc("onChange","change",null,u,o),n.push({event:u,listeners:a}))}var to=null,no=null;function NM(n){nS(n,0)}function cc(n){var a=Ql(n);if(ry(a))return n}function Ay(n,a){if(n==="change")return a}var _y=!1;if(aa){var ah;if(aa){var ih="oninput"in document;if(!ih){var xy=document.createElement("div");xy.setAttribute("oninput","return;"),ih=typeof xy.oninput=="function"}ah=ih}else ah=!1;_y=ah&&(!document.documentMode||9<document.documentMode)}function vy(){to&&(to.detachEvent("onpropertychange",Ry),no=to=null)}function Ry(n){if(n.propertyName==="value"&&cc(no)){var a=[];Cy(a,no,n,Q0(n)),cy(NM,a)}}function OM(n,a,u){n==="focusin"?(vy(),to=a,no=u,to.attachEvent("onpropertychange",Ry)):n==="focusout"&&vy()}function IM(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return cc(no)}function DM(n,a){if(n==="click")return cc(a)}function kM(n,a){if(n==="input"||n==="change")return cc(a)}function LM(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var Jn=typeof Object.is=="function"?Object.is:LM;function ro(n,a){if(Jn(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var u=Object.keys(n),o=Object.keys(a);if(u.length!==o.length)return!1;for(o=0;o<u.length;o++){var f=u[o];if(!We.call(a,f)||!Jn(n[f],a[f]))return!1}return!0}function Ny(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Oy(n,a){var u=Ny(n);n=0;for(var o;u;){if(u.nodeType===3){if(o=n+u.textContent.length,n<=a&&o>=a)return{node:u,offset:a-n};n=o}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=Ny(u)}}function Iy(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?Iy(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function Dy(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=rc(n.document);a instanceof n.HTMLIFrameElement;){try{var u=typeof a.contentWindow.location.href=="string"}catch{u=!1}if(u)n=a.contentWindow;else break;a=rc(n.document)}return a}function uh(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}var MM=aa&&"documentMode"in document&&11>=document.documentMode,gu=null,lh=null,ao=null,oh=!1;function ky(n,a,u){var o=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;oh||gu==null||gu!==rc(o)||(o=gu,"selectionStart"in o&&uh(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),ao&&ro(ao,o)||(ao=o,o=Qc(lh,"onSelect"),0<o.length&&(a=new oc("onSelect","select",null,a,u),n.push({event:a,listeners:o}),a.target=gu)))}function gi(n,a){var u={};return u[n.toLowerCase()]=a.toLowerCase(),u["Webkit"+n]="webkit"+a,u["Moz"+n]="moz"+a,u}var bu={animationend:gi("Animation","AnimationEnd"),animationiteration:gi("Animation","AnimationIteration"),animationstart:gi("Animation","AnimationStart"),transitionrun:gi("Transition","TransitionRun"),transitionstart:gi("Transition","TransitionStart"),transitioncancel:gi("Transition","TransitionCancel"),transitionend:gi("Transition","TransitionEnd")},sh={},Ly={};aa&&(Ly=document.createElement("div").style,"AnimationEvent"in window||(delete bu.animationend.animation,delete bu.animationiteration.animation,delete bu.animationstart.animation),"TransitionEvent"in window||delete bu.transitionend.transition);function bi(n){if(sh[n])return sh[n];if(!bu[n])return n;var a=bu[n],u;for(u in a)if(a.hasOwnProperty(u)&&u in Ly)return sh[n]=a[u];return n}var My=bi("animationend"),wy=bi("animationiteration"),By=bi("animationstart"),wM=bi("transitionrun"),BM=bi("transitionstart"),PM=bi("transitioncancel"),Py=bi("transitionend"),Uy=new Map,ch="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(" ");ch.push("scrollEnd");function vr(n,a){Uy.set(n,a),pi(a,[n])}var Hy=new WeakMap;function br(n,a){if(typeof n=="object"&&n!==null){var u=Hy.get(n);return u!==void 0?u:(a={value:n,source:a,stack:ty(a)},Hy.set(n,a),a)}return{value:n,source:a,stack:ty(a)}}var Er=[],Eu=0,fh=0;function fc(){for(var n=Eu,a=fh=Eu=0;a<n;){var u=Er[a];Er[a++]=null;var o=Er[a];Er[a++]=null;var f=Er[a];Er[a++]=null;var h=Er[a];if(Er[a++]=null,o!==null&&f!==null){var S=o.pending;S===null?f.next=f:(f.next=S.next,S.next=f),o.pending=f}h!==0&&Fy(u,f,h)}}function dc(n,a,u,o){Er[Eu++]=n,Er[Eu++]=a,Er[Eu++]=u,Er[Eu++]=o,fh|=o,n.lanes|=o,n=n.alternate,n!==null&&(n.lanes|=o)}function dh(n,a,u,o){return dc(n,a,u,o),hc(n)}function yu(n,a){return dc(n,null,null,a),hc(n)}function Fy(n,a,u){n.lanes|=u;var o=n.alternate;o!==null&&(o.lanes|=u);for(var f=!1,h=n.return;h!==null;)h.childLanes|=u,o=h.alternate,o!==null&&(o.childLanes|=u),h.tag===22&&(n=h.stateNode,n===null||n._visibility&1||(f=!0)),n=h,h=h.return;return n.tag===3?(h=n.stateNode,f&&a!==null&&(f=31-Ae(u),n=h.hiddenUpdates,o=n[f],o===null?n[f]=[a]:o.push(a),a.lane=u|536870912),h):null}function hc(n){if(50<Io)throw Io=0,Ep=null,Error(i(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var Tu={};function UM(n,a,u,o){this.tag=n,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function er(n,a,u,o){return new UM(n,a,u,o)}function hh(n){return n=n.prototype,!(!n||!n.isReactComponent)}function ia(n,a){var u=n.alternate;return u===null?(u=er(n.tag,a,n.key,n.mode),u.elementType=n.elementType,u.type=n.type,u.stateNode=n.stateNode,u.alternate=n,n.alternate=u):(u.pendingProps=a,u.type=n.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=n.flags&65011712,u.childLanes=n.childLanes,u.lanes=n.lanes,u.child=n.child,u.memoizedProps=n.memoizedProps,u.memoizedState=n.memoizedState,u.updateQueue=n.updateQueue,a=n.dependencies,u.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},u.sibling=n.sibling,u.index=n.index,u.ref=n.ref,u.refCleanup=n.refCleanup,u}function zy(n,a){n.flags&=65011714;var u=n.alternate;return u===null?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=u.childLanes,n.lanes=u.lanes,n.child=u.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=u.memoizedProps,n.memoizedState=u.memoizedState,n.updateQueue=u.updateQueue,n.type=u.type,a=u.dependencies,n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function pc(n,a,u,o,f,h){var S=0;if(o=n,typeof n=="function")hh(n)&&(S=1);else if(typeof n=="string")S=Fw(n,u,be.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case G:return n=er(31,u,a,f),n.elementType=G,n.lanes=h,n;case R:return Ei(u.children,f,h,a);case x:S=8,f|=24;break;case U:return n=er(12,u,a,f|2),n.elementType=U,n.lanes=h,n;case k:return n=er(13,u,a,f),n.elementType=k,n.lanes=h,n;case N:return n=er(19,u,a,f),n.elementType=N,n.lanes=h,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case D:case M:S=10;break e;case q:S=9;break e;case P:S=11;break e;case Y:S=14;break e;case j:S=16,o=null;break e}S=29,u=Error(i(130,n===null?"null":typeof n,"")),o=null}return a=er(S,u,a,f),a.elementType=n,a.type=o,a.lanes=h,a}function Ei(n,a,u,o){return n=er(7,n,o,a),n.lanes=u,n}function ph(n,a,u){return n=er(6,n,null,a),n.lanes=u,n}function mh(n,a,u){return a=er(4,n.children!==null?n.children:[],n.key,a),a.lanes=u,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}var Su=[],Cu=0,mc=null,gc=0,yr=[],Tr=0,yi=null,ua=1,la="";function Ti(n,a){Su[Cu++]=gc,Su[Cu++]=mc,mc=n,gc=a}function Yy(n,a,u){yr[Tr++]=ua,yr[Tr++]=la,yr[Tr++]=yi,yi=n;var o=ua;n=la;var f=32-Ae(o)-1;o&=~(1<<f),u+=1;var h=32-Ae(a)+f;if(30<h){var S=f-f%5;h=(o&(1<<S)-1).toString(32),o>>=S,f-=S,ua=1<<32-Ae(a)+f|u<<f|o,la=h+n}else ua=1<<h|u<<f|o,la=n}function gh(n){n.return!==null&&(Ti(n,1),Yy(n,1,0))}function bh(n){for(;n===mc;)mc=Su[--Cu],Su[Cu]=null,gc=Su[--Cu],Su[Cu]=null;for(;n===yi;)yi=yr[--Tr],yr[Tr]=null,la=yr[--Tr],yr[Tr]=null,ua=yr[--Tr],yr[Tr]=null}var kn=null,Vt=null,gt=!1,Si=null,qr=!1,Eh=Error(i(519));function Ci(n){var a=Error(i(418,""));throw lo(br(a,n)),Eh}function jy(n){var a=n.stateNode,u=n.type,o=n.memoizedProps;switch(a[He]=n,a[qe]=o,u){case"dialog":at("cancel",a),at("close",a);break;case"iframe":case"object":case"embed":at("load",a);break;case"video":case"audio":for(u=0;u<ko.length;u++)at(ko[u],a);break;case"source":at("error",a);break;case"img":case"image":case"link":at("error",a),at("load",a);break;case"details":at("toggle",a);break;case"input":at("invalid",a),ay(a,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),nc(a);break;case"select":at("invalid",a);break;case"textarea":at("invalid",a),uy(a,o.value,o.defaultValue,o.children),nc(a)}u=o.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||a.textContent===""+u||o.suppressHydrationWarning===!0||uS(a.textContent,u)?(o.popover!=null&&(at("beforetoggle",a),at("toggle",a)),o.onScroll!=null&&at("scroll",a),o.onScrollEnd!=null&&at("scrollend",a),o.onClick!=null&&(a.onclick=Kc),a=!0):a=!1,a||Ci(n)}function qy(n){for(kn=n.return;kn;)switch(kn.tag){case 5:case 13:qr=!1;return;case 27:case 3:qr=!0;return;default:kn=kn.return}}function io(n){if(n!==kn)return!1;if(!gt)return qy(n),gt=!0,!1;var a=n.tag,u;if((u=a!==3&&a!==27)&&((u=a===5)&&(u=n.type,u=!(u!=="form"&&u!=="button")||Mp(n.type,n.memoizedProps)),u=!u),u&&Vt&&Ci(n),qy(n),a===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(i(317));e:{for(n=n.nextSibling,a=0;n;){if(n.nodeType===8)if(u=n.data,u==="/$"){if(a===0){Vt=Nr(n.nextSibling);break e}a--}else u!=="$"&&u!=="$!"&&u!=="$?"||a++;n=n.nextSibling}Vt=null}}else a===27?(a=Vt,Ga(n.type)?(n=Up,Up=null,Vt=n):Vt=a):Vt=kn?Nr(n.stateNode.nextSibling):null;return!0}function uo(){Vt=kn=null,gt=!1}function Vy(){var n=Si;return n!==null&&(Vn===null?Vn=n:Vn.push.apply(Vn,n),Si=null),n}function lo(n){Si===null?Si=[n]:Si.push(n)}var yh=J(null),Ai=null,oa=null;function Da(n,a,u){O(yh,a._currentValue),a._currentValue=u}function sa(n){n._currentValue=yh.current,fe(yh)}function Th(n,a,u){for(;n!==null;){var o=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,o!==null&&(o.childLanes|=a)):o!==null&&(o.childLanes&a)!==a&&(o.childLanes|=a),n===u)break;n=n.return}}function Sh(n,a,u,o){var f=n.child;for(f!==null&&(f.return=n);f!==null;){var h=f.dependencies;if(h!==null){var S=f.child;h=h.firstContext;e:for(;h!==null;){var v=h;h=f;for(var B=0;B<a.length;B++)if(v.context===a[B]){h.lanes|=u,v=h.alternate,v!==null&&(v.lanes|=u),Th(h.return,u,n),o||(S=null);break e}h=v.next}}else if(f.tag===18){if(S=f.return,S===null)throw Error(i(341));S.lanes|=u,h=S.alternate,h!==null&&(h.lanes|=u),Th(S,u,n),S=null}else S=f.child;if(S!==null)S.return=f;else for(S=f;S!==null;){if(S===n){S=null;break}if(f=S.sibling,f!==null){f.return=S.return,S=f;break}S=S.return}f=S}}function oo(n,a,u,o){n=null;for(var f=a,h=!1;f!==null;){if(!h){if((f.flags&524288)!==0)h=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var S=f.alternate;if(S===null)throw Error(i(387));if(S=S.memoizedProps,S!==null){var v=f.type;Jn(f.pendingProps.value,S.value)||(n!==null?n.push(v):n=[v])}}else if(f===Ke.current){if(S=f.alternate,S===null)throw Error(i(387));S.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(n!==null?n.push(Uo):n=[Uo])}f=f.return}n!==null&&Sh(a,n,u,o),a.flags|=262144}function bc(n){for(n=n.firstContext;n!==null;){if(!Jn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function _i(n){Ai=n,oa=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Nn(n){return Gy(Ai,n)}function Ec(n,a){return Ai===null&&_i(n),Gy(n,a)}function Gy(n,a){var u=a._currentValue;if(a={context:a,memoizedValue:u,next:null},oa===null){if(n===null)throw Error(i(308));oa=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else oa=oa.next=a;return u}var HM=typeof AbortController<"u"?AbortController:function(){var n=[],a=this.signal={aborted:!1,addEventListener:function(u,o){n.push(o)}};this.abort=function(){a.aborted=!0,n.forEach(function(u){return u()})}},FM=e.unstable_scheduleCallback,zM=e.unstable_NormalPriority,ln={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ch(){return{controller:new HM,data:new Map,refCount:0}}function so(n){n.refCount--,n.refCount===0&&FM(zM,function(){n.controller.abort()})}var co=null,Ah=0,Au=0,_u=null;function YM(n,a){if(co===null){var u=co=[];Ah=0,Au=xp(),_u={status:"pending",value:void 0,then:function(o){u.push(o)}}}return Ah++,a.then($y,$y),a}function $y(){if(--Ah===0&&co!==null){_u!==null&&(_u.status="fulfilled");var n=co;co=null,Au=0,_u=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function jM(n,a){var u=[],o={status:"pending",value:null,reason:null,then:function(f){u.push(f)}};return n.then(function(){o.status="fulfilled",o.value=a;for(var f=0;f<u.length;f++)(0,u[f])(a)},function(f){for(o.status="rejected",o.reason=f,f=0;f<u.length;f++)(0,u[f])(void 0)}),o}var Xy=H.S;H.S=function(n,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&YM(n,a),Xy!==null&&Xy(n,a)};var xi=J(null);function _h(){var n=xi.current;return n!==null?n:Ut.pooledCache}function yc(n,a){a===null?O(xi,xi.current):O(xi,a.pool)}function Qy(){var n=_h();return n===null?null:{parent:ln._currentValue,pool:n}}var fo=Error(i(460)),Ky=Error(i(474)),Tc=Error(i(542)),xh={then:function(){}};function Wy(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Sc(){}function Zy(n,a,u){switch(u=n[u],u===void 0?n.push(a):u!==a&&(a.then(Sc,Sc),a=u),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,eT(n),n;default:if(typeof a.status=="string")a.then(Sc,Sc);else{if(n=Ut,n!==null&&100<n.shellSuspendCounter)throw Error(i(482));n=a,n.status="pending",n.then(function(o){if(a.status==="pending"){var f=a;f.status="fulfilled",f.value=o}},function(o){if(a.status==="pending"){var f=a;f.status="rejected",f.reason=o}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,eT(n),n}throw ho=a,fo}}var ho=null;function Jy(){if(ho===null)throw Error(i(459));var n=ho;return ho=null,n}function eT(n){if(n===fo||n===Tc)throw Error(i(483))}var ka=!1;function vh(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Rh(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function La(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Ma(n,a,u){var o=n.updateQueue;if(o===null)return null;if(o=o.shared,(At&2)!==0){var f=o.pending;return f===null?a.next=a:(a.next=f.next,f.next=a),o.pending=a,a=hc(n),Fy(n,null,u),a}return dc(n,o,a,u),hc(n)}function po(n,a,u){if(a=a.updateQueue,a!==null&&(a=a.shared,(u&4194048)!==0)){var o=a.lanes;o&=n.pendingLanes,u|=o,a.lanes=u,Zs(n,u)}}function Nh(n,a){var u=n.updateQueue,o=n.alternate;if(o!==null&&(o=o.updateQueue,u===o)){var f=null,h=null;if(u=u.firstBaseUpdate,u!==null){do{var S={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};h===null?f=h=S:h=h.next=S,u=u.next}while(u!==null);h===null?f=h=a:h=h.next=a}else f=h=a;u={baseState:o.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:o.shared,callbacks:o.callbacks},n.updateQueue=u;return}n=u.lastBaseUpdate,n===null?u.firstBaseUpdate=a:n.next=a,u.lastBaseUpdate=a}var Oh=!1;function mo(){if(Oh){var n=_u;if(n!==null)throw n}}function go(n,a,u,o){Oh=!1;var f=n.updateQueue;ka=!1;var h=f.firstBaseUpdate,S=f.lastBaseUpdate,v=f.shared.pending;if(v!==null){f.shared.pending=null;var B=v,ee=B.next;B.next=null,S===null?h=ee:S.next=ee,S=B;var oe=n.alternate;oe!==null&&(oe=oe.updateQueue,v=oe.lastBaseUpdate,v!==S&&(v===null?oe.firstBaseUpdate=ee:v.next=ee,oe.lastBaseUpdate=B))}if(h!==null){var ce=f.baseState;S=0,oe=ee=B=null,v=h;do{var ne=v.lane&-536870913,re=ne!==v.lane;if(re?(ot&ne)===ne:(o&ne)===ne){ne!==0&&ne===Au&&(Oh=!0),oe!==null&&(oe=oe.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var ze=n,Be=v;ne=a;var Nt=u;switch(Be.tag){case 1:if(ze=Be.payload,typeof ze=="function"){ce=ze.call(Nt,ce,ne);break e}ce=ze;break e;case 3:ze.flags=ze.flags&-65537|128;case 0:if(ze=Be.payload,ne=typeof ze=="function"?ze.call(Nt,ce,ne):ze,ne==null)break e;ce=b({},ce,ne);break e;case 2:ka=!0}}ne=v.callback,ne!==null&&(n.flags|=64,re&&(n.flags|=8192),re=f.callbacks,re===null?f.callbacks=[ne]:re.push(ne))}else re={lane:ne,tag:v.tag,payload:v.payload,callback:v.callback,next:null},oe===null?(ee=oe=re,B=ce):oe=oe.next=re,S|=ne;if(v=v.next,v===null){if(v=f.shared.pending,v===null)break;re=v,v=re.next,re.next=null,f.lastBaseUpdate=re,f.shared.pending=null}}while(!0);oe===null&&(B=ce),f.baseState=B,f.firstBaseUpdate=ee,f.lastBaseUpdate=oe,h===null&&(f.shared.lanes=0),Ya|=S,n.lanes=S,n.memoizedState=ce}}function tT(n,a){if(typeof n!="function")throw Error(i(191,n));n.call(a)}function nT(n,a){var u=n.callbacks;if(u!==null)for(n.callbacks=null,n=0;n<u.length;n++)tT(u[n],a)}var xu=J(null),Cc=J(0);function rT(n,a){n=ga,O(Cc,n),O(xu,a),ga=n|a.baseLanes}function Ih(){O(Cc,ga),O(xu,xu.current)}function Dh(){ga=Cc.current,fe(xu),fe(Cc)}var wa=0,Ze=null,vt=null,an=null,Ac=!1,vu=!1,vi=!1,_c=0,bo=0,Ru=null,qM=0;function Qt(){throw Error(i(321))}function kh(n,a){if(a===null)return!1;for(var u=0;u<a.length&&u<n.length;u++)if(!Jn(n[u],a[u]))return!1;return!0}function Lh(n,a,u,o,f,h){return wa=h,Ze=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,H.H=n===null||n.memoizedState===null?FT:zT,vi=!1,h=u(o,f),vi=!1,vu&&(h=iT(a,u,o,f)),aT(n),h}function aT(n){H.H=Ic;var a=vt!==null&&vt.next!==null;if(wa=0,an=vt=Ze=null,Ac=!1,bo=0,Ru=null,a)throw Error(i(300));n===null||hn||(n=n.dependencies,n!==null&&bc(n)&&(hn=!0))}function iT(n,a,u,o){Ze=n;var f=0;do{if(vu&&(Ru=null),bo=0,vu=!1,25<=f)throw Error(i(301));if(f+=1,an=vt=null,n.updateQueue!=null){var h=n.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}H.H=WM,h=a(u,o)}while(vu);return h}function VM(){var n=H.H,a=n.useState()[0];return a=typeof a.then=="function"?Eo(a):a,n=n.useState()[0],(vt!==null?vt.memoizedState:null)!==n&&(Ze.flags|=1024),a}function Mh(){var n=_c!==0;return _c=0,n}function wh(n,a,u){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~u}function Bh(n){if(Ac){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}Ac=!1}wa=0,an=vt=Ze=null,vu=!1,bo=_c=0,Ru=null}function jn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return an===null?Ze.memoizedState=an=n:an=an.next=n,an}function un(){if(vt===null){var n=Ze.alternate;n=n!==null?n.memoizedState:null}else n=vt.next;var a=an===null?Ze.memoizedState:an.next;if(a!==null)an=a,vt=n;else{if(n===null)throw Ze.alternate===null?Error(i(467)):Error(i(310));vt=n,n={memoizedState:vt.memoizedState,baseState:vt.baseState,baseQueue:vt.baseQueue,queue:vt.queue,next:null},an===null?Ze.memoizedState=an=n:an=an.next=n}return an}function Ph(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Eo(n){var a=bo;return bo+=1,Ru===null&&(Ru=[]),n=Zy(Ru,n,a),a=Ze,(an===null?a.memoizedState:an.next)===null&&(a=a.alternate,H.H=a===null||a.memoizedState===null?FT:zT),n}function xc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Eo(n);if(n.$$typeof===M)return Nn(n)}throw Error(i(438,String(n)))}function Uh(n){var a=null,u=Ze.updateQueue;if(u!==null&&(a=u.memoCache),a==null){var o=Ze.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(a={data:o.data.map(function(f){return f.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),u===null&&(u=Ph(),Ze.updateQueue=u),u.memoCache=a,u=a.data[a.index],u===void 0)for(u=a.data[a.index]=Array(n),o=0;o<n;o++)u[o]=_;return a.index++,u}function ca(n,a){return typeof a=="function"?a(n):a}function vc(n){var a=un();return Hh(a,vt,n)}function Hh(n,a,u){var o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=u;var f=n.baseQueue,h=o.pending;if(h!==null){if(f!==null){var S=f.next;f.next=h.next,h.next=S}a.baseQueue=f=h,o.pending=null}if(h=n.baseState,f===null)n.memoizedState=h;else{a=f.next;var v=S=null,B=null,ee=a,oe=!1;do{var ce=ee.lane&-536870913;if(ce!==ee.lane?(ot&ce)===ce:(wa&ce)===ce){var ne=ee.revertLane;if(ne===0)B!==null&&(B=B.next={lane:0,revertLane:0,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),ce===Au&&(oe=!0);else if((wa&ne)===ne){ee=ee.next,ne===Au&&(oe=!0);continue}else ce={lane:0,revertLane:ee.revertLane,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},B===null?(v=B=ce,S=h):B=B.next=ce,Ze.lanes|=ne,Ya|=ne;ce=ee.action,vi&&u(h,ce),h=ee.hasEagerState?ee.eagerState:u(h,ce)}else ne={lane:ce,revertLane:ee.revertLane,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},B===null?(v=B=ne,S=h):B=B.next=ne,Ze.lanes|=ce,Ya|=ce;ee=ee.next}while(ee!==null&&ee!==a);if(B===null?S=h:B.next=v,!Jn(h,n.memoizedState)&&(hn=!0,oe&&(u=_u,u!==null)))throw u;n.memoizedState=h,n.baseState=S,n.baseQueue=B,o.lastRenderedState=h}return f===null&&(o.lanes=0),[n.memoizedState,o.dispatch]}function Fh(n){var a=un(),u=a.queue;if(u===null)throw Error(i(311));u.lastRenderedReducer=n;var o=u.dispatch,f=u.pending,h=a.memoizedState;if(f!==null){u.pending=null;var S=f=f.next;do h=n(h,S.action),S=S.next;while(S!==f);Jn(h,a.memoizedState)||(hn=!0),a.memoizedState=h,a.baseQueue===null&&(a.baseState=h),u.lastRenderedState=h}return[h,o]}function uT(n,a,u){var o=Ze,f=un(),h=gt;if(h){if(u===void 0)throw Error(i(407));u=u()}else u=a();var S=!Jn((vt||f).memoizedState,u);S&&(f.memoizedState=u,hn=!0),f=f.queue;var v=sT.bind(null,o,f,n);if(yo(2048,8,v,[n]),f.getSnapshot!==a||S||an!==null&&an.memoizedState.tag&1){if(o.flags|=2048,Nu(9,Rc(),oT.bind(null,o,f,u,a),null),Ut===null)throw Error(i(349));h||(wa&124)!==0||lT(o,a,u)}return u}function lT(n,a,u){n.flags|=16384,n={getSnapshot:a,value:u},a=Ze.updateQueue,a===null?(a=Ph(),Ze.updateQueue=a,a.stores=[n]):(u=a.stores,u===null?a.stores=[n]:u.push(n))}function oT(n,a,u,o){a.value=u,a.getSnapshot=o,cT(a)&&fT(n)}function sT(n,a,u){return u(function(){cT(a)&&fT(n)})}function cT(n){var a=n.getSnapshot;n=n.value;try{var u=a();return!Jn(n,u)}catch{return!0}}function fT(n){var a=yu(n,2);a!==null&&ir(a,n,2)}function zh(n){var a=jn();if(typeof n=="function"){var u=n;if(n=u(),vi){Ce(!0);try{u()}finally{Ce(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:n},a}function dT(n,a,u,o){return n.baseState=u,Hh(n,vt,typeof o=="function"?o:ca)}function GM(n,a,u,o,f){if(Oc(n))throw Error(i(485));if(n=a.action,n!==null){var h={payload:f,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){h.listeners.push(S)}};H.T!==null?u(!0):h.isTransition=!1,o(h),u=a.pending,u===null?(h.next=a.pending=h,hT(a,h)):(h.next=u.next,a.pending=u.next=h)}}function hT(n,a){var u=a.action,o=a.payload,f=n.state;if(a.isTransition){var h=H.T,S={};H.T=S;try{var v=u(f,o),B=H.S;B!==null&&B(S,v),pT(n,a,v)}catch(ee){Yh(n,a,ee)}finally{H.T=h}}else try{h=u(f,o),pT(n,a,h)}catch(ee){Yh(n,a,ee)}}function pT(n,a,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(o){mT(n,a,o)},function(o){return Yh(n,a,o)}):mT(n,a,u)}function mT(n,a,u){a.status="fulfilled",a.value=u,gT(a),n.state=u,a=n.pending,a!==null&&(u=a.next,u===a?n.pending=null:(u=u.next,a.next=u,hT(n,u)))}function Yh(n,a,u){var o=n.pending;if(n.pending=null,o!==null){o=o.next;do a.status="rejected",a.reason=u,gT(a),a=a.next;while(a!==o)}n.action=null}function gT(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function bT(n,a){return a}function ET(n,a){if(gt){var u=Ut.formState;if(u!==null){e:{var o=Ze;if(gt){if(Vt){t:{for(var f=Vt,h=qr;f.nodeType!==8;){if(!h){f=null;break t}if(f=Nr(f.nextSibling),f===null){f=null;break t}}h=f.data,f=h==="F!"||h==="F"?f:null}if(f){Vt=Nr(f.nextSibling),o=f.data==="F!";break e}}Ci(o)}o=!1}o&&(a=u[0])}}return u=jn(),u.memoizedState=u.baseState=a,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bT,lastRenderedState:a},u.queue=o,u=PT.bind(null,Ze,o),o.dispatch=u,o=zh(!1),h=$h.bind(null,Ze,!1,o.queue),o=jn(),f={state:a,dispatch:null,action:n,pending:null},o.queue=f,u=GM.bind(null,Ze,f,h,u),f.dispatch=u,o.memoizedState=n,[a,u,!1]}function yT(n){var a=un();return TT(a,vt,n)}function TT(n,a,u){if(a=Hh(n,a,bT)[0],n=vc(ca)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var o=Eo(a)}catch(S){throw S===fo?Tc:S}else o=a;a=un();var f=a.queue,h=f.dispatch;return u!==a.memoizedState&&(Ze.flags|=2048,Nu(9,Rc(),$M.bind(null,f,u),null)),[o,h,n]}function $M(n,a){n.action=a}function ST(n){var a=un(),u=vt;if(u!==null)return TT(a,u,n);un(),a=a.memoizedState,u=un();var o=u.queue.dispatch;return u.memoizedState=n,[a,o,!1]}function Nu(n,a,u,o){return n={tag:n,create:u,deps:o,inst:a,next:null},a=Ze.updateQueue,a===null&&(a=Ph(),Ze.updateQueue=a),u=a.lastEffect,u===null?a.lastEffect=n.next=n:(o=u.next,u.next=n,n.next=o,a.lastEffect=n),n}function Rc(){return{destroy:void 0,resource:void 0}}function CT(){return un().memoizedState}function Nc(n,a,u,o){var f=jn();o=o===void 0?null:o,Ze.flags|=n,f.memoizedState=Nu(1|a,Rc(),u,o)}function yo(n,a,u,o){var f=un();o=o===void 0?null:o;var h=f.memoizedState.inst;vt!==null&&o!==null&&kh(o,vt.memoizedState.deps)?f.memoizedState=Nu(a,h,u,o):(Ze.flags|=n,f.memoizedState=Nu(1|a,h,u,o))}function AT(n,a){Nc(8390656,8,n,a)}function _T(n,a){yo(2048,8,n,a)}function xT(n,a){return yo(4,2,n,a)}function vT(n,a){return yo(4,4,n,a)}function RT(n,a){if(typeof a=="function"){n=n();var u=a(n);return function(){typeof u=="function"?u():a(null)}}if(a!=null)return n=n(),a.current=n,function(){a.current=null}}function NT(n,a,u){u=u!=null?u.concat([n]):null,yo(4,4,RT.bind(null,a,n),u)}function jh(){}function OT(n,a){var u=un();a=a===void 0?null:a;var o=u.memoizedState;return a!==null&&kh(a,o[1])?o[0]:(u.memoizedState=[n,a],n)}function IT(n,a){var u=un();a=a===void 0?null:a;var o=u.memoizedState;if(a!==null&&kh(a,o[1]))return o[0];if(o=n(),vi){Ce(!0);try{n()}finally{Ce(!1)}}return u.memoizedState=[o,a],o}function qh(n,a,u){return u===void 0||(wa&1073741824)!==0?n.memoizedState=a:(n.memoizedState=u,n=L3(),Ze.lanes|=n,Ya|=n,u)}function DT(n,a,u,o){return Jn(u,a)?u:xu.current!==null?(n=qh(n,u,o),Jn(n,a)||(hn=!0),n):(wa&42)===0?(hn=!0,n.memoizedState=u):(n=L3(),Ze.lanes|=n,Ya|=n,a)}function kT(n,a,u,o,f){var h=Q.p;Q.p=h!==0&&8>h?h:8;var S=H.T,v={};H.T=v,$h(n,!1,a,u);try{var B=f(),ee=H.S;if(ee!==null&&ee(v,B),B!==null&&typeof B=="object"&&typeof B.then=="function"){var oe=jM(B,o);To(n,a,oe,ar(n))}else To(n,a,o,ar(n))}catch(ce){To(n,a,{then:function(){},status:"rejected",reason:ce},ar())}finally{Q.p=h,H.T=S}}function XM(){}function Vh(n,a,u,o){if(n.tag!==5)throw Error(i(476));var f=LT(n).queue;kT(n,f,a,ie,u===null?XM:function(){return MT(n),u(o)})}function LT(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:ie},next:null};var u={};return a.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:u},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function MT(n){var a=LT(n).next.queue;To(n,a,{},ar())}function Gh(){return Nn(Uo)}function wT(){return un().memoizedState}function BT(){return un().memoizedState}function QM(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var u=ar();n=La(u);var o=Ma(a,n,u);o!==null&&(ir(o,a,u),po(o,a,u)),a={cache:Ch()},n.payload=a;return}a=a.return}}function KM(n,a,u){var o=ar();u={lane:o,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null},Oc(n)?UT(a,u):(u=dh(n,a,u,o),u!==null&&(ir(u,n,o),HT(u,a,o)))}function PT(n,a,u){var o=ar();To(n,a,u,o)}function To(n,a,u,o){var f={lane:o,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};if(Oc(n))UT(a,f);else{var h=n.alternate;if(n.lanes===0&&(h===null||h.lanes===0)&&(h=a.lastRenderedReducer,h!==null))try{var S=a.lastRenderedState,v=h(S,u);if(f.hasEagerState=!0,f.eagerState=v,Jn(v,S))return dc(n,a,f,0),Ut===null&&fc(),!1}catch{}finally{}if(u=dh(n,a,f,o),u!==null)return ir(u,n,o),HT(u,a,o),!0}return!1}function $h(n,a,u,o){if(o={lane:2,revertLane:xp(),action:o,hasEagerState:!1,eagerState:null,next:null},Oc(n)){if(a)throw Error(i(479))}else a=dh(n,u,o,2),a!==null&&ir(a,n,2)}function Oc(n){var a=n.alternate;return n===Ze||a!==null&&a===Ze}function UT(n,a){vu=Ac=!0;var u=n.pending;u===null?a.next=a:(a.next=u.next,u.next=a),n.pending=a}function HT(n,a,u){if((u&4194048)!==0){var o=a.lanes;o&=n.pendingLanes,u|=o,a.lanes=u,Zs(n,u)}}var Ic={readContext:Nn,use:xc,useCallback:Qt,useContext:Qt,useEffect:Qt,useImperativeHandle:Qt,useLayoutEffect:Qt,useInsertionEffect:Qt,useMemo:Qt,useReducer:Qt,useRef:Qt,useState:Qt,useDebugValue:Qt,useDeferredValue:Qt,useTransition:Qt,useSyncExternalStore:Qt,useId:Qt,useHostTransitionStatus:Qt,useFormState:Qt,useActionState:Qt,useOptimistic:Qt,useMemoCache:Qt,useCacheRefresh:Qt},FT={readContext:Nn,use:xc,useCallback:function(n,a){return jn().memoizedState=[n,a===void 0?null:a],n},useContext:Nn,useEffect:AT,useImperativeHandle:function(n,a,u){u=u!=null?u.concat([n]):null,Nc(4194308,4,RT.bind(null,a,n),u)},useLayoutEffect:function(n,a){return Nc(4194308,4,n,a)},useInsertionEffect:function(n,a){Nc(4,2,n,a)},useMemo:function(n,a){var u=jn();a=a===void 0?null:a;var o=n();if(vi){Ce(!0);try{n()}finally{Ce(!1)}}return u.memoizedState=[o,a],o},useReducer:function(n,a,u){var o=jn();if(u!==void 0){var f=u(a);if(vi){Ce(!0);try{u(a)}finally{Ce(!1)}}}else f=a;return o.memoizedState=o.baseState=f,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:f},o.queue=n,n=n.dispatch=KM.bind(null,Ze,n),[o.memoizedState,n]},useRef:function(n){var a=jn();return n={current:n},a.memoizedState=n},useState:function(n){n=zh(n);var a=n.queue,u=PT.bind(null,Ze,a);return a.dispatch=u,[n.memoizedState,u]},useDebugValue:jh,useDeferredValue:function(n,a){var u=jn();return qh(u,n,a)},useTransition:function(){var n=zh(!1);return n=kT.bind(null,Ze,n.queue,!0,!1),jn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,u){var o=Ze,f=jn();if(gt){if(u===void 0)throw Error(i(407));u=u()}else{if(u=a(),Ut===null)throw Error(i(349));(ot&124)!==0||lT(o,a,u)}f.memoizedState=u;var h={value:u,getSnapshot:a};return f.queue=h,AT(sT.bind(null,o,h,n),[n]),o.flags|=2048,Nu(9,Rc(),oT.bind(null,o,h,u,a),null),u},useId:function(){var n=jn(),a=Ut.identifierPrefix;if(gt){var u=la,o=ua;u=(o&~(1<<32-Ae(o)-1)).toString(32)+u,a="«"+a+"R"+u,u=_c++,0<u&&(a+="H"+u.toString(32)),a+="»"}else u=qM++,a="«"+a+"r"+u.toString(32)+"»";return n.memoizedState=a},useHostTransitionStatus:Gh,useFormState:ET,useActionState:ET,useOptimistic:function(n){var a=jn();a.memoizedState=a.baseState=n;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=u,a=$h.bind(null,Ze,!0,u),u.dispatch=a,[n,a]},useMemoCache:Uh,useCacheRefresh:function(){return jn().memoizedState=QM.bind(null,Ze)}},zT={readContext:Nn,use:xc,useCallback:OT,useContext:Nn,useEffect:_T,useImperativeHandle:NT,useInsertionEffect:xT,useLayoutEffect:vT,useMemo:IT,useReducer:vc,useRef:CT,useState:function(){return vc(ca)},useDebugValue:jh,useDeferredValue:function(n,a){var u=un();return DT(u,vt.memoizedState,n,a)},useTransition:function(){var n=vc(ca)[0],a=un().memoizedState;return[typeof n=="boolean"?n:Eo(n),a]},useSyncExternalStore:uT,useId:wT,useHostTransitionStatus:Gh,useFormState:yT,useActionState:yT,useOptimistic:function(n,a){var u=un();return dT(u,vt,n,a)},useMemoCache:Uh,useCacheRefresh:BT},WM={readContext:Nn,use:xc,useCallback:OT,useContext:Nn,useEffect:_T,useImperativeHandle:NT,useInsertionEffect:xT,useLayoutEffect:vT,useMemo:IT,useReducer:Fh,useRef:CT,useState:function(){return Fh(ca)},useDebugValue:jh,useDeferredValue:function(n,a){var u=un();return vt===null?qh(u,n,a):DT(u,vt.memoizedState,n,a)},useTransition:function(){var n=Fh(ca)[0],a=un().memoizedState;return[typeof n=="boolean"?n:Eo(n),a]},useSyncExternalStore:uT,useId:wT,useHostTransitionStatus:Gh,useFormState:ST,useActionState:ST,useOptimistic:function(n,a){var u=un();return vt!==null?dT(u,vt,n,a):(u.baseState=n,[n,u.queue.dispatch])},useMemoCache:Uh,useCacheRefresh:BT},Ou=null,So=0;function Dc(n){var a=So;return So+=1,Ou===null&&(Ou=[]),Zy(Ou,n,a)}function Co(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function kc(n,a){throw a.$$typeof===E?Error(i(525)):(n=Object.prototype.toString.call(a),Error(i(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function YT(n){var a=n._init;return a(n._payload)}function jT(n){function a(V,F){if(n){var K=V.deletions;K===null?(V.deletions=[F],V.flags|=16):K.push(F)}}function u(V,F){if(!n)return null;for(;F!==null;)a(V,F),F=F.sibling;return null}function o(V){for(var F=new Map;V!==null;)V.key!==null?F.set(V.key,V):F.set(V.index,V),V=V.sibling;return F}function f(V,F){return V=ia(V,F),V.index=0,V.sibling=null,V}function h(V,F,K){return V.index=K,n?(K=V.alternate,K!==null?(K=K.index,K<F?(V.flags|=67108866,F):K):(V.flags|=67108866,F)):(V.flags|=1048576,F)}function S(V){return n&&V.alternate===null&&(V.flags|=67108866),V}function v(V,F,K,se){return F===null||F.tag!==6?(F=ph(K,V.mode,se),F.return=V,F):(F=f(F,K),F.return=V,F)}function B(V,F,K,se){var ve=K.type;return ve===R?oe(V,F,K.props.children,se,K.key):F!==null&&(F.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===j&&YT(ve)===F.type)?(F=f(F,K.props),Co(F,K),F.return=V,F):(F=pc(K.type,K.key,K.props,null,V.mode,se),Co(F,K),F.return=V,F)}function ee(V,F,K,se){return F===null||F.tag!==4||F.stateNode.containerInfo!==K.containerInfo||F.stateNode.implementation!==K.implementation?(F=mh(K,V.mode,se),F.return=V,F):(F=f(F,K.children||[]),F.return=V,F)}function oe(V,F,K,se,ve){return F===null||F.tag!==7?(F=Ei(K,V.mode,se,ve),F.return=V,F):(F=f(F,K),F.return=V,F)}function ce(V,F,K){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return F=ph(""+F,V.mode,K),F.return=V,F;if(typeof F=="object"&&F!==null){switch(F.$$typeof){case T:return K=pc(F.type,F.key,F.props,null,V.mode,K),Co(K,F),K.return=V,K;case y:return F=mh(F,V.mode,K),F.return=V,F;case j:var se=F._init;return F=se(F._payload),ce(V,F,K)}if(te(F)||$(F))return F=Ei(F,V.mode,K,null),F.return=V,F;if(typeof F.then=="function")return ce(V,Dc(F),K);if(F.$$typeof===M)return ce(V,Ec(V,F),K);kc(V,F)}return null}function ne(V,F,K,se){var ve=F!==null?F.key:null;if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return ve!==null?null:v(V,F,""+K,se);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case T:return K.key===ve?B(V,F,K,se):null;case y:return K.key===ve?ee(V,F,K,se):null;case j:return ve=K._init,K=ve(K._payload),ne(V,F,K,se)}if(te(K)||$(K))return ve!==null?null:oe(V,F,K,se,null);if(typeof K.then=="function")return ne(V,F,Dc(K),se);if(K.$$typeof===M)return ne(V,F,Ec(V,K),se);kc(V,K)}return null}function re(V,F,K,se,ve){if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return V=V.get(K)||null,v(F,V,""+se,ve);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case T:return V=V.get(se.key===null?K:se.key)||null,B(F,V,se,ve);case y:return V=V.get(se.key===null?K:se.key)||null,ee(F,V,se,ve);case j:var et=se._init;return se=et(se._payload),re(V,F,K,se,ve)}if(te(se)||$(se))return V=V.get(K)||null,oe(F,V,se,ve,null);if(typeof se.then=="function")return re(V,F,K,Dc(se),ve);if(se.$$typeof===M)return re(V,F,K,Ec(F,se),ve);kc(F,se)}return null}function ze(V,F,K,se){for(var ve=null,et=null,De=F,Ue=F=0,mn=null;De!==null&&Ue<K.length;Ue++){De.index>Ue?(mn=De,De=null):mn=De.sibling;var ft=ne(V,De,K[Ue],se);if(ft===null){De===null&&(De=mn);break}n&&De&&ft.alternate===null&&a(V,De),F=h(ft,F,Ue),et===null?ve=ft:et.sibling=ft,et=ft,De=mn}if(Ue===K.length)return u(V,De),gt&&Ti(V,Ue),ve;if(De===null){for(;Ue<K.length;Ue++)De=ce(V,K[Ue],se),De!==null&&(F=h(De,F,Ue),et===null?ve=De:et.sibling=De,et=De);return gt&&Ti(V,Ue),ve}for(De=o(De);Ue<K.length;Ue++)mn=re(De,V,Ue,K[Ue],se),mn!==null&&(n&&mn.alternate!==null&&De.delete(mn.key===null?Ue:mn.key),F=h(mn,F,Ue),et===null?ve=mn:et.sibling=mn,et=mn);return n&&De.forEach(function(Wa){return a(V,Wa)}),gt&&Ti(V,Ue),ve}function Be(V,F,K,se){if(K==null)throw Error(i(151));for(var ve=null,et=null,De=F,Ue=F=0,mn=null,ft=K.next();De!==null&&!ft.done;Ue++,ft=K.next()){De.index>Ue?(mn=De,De=null):mn=De.sibling;var Wa=ne(V,De,ft.value,se);if(Wa===null){De===null&&(De=mn);break}n&&De&&Wa.alternate===null&&a(V,De),F=h(Wa,F,Ue),et===null?ve=Wa:et.sibling=Wa,et=Wa,De=mn}if(ft.done)return u(V,De),gt&&Ti(V,Ue),ve;if(De===null){for(;!ft.done;Ue++,ft=K.next())ft=ce(V,ft.value,se),ft!==null&&(F=h(ft,F,Ue),et===null?ve=ft:et.sibling=ft,et=ft);return gt&&Ti(V,Ue),ve}for(De=o(De);!ft.done;Ue++,ft=K.next())ft=re(De,V,Ue,ft.value,se),ft!==null&&(n&&ft.alternate!==null&&De.delete(ft.key===null?Ue:ft.key),F=h(ft,F,Ue),et===null?ve=ft:et.sibling=ft,et=ft);return n&&De.forEach(function(Zw){return a(V,Zw)}),gt&&Ti(V,Ue),ve}function Nt(V,F,K,se){if(typeof K=="object"&&K!==null&&K.type===R&&K.key===null&&(K=K.props.children),typeof K=="object"&&K!==null){switch(K.$$typeof){case T:e:{for(var ve=K.key;F!==null;){if(F.key===ve){if(ve=K.type,ve===R){if(F.tag===7){u(V,F.sibling),se=f(F,K.props.children),se.return=V,V=se;break e}}else if(F.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===j&&YT(ve)===F.type){u(V,F.sibling),se=f(F,K.props),Co(se,K),se.return=V,V=se;break e}u(V,F);break}else a(V,F);F=F.sibling}K.type===R?(se=Ei(K.props.children,V.mode,se,K.key),se.return=V,V=se):(se=pc(K.type,K.key,K.props,null,V.mode,se),Co(se,K),se.return=V,V=se)}return S(V);case y:e:{for(ve=K.key;F!==null;){if(F.key===ve)if(F.tag===4&&F.stateNode.containerInfo===K.containerInfo&&F.stateNode.implementation===K.implementation){u(V,F.sibling),se=f(F,K.children||[]),se.return=V,V=se;break e}else{u(V,F);break}else a(V,F);F=F.sibling}se=mh(K,V.mode,se),se.return=V,V=se}return S(V);case j:return ve=K._init,K=ve(K._payload),Nt(V,F,K,se)}if(te(K))return ze(V,F,K,se);if($(K)){if(ve=$(K),typeof ve!="function")throw Error(i(150));return K=ve.call(K),Be(V,F,K,se)}if(typeof K.then=="function")return Nt(V,F,Dc(K),se);if(K.$$typeof===M)return Nt(V,F,Ec(V,K),se);kc(V,K)}return typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint"?(K=""+K,F!==null&&F.tag===6?(u(V,F.sibling),se=f(F,K),se.return=V,V=se):(u(V,F),se=ph(K,V.mode,se),se.return=V,V=se),S(V)):u(V,F)}return function(V,F,K,se){try{So=0;var ve=Nt(V,F,K,se);return Ou=null,ve}catch(De){if(De===fo||De===Tc)throw De;var et=er(29,De,null,V.mode);return et.lanes=se,et.return=V,et}finally{}}}var Iu=jT(!0),qT=jT(!1),Sr=J(null),Vr=null;function Ba(n){var a=n.alternate;O(on,on.current&1),O(Sr,n),Vr===null&&(a===null||xu.current!==null||a.memoizedState!==null)&&(Vr=n)}function VT(n){if(n.tag===22){if(O(on,on.current),O(Sr,n),Vr===null){var a=n.alternate;a!==null&&a.memoizedState!==null&&(Vr=n)}}else Pa()}function Pa(){O(on,on.current),O(Sr,Sr.current)}function fa(n){fe(Sr),Vr===n&&(Vr=null),fe(on)}var on=J(0);function Lc(n){for(var a=n;a!==null;){if(a.tag===13){var u=a.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||Pp(u)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function Xh(n,a,u,o){a=n.memoizedState,u=u(o,a),u=u==null?a:b({},a,u),n.memoizedState=u,n.lanes===0&&(n.updateQueue.baseState=u)}var Qh={enqueueSetState:function(n,a,u){n=n._reactInternals;var o=ar(),f=La(o);f.payload=a,u!=null&&(f.callback=u),a=Ma(n,f,o),a!==null&&(ir(a,n,o),po(a,n,o))},enqueueReplaceState:function(n,a,u){n=n._reactInternals;var o=ar(),f=La(o);f.tag=1,f.payload=a,u!=null&&(f.callback=u),a=Ma(n,f,o),a!==null&&(ir(a,n,o),po(a,n,o))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var u=ar(),o=La(u);o.tag=2,a!=null&&(o.callback=a),a=Ma(n,o,u),a!==null&&(ir(a,n,u),po(a,n,u))}};function GT(n,a,u,o,f,h,S){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(o,h,S):a.prototype&&a.prototype.isPureReactComponent?!ro(u,o)||!ro(f,h):!0}function $T(n,a,u,o){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(u,o),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(u,o),a.state!==n&&Qh.enqueueReplaceState(a,a.state,null)}function Ri(n,a){var u=a;if("ref"in a){u={};for(var o in a)o!=="ref"&&(u[o]=a[o])}if(n=n.defaultProps){u===a&&(u=b({},u));for(var f in n)u[f]===void 0&&(u[f]=n[f])}return u}var Mc=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)};function XT(n){Mc(n)}function QT(n){console.error(n)}function KT(n){Mc(n)}function wc(n,a){try{var u=n.onUncaughtError;u(a.value,{componentStack:a.stack})}catch(o){setTimeout(function(){throw o})}}function WT(n,a,u){try{var o=n.onCaughtError;o(u.value,{componentStack:u.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Kh(n,a,u){return u=La(u),u.tag=3,u.payload={element:null},u.callback=function(){wc(n,a)},u}function ZT(n){return n=La(n),n.tag=3,n}function JT(n,a,u,o){var f=u.type.getDerivedStateFromError;if(typeof f=="function"){var h=o.value;n.payload=function(){return f(h)},n.callback=function(){WT(a,u,o)}}var S=u.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(n.callback=function(){WT(a,u,o),typeof f!="function"&&(ja===null?ja=new Set([this]):ja.add(this));var v=o.stack;this.componentDidCatch(o.value,{componentStack:v!==null?v:""})})}function ZM(n,a,u,o,f){if(u.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(a=u.alternate,a!==null&&oo(a,u,f,!0),u=Sr.current,u!==null){switch(u.tag){case 13:return Vr===null?Tp():u.alternate===null&&Gt===0&&(Gt=3),u.flags&=-257,u.flags|=65536,u.lanes=f,o===xh?u.flags|=16384:(a=u.updateQueue,a===null?u.updateQueue=new Set([o]):a.add(o),Cp(n,o,f)),!1;case 22:return u.flags|=65536,o===xh?u.flags|=16384:(a=u.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([o])},u.updateQueue=a):(u=a.retryQueue,u===null?a.retryQueue=new Set([o]):u.add(o)),Cp(n,o,f)),!1}throw Error(i(435,u.tag))}return Cp(n,o,f),Tp(),!1}if(gt)return a=Sr.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=f,o!==Eh&&(n=Error(i(422),{cause:o}),lo(br(n,u)))):(o!==Eh&&(a=Error(i(423),{cause:o}),lo(br(a,u))),n=n.current.alternate,n.flags|=65536,f&=-f,n.lanes|=f,o=br(o,u),f=Kh(n.stateNode,o,f),Nh(n,f),Gt!==4&&(Gt=2)),!1;var h=Error(i(520),{cause:o});if(h=br(h,u),Oo===null?Oo=[h]:Oo.push(h),Gt!==4&&(Gt=2),a===null)return!0;o=br(o,u),u=a;do{switch(u.tag){case 3:return u.flags|=65536,n=f&-f,u.lanes|=n,n=Kh(u.stateNode,o,n),Nh(u,n),!1;case 1:if(a=u.type,h=u.stateNode,(u.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(ja===null||!ja.has(h))))return u.flags|=65536,f&=-f,u.lanes|=f,f=ZT(f),JT(f,n,u,o),Nh(u,f),!1}u=u.return}while(u!==null);return!1}var e3=Error(i(461)),hn=!1;function En(n,a,u,o){a.child=n===null?qT(a,null,u,o):Iu(a,n.child,u,o)}function t3(n,a,u,o,f){u=u.render;var h=a.ref;if("ref"in o){var S={};for(var v in o)v!=="ref"&&(S[v]=o[v])}else S=o;return _i(a),o=Lh(n,a,u,S,h,f),v=Mh(),n!==null&&!hn?(wh(n,a,f),da(n,a,f)):(gt&&v&&gh(a),a.flags|=1,En(n,a,o,f),a.child)}function n3(n,a,u,o,f){if(n===null){var h=u.type;return typeof h=="function"&&!hh(h)&&h.defaultProps===void 0&&u.compare===null?(a.tag=15,a.type=h,r3(n,a,h,o,f)):(n=pc(u.type,null,o,a,a.mode,f),n.ref=a.ref,n.return=a,a.child=n)}if(h=n.child,!ap(n,f)){var S=h.memoizedProps;if(u=u.compare,u=u!==null?u:ro,u(S,o)&&n.ref===a.ref)return da(n,a,f)}return a.flags|=1,n=ia(h,o),n.ref=a.ref,n.return=a,a.child=n}function r3(n,a,u,o,f){if(n!==null){var h=n.memoizedProps;if(ro(h,o)&&n.ref===a.ref)if(hn=!1,a.pendingProps=o=h,ap(n,f))(n.flags&131072)!==0&&(hn=!0);else return a.lanes=n.lanes,da(n,a,f)}return Wh(n,a,u,o,f)}function a3(n,a,u){var o=a.pendingProps,f=o.children,h=n!==null?n.memoizedState:null;if(o.mode==="hidden"){if((a.flags&128)!==0){if(o=h!==null?h.baseLanes|u:u,n!==null){for(f=a.child=n.child,h=0;f!==null;)h=h|f.lanes|f.childLanes,f=f.sibling;a.childLanes=h&~o}else a.childLanes=0,a.child=null;return i3(n,a,o,u)}if((u&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&yc(a,h!==null?h.cachePool:null),h!==null?rT(a,h):Ih(),VT(a);else return a.lanes=a.childLanes=536870912,i3(n,a,h!==null?h.baseLanes|u:u,u)}else h!==null?(yc(a,h.cachePool),rT(a,h),Pa(),a.memoizedState=null):(n!==null&&yc(a,null),Ih(),Pa());return En(n,a,f,u),a.child}function i3(n,a,u,o){var f=_h();return f=f===null?null:{parent:ln._currentValue,pool:f},a.memoizedState={baseLanes:u,cachePool:f},n!==null&&yc(a,null),Ih(),VT(a),n!==null&&oo(n,a,o,!0),null}function Bc(n,a){var u=a.ref;if(u===null)n!==null&&n.ref!==null&&(a.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(i(284));(n===null||n.ref!==u)&&(a.flags|=4194816)}}function Wh(n,a,u,o,f){return _i(a),u=Lh(n,a,u,o,void 0,f),o=Mh(),n!==null&&!hn?(wh(n,a,f),da(n,a,f)):(gt&&o&&gh(a),a.flags|=1,En(n,a,u,f),a.child)}function u3(n,a,u,o,f,h){return _i(a),a.updateQueue=null,u=iT(a,o,u,f),aT(n),o=Mh(),n!==null&&!hn?(wh(n,a,h),da(n,a,h)):(gt&&o&&gh(a),a.flags|=1,En(n,a,u,h),a.child)}function l3(n,a,u,o,f){if(_i(a),a.stateNode===null){var h=Tu,S=u.contextType;typeof S=="object"&&S!==null&&(h=Nn(S)),h=new u(o,h),a.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Qh,a.stateNode=h,h._reactInternals=a,h=a.stateNode,h.props=o,h.state=a.memoizedState,h.refs={},vh(a),S=u.contextType,h.context=typeof S=="object"&&S!==null?Nn(S):Tu,h.state=a.memoizedState,S=u.getDerivedStateFromProps,typeof S=="function"&&(Xh(a,u,S,o),h.state=a.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(S=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),S!==h.state&&Qh.enqueueReplaceState(h,h.state,null),go(a,o,h,f),mo(),h.state=a.memoizedState),typeof h.componentDidMount=="function"&&(a.flags|=4194308),o=!0}else if(n===null){h=a.stateNode;var v=a.memoizedProps,B=Ri(u,v);h.props=B;var ee=h.context,oe=u.contextType;S=Tu,typeof oe=="object"&&oe!==null&&(S=Nn(oe));var ce=u.getDerivedStateFromProps;oe=typeof ce=="function"||typeof h.getSnapshotBeforeUpdate=="function",v=a.pendingProps!==v,oe||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(v||ee!==S)&&$T(a,h,o,S),ka=!1;var ne=a.memoizedState;h.state=ne,go(a,o,h,f),mo(),ee=a.memoizedState,v||ne!==ee||ka?(typeof ce=="function"&&(Xh(a,u,ce,o),ee=a.memoizedState),(B=ka||GT(a,u,B,o,ne,ee,S))?(oe||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(a.flags|=4194308)):(typeof h.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=o,a.memoizedState=ee),h.props=o,h.state=ee,h.context=S,o=B):(typeof h.componentDidMount=="function"&&(a.flags|=4194308),o=!1)}else{h=a.stateNode,Rh(n,a),S=a.memoizedProps,oe=Ri(u,S),h.props=oe,ce=a.pendingProps,ne=h.context,ee=u.contextType,B=Tu,typeof ee=="object"&&ee!==null&&(B=Nn(ee)),v=u.getDerivedStateFromProps,(ee=typeof v=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(S!==ce||ne!==B)&&$T(a,h,o,B),ka=!1,ne=a.memoizedState,h.state=ne,go(a,o,h,f),mo();var re=a.memoizedState;S!==ce||ne!==re||ka||n!==null&&n.dependencies!==null&&bc(n.dependencies)?(typeof v=="function"&&(Xh(a,u,v,o),re=a.memoizedState),(oe=ka||GT(a,u,oe,o,ne,re,B)||n!==null&&n.dependencies!==null&&bc(n.dependencies))?(ee||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(o,re,B),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(o,re,B)),typeof h.componentDidUpdate=="function"&&(a.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof h.componentDidUpdate!="function"||S===n.memoizedProps&&ne===n.memoizedState||(a.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||S===n.memoizedProps&&ne===n.memoizedState||(a.flags|=1024),a.memoizedProps=o,a.memoizedState=re),h.props=o,h.state=re,h.context=B,o=oe):(typeof h.componentDidUpdate!="function"||S===n.memoizedProps&&ne===n.memoizedState||(a.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||S===n.memoizedProps&&ne===n.memoizedState||(a.flags|=1024),o=!1)}return h=o,Bc(n,a),o=(a.flags&128)!==0,h||o?(h=a.stateNode,u=o&&typeof u.getDerivedStateFromError!="function"?null:h.render(),a.flags|=1,n!==null&&o?(a.child=Iu(a,n.child,null,f),a.child=Iu(a,null,u,f)):En(n,a,u,f),a.memoizedState=h.state,n=a.child):n=da(n,a,f),n}function o3(n,a,u,o){return uo(),a.flags|=256,En(n,a,u,o),a.child}var Zh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Jh(n){return{baseLanes:n,cachePool:Qy()}}function ep(n,a,u){return n=n!==null?n.childLanes&~u:0,a&&(n|=Cr),n}function s3(n,a,u){var o=a.pendingProps,f=!1,h=(a.flags&128)!==0,S;if((S=h)||(S=n!==null&&n.memoizedState===null?!1:(on.current&2)!==0),S&&(f=!0,a.flags&=-129),S=(a.flags&32)!==0,a.flags&=-33,n===null){if(gt){if(f?Ba(a):Pa(),gt){var v=Vt,B;if(B=v){e:{for(B=v,v=qr;B.nodeType!==8;){if(!v){v=null;break e}if(B=Nr(B.nextSibling),B===null){v=null;break e}}v=B}v!==null?(a.memoizedState={dehydrated:v,treeContext:yi!==null?{id:ua,overflow:la}:null,retryLane:536870912,hydrationErrors:null},B=er(18,null,null,0),B.stateNode=v,B.return=a,a.child=B,kn=a,Vt=null,B=!0):B=!1}B||Ci(a)}if(v=a.memoizedState,v!==null&&(v=v.dehydrated,v!==null))return Pp(v)?a.lanes=32:a.lanes=536870912,null;fa(a)}return v=o.children,o=o.fallback,f?(Pa(),f=a.mode,v=Pc({mode:"hidden",children:v},f),o=Ei(o,f,u,null),v.return=a,o.return=a,v.sibling=o,a.child=v,f=a.child,f.memoizedState=Jh(u),f.childLanes=ep(n,S,u),a.memoizedState=Zh,o):(Ba(a),tp(a,v))}if(B=n.memoizedState,B!==null&&(v=B.dehydrated,v!==null)){if(h)a.flags&256?(Ba(a),a.flags&=-257,a=np(n,a,u)):a.memoizedState!==null?(Pa(),a.child=n.child,a.flags|=128,a=null):(Pa(),f=o.fallback,v=a.mode,o=Pc({mode:"visible",children:o.children},v),f=Ei(f,v,u,null),f.flags|=2,o.return=a,f.return=a,o.sibling=f,a.child=o,Iu(a,n.child,null,u),o=a.child,o.memoizedState=Jh(u),o.childLanes=ep(n,S,u),a.memoizedState=Zh,a=f);else if(Ba(a),Pp(v)){if(S=v.nextSibling&&v.nextSibling.dataset,S)var ee=S.dgst;S=ee,o=Error(i(419)),o.stack="",o.digest=S,lo({value:o,source:null,stack:null}),a=np(n,a,u)}else if(hn||oo(n,a,u,!1),S=(u&n.childLanes)!==0,hn||S){if(S=Ut,S!==null&&(o=u&-u,o=(o&42)!==0?1:Gl(o),o=(o&(S.suspendedLanes|u))!==0?0:o,o!==0&&o!==B.retryLane))throw B.retryLane=o,yu(n,o),ir(S,n,o),e3;v.data==="$?"||Tp(),a=np(n,a,u)}else v.data==="$?"?(a.flags|=192,a.child=n.child,a=null):(n=B.treeContext,Vt=Nr(v.nextSibling),kn=a,gt=!0,Si=null,qr=!1,n!==null&&(yr[Tr++]=ua,yr[Tr++]=la,yr[Tr++]=yi,ua=n.id,la=n.overflow,yi=a),a=tp(a,o.children),a.flags|=4096);return a}return f?(Pa(),f=o.fallback,v=a.mode,B=n.child,ee=B.sibling,o=ia(B,{mode:"hidden",children:o.children}),o.subtreeFlags=B.subtreeFlags&65011712,ee!==null?f=ia(ee,f):(f=Ei(f,v,u,null),f.flags|=2),f.return=a,o.return=a,o.sibling=f,a.child=o,o=f,f=a.child,v=n.child.memoizedState,v===null?v=Jh(u):(B=v.cachePool,B!==null?(ee=ln._currentValue,B=B.parent!==ee?{parent:ee,pool:ee}:B):B=Qy(),v={baseLanes:v.baseLanes|u,cachePool:B}),f.memoizedState=v,f.childLanes=ep(n,S,u),a.memoizedState=Zh,o):(Ba(a),u=n.child,n=u.sibling,u=ia(u,{mode:"visible",children:o.children}),u.return=a,u.sibling=null,n!==null&&(S=a.deletions,S===null?(a.deletions=[n],a.flags|=16):S.push(n)),a.child=u,a.memoizedState=null,u)}function tp(n,a){return a=Pc({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function Pc(n,a){return n=er(22,n,null,a),n.lanes=0,n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},n}function np(n,a,u){return Iu(a,n.child,null,u),n=tp(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function c3(n,a,u){n.lanes|=a;var o=n.alternate;o!==null&&(o.lanes|=a),Th(n.return,a,u)}function rp(n,a,u,o,f){var h=n.memoizedState;h===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:o,tail:u,tailMode:f}:(h.isBackwards=a,h.rendering=null,h.renderingStartTime=0,h.last=o,h.tail=u,h.tailMode=f)}function f3(n,a,u){var o=a.pendingProps,f=o.revealOrder,h=o.tail;if(En(n,a,o.children,u),o=on.current,(o&2)!==0)o=o&1|2,a.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&c3(n,u,a);else if(n.tag===19)c3(n,u,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}o&=1}switch(O(on,o),f){case"forwards":for(u=a.child,f=null;u!==null;)n=u.alternate,n!==null&&Lc(n)===null&&(f=u),u=u.sibling;u=f,u===null?(f=a.child,a.child=null):(f=u.sibling,u.sibling=null),rp(a,!1,f,u,h);break;case"backwards":for(u=null,f=a.child,a.child=null;f!==null;){if(n=f.alternate,n!==null&&Lc(n)===null){a.child=f;break}n=f.sibling,f.sibling=u,u=f,f=n}rp(a,!0,u,null,h);break;case"together":rp(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function da(n,a,u){if(n!==null&&(a.dependencies=n.dependencies),Ya|=a.lanes,(u&a.childLanes)===0)if(n!==null){if(oo(n,a,u,!1),(u&a.childLanes)===0)return null}else return null;if(n!==null&&a.child!==n.child)throw Error(i(153));if(a.child!==null){for(n=a.child,u=ia(n,n.pendingProps),a.child=u,u.return=a;n.sibling!==null;)n=n.sibling,u=u.sibling=ia(n,n.pendingProps),u.return=a;u.sibling=null}return a.child}function ap(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&bc(n)))}function JM(n,a,u){switch(a.tag){case 3:Me(a,a.stateNode.containerInfo),Da(a,ln,n.memoizedState.cache),uo();break;case 27:case 5:yt(a);break;case 4:Me(a,a.stateNode.containerInfo);break;case 10:Da(a,a.type,a.memoizedProps.value);break;case 13:var o=a.memoizedState;if(o!==null)return o.dehydrated!==null?(Ba(a),a.flags|=128,null):(u&a.child.childLanes)!==0?s3(n,a,u):(Ba(a),n=da(n,a,u),n!==null?n.sibling:null);Ba(a);break;case 19:var f=(n.flags&128)!==0;if(o=(u&a.childLanes)!==0,o||(oo(n,a,u,!1),o=(u&a.childLanes)!==0),f){if(o)return f3(n,a,u);a.flags|=128}if(f=a.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),O(on,on.current),o)break;return null;case 22:case 23:return a.lanes=0,a3(n,a,u);case 24:Da(a,ln,n.memoizedState.cache)}return da(n,a,u)}function d3(n,a,u){if(n!==null)if(n.memoizedProps!==a.pendingProps)hn=!0;else{if(!ap(n,u)&&(a.flags&128)===0)return hn=!1,JM(n,a,u);hn=(n.flags&131072)!==0}else hn=!1,gt&&(a.flags&1048576)!==0&&Yy(a,gc,a.index);switch(a.lanes=0,a.tag){case 16:e:{n=a.pendingProps;var o=a.elementType,f=o._init;if(o=f(o._payload),a.type=o,typeof o=="function")hh(o)?(n=Ri(o,n),a.tag=1,a=l3(null,a,o,n,u)):(a.tag=0,a=Wh(null,a,o,n,u));else{if(o!=null){if(f=o.$$typeof,f===P){a.tag=11,a=t3(null,a,o,n,u);break e}else if(f===Y){a.tag=14,a=n3(null,a,o,n,u);break e}}throw a=X(o)||o,Error(i(306,a,""))}}return a;case 0:return Wh(n,a,a.type,a.pendingProps,u);case 1:return o=a.type,f=Ri(o,a.pendingProps),l3(n,a,o,f,u);case 3:e:{if(Me(a,a.stateNode.containerInfo),n===null)throw Error(i(387));o=a.pendingProps;var h=a.memoizedState;f=h.element,Rh(n,a),go(a,o,null,u);var S=a.memoizedState;if(o=S.cache,Da(a,ln,o),o!==h.cache&&Sh(a,[ln],u,!0),mo(),o=S.element,h.isDehydrated)if(h={element:o,isDehydrated:!1,cache:S.cache},a.updateQueue.baseState=h,a.memoizedState=h,a.flags&256){a=o3(n,a,o,u);break e}else if(o!==f){f=br(Error(i(424)),a),lo(f),a=o3(n,a,o,u);break e}else{switch(n=a.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(Vt=Nr(n.firstChild),kn=a,gt=!0,Si=null,qr=!0,u=qT(a,null,o,u),a.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(uo(),o===f){a=da(n,a,u);break e}En(n,a,o,u)}a=a.child}return a;case 26:return Bc(n,a),n===null?(u=gS(a.type,null,a.pendingProps,null))?a.memoizedState=u:gt||(u=a.type,n=a.pendingProps,o=Wc(Ee.current).createElement(u),o[He]=a,o[qe]=n,Tn(o,u,n),dn(o),a.stateNode=o):a.memoizedState=gS(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return yt(a),n===null&>&&(o=a.stateNode=hS(a.type,a.pendingProps,Ee.current),kn=a,qr=!0,f=Vt,Ga(a.type)?(Up=f,Vt=Nr(o.firstChild)):Vt=f),En(n,a,a.pendingProps.children,u),Bc(n,a),n===null&&(a.flags|=4194304),a.child;case 5:return n===null&>&&((f=o=Vt)&&(o=Rw(o,a.type,a.pendingProps,qr),o!==null?(a.stateNode=o,kn=a,Vt=Nr(o.firstChild),qr=!1,f=!0):f=!1),f||Ci(a)),yt(a),f=a.type,h=a.pendingProps,S=n!==null?n.memoizedProps:null,o=h.children,Mp(f,h)?o=null:S!==null&&Mp(f,S)&&(a.flags|=32),a.memoizedState!==null&&(f=Lh(n,a,VM,null,null,u),Uo._currentValue=f),Bc(n,a),En(n,a,o,u),a.child;case 6:return n===null&>&&((n=u=Vt)&&(u=Nw(u,a.pendingProps,qr),u!==null?(a.stateNode=u,kn=a,Vt=null,n=!0):n=!1),n||Ci(a)),null;case 13:return s3(n,a,u);case 4:return Me(a,a.stateNode.containerInfo),o=a.pendingProps,n===null?a.child=Iu(a,null,o,u):En(n,a,o,u),a.child;case 11:return t3(n,a,a.type,a.pendingProps,u);case 7:return En(n,a,a.pendingProps,u),a.child;case 8:return En(n,a,a.pendingProps.children,u),a.child;case 12:return En(n,a,a.pendingProps.children,u),a.child;case 10:return o=a.pendingProps,Da(a,a.type,o.value),En(n,a,o.children,u),a.child;case 9:return f=a.type._context,o=a.pendingProps.children,_i(a),f=Nn(f),o=o(f),a.flags|=1,En(n,a,o,u),a.child;case 14:return n3(n,a,a.type,a.pendingProps,u);case 15:return r3(n,a,a.type,a.pendingProps,u);case 19:return f3(n,a,u);case 31:return o=a.pendingProps,u=a.mode,o={mode:o.mode,children:o.children},n===null?(u=Pc(o,u),u.ref=a.ref,a.child=u,u.return=a,a=u):(u=ia(n.child,o),u.ref=a.ref,a.child=u,u.return=a,a=u),a;case 22:return a3(n,a,u);case 24:return _i(a),o=Nn(ln),n===null?(f=_h(),f===null&&(f=Ut,h=Ch(),f.pooledCache=h,h.refCount++,h!==null&&(f.pooledCacheLanes|=u),f=h),a.memoizedState={parent:o,cache:f},vh(a),Da(a,ln,f)):((n.lanes&u)!==0&&(Rh(n,a),go(a,null,null,u),mo()),f=n.memoizedState,h=a.memoizedState,f.parent!==o?(f={parent:o,cache:o},a.memoizedState=f,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=f),Da(a,ln,o)):(o=h.cache,Da(a,ln,o),o!==f.cache&&Sh(a,[ln],u,!0))),En(n,a,a.pendingProps.children,u),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function ha(n){n.flags|=4}function h3(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!SS(a)){if(a=Sr.current,a!==null&&((ot&4194048)===ot?Vr!==null:(ot&62914560)!==ot&&(ot&536870912)===0||a!==Vr))throw ho=xh,Ky;n.flags|=8192}}function Uc(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?Ks():536870912,n.lanes|=a,Mu|=a)}function Ao(n,a){if(!gt)switch(n.tailMode){case"hidden":a=n.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?n.tail=null:u.sibling=null;break;case"collapsed":u=n.tail;for(var o=null;u!==null;)u.alternate!==null&&(o=u),u=u.sibling;o===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:o.sibling=null}}function Yt(n){var a=n.alternate!==null&&n.alternate.child===n.child,u=0,o=0;if(a)for(var f=n.child;f!==null;)u|=f.lanes|f.childLanes,o|=f.subtreeFlags&65011712,o|=f.flags&65011712,f.return=n,f=f.sibling;else for(f=n.child;f!==null;)u|=f.lanes|f.childLanes,o|=f.subtreeFlags,o|=f.flags,f.return=n,f=f.sibling;return n.subtreeFlags|=o,n.childLanes=u,a}function ew(n,a,u){var o=a.pendingProps;switch(bh(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yt(a),null;case 1:return Yt(a),null;case 3:return u=a.stateNode,o=null,n!==null&&(o=n.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),sa(ln),lt(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(n===null||n.child===null)&&(io(a)?ha(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Vy())),Yt(a),null;case 26:return u=a.memoizedState,n===null?(ha(a),u!==null?(Yt(a),h3(a,u)):(Yt(a),a.flags&=-16777217)):u?u!==n.memoizedState?(ha(a),Yt(a),h3(a,u)):(Yt(a),a.flags&=-16777217):(n.memoizedProps!==o&&ha(a),Yt(a),a.flags&=-16777217),null;case 27:Re(a),u=Ee.current;var f=a.type;if(n!==null&&a.stateNode!=null)n.memoizedProps!==o&&ha(a);else{if(!o){if(a.stateNode===null)throw Error(i(166));return Yt(a),null}n=be.current,io(a)?jy(a):(n=hS(f,o,u),a.stateNode=n,ha(a))}return Yt(a),null;case 5:if(Re(a),u=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==o&&ha(a);else{if(!o){if(a.stateNode===null)throw Error(i(166));return Yt(a),null}if(n=be.current,io(a))jy(a);else{switch(f=Wc(Ee.current),n){case 1:n=f.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:n=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":n=f.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":n=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":n=f.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof o.is=="string"?f.createElement("select",{is:o.is}):f.createElement("select"),o.multiple?n.multiple=!0:o.size&&(n.size=o.size);break;default:n=typeof o.is=="string"?f.createElement(u,{is:o.is}):f.createElement(u)}}n[He]=a,n[qe]=o;e:for(f=a.child;f!==null;){if(f.tag===5||f.tag===6)n.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===a)break e;for(;f.sibling===null;){if(f.return===null||f.return===a)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}a.stateNode=n;e:switch(Tn(n,u,o),u){case"button":case"input":case"select":case"textarea":n=!!o.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&ha(a)}}return Yt(a),a.flags&=-16777217,null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==o&&ha(a);else{if(typeof o!="string"&&a.stateNode===null)throw Error(i(166));if(n=Ee.current,io(a)){if(n=a.stateNode,u=a.memoizedProps,o=null,f=kn,f!==null)switch(f.tag){case 27:case 5:o=f.memoizedProps}n[He]=a,n=!!(n.nodeValue===u||o!==null&&o.suppressHydrationWarning===!0||uS(n.nodeValue,u)),n||Ci(a)}else n=Wc(n).createTextNode(o),n[He]=a,a.stateNode=n}return Yt(a),null;case 13:if(o=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(f=io(a),o!==null&&o.dehydrated!==null){if(n===null){if(!f)throw Error(i(318));if(f=a.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(i(317));f[He]=a}else uo(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Yt(a),f=!1}else f=Vy(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=f),f=!0;if(!f)return a.flags&256?(fa(a),a):(fa(a),null)}if(fa(a),(a.flags&128)!==0)return a.lanes=u,a;if(u=o!==null,n=n!==null&&n.memoizedState!==null,u){o=a.child,f=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(f=o.alternate.memoizedState.cachePool.pool);var h=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),h!==f&&(o.flags|=2048)}return u!==n&&u&&(a.child.flags|=8192),Uc(a,a.updateQueue),Yt(a),null;case 4:return lt(),n===null&&Op(a.stateNode.containerInfo),Yt(a),null;case 10:return sa(a.type),Yt(a),null;case 19:if(fe(on),f=a.memoizedState,f===null)return Yt(a),null;if(o=(a.flags&128)!==0,h=f.rendering,h===null)if(o)Ao(f,!1);else{if(Gt!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(h=Lc(n),h!==null){for(a.flags|=128,Ao(f,!1),n=h.updateQueue,a.updateQueue=n,Uc(a,n),a.subtreeFlags=0,n=u,u=a.child;u!==null;)zy(u,n),u=u.sibling;return O(on,on.current&1|2),a.child}n=n.sibling}f.tail!==null&&ke()>zc&&(a.flags|=128,o=!0,Ao(f,!1),a.lanes=4194304)}else{if(!o)if(n=Lc(h),n!==null){if(a.flags|=128,o=!0,n=n.updateQueue,a.updateQueue=n,Uc(a,n),Ao(f,!0),f.tail===null&&f.tailMode==="hidden"&&!h.alternate&&!gt)return Yt(a),null}else 2*ke()-f.renderingStartTime>zc&&u!==536870912&&(a.flags|=128,o=!0,Ao(f,!1),a.lanes=4194304);f.isBackwards?(h.sibling=a.child,a.child=h):(n=f.last,n!==null?n.sibling=h:a.child=h,f.last=h)}return f.tail!==null?(a=f.tail,f.rendering=a,f.tail=a.sibling,f.renderingStartTime=ke(),a.sibling=null,n=on.current,O(on,o?n&1|2:n&1),a):(Yt(a),null);case 22:case 23:return fa(a),Dh(),o=a.memoizedState!==null,n!==null?n.memoizedState!==null!==o&&(a.flags|=8192):o&&(a.flags|=8192),o?(u&536870912)!==0&&(a.flags&128)===0&&(Yt(a),a.subtreeFlags&6&&(a.flags|=8192)):Yt(a),u=a.updateQueue,u!==null&&Uc(a,u.retryQueue),u=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==u&&(a.flags|=2048),n!==null&&fe(xi),null;case 24:return u=null,n!==null&&(u=n.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),sa(ln),Yt(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function tw(n,a){switch(bh(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return sa(ln),lt(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return Re(a),null;case 13:if(fa(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(i(340));uo()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return fe(on),null;case 4:return lt(),null;case 10:return sa(a.type),null;case 22:case 23:return fa(a),Dh(),n!==null&&fe(xi),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return sa(ln),null;case 25:return null;default:return null}}function p3(n,a){switch(bh(a),a.tag){case 3:sa(ln),lt();break;case 26:case 27:case 5:Re(a);break;case 4:lt();break;case 13:fa(a);break;case 19:fe(on);break;case 10:sa(a.type);break;case 22:case 23:fa(a),Dh(),n!==null&&fe(xi);break;case 24:sa(ln)}}function _o(n,a){try{var u=a.updateQueue,o=u!==null?u.lastEffect:null;if(o!==null){var f=o.next;u=f;do{if((u.tag&n)===n){o=void 0;var h=u.create,S=u.inst;o=h(),S.destroy=o}u=u.next}while(u!==f)}}catch(v){Lt(a,a.return,v)}}function Ua(n,a,u){try{var o=a.updateQueue,f=o!==null?o.lastEffect:null;if(f!==null){var h=f.next;o=h;do{if((o.tag&n)===n){var S=o.inst,v=S.destroy;if(v!==void 0){S.destroy=void 0,f=a;var B=u,ee=v;try{ee()}catch(oe){Lt(f,B,oe)}}}o=o.next}while(o!==h)}}catch(oe){Lt(a,a.return,oe)}}function m3(n){var a=n.updateQueue;if(a!==null){var u=n.stateNode;try{nT(a,u)}catch(o){Lt(n,n.return,o)}}}function g3(n,a,u){u.props=Ri(n.type,n.memoizedProps),u.state=n.memoizedState;try{u.componentWillUnmount()}catch(o){Lt(n,a,o)}}function xo(n,a){try{var u=n.ref;if(u!==null){switch(n.tag){case 26:case 27:case 5:var o=n.stateNode;break;case 30:o=n.stateNode;break;default:o=n.stateNode}typeof u=="function"?n.refCleanup=u(o):u.current=o}}catch(f){Lt(n,a,f)}}function Gr(n,a){var u=n.ref,o=n.refCleanup;if(u!==null)if(typeof o=="function")try{o()}catch(f){Lt(n,a,f)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(f){Lt(n,a,f)}else u.current=null}function b3(n){var a=n.type,u=n.memoizedProps,o=n.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":u.autoFocus&&o.focus();break e;case"img":u.src?o.src=u.src:u.srcSet&&(o.srcset=u.srcSet)}}catch(f){Lt(n,n.return,f)}}function ip(n,a,u){try{var o=n.stateNode;Cw(o,n.type,u,a),o[qe]=a}catch(f){Lt(n,n.return,f)}}function E3(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Ga(n.type)||n.tag===4}function up(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||E3(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Ga(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function lp(n,a,u){var o=n.tag;if(o===5||o===6)n=n.stateNode,a?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(n,a):(a=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,a.appendChild(n),u=u._reactRootContainer,u!=null||a.onclick!==null||(a.onclick=Kc));else if(o!==4&&(o===27&&Ga(n.type)&&(u=n.stateNode,a=null),n=n.child,n!==null))for(lp(n,a,u),n=n.sibling;n!==null;)lp(n,a,u),n=n.sibling}function Hc(n,a,u){var o=n.tag;if(o===5||o===6)n=n.stateNode,a?u.insertBefore(n,a):u.appendChild(n);else if(o!==4&&(o===27&&Ga(n.type)&&(u=n.stateNode),n=n.child,n!==null))for(Hc(n,a,u),n=n.sibling;n!==null;)Hc(n,a,u),n=n.sibling}function y3(n){var a=n.stateNode,u=n.memoizedProps;try{for(var o=n.type,f=a.attributes;f.length;)a.removeAttributeNode(f[0]);Tn(a,o,u),a[He]=n,a[qe]=u}catch(h){Lt(n,n.return,h)}}var pa=!1,Kt=!1,op=!1,T3=typeof WeakSet=="function"?WeakSet:Set,pn=null;function nw(n,a){if(n=n.containerInfo,kp=rf,n=Dy(n),uh(n)){if("selectionStart"in n)var u={start:n.selectionStart,end:n.selectionEnd};else e:{u=(u=n.ownerDocument)&&u.defaultView||window;var o=u.getSelection&&u.getSelection();if(o&&o.rangeCount!==0){u=o.anchorNode;var f=o.anchorOffset,h=o.focusNode;o=o.focusOffset;try{u.nodeType,h.nodeType}catch{u=null;break e}var S=0,v=-1,B=-1,ee=0,oe=0,ce=n,ne=null;t:for(;;){for(var re;ce!==u||f!==0&&ce.nodeType!==3||(v=S+f),ce!==h||o!==0&&ce.nodeType!==3||(B=S+o),ce.nodeType===3&&(S+=ce.nodeValue.length),(re=ce.firstChild)!==null;)ne=ce,ce=re;for(;;){if(ce===n)break t;if(ne===u&&++ee===f&&(v=S),ne===h&&++oe===o&&(B=S),(re=ce.nextSibling)!==null)break;ce=ne,ne=ce.parentNode}ce=re}u=v===-1||B===-1?null:{start:v,end:B}}else u=null}u=u||{start:0,end:0}}else u=null;for(Lp={focusedElem:n,selectionRange:u},rf=!1,pn=a;pn!==null;)if(a=pn,n=a.child,(a.subtreeFlags&1024)!==0&&n!==null)n.return=a,pn=n;else for(;pn!==null;){switch(a=pn,h=a.alternate,n=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((n&1024)!==0&&h!==null){n=void 0,u=a,f=h.memoizedProps,h=h.memoizedState,o=u.stateNode;try{var ze=Ri(u.type,f,u.elementType===u.type);n=o.getSnapshotBeforeUpdate(ze,h),o.__reactInternalSnapshotBeforeUpdate=n}catch(Be){Lt(u,u.return,Be)}}break;case 3:if((n&1024)!==0){if(n=a.stateNode.containerInfo,u=n.nodeType,u===9)Bp(n);else if(u===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Bp(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(i(163))}if(n=a.sibling,n!==null){n.return=a.return,pn=n;break}pn=a.return}}function S3(n,a,u){var o=u.flags;switch(u.tag){case 0:case 11:case 15:Ha(n,u),o&4&&_o(5,u);break;case 1:if(Ha(n,u),o&4)if(n=u.stateNode,a===null)try{n.componentDidMount()}catch(S){Lt(u,u.return,S)}else{var f=Ri(u.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(f,a,n.__reactInternalSnapshotBeforeUpdate)}catch(S){Lt(u,u.return,S)}}o&64&&m3(u),o&512&&xo(u,u.return);break;case 3:if(Ha(n,u),o&64&&(n=u.updateQueue,n!==null)){if(a=null,u.child!==null)switch(u.child.tag){case 27:case 5:a=u.child.stateNode;break;case 1:a=u.child.stateNode}try{nT(n,a)}catch(S){Lt(u,u.return,S)}}break;case 27:a===null&&o&4&&y3(u);case 26:case 5:Ha(n,u),a===null&&o&4&&b3(u),o&512&&xo(u,u.return);break;case 12:Ha(n,u);break;case 13:Ha(n,u),o&4&&_3(n,u),o&64&&(n=u.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(u=fw.bind(null,u),Ow(n,u))));break;case 22:if(o=u.memoizedState!==null||pa,!o){a=a!==null&&a.memoizedState!==null||Kt,f=pa;var h=Kt;pa=o,(Kt=a)&&!h?Fa(n,u,(u.subtreeFlags&8772)!==0):Ha(n,u),pa=f,Kt=h}break;case 30:break;default:Ha(n,u)}}function C3(n){var a=n.alternate;a!==null&&(n.alternate=null,C3(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&z0(a)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var zt=null,qn=!1;function ma(n,a,u){for(u=u.child;u!==null;)A3(n,a,u),u=u.sibling}function A3(n,a,u){if(de&&typeof de.onCommitFiberUnmount=="function")try{de.onCommitFiberUnmount(ae,u)}catch{}switch(u.tag){case 26:Kt||Gr(u,a),ma(n,a,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Kt||Gr(u,a);var o=zt,f=qn;Ga(u.type)&&(zt=u.stateNode,qn=!1),ma(n,a,u),Mo(u.stateNode),zt=o,qn=f;break;case 5:Kt||Gr(u,a);case 6:if(o=zt,f=qn,zt=null,ma(n,a,u),zt=o,qn=f,zt!==null)if(qn)try{(zt.nodeType===9?zt.body:zt.nodeName==="HTML"?zt.ownerDocument.body:zt).removeChild(u.stateNode)}catch(h){Lt(u,a,h)}else try{zt.removeChild(u.stateNode)}catch(h){Lt(u,a,h)}break;case 18:zt!==null&&(qn?(n=zt,fS(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,u.stateNode),Yo(n)):fS(zt,u.stateNode));break;case 4:o=zt,f=qn,zt=u.stateNode.containerInfo,qn=!0,ma(n,a,u),zt=o,qn=f;break;case 0:case 11:case 14:case 15:Kt||Ua(2,u,a),Kt||Ua(4,u,a),ma(n,a,u);break;case 1:Kt||(Gr(u,a),o=u.stateNode,typeof o.componentWillUnmount=="function"&&g3(u,a,o)),ma(n,a,u);break;case 21:ma(n,a,u);break;case 22:Kt=(o=Kt)||u.memoizedState!==null,ma(n,a,u),Kt=o;break;default:ma(n,a,u)}}function _3(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Yo(n)}catch(u){Lt(a,a.return,u)}}function rw(n){switch(n.tag){case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new T3),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new T3),a;default:throw Error(i(435,n.tag))}}function sp(n,a){var u=rw(n);a.forEach(function(o){var f=dw.bind(null,n,o);u.has(o)||(u.add(o),o.then(f,f))})}function tr(n,a){var u=a.deletions;if(u!==null)for(var o=0;o<u.length;o++){var f=u[o],h=n,S=a,v=S;e:for(;v!==null;){switch(v.tag){case 27:if(Ga(v.type)){zt=v.stateNode,qn=!1;break e}break;case 5:zt=v.stateNode,qn=!1;break e;case 3:case 4:zt=v.stateNode.containerInfo,qn=!0;break e}v=v.return}if(zt===null)throw Error(i(160));A3(h,S,f),zt=null,qn=!1,h=f.alternate,h!==null&&(h.return=null),f.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)x3(a,n),a=a.sibling}var Rr=null;function x3(n,a){var u=n.alternate,o=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:tr(a,n),nr(n),o&4&&(Ua(3,n,n.return),_o(3,n),Ua(5,n,n.return));break;case 1:tr(a,n),nr(n),o&512&&(Kt||u===null||Gr(u,u.return)),o&64&&pa&&(n=n.updateQueue,n!==null&&(o=n.callbacks,o!==null&&(u=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=u===null?o:u.concat(o))));break;case 26:var f=Rr;if(tr(a,n),nr(n),o&512&&(Kt||u===null||Gr(u,u.return)),o&4){var h=u!==null?u.memoizedState:null;if(o=n.memoizedState,u===null)if(o===null)if(n.stateNode===null){e:{o=n.type,u=n.memoizedProps,f=f.ownerDocument||f;t:switch(o){case"title":h=f.getElementsByTagName("title")[0],(!h||h[na]||h[He]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=f.createElement(o),f.head.insertBefore(h,f.querySelector("head > title"))),Tn(h,o,u),h[He]=n,dn(h),o=h;break e;case"link":var S=yS("link","href",f).get(o+(u.href||""));if(S){for(var v=0;v<S.length;v++)if(h=S[v],h.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&h.getAttribute("rel")===(u.rel==null?null:u.rel)&&h.getAttribute("title")===(u.title==null?null:u.title)&&h.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){S.splice(v,1);break t}}h=f.createElement(o),Tn(h,o,u),f.head.appendChild(h);break;case"meta":if(S=yS("meta","content",f).get(o+(u.content||""))){for(v=0;v<S.length;v++)if(h=S[v],h.getAttribute("content")===(u.content==null?null:""+u.content)&&h.getAttribute("name")===(u.name==null?null:u.name)&&h.getAttribute("property")===(u.property==null?null:u.property)&&h.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&h.getAttribute("charset")===(u.charSet==null?null:u.charSet)){S.splice(v,1);break t}}h=f.createElement(o),Tn(h,o,u),f.head.appendChild(h);break;default:throw Error(i(468,o))}h[He]=n,dn(h),o=h}n.stateNode=o}else TS(f,n.type,n.stateNode);else n.stateNode=ES(f,o,n.memoizedProps);else h!==o?(h===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):h.count--,o===null?TS(f,n.type,n.stateNode):ES(f,o,n.memoizedProps)):o===null&&n.stateNode!==null&&ip(n,n.memoizedProps,u.memoizedProps)}break;case 27:tr(a,n),nr(n),o&512&&(Kt||u===null||Gr(u,u.return)),u!==null&&o&4&&ip(n,n.memoizedProps,u.memoizedProps);break;case 5:if(tr(a,n),nr(n),o&512&&(Kt||u===null||Gr(u,u.return)),n.flags&32){f=n.stateNode;try{du(f,"")}catch(re){Lt(n,n.return,re)}}o&4&&n.stateNode!=null&&(f=n.memoizedProps,ip(n,f,u!==null?u.memoizedProps:f)),o&1024&&(op=!0);break;case 6:if(tr(a,n),nr(n),o&4){if(n.stateNode===null)throw Error(i(162));o=n.memoizedProps,u=n.stateNode;try{u.nodeValue=o}catch(re){Lt(n,n.return,re)}}break;case 3:if(ef=null,f=Rr,Rr=Zc(a.containerInfo),tr(a,n),Rr=f,nr(n),o&4&&u!==null&&u.memoizedState.isDehydrated)try{Yo(a.containerInfo)}catch(re){Lt(n,n.return,re)}op&&(op=!1,v3(n));break;case 4:o=Rr,Rr=Zc(n.stateNode.containerInfo),tr(a,n),nr(n),Rr=o;break;case 12:tr(a,n),nr(n);break;case 13:tr(a,n),nr(n),n.child.flags&8192&&n.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(mp=ke()),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,sp(n,o)));break;case 22:f=n.memoizedState!==null;var B=u!==null&&u.memoizedState!==null,ee=pa,oe=Kt;if(pa=ee||f,Kt=oe||B,tr(a,n),Kt=oe,pa=ee,nr(n),o&8192)e:for(a=n.stateNode,a._visibility=f?a._visibility&-2:a._visibility|1,f&&(u===null||B||pa||Kt||Ni(n)),u=null,a=n;;){if(a.tag===5||a.tag===26){if(u===null){B=u=a;try{if(h=B.stateNode,f)S=h.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{v=B.stateNode;var ce=B.memoizedProps.style,ne=ce!=null&&ce.hasOwnProperty("display")?ce.display:null;v.style.display=ne==null||typeof ne=="boolean"?"":(""+ne).trim()}}catch(re){Lt(B,B.return,re)}}}else if(a.tag===6){if(u===null){B=a;try{B.stateNode.nodeValue=f?"":B.memoizedProps}catch(re){Lt(B,B.return,re)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===n)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break e;for(;a.sibling===null;){if(a.return===null||a.return===n)break e;u===a&&(u=null),a=a.return}u===a&&(u=null),a.sibling.return=a.return,a=a.sibling}o&4&&(o=n.updateQueue,o!==null&&(u=o.retryQueue,u!==null&&(o.retryQueue=null,sp(n,u))));break;case 19:tr(a,n),nr(n),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,sp(n,o)));break;case 30:break;case 21:break;default:tr(a,n),nr(n)}}function nr(n){var a=n.flags;if(a&2){try{for(var u,o=n.return;o!==null;){if(E3(o)){u=o;break}o=o.return}if(u==null)throw Error(i(160));switch(u.tag){case 27:var f=u.stateNode,h=up(n);Hc(n,h,f);break;case 5:var S=u.stateNode;u.flags&32&&(du(S,""),u.flags&=-33);var v=up(n);Hc(n,v,S);break;case 3:case 4:var B=u.stateNode.containerInfo,ee=up(n);lp(n,ee,B);break;default:throw Error(i(161))}}catch(oe){Lt(n,n.return,oe)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function v3(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;v3(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),n=n.sibling}}function Ha(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)S3(n,a.alternate,a),a=a.sibling}function Ni(n){for(n=n.child;n!==null;){var a=n;switch(a.tag){case 0:case 11:case 14:case 15:Ua(4,a,a.return),Ni(a);break;case 1:Gr(a,a.return);var u=a.stateNode;typeof u.componentWillUnmount=="function"&&g3(a,a.return,u),Ni(a);break;case 27:Mo(a.stateNode);case 26:case 5:Gr(a,a.return),Ni(a);break;case 22:a.memoizedState===null&&Ni(a);break;case 30:Ni(a);break;default:Ni(a)}n=n.sibling}}function Fa(n,a,u){for(u=u&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var o=a.alternate,f=n,h=a,S=h.flags;switch(h.tag){case 0:case 11:case 15:Fa(f,h,u),_o(4,h);break;case 1:if(Fa(f,h,u),o=h,f=o.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(ee){Lt(o,o.return,ee)}if(o=h,f=o.updateQueue,f!==null){var v=o.stateNode;try{var B=f.shared.hiddenCallbacks;if(B!==null)for(f.shared.hiddenCallbacks=null,f=0;f<B.length;f++)tT(B[f],v)}catch(ee){Lt(o,o.return,ee)}}u&&S&64&&m3(h),xo(h,h.return);break;case 27:y3(h);case 26:case 5:Fa(f,h,u),u&&o===null&&S&4&&b3(h),xo(h,h.return);break;case 12:Fa(f,h,u);break;case 13:Fa(f,h,u),u&&S&4&&_3(f,h);break;case 22:h.memoizedState===null&&Fa(f,h,u),xo(h,h.return);break;case 30:break;default:Fa(f,h,u)}a=a.sibling}}function cp(n,a){var u=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==u&&(n!=null&&n.refCount++,u!=null&&so(u))}function fp(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&so(n))}function $r(n,a,u,o){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)R3(n,a,u,o),a=a.sibling}function R3(n,a,u,o){var f=a.flags;switch(a.tag){case 0:case 11:case 15:$r(n,a,u,o),f&2048&&_o(9,a);break;case 1:$r(n,a,u,o);break;case 3:$r(n,a,u,o),f&2048&&(n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&so(n)));break;case 12:if(f&2048){$r(n,a,u,o),n=a.stateNode;try{var h=a.memoizedProps,S=h.id,v=h.onPostCommit;typeof v=="function"&&v(S,a.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(B){Lt(a,a.return,B)}}else $r(n,a,u,o);break;case 13:$r(n,a,u,o);break;case 23:break;case 22:h=a.stateNode,S=a.alternate,a.memoizedState!==null?h._visibility&2?$r(n,a,u,o):vo(n,a):h._visibility&2?$r(n,a,u,o):(h._visibility|=2,Du(n,a,u,o,(a.subtreeFlags&10256)!==0)),f&2048&&cp(S,a);break;case 24:$r(n,a,u,o),f&2048&&fp(a.alternate,a);break;default:$r(n,a,u,o)}}function Du(n,a,u,o,f){for(f=f&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var h=n,S=a,v=u,B=o,ee=S.flags;switch(S.tag){case 0:case 11:case 15:Du(h,S,v,B,f),_o(8,S);break;case 23:break;case 22:var oe=S.stateNode;S.memoizedState!==null?oe._visibility&2?Du(h,S,v,B,f):vo(h,S):(oe._visibility|=2,Du(h,S,v,B,f)),f&&ee&2048&&cp(S.alternate,S);break;case 24:Du(h,S,v,B,f),f&&ee&2048&&fp(S.alternate,S);break;default:Du(h,S,v,B,f)}a=a.sibling}}function vo(n,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var u=n,o=a,f=o.flags;switch(o.tag){case 22:vo(u,o),f&2048&&cp(o.alternate,o);break;case 24:vo(u,o),f&2048&&fp(o.alternate,o);break;default:vo(u,o)}a=a.sibling}}var Ro=8192;function ku(n){if(n.subtreeFlags&Ro)for(n=n.child;n!==null;)N3(n),n=n.sibling}function N3(n){switch(n.tag){case 26:ku(n),n.flags&Ro&&n.memoizedState!==null&&Yw(Rr,n.memoizedState,n.memoizedProps);break;case 5:ku(n);break;case 3:case 4:var a=Rr;Rr=Zc(n.stateNode.containerInfo),ku(n),Rr=a;break;case 22:n.memoizedState===null&&(a=n.alternate,a!==null&&a.memoizedState!==null?(a=Ro,Ro=16777216,ku(n),Ro=a):ku(n));break;default:ku(n)}}function O3(n){var a=n.alternate;if(a!==null&&(n=a.child,n!==null)){a.child=null;do a=n.sibling,n.sibling=null,n=a;while(n!==null)}}function No(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var o=a[u];pn=o,D3(o,n)}O3(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)I3(n),n=n.sibling}function I3(n){switch(n.tag){case 0:case 11:case 15:No(n),n.flags&2048&&Ua(9,n,n.return);break;case 3:No(n);break;case 12:No(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&2&&(n.return===null||n.return.tag!==13)?(a._visibility&=-3,Fc(n)):No(n);break;default:No(n)}}function Fc(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var o=a[u];pn=o,D3(o,n)}O3(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:Ua(8,a,a.return),Fc(a);break;case 22:u=a.stateNode,u._visibility&2&&(u._visibility&=-3,Fc(a));break;default:Fc(a)}n=n.sibling}}function D3(n,a){for(;pn!==null;){var u=pn;switch(u.tag){case 0:case 11:case 15:Ua(8,u,a);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var o=u.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:so(u.memoizedState.cache)}if(o=u.child,o!==null)o.return=u,pn=o;else e:for(u=n;pn!==null;){o=pn;var f=o.sibling,h=o.return;if(C3(o),o===u){pn=null;break e}if(f!==null){f.return=h,pn=f;break e}pn=h}}}var aw={getCacheForType:function(n){var a=Nn(ln),u=a.data.get(n);return u===void 0&&(u=n(),a.data.set(n,u)),u}},iw=typeof WeakMap=="function"?WeakMap:Map,At=0,Ut=null,rt=null,ot=0,_t=0,rr=null,za=!1,Lu=!1,dp=!1,ga=0,Gt=0,Ya=0,Oi=0,hp=0,Cr=0,Mu=0,Oo=null,Vn=null,pp=!1,mp=0,zc=1/0,Yc=null,ja=null,yn=0,qa=null,wu=null,Bu=0,gp=0,bp=null,k3=null,Io=0,Ep=null;function ar(){if((At&2)!==0&&ot!==0)return ot&-ot;if(H.T!==null){var n=Au;return n!==0?n:xp()}return Js()}function L3(){Cr===0&&(Cr=(ot&536870912)===0||gt?di():536870912);var n=Sr.current;return n!==null&&(n.flags|=32),Cr}function ir(n,a,u){(n===Ut&&(_t===2||_t===9)||n.cancelPendingCommit!==null)&&(Pu(n,0),Va(n,ot,Cr,!1)),ea(n,u),((At&2)===0||n!==Ut)&&(n===Ut&&((At&2)===0&&(Oi|=u),Gt===4&&Va(n,ot,Cr,!1)),Xr(n))}function M3(n,a,u){if((At&6)!==0)throw Error(i(327));var o=!u&&(a&124)===0&&(a&n.expiredLanes)===0||Hn(n,a),f=o?ow(n,a):Sp(n,a,!0),h=o;do{if(f===0){Lu&&!o&&Va(n,a,0,!1);break}else{if(u=n.current.alternate,h&&!uw(u)){f=Sp(n,a,!1),h=!1;continue}if(f===2){if(h=a,n.errorRecoveryDisabledLanes&h)var S=0;else S=n.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){a=S;e:{var v=n;f=Oo;var B=v.current.memoizedState.isDehydrated;if(B&&(Pu(v,S).flags|=256),S=Sp(v,S,!1),S!==2){if(dp&&!B){v.errorRecoveryDisabledLanes|=h,Oi|=h,f=4;break e}h=Vn,Vn=f,h!==null&&(Vn===null?Vn=h:Vn.push.apply(Vn,h))}f=S}if(h=!1,f!==2)continue}}if(f===1){Pu(n,0),Va(n,a,0,!0);break}e:{switch(o=n,h=f,h){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:Va(o,a,Cr,!za);break e;case 2:Vn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(f=mp+300-ke(),10<f)){if(Va(o,a,Cr,!za),rn(o,0,!0)!==0)break e;o.timeoutHandle=sS(w3.bind(null,o,u,Vn,Yc,pp,a,Cr,Oi,Mu,za,h,2,-0,0),f);break e}w3(o,u,Vn,Yc,pp,a,Cr,Oi,Mu,za,h,0,-0,0)}}break}while(!0);Xr(n)}function w3(n,a,u,o,f,h,S,v,B,ee,oe,ce,ne,re){if(n.timeoutHandle=-1,ce=a.subtreeFlags,(ce&8192||(ce&16785408)===16785408)&&(Po={stylesheets:null,count:0,unsuspend:zw},N3(a),ce=jw(),ce!==null)){n.cancelPendingCommit=ce(Y3.bind(null,n,a,h,u,o,f,S,v,B,oe,1,ne,re)),Va(n,h,S,!ee);return}Y3(n,a,h,u,o,f,S,v,B)}function uw(n){for(var a=n;;){var u=a.tag;if((u===0||u===11||u===15)&&a.flags&16384&&(u=a.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var o=0;o<u.length;o++){var f=u[o],h=f.getSnapshot;f=f.value;try{if(!Jn(h(),f))return!1}catch{return!1}}if(u=a.child,a.subtreeFlags&16384&&u!==null)u.return=a,a=u;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Va(n,a,u,o){a&=~hp,a&=~Oi,n.suspendedLanes|=a,n.pingedLanes&=~a,o&&(n.warmLanes|=a),o=n.expirationTimes;for(var f=a;0<f;){var h=31-Ae(f),S=1<<h;o[h]=-1,f&=~S}u!==0&&Ws(n,u,a)}function jc(){return(At&6)===0?(Do(0),!1):!0}function yp(){if(rt!==null){if(_t===0)var n=rt.return;else n=rt,oa=Ai=null,Bh(n),Ou=null,So=0,n=rt;for(;n!==null;)p3(n.alternate,n),n=n.return;rt=null}}function Pu(n,a){var u=n.timeoutHandle;u!==-1&&(n.timeoutHandle=-1,_w(u)),u=n.cancelPendingCommit,u!==null&&(n.cancelPendingCommit=null,u()),yp(),Ut=n,rt=u=ia(n.current,null),ot=a,_t=0,rr=null,za=!1,Lu=Hn(n,a),dp=!1,Mu=Cr=hp=Oi=Ya=Gt=0,Vn=Oo=null,pp=!1,(a&8)!==0&&(a|=a&32);var o=n.entangledLanes;if(o!==0)for(n=n.entanglements,o&=a;0<o;){var f=31-Ae(o),h=1<<f;a|=n[f],o&=~h}return ga=a,fc(),u}function B3(n,a){Ze=null,H.H=Ic,a===fo||a===Tc?(a=Jy(),_t=3):a===Ky?(a=Jy(),_t=4):_t=a===e3?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,rr=a,rt===null&&(Gt=1,wc(n,br(a,n.current)))}function P3(){var n=H.H;return H.H=Ic,n===null?Ic:n}function U3(){var n=H.A;return H.A=aw,n}function Tp(){Gt=4,za||(ot&4194048)!==ot&&Sr.current!==null||(Lu=!0),(Ya&134217727)===0&&(Oi&134217727)===0||Ut===null||Va(Ut,ot,Cr,!1)}function Sp(n,a,u){var o=At;At|=2;var f=P3(),h=U3();(Ut!==n||ot!==a)&&(Yc=null,Pu(n,a)),a=!1;var S=Gt;e:do try{if(_t!==0&&rt!==null){var v=rt,B=rr;switch(_t){case 8:yp(),S=6;break e;case 3:case 2:case 9:case 6:Sr.current===null&&(a=!0);var ee=_t;if(_t=0,rr=null,Uu(n,v,B,ee),u&&Lu){S=0;break e}break;default:ee=_t,_t=0,rr=null,Uu(n,v,B,ee)}}lw(),S=Gt;break}catch(oe){B3(n,oe)}while(!0);return a&&n.shellSuspendCounter++,oa=Ai=null,At=o,H.H=f,H.A=h,rt===null&&(Ut=null,ot=0,fc()),S}function lw(){for(;rt!==null;)H3(rt)}function ow(n,a){var u=At;At|=2;var o=P3(),f=U3();Ut!==n||ot!==a?(Yc=null,zc=ke()+500,Pu(n,a)):Lu=Hn(n,a);e:do try{if(_t!==0&&rt!==null){a=rt;var h=rr;t:switch(_t){case 1:_t=0,rr=null,Uu(n,a,h,1);break;case 2:case 9:if(Wy(h)){_t=0,rr=null,F3(a);break}a=function(){_t!==2&&_t!==9||Ut!==n||(_t=7),Xr(n)},h.then(a,a);break e;case 3:_t=7;break e;case 4:_t=5;break e;case 7:Wy(h)?(_t=0,rr=null,F3(a)):(_t=0,rr=null,Uu(n,a,h,7));break;case 5:var S=null;switch(rt.tag){case 26:S=rt.memoizedState;case 5:case 27:var v=rt;if(!S||SS(S)){_t=0,rr=null;var B=v.sibling;if(B!==null)rt=B;else{var ee=v.return;ee!==null?(rt=ee,qc(ee)):rt=null}break t}}_t=0,rr=null,Uu(n,a,h,5);break;case 6:_t=0,rr=null,Uu(n,a,h,6);break;case 8:yp(),Gt=6;break e;default:throw Error(i(462))}}sw();break}catch(oe){B3(n,oe)}while(!0);return oa=Ai=null,H.H=o,H.A=f,At=u,rt!==null?0:(Ut=null,ot=0,fc(),Gt)}function sw(){for(;rt!==null&&!Fe();)H3(rt)}function H3(n){var a=d3(n.alternate,n,ga);n.memoizedProps=n.pendingProps,a===null?qc(n):rt=a}function F3(n){var a=n,u=a.alternate;switch(a.tag){case 15:case 0:a=u3(u,a,a.pendingProps,a.type,void 0,ot);break;case 11:a=u3(u,a,a.pendingProps,a.type.render,a.ref,ot);break;case 5:Bh(a);default:p3(u,a),a=rt=zy(a,ga),a=d3(u,a,ga)}n.memoizedProps=n.pendingProps,a===null?qc(n):rt=a}function Uu(n,a,u,o){oa=Ai=null,Bh(a),Ou=null,So=0;var f=a.return;try{if(ZM(n,f,a,u,ot)){Gt=1,wc(n,br(u,n.current)),rt=null;return}}catch(h){if(f!==null)throw rt=f,h;Gt=1,wc(n,br(u,n.current)),rt=null;return}a.flags&32768?(gt||o===1?n=!0:Lu||(ot&536870912)!==0?n=!1:(za=n=!0,(o===2||o===9||o===3||o===6)&&(o=Sr.current,o!==null&&o.tag===13&&(o.flags|=16384))),z3(a,n)):qc(a)}function qc(n){var a=n;do{if((a.flags&32768)!==0){z3(a,za);return}n=a.return;var u=ew(a.alternate,a,ga);if(u!==null){rt=u;return}if(a=a.sibling,a!==null){rt=a;return}rt=a=n}while(a!==null);Gt===0&&(Gt=5)}function z3(n,a){do{var u=tw(n.alternate,n);if(u!==null){u.flags&=32767,rt=u;return}if(u=n.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!a&&(n=n.sibling,n!==null)){rt=n;return}rt=n=u}while(n!==null);Gt=6,rt=null}function Y3(n,a,u,o,f,h,S,v,B){n.cancelPendingCommit=null;do Vc();while(yn!==0);if((At&6)!==0)throw Error(i(327));if(a!==null){if(a===n.current)throw Error(i(177));if(h=a.lanes|a.childLanes,h|=fh,F0(n,u,h,S,v,B),n===Ut&&(rt=Ut=null,ot=0),wu=a,qa=n,Bu=u,gp=h,bp=f,k3=o,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,hw(Et,function(){return $3(),null})):(n.callbackNode=null,n.callbackPriority=0),o=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||o){o=H.T,H.T=null,f=Q.p,Q.p=2,S=At,At|=4;try{nw(n,a,u)}finally{At=S,Q.p=f,H.T=o}}yn=1,j3(),q3(),V3()}}function j3(){if(yn===1){yn=0;var n=qa,a=wu,u=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||u){u=H.T,H.T=null;var o=Q.p;Q.p=2;var f=At;At|=4;try{x3(a,n);var h=Lp,S=Dy(n.containerInfo),v=h.focusedElem,B=h.selectionRange;if(S!==v&&v&&v.ownerDocument&&Iy(v.ownerDocument.documentElement,v)){if(B!==null&&uh(v)){var ee=B.start,oe=B.end;if(oe===void 0&&(oe=ee),"selectionStart"in v)v.selectionStart=ee,v.selectionEnd=Math.min(oe,v.value.length);else{var ce=v.ownerDocument||document,ne=ce&&ce.defaultView||window;if(ne.getSelection){var re=ne.getSelection(),ze=v.textContent.length,Be=Math.min(B.start,ze),Nt=B.end===void 0?Be:Math.min(B.end,ze);!re.extend&&Be>Nt&&(S=Nt,Nt=Be,Be=S);var V=Oy(v,Be),F=Oy(v,Nt);if(V&&F&&(re.rangeCount!==1||re.anchorNode!==V.node||re.anchorOffset!==V.offset||re.focusNode!==F.node||re.focusOffset!==F.offset)){var K=ce.createRange();K.setStart(V.node,V.offset),re.removeAllRanges(),Be>Nt?(re.addRange(K),re.extend(F.node,F.offset)):(K.setEnd(F.node,F.offset),re.addRange(K))}}}}for(ce=[],re=v;re=re.parentNode;)re.nodeType===1&&ce.push({element:re,left:re.scrollLeft,top:re.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<ce.length;v++){var se=ce[v];se.element.scrollLeft=se.left,se.element.scrollTop=se.top}}rf=!!kp,Lp=kp=null}finally{At=f,Q.p=o,H.T=u}}n.current=a,yn=2}}function q3(){if(yn===2){yn=0;var n=qa,a=wu,u=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||u){u=H.T,H.T=null;var o=Q.p;Q.p=2;var f=At;At|=4;try{S3(n,a.alternate,a)}finally{At=f,Q.p=o,H.T=u}}yn=3}}function V3(){if(yn===4||yn===3){yn=0,Ve();var n=qa,a=wu,u=Bu,o=k3;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?yn=5:(yn=0,wu=qa=null,G3(n,n.pendingLanes));var f=n.pendingLanes;if(f===0&&(ja=null),$l(u),a=a.stateNode,de&&typeof de.onCommitFiberRoot=="function")try{de.onCommitFiberRoot(ae,a,void 0,(a.current.flags&128)===128)}catch{}if(o!==null){a=H.T,f=Q.p,Q.p=2,H.T=null;try{for(var h=n.onRecoverableError,S=0;S<o.length;S++){var v=o[S];h(v.value,{componentStack:v.stack})}}finally{H.T=a,Q.p=f}}(Bu&3)!==0&&Vc(),Xr(n),f=n.pendingLanes,(u&4194090)!==0&&(f&42)!==0?n===Ep?Io++:(Io=0,Ep=n):Io=0,Do(0)}}function G3(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,so(a)))}function Vc(n){return j3(),q3(),V3(),$3()}function $3(){if(yn!==5)return!1;var n=qa,a=gp;gp=0;var u=$l(Bu),o=H.T,f=Q.p;try{Q.p=32>u?32:u,H.T=null,u=bp,bp=null;var h=qa,S=Bu;if(yn=0,wu=qa=null,Bu=0,(At&6)!==0)throw Error(i(331));var v=At;if(At|=4,I3(h.current),R3(h,h.current,S,u),At=v,Do(0,!1),de&&typeof de.onPostCommitFiberRoot=="function")try{de.onPostCommitFiberRoot(ae,h)}catch{}return!0}finally{Q.p=f,H.T=o,G3(n,a)}}function X3(n,a,u){a=br(u,a),a=Kh(n.stateNode,a,2),n=Ma(n,a,2),n!==null&&(ea(n,2),Xr(n))}function Lt(n,a,u){if(n.tag===3)X3(n,n,u);else for(;a!==null;){if(a.tag===3){X3(a,n,u);break}else if(a.tag===1){var o=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(ja===null||!ja.has(o))){n=br(u,n),u=ZT(2),o=Ma(a,u,2),o!==null&&(JT(u,o,a,n),ea(o,2),Xr(o));break}}a=a.return}}function Cp(n,a,u){var o=n.pingCache;if(o===null){o=n.pingCache=new iw;var f=new Set;o.set(a,f)}else f=o.get(a),f===void 0&&(f=new Set,o.set(a,f));f.has(u)||(dp=!0,f.add(u),n=cw.bind(null,n,a,u),a.then(n,n))}function cw(n,a,u){var o=n.pingCache;o!==null&&o.delete(a),n.pingedLanes|=n.suspendedLanes&u,n.warmLanes&=~u,Ut===n&&(ot&u)===u&&(Gt===4||Gt===3&&(ot&62914560)===ot&&300>ke()-mp?(At&2)===0&&Pu(n,0):hp|=u,Mu===ot&&(Mu=0)),Xr(n)}function Q3(n,a){a===0&&(a=Ks()),n=yu(n,a),n!==null&&(ea(n,a),Xr(n))}function fw(n){var a=n.memoizedState,u=0;a!==null&&(u=a.retryLane),Q3(n,u)}function dw(n,a){var u=0;switch(n.tag){case 13:var o=n.stateNode,f=n.memoizedState;f!==null&&(u=f.retryLane);break;case 19:o=n.stateNode;break;case 22:o=n.stateNode._retryCache;break;default:throw Error(i(314))}o!==null&&o.delete(a),Q3(n,u)}function hw(n,a){return Oe(n,a)}var Gc=null,Hu=null,Ap=!1,$c=!1,_p=!1,Ii=0;function Xr(n){n!==Hu&&n.next===null&&(Hu===null?Gc=Hu=n:Hu=Hu.next=n),$c=!0,Ap||(Ap=!0,mw())}function Do(n,a){if(!_p&&$c){_p=!0;do for(var u=!1,o=Gc;o!==null;){if(n!==0){var f=o.pendingLanes;if(f===0)var h=0;else{var S=o.suspendedLanes,v=o.pingedLanes;h=(1<<31-Ae(42|n)+1)-1,h&=f&~(S&~v),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(u=!0,J3(o,h))}else h=ot,h=rn(o,o===Ut?h:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(h&3)===0||Hn(o,h)||(u=!0,J3(o,h));o=o.next}while(u);_p=!1}}function pw(){K3()}function K3(){$c=Ap=!1;var n=0;Ii!==0&&(Aw()&&(n=Ii),Ii=0);for(var a=ke(),u=null,o=Gc;o!==null;){var f=o.next,h=W3(o,a);h===0?(o.next=null,u===null?Gc=f:u.next=f,f===null&&(Hu=u)):(u=o,(n!==0||(h&3)!==0)&&($c=!0)),o=f}Do(n)}function W3(n,a){for(var u=n.suspendedLanes,o=n.pingedLanes,f=n.expirationTimes,h=n.pendingLanes&-62914561;0<h;){var S=31-Ae(h),v=1<<S,B=f[S];B===-1?((v&u)===0||(v&o)!==0)&&(f[S]=Fn(v,a)):B<=a&&(n.expiredLanes|=v),h&=~v}if(a=Ut,u=ot,u=rn(n,n===a?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),o=n.callbackNode,u===0||n===a&&(_t===2||_t===9)||n.cancelPendingCommit!==null)return o!==null&&o!==null&&Se(o),n.callbackNode=null,n.callbackPriority=0;if((u&3)===0||Hn(n,u)){if(a=u&-u,a===n.callbackPriority)return a;switch(o!==null&&Se(o),$l(u)){case 2:case 8:u=nt;break;case 32:u=Et;break;case 268435456:u=nn;break;default:u=Et}return o=Z3.bind(null,n),u=Oe(u,o),n.callbackPriority=a,n.callbackNode=u,a}return o!==null&&o!==null&&Se(o),n.callbackPriority=2,n.callbackNode=null,2}function Z3(n,a){if(yn!==0&&yn!==5)return n.callbackNode=null,n.callbackPriority=0,null;var u=n.callbackNode;if(Vc()&&n.callbackNode!==u)return null;var o=ot;return o=rn(n,n===Ut?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),o===0?null:(M3(n,o,a),W3(n,ke()),n.callbackNode!=null&&n.callbackNode===u?Z3.bind(null,n):null)}function J3(n,a){if(Vc())return null;M3(n,a,!0)}function mw(){xw(function(){(At&6)!==0?Oe(je,pw):K3()})}function xp(){return Ii===0&&(Ii=di()),Ii}function eS(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:ac(""+n)}function tS(n,a){var u=a.ownerDocument.createElement("input");return u.name=a.name,u.value=a.value,n.id&&u.setAttribute("form",n.id),a.parentNode.insertBefore(u,a),n=new FormData(n),u.parentNode.removeChild(u),n}function gw(n,a,u,o,f){if(a==="submit"&&u&&u.stateNode===f){var h=eS((f[qe]||null).action),S=o.submitter;S&&(a=(a=S[qe]||null)?eS(a.formAction):S.getAttribute("formAction"),a!==null&&(h=a,S=null));var v=new oc("action","action",null,o,f);n.push({event:v,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Ii!==0){var B=S?tS(f,S):new FormData(f);Vh(u,{pending:!0,data:B,method:f.method,action:h},null,B)}}else typeof h=="function"&&(v.preventDefault(),B=S?tS(f,S):new FormData(f),Vh(u,{pending:!0,data:B,method:f.method,action:h},h,B))},currentTarget:f}]})}}for(var vp=0;vp<ch.length;vp++){var Rp=ch[vp],bw=Rp.toLowerCase(),Ew=Rp[0].toUpperCase()+Rp.slice(1);vr(bw,"on"+Ew)}vr(My,"onAnimationEnd"),vr(wy,"onAnimationIteration"),vr(By,"onAnimationStart"),vr("dblclick","onDoubleClick"),vr("focusin","onFocus"),vr("focusout","onBlur"),vr(wM,"onTransitionRun"),vr(BM,"onTransitionStart"),vr(PM,"onTransitionCancel"),vr(Py,"onTransitionEnd"),su("onMouseEnter",["mouseout","mouseover"]),su("onMouseLeave",["mouseout","mouseover"]),su("onPointerEnter",["pointerout","pointerover"]),su("onPointerLeave",["pointerout","pointerover"]),pi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),pi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),pi("onBeforeInput",["compositionend","keypress","textInput","paste"]),pi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),pi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),pi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ko="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(" "),yw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ko));function nS(n,a){a=(a&4)!==0;for(var u=0;u<n.length;u++){var o=n[u],f=o.event;o=o.listeners;e:{var h=void 0;if(a)for(var S=o.length-1;0<=S;S--){var v=o[S],B=v.instance,ee=v.currentTarget;if(v=v.listener,B!==h&&f.isPropagationStopped())break e;h=v,f.currentTarget=ee;try{h(f)}catch(oe){Mc(oe)}f.currentTarget=null,h=B}else for(S=0;S<o.length;S++){if(v=o[S],B=v.instance,ee=v.currentTarget,v=v.listener,B!==h&&f.isPropagationStopped())break e;h=v,f.currentTarget=ee;try{h(f)}catch(oe){Mc(oe)}f.currentTarget=null,h=B}}}}function at(n,a){var u=a[zn];u===void 0&&(u=a[zn]=new Set);var o=n+"__bubble";u.has(o)||(rS(a,n,2,!1),u.add(o))}function Np(n,a,u){var o=0;a&&(o|=4),rS(u,n,o,a)}var Xc="_reactListening"+Math.random().toString(36).slice(2);function Op(n){if(!n[Xc]){n[Xc]=!0,K2.forEach(function(u){u!=="selectionchange"&&(yw.has(u)||Np(u,!1,n),Np(u,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[Xc]||(a[Xc]=!0,Np("selectionchange",!1,a))}}function rS(n,a,u,o){switch(RS(a)){case 2:var f=Gw;break;case 8:f=$w;break;default:f=jp}u=f.bind(null,a,u,n),f=void 0,!W0||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(f=!0),o?f!==void 0?n.addEventListener(a,u,{capture:!0,passive:f}):n.addEventListener(a,u,!0):f!==void 0?n.addEventListener(a,u,{passive:f}):n.addEventListener(a,u,!1)}function Ip(n,a,u,o,f){var h=o;if((a&1)===0&&(a&2)===0&&o!==null)e:for(;;){if(o===null)return;var S=o.tag;if(S===3||S===4){var v=o.stateNode.containerInfo;if(v===f)break;if(S===4)for(S=o.return;S!==null;){var B=S.tag;if((B===3||B===4)&&S.stateNode.containerInfo===f)return;S=S.return}for(;v!==null;){if(S=uu(v),S===null)return;if(B=S.tag,B===5||B===6||B===26||B===27){o=h=S;continue e}v=v.parentNode}}o=o.return}cy(function(){var ee=h,oe=Q0(u),ce=[];e:{var ne=Uy.get(n);if(ne!==void 0){var re=oc,ze=n;switch(n){case"keypress":if(uc(u)===0)break e;case"keydown":case"keyup":re=hM;break;case"focusin":ze="focus",re=th;break;case"focusout":ze="blur",re=th;break;case"beforeblur":case"afterblur":re=th;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":re=hy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":re=tM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":re=gM;break;case My:case wy:case By:re=aM;break;case Py:re=EM;break;case"scroll":case"scrollend":re=JL;break;case"wheel":re=TM;break;case"copy":case"cut":case"paste":re=uM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":re=my;break;case"toggle":case"beforetoggle":re=CM}var Be=(a&4)!==0,Nt=!Be&&(n==="scroll"||n==="scrollend"),V=Be?ne!==null?ne+"Capture":null:ne;Be=[];for(var F=ee,K;F!==null;){var se=F;if(K=se.stateNode,se=se.tag,se!==5&&se!==26&&se!==27||K===null||V===null||(se=Kl(F,V),se!=null&&Be.push(Lo(F,se,K))),Nt)break;F=F.return}0<Be.length&&(ne=new re(ne,ze,null,u,oe),ce.push({event:ne,listeners:Be}))}}if((a&7)===0){e:{if(ne=n==="mouseover"||n==="pointerover",re=n==="mouseout"||n==="pointerout",ne&&u!==X0&&(ze=u.relatedTarget||u.fromElement)&&(uu(ze)||ze[Ct]))break e;if((re||ne)&&(ne=oe.window===oe?oe:(ne=oe.ownerDocument)?ne.defaultView||ne.parentWindow:window,re?(ze=u.relatedTarget||u.toElement,re=ee,ze=ze?uu(ze):null,ze!==null&&(Nt=s(ze),Be=ze.tag,ze!==Nt||Be!==5&&Be!==27&&Be!==6)&&(ze=null)):(re=null,ze=ee),re!==ze)){if(Be=hy,se="onMouseLeave",V="onMouseEnter",F="mouse",(n==="pointerout"||n==="pointerover")&&(Be=my,se="onPointerLeave",V="onPointerEnter",F="pointer"),Nt=re==null?ne:Ql(re),K=ze==null?ne:Ql(ze),ne=new Be(se,F+"leave",re,u,oe),ne.target=Nt,ne.relatedTarget=K,se=null,uu(oe)===ee&&(Be=new Be(V,F+"enter",ze,u,oe),Be.target=K,Be.relatedTarget=Nt,se=Be),Nt=se,re&&ze)t:{for(Be=re,V=ze,F=0,K=Be;K;K=Fu(K))F++;for(K=0,se=V;se;se=Fu(se))K++;for(;0<F-K;)Be=Fu(Be),F--;for(;0<K-F;)V=Fu(V),K--;for(;F--;){if(Be===V||V!==null&&Be===V.alternate)break t;Be=Fu(Be),V=Fu(V)}Be=null}else Be=null;re!==null&&aS(ce,ne,re,Be,!1),ze!==null&&Nt!==null&&aS(ce,Nt,ze,Be,!0)}}e:{if(ne=ee?Ql(ee):window,re=ne.nodeName&&ne.nodeName.toLowerCase(),re==="select"||re==="input"&&ne.type==="file")var ve=Ay;else if(Sy(ne))if(_y)ve=kM;else{ve=IM;var et=OM}else re=ne.nodeName,!re||re.toLowerCase()!=="input"||ne.type!=="checkbox"&&ne.type!=="radio"?ee&&$0(ee.elementType)&&(ve=Ay):ve=DM;if(ve&&(ve=ve(n,ee))){Cy(ce,ve,u,oe);break e}et&&et(n,ne,ee),n==="focusout"&&ee&&ne.type==="number"&&ee.memoizedProps.value!=null&&G0(ne,"number",ne.value)}switch(et=ee?Ql(ee):window,n){case"focusin":(Sy(et)||et.contentEditable==="true")&&(gu=et,lh=ee,ao=null);break;case"focusout":ao=lh=gu=null;break;case"mousedown":oh=!0;break;case"contextmenu":case"mouseup":case"dragend":oh=!1,ky(ce,u,oe);break;case"selectionchange":if(MM)break;case"keydown":case"keyup":ky(ce,u,oe)}var De;if(rh)e:{switch(n){case"compositionstart":var Ue="onCompositionStart";break e;case"compositionend":Ue="onCompositionEnd";break e;case"compositionupdate":Ue="onCompositionUpdate";break e}Ue=void 0}else mu?yy(n,u)&&(Ue="onCompositionEnd"):n==="keydown"&&u.keyCode===229&&(Ue="onCompositionStart");Ue&&(gy&&u.locale!=="ko"&&(mu||Ue!=="onCompositionStart"?Ue==="onCompositionEnd"&&mu&&(De=fy()):(Ia=oe,Z0="value"in Ia?Ia.value:Ia.textContent,mu=!0)),et=Qc(ee,Ue),0<et.length&&(Ue=new py(Ue,n,null,u,oe),ce.push({event:Ue,listeners:et}),De?Ue.data=De:(De=Ty(u),De!==null&&(Ue.data=De)))),(De=_M?xM(n,u):vM(n,u))&&(Ue=Qc(ee,"onBeforeInput"),0<Ue.length&&(et=new py("onBeforeInput","beforeinput",null,u,oe),ce.push({event:et,listeners:Ue}),et.data=De)),gw(ce,n,ee,u,oe)}nS(ce,a)})}function Lo(n,a,u){return{instance:n,listener:a,currentTarget:u}}function Qc(n,a){for(var u=a+"Capture",o=[];n!==null;){var f=n,h=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||h===null||(f=Kl(n,u),f!=null&&o.unshift(Lo(n,f,h)),f=Kl(n,a),f!=null&&o.push(Lo(n,f,h))),n.tag===3)return o;n=n.return}return[]}function Fu(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function aS(n,a,u,o,f){for(var h=a._reactName,S=[];u!==null&&u!==o;){var v=u,B=v.alternate,ee=v.stateNode;if(v=v.tag,B!==null&&B===o)break;v!==5&&v!==26&&v!==27||ee===null||(B=ee,f?(ee=Kl(u,h),ee!=null&&S.unshift(Lo(u,ee,B))):f||(ee=Kl(u,h),ee!=null&&S.push(Lo(u,ee,B)))),u=u.return}S.length!==0&&n.push({event:a,listeners:S})}var Tw=/\r\n?/g,Sw=/\u0000|\uFFFD/g;function iS(n){return(typeof n=="string"?n:""+n).replace(Tw,`
|
|
41
|
-
`).replace(Sw,"")}function uS(n,a){return a=iS(a),iS(n)===a}function Kc(){}function Rt(n,a,u,o,f,h){switch(u){case"children":typeof o=="string"?a==="body"||a==="textarea"&&o===""||du(n,o):(typeof o=="number"||typeof o=="bigint")&&a!=="body"&&du(n,""+o);break;case"className":tc(n,"class",o);break;case"tabIndex":tc(n,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":tc(n,u,o);break;case"style":oy(n,o,h);break;case"data":if(a!=="object"){tc(n,"data",o);break}case"src":case"href":if(o===""&&(a!=="a"||u!=="href")){n.removeAttribute(u);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){n.removeAttribute(u);break}o=ac(""+o),n.setAttribute(u,o);break;case"action":case"formAction":if(typeof o=="function"){n.setAttribute(u,"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 h=="function"&&(u==="formAction"?(a!=="input"&&Rt(n,a,"name",f.name,f,null),Rt(n,a,"formEncType",f.formEncType,f,null),Rt(n,a,"formMethod",f.formMethod,f,null),Rt(n,a,"formTarget",f.formTarget,f,null)):(Rt(n,a,"encType",f.encType,f,null),Rt(n,a,"method",f.method,f,null),Rt(n,a,"target",f.target,f,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){n.removeAttribute(u);break}o=ac(""+o),n.setAttribute(u,o);break;case"onClick":o!=null&&(n.onclick=Kc);break;case"onScroll":o!=null&&at("scroll",n);break;case"onScrollEnd":o!=null&&at("scrollend",n);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(u=o.__html,u!=null){if(f.children!=null)throw Error(i(60));n.innerHTML=u}}break;case"multiple":n.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":n.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){n.removeAttribute("xlink:href");break}u=ac(""+o),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?n.setAttribute(u,""+o):n.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?n.setAttribute(u,""):n.removeAttribute(u);break;case"capture":case"download":o===!0?n.setAttribute(u,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?n.setAttribute(u,o):n.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?n.setAttribute(u,o):n.removeAttribute(u);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?n.removeAttribute(u):n.setAttribute(u,o);break;case"popover":at("beforetoggle",n),at("toggle",n),ec(n,"popover",o);break;case"xlinkActuate":ra(n,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":ra(n,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":ra(n,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":ra(n,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":ra(n,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":ra(n,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":ra(n,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":ra(n,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":ra(n,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":ec(n,"is",o);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=WL.get(u)||u,ec(n,u,o))}}function Dp(n,a,u,o,f,h){switch(u){case"style":oy(n,o,h);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(u=o.__html,u!=null){if(f.children!=null)throw Error(i(60));n.innerHTML=u}}break;case"children":typeof o=="string"?du(n,o):(typeof o=="number"||typeof o=="bigint")&&du(n,""+o);break;case"onScroll":o!=null&&at("scroll",n);break;case"onScrollEnd":o!=null&&at("scrollend",n);break;case"onClick":o!=null&&(n.onclick=Kc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!W2.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(f=u.endsWith("Capture"),a=u.slice(2,f?u.length-7:void 0),h=n[qe]||null,h=h!=null?h[u]:null,typeof h=="function"&&n.removeEventListener(a,h,f),typeof o=="function")){typeof h!="function"&&h!==null&&(u in n?n[u]=null:n.hasAttribute(u)&&n.removeAttribute(u)),n.addEventListener(a,o,f);break e}u in n?n[u]=o:o===!0?n.setAttribute(u,""):ec(n,u,o)}}}function Tn(n,a,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":at("error",n),at("load",n);var o=!1,f=!1,h;for(h in u)if(u.hasOwnProperty(h)){var S=u[h];if(S!=null)switch(h){case"src":o=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:Rt(n,a,h,S,u,null)}}f&&Rt(n,a,"srcSet",u.srcSet,u,null),o&&Rt(n,a,"src",u.src,u,null);return;case"input":at("invalid",n);var v=h=S=f=null,B=null,ee=null;for(o in u)if(u.hasOwnProperty(o)){var oe=u[o];if(oe!=null)switch(o){case"name":f=oe;break;case"type":S=oe;break;case"checked":B=oe;break;case"defaultChecked":ee=oe;break;case"value":h=oe;break;case"defaultValue":v=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(i(137,a));break;default:Rt(n,a,o,oe,u,null)}}ay(n,h,v,B,ee,S,f,!1),nc(n);return;case"select":at("invalid",n),o=S=h=null;for(f in u)if(u.hasOwnProperty(f)&&(v=u[f],v!=null))switch(f){case"value":h=v;break;case"defaultValue":S=v;break;case"multiple":o=v;default:Rt(n,a,f,v,u,null)}a=h,u=S,n.multiple=!!o,a!=null?fu(n,!!o,a,!1):u!=null&&fu(n,!!o,u,!0);return;case"textarea":at("invalid",n),h=f=o=null;for(S in u)if(u.hasOwnProperty(S)&&(v=u[S],v!=null))switch(S){case"value":o=v;break;case"defaultValue":f=v;break;case"children":h=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(i(91));break;default:Rt(n,a,S,v,u,null)}uy(n,o,f,h),nc(n);return;case"option":for(B in u)if(u.hasOwnProperty(B)&&(o=u[B],o!=null))switch(B){case"selected":n.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:Rt(n,a,B,o,u,null)}return;case"dialog":at("beforetoggle",n),at("toggle",n),at("cancel",n),at("close",n);break;case"iframe":case"object":at("load",n);break;case"video":case"audio":for(o=0;o<ko.length;o++)at(ko[o],n);break;case"image":at("error",n),at("load",n);break;case"details":at("toggle",n);break;case"embed":case"source":case"link":at("error",n),at("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ee in u)if(u.hasOwnProperty(ee)&&(o=u[ee],o!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:Rt(n,a,ee,o,u,null)}return;default:if($0(a)){for(oe in u)u.hasOwnProperty(oe)&&(o=u[oe],o!==void 0&&Dp(n,a,oe,o,u,void 0));return}}for(v in u)u.hasOwnProperty(v)&&(o=u[v],o!=null&&Rt(n,a,v,o,u,null))}function Cw(n,a,u,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,h=null,S=null,v=null,B=null,ee=null,oe=null;for(re in u){var ce=u[re];if(u.hasOwnProperty(re)&&ce!=null)switch(re){case"checked":break;case"value":break;case"defaultValue":B=ce;default:o.hasOwnProperty(re)||Rt(n,a,re,null,o,ce)}}for(var ne in o){var re=o[ne];if(ce=u[ne],o.hasOwnProperty(ne)&&(re!=null||ce!=null))switch(ne){case"type":h=re;break;case"name":f=re;break;case"checked":ee=re;break;case"defaultChecked":oe=re;break;case"value":S=re;break;case"defaultValue":v=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(i(137,a));break;default:re!==ce&&Rt(n,a,ne,re,o,ce)}}V0(n,S,v,B,ee,oe,h,f);return;case"select":re=S=v=ne=null;for(h in u)if(B=u[h],u.hasOwnProperty(h)&&B!=null)switch(h){case"value":break;case"multiple":re=B;default:o.hasOwnProperty(h)||Rt(n,a,h,null,o,B)}for(f in o)if(h=o[f],B=u[f],o.hasOwnProperty(f)&&(h!=null||B!=null))switch(f){case"value":ne=h;break;case"defaultValue":v=h;break;case"multiple":S=h;default:h!==B&&Rt(n,a,f,h,o,B)}a=v,u=S,o=re,ne!=null?fu(n,!!u,ne,!1):!!o!=!!u&&(a!=null?fu(n,!!u,a,!0):fu(n,!!u,u?[]:"",!1));return;case"textarea":re=ne=null;for(v in u)if(f=u[v],u.hasOwnProperty(v)&&f!=null&&!o.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Rt(n,a,v,null,o,f)}for(S in o)if(f=o[S],h=u[S],o.hasOwnProperty(S)&&(f!=null||h!=null))switch(S){case"value":ne=f;break;case"defaultValue":re=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(i(91));break;default:f!==h&&Rt(n,a,S,f,o,h)}iy(n,ne,re);return;case"option":for(var ze in u)if(ne=u[ze],u.hasOwnProperty(ze)&&ne!=null&&!o.hasOwnProperty(ze))switch(ze){case"selected":n.selected=!1;break;default:Rt(n,a,ze,null,o,ne)}for(B in o)if(ne=o[B],re=u[B],o.hasOwnProperty(B)&&ne!==re&&(ne!=null||re!=null))switch(B){case"selected":n.selected=ne&&typeof ne!="function"&&typeof ne!="symbol";break;default:Rt(n,a,B,ne,o,re)}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 Be in u)ne=u[Be],u.hasOwnProperty(Be)&&ne!=null&&!o.hasOwnProperty(Be)&&Rt(n,a,Be,null,o,ne);for(ee in o)if(ne=o[ee],re=u[ee],o.hasOwnProperty(ee)&&ne!==re&&(ne!=null||re!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(i(137,a));break;default:Rt(n,a,ee,ne,o,re)}return;default:if($0(a)){for(var Nt in u)ne=u[Nt],u.hasOwnProperty(Nt)&&ne!==void 0&&!o.hasOwnProperty(Nt)&&Dp(n,a,Nt,void 0,o,ne);for(oe in o)ne=o[oe],re=u[oe],!o.hasOwnProperty(oe)||ne===re||ne===void 0&&re===void 0||Dp(n,a,oe,ne,o,re);return}}for(var V in u)ne=u[V],u.hasOwnProperty(V)&&ne!=null&&!o.hasOwnProperty(V)&&Rt(n,a,V,null,o,ne);for(ce in o)ne=o[ce],re=u[ce],!o.hasOwnProperty(ce)||ne===re||ne==null&&re==null||Rt(n,a,ce,ne,o,re)}var kp=null,Lp=null;function Wc(n){return n.nodeType===9?n:n.ownerDocument}function lS(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function oS(n,a){if(n===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&a==="foreignObject"?0:n}function Mp(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var wp=null;function Aw(){var n=window.event;return n&&n.type==="popstate"?n===wp?!1:(wp=n,!0):(wp=null,!1)}var sS=typeof setTimeout=="function"?setTimeout:void 0,_w=typeof clearTimeout=="function"?clearTimeout:void 0,cS=typeof Promise=="function"?Promise:void 0,xw=typeof queueMicrotask=="function"?queueMicrotask:typeof cS<"u"?function(n){return cS.resolve(null).then(n).catch(vw)}:sS;function vw(n){setTimeout(function(){throw n})}function Ga(n){return n==="head"}function fS(n,a){var u=a,o=0,f=0;do{var h=u.nextSibling;if(n.removeChild(u),h&&h.nodeType===8)if(u=h.data,u==="/$"){if(0<o&&8>o){u=o;var S=n.ownerDocument;if(u&1&&Mo(S.documentElement),u&2&&Mo(S.body),u&4)for(u=S.head,Mo(u),S=u.firstChild;S;){var v=S.nextSibling,B=S.nodeName;S[na]||B==="SCRIPT"||B==="STYLE"||B==="LINK"&&S.rel.toLowerCase()==="stylesheet"||u.removeChild(S),S=v}}if(f===0){n.removeChild(h),Yo(a);return}f--}else u==="$"||u==="$?"||u==="$!"?f++:o=u.charCodeAt(0)-48;else o=0;u=h}while(u);Yo(a)}function Bp(n){var a=n.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var u=a;switch(a=a.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":Bp(u),z0(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}n.removeChild(u)}}function Rw(n,a,u,o){for(;n.nodeType===1;){var f=u;if(n.nodeName.toLowerCase()!==a.toLowerCase()){if(!o&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(o){if(!n[na])switch(a){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(h=n.getAttribute("rel"),h==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(h!==f.rel||n.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||n.getAttribute("title")!==(f.title==null?null:f.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(h=n.getAttribute("src"),(h!==(f.src==null?null:f.src)||n.getAttribute("type")!==(f.type==null?null:f.type)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&h&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(a==="input"&&n.type==="hidden"){var h=f.name==null?null:""+f.name;if(f.type==="hidden"&&n.getAttribute("name")===h)return n}else return n;if(n=Nr(n.nextSibling),n===null)break}return null}function Nw(n,a,u){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!u||(n=Nr(n.nextSibling),n===null))return null;return n}function Pp(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState==="complete"}function Ow(n,a){var u=n.ownerDocument;if(n.data!=="$?"||u.readyState==="complete")a();else{var o=function(){a(),u.removeEventListener("DOMContentLoaded",o)};u.addEventListener("DOMContentLoaded",o),n._reactRetry=o}}function Nr(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return n}var Up=null;function dS(n){n=n.previousSibling;for(var a=0;n;){if(n.nodeType===8){var u=n.data;if(u==="$"||u==="$!"||u==="$?"){if(a===0)return n;a--}else u==="/$"&&a++}n=n.previousSibling}return null}function hS(n,a,u){switch(a=Wc(u),n){case"html":if(n=a.documentElement,!n)throw Error(i(452));return n;case"head":if(n=a.head,!n)throw Error(i(453));return n;case"body":if(n=a.body,!n)throw Error(i(454));return n;default:throw Error(i(451))}}function Mo(n){for(var a=n.attributes;a.length;)n.removeAttributeNode(a[0]);z0(n)}var Ar=new Map,pS=new Set;function Zc(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var ba=Q.d;Q.d={f:Iw,r:Dw,D:kw,C:Lw,L:Mw,m:ww,X:Pw,S:Bw,M:Uw};function Iw(){var n=ba.f(),a=jc();return n||a}function Dw(n){var a=lu(n);a!==null&&a.tag===5&&a.type==="form"?MT(a):ba.r(n)}var zu=typeof document>"u"?null:document;function mS(n,a,u){var o=zu;if(o&&typeof a=="string"&&a){var f=gr(a);f='link[rel="'+n+'"][href="'+f+'"]',typeof u=="string"&&(f+='[crossorigin="'+u+'"]'),pS.has(f)||(pS.add(f),n={rel:n,crossOrigin:u,href:a},o.querySelector(f)===null&&(a=o.createElement("link"),Tn(a,"link",n),dn(a),o.head.appendChild(a)))}}function kw(n){ba.D(n),mS("dns-prefetch",n,null)}function Lw(n,a){ba.C(n,a),mS("preconnect",n,a)}function Mw(n,a,u){ba.L(n,a,u);var o=zu;if(o&&n&&a){var f='link[rel="preload"][as="'+gr(a)+'"]';a==="image"&&u&&u.imageSrcSet?(f+='[imagesrcset="'+gr(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(f+='[imagesizes="'+gr(u.imageSizes)+'"]')):f+='[href="'+gr(n)+'"]';var h=f;switch(a){case"style":h=Yu(n);break;case"script":h=ju(n)}Ar.has(h)||(n=b({rel:"preload",href:a==="image"&&u&&u.imageSrcSet?void 0:n,as:a},u),Ar.set(h,n),o.querySelector(f)!==null||a==="style"&&o.querySelector(wo(h))||a==="script"&&o.querySelector(Bo(h))||(a=o.createElement("link"),Tn(a,"link",n),dn(a),o.head.appendChild(a)))}}function ww(n,a){ba.m(n,a);var u=zu;if(u&&n){var o=a&&typeof a.as=="string"?a.as:"script",f='link[rel="modulepreload"][as="'+gr(o)+'"][href="'+gr(n)+'"]',h=f;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=ju(n)}if(!Ar.has(h)&&(n=b({rel:"modulepreload",href:n},a),Ar.set(h,n),u.querySelector(f)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Bo(h)))return}o=u.createElement("link"),Tn(o,"link",n),dn(o),u.head.appendChild(o)}}}function Bw(n,a,u){ba.S(n,a,u);var o=zu;if(o&&n){var f=ou(o).hoistableStyles,h=Yu(n);a=a||"default";var S=f.get(h);if(!S){var v={loading:0,preload:null};if(S=o.querySelector(wo(h)))v.loading=5;else{n=b({rel:"stylesheet",href:n,"data-precedence":a},u),(u=Ar.get(h))&&Hp(n,u);var B=S=o.createElement("link");dn(B),Tn(B,"link",n),B._p=new Promise(function(ee,oe){B.onload=ee,B.onerror=oe}),B.addEventListener("load",function(){v.loading|=1}),B.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Jc(S,a,o)}S={type:"stylesheet",instance:S,count:1,state:v},f.set(h,S)}}}function Pw(n,a){ba.X(n,a);var u=zu;if(u&&n){var o=ou(u).hoistableScripts,f=ju(n),h=o.get(f);h||(h=u.querySelector(Bo(f)),h||(n=b({src:n,async:!0},a),(a=Ar.get(f))&&Fp(n,a),h=u.createElement("script"),dn(h),Tn(h,"link",n),u.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},o.set(f,h))}}function Uw(n,a){ba.M(n,a);var u=zu;if(u&&n){var o=ou(u).hoistableScripts,f=ju(n),h=o.get(f);h||(h=u.querySelector(Bo(f)),h||(n=b({src:n,async:!0,type:"module"},a),(a=Ar.get(f))&&Fp(n,a),h=u.createElement("script"),dn(h),Tn(h,"link",n),u.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},o.set(f,h))}}function gS(n,a,u,o){var f=(f=Ee.current)?Zc(f):null;if(!f)throw Error(i(446));switch(n){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(a=Yu(u.href),u=ou(f).hoistableStyles,o=u.get(a),o||(o={type:"style",instance:null,count:0,state:null},u.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){n=Yu(u.href);var h=ou(f).hoistableStyles,S=h.get(n);if(S||(f=f.ownerDocument||f,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(n,S),(h=f.querySelector(wo(n)))&&!h._p&&(S.instance=h,S.state.loading=5),Ar.has(n)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},Ar.set(n,u),h||Hw(f,n,u,S.state))),a&&o===null)throw Error(i(528,""));return S}if(a&&o!==null)throw Error(i(529,""));return null;case"script":return a=u.async,u=u.src,typeof u=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=ju(u),u=ou(f).hoistableScripts,o=u.get(a),o||(o={type:"script",instance:null,count:0,state:null},u.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,n))}}function Yu(n){return'href="'+gr(n)+'"'}function wo(n){return'link[rel="stylesheet"]['+n+"]"}function bS(n){return b({},n,{"data-precedence":n.precedence,precedence:null})}function Hw(n,a,u,o){n.querySelector('link[rel="preload"][as="style"]['+a+"]")?o.loading=1:(a=n.createElement("link"),o.preload=a,a.addEventListener("load",function(){return o.loading|=1}),a.addEventListener("error",function(){return o.loading|=2}),Tn(a,"link",u),dn(a),n.head.appendChild(a))}function ju(n){return'[src="'+gr(n)+'"]'}function Bo(n){return"script[async]"+n}function ES(n,a,u){if(a.count++,a.instance===null)switch(a.type){case"style":var o=n.querySelector('style[data-href~="'+gr(u.href)+'"]');if(o)return a.instance=o,dn(o),o;var f=b({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return o=(n.ownerDocument||n).createElement("style"),dn(o),Tn(o,"style",f),Jc(o,u.precedence,n),a.instance=o;case"stylesheet":f=Yu(u.href);var h=n.querySelector(wo(f));if(h)return a.state.loading|=4,a.instance=h,dn(h),h;o=bS(u),(f=Ar.get(f))&&Hp(o,f),h=(n.ownerDocument||n).createElement("link"),dn(h);var S=h;return S._p=new Promise(function(v,B){S.onload=v,S.onerror=B}),Tn(h,"link",o),a.state.loading|=4,Jc(h,u.precedence,n),a.instance=h;case"script":return h=ju(u.src),(f=n.querySelector(Bo(h)))?(a.instance=f,dn(f),f):(o=u,(f=Ar.get(h))&&(o=b({},u),Fp(o,f)),n=n.ownerDocument||n,f=n.createElement("script"),dn(f),Tn(f,"link",o),n.head.appendChild(f),a.instance=f);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(o=a.instance,a.state.loading|=4,Jc(o,u.precedence,n));return a.instance}function Jc(n,a,u){for(var o=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=o.length?o[o.length-1]:null,h=f,S=0;S<o.length;S++){var v=o[S];if(v.dataset.precedence===a)h=v;else if(h!==f)break}h?h.parentNode.insertBefore(n,h.nextSibling):(a=u.nodeType===9?u.head:u,a.insertBefore(n,a.firstChild))}function Hp(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function Fp(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var ef=null;function yS(n,a,u){if(ef===null){var o=new Map,f=ef=new Map;f.set(u,o)}else f=ef,o=f.get(u),o||(o=new Map,f.set(u,o));if(o.has(n))return o;for(o.set(n,null),u=u.getElementsByTagName(n),f=0;f<u.length;f++){var h=u[f];if(!(h[na]||h[He]||n==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var S=h.getAttribute(a)||"";S=n+S;var v=o.get(S);v?v.push(h):o.set(S,[h])}}return o}function TS(n,a,u){n=n.ownerDocument||n,n.head.insertBefore(u,a==="title"?n.querySelector("head > title"):null)}function Fw(n,a,u){if(u===1||a.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return n=a.disabled,typeof a.precedence=="string"&&n==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function SS(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}var Po=null;function zw(){}function Yw(n,a,u){if(Po===null)throw Error(i(475));var o=Po;if(a.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var f=Yu(u.href),h=n.querySelector(wo(f));if(h){n=h._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(o.count++,o=tf.bind(o),n.then(o,o)),a.state.loading|=4,a.instance=h,dn(h);return}h=n.ownerDocument||n,u=bS(u),(f=Ar.get(f))&&Hp(u,f),h=h.createElement("link"),dn(h);var S=h;S._p=new Promise(function(v,B){S.onload=v,S.onerror=B}),Tn(h,"link",u),a.instance=h}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(o.count++,a=tf.bind(o),n.addEventListener("load",a),n.addEventListener("error",a))}}function jw(){if(Po===null)throw Error(i(475));var n=Po;return n.stylesheets&&n.count===0&&zp(n,n.stylesheets),0<n.count?function(a){var u=setTimeout(function(){if(n.stylesheets&&zp(n,n.stylesheets),n.unsuspend){var o=n.unsuspend;n.unsuspend=null,o()}},6e4);return n.unsuspend=a,function(){n.unsuspend=null,clearTimeout(u)}}:null}function tf(){if(this.count--,this.count===0){if(this.stylesheets)zp(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var nf=null;function zp(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,nf=new Map,a.forEach(qw,n),nf=null,tf.call(n))}function qw(n,a){if(!(a.state.loading&4)){var u=nf.get(n);if(u)var o=u.get(null);else{u=new Map,nf.set(n,u);for(var f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<f.length;h++){var S=f[h];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(u.set(S.dataset.precedence,S),o=S)}o&&u.set(null,o)}f=a.instance,S=f.getAttribute("data-precedence"),h=u.get(S)||o,h===o&&u.set(null,f),u.set(S,f),this.count++,o=tf.bind(this),f.addEventListener("load",o),f.addEventListener("error",o),h?h.parentNode.insertBefore(f,h.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(f,n.firstChild)),a.state.loading|=4}}var Uo={$$typeof:M,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function Vw(n,a,u,o,f,h,S,v){this.tag=1,this.containerInfo=n,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=Vl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vl(0),this.hiddenUpdates=Vl(null),this.identifierPrefix=o,this.onUncaughtError=f,this.onCaughtError=h,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function CS(n,a,u,o,f,h,S,v,B,ee,oe,ce){return n=new Vw(n,a,u,S,v,B,ee,ce),a=1,h===!0&&(a|=24),h=er(3,null,null,a),n.current=h,h.stateNode=n,a=Ch(),a.refCount++,n.pooledCache=a,a.refCount++,h.memoizedState={element:o,isDehydrated:u,cache:a},vh(h),n}function AS(n){return n?(n=Tu,n):Tu}function _S(n,a,u,o,f,h){f=AS(f),o.context===null?o.context=f:o.pendingContext=f,o=La(a),o.payload={element:u},h=h===void 0?null:h,h!==null&&(o.callback=h),u=Ma(n,o,a),u!==null&&(ir(u,n,a),po(u,n,a))}function xS(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var u=n.retryLane;n.retryLane=u!==0&&u<a?u:a}}function Yp(n,a){xS(n,a),(n=n.alternate)&&xS(n,a)}function vS(n){if(n.tag===13){var a=yu(n,67108864);a!==null&&ir(a,n,67108864),Yp(n,67108864)}}var rf=!0;function Gw(n,a,u,o){var f=H.T;H.T=null;var h=Q.p;try{Q.p=2,jp(n,a,u,o)}finally{Q.p=h,H.T=f}}function $w(n,a,u,o){var f=H.T;H.T=null;var h=Q.p;try{Q.p=8,jp(n,a,u,o)}finally{Q.p=h,H.T=f}}function jp(n,a,u,o){if(rf){var f=qp(o);if(f===null)Ip(n,a,o,af,u),NS(n,o);else if(Qw(f,n,a,u,o))o.stopPropagation();else if(NS(n,o),a&4&&-1<Xw.indexOf(n)){for(;f!==null;){var h=lu(f);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var S=fn(h.pendingLanes);if(S!==0){var v=h;for(v.pendingLanes|=2,v.entangledLanes|=2;S;){var B=1<<31-Ae(S);v.entanglements[1]|=B,S&=~B}Xr(h),(At&6)===0&&(zc=ke()+500,Do(0))}}break;case 13:v=yu(h,2),v!==null&&ir(v,h,2),jc(),Yp(h,2)}if(h=qp(o),h===null&&Ip(n,a,o,af,u),h===f)break;f=h}f!==null&&o.stopPropagation()}else Ip(n,a,o,null,u)}}function qp(n){return n=Q0(n),Vp(n)}var af=null;function Vp(n){if(af=null,n=uu(n),n!==null){var a=s(n);if(a===null)n=null;else{var u=a.tag;if(u===13){if(n=c(a),n!==null)return n;n=null}else if(u===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}return af=n,null}function RS(n){switch(n){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(Le()){case je:return 2;case nt:return 8;case Et:case Ie:return 32;case nn:return 268435456;default:return 32}default:return 32}}var Gp=!1,$a=null,Xa=null,Qa=null,Ho=new Map,Fo=new Map,Ka=[],Xw="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 NS(n,a){switch(n){case"focusin":case"focusout":$a=null;break;case"dragenter":case"dragleave":Xa=null;break;case"mouseover":case"mouseout":Qa=null;break;case"pointerover":case"pointerout":Ho.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fo.delete(a.pointerId)}}function zo(n,a,u,o,f,h){return n===null||n.nativeEvent!==h?(n={blockedOn:a,domEventName:u,eventSystemFlags:o,nativeEvent:h,targetContainers:[f]},a!==null&&(a=lu(a),a!==null&&vS(a)),n):(n.eventSystemFlags|=o,a=n.targetContainers,f!==null&&a.indexOf(f)===-1&&a.push(f),n)}function Qw(n,a,u,o,f){switch(a){case"focusin":return $a=zo($a,n,a,u,o,f),!0;case"dragenter":return Xa=zo(Xa,n,a,u,o,f),!0;case"mouseover":return Qa=zo(Qa,n,a,u,o,f),!0;case"pointerover":var h=f.pointerId;return Ho.set(h,zo(Ho.get(h)||null,n,a,u,o,f)),!0;case"gotpointercapture":return h=f.pointerId,Fo.set(h,zo(Fo.get(h)||null,n,a,u,o,f)),!0}return!1}function OS(n){var a=uu(n.target);if(a!==null){var u=s(a);if(u!==null){if(a=u.tag,a===13){if(a=c(u),a!==null){n.blockedOn=a,_e(n.priority,function(){if(u.tag===13){var o=ar();o=Gl(o);var f=yu(u,o);f!==null&&ir(f,u,o),Yp(u,o)}});return}}else if(a===3&&u.stateNode.current.memoizedState.isDehydrated){n.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}n.blockedOn=null}function uf(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var u=qp(n.nativeEvent);if(u===null){u=n.nativeEvent;var o=new u.constructor(u.type,u);X0=o,u.target.dispatchEvent(o),X0=null}else return a=lu(u),a!==null&&vS(a),n.blockedOn=u,!1;a.shift()}return!0}function IS(n,a,u){uf(n)&&u.delete(a)}function Kw(){Gp=!1,$a!==null&&uf($a)&&($a=null),Xa!==null&&uf(Xa)&&(Xa=null),Qa!==null&&uf(Qa)&&(Qa=null),Ho.forEach(IS),Fo.forEach(IS)}function lf(n,a){n.blockedOn===a&&(n.blockedOn=null,Gp||(Gp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Kw)))}var of=null;function DS(n){of!==n&&(of=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){of===n&&(of=null);for(var a=0;a<n.length;a+=3){var u=n[a],o=n[a+1],f=n[a+2];if(typeof o!="function"){if(Vp(o||u)===null)continue;break}var h=lu(u);h!==null&&(n.splice(a,3),a-=3,Vh(h,{pending:!0,data:f,method:u.method,action:o},o,f))}}))}function Yo(n){function a(B){return lf(B,n)}$a!==null&&lf($a,n),Xa!==null&&lf(Xa,n),Qa!==null&&lf(Qa,n),Ho.forEach(a),Fo.forEach(a);for(var u=0;u<Ka.length;u++){var o=Ka[u];o.blockedOn===n&&(o.blockedOn=null)}for(;0<Ka.length&&(u=Ka[0],u.blockedOn===null);)OS(u),u.blockedOn===null&&Ka.shift();if(u=(n.ownerDocument||n).$$reactFormReplay,u!=null)for(o=0;o<u.length;o+=3){var f=u[o],h=u[o+1],S=f[qe]||null;if(typeof h=="function")S||DS(u);else if(S){var v=null;if(h&&h.hasAttribute("formAction")){if(f=h,S=h[qe]||null)v=S.formAction;else if(Vp(f)!==null)continue}else v=S.action;typeof v=="function"?u[o+1]=v:(u.splice(o,3),o-=3),DS(u)}}}function $p(n){this._internalRoot=n}sf.prototype.render=$p.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(i(409));var u=a.current,o=ar();_S(u,o,n,a,null,null)},sf.prototype.unmount=$p.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;_S(n.current,2,null,n,null,null),jc(),a[Ct]=null}};function sf(n){this._internalRoot=n}sf.prototype.unstable_scheduleHydration=function(n){if(n){var a=Js();n={blockedOn:null,target:n,priority:a};for(var u=0;u<Ka.length&&a!==0&&a<Ka[u].priority;u++);Ka.splice(u,0,n),u===0&&OS(n)}};var kS=t.version;if(kS!=="19.1.0")throw Error(i(527,kS,"19.1.0"));Q.findDOMNode=function(n){var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(i(188)):(n=Object.keys(n).join(","),Error(i(268,n)));return n=p(a),n=n!==null?m(n):null,n=n===null?null:n.stateNode,n};var Ww={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var cf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cf.isDisabled&&cf.supportsFiber)try{ae=cf.inject(Ww),de=cf}catch{}}return qu.createRoot=function(n,a){if(!l(n))throw Error(i(299));var u=!1,o="",f=XT,h=QT,S=KT,v=null;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(h=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(v=a.unstable_transitionCallbacks)),a=CS(n,1,!1,null,null,u,o,f,h,S,v,null),n[Ct]=a.current,Op(n),new $p(a)},qu.hydrateRoot=function(n,a,u){if(!l(n))throw Error(i(299));var o=!1,f="",h=XT,S=QT,v=KT,B=null,ee=null;return u!=null&&(u.unstable_strictMode===!0&&(o=!0),u.identifierPrefix!==void 0&&(f=u.identifierPrefix),u.onUncaughtError!==void 0&&(h=u.onUncaughtError),u.onCaughtError!==void 0&&(S=u.onCaughtError),u.onRecoverableError!==void 0&&(v=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(B=u.unstable_transitionCallbacks),u.formState!==void 0&&(ee=u.formState)),a=CS(n,1,!0,a,u??null,o,f,h,S,v,B,ee),a.context=AS(null),u=a.current,o=ar(),o=Gl(o),f=La(o),f.callback=null,Ma(u,f,o),u=o,a.current.lanes=u,ea(a,u),Xr(a),n[Ct]=a.current,Op(n),new sf(a)},qu.version="19.1.0",qu}var rm;function HS(){if(rm)return hf.exports;rm=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),hf.exports=US(),hf.exports}var FS=HS();function Za(){return Za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Za.apply(null,arguments)}function zS(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function YS(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var jS=function(){function e(r){var i=this;this._insertTag=function(l){var s;i.tags.length===0?i.insertionPoint?s=i.insertionPoint.nextSibling:i.prepend?s=i.container.firstChild:s=i.before:s=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(l,s),i.tags.push(l)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(YS(this));var l=this.tags[this.tags.length-1];if(this.isSpeedy){var s=zS(l);try{s.insertRule(i,s.cssRules.length)}catch{}}else l.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){var l;return(l=i.parentNode)==null?void 0:l.removeChild(i)}),this.tags=[],this.ctr=0},e}(),Cn="-ms-",Vo="-moz-",dt="-webkit-",am="comm",bf="rule",Ef="decl",qS="@import",im="@keyframes",VS="@layer",GS=Math.abs,Go=String.fromCharCode,$S=Object.assign;function XS(e,t){return gn(e,0)^45?(((t<<2^gn(e,0))<<2^gn(e,1))<<2^gn(e,2))<<2^gn(e,3):0}function um(e){return e.trim()}function QS(e,t){return(e=t.exec(e))?e[0]:e}function ht(e,t,r){return e.replace(t,r)}function yf(e,t){return e.indexOf(t)}function gn(e,t){return e.charCodeAt(t)|0}function Vu(e,t,r){return e.slice(t,r)}function Or(e){return e.length}function Tf(e){return e.length}function $o(e,t){return t.push(e),e}function KS(e,t){return e.map(t).join("")}var Xo=1,Di=1,lm=0,Ln=0,Wt=0,ki="";function Qo(e,t,r,i,l,s,c){return{value:e,root:t,parent:r,type:i,props:l,children:s,line:Xo,column:Di,length:c,return:""}}function Gu(e,t){return $S(Qo("",null,null,"",null,null,0),e,{length:-e.length},t)}function WS(){return Wt}function ZS(){return Wt=Ln>0?gn(ki,--Ln):0,Di--,Wt===10&&(Di=1,Xo--),Wt}function $n(){return Wt=Ln<lm?gn(ki,Ln++):0,Di++,Wt===10&&(Di=1,Xo++),Wt}function Ir(){return gn(ki,Ln)}function Ko(){return Ln}function $u(e,t){return Vu(ki,e,t)}function Xu(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function om(e){return Xo=Di=1,lm=Or(ki=e),Ln=0,[]}function sm(e){return ki="",e}function Wo(e){return um($u(Ln-1,Sf(e===91?e+2:e===40?e+1:e)))}function JS(e){for(;(Wt=Ir())&&Wt<33;)$n();return Xu(e)>2||Xu(Wt)>3?"":" "}function eC(e,t){for(;--t&&$n()&&!(Wt<48||Wt>102||Wt>57&&Wt<65||Wt>70&&Wt<97););return $u(e,Ko()+(t<6&&Ir()==32&&$n()==32))}function Sf(e){for(;$n();)switch(Wt){case e:return Ln;case 34:case 39:e!==34&&e!==39&&Sf(Wt);break;case 40:e===41&&Sf(e);break;case 92:$n();break}return Ln}function tC(e,t){for(;$n()&&e+Wt!==57;)if(e+Wt===84&&Ir()===47)break;return"/*"+$u(t,Ln-1)+"*"+Go(e===47?e:$n())}function nC(e){for(;!Xu(Ir());)$n();return $u(e,Ln)}function rC(e){return sm(Zo("",null,null,null,[""],e=om(e),0,[0],e))}function Zo(e,t,r,i,l,s,c,d,p){for(var m=0,b=0,E=c,T=0,y=0,R=0,x=1,U=1,D=1,q=0,M="",P=l,k=s,N=i,Y=M;U;)switch(R=q,q=$n()){case 40:if(R!=108&&gn(Y,E-1)==58){yf(Y+=ht(Wo(q),"&","&\f"),"&\f")!=-1&&(D=-1);break}case 34:case 39:case 91:Y+=Wo(q);break;case 9:case 10:case 13:case 32:Y+=JS(R);break;case 92:Y+=eC(Ko()-1,7);continue;case 47:switch(Ir()){case 42:case 47:$o(aC(tC($n(),Ko()),t,r),p);break;default:Y+="/"}break;case 123*x:d[m++]=Or(Y)*D;case 125*x:case 59:case 0:switch(q){case 0:case 125:U=0;case 59+b:D==-1&&(Y=ht(Y,/\f/g,"")),y>0&&Or(Y)-E&&$o(y>32?fm(Y+";",i,r,E-1):fm(ht(Y," ","")+";",i,r,E-2),p);break;case 59:Y+=";";default:if($o(N=cm(Y,t,r,m,b,l,d,M,P=[],k=[],E),s),q===123)if(b===0)Zo(Y,t,N,N,P,s,E,d,k);else switch(T===99&&gn(Y,3)===110?100:T){case 100:case 108:case 109:case 115:Zo(e,N,N,i&&$o(cm(e,N,N,0,0,l,d,M,l,P=[],E),k),l,k,E,d,i?P:k);break;default:Zo(Y,N,N,N,[""],k,0,d,k)}}m=b=y=0,x=D=1,M=Y="",E=c;break;case 58:E=1+Or(Y),y=R;default:if(x<1){if(q==123)--x;else if(q==125&&x++==0&&ZS()==125)continue}switch(Y+=Go(q),q*x){case 38:D=b>0?1:(Y+="\f",-1);break;case 44:d[m++]=(Or(Y)-1)*D,D=1;break;case 64:Ir()===45&&(Y+=Wo($n())),T=Ir(),b=E=Or(M=Y+=nC(Ko())),q++;break;case 45:R===45&&Or(Y)==2&&(x=0)}}return s}function cm(e,t,r,i,l,s,c,d,p,m,b){for(var E=l-1,T=l===0?s:[""],y=Tf(T),R=0,x=0,U=0;R<i;++R)for(var D=0,q=Vu(e,E+1,E=GS(x=c[R])),M=e;D<y;++D)(M=um(x>0?T[D]+" "+q:ht(q,/&\f/g,T[D])))&&(p[U++]=M);return Qo(e,t,r,l===0?bf:d,p,m,b)}function aC(e,t,r){return Qo(e,t,r,am,Go(WS()),Vu(e,2,-2),0)}function fm(e,t,r,i){return Qo(e,t,r,Ef,Vu(e,0,i),Vu(e,i+1,-1),i)}function Li(e,t){for(var r="",i=Tf(e),l=0;l<i;l++)r+=t(e[l],l,e,t)||"";return r}function iC(e,t,r,i){switch(e.type){case VS:if(e.children.length)break;case qS:case Ef:return e.return=e.return||e.value;case am:return"";case im:return e.return=e.value+"{"+Li(e.children,i)+"}";case bf:e.value=e.props.join(",")}return Or(r=Li(e.children,i))?e.return=e.value+"{"+r+"}":""}function uC(e){var t=Tf(e);return function(r,i,l,s){for(var c="",d=0;d<t;d++)c+=e[d](r,i,l,s)||"";return c}}function lC(e){return function(t){t.root||(t=t.return)&&e(t)}}function dm(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var oC=function(t,r,i){for(var l=0,s=0;l=s,s=Ir(),l===38&&s===12&&(r[i]=1),!Xu(s);)$n();return $u(t,Ln)},sC=function(t,r){var i=-1,l=44;do switch(Xu(l)){case 0:l===38&&Ir()===12&&(r[i]=1),t[i]+=oC(Ln-1,r,i);break;case 2:t[i]+=Wo(l);break;case 4:if(l===44){t[++i]=Ir()===58?"&\f":"",r[i]=t[i].length;break}default:t[i]+=Go(l)}while(l=$n());return t},cC=function(t,r){return sm(sC(om(t),r))},hm=new WeakMap,fC=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,i=t.parent,l=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!hm.get(i))&&!l){hm.set(t,!0);for(var s=[],c=cC(r,s),d=i.props,p=0,m=0;p<c.length;p++)for(var b=0;b<d.length;b++,m++)t.props[m]=s[p]?c[p].replace(/&\f/g,d[b]):d[b]+" "+c[p]}}},dC=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function pm(e,t){switch(XS(e,t)){case 5103:return dt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return dt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return dt+e+Vo+e+Cn+e+e;case 6828:case 4268:return dt+e+Cn+e+e;case 6165:return dt+e+Cn+"flex-"+e+e;case 5187:return dt+e+ht(e,/(\w+).+(:[^]+)/,dt+"box-$1$2"+Cn+"flex-$1$2")+e;case 5443:return dt+e+Cn+"flex-item-"+ht(e,/flex-|-self/,"")+e;case 4675:return dt+e+Cn+"flex-line-pack"+ht(e,/align-content|flex-|-self/,"")+e;case 5548:return dt+e+Cn+ht(e,"shrink","negative")+e;case 5292:return dt+e+Cn+ht(e,"basis","preferred-size")+e;case 6060:return dt+"box-"+ht(e,"-grow","")+dt+e+Cn+ht(e,"grow","positive")+e;case 4554:return dt+ht(e,/([^-])(transform)/g,"$1"+dt+"$2")+e;case 6187:return ht(ht(ht(e,/(zoom-|grab)/,dt+"$1"),/(image-set)/,dt+"$1"),e,"")+e;case 5495:case 3959:return ht(e,/(image-set\([^]*)/,dt+"$1$`$1");case 4968:return ht(ht(e,/(.+:)(flex-)?(.*)/,dt+"box-pack:$3"+Cn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+dt+e+e;case 4095:case 3583:case 4068:case 2532:return ht(e,/(.+)-inline(.+)/,dt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Or(e)-1-t>6)switch(gn(e,t+1)){case 109:if(gn(e,t+4)!==45)break;case 102:return ht(e,/(.+:)(.+)-([^]+)/,"$1"+dt+"$2-$3$1"+Vo+(gn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~yf(e,"stretch")?pm(ht(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(gn(e,t+1)!==115)break;case 6444:switch(gn(e,Or(e)-3-(~yf(e,"!important")&&10))){case 107:return ht(e,":",":"+dt)+e;case 101:return ht(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+dt+(gn(e,14)===45?"inline-":"")+"box$3$1"+dt+"$2$3$1"+Cn+"$2box$3")+e}break;case 5936:switch(gn(e,t+11)){case 114:return dt+e+Cn+ht(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return dt+e+Cn+ht(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return dt+e+Cn+ht(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return dt+e+Cn+e+e}return e}var hC=function(t,r,i,l){if(t.length>-1&&!t.return)switch(t.type){case Ef:t.return=pm(t.value,t.length);break;case im:return Li([Gu(t,{value:ht(t.value,"@","@"+dt)})],l);case bf:if(t.length)return KS(t.props,function(s){switch(QS(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Li([Gu(t,{props:[ht(s,/:(read-\w+)/,":"+Vo+"$1")]})],l);case"::placeholder":return Li([Gu(t,{props:[ht(s,/:(plac\w+)/,":"+dt+"input-$1")]}),Gu(t,{props:[ht(s,/:(plac\w+)/,":"+Vo+"$1")]}),Gu(t,{props:[ht(s,/:(plac\w+)/,Cn+"input-$1")]})],l)}return""})}},pC=[hC],mm=function(t){var r=t.key;if(r==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(x){var U=x.getAttribute("data-emotion");U.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var l=t.stylisPlugins||pC,s={},c,d=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(x){for(var U=x.getAttribute("data-emotion").split(" "),D=1;D<U.length;D++)s[U[D]]=!0;d.push(x)});var p,m=[fC,dC];{var b,E=[iC,lC(function(x){b.insert(x)})],T=uC(m.concat(l,E)),y=function(U){return Li(rC(U),T)};p=function(U,D,q,M){b=q,y(U?U+"{"+D.styles+"}":D.styles),M&&(R.inserted[D.name]=!0)}}var R={key:r,sheet:new jS({key:r,container:c,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:p};return R.sheet.hydrate(d),R},Cf={exports:{}},bt={};/** @license React v16.13.1
|
|
40
|
+
`+u.stack}}function mr(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function _y(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function QL(n){var a=_y(n)?"checked":"value",u=Object.getOwnPropertyDescriptor(n.constructor.prototype,a),l=""+n[a];if(!n.hasOwnProperty(a)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var f=u.get,m=u.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return f.call(this)},set:function(S){l=""+S,m.call(this,S)}}),Object.defineProperty(n,a,{enumerable:u.enumerable}),{getValue:function(){return l},setValue:function(S){l=""+S},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function oc(n){n._valueTracker||(n._valueTracker=QL(n))}function vy(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var u=a.getValue(),l="";return n&&(l=_y(n)?n.checked?"true":"false":n.value),n=l,n!==u?(a.setValue(n),!0):!1}function lc(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var KL=/[\n"\\]/g;function gr(n){return n.replace(KL,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function th(n,a,u,l,f,m,S,R){n.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?n.type=S:n.removeAttribute("type"),a!=null?S==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+mr(a)):n.value!==""+mr(a)&&(n.value=""+mr(a)):S!=="submit"&&S!=="reset"||n.removeAttribute("value"),a!=null?nh(n,S,mr(a)):u!=null?nh(n,S,mr(u)):l!=null&&n.removeAttribute("value"),f==null&&m!=null&&(n.defaultChecked=!!m),f!=null&&(n.checked=f&&typeof f!="function"&&typeof f!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?n.name=""+mr(R):n.removeAttribute("name")}function Ry(n,a,u,l,f,m,S,R){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(n.type=m),a!=null||u!=null){if(!(m!=="submit"&&m!=="reset"||a!=null))return;u=u!=null?""+mr(u):"",a=a!=null?""+mr(a):u,R||a===n.value||(n.value=a),n.defaultValue=a}l=l??f,l=typeof l!="function"&&typeof l!="symbol"&&!!l,n.checked=R?n.checked:!!l,n.defaultChecked=!!l,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(n.name=S)}function nh(n,a,u){a==="number"&&lc(n.ownerDocument)===n||n.defaultValue===""+u||(n.defaultValue=""+u)}function hu(n,a,u,l){if(n=n.options,a){a={};for(var f=0;f<u.length;f++)a["$"+u[f]]=!0;for(u=0;u<n.length;u++)f=a.hasOwnProperty("$"+n[u].value),n[u].selected!==f&&(n[u].selected=f),f&&l&&(n[u].defaultSelected=!0)}else{for(u=""+mr(u),a=null,f=0;f<n.length;f++){if(n[f].value===u){n[f].selected=!0,l&&(n[f].defaultSelected=!0);return}a!==null||n[f].disabled||(a=n[f])}a!==null&&(a.selected=!0)}}function Ny(n,a,u){if(a!=null&&(a=""+mr(a),a!==n.value&&(n.value=a),u==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=u!=null?""+mr(u):""}function Oy(n,a,u,l){if(a==null){if(l!=null){if(u!=null)throw Error(i(92));if(te(l)){if(1<l.length)throw Error(i(93));l=l[0]}u=l}u==null&&(u=""),a=u}u=mr(a),n.defaultValue=u,l=n.textContent,l===u&&l!==""&&l!==null&&(n.value=l)}function pu(n,a){if(a){var u=n.firstChild;if(u&&u===n.lastChild&&u.nodeType===3){u.nodeValue=a;return}}n.textContent=a}var WL=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 ky(n,a,u){var l=a.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?l?n.setProperty(a,""):a==="float"?n.cssFloat="":n[a]="":l?n.setProperty(a,u):typeof u!="number"||u===0||WL.has(a)?a==="float"?n.cssFloat=u:n[a]=(""+u).trim():n[a]=u+"px"}function Iy(n,a,u){if(a!=null&&typeof a!="object")throw Error(i(62));if(n=n.style,u!=null){for(var l in u)!u.hasOwnProperty(l)||a!=null&&a.hasOwnProperty(l)||(l.indexOf("--")===0?n.setProperty(l,""):l==="float"?n.cssFloat="":n[l]="");for(var f in a)l=a[f],a.hasOwnProperty(f)&&u[f]!==l&&ky(n,f,l)}else for(var m in a)a.hasOwnProperty(m)&&ky(n,m,a[m])}function rh(n){if(n.indexOf("-")===-1)return!1;switch(n){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 ZL=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"]]),JL=/^[\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 sc(n){return JL.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var ah=null;function ih(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var mu=null,gu=null;function Dy(n){var a=su(n);if(a&&(n=a.stateNode)){var u=n[Ge]||null;e:switch(n=a.stateNode,a.type){case"input":if(th(n,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),a=u.name,u.type==="radio"&&a!=null){for(u=n;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+gr(""+a)+'"][type="radio"]'),a=0;a<u.length;a++){var l=u[a];if(l!==n&&l.form===n.form){var f=l[Ge]||null;if(!f)throw Error(i(90));th(l,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(a=0;a<u.length;a++)l=u[a],l.form===n.form&&vy(l)}break e;case"textarea":Ny(n,u.value,u.defaultValue);break e;case"select":a=u.value,a!=null&&hu(n,!!u.multiple,a,!1)}}}var uh=!1;function wy(n,a,u){if(uh)return n(a,u);uh=!0;try{var l=n(a);return l}finally{if(uh=!1,(mu!==null||gu!==null)&&(Xc(),mu&&(a=mu,n=gu,gu=mu=null,Dy(a),n)))for(a=0;a<n.length;a++)Dy(n[a])}}function nl(n,a){var u=n.stateNode;if(u===null)return null;var l=u[Ge]||null;if(l===null)return null;u=l[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(n=n.type,l=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!l;break e;default:n=!1}if(n)return null;if(u&&typeof u!="function")throw Error(i(231,a,typeof u));return u}var aa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),oh=!1;if(aa)try{var rl={};Object.defineProperty(rl,"passive",{get:function(){oh=!0}}),window.addEventListener("test",rl,rl),window.removeEventListener("test",rl,rl)}catch{oh=!1}var Ia=null,lh=null,cc=null;function Ly(){if(cc)return cc;var n,a=lh,u=a.length,l,f="value"in Ia?Ia.value:Ia.textContent,m=f.length;for(n=0;n<u&&a[n]===f[n];n++);var S=u-n;for(l=1;l<=S&&a[u-l]===f[m-l];l++);return cc=f.slice(n,1<l?1-l:void 0)}function fc(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function dc(){return!0}function My(){return!1}function Yn(n){function a(u,l,f,m,S){this._reactName=u,this._targetInst=f,this.type=l,this.nativeEvent=m,this.target=S,this.currentTarget=null;for(var R in n)n.hasOwnProperty(R)&&(u=n[R],this[R]=u?u(m):m[R]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?dc:My,this.isPropagationStopped=My,this}return b(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=dc)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=dc)},persist:function(){},isPersistent:dc}),a}var bi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hc=Yn(bi),al=b({},bi,{view:0,detail:0}),eM=Yn(al),sh,ch,il,pc=b({},al,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dh,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==il&&(il&&n.type==="mousemove"?(sh=n.screenX-il.screenX,ch=n.screenY-il.screenY):ch=sh=0,il=n),sh)},movementY:function(n){return"movementY"in n?n.movementY:ch}}),By=Yn(pc),tM=b({},pc,{dataTransfer:0}),nM=Yn(tM),rM=b({},al,{relatedTarget:0}),fh=Yn(rM),aM=b({},bi,{animationName:0,elapsedTime:0,pseudoElement:0}),iM=Yn(aM),uM=b({},bi,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),oM=Yn(uM),lM=b({},bi,{data:0}),Py=Yn(lM),sM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cM={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"},fM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dM(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=fM[n])?!!a[n]:!1}function dh(){return dM}var hM=b({},al,{key:function(n){if(n.key){var a=sM[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=fc(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?cM[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dh,charCode:function(n){return n.type==="keypress"?fc(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?fc(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),pM=Yn(hM),mM=b({},pc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Uy=Yn(mM),gM=b({},al,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dh}),bM=Yn(gM),EM=b({},bi,{propertyName:0,elapsedTime:0,pseudoElement:0}),yM=Yn(EM),TM=b({},pc,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),SM=Yn(TM),CM=b({},bi,{newState:0,oldState:0}),AM=Yn(CM),xM=[9,13,27,32],hh=aa&&"CompositionEvent"in window,ul=null;aa&&"documentMode"in document&&(ul=document.documentMode);var _M=aa&&"TextEvent"in window&&!ul,Hy=aa&&(!hh||ul&&8<ul&&11>=ul),Fy=" ",zy=!1;function Yy(n,a){switch(n){case"keyup":return xM.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jy(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var bu=!1;function vM(n,a){switch(n){case"compositionend":return jy(a);case"keypress":return a.which!==32?null:(zy=!0,Fy);case"textInput":return n=a.data,n===Fy&&zy?null:n;default:return null}}function RM(n,a){if(bu)return n==="compositionend"||!hh&&Yy(n,a)?(n=Ly(),cc=lh=Ia=null,bu=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Hy&&a.locale!=="ko"?null:a.data;default:return null}}var NM={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 qy(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!NM[n.type]:a==="textarea"}function Vy(n,a,u,l){mu?gu?gu.push(l):gu=[l]:mu=l,a=ef(a,"onChange"),0<a.length&&(u=new hc("onChange","change",null,u,l),n.push({event:u,listeners:a}))}var ol=null,ll=null;function OM(n){_S(n,0)}function mc(n){var a=tl(n);if(vy(a))return n}function Gy(n,a){if(n==="change")return a}var $y=!1;if(aa){var ph;if(aa){var mh="oninput"in document;if(!mh){var Xy=document.createElement("div");Xy.setAttribute("oninput","return;"),mh=typeof Xy.oninput=="function"}ph=mh}else ph=!1;$y=ph&&(!document.documentMode||9<document.documentMode)}function Qy(){ol&&(ol.detachEvent("onpropertychange",Ky),ll=ol=null)}function Ky(n){if(n.propertyName==="value"&&mc(ll)){var a=[];Vy(a,ll,n,ih(n)),wy(OM,a)}}function kM(n,a,u){n==="focusin"?(Qy(),ol=a,ll=u,ol.attachEvent("onpropertychange",Ky)):n==="focusout"&&Qy()}function IM(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return mc(ll)}function DM(n,a){if(n==="click")return mc(a)}function wM(n,a){if(n==="input"||n==="change")return mc(a)}function LM(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var Jn=typeof Object.is=="function"?Object.is:LM;function sl(n,a){if(Jn(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var u=Object.keys(n),l=Object.keys(a);if(u.length!==l.length)return!1;for(l=0;l<u.length;l++){var f=u[l];if(!Ne.call(a,f)||!Jn(n[f],a[f]))return!1}return!0}function Wy(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Zy(n,a){var u=Wy(n);n=0;for(var l;u;){if(u.nodeType===3){if(l=n+u.textContent.length,n<=a&&l>=a)return{node:u,offset:a-n};n=l}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=Wy(u)}}function Jy(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?Jy(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function eT(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=lc(n.document);a instanceof n.HTMLIFrameElement;){try{var u=typeof a.contentWindow.location.href=="string"}catch{u=!1}if(u)n=a.contentWindow;else break;a=lc(n.document)}return a}function gh(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}var MM=aa&&"documentMode"in document&&11>=document.documentMode,Eu=null,bh=null,cl=null,Eh=!1;function tT(n,a,u){var l=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Eh||Eu==null||Eu!==lc(l)||(l=Eu,"selectionStart"in l&&gh(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}),cl&&sl(cl,l)||(cl=l,l=ef(bh,"onSelect"),0<l.length&&(a=new hc("onSelect","select",null,a,u),n.push({event:a,listeners:l}),a.target=Eu)))}function Ei(n,a){var u={};return u[n.toLowerCase()]=a.toLowerCase(),u["Webkit"+n]="webkit"+a,u["Moz"+n]="moz"+a,u}var yu={animationend:Ei("Animation","AnimationEnd"),animationiteration:Ei("Animation","AnimationIteration"),animationstart:Ei("Animation","AnimationStart"),transitionrun:Ei("Transition","TransitionRun"),transitionstart:Ei("Transition","TransitionStart"),transitioncancel:Ei("Transition","TransitionCancel"),transitionend:Ei("Transition","TransitionEnd")},yh={},nT={};aa&&(nT=document.createElement("div").style,"AnimationEvent"in window||(delete yu.animationend.animation,delete yu.animationiteration.animation,delete yu.animationstart.animation),"TransitionEvent"in window||delete yu.transitionend.transition);function yi(n){if(yh[n])return yh[n];if(!yu[n])return n;var a=yu[n],u;for(u in a)if(a.hasOwnProperty(u)&&u in nT)return yh[n]=a[u];return n}var rT=yi("animationend"),aT=yi("animationiteration"),iT=yi("animationstart"),BM=yi("transitionrun"),PM=yi("transitionstart"),UM=yi("transitioncancel"),uT=yi("transitionend"),oT=new Map,Th="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(" ");Th.push("scrollEnd");function vr(n,a){oT.set(n,a),gi(a,[n])}var lT=new WeakMap;function br(n,a){if(typeof n=="object"&&n!==null){var u=lT.get(n);return u!==void 0?u:(a={value:n,source:a,stack:xy(a)},lT.set(n,a),a)}return{value:n,source:a,stack:xy(a)}}var Er=[],Tu=0,Sh=0;function gc(){for(var n=Tu,a=Sh=Tu=0;a<n;){var u=Er[a];Er[a++]=null;var l=Er[a];Er[a++]=null;var f=Er[a];Er[a++]=null;var m=Er[a];if(Er[a++]=null,l!==null&&f!==null){var S=l.pending;S===null?f.next=f:(f.next=S.next,S.next=f),l.pending=f}m!==0&&sT(u,f,m)}}function bc(n,a,u,l){Er[Tu++]=n,Er[Tu++]=a,Er[Tu++]=u,Er[Tu++]=l,Sh|=l,n.lanes|=l,n=n.alternate,n!==null&&(n.lanes|=l)}function Ch(n,a,u,l){return bc(n,a,u,l),Ec(n)}function Su(n,a){return bc(n,null,null,a),Ec(n)}function sT(n,a,u){n.lanes|=u;var l=n.alternate;l!==null&&(l.lanes|=u);for(var f=!1,m=n.return;m!==null;)m.childLanes|=u,l=m.alternate,l!==null&&(l.childLanes|=u),m.tag===22&&(n=m.stateNode,n===null||n._visibility&1||(f=!0)),n=m,m=m.return;return n.tag===3?(m=n.stateNode,f&&a!==null&&(f=31-Ae(u),n=m.hiddenUpdates,l=n[f],l===null?n[f]=[a]:l.push(a),a.lane=u|536870912),m):null}function Ec(n){if(50<Ml)throw Ml=0,Np=null,Error(i(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var Cu={};function HM(n,a,u,l){this.tag=n,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function er(n,a,u,l){return new HM(n,a,u,l)}function Ah(n){return n=n.prototype,!(!n||!n.isReactComponent)}function ia(n,a){var u=n.alternate;return u===null?(u=er(n.tag,a,n.key,n.mode),u.elementType=n.elementType,u.type=n.type,u.stateNode=n.stateNode,u.alternate=n,n.alternate=u):(u.pendingProps=a,u.type=n.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=n.flags&65011712,u.childLanes=n.childLanes,u.lanes=n.lanes,u.child=n.child,u.memoizedProps=n.memoizedProps,u.memoizedState=n.memoizedState,u.updateQueue=n.updateQueue,a=n.dependencies,u.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},u.sibling=n.sibling,u.index=n.index,u.ref=n.ref,u.refCleanup=n.refCleanup,u}function cT(n,a){n.flags&=65011714;var u=n.alternate;return u===null?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=u.childLanes,n.lanes=u.lanes,n.child=u.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=u.memoizedProps,n.memoizedState=u.memoizedState,n.updateQueue=u.updateQueue,n.type=u.type,a=u.dependencies,n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function yc(n,a,u,l,f,m){var S=0;if(l=n,typeof n=="function")Ah(n)&&(S=1);else if(typeof n=="string")S=z7(n,u,be.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case V:return n=er(31,u,a,f),n.elementType=V,n.lanes=m,n;case v:return Ti(u.children,f,m,a);case x:S=8,f|=24;break;case B:return n=er(12,u,a,f|2),n.elementType=B,n.lanes=m,n;case D:return n=er(13,u,a,f),n.elementType=D,n.lanes=m,n;case N:return n=er(19,u,a,f),n.elementType=N,n.lanes=m,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case O:case L:S=10;break e;case P:S=9;break e;case M:S=11;break e;case z:S=14;break e;case q:S=16,l=null;break e}S=29,u=Error(i(130,n===null?"null":typeof n,"")),l=null}return a=er(S,u,a,f),a.elementType=n,a.type=l,a.lanes=m,a}function Ti(n,a,u,l){return n=er(7,n,l,a),n.lanes=u,n}function xh(n,a,u){return n=er(6,n,null,a),n.lanes=u,n}function _h(n,a,u){return a=er(4,n.children!==null?n.children:[],n.key,a),a.lanes=u,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}var Au=[],xu=0,Tc=null,Sc=0,yr=[],Tr=0,Si=null,ua=1,oa="";function Ci(n,a){Au[xu++]=Sc,Au[xu++]=Tc,Tc=n,Sc=a}function fT(n,a,u){yr[Tr++]=ua,yr[Tr++]=oa,yr[Tr++]=Si,Si=n;var l=ua;n=oa;var f=32-Ae(l)-1;l&=~(1<<f),u+=1;var m=32-Ae(a)+f;if(30<m){var S=f-f%5;m=(l&(1<<S)-1).toString(32),l>>=S,f-=S,ua=1<<32-Ae(a)+f|u<<f|l,oa=m+n}else ua=1<<m|u<<f|l,oa=n}function vh(n){n.return!==null&&(Ci(n,1),fT(n,1,0))}function Rh(n){for(;n===Tc;)Tc=Au[--xu],Au[xu]=null,Sc=Au[--xu],Au[xu]=null;for(;n===Si;)Si=yr[--Tr],yr[Tr]=null,oa=yr[--Tr],yr[Tr]=null,ua=yr[--Tr],yr[Tr]=null}var Dn=null,Vt=null,bt=!1,Ai=null,qr=!1,Nh=Error(i(519));function xi(n){var a=Error(i(418,""));throw hl(br(a,n)),Nh}function dT(n){var a=n.stateNode,u=n.type,l=n.memoizedProps;switch(a[Ye]=n,a[Ge]=l,u){case"dialog":rt("cancel",a),rt("close",a);break;case"iframe":case"object":case"embed":rt("load",a);break;case"video":case"audio":for(u=0;u<Pl.length;u++)rt(Pl[u],a);break;case"source":rt("error",a);break;case"img":case"image":case"link":rt("error",a),rt("load",a);break;case"details":rt("toggle",a);break;case"input":rt("invalid",a),Ry(a,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),oc(a);break;case"select":rt("invalid",a);break;case"textarea":rt("invalid",a),Oy(a,l.value,l.defaultValue,l.children),oc(a)}u=l.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||a.textContent===""+u||l.suppressHydrationWarning===!0||OS(a.textContent,u)?(l.popover!=null&&(rt("beforetoggle",a),rt("toggle",a)),l.onScroll!=null&&rt("scroll",a),l.onScrollEnd!=null&&rt("scrollend",a),l.onClick!=null&&(a.onclick=tf),a=!0):a=!1,a||xi(n)}function hT(n){for(Dn=n.return;Dn;)switch(Dn.tag){case 5:case 13:qr=!1;return;case 27:case 3:qr=!0;return;default:Dn=Dn.return}}function fl(n){if(n!==Dn)return!1;if(!bt)return hT(n),bt=!0,!1;var a=n.tag,u;if((u=a!==3&&a!==27)&&((u=a===5)&&(u=n.type,u=!(u!=="form"&&u!=="button")||qp(n.type,n.memoizedProps)),u=!u),u&&Vt&&xi(n),hT(n),a===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(i(317));e:{for(n=n.nextSibling,a=0;n;){if(n.nodeType===8)if(u=n.data,u==="/$"){if(a===0){Vt=Nr(n.nextSibling);break e}a--}else u!=="$"&&u!=="$!"&&u!=="$?"||a++;n=n.nextSibling}Vt=null}}else a===27?(a=Vt,$a(n.type)?(n=Xp,Xp=null,Vt=n):Vt=a):Vt=Dn?Nr(n.stateNode.nextSibling):null;return!0}function dl(){Vt=Dn=null,bt=!1}function pT(){var n=Ai;return n!==null&&(Vn===null?Vn=n:Vn.push.apply(Vn,n),Ai=null),n}function hl(n){Ai===null?Ai=[n]:Ai.push(n)}var Oh=Z(null),_i=null,la=null;function Da(n,a,u){k(Oh,a._currentValue),a._currentValue=u}function sa(n){n._currentValue=Oh.current,fe(Oh)}function kh(n,a,u){for(;n!==null;){var l=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,l!==null&&(l.childLanes|=a)):l!==null&&(l.childLanes&a)!==a&&(l.childLanes|=a),n===u)break;n=n.return}}function Ih(n,a,u,l){var f=n.child;for(f!==null&&(f.return=n);f!==null;){var m=f.dependencies;if(m!==null){var S=f.child;m=m.firstContext;e:for(;m!==null;){var R=m;m=f;for(var H=0;H<a.length;H++)if(R.context===a[H]){m.lanes|=u,R=m.alternate,R!==null&&(R.lanes|=u),kh(m.return,u,n),l||(S=null);break e}m=R.next}}else if(f.tag===18){if(S=f.return,S===null)throw Error(i(341));S.lanes|=u,m=S.alternate,m!==null&&(m.lanes|=u),kh(S,u,n),S=null}else S=f.child;if(S!==null)S.return=f;else for(S=f;S!==null;){if(S===n){S=null;break}if(f=S.sibling,f!==null){f.return=S.return,S=f;break}S=S.return}f=S}}function pl(n,a,u,l){n=null;for(var f=a,m=!1;f!==null;){if(!m){if((f.flags&524288)!==0)m=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var S=f.alternate;if(S===null)throw Error(i(387));if(S=S.memoizedProps,S!==null){var R=f.type;Jn(f.pendingProps.value,S.value)||(n!==null?n.push(R):n=[R])}}else if(f===Xe.current){if(S=f.alternate,S===null)throw Error(i(387));S.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(n!==null?n.push(jl):n=[jl])}f=f.return}n!==null&&Ih(a,n,u,l),a.flags|=262144}function Cc(n){for(n=n.firstContext;n!==null;){if(!Jn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function vi(n){_i=n,la=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Nn(n){return mT(_i,n)}function Ac(n,a){return _i===null&&vi(n),mT(n,a)}function mT(n,a){var u=a._currentValue;if(a={context:a,memoizedValue:u,next:null},la===null){if(n===null)throw Error(i(308));la=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else la=la.next=a;return u}var FM=typeof AbortController<"u"?AbortController:function(){var n=[],a=this.signal={aborted:!1,addEventListener:function(u,l){n.push(l)}};this.abort=function(){a.aborted=!0,n.forEach(function(u){return u()})}},zM=e.unstable_scheduleCallback,YM=e.unstable_NormalPriority,on={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Dh(){return{controller:new FM,data:new Map,refCount:0}}function ml(n){n.refCount--,n.refCount===0&&zM(YM,function(){n.controller.abort()})}var gl=null,wh=0,_u=0,vu=null;function jM(n,a){if(gl===null){var u=gl=[];wh=0,_u=Mp(),vu={status:"pending",value:void 0,then:function(l){u.push(l)}}}return wh++,a.then(gT,gT),a}function gT(){if(--wh===0&&gl!==null){vu!==null&&(vu.status="fulfilled");var n=gl;gl=null,_u=0,vu=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function qM(n,a){var u=[],l={status:"pending",value:null,reason:null,then:function(f){u.push(f)}};return n.then(function(){l.status="fulfilled",l.value=a;for(var f=0;f<u.length;f++)(0,u[f])(a)},function(f){for(l.status="rejected",l.reason=f,f=0;f<u.length;f++)(0,u[f])(void 0)}),l}var bT=F.S;F.S=function(n,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&jM(n,a),bT!==null&&bT(n,a)};var Ri=Z(null);function Lh(){var n=Ri.current;return n!==null?n:Pt.pooledCache}function xc(n,a){a===null?k(Ri,Ri.current):k(Ri,a.pool)}function ET(){var n=Lh();return n===null?null:{parent:on._currentValue,pool:n}}var bl=Error(i(460)),yT=Error(i(474)),_c=Error(i(542)),Mh={then:function(){}};function TT(n){return n=n.status,n==="fulfilled"||n==="rejected"}function vc(){}function ST(n,a,u){switch(u=n[u],u===void 0?n.push(a):u!==a&&(a.then(vc,vc),a=u),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,AT(n),n;default:if(typeof a.status=="string")a.then(vc,vc);else{if(n=Pt,n!==null&&100<n.shellSuspendCounter)throw Error(i(482));n=a,n.status="pending",n.then(function(l){if(a.status==="pending"){var f=a;f.status="fulfilled",f.value=l}},function(l){if(a.status==="pending"){var f=a;f.status="rejected",f.reason=l}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,AT(n),n}throw El=a,bl}}var El=null;function CT(){if(El===null)throw Error(i(459));var n=El;return El=null,n}function AT(n){if(n===bl||n===_c)throw Error(i(483))}var wa=!1;function Bh(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ph(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function La(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Ma(n,a,u){var l=n.updateQueue;if(l===null)return null;if(l=l.shared,(_t&2)!==0){var f=l.pending;return f===null?a.next=a:(a.next=f.next,f.next=a),l.pending=a,a=Ec(n),sT(n,null,u),a}return bc(n,l,a,u),Ec(n)}function yl(n,a,u){if(a=a.updateQueue,a!==null&&(a=a.shared,(u&4194048)!==0)){var l=a.lanes;l&=n.pendingLanes,u|=l,a.lanes=u,rc(n,u)}}function Uh(n,a){var u=n.updateQueue,l=n.alternate;if(l!==null&&(l=l.updateQueue,u===l)){var f=null,m=null;if(u=u.firstBaseUpdate,u!==null){do{var S={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};m===null?f=m=S:m=m.next=S,u=u.next}while(u!==null);m===null?f=m=a:m=m.next=a}else f=m=a;u={baseState:l.baseState,firstBaseUpdate:f,lastBaseUpdate:m,shared:l.shared,callbacks:l.callbacks},n.updateQueue=u;return}n=u.lastBaseUpdate,n===null?u.firstBaseUpdate=a:n.next=a,u.lastBaseUpdate=a}var Hh=!1;function Tl(){if(Hh){var n=vu;if(n!==null)throw n}}function Sl(n,a,u,l){Hh=!1;var f=n.updateQueue;wa=!1;var m=f.firstBaseUpdate,S=f.lastBaseUpdate,R=f.shared.pending;if(R!==null){f.shared.pending=null;var H=R,J=H.next;H.next=null,S===null?m=J:S.next=J,S=H;var le=n.alternate;le!==null&&(le=le.updateQueue,R=le.lastBaseUpdate,R!==S&&(R===null?le.firstBaseUpdate=J:R.next=J,le.lastBaseUpdate=H))}if(m!==null){var ce=f.baseState;S=0,le=J=H=null,R=m;do{var ne=R.lane&-536870913,re=ne!==R.lane;if(re?(ot&ne)===ne:(l&ne)===ne){ne!==0&&ne===_u&&(Hh=!0),le!==null&&(le=le.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var je=n,Ue=R;ne=a;var kt=u;switch(Ue.tag){case 1:if(je=Ue.payload,typeof je=="function"){ce=je.call(kt,ce,ne);break e}ce=je;break e;case 3:je.flags=je.flags&-65537|128;case 0:if(je=Ue.payload,ne=typeof je=="function"?je.call(kt,ce,ne):je,ne==null)break e;ce=b({},ce,ne);break e;case 2:wa=!0}}ne=R.callback,ne!==null&&(n.flags|=64,re&&(n.flags|=8192),re=f.callbacks,re===null?f.callbacks=[ne]:re.push(ne))}else re={lane:ne,tag:R.tag,payload:R.payload,callback:R.callback,next:null},le===null?(J=le=re,H=ce):le=le.next=re,S|=ne;if(R=R.next,R===null){if(R=f.shared.pending,R===null)break;re=R,R=re.next,re.next=null,f.lastBaseUpdate=re,f.shared.pending=null}}while(!0);le===null&&(H=ce),f.baseState=H,f.firstBaseUpdate=J,f.lastBaseUpdate=le,m===null&&(f.shared.lanes=0),ja|=S,n.lanes=S,n.memoizedState=ce}}function xT(n,a){if(typeof n!="function")throw Error(i(191,n));n.call(a)}function _T(n,a){var u=n.callbacks;if(u!==null)for(n.callbacks=null,n=0;n<u.length;n++)xT(u[n],a)}var Ru=Z(null),Rc=Z(0);function vT(n,a){n=ga,k(Rc,n),k(Ru,a),ga=n|a.baseLanes}function Fh(){k(Rc,ga),k(Ru,Ru.current)}function zh(){ga=Rc.current,fe(Ru),fe(Rc)}var Ba=0,Ze=null,Nt=null,rn=null,Nc=!1,Nu=!1,Ni=!1,Oc=0,Cl=0,Ou=null,VM=0;function Qt(){throw Error(i(321))}function Yh(n,a){if(a===null)return!1;for(var u=0;u<a.length&&u<n.length;u++)if(!Jn(n[u],a[u]))return!1;return!0}function jh(n,a,u,l,f,m){return Ba=m,Ze=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,F.H=n===null||n.memoizedState===null?s3:c3,Ni=!1,m=u(l,f),Ni=!1,Nu&&(m=NT(a,u,l,f)),RT(n),m}function RT(n){F.H=Mc;var a=Nt!==null&&Nt.next!==null;if(Ba=0,rn=Nt=Ze=null,Nc=!1,Cl=0,Ou=null,a)throw Error(i(300));n===null||hn||(n=n.dependencies,n!==null&&Cc(n)&&(hn=!0))}function NT(n,a,u,l){Ze=n;var f=0;do{if(Nu&&(Ou=null),Cl=0,Nu=!1,25<=f)throw Error(i(301));if(f+=1,rn=Nt=null,n.updateQueue!=null){var m=n.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}F.H=ZM,m=a(u,l)}while(Nu);return m}function GM(){var n=F.H,a=n.useState()[0];return a=typeof a.then=="function"?Al(a):a,n=n.useState()[0],(Nt!==null?Nt.memoizedState:null)!==n&&(Ze.flags|=1024),a}function qh(){var n=Oc!==0;return Oc=0,n}function Vh(n,a,u){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~u}function Gh(n){if(Nc){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}Nc=!1}Ba=0,rn=Nt=Ze=null,Nu=!1,Cl=Oc=0,Ou=null}function jn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return rn===null?Ze.memoizedState=rn=n:rn=rn.next=n,rn}function an(){if(Nt===null){var n=Ze.alternate;n=n!==null?n.memoizedState:null}else n=Nt.next;var a=rn===null?Ze.memoizedState:rn.next;if(a!==null)rn=a,Nt=n;else{if(n===null)throw Ze.alternate===null?Error(i(467)):Error(i(310));Nt=n,n={memoizedState:Nt.memoizedState,baseState:Nt.baseState,baseQueue:Nt.baseQueue,queue:Nt.queue,next:null},rn===null?Ze.memoizedState=rn=n:rn=rn.next=n}return rn}function $h(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Al(n){var a=Cl;return Cl+=1,Ou===null&&(Ou=[]),n=ST(Ou,n,a),a=Ze,(rn===null?a.memoizedState:rn.next)===null&&(a=a.alternate,F.H=a===null||a.memoizedState===null?s3:c3),n}function kc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Al(n);if(n.$$typeof===L)return Nn(n)}throw Error(i(438,String(n)))}function Xh(n){var a=null,u=Ze.updateQueue;if(u!==null&&(a=u.memoCache),a==null){var l=Ze.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(a={data:l.data.map(function(f){return f.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),u===null&&(u=$h(),Ze.updateQueue=u),u.memoCache=a,u=a.data[a.index],u===void 0)for(u=a.data[a.index]=Array(n),l=0;l<n;l++)u[l]=_;return a.index++,u}function ca(n,a){return typeof a=="function"?a(n):a}function Ic(n){var a=an();return Qh(a,Nt,n)}function Qh(n,a,u){var l=n.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=u;var f=n.baseQueue,m=l.pending;if(m!==null){if(f!==null){var S=f.next;f.next=m.next,m.next=S}a.baseQueue=f=m,l.pending=null}if(m=n.baseState,f===null)n.memoizedState=m;else{a=f.next;var R=S=null,H=null,J=a,le=!1;do{var ce=J.lane&-536870913;if(ce!==J.lane?(ot&ce)===ce:(Ba&ce)===ce){var ne=J.revertLane;if(ne===0)H!==null&&(H=H.next={lane:0,revertLane:0,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null}),ce===_u&&(le=!0);else if((Ba&ne)===ne){J=J.next,ne===_u&&(le=!0);continue}else ce={lane:0,revertLane:J.revertLane,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null},H===null?(R=H=ce,S=m):H=H.next=ce,Ze.lanes|=ne,ja|=ne;ce=J.action,Ni&&u(m,ce),m=J.hasEagerState?J.eagerState:u(m,ce)}else ne={lane:ce,revertLane:J.revertLane,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null},H===null?(R=H=ne,S=m):H=H.next=ne,Ze.lanes|=ce,ja|=ce;J=J.next}while(J!==null&&J!==a);if(H===null?S=m:H.next=R,!Jn(m,n.memoizedState)&&(hn=!0,le&&(u=vu,u!==null)))throw u;n.memoizedState=m,n.baseState=S,n.baseQueue=H,l.lastRenderedState=m}return f===null&&(l.lanes=0),[n.memoizedState,l.dispatch]}function Kh(n){var a=an(),u=a.queue;if(u===null)throw Error(i(311));u.lastRenderedReducer=n;var l=u.dispatch,f=u.pending,m=a.memoizedState;if(f!==null){u.pending=null;var S=f=f.next;do m=n(m,S.action),S=S.next;while(S!==f);Jn(m,a.memoizedState)||(hn=!0),a.memoizedState=m,a.baseQueue===null&&(a.baseState=m),u.lastRenderedState=m}return[m,l]}function OT(n,a,u){var l=Ze,f=an(),m=bt;if(m){if(u===void 0)throw Error(i(407));u=u()}else u=a();var S=!Jn((Nt||f).memoizedState,u);S&&(f.memoizedState=u,hn=!0),f=f.queue;var R=DT.bind(null,l,f,n);if(xl(2048,8,R,[n]),f.getSnapshot!==a||S||rn!==null&&rn.memoizedState.tag&1){if(l.flags|=2048,ku(9,Dc(),IT.bind(null,l,f,u,a),null),Pt===null)throw Error(i(349));m||(Ba&124)!==0||kT(l,a,u)}return u}function kT(n,a,u){n.flags|=16384,n={getSnapshot:a,value:u},a=Ze.updateQueue,a===null?(a=$h(),Ze.updateQueue=a,a.stores=[n]):(u=a.stores,u===null?a.stores=[n]:u.push(n))}function IT(n,a,u,l){a.value=u,a.getSnapshot=l,wT(a)&<(n)}function DT(n,a,u){return u(function(){wT(a)&<(n)})}function wT(n){var a=n.getSnapshot;n=n.value;try{var u=a();return!Jn(n,u)}catch{return!0}}function LT(n){var a=Su(n,2);a!==null&&ir(a,n,2)}function Wh(n){var a=jn();if(typeof n=="function"){var u=n;if(n=u(),Ni){Se(!0);try{u()}finally{Se(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:n},a}function MT(n,a,u,l){return n.baseState=u,Qh(n,Nt,typeof l=="function"?l:ca)}function $M(n,a,u,l,f){if(Lc(n))throw Error(i(485));if(n=a.action,n!==null){var m={payload:f,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){m.listeners.push(S)}};F.T!==null?u(!0):m.isTransition=!1,l(m),u=a.pending,u===null?(m.next=a.pending=m,BT(a,m)):(m.next=u.next,a.pending=u.next=m)}}function BT(n,a){var u=a.action,l=a.payload,f=n.state;if(a.isTransition){var m=F.T,S={};F.T=S;try{var R=u(f,l),H=F.S;H!==null&&H(S,R),PT(n,a,R)}catch(J){Zh(n,a,J)}finally{F.T=m}}else try{m=u(f,l),PT(n,a,m)}catch(J){Zh(n,a,J)}}function PT(n,a,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(l){UT(n,a,l)},function(l){return Zh(n,a,l)}):UT(n,a,u)}function UT(n,a,u){a.status="fulfilled",a.value=u,HT(a),n.state=u,a=n.pending,a!==null&&(u=a.next,u===a?n.pending=null:(u=u.next,a.next=u,BT(n,u)))}function Zh(n,a,u){var l=n.pending;if(n.pending=null,l!==null){l=l.next;do a.status="rejected",a.reason=u,HT(a),a=a.next;while(a!==l)}n.action=null}function HT(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function FT(n,a){return a}function zT(n,a){if(bt){var u=Pt.formState;if(u!==null){e:{var l=Ze;if(bt){if(Vt){t:{for(var f=Vt,m=qr;f.nodeType!==8;){if(!m){f=null;break t}if(f=Nr(f.nextSibling),f===null){f=null;break t}}m=f.data,f=m==="F!"||m==="F"?f:null}if(f){Vt=Nr(f.nextSibling),l=f.data==="F!";break e}}xi(l)}l=!1}l&&(a=u[0])}}return u=jn(),u.memoizedState=u.baseState=a,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:FT,lastRenderedState:a},u.queue=l,u=u3.bind(null,Ze,l),l.dispatch=u,l=Wh(!1),m=rp.bind(null,Ze,!1,l.queue),l=jn(),f={state:a,dispatch:null,action:n,pending:null},l.queue=f,u=$M.bind(null,Ze,f,m,u),f.dispatch=u,l.memoizedState=n,[a,u,!1]}function YT(n){var a=an();return jT(a,Nt,n)}function jT(n,a,u){if(a=Qh(n,a,FT)[0],n=Ic(ca)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var l=Al(a)}catch(S){throw S===bl?_c:S}else l=a;a=an();var f=a.queue,m=f.dispatch;return u!==a.memoizedState&&(Ze.flags|=2048,ku(9,Dc(),XM.bind(null,f,u),null)),[l,m,n]}function XM(n,a){n.action=a}function qT(n){var a=an(),u=Nt;if(u!==null)return jT(a,u,n);an(),a=a.memoizedState,u=an();var l=u.queue.dispatch;return u.memoizedState=n,[a,l,!1]}function ku(n,a,u,l){return n={tag:n,create:u,deps:l,inst:a,next:null},a=Ze.updateQueue,a===null&&(a=$h(),Ze.updateQueue=a),u=a.lastEffect,u===null?a.lastEffect=n.next=n:(l=u.next,u.next=n,n.next=l,a.lastEffect=n),n}function Dc(){return{destroy:void 0,resource:void 0}}function VT(){return an().memoizedState}function wc(n,a,u,l){var f=jn();l=l===void 0?null:l,Ze.flags|=n,f.memoizedState=ku(1|a,Dc(),u,l)}function xl(n,a,u,l){var f=an();l=l===void 0?null:l;var m=f.memoizedState.inst;Nt!==null&&l!==null&&Yh(l,Nt.memoizedState.deps)?f.memoizedState=ku(a,m,u,l):(Ze.flags|=n,f.memoizedState=ku(1|a,m,u,l))}function GT(n,a){wc(8390656,8,n,a)}function $T(n,a){xl(2048,8,n,a)}function XT(n,a){return xl(4,2,n,a)}function QT(n,a){return xl(4,4,n,a)}function KT(n,a){if(typeof a=="function"){n=n();var u=a(n);return function(){typeof u=="function"?u():a(null)}}if(a!=null)return n=n(),a.current=n,function(){a.current=null}}function WT(n,a,u){u=u!=null?u.concat([n]):null,xl(4,4,KT.bind(null,a,n),u)}function Jh(){}function ZT(n,a){var u=an();a=a===void 0?null:a;var l=u.memoizedState;return a!==null&&Yh(a,l[1])?l[0]:(u.memoizedState=[n,a],n)}function JT(n,a){var u=an();a=a===void 0?null:a;var l=u.memoizedState;if(a!==null&&Yh(a,l[1]))return l[0];if(l=n(),Ni){Se(!0);try{n()}finally{Se(!1)}}return u.memoizedState=[l,a],l}function ep(n,a,u){return u===void 0||(Ba&1073741824)!==0?n.memoizedState=a:(n.memoizedState=u,n=nS(),Ze.lanes|=n,ja|=n,u)}function e3(n,a,u,l){return Jn(u,a)?u:Ru.current!==null?(n=ep(n,u,l),Jn(n,a)||(hn=!0),n):(Ba&42)===0?(hn=!0,n.memoizedState=u):(n=nS(),Ze.lanes|=n,ja|=n,a)}function t3(n,a,u,l,f){var m=ie.p;ie.p=m!==0&&8>m?m:8;var S=F.T,R={};F.T=R,rp(n,!1,a,u);try{var H=f(),J=F.S;if(J!==null&&J(R,H),H!==null&&typeof H=="object"&&typeof H.then=="function"){var le=qM(H,l);_l(n,a,le,ar(n))}else _l(n,a,l,ar(n))}catch(ce){_l(n,a,{then:function(){},status:"rejected",reason:ce},ar())}finally{ie.p=m,F.T=S}}function QM(){}function tp(n,a,u,l){if(n.tag!==5)throw Error(i(476));var f=n3(n).queue;t3(n,f,a,Q,u===null?QM:function(){return r3(n),u(l)})}function n3(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:Q},next:null};var u={};return a.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:u},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function r3(n){var a=n3(n).next.queue;_l(n,a,{},ar())}function np(){return Nn(jl)}function a3(){return an().memoizedState}function i3(){return an().memoizedState}function KM(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var u=ar();n=La(u);var l=Ma(a,n,u);l!==null&&(ir(l,a,u),yl(l,a,u)),a={cache:Dh()},n.payload=a;return}a=a.return}}function WM(n,a,u){var l=ar();u={lane:l,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null},Lc(n)?o3(a,u):(u=Ch(n,a,u,l),u!==null&&(ir(u,n,l),l3(u,a,l)))}function u3(n,a,u){var l=ar();_l(n,a,u,l)}function _l(n,a,u,l){var f={lane:l,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};if(Lc(n))o3(a,f);else{var m=n.alternate;if(n.lanes===0&&(m===null||m.lanes===0)&&(m=a.lastRenderedReducer,m!==null))try{var S=a.lastRenderedState,R=m(S,u);if(f.hasEagerState=!0,f.eagerState=R,Jn(R,S))return bc(n,a,f,0),Pt===null&&gc(),!1}catch{}finally{}if(u=Ch(n,a,f,l),u!==null)return ir(u,n,l),l3(u,a,l),!0}return!1}function rp(n,a,u,l){if(l={lane:2,revertLane:Mp(),action:l,hasEagerState:!1,eagerState:null,next:null},Lc(n)){if(a)throw Error(i(479))}else a=Ch(n,u,l,2),a!==null&&ir(a,n,2)}function Lc(n){var a=n.alternate;return n===Ze||a!==null&&a===Ze}function o3(n,a){Nu=Nc=!0;var u=n.pending;u===null?a.next=a:(a.next=u.next,u.next=a),n.pending=a}function l3(n,a,u){if((u&4194048)!==0){var l=a.lanes;l&=n.pendingLanes,u|=l,a.lanes=u,rc(n,u)}}var Mc={readContext:Nn,use:kc,useCallback:Qt,useContext:Qt,useEffect:Qt,useImperativeHandle:Qt,useLayoutEffect:Qt,useInsertionEffect:Qt,useMemo:Qt,useReducer:Qt,useRef:Qt,useState:Qt,useDebugValue:Qt,useDeferredValue:Qt,useTransition:Qt,useSyncExternalStore:Qt,useId:Qt,useHostTransitionStatus:Qt,useFormState:Qt,useActionState:Qt,useOptimistic:Qt,useMemoCache:Qt,useCacheRefresh:Qt},s3={readContext:Nn,use:kc,useCallback:function(n,a){return jn().memoizedState=[n,a===void 0?null:a],n},useContext:Nn,useEffect:GT,useImperativeHandle:function(n,a,u){u=u!=null?u.concat([n]):null,wc(4194308,4,KT.bind(null,a,n),u)},useLayoutEffect:function(n,a){return wc(4194308,4,n,a)},useInsertionEffect:function(n,a){wc(4,2,n,a)},useMemo:function(n,a){var u=jn();a=a===void 0?null:a;var l=n();if(Ni){Se(!0);try{n()}finally{Se(!1)}}return u.memoizedState=[l,a],l},useReducer:function(n,a,u){var l=jn();if(u!==void 0){var f=u(a);if(Ni){Se(!0);try{u(a)}finally{Se(!1)}}}else f=a;return l.memoizedState=l.baseState=f,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:f},l.queue=n,n=n.dispatch=WM.bind(null,Ze,n),[l.memoizedState,n]},useRef:function(n){var a=jn();return n={current:n},a.memoizedState=n},useState:function(n){n=Wh(n);var a=n.queue,u=u3.bind(null,Ze,a);return a.dispatch=u,[n.memoizedState,u]},useDebugValue:Jh,useDeferredValue:function(n,a){var u=jn();return ep(u,n,a)},useTransition:function(){var n=Wh(!1);return n=t3.bind(null,Ze,n.queue,!0,!1),jn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,u){var l=Ze,f=jn();if(bt){if(u===void 0)throw Error(i(407));u=u()}else{if(u=a(),Pt===null)throw Error(i(349));(ot&124)!==0||kT(l,a,u)}f.memoizedState=u;var m={value:u,getSnapshot:a};return f.queue=m,GT(DT.bind(null,l,m,n),[n]),l.flags|=2048,ku(9,Dc(),IT.bind(null,l,m,u,a),null),u},useId:function(){var n=jn(),a=Pt.identifierPrefix;if(bt){var u=oa,l=ua;u=(l&~(1<<32-Ae(l)-1)).toString(32)+u,a="«"+a+"R"+u,u=Oc++,0<u&&(a+="H"+u.toString(32)),a+="»"}else u=VM++,a="«"+a+"r"+u.toString(32)+"»";return n.memoizedState=a},useHostTransitionStatus:np,useFormState:zT,useActionState:zT,useOptimistic:function(n){var a=jn();a.memoizedState=a.baseState=n;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=u,a=rp.bind(null,Ze,!0,u),u.dispatch=a,[n,a]},useMemoCache:Xh,useCacheRefresh:function(){return jn().memoizedState=KM.bind(null,Ze)}},c3={readContext:Nn,use:kc,useCallback:ZT,useContext:Nn,useEffect:$T,useImperativeHandle:WT,useInsertionEffect:XT,useLayoutEffect:QT,useMemo:JT,useReducer:Ic,useRef:VT,useState:function(){return Ic(ca)},useDebugValue:Jh,useDeferredValue:function(n,a){var u=an();return e3(u,Nt.memoizedState,n,a)},useTransition:function(){var n=Ic(ca)[0],a=an().memoizedState;return[typeof n=="boolean"?n:Al(n),a]},useSyncExternalStore:OT,useId:a3,useHostTransitionStatus:np,useFormState:YT,useActionState:YT,useOptimistic:function(n,a){var u=an();return MT(u,Nt,n,a)},useMemoCache:Xh,useCacheRefresh:i3},ZM={readContext:Nn,use:kc,useCallback:ZT,useContext:Nn,useEffect:$T,useImperativeHandle:WT,useInsertionEffect:XT,useLayoutEffect:QT,useMemo:JT,useReducer:Kh,useRef:VT,useState:function(){return Kh(ca)},useDebugValue:Jh,useDeferredValue:function(n,a){var u=an();return Nt===null?ep(u,n,a):e3(u,Nt.memoizedState,n,a)},useTransition:function(){var n=Kh(ca)[0],a=an().memoizedState;return[typeof n=="boolean"?n:Al(n),a]},useSyncExternalStore:OT,useId:a3,useHostTransitionStatus:np,useFormState:qT,useActionState:qT,useOptimistic:function(n,a){var u=an();return Nt!==null?MT(u,Nt,n,a):(u.baseState=n,[n,u.queue.dispatch])},useMemoCache:Xh,useCacheRefresh:i3},Iu=null,vl=0;function Bc(n){var a=vl;return vl+=1,Iu===null&&(Iu=[]),ST(Iu,n,a)}function Rl(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function Pc(n,a){throw a.$$typeof===E?Error(i(525)):(n=Object.prototype.toString.call(a),Error(i(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function f3(n){var a=n._init;return a(n._payload)}function d3(n){function a(G,Y){if(n){var K=G.deletions;K===null?(G.deletions=[Y],G.flags|=16):K.push(Y)}}function u(G,Y){if(!n)return null;for(;Y!==null;)a(G,Y),Y=Y.sibling;return null}function l(G){for(var Y=new Map;G!==null;)G.key!==null?Y.set(G.key,G):Y.set(G.index,G),G=G.sibling;return Y}function f(G,Y){return G=ia(G,Y),G.index=0,G.sibling=null,G}function m(G,Y,K){return G.index=K,n?(K=G.alternate,K!==null?(K=K.index,K<Y?(G.flags|=67108866,Y):K):(G.flags|=67108866,Y)):(G.flags|=1048576,Y)}function S(G){return n&&G.alternate===null&&(G.flags|=67108866),G}function R(G,Y,K,se){return Y===null||Y.tag!==6?(Y=xh(K,G.mode,se),Y.return=G,Y):(Y=f(Y,K),Y.return=G,Y)}function H(G,Y,K,se){var ve=K.type;return ve===v?le(G,Y,K.props.children,se,K.key):Y!==null&&(Y.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===q&&f3(ve)===Y.type)?(Y=f(Y,K.props),Rl(Y,K),Y.return=G,Y):(Y=yc(K.type,K.key,K.props,null,G.mode,se),Rl(Y,K),Y.return=G,Y)}function J(G,Y,K,se){return Y===null||Y.tag!==4||Y.stateNode.containerInfo!==K.containerInfo||Y.stateNode.implementation!==K.implementation?(Y=_h(K,G.mode,se),Y.return=G,Y):(Y=f(Y,K.children||[]),Y.return=G,Y)}function le(G,Y,K,se,ve){return Y===null||Y.tag!==7?(Y=Ti(K,G.mode,se,ve),Y.return=G,Y):(Y=f(Y,K),Y.return=G,Y)}function ce(G,Y,K){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Y=xh(""+Y,G.mode,K),Y.return=G,Y;if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case T:return K=yc(Y.type,Y.key,Y.props,null,G.mode,K),Rl(K,Y),K.return=G,K;case y:return Y=_h(Y,G.mode,K),Y.return=G,Y;case q:var se=Y._init;return Y=se(Y._payload),ce(G,Y,K)}if(te(Y)||$(Y))return Y=Ti(Y,G.mode,K,null),Y.return=G,Y;if(typeof Y.then=="function")return ce(G,Bc(Y),K);if(Y.$$typeof===L)return ce(G,Ac(G,Y),K);Pc(G,Y)}return null}function ne(G,Y,K,se){var ve=Y!==null?Y.key:null;if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return ve!==null?null:R(G,Y,""+K,se);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case T:return K.key===ve?H(G,Y,K,se):null;case y:return K.key===ve?J(G,Y,K,se):null;case q:return ve=K._init,K=ve(K._payload),ne(G,Y,K,se)}if(te(K)||$(K))return ve!==null?null:le(G,Y,K,se,null);if(typeof K.then=="function")return ne(G,Y,Bc(K),se);if(K.$$typeof===L)return ne(G,Y,Ac(G,K),se);Pc(G,K)}return null}function re(G,Y,K,se,ve){if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return G=G.get(K)||null,R(Y,G,""+se,ve);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case T:return G=G.get(se.key===null?K:se.key)||null,H(Y,G,se,ve);case y:return G=G.get(se.key===null?K:se.key)||null,J(Y,G,se,ve);case q:var et=se._init;return se=et(se._payload),re(G,Y,K,se,ve)}if(te(se)||$(se))return G=G.get(K)||null,le(Y,G,se,ve,null);if(typeof se.then=="function")return re(G,Y,K,Bc(se),ve);if(se.$$typeof===L)return re(G,Y,K,Ac(Y,se),ve);Pc(Y,se)}return null}function je(G,Y,K,se){for(var ve=null,et=null,De=Y,ze=Y=0,mn=null;De!==null&&ze<K.length;ze++){De.index>ze?(mn=De,De=null):mn=De.sibling;var ft=ne(G,De,K[ze],se);if(ft===null){De===null&&(De=mn);break}n&&De&&ft.alternate===null&&a(G,De),Y=m(ft,Y,ze),et===null?ve=ft:et.sibling=ft,et=ft,De=mn}if(ze===K.length)return u(G,De),bt&&Ci(G,ze),ve;if(De===null){for(;ze<K.length;ze++)De=ce(G,K[ze],se),De!==null&&(Y=m(De,Y,ze),et===null?ve=De:et.sibling=De,et=De);return bt&&Ci(G,ze),ve}for(De=l(De);ze<K.length;ze++)mn=re(De,G,ze,K[ze],se),mn!==null&&(n&&mn.alternate!==null&&De.delete(mn.key===null?ze:mn.key),Y=m(mn,Y,ze),et===null?ve=mn:et.sibling=mn,et=mn);return n&&De.forEach(function(Za){return a(G,Za)}),bt&&Ci(G,ze),ve}function Ue(G,Y,K,se){if(K==null)throw Error(i(151));for(var ve=null,et=null,De=Y,ze=Y=0,mn=null,ft=K.next();De!==null&&!ft.done;ze++,ft=K.next()){De.index>ze?(mn=De,De=null):mn=De.sibling;var Za=ne(G,De,ft.value,se);if(Za===null){De===null&&(De=mn);break}n&&De&&Za.alternate===null&&a(G,De),Y=m(Za,Y,ze),et===null?ve=Za:et.sibling=Za,et=Za,De=mn}if(ft.done)return u(G,De),bt&&Ci(G,ze),ve;if(De===null){for(;!ft.done;ze++,ft=K.next())ft=ce(G,ft.value,se),ft!==null&&(Y=m(ft,Y,ze),et===null?ve=ft:et.sibling=ft,et=ft);return bt&&Ci(G,ze),ve}for(De=l(De);!ft.done;ze++,ft=K.next())ft=re(De,G,ze,ft.value,se),ft!==null&&(n&&ft.alternate!==null&&De.delete(ft.key===null?ze:ft.key),Y=m(ft,Y,ze),et===null?ve=ft:et.sibling=ft,et=ft);return n&&De.forEach(function(J7){return a(G,J7)}),bt&&Ci(G,ze),ve}function kt(G,Y,K,se){if(typeof K=="object"&&K!==null&&K.type===v&&K.key===null&&(K=K.props.children),typeof K=="object"&&K!==null){switch(K.$$typeof){case T:e:{for(var ve=K.key;Y!==null;){if(Y.key===ve){if(ve=K.type,ve===v){if(Y.tag===7){u(G,Y.sibling),se=f(Y,K.props.children),se.return=G,G=se;break e}}else if(Y.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===q&&f3(ve)===Y.type){u(G,Y.sibling),se=f(Y,K.props),Rl(se,K),se.return=G,G=se;break e}u(G,Y);break}else a(G,Y);Y=Y.sibling}K.type===v?(se=Ti(K.props.children,G.mode,se,K.key),se.return=G,G=se):(se=yc(K.type,K.key,K.props,null,G.mode,se),Rl(se,K),se.return=G,G=se)}return S(G);case y:e:{for(ve=K.key;Y!==null;){if(Y.key===ve)if(Y.tag===4&&Y.stateNode.containerInfo===K.containerInfo&&Y.stateNode.implementation===K.implementation){u(G,Y.sibling),se=f(Y,K.children||[]),se.return=G,G=se;break e}else{u(G,Y);break}else a(G,Y);Y=Y.sibling}se=_h(K,G.mode,se),se.return=G,G=se}return S(G);case q:return ve=K._init,K=ve(K._payload),kt(G,Y,K,se)}if(te(K))return je(G,Y,K,se);if($(K)){if(ve=$(K),typeof ve!="function")throw Error(i(150));return K=ve.call(K),Ue(G,Y,K,se)}if(typeof K.then=="function")return kt(G,Y,Bc(K),se);if(K.$$typeof===L)return kt(G,Y,Ac(G,K),se);Pc(G,K)}return typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint"?(K=""+K,Y!==null&&Y.tag===6?(u(G,Y.sibling),se=f(Y,K),se.return=G,G=se):(u(G,Y),se=xh(K,G.mode,se),se.return=G,G=se),S(G)):u(G,Y)}return function(G,Y,K,se){try{vl=0;var ve=kt(G,Y,K,se);return Iu=null,ve}catch(De){if(De===bl||De===_c)throw De;var et=er(29,De,null,G.mode);return et.lanes=se,et.return=G,et}finally{}}}var Du=d3(!0),h3=d3(!1),Sr=Z(null),Vr=null;function Pa(n){var a=n.alternate;k(ln,ln.current&1),k(Sr,n),Vr===null&&(a===null||Ru.current!==null||a.memoizedState!==null)&&(Vr=n)}function p3(n){if(n.tag===22){if(k(ln,ln.current),k(Sr,n),Vr===null){var a=n.alternate;a!==null&&a.memoizedState!==null&&(Vr=n)}}else Ua()}function Ua(){k(ln,ln.current),k(Sr,Sr.current)}function fa(n){fe(Sr),Vr===n&&(Vr=null),fe(ln)}var ln=Z(0);function Uc(n){for(var a=n;a!==null;){if(a.tag===13){var u=a.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||$p(u)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function ap(n,a,u,l){a=n.memoizedState,u=u(l,a),u=u==null?a:b({},a,u),n.memoizedState=u,n.lanes===0&&(n.updateQueue.baseState=u)}var ip={enqueueSetState:function(n,a,u){n=n._reactInternals;var l=ar(),f=La(l);f.payload=a,u!=null&&(f.callback=u),a=Ma(n,f,l),a!==null&&(ir(a,n,l),yl(a,n,l))},enqueueReplaceState:function(n,a,u){n=n._reactInternals;var l=ar(),f=La(l);f.tag=1,f.payload=a,u!=null&&(f.callback=u),a=Ma(n,f,l),a!==null&&(ir(a,n,l),yl(a,n,l))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var u=ar(),l=La(u);l.tag=2,a!=null&&(l.callback=a),a=Ma(n,l,u),a!==null&&(ir(a,n,u),yl(a,n,u))}};function m3(n,a,u,l,f,m,S){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(l,m,S):a.prototype&&a.prototype.isPureReactComponent?!sl(u,l)||!sl(f,m):!0}function g3(n,a,u,l){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(u,l),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(u,l),a.state!==n&&ip.enqueueReplaceState(a,a.state,null)}function Oi(n,a){var u=a;if("ref"in a){u={};for(var l in a)l!=="ref"&&(u[l]=a[l])}if(n=n.defaultProps){u===a&&(u=b({},u));for(var f in n)u[f]===void 0&&(u[f]=n[f])}return u}var Hc=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)};function b3(n){Hc(n)}function E3(n){console.error(n)}function y3(n){Hc(n)}function Fc(n,a){try{var u=n.onUncaughtError;u(a.value,{componentStack:a.stack})}catch(l){setTimeout(function(){throw l})}}function T3(n,a,u){try{var l=n.onCaughtError;l(u.value,{componentStack:u.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function up(n,a,u){return u=La(u),u.tag=3,u.payload={element:null},u.callback=function(){Fc(n,a)},u}function S3(n){return n=La(n),n.tag=3,n}function C3(n,a,u,l){var f=u.type.getDerivedStateFromError;if(typeof f=="function"){var m=l.value;n.payload=function(){return f(m)},n.callback=function(){T3(a,u,l)}}var S=u.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(n.callback=function(){T3(a,u,l),typeof f!="function"&&(qa===null?qa=new Set([this]):qa.add(this));var R=l.stack;this.componentDidCatch(l.value,{componentStack:R!==null?R:""})})}function JM(n,a,u,l,f){if(u.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(a=u.alternate,a!==null&&pl(a,u,f,!0),u=Sr.current,u!==null){switch(u.tag){case 13:return Vr===null?kp():u.alternate===null&&Gt===0&&(Gt=3),u.flags&=-257,u.flags|=65536,u.lanes=f,l===Mh?u.flags|=16384:(a=u.updateQueue,a===null?u.updateQueue=new Set([l]):a.add(l),Dp(n,l,f)),!1;case 22:return u.flags|=65536,l===Mh?u.flags|=16384:(a=u.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([l])},u.updateQueue=a):(u=a.retryQueue,u===null?a.retryQueue=new Set([l]):u.add(l)),Dp(n,l,f)),!1}throw Error(i(435,u.tag))}return Dp(n,l,f),kp(),!1}if(bt)return a=Sr.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=f,l!==Nh&&(n=Error(i(422),{cause:l}),hl(br(n,u)))):(l!==Nh&&(a=Error(i(423),{cause:l}),hl(br(a,u))),n=n.current.alternate,n.flags|=65536,f&=-f,n.lanes|=f,l=br(l,u),f=up(n.stateNode,l,f),Uh(n,f),Gt!==4&&(Gt=2)),!1;var m=Error(i(520),{cause:l});if(m=br(m,u),Ll===null?Ll=[m]:Ll.push(m),Gt!==4&&(Gt=2),a===null)return!0;l=br(l,u),u=a;do{switch(u.tag){case 3:return u.flags|=65536,n=f&-f,u.lanes|=n,n=up(u.stateNode,l,n),Uh(u,n),!1;case 1:if(a=u.type,m=u.stateNode,(u.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(qa===null||!qa.has(m))))return u.flags|=65536,f&=-f,u.lanes|=f,f=S3(f),C3(f,n,u,l),Uh(u,f),!1}u=u.return}while(u!==null);return!1}var A3=Error(i(461)),hn=!1;function En(n,a,u,l){a.child=n===null?h3(a,null,u,l):Du(a,n.child,u,l)}function x3(n,a,u,l,f){u=u.render;var m=a.ref;if("ref"in l){var S={};for(var R in l)R!=="ref"&&(S[R]=l[R])}else S=l;return vi(a),l=jh(n,a,u,S,m,f),R=qh(),n!==null&&!hn?(Vh(n,a,f),da(n,a,f)):(bt&&R&&vh(a),a.flags|=1,En(n,a,l,f),a.child)}function _3(n,a,u,l,f){if(n===null){var m=u.type;return typeof m=="function"&&!Ah(m)&&m.defaultProps===void 0&&u.compare===null?(a.tag=15,a.type=m,v3(n,a,m,l,f)):(n=yc(u.type,null,l,a,a.mode,f),n.ref=a.ref,n.return=a,a.child=n)}if(m=n.child,!pp(n,f)){var S=m.memoizedProps;if(u=u.compare,u=u!==null?u:sl,u(S,l)&&n.ref===a.ref)return da(n,a,f)}return a.flags|=1,n=ia(m,l),n.ref=a.ref,n.return=a,a.child=n}function v3(n,a,u,l,f){if(n!==null){var m=n.memoizedProps;if(sl(m,l)&&n.ref===a.ref)if(hn=!1,a.pendingProps=l=m,pp(n,f))(n.flags&131072)!==0&&(hn=!0);else return a.lanes=n.lanes,da(n,a,f)}return op(n,a,u,l,f)}function R3(n,a,u){var l=a.pendingProps,f=l.children,m=n!==null?n.memoizedState:null;if(l.mode==="hidden"){if((a.flags&128)!==0){if(l=m!==null?m.baseLanes|u:u,n!==null){for(f=a.child=n.child,m=0;f!==null;)m=m|f.lanes|f.childLanes,f=f.sibling;a.childLanes=m&~l}else a.childLanes=0,a.child=null;return N3(n,a,l,u)}if((u&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&xc(a,m!==null?m.cachePool:null),m!==null?vT(a,m):Fh(),p3(a);else return a.lanes=a.childLanes=536870912,N3(n,a,m!==null?m.baseLanes|u:u,u)}else m!==null?(xc(a,m.cachePool),vT(a,m),Ua(),a.memoizedState=null):(n!==null&&xc(a,null),Fh(),Ua());return En(n,a,f,u),a.child}function N3(n,a,u,l){var f=Lh();return f=f===null?null:{parent:on._currentValue,pool:f},a.memoizedState={baseLanes:u,cachePool:f},n!==null&&xc(a,null),Fh(),p3(a),n!==null&&pl(n,a,l,!0),null}function zc(n,a){var u=a.ref;if(u===null)n!==null&&n.ref!==null&&(a.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(i(284));(n===null||n.ref!==u)&&(a.flags|=4194816)}}function op(n,a,u,l,f){return vi(a),u=jh(n,a,u,l,void 0,f),l=qh(),n!==null&&!hn?(Vh(n,a,f),da(n,a,f)):(bt&&l&&vh(a),a.flags|=1,En(n,a,u,f),a.child)}function O3(n,a,u,l,f,m){return vi(a),a.updateQueue=null,u=NT(a,l,u,f),RT(n),l=qh(),n!==null&&!hn?(Vh(n,a,m),da(n,a,m)):(bt&&l&&vh(a),a.flags|=1,En(n,a,u,m),a.child)}function k3(n,a,u,l,f){if(vi(a),a.stateNode===null){var m=Cu,S=u.contextType;typeof S=="object"&&S!==null&&(m=Nn(S)),m=new u(l,m),a.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=ip,a.stateNode=m,m._reactInternals=a,m=a.stateNode,m.props=l,m.state=a.memoizedState,m.refs={},Bh(a),S=u.contextType,m.context=typeof S=="object"&&S!==null?Nn(S):Cu,m.state=a.memoizedState,S=u.getDerivedStateFromProps,typeof S=="function"&&(ap(a,u,S,l),m.state=a.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(S=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),S!==m.state&&ip.enqueueReplaceState(m,m.state,null),Sl(a,l,m,f),Tl(),m.state=a.memoizedState),typeof m.componentDidMount=="function"&&(a.flags|=4194308),l=!0}else if(n===null){m=a.stateNode;var R=a.memoizedProps,H=Oi(u,R);m.props=H;var J=m.context,le=u.contextType;S=Cu,typeof le=="object"&&le!==null&&(S=Nn(le));var ce=u.getDerivedStateFromProps;le=typeof ce=="function"||typeof m.getSnapshotBeforeUpdate=="function",R=a.pendingProps!==R,le||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(R||J!==S)&&g3(a,m,l,S),wa=!1;var ne=a.memoizedState;m.state=ne,Sl(a,l,m,f),Tl(),J=a.memoizedState,R||ne!==J||wa?(typeof ce=="function"&&(ap(a,u,ce,l),J=a.memoizedState),(H=wa||m3(a,u,H,l,ne,J,S))?(le||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(a.flags|=4194308)):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=l,a.memoizedState=J),m.props=l,m.state=J,m.context=S,l=H):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),l=!1)}else{m=a.stateNode,Ph(n,a),S=a.memoizedProps,le=Oi(u,S),m.props=le,ce=a.pendingProps,ne=m.context,J=u.contextType,H=Cu,typeof J=="object"&&J!==null&&(H=Nn(J)),R=u.getDerivedStateFromProps,(J=typeof R=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(S!==ce||ne!==H)&&g3(a,m,l,H),wa=!1,ne=a.memoizedState,m.state=ne,Sl(a,l,m,f),Tl();var re=a.memoizedState;S!==ce||ne!==re||wa||n!==null&&n.dependencies!==null&&Cc(n.dependencies)?(typeof R=="function"&&(ap(a,u,R,l),re=a.memoizedState),(le=wa||m3(a,u,le,l,ne,re,H)||n!==null&&n.dependencies!==null&&Cc(n.dependencies))?(J||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(l,re,H),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(l,re,H)),typeof m.componentDidUpdate=="function"&&(a.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof m.componentDidUpdate!="function"||S===n.memoizedProps&&ne===n.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||S===n.memoizedProps&&ne===n.memoizedState||(a.flags|=1024),a.memoizedProps=l,a.memoizedState=re),m.props=l,m.state=re,m.context=H,l=le):(typeof m.componentDidUpdate!="function"||S===n.memoizedProps&&ne===n.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||S===n.memoizedProps&&ne===n.memoizedState||(a.flags|=1024),l=!1)}return m=l,zc(n,a),l=(a.flags&128)!==0,m||l?(m=a.stateNode,u=l&&typeof u.getDerivedStateFromError!="function"?null:m.render(),a.flags|=1,n!==null&&l?(a.child=Du(a,n.child,null,f),a.child=Du(a,null,u,f)):En(n,a,u,f),a.memoizedState=m.state,n=a.child):n=da(n,a,f),n}function I3(n,a,u,l){return dl(),a.flags|=256,En(n,a,u,l),a.child}var lp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function sp(n){return{baseLanes:n,cachePool:ET()}}function cp(n,a,u){return n=n!==null?n.childLanes&~u:0,a&&(n|=Cr),n}function D3(n,a,u){var l=a.pendingProps,f=!1,m=(a.flags&128)!==0,S;if((S=m)||(S=n!==null&&n.memoizedState===null?!1:(ln.current&2)!==0),S&&(f=!0,a.flags&=-129),S=(a.flags&32)!==0,a.flags&=-33,n===null){if(bt){if(f?Pa(a):Ua(),bt){var R=Vt,H;if(H=R){e:{for(H=R,R=qr;H.nodeType!==8;){if(!R){R=null;break e}if(H=Nr(H.nextSibling),H===null){R=null;break e}}R=H}R!==null?(a.memoizedState={dehydrated:R,treeContext:Si!==null?{id:ua,overflow:oa}:null,retryLane:536870912,hydrationErrors:null},H=er(18,null,null,0),H.stateNode=R,H.return=a,a.child=H,Dn=a,Vt=null,H=!0):H=!1}H||xi(a)}if(R=a.memoizedState,R!==null&&(R=R.dehydrated,R!==null))return $p(R)?a.lanes=32:a.lanes=536870912,null;fa(a)}return R=l.children,l=l.fallback,f?(Ua(),f=a.mode,R=Yc({mode:"hidden",children:R},f),l=Ti(l,f,u,null),R.return=a,l.return=a,R.sibling=l,a.child=R,f=a.child,f.memoizedState=sp(u),f.childLanes=cp(n,S,u),a.memoizedState=lp,l):(Pa(a),fp(a,R))}if(H=n.memoizedState,H!==null&&(R=H.dehydrated,R!==null)){if(m)a.flags&256?(Pa(a),a.flags&=-257,a=dp(n,a,u)):a.memoizedState!==null?(Ua(),a.child=n.child,a.flags|=128,a=null):(Ua(),f=l.fallback,R=a.mode,l=Yc({mode:"visible",children:l.children},R),f=Ti(f,R,u,null),f.flags|=2,l.return=a,f.return=a,l.sibling=f,a.child=l,Du(a,n.child,null,u),l=a.child,l.memoizedState=sp(u),l.childLanes=cp(n,S,u),a.memoizedState=lp,a=f);else if(Pa(a),$p(R)){if(S=R.nextSibling&&R.nextSibling.dataset,S)var J=S.dgst;S=J,l=Error(i(419)),l.stack="",l.digest=S,hl({value:l,source:null,stack:null}),a=dp(n,a,u)}else if(hn||pl(n,a,u,!1),S=(u&n.childLanes)!==0,hn||S){if(S=Pt,S!==null&&(l=u&-u,l=(l&42)!==0?1:Zo(l),l=(l&(S.suspendedLanes|u))!==0?0:l,l!==0&&l!==H.retryLane))throw H.retryLane=l,Su(n,l),ir(S,n,l),A3;R.data==="$?"||kp(),a=dp(n,a,u)}else R.data==="$?"?(a.flags|=192,a.child=n.child,a=null):(n=H.treeContext,Vt=Nr(R.nextSibling),Dn=a,bt=!0,Ai=null,qr=!1,n!==null&&(yr[Tr++]=ua,yr[Tr++]=oa,yr[Tr++]=Si,ua=n.id,oa=n.overflow,Si=a),a=fp(a,l.children),a.flags|=4096);return a}return f?(Ua(),f=l.fallback,R=a.mode,H=n.child,J=H.sibling,l=ia(H,{mode:"hidden",children:l.children}),l.subtreeFlags=H.subtreeFlags&65011712,J!==null?f=ia(J,f):(f=Ti(f,R,u,null),f.flags|=2),f.return=a,l.return=a,l.sibling=f,a.child=l,l=f,f=a.child,R=n.child.memoizedState,R===null?R=sp(u):(H=R.cachePool,H!==null?(J=on._currentValue,H=H.parent!==J?{parent:J,pool:J}:H):H=ET(),R={baseLanes:R.baseLanes|u,cachePool:H}),f.memoizedState=R,f.childLanes=cp(n,S,u),a.memoizedState=lp,l):(Pa(a),u=n.child,n=u.sibling,u=ia(u,{mode:"visible",children:l.children}),u.return=a,u.sibling=null,n!==null&&(S=a.deletions,S===null?(a.deletions=[n],a.flags|=16):S.push(n)),a.child=u,a.memoizedState=null,u)}function fp(n,a){return a=Yc({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function Yc(n,a){return n=er(22,n,null,a),n.lanes=0,n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},n}function dp(n,a,u){return Du(a,n.child,null,u),n=fp(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function w3(n,a,u){n.lanes|=a;var l=n.alternate;l!==null&&(l.lanes|=a),kh(n.return,a,u)}function hp(n,a,u,l,f){var m=n.memoizedState;m===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:l,tail:u,tailMode:f}:(m.isBackwards=a,m.rendering=null,m.renderingStartTime=0,m.last=l,m.tail=u,m.tailMode=f)}function L3(n,a,u){var l=a.pendingProps,f=l.revealOrder,m=l.tail;if(En(n,a,l.children,u),l=ln.current,(l&2)!==0)l=l&1|2,a.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&w3(n,u,a);else if(n.tag===19)w3(n,u,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}l&=1}switch(k(ln,l),f){case"forwards":for(u=a.child,f=null;u!==null;)n=u.alternate,n!==null&&Uc(n)===null&&(f=u),u=u.sibling;u=f,u===null?(f=a.child,a.child=null):(f=u.sibling,u.sibling=null),hp(a,!1,f,u,m);break;case"backwards":for(u=null,f=a.child,a.child=null;f!==null;){if(n=f.alternate,n!==null&&Uc(n)===null){a.child=f;break}n=f.sibling,f.sibling=u,u=f,f=n}hp(a,!0,u,null,m);break;case"together":hp(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function da(n,a,u){if(n!==null&&(a.dependencies=n.dependencies),ja|=a.lanes,(u&a.childLanes)===0)if(n!==null){if(pl(n,a,u,!1),(u&a.childLanes)===0)return null}else return null;if(n!==null&&a.child!==n.child)throw Error(i(153));if(a.child!==null){for(n=a.child,u=ia(n,n.pendingProps),a.child=u,u.return=a;n.sibling!==null;)n=n.sibling,u=u.sibling=ia(n,n.pendingProps),u.return=a;u.sibling=null}return a.child}function pp(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&Cc(n)))}function e7(n,a,u){switch(a.tag){case 3:Be(a,a.stateNode.containerInfo),Da(a,on,n.memoizedState.cache),dl();break;case 27:case 5:Ct(a);break;case 4:Be(a,a.stateNode.containerInfo);break;case 10:Da(a,a.type,a.memoizedProps.value);break;case 13:var l=a.memoizedState;if(l!==null)return l.dehydrated!==null?(Pa(a),a.flags|=128,null):(u&a.child.childLanes)!==0?D3(n,a,u):(Pa(a),n=da(n,a,u),n!==null?n.sibling:null);Pa(a);break;case 19:var f=(n.flags&128)!==0;if(l=(u&a.childLanes)!==0,l||(pl(n,a,u,!1),l=(u&a.childLanes)!==0),f){if(l)return L3(n,a,u);a.flags|=128}if(f=a.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),k(ln,ln.current),l)break;return null;case 22:case 23:return a.lanes=0,R3(n,a,u);case 24:Da(a,on,n.memoizedState.cache)}return da(n,a,u)}function M3(n,a,u){if(n!==null)if(n.memoizedProps!==a.pendingProps)hn=!0;else{if(!pp(n,u)&&(a.flags&128)===0)return hn=!1,e7(n,a,u);hn=(n.flags&131072)!==0}else hn=!1,bt&&(a.flags&1048576)!==0&&fT(a,Sc,a.index);switch(a.lanes=0,a.tag){case 16:e:{n=a.pendingProps;var l=a.elementType,f=l._init;if(l=f(l._payload),a.type=l,typeof l=="function")Ah(l)?(n=Oi(l,n),a.tag=1,a=k3(null,a,l,n,u)):(a.tag=0,a=op(null,a,l,n,u));else{if(l!=null){if(f=l.$$typeof,f===M){a.tag=11,a=x3(null,a,l,n,u);break e}else if(f===z){a.tag=14,a=_3(null,a,l,n,u);break e}}throw a=X(l)||l,Error(i(306,a,""))}}return a;case 0:return op(n,a,a.type,a.pendingProps,u);case 1:return l=a.type,f=Oi(l,a.pendingProps),k3(n,a,l,f,u);case 3:e:{if(Be(a,a.stateNode.containerInfo),n===null)throw Error(i(387));l=a.pendingProps;var m=a.memoizedState;f=m.element,Ph(n,a),Sl(a,l,null,u);var S=a.memoizedState;if(l=S.cache,Da(a,on,l),l!==m.cache&&Ih(a,[on],u,!0),Tl(),l=S.element,m.isDehydrated)if(m={element:l,isDehydrated:!1,cache:S.cache},a.updateQueue.baseState=m,a.memoizedState=m,a.flags&256){a=I3(n,a,l,u);break e}else if(l!==f){f=br(Error(i(424)),a),hl(f),a=I3(n,a,l,u);break e}else{switch(n=a.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(Vt=Nr(n.firstChild),Dn=a,bt=!0,Ai=null,qr=!0,u=h3(a,null,l,u),a.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(dl(),l===f){a=da(n,a,u);break e}En(n,a,l,u)}a=a.child}return a;case 26:return zc(n,a),n===null?(u=HS(a.type,null,a.pendingProps,null))?a.memoizedState=u:bt||(u=a.type,n=a.pendingProps,l=nf(Te.current).createElement(u),l[Ye]=a,l[Ge]=n,Tn(l,u,n),dn(l),a.stateNode=l):a.memoizedState=HS(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return Ct(a),n===null&&bt&&(l=a.stateNode=BS(a.type,a.pendingProps,Te.current),Dn=a,qr=!0,f=Vt,$a(a.type)?(Xp=f,Vt=Nr(l.firstChild)):Vt=f),En(n,a,a.pendingProps.children,u),zc(n,a),n===null&&(a.flags|=4194304),a.child;case 5:return n===null&&bt&&((f=l=Vt)&&(l=N7(l,a.type,a.pendingProps,qr),l!==null?(a.stateNode=l,Dn=a,Vt=Nr(l.firstChild),qr=!1,f=!0):f=!1),f||xi(a)),Ct(a),f=a.type,m=a.pendingProps,S=n!==null?n.memoizedProps:null,l=m.children,qp(f,m)?l=null:S!==null&&qp(f,S)&&(a.flags|=32),a.memoizedState!==null&&(f=jh(n,a,GM,null,null,u),jl._currentValue=f),zc(n,a),En(n,a,l,u),a.child;case 6:return n===null&&bt&&((n=u=Vt)&&(u=O7(u,a.pendingProps,qr),u!==null?(a.stateNode=u,Dn=a,Vt=null,n=!0):n=!1),n||xi(a)),null;case 13:return D3(n,a,u);case 4:return Be(a,a.stateNode.containerInfo),l=a.pendingProps,n===null?a.child=Du(a,null,l,u):En(n,a,l,u),a.child;case 11:return x3(n,a,a.type,a.pendingProps,u);case 7:return En(n,a,a.pendingProps,u),a.child;case 8:return En(n,a,a.pendingProps.children,u),a.child;case 12:return En(n,a,a.pendingProps.children,u),a.child;case 10:return l=a.pendingProps,Da(a,a.type,l.value),En(n,a,l.children,u),a.child;case 9:return f=a.type._context,l=a.pendingProps.children,vi(a),f=Nn(f),l=l(f),a.flags|=1,En(n,a,l,u),a.child;case 14:return _3(n,a,a.type,a.pendingProps,u);case 15:return v3(n,a,a.type,a.pendingProps,u);case 19:return L3(n,a,u);case 31:return l=a.pendingProps,u=a.mode,l={mode:l.mode,children:l.children},n===null?(u=Yc(l,u),u.ref=a.ref,a.child=u,u.return=a,a=u):(u=ia(n.child,l),u.ref=a.ref,a.child=u,u.return=a,a=u),a;case 22:return R3(n,a,u);case 24:return vi(a),l=Nn(on),n===null?(f=Lh(),f===null&&(f=Pt,m=Dh(),f.pooledCache=m,m.refCount++,m!==null&&(f.pooledCacheLanes|=u),f=m),a.memoizedState={parent:l,cache:f},Bh(a),Da(a,on,f)):((n.lanes&u)!==0&&(Ph(n,a),Sl(a,null,null,u),Tl()),f=n.memoizedState,m=a.memoizedState,f.parent!==l?(f={parent:l,cache:l},a.memoizedState=f,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=f),Da(a,on,l)):(l=m.cache,Da(a,on,l),l!==f.cache&&Ih(a,[on],u,!0))),En(n,a,a.pendingProps.children,u),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function ha(n){n.flags|=4}function B3(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!qS(a)){if(a=Sr.current,a!==null&&((ot&4194048)===ot?Vr!==null:(ot&62914560)!==ot&&(ot&536870912)===0||a!==Vr))throw El=Mh,yT;n.flags|=8192}}function jc(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?tc():536870912,n.lanes|=a,Bu|=a)}function Nl(n,a){if(!bt)switch(n.tailMode){case"hidden":a=n.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?n.tail=null:u.sibling=null;break;case"collapsed":u=n.tail;for(var l=null;u!==null;)u.alternate!==null&&(l=u),u=u.sibling;l===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:l.sibling=null}}function Yt(n){var a=n.alternate!==null&&n.alternate.child===n.child,u=0,l=0;if(a)for(var f=n.child;f!==null;)u|=f.lanes|f.childLanes,l|=f.subtreeFlags&65011712,l|=f.flags&65011712,f.return=n,f=f.sibling;else for(f=n.child;f!==null;)u|=f.lanes|f.childLanes,l|=f.subtreeFlags,l|=f.flags,f.return=n,f=f.sibling;return n.subtreeFlags|=l,n.childLanes=u,a}function t7(n,a,u){var l=a.pendingProps;switch(Rh(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yt(a),null;case 1:return Yt(a),null;case 3:return u=a.stateNode,l=null,n!==null&&(l=n.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),sa(on),ut(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(n===null||n.child===null)&&(fl(a)?ha(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,pT())),Yt(a),null;case 26:return u=a.memoizedState,n===null?(ha(a),u!==null?(Yt(a),B3(a,u)):(Yt(a),a.flags&=-16777217)):u?u!==n.memoizedState?(ha(a),Yt(a),B3(a,u)):(Yt(a),a.flags&=-16777217):(n.memoizedProps!==l&&ha(a),Yt(a),a.flags&=-16777217),null;case 27:gt(a),u=Te.current;var f=a.type;if(n!==null&&a.stateNode!=null)n.memoizedProps!==l&&ha(a);else{if(!l){if(a.stateNode===null)throw Error(i(166));return Yt(a),null}n=be.current,fl(a)?dT(a):(n=BS(f,l,u),a.stateNode=n,ha(a))}return Yt(a),null;case 5:if(gt(a),u=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==l&&ha(a);else{if(!l){if(a.stateNode===null)throw Error(i(166));return Yt(a),null}if(n=be.current,fl(a))dT(a);else{switch(f=nf(Te.current),n){case 1:n=f.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:n=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":n=f.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":n=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":n=f.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?n.multiple=!0:l.size&&(n.size=l.size);break;default:n=typeof l.is=="string"?f.createElement(u,{is:l.is}):f.createElement(u)}}n[Ye]=a,n[Ge]=l;e:for(f=a.child;f!==null;){if(f.tag===5||f.tag===6)n.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===a)break e;for(;f.sibling===null;){if(f.return===null||f.return===a)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}a.stateNode=n;e:switch(Tn(n,u,l),u){case"button":case"input":case"select":case"textarea":n=!!l.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&ha(a)}}return Yt(a),a.flags&=-16777217,null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==l&&ha(a);else{if(typeof l!="string"&&a.stateNode===null)throw Error(i(166));if(n=Te.current,fl(a)){if(n=a.stateNode,u=a.memoizedProps,l=null,f=Dn,f!==null)switch(f.tag){case 27:case 5:l=f.memoizedProps}n[Ye]=a,n=!!(n.nodeValue===u||l!==null&&l.suppressHydrationWarning===!0||OS(n.nodeValue,u)),n||xi(a)}else n=nf(n).createTextNode(l),n[Ye]=a,a.stateNode=n}return Yt(a),null;case 13:if(l=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(f=fl(a),l!==null&&l.dehydrated!==null){if(n===null){if(!f)throw Error(i(318));if(f=a.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(i(317));f[Ye]=a}else dl(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Yt(a),f=!1}else f=pT(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=f),f=!0;if(!f)return a.flags&256?(fa(a),a):(fa(a),null)}if(fa(a),(a.flags&128)!==0)return a.lanes=u,a;if(u=l!==null,n=n!==null&&n.memoizedState!==null,u){l=a.child,f=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(f=l.alternate.memoizedState.cachePool.pool);var m=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),m!==f&&(l.flags|=2048)}return u!==n&&u&&(a.child.flags|=8192),jc(a,a.updateQueue),Yt(a),null;case 4:return ut(),n===null&&Hp(a.stateNode.containerInfo),Yt(a),null;case 10:return sa(a.type),Yt(a),null;case 19:if(fe(ln),f=a.memoizedState,f===null)return Yt(a),null;if(l=(a.flags&128)!==0,m=f.rendering,m===null)if(l)Nl(f,!1);else{if(Gt!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(m=Uc(n),m!==null){for(a.flags|=128,Nl(f,!1),n=m.updateQueue,a.updateQueue=n,jc(a,n),a.subtreeFlags=0,n=u,u=a.child;u!==null;)cT(u,n),u=u.sibling;return k(ln,ln.current&1|2),a.child}n=n.sibling}f.tail!==null&&Me()>Gc&&(a.flags|=128,l=!0,Nl(f,!1),a.lanes=4194304)}else{if(!l)if(n=Uc(m),n!==null){if(a.flags|=128,l=!0,n=n.updateQueue,a.updateQueue=n,jc(a,n),Nl(f,!0),f.tail===null&&f.tailMode==="hidden"&&!m.alternate&&!bt)return Yt(a),null}else 2*Me()-f.renderingStartTime>Gc&&u!==536870912&&(a.flags|=128,l=!0,Nl(f,!1),a.lanes=4194304);f.isBackwards?(m.sibling=a.child,a.child=m):(n=f.last,n!==null?n.sibling=m:a.child=m,f.last=m)}return f.tail!==null?(a=f.tail,f.rendering=a,f.tail=a.sibling,f.renderingStartTime=Me(),a.sibling=null,n=ln.current,k(ln,l?n&1|2:n&1),a):(Yt(a),null);case 22:case 23:return fa(a),zh(),l=a.memoizedState!==null,n!==null?n.memoizedState!==null!==l&&(a.flags|=8192):l&&(a.flags|=8192),l?(u&536870912)!==0&&(a.flags&128)===0&&(Yt(a),a.subtreeFlags&6&&(a.flags|=8192)):Yt(a),u=a.updateQueue,u!==null&&jc(a,u.retryQueue),u=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),l=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),l!==u&&(a.flags|=2048),n!==null&&fe(Ri),null;case 24:return u=null,n!==null&&(u=n.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),sa(on),Yt(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function n7(n,a){switch(Rh(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return sa(on),ut(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return gt(a),null;case 13:if(fa(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(i(340));dl()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return fe(ln),null;case 4:return ut(),null;case 10:return sa(a.type),null;case 22:case 23:return fa(a),zh(),n!==null&&fe(Ri),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return sa(on),null;case 25:return null;default:return null}}function P3(n,a){switch(Rh(a),a.tag){case 3:sa(on),ut();break;case 26:case 27:case 5:gt(a);break;case 4:ut();break;case 13:fa(a);break;case 19:fe(ln);break;case 10:sa(a.type);break;case 22:case 23:fa(a),zh(),n!==null&&fe(Ri);break;case 24:sa(on)}}function Ol(n,a){try{var u=a.updateQueue,l=u!==null?u.lastEffect:null;if(l!==null){var f=l.next;u=f;do{if((u.tag&n)===n){l=void 0;var m=u.create,S=u.inst;l=m(),S.destroy=l}u=u.next}while(u!==f)}}catch(R){wt(a,a.return,R)}}function Ha(n,a,u){try{var l=a.updateQueue,f=l!==null?l.lastEffect:null;if(f!==null){var m=f.next;l=m;do{if((l.tag&n)===n){var S=l.inst,R=S.destroy;if(R!==void 0){S.destroy=void 0,f=a;var H=u,J=R;try{J()}catch(le){wt(f,H,le)}}}l=l.next}while(l!==m)}}catch(le){wt(a,a.return,le)}}function U3(n){var a=n.updateQueue;if(a!==null){var u=n.stateNode;try{_T(a,u)}catch(l){wt(n,n.return,l)}}}function H3(n,a,u){u.props=Oi(n.type,n.memoizedProps),u.state=n.memoizedState;try{u.componentWillUnmount()}catch(l){wt(n,a,l)}}function kl(n,a){try{var u=n.ref;if(u!==null){switch(n.tag){case 26:case 27:case 5:var l=n.stateNode;break;case 30:l=n.stateNode;break;default:l=n.stateNode}typeof u=="function"?n.refCleanup=u(l):u.current=l}}catch(f){wt(n,a,f)}}function Gr(n,a){var u=n.ref,l=n.refCleanup;if(u!==null)if(typeof l=="function")try{l()}catch(f){wt(n,a,f)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(f){wt(n,a,f)}else u.current=null}function F3(n){var a=n.type,u=n.memoizedProps,l=n.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":u.autoFocus&&l.focus();break e;case"img":u.src?l.src=u.src:u.srcSet&&(l.srcset=u.srcSet)}}catch(f){wt(n,n.return,f)}}function mp(n,a,u){try{var l=n.stateNode;A7(l,n.type,u,a),l[Ge]=a}catch(f){wt(n,n.return,f)}}function z3(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&$a(n.type)||n.tag===4}function gp(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||z3(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&$a(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function bp(n,a,u){var l=n.tag;if(l===5||l===6)n=n.stateNode,a?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(n,a):(a=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,a.appendChild(n),u=u._reactRootContainer,u!=null||a.onclick!==null||(a.onclick=tf));else if(l!==4&&(l===27&&$a(n.type)&&(u=n.stateNode,a=null),n=n.child,n!==null))for(bp(n,a,u),n=n.sibling;n!==null;)bp(n,a,u),n=n.sibling}function qc(n,a,u){var l=n.tag;if(l===5||l===6)n=n.stateNode,a?u.insertBefore(n,a):u.appendChild(n);else if(l!==4&&(l===27&&$a(n.type)&&(u=n.stateNode),n=n.child,n!==null))for(qc(n,a,u),n=n.sibling;n!==null;)qc(n,a,u),n=n.sibling}function Y3(n){var a=n.stateNode,u=n.memoizedProps;try{for(var l=n.type,f=a.attributes;f.length;)a.removeAttributeNode(f[0]);Tn(a,l,u),a[Ye]=n,a[Ge]=u}catch(m){wt(n,n.return,m)}}var pa=!1,Kt=!1,Ep=!1,j3=typeof WeakSet=="function"?WeakSet:Set,pn=null;function r7(n,a){if(n=n.containerInfo,Yp=sf,n=eT(n),gh(n)){if("selectionStart"in n)var u={start:n.selectionStart,end:n.selectionEnd};else e:{u=(u=n.ownerDocument)&&u.defaultView||window;var l=u.getSelection&&u.getSelection();if(l&&l.rangeCount!==0){u=l.anchorNode;var f=l.anchorOffset,m=l.focusNode;l=l.focusOffset;try{u.nodeType,m.nodeType}catch{u=null;break e}var S=0,R=-1,H=-1,J=0,le=0,ce=n,ne=null;t:for(;;){for(var re;ce!==u||f!==0&&ce.nodeType!==3||(R=S+f),ce!==m||l!==0&&ce.nodeType!==3||(H=S+l),ce.nodeType===3&&(S+=ce.nodeValue.length),(re=ce.firstChild)!==null;)ne=ce,ce=re;for(;;){if(ce===n)break t;if(ne===u&&++J===f&&(R=S),ne===m&&++le===l&&(H=S),(re=ce.nextSibling)!==null)break;ce=ne,ne=ce.parentNode}ce=re}u=R===-1||H===-1?null:{start:R,end:H}}else u=null}u=u||{start:0,end:0}}else u=null;for(jp={focusedElem:n,selectionRange:u},sf=!1,pn=a;pn!==null;)if(a=pn,n=a.child,(a.subtreeFlags&1024)!==0&&n!==null)n.return=a,pn=n;else for(;pn!==null;){switch(a=pn,m=a.alternate,n=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((n&1024)!==0&&m!==null){n=void 0,u=a,f=m.memoizedProps,m=m.memoizedState,l=u.stateNode;try{var je=Oi(u.type,f,u.elementType===u.type);n=l.getSnapshotBeforeUpdate(je,m),l.__reactInternalSnapshotBeforeUpdate=n}catch(Ue){wt(u,u.return,Ue)}}break;case 3:if((n&1024)!==0){if(n=a.stateNode.containerInfo,u=n.nodeType,u===9)Gp(n);else if(u===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Gp(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(i(163))}if(n=a.sibling,n!==null){n.return=a.return,pn=n;break}pn=a.return}}function q3(n,a,u){var l=u.flags;switch(u.tag){case 0:case 11:case 15:Fa(n,u),l&4&&Ol(5,u);break;case 1:if(Fa(n,u),l&4)if(n=u.stateNode,a===null)try{n.componentDidMount()}catch(S){wt(u,u.return,S)}else{var f=Oi(u.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(f,a,n.__reactInternalSnapshotBeforeUpdate)}catch(S){wt(u,u.return,S)}}l&64&&U3(u),l&512&&kl(u,u.return);break;case 3:if(Fa(n,u),l&64&&(n=u.updateQueue,n!==null)){if(a=null,u.child!==null)switch(u.child.tag){case 27:case 5:a=u.child.stateNode;break;case 1:a=u.child.stateNode}try{_T(n,a)}catch(S){wt(u,u.return,S)}}break;case 27:a===null&&l&4&&Y3(u);case 26:case 5:Fa(n,u),a===null&&l&4&&F3(u),l&512&&kl(u,u.return);break;case 12:Fa(n,u);break;case 13:Fa(n,u),l&4&&$3(n,u),l&64&&(n=u.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(u=d7.bind(null,u),k7(n,u))));break;case 22:if(l=u.memoizedState!==null||pa,!l){a=a!==null&&a.memoizedState!==null||Kt,f=pa;var m=Kt;pa=l,(Kt=a)&&!m?za(n,u,(u.subtreeFlags&8772)!==0):Fa(n,u),pa=f,Kt=m}break;case 30:break;default:Fa(n,u)}}function V3(n){var a=n.alternate;a!==null&&(n.alternate=null,V3(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&W0(a)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var zt=null,qn=!1;function ma(n,a,u){for(u=u.child;u!==null;)G3(n,a,u),u=u.sibling}function G3(n,a,u){if(de&&typeof de.onCommitFiberUnmount=="function")try{de.onCommitFiberUnmount(ae,u)}catch{}switch(u.tag){case 26:Kt||Gr(u,a),ma(n,a,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Kt||Gr(u,a);var l=zt,f=qn;$a(u.type)&&(zt=u.stateNode,qn=!1),ma(n,a,u),Hl(u.stateNode),zt=l,qn=f;break;case 5:Kt||Gr(u,a);case 6:if(l=zt,f=qn,zt=null,ma(n,a,u),zt=l,qn=f,zt!==null)if(qn)try{(zt.nodeType===9?zt.body:zt.nodeName==="HTML"?zt.ownerDocument.body:zt).removeChild(u.stateNode)}catch(m){wt(u,a,m)}else try{zt.removeChild(u.stateNode)}catch(m){wt(u,a,m)}break;case 18:zt!==null&&(qn?(n=zt,LS(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,u.stateNode),$l(n)):LS(zt,u.stateNode));break;case 4:l=zt,f=qn,zt=u.stateNode.containerInfo,qn=!0,ma(n,a,u),zt=l,qn=f;break;case 0:case 11:case 14:case 15:Kt||Ha(2,u,a),Kt||Ha(4,u,a),ma(n,a,u);break;case 1:Kt||(Gr(u,a),l=u.stateNode,typeof l.componentWillUnmount=="function"&&H3(u,a,l)),ma(n,a,u);break;case 21:ma(n,a,u);break;case 22:Kt=(l=Kt)||u.memoizedState!==null,ma(n,a,u),Kt=l;break;default:ma(n,a,u)}}function $3(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{$l(n)}catch(u){wt(a,a.return,u)}}function a7(n){switch(n.tag){case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new j3),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new j3),a;default:throw Error(i(435,n.tag))}}function yp(n,a){var u=a7(n);a.forEach(function(l){var f=h7.bind(null,n,l);u.has(l)||(u.add(l),l.then(f,f))})}function tr(n,a){var u=a.deletions;if(u!==null)for(var l=0;l<u.length;l++){var f=u[l],m=n,S=a,R=S;e:for(;R!==null;){switch(R.tag){case 27:if($a(R.type)){zt=R.stateNode,qn=!1;break e}break;case 5:zt=R.stateNode,qn=!1;break e;case 3:case 4:zt=R.stateNode.containerInfo,qn=!0;break e}R=R.return}if(zt===null)throw Error(i(160));G3(m,S,f),zt=null,qn=!1,m=f.alternate,m!==null&&(m.return=null),f.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)X3(a,n),a=a.sibling}var Rr=null;function X3(n,a){var u=n.alternate,l=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:tr(a,n),nr(n),l&4&&(Ha(3,n,n.return),Ol(3,n),Ha(5,n,n.return));break;case 1:tr(a,n),nr(n),l&512&&(Kt||u===null||Gr(u,u.return)),l&64&&pa&&(n=n.updateQueue,n!==null&&(l=n.callbacks,l!==null&&(u=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=u===null?l:u.concat(l))));break;case 26:var f=Rr;if(tr(a,n),nr(n),l&512&&(Kt||u===null||Gr(u,u.return)),l&4){var m=u!==null?u.memoizedState:null;if(l=n.memoizedState,u===null)if(l===null)if(n.stateNode===null){e:{l=n.type,u=n.memoizedProps,f=f.ownerDocument||f;t:switch(l){case"title":m=f.getElementsByTagName("title")[0],(!m||m[na]||m[Ye]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=f.createElement(l),f.head.insertBefore(m,f.querySelector("head > title"))),Tn(m,l,u),m[Ye]=n,dn(m),l=m;break e;case"link":var S=YS("link","href",f).get(l+(u.href||""));if(S){for(var R=0;R<S.length;R++)if(m=S[R],m.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&m.getAttribute("rel")===(u.rel==null?null:u.rel)&&m.getAttribute("title")===(u.title==null?null:u.title)&&m.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){S.splice(R,1);break t}}m=f.createElement(l),Tn(m,l,u),f.head.appendChild(m);break;case"meta":if(S=YS("meta","content",f).get(l+(u.content||""))){for(R=0;R<S.length;R++)if(m=S[R],m.getAttribute("content")===(u.content==null?null:""+u.content)&&m.getAttribute("name")===(u.name==null?null:u.name)&&m.getAttribute("property")===(u.property==null?null:u.property)&&m.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&m.getAttribute("charset")===(u.charSet==null?null:u.charSet)){S.splice(R,1);break t}}m=f.createElement(l),Tn(m,l,u),f.head.appendChild(m);break;default:throw Error(i(468,l))}m[Ye]=n,dn(m),l=m}n.stateNode=l}else jS(f,n.type,n.stateNode);else n.stateNode=zS(f,l,n.memoizedProps);else m!==l?(m===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):m.count--,l===null?jS(f,n.type,n.stateNode):zS(f,l,n.memoizedProps)):l===null&&n.stateNode!==null&&mp(n,n.memoizedProps,u.memoizedProps)}break;case 27:tr(a,n),nr(n),l&512&&(Kt||u===null||Gr(u,u.return)),u!==null&&l&4&&mp(n,n.memoizedProps,u.memoizedProps);break;case 5:if(tr(a,n),nr(n),l&512&&(Kt||u===null||Gr(u,u.return)),n.flags&32){f=n.stateNode;try{pu(f,"")}catch(re){wt(n,n.return,re)}}l&4&&n.stateNode!=null&&(f=n.memoizedProps,mp(n,f,u!==null?u.memoizedProps:f)),l&1024&&(Ep=!0);break;case 6:if(tr(a,n),nr(n),l&4){if(n.stateNode===null)throw Error(i(162));l=n.memoizedProps,u=n.stateNode;try{u.nodeValue=l}catch(re){wt(n,n.return,re)}}break;case 3:if(uf=null,f=Rr,Rr=rf(a.containerInfo),tr(a,n),Rr=f,nr(n),l&4&&u!==null&&u.memoizedState.isDehydrated)try{$l(a.containerInfo)}catch(re){wt(n,n.return,re)}Ep&&(Ep=!1,Q3(n));break;case 4:l=Rr,Rr=rf(n.stateNode.containerInfo),tr(a,n),nr(n),Rr=l;break;case 12:tr(a,n),nr(n);break;case 13:tr(a,n),nr(n),n.child.flags&8192&&n.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(_p=Me()),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,yp(n,l)));break;case 22:f=n.memoizedState!==null;var H=u!==null&&u.memoizedState!==null,J=pa,le=Kt;if(pa=J||f,Kt=le||H,tr(a,n),Kt=le,pa=J,nr(n),l&8192)e:for(a=n.stateNode,a._visibility=f?a._visibility&-2:a._visibility|1,f&&(u===null||H||pa||Kt||ki(n)),u=null,a=n;;){if(a.tag===5||a.tag===26){if(u===null){H=u=a;try{if(m=H.stateNode,f)S=m.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{R=H.stateNode;var ce=H.memoizedProps.style,ne=ce!=null&&ce.hasOwnProperty("display")?ce.display:null;R.style.display=ne==null||typeof ne=="boolean"?"":(""+ne).trim()}}catch(re){wt(H,H.return,re)}}}else if(a.tag===6){if(u===null){H=a;try{H.stateNode.nodeValue=f?"":H.memoizedProps}catch(re){wt(H,H.return,re)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===n)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break e;for(;a.sibling===null;){if(a.return===null||a.return===n)break e;u===a&&(u=null),a=a.return}u===a&&(u=null),a.sibling.return=a.return,a=a.sibling}l&4&&(l=n.updateQueue,l!==null&&(u=l.retryQueue,u!==null&&(l.retryQueue=null,yp(n,u))));break;case 19:tr(a,n),nr(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,yp(n,l)));break;case 30:break;case 21:break;default:tr(a,n),nr(n)}}function nr(n){var a=n.flags;if(a&2){try{for(var u,l=n.return;l!==null;){if(z3(l)){u=l;break}l=l.return}if(u==null)throw Error(i(160));switch(u.tag){case 27:var f=u.stateNode,m=gp(n);qc(n,m,f);break;case 5:var S=u.stateNode;u.flags&32&&(pu(S,""),u.flags&=-33);var R=gp(n);qc(n,R,S);break;case 3:case 4:var H=u.stateNode.containerInfo,J=gp(n);bp(n,J,H);break;default:throw Error(i(161))}}catch(le){wt(n,n.return,le)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function Q3(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;Q3(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),n=n.sibling}}function Fa(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)q3(n,a.alternate,a),a=a.sibling}function ki(n){for(n=n.child;n!==null;){var a=n;switch(a.tag){case 0:case 11:case 14:case 15:Ha(4,a,a.return),ki(a);break;case 1:Gr(a,a.return);var u=a.stateNode;typeof u.componentWillUnmount=="function"&&H3(a,a.return,u),ki(a);break;case 27:Hl(a.stateNode);case 26:case 5:Gr(a,a.return),ki(a);break;case 22:a.memoizedState===null&&ki(a);break;case 30:ki(a);break;default:ki(a)}n=n.sibling}}function za(n,a,u){for(u=u&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var l=a.alternate,f=n,m=a,S=m.flags;switch(m.tag){case 0:case 11:case 15:za(f,m,u),Ol(4,m);break;case 1:if(za(f,m,u),l=m,f=l.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(J){wt(l,l.return,J)}if(l=m,f=l.updateQueue,f!==null){var R=l.stateNode;try{var H=f.shared.hiddenCallbacks;if(H!==null)for(f.shared.hiddenCallbacks=null,f=0;f<H.length;f++)xT(H[f],R)}catch(J){wt(l,l.return,J)}}u&&S&64&&U3(m),kl(m,m.return);break;case 27:Y3(m);case 26:case 5:za(f,m,u),u&&l===null&&S&4&&F3(m),kl(m,m.return);break;case 12:za(f,m,u);break;case 13:za(f,m,u),u&&S&4&&$3(f,m);break;case 22:m.memoizedState===null&&za(f,m,u),kl(m,m.return);break;case 30:break;default:za(f,m,u)}a=a.sibling}}function Tp(n,a){var u=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==u&&(n!=null&&n.refCount++,u!=null&&ml(u))}function Sp(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&ml(n))}function $r(n,a,u,l){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)K3(n,a,u,l),a=a.sibling}function K3(n,a,u,l){var f=a.flags;switch(a.tag){case 0:case 11:case 15:$r(n,a,u,l),f&2048&&Ol(9,a);break;case 1:$r(n,a,u,l);break;case 3:$r(n,a,u,l),f&2048&&(n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&ml(n)));break;case 12:if(f&2048){$r(n,a,u,l),n=a.stateNode;try{var m=a.memoizedProps,S=m.id,R=m.onPostCommit;typeof R=="function"&&R(S,a.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(H){wt(a,a.return,H)}}else $r(n,a,u,l);break;case 13:$r(n,a,u,l);break;case 23:break;case 22:m=a.stateNode,S=a.alternate,a.memoizedState!==null?m._visibility&2?$r(n,a,u,l):Il(n,a):m._visibility&2?$r(n,a,u,l):(m._visibility|=2,wu(n,a,u,l,(a.subtreeFlags&10256)!==0)),f&2048&&Tp(S,a);break;case 24:$r(n,a,u,l),f&2048&&Sp(a.alternate,a);break;default:$r(n,a,u,l)}}function wu(n,a,u,l,f){for(f=f&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var m=n,S=a,R=u,H=l,J=S.flags;switch(S.tag){case 0:case 11:case 15:wu(m,S,R,H,f),Ol(8,S);break;case 23:break;case 22:var le=S.stateNode;S.memoizedState!==null?le._visibility&2?wu(m,S,R,H,f):Il(m,S):(le._visibility|=2,wu(m,S,R,H,f)),f&&J&2048&&Tp(S.alternate,S);break;case 24:wu(m,S,R,H,f),f&&J&2048&&Sp(S.alternate,S);break;default:wu(m,S,R,H,f)}a=a.sibling}}function Il(n,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var u=n,l=a,f=l.flags;switch(l.tag){case 22:Il(u,l),f&2048&&Tp(l.alternate,l);break;case 24:Il(u,l),f&2048&&Sp(l.alternate,l);break;default:Il(u,l)}a=a.sibling}}var Dl=8192;function Lu(n){if(n.subtreeFlags&Dl)for(n=n.child;n!==null;)W3(n),n=n.sibling}function W3(n){switch(n.tag){case 26:Lu(n),n.flags&Dl&&n.memoizedState!==null&&j7(Rr,n.memoizedState,n.memoizedProps);break;case 5:Lu(n);break;case 3:case 4:var a=Rr;Rr=rf(n.stateNode.containerInfo),Lu(n),Rr=a;break;case 22:n.memoizedState===null&&(a=n.alternate,a!==null&&a.memoizedState!==null?(a=Dl,Dl=16777216,Lu(n),Dl=a):Lu(n));break;default:Lu(n)}}function Z3(n){var a=n.alternate;if(a!==null&&(n=a.child,n!==null)){a.child=null;do a=n.sibling,n.sibling=null,n=a;while(n!==null)}}function wl(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var l=a[u];pn=l,eS(l,n)}Z3(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)J3(n),n=n.sibling}function J3(n){switch(n.tag){case 0:case 11:case 15:wl(n),n.flags&2048&&Ha(9,n,n.return);break;case 3:wl(n);break;case 12:wl(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&2&&(n.return===null||n.return.tag!==13)?(a._visibility&=-3,Vc(n)):wl(n);break;default:wl(n)}}function Vc(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var l=a[u];pn=l,eS(l,n)}Z3(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:Ha(8,a,a.return),Vc(a);break;case 22:u=a.stateNode,u._visibility&2&&(u._visibility&=-3,Vc(a));break;default:Vc(a)}n=n.sibling}}function eS(n,a){for(;pn!==null;){var u=pn;switch(u.tag){case 0:case 11:case 15:Ha(8,u,a);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var l=u.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ml(u.memoizedState.cache)}if(l=u.child,l!==null)l.return=u,pn=l;else e:for(u=n;pn!==null;){l=pn;var f=l.sibling,m=l.return;if(V3(l),l===u){pn=null;break e}if(f!==null){f.return=m,pn=f;break e}pn=m}}}var i7={getCacheForType:function(n){var a=Nn(on),u=a.data.get(n);return u===void 0&&(u=n(),a.data.set(n,u)),u}},u7=typeof WeakMap=="function"?WeakMap:Map,_t=0,Pt=null,nt=null,ot=0,vt=0,rr=null,Ya=!1,Mu=!1,Cp=!1,ga=0,Gt=0,ja=0,Ii=0,Ap=0,Cr=0,Bu=0,Ll=null,Vn=null,xp=!1,_p=0,Gc=1/0,$c=null,qa=null,yn=0,Va=null,Pu=null,Uu=0,vp=0,Rp=null,tS=null,Ml=0,Np=null;function ar(){if((_t&2)!==0&&ot!==0)return ot&-ot;if(F.T!==null){var n=_u;return n!==0?n:Mp()}return ac()}function nS(){Cr===0&&(Cr=(ot&536870912)===0||bt?pi():536870912);var n=Sr.current;return n!==null&&(n.flags|=32),Cr}function ir(n,a,u){(n===Pt&&(vt===2||vt===9)||n.cancelPendingCommit!==null)&&(Hu(n,0),Ga(n,ot,Cr,!1)),ea(n,u),((_t&2)===0||n!==Pt)&&(n===Pt&&((_t&2)===0&&(Ii|=u),Gt===4&&Ga(n,ot,Cr,!1)),Xr(n))}function rS(n,a,u){if((_t&6)!==0)throw Error(i(327));var l=!u&&(a&124)===0&&(a&n.expiredLanes)===0||Hn(n,a),f=l?s7(n,a):Ip(n,a,!0),m=l;do{if(f===0){Mu&&!l&&Ga(n,a,0,!1);break}else{if(u=n.current.alternate,m&&!o7(u)){f=Ip(n,a,!1),m=!1;continue}if(f===2){if(m=a,n.errorRecoveryDisabledLanes&m)var S=0;else S=n.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){a=S;e:{var R=n;f=Ll;var H=R.current.memoizedState.isDehydrated;if(H&&(Hu(R,S).flags|=256),S=Ip(R,S,!1),S!==2){if(Cp&&!H){R.errorRecoveryDisabledLanes|=m,Ii|=m,f=4;break e}m=Vn,Vn=f,m!==null&&(Vn===null?Vn=m:Vn.push.apply(Vn,m))}f=S}if(m=!1,f!==2)continue}}if(f===1){Hu(n,0),Ga(n,a,0,!0);break}e:{switch(l=n,m=f,m){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:Ga(l,a,Cr,!Ya);break e;case 2:Vn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(f=_p+300-Me(),10<f)){if(Ga(l,a,Cr,!Ya),nn(l,0,!0)!==0)break e;l.timeoutHandle=DS(aS.bind(null,l,u,Vn,$c,xp,a,Cr,Ii,Bu,Ya,m,2,-0,0),f);break e}aS(l,u,Vn,$c,xp,a,Cr,Ii,Bu,Ya,m,0,-0,0)}}break}while(!0);Xr(n)}function aS(n,a,u,l,f,m,S,R,H,J,le,ce,ne,re){if(n.timeoutHandle=-1,ce=a.subtreeFlags,(ce&8192||(ce&16785408)===16785408)&&(Yl={stylesheets:null,count:0,unsuspend:Y7},W3(a),ce=q7(),ce!==null)){n.cancelPendingCommit=ce(fS.bind(null,n,a,m,u,l,f,S,R,H,le,1,ne,re)),Ga(n,m,S,!J);return}fS(n,a,m,u,l,f,S,R,H)}function o7(n){for(var a=n;;){var u=a.tag;if((u===0||u===11||u===15)&&a.flags&16384&&(u=a.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var l=0;l<u.length;l++){var f=u[l],m=f.getSnapshot;f=f.value;try{if(!Jn(m(),f))return!1}catch{return!1}}if(u=a.child,a.subtreeFlags&16384&&u!==null)u.return=a,a=u;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ga(n,a,u,l){a&=~Ap,a&=~Ii,n.suspendedLanes|=a,n.pingedLanes&=~a,l&&(n.warmLanes|=a),l=n.expirationTimes;for(var f=a;0<f;){var m=31-Ae(f),S=1<<m;l[m]=-1,f&=~S}u!==0&&nc(n,u,a)}function Xc(){return(_t&6)===0?(Bl(0),!1):!0}function Op(){if(nt!==null){if(vt===0)var n=nt.return;else n=nt,la=_i=null,Gh(n),Iu=null,vl=0,n=nt;for(;n!==null;)P3(n.alternate,n),n=n.return;nt=null}}function Hu(n,a){var u=n.timeoutHandle;u!==-1&&(n.timeoutHandle=-1,_7(u)),u=n.cancelPendingCommit,u!==null&&(n.cancelPendingCommit=null,u()),Op(),Pt=n,nt=u=ia(n.current,null),ot=a,vt=0,rr=null,Ya=!1,Mu=Hn(n,a),Cp=!1,Bu=Cr=Ap=Ii=ja=Gt=0,Vn=Ll=null,xp=!1,(a&8)!==0&&(a|=a&32);var l=n.entangledLanes;if(l!==0)for(n=n.entanglements,l&=a;0<l;){var f=31-Ae(l),m=1<<f;a|=n[f],l&=~m}return ga=a,gc(),u}function iS(n,a){Ze=null,F.H=Mc,a===bl||a===_c?(a=CT(),vt=3):a===yT?(a=CT(),vt=4):vt=a===A3?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,rr=a,nt===null&&(Gt=1,Fc(n,br(a,n.current)))}function uS(){var n=F.H;return F.H=Mc,n===null?Mc:n}function oS(){var n=F.A;return F.A=i7,n}function kp(){Gt=4,Ya||(ot&4194048)!==ot&&Sr.current!==null||(Mu=!0),(ja&134217727)===0&&(Ii&134217727)===0||Pt===null||Ga(Pt,ot,Cr,!1)}function Ip(n,a,u){var l=_t;_t|=2;var f=uS(),m=oS();(Pt!==n||ot!==a)&&($c=null,Hu(n,a)),a=!1;var S=Gt;e:do try{if(vt!==0&&nt!==null){var R=nt,H=rr;switch(vt){case 8:Op(),S=6;break e;case 3:case 2:case 9:case 6:Sr.current===null&&(a=!0);var J=vt;if(vt=0,rr=null,Fu(n,R,H,J),u&&Mu){S=0;break e}break;default:J=vt,vt=0,rr=null,Fu(n,R,H,J)}}l7(),S=Gt;break}catch(le){iS(n,le)}while(!0);return a&&n.shellSuspendCounter++,la=_i=null,_t=l,F.H=f,F.A=m,nt===null&&(Pt=null,ot=0,gc()),S}function l7(){for(;nt!==null;)lS(nt)}function s7(n,a){var u=_t;_t|=2;var l=uS(),f=oS();Pt!==n||ot!==a?($c=null,Gc=Me()+500,Hu(n,a)):Mu=Hn(n,a);e:do try{if(vt!==0&&nt!==null){a=nt;var m=rr;t:switch(vt){case 1:vt=0,rr=null,Fu(n,a,m,1);break;case 2:case 9:if(TT(m)){vt=0,rr=null,sS(a);break}a=function(){vt!==2&&vt!==9||Pt!==n||(vt=7),Xr(n)},m.then(a,a);break e;case 3:vt=7;break e;case 4:vt=5;break e;case 7:TT(m)?(vt=0,rr=null,sS(a)):(vt=0,rr=null,Fu(n,a,m,7));break;case 5:var S=null;switch(nt.tag){case 26:S=nt.memoizedState;case 5:case 27:var R=nt;if(!S||qS(S)){vt=0,rr=null;var H=R.sibling;if(H!==null)nt=H;else{var J=R.return;J!==null?(nt=J,Qc(J)):nt=null}break t}}vt=0,rr=null,Fu(n,a,m,5);break;case 6:vt=0,rr=null,Fu(n,a,m,6);break;case 8:Op(),Gt=6;break e;default:throw Error(i(462))}}c7();break}catch(le){iS(n,le)}while(!0);return la=_i=null,F.H=l,F.A=f,_t=u,nt!==null?0:(Pt=null,ot=0,gc(),Gt)}function c7(){for(;nt!==null&&!we();)lS(nt)}function lS(n){var a=M3(n.alternate,n,ga);n.memoizedProps=n.pendingProps,a===null?Qc(n):nt=a}function sS(n){var a=n,u=a.alternate;switch(a.tag){case 15:case 0:a=O3(u,a,a.pendingProps,a.type,void 0,ot);break;case 11:a=O3(u,a,a.pendingProps,a.type.render,a.ref,ot);break;case 5:Gh(a);default:P3(u,a),a=nt=cT(a,ga),a=M3(u,a,ga)}n.memoizedProps=n.pendingProps,a===null?Qc(n):nt=a}function Fu(n,a,u,l){la=_i=null,Gh(a),Iu=null,vl=0;var f=a.return;try{if(JM(n,f,a,u,ot)){Gt=1,Fc(n,br(u,n.current)),nt=null;return}}catch(m){if(f!==null)throw nt=f,m;Gt=1,Fc(n,br(u,n.current)),nt=null;return}a.flags&32768?(bt||l===1?n=!0:Mu||(ot&536870912)!==0?n=!1:(Ya=n=!0,(l===2||l===9||l===3||l===6)&&(l=Sr.current,l!==null&&l.tag===13&&(l.flags|=16384))),cS(a,n)):Qc(a)}function Qc(n){var a=n;do{if((a.flags&32768)!==0){cS(a,Ya);return}n=a.return;var u=t7(a.alternate,a,ga);if(u!==null){nt=u;return}if(a=a.sibling,a!==null){nt=a;return}nt=a=n}while(a!==null);Gt===0&&(Gt=5)}function cS(n,a){do{var u=n7(n.alternate,n);if(u!==null){u.flags&=32767,nt=u;return}if(u=n.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!a&&(n=n.sibling,n!==null)){nt=n;return}nt=n=u}while(n!==null);Gt=6,nt=null}function fS(n,a,u,l,f,m,S,R,H){n.cancelPendingCommit=null;do Kc();while(yn!==0);if((_t&6)!==0)throw Error(i(327));if(a!==null){if(a===n.current)throw Error(i(177));if(m=a.lanes|a.childLanes,m|=Sh,K0(n,u,m,S,R,H),n===Pt&&(nt=Pt=null,ot=0),Pu=a,Va=n,Uu=u,vp=m,Rp=f,tS=l,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,p7(ct,function(){return gS(),null})):(n.callbackNode=null,n.callbackPriority=0),l=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||l){l=F.T,F.T=null,f=ie.p,ie.p=2,S=_t,_t|=4;try{r7(n,a,u)}finally{_t=S,ie.p=f,F.T=l}}yn=1,dS(),hS(),pS()}}function dS(){if(yn===1){yn=0;var n=Va,a=Pu,u=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||u){u=F.T,F.T=null;var l=ie.p;ie.p=2;var f=_t;_t|=4;try{X3(a,n);var m=jp,S=eT(n.containerInfo),R=m.focusedElem,H=m.selectionRange;if(S!==R&&R&&R.ownerDocument&&Jy(R.ownerDocument.documentElement,R)){if(H!==null&&gh(R)){var J=H.start,le=H.end;if(le===void 0&&(le=J),"selectionStart"in R)R.selectionStart=J,R.selectionEnd=Math.min(le,R.value.length);else{var ce=R.ownerDocument||document,ne=ce&&ce.defaultView||window;if(ne.getSelection){var re=ne.getSelection(),je=R.textContent.length,Ue=Math.min(H.start,je),kt=H.end===void 0?Ue:Math.min(H.end,je);!re.extend&&Ue>kt&&(S=kt,kt=Ue,Ue=S);var G=Zy(R,Ue),Y=Zy(R,kt);if(G&&Y&&(re.rangeCount!==1||re.anchorNode!==G.node||re.anchorOffset!==G.offset||re.focusNode!==Y.node||re.focusOffset!==Y.offset)){var K=ce.createRange();K.setStart(G.node,G.offset),re.removeAllRanges(),Ue>kt?(re.addRange(K),re.extend(Y.node,Y.offset)):(K.setEnd(Y.node,Y.offset),re.addRange(K))}}}}for(ce=[],re=R;re=re.parentNode;)re.nodeType===1&&ce.push({element:re,left:re.scrollLeft,top:re.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<ce.length;R++){var se=ce[R];se.element.scrollLeft=se.left,se.element.scrollTop=se.top}}sf=!!Yp,jp=Yp=null}finally{_t=f,ie.p=l,F.T=u}}n.current=a,yn=2}}function hS(){if(yn===2){yn=0;var n=Va,a=Pu,u=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||u){u=F.T,F.T=null;var l=ie.p;ie.p=2;var f=_t;_t|=4;try{q3(n,a.alternate,a)}finally{_t=f,ie.p=l,F.T=u}}yn=3}}function pS(){if(yn===4||yn===3){yn=0,ke();var n=Va,a=Pu,u=Uu,l=tS;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?yn=5:(yn=0,Pu=Va=null,mS(n,n.pendingLanes));var f=n.pendingLanes;if(f===0&&(qa=null),Jo(u),a=a.stateNode,de&&typeof de.onCommitFiberRoot=="function")try{de.onCommitFiberRoot(ae,a,void 0,(a.current.flags&128)===128)}catch{}if(l!==null){a=F.T,f=ie.p,ie.p=2,F.T=null;try{for(var m=n.onRecoverableError,S=0;S<l.length;S++){var R=l[S];m(R.value,{componentStack:R.stack})}}finally{F.T=a,ie.p=f}}(Uu&3)!==0&&Kc(),Xr(n),f=n.pendingLanes,(u&4194090)!==0&&(f&42)!==0?n===Np?Ml++:(Ml=0,Np=n):Ml=0,Bl(0)}}function mS(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,ml(a)))}function Kc(n){return dS(),hS(),pS(),gS()}function gS(){if(yn!==5)return!1;var n=Va,a=vp;vp=0;var u=Jo(Uu),l=F.T,f=ie.p;try{ie.p=32>u?32:u,F.T=null,u=Rp,Rp=null;var m=Va,S=Uu;if(yn=0,Pu=Va=null,Uu=0,(_t&6)!==0)throw Error(i(331));var R=_t;if(_t|=4,J3(m.current),K3(m,m.current,S,u),_t=R,Bl(0,!1),de&&typeof de.onPostCommitFiberRoot=="function")try{de.onPostCommitFiberRoot(ae,m)}catch{}return!0}finally{ie.p=f,F.T=l,mS(n,a)}}function bS(n,a,u){a=br(u,a),a=up(n.stateNode,a,2),n=Ma(n,a,2),n!==null&&(ea(n,2),Xr(n))}function wt(n,a,u){if(n.tag===3)bS(n,n,u);else for(;a!==null;){if(a.tag===3){bS(a,n,u);break}else if(a.tag===1){var l=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(qa===null||!qa.has(l))){n=br(u,n),u=S3(2),l=Ma(a,u,2),l!==null&&(C3(u,l,a,n),ea(l,2),Xr(l));break}}a=a.return}}function Dp(n,a,u){var l=n.pingCache;if(l===null){l=n.pingCache=new u7;var f=new Set;l.set(a,f)}else f=l.get(a),f===void 0&&(f=new Set,l.set(a,f));f.has(u)||(Cp=!0,f.add(u),n=f7.bind(null,n,a,u),a.then(n,n))}function f7(n,a,u){var l=n.pingCache;l!==null&&l.delete(a),n.pingedLanes|=n.suspendedLanes&u,n.warmLanes&=~u,Pt===n&&(ot&u)===u&&(Gt===4||Gt===3&&(ot&62914560)===ot&&300>Me()-_p?(_t&2)===0&&Hu(n,0):Ap|=u,Bu===ot&&(Bu=0)),Xr(n)}function ES(n,a){a===0&&(a=tc()),n=Su(n,a),n!==null&&(ea(n,a),Xr(n))}function d7(n){var a=n.memoizedState,u=0;a!==null&&(u=a.retryLane),ES(n,u)}function h7(n,a){var u=0;switch(n.tag){case 13:var l=n.stateNode,f=n.memoizedState;f!==null&&(u=f.retryLane);break;case 19:l=n.stateNode;break;case 22:l=n.stateNode._retryCache;break;default:throw Error(i(314))}l!==null&&l.delete(a),ES(n,u)}function p7(n,a){return Oe(n,a)}var Wc=null,zu=null,wp=!1,Zc=!1,Lp=!1,Di=0;function Xr(n){n!==zu&&n.next===null&&(zu===null?Wc=zu=n:zu=zu.next=n),Zc=!0,wp||(wp=!0,g7())}function Bl(n,a){if(!Lp&&Zc){Lp=!0;do for(var u=!1,l=Wc;l!==null;){if(n!==0){var f=l.pendingLanes;if(f===0)var m=0;else{var S=l.suspendedLanes,R=l.pingedLanes;m=(1<<31-Ae(42|n)+1)-1,m&=f&~(S&~R),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(u=!0,CS(l,m))}else m=ot,m=nn(l,l===Pt?m:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(m&3)===0||Hn(l,m)||(u=!0,CS(l,m));l=l.next}while(u);Lp=!1}}function m7(){yS()}function yS(){Zc=wp=!1;var n=0;Di!==0&&(x7()&&(n=Di),Di=0);for(var a=Me(),u=null,l=Wc;l!==null;){var f=l.next,m=TS(l,a);m===0?(l.next=null,u===null?Wc=f:u.next=f,f===null&&(zu=u)):(u=l,(n!==0||(m&3)!==0)&&(Zc=!0)),l=f}Bl(n)}function TS(n,a){for(var u=n.suspendedLanes,l=n.pingedLanes,f=n.expirationTimes,m=n.pendingLanes&-62914561;0<m;){var S=31-Ae(m),R=1<<S,H=f[S];H===-1?((R&u)===0||(R&l)!==0)&&(f[S]=Fn(R,a)):H<=a&&(n.expiredLanes|=R),m&=~R}if(a=Pt,u=ot,u=nn(n,n===a?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l=n.callbackNode,u===0||n===a&&(vt===2||vt===9)||n.cancelPendingCommit!==null)return l!==null&&l!==null&&Ce(l),n.callbackNode=null,n.callbackPriority=0;if((u&3)===0||Hn(n,u)){if(a=u&-u,a===n.callbackPriority)return a;switch(l!==null&&Ce(l),Jo(u)){case 2:case 8:u=$e;break;case 32:u=ct;break;case 268435456:u=un;break;default:u=ct}return l=SS.bind(null,n),u=Oe(u,l),n.callbackPriority=a,n.callbackNode=u,a}return l!==null&&l!==null&&Ce(l),n.callbackPriority=2,n.callbackNode=null,2}function SS(n,a){if(yn!==0&&yn!==5)return n.callbackNode=null,n.callbackPriority=0,null;var u=n.callbackNode;if(Kc()&&n.callbackNode!==u)return null;var l=ot;return l=nn(n,n===Pt?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l===0?null:(rS(n,l,a),TS(n,Me()),n.callbackNode!=null&&n.callbackNode===u?SS.bind(null,n):null)}function CS(n,a){if(Kc())return null;rS(n,a,!0)}function g7(){v7(function(){(_t&6)!==0?Oe(qe,m7):yS()})}function Mp(){return Di===0&&(Di=pi()),Di}function AS(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:sc(""+n)}function xS(n,a){var u=a.ownerDocument.createElement("input");return u.name=a.name,u.value=a.value,n.id&&u.setAttribute("form",n.id),a.parentNode.insertBefore(u,a),n=new FormData(n),u.parentNode.removeChild(u),n}function b7(n,a,u,l,f){if(a==="submit"&&u&&u.stateNode===f){var m=AS((f[Ge]||null).action),S=l.submitter;S&&(a=(a=S[Ge]||null)?AS(a.formAction):S.getAttribute("formAction"),a!==null&&(m=a,S=null));var R=new hc("action","action",null,l,f);n.push({event:R,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Di!==0){var H=S?xS(f,S):new FormData(f);tp(u,{pending:!0,data:H,method:f.method,action:m},null,H)}}else typeof m=="function"&&(R.preventDefault(),H=S?xS(f,S):new FormData(f),tp(u,{pending:!0,data:H,method:f.method,action:m},m,H))},currentTarget:f}]})}}for(var Bp=0;Bp<Th.length;Bp++){var Pp=Th[Bp],E7=Pp.toLowerCase(),y7=Pp[0].toUpperCase()+Pp.slice(1);vr(E7,"on"+y7)}vr(rT,"onAnimationEnd"),vr(aT,"onAnimationIteration"),vr(iT,"onAnimationStart"),vr("dblclick","onDoubleClick"),vr("focusin","onFocus"),vr("focusout","onBlur"),vr(BM,"onTransitionRun"),vr(PM,"onTransitionStart"),vr(UM,"onTransitionCancel"),vr(uT,"onTransitionEnd"),fu("onMouseEnter",["mouseout","mouseover"]),fu("onMouseLeave",["mouseout","mouseover"]),fu("onPointerEnter",["pointerout","pointerover"]),fu("onPointerLeave",["pointerout","pointerover"]),gi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),gi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),gi("onBeforeInput",["compositionend","keypress","textInput","paste"]),gi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),gi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),gi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),T7=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Pl));function _S(n,a){a=(a&4)!==0;for(var u=0;u<n.length;u++){var l=n[u],f=l.event;l=l.listeners;e:{var m=void 0;if(a)for(var S=l.length-1;0<=S;S--){var R=l[S],H=R.instance,J=R.currentTarget;if(R=R.listener,H!==m&&f.isPropagationStopped())break e;m=R,f.currentTarget=J;try{m(f)}catch(le){Hc(le)}f.currentTarget=null,m=H}else for(S=0;S<l.length;S++){if(R=l[S],H=R.instance,J=R.currentTarget,R=R.listener,H!==m&&f.isPropagationStopped())break e;m=R,f.currentTarget=J;try{m(f)}catch(le){Hc(le)}f.currentTarget=null,m=H}}}}function rt(n,a){var u=a[zn];u===void 0&&(u=a[zn]=new Set);var l=n+"__bubble";u.has(l)||(vS(a,n,2,!1),u.add(l))}function Up(n,a,u){var l=0;a&&(l|=4),vS(u,n,l,a)}var Jc="_reactListening"+Math.random().toString(36).slice(2);function Hp(n){if(!n[Jc]){n[Jc]=!0,yy.forEach(function(u){u!=="selectionchange"&&(T7.has(u)||Up(u,!1,n),Up(u,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[Jc]||(a[Jc]=!0,Up("selectionchange",!1,a))}}function vS(n,a,u,l){switch(KS(a)){case 2:var f=$7;break;case 8:f=X7;break;default:f=Jp}u=f.bind(null,a,u,n),f=void 0,!oh||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(f=!0),l?f!==void 0?n.addEventListener(a,u,{capture:!0,passive:f}):n.addEventListener(a,u,!0):f!==void 0?n.addEventListener(a,u,{passive:f}):n.addEventListener(a,u,!1)}function Fp(n,a,u,l,f){var m=l;if((a&1)===0&&(a&2)===0&&l!==null)e:for(;;){if(l===null)return;var S=l.tag;if(S===3||S===4){var R=l.stateNode.containerInfo;if(R===f)break;if(S===4)for(S=l.return;S!==null;){var H=S.tag;if((H===3||H===4)&&S.stateNode.containerInfo===f)return;S=S.return}for(;R!==null;){if(S=lu(R),S===null)return;if(H=S.tag,H===5||H===6||H===26||H===27){l=m=S;continue e}R=R.parentNode}}l=l.return}wy(function(){var J=m,le=ih(u),ce=[];e:{var ne=oT.get(n);if(ne!==void 0){var re=hc,je=n;switch(n){case"keypress":if(fc(u)===0)break e;case"keydown":case"keyup":re=pM;break;case"focusin":je="focus",re=fh;break;case"focusout":je="blur",re=fh;break;case"beforeblur":case"afterblur":re=fh;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":re=By;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":re=nM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":re=bM;break;case rT:case aT:case iT:re=iM;break;case uT:re=yM;break;case"scroll":case"scrollend":re=eM;break;case"wheel":re=SM;break;case"copy":case"cut":case"paste":re=oM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":re=Uy;break;case"toggle":case"beforetoggle":re=AM}var Ue=(a&4)!==0,kt=!Ue&&(n==="scroll"||n==="scrollend"),G=Ue?ne!==null?ne+"Capture":null:ne;Ue=[];for(var Y=J,K;Y!==null;){var se=Y;if(K=se.stateNode,se=se.tag,se!==5&&se!==26&&se!==27||K===null||G===null||(se=nl(Y,G),se!=null&&Ue.push(Ul(Y,se,K))),kt)break;Y=Y.return}0<Ue.length&&(ne=new re(ne,je,null,u,le),ce.push({event:ne,listeners:Ue}))}}if((a&7)===0){e:{if(ne=n==="mouseover"||n==="pointerover",re=n==="mouseout"||n==="pointerout",ne&&u!==ah&&(je=u.relatedTarget||u.fromElement)&&(lu(je)||je[xt]))break e;if((re||ne)&&(ne=le.window===le?le:(ne=le.ownerDocument)?ne.defaultView||ne.parentWindow:window,re?(je=u.relatedTarget||u.toElement,re=J,je=je?lu(je):null,je!==null&&(kt=s(je),Ue=je.tag,je!==kt||Ue!==5&&Ue!==27&&Ue!==6)&&(je=null)):(re=null,je=J),re!==je)){if(Ue=By,se="onMouseLeave",G="onMouseEnter",Y="mouse",(n==="pointerout"||n==="pointerover")&&(Ue=Uy,se="onPointerLeave",G="onPointerEnter",Y="pointer"),kt=re==null?ne:tl(re),K=je==null?ne:tl(je),ne=new Ue(se,Y+"leave",re,u,le),ne.target=kt,ne.relatedTarget=K,se=null,lu(le)===J&&(Ue=new Ue(G,Y+"enter",je,u,le),Ue.target=K,Ue.relatedTarget=kt,se=Ue),kt=se,re&&je)t:{for(Ue=re,G=je,Y=0,K=Ue;K;K=Yu(K))Y++;for(K=0,se=G;se;se=Yu(se))K++;for(;0<Y-K;)Ue=Yu(Ue),Y--;for(;0<K-Y;)G=Yu(G),K--;for(;Y--;){if(Ue===G||G!==null&&Ue===G.alternate)break t;Ue=Yu(Ue),G=Yu(G)}Ue=null}else Ue=null;re!==null&&RS(ce,ne,re,Ue,!1),je!==null&&kt!==null&&RS(ce,kt,je,Ue,!0)}}e:{if(ne=J?tl(J):window,re=ne.nodeName&&ne.nodeName.toLowerCase(),re==="select"||re==="input"&&ne.type==="file")var ve=Gy;else if(qy(ne))if($y)ve=wM;else{ve=IM;var et=kM}else re=ne.nodeName,!re||re.toLowerCase()!=="input"||ne.type!=="checkbox"&&ne.type!=="radio"?J&&rh(J.elementType)&&(ve=Gy):ve=DM;if(ve&&(ve=ve(n,J))){Vy(ce,ve,u,le);break e}et&&et(n,ne,J),n==="focusout"&&J&&ne.type==="number"&&J.memoizedProps.value!=null&&nh(ne,"number",ne.value)}switch(et=J?tl(J):window,n){case"focusin":(qy(et)||et.contentEditable==="true")&&(Eu=et,bh=J,cl=null);break;case"focusout":cl=bh=Eu=null;break;case"mousedown":Eh=!0;break;case"contextmenu":case"mouseup":case"dragend":Eh=!1,tT(ce,u,le);break;case"selectionchange":if(MM)break;case"keydown":case"keyup":tT(ce,u,le)}var De;if(hh)e:{switch(n){case"compositionstart":var ze="onCompositionStart";break e;case"compositionend":ze="onCompositionEnd";break e;case"compositionupdate":ze="onCompositionUpdate";break e}ze=void 0}else bu?Yy(n,u)&&(ze="onCompositionEnd"):n==="keydown"&&u.keyCode===229&&(ze="onCompositionStart");ze&&(Hy&&u.locale!=="ko"&&(bu||ze!=="onCompositionStart"?ze==="onCompositionEnd"&&bu&&(De=Ly()):(Ia=le,lh="value"in Ia?Ia.value:Ia.textContent,bu=!0)),et=ef(J,ze),0<et.length&&(ze=new Py(ze,n,null,u,le),ce.push({event:ze,listeners:et}),De?ze.data=De:(De=jy(u),De!==null&&(ze.data=De)))),(De=_M?vM(n,u):RM(n,u))&&(ze=ef(J,"onBeforeInput"),0<ze.length&&(et=new Py("onBeforeInput","beforeinput",null,u,le),ce.push({event:et,listeners:ze}),et.data=De)),b7(ce,n,J,u,le)}_S(ce,a)})}function Ul(n,a,u){return{instance:n,listener:a,currentTarget:u}}function ef(n,a){for(var u=a+"Capture",l=[];n!==null;){var f=n,m=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||m===null||(f=nl(n,u),f!=null&&l.unshift(Ul(n,f,m)),f=nl(n,a),f!=null&&l.push(Ul(n,f,m))),n.tag===3)return l;n=n.return}return[]}function Yu(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function RS(n,a,u,l,f){for(var m=a._reactName,S=[];u!==null&&u!==l;){var R=u,H=R.alternate,J=R.stateNode;if(R=R.tag,H!==null&&H===l)break;R!==5&&R!==26&&R!==27||J===null||(H=J,f?(J=nl(u,m),J!=null&&S.unshift(Ul(u,J,H))):f||(J=nl(u,m),J!=null&&S.push(Ul(u,J,H)))),u=u.return}S.length!==0&&n.push({event:a,listeners:S})}var S7=/\r\n?/g,C7=/\u0000|\uFFFD/g;function NS(n){return(typeof n=="string"?n:""+n).replace(S7,`
|
|
41
|
+
`).replace(C7,"")}function OS(n,a){return a=NS(a),NS(n)===a}function tf(){}function Ot(n,a,u,l,f,m){switch(u){case"children":typeof l=="string"?a==="body"||a==="textarea"&&l===""||pu(n,l):(typeof l=="number"||typeof l=="bigint")&&a!=="body"&&pu(n,""+l);break;case"className":uc(n,"class",l);break;case"tabIndex":uc(n,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":uc(n,u,l);break;case"style":Iy(n,l,m);break;case"data":if(a!=="object"){uc(n,"data",l);break}case"src":case"href":if(l===""&&(a!=="a"||u!=="href")){n.removeAttribute(u);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(u);break}l=sc(""+l),n.setAttribute(u,l);break;case"action":case"formAction":if(typeof l=="function"){n.setAttribute(u,"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 m=="function"&&(u==="formAction"?(a!=="input"&&Ot(n,a,"name",f.name,f,null),Ot(n,a,"formEncType",f.formEncType,f,null),Ot(n,a,"formMethod",f.formMethod,f,null),Ot(n,a,"formTarget",f.formTarget,f,null)):(Ot(n,a,"encType",f.encType,f,null),Ot(n,a,"method",f.method,f,null),Ot(n,a,"target",f.target,f,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(u);break}l=sc(""+l),n.setAttribute(u,l);break;case"onClick":l!=null&&(n.onclick=tf);break;case"onScroll":l!=null&&rt("scroll",n);break;case"onScrollEnd":l!=null&&rt("scrollend",n);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(u=l.__html,u!=null){if(f.children!=null)throw Error(i(60));n.innerHTML=u}}break;case"multiple":n.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":n.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"){n.removeAttribute("xlink:href");break}u=sc(""+l),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);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"?n.setAttribute(u,""+l):n.removeAttribute(u);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"?n.setAttribute(u,""):n.removeAttribute(u);break;case"capture":case"download":l===!0?n.setAttribute(u,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(u,l):n.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?n.setAttribute(u,l):n.removeAttribute(u);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?n.removeAttribute(u):n.setAttribute(u,l);break;case"popover":rt("beforetoggle",n),rt("toggle",n),ic(n,"popover",l);break;case"xlinkActuate":ra(n,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":ra(n,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":ra(n,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":ra(n,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":ra(n,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":ra(n,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":ra(n,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":ra(n,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":ra(n,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":ic(n,"is",l);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=ZL.get(u)||u,ic(n,u,l))}}function zp(n,a,u,l,f,m){switch(u){case"style":Iy(n,l,m);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(u=l.__html,u!=null){if(f.children!=null)throw Error(i(60));n.innerHTML=u}}break;case"children":typeof l=="string"?pu(n,l):(typeof l=="number"||typeof l=="bigint")&&pu(n,""+l);break;case"onScroll":l!=null&&rt("scroll",n);break;case"onScrollEnd":l!=null&&rt("scrollend",n);break;case"onClick":l!=null&&(n.onclick=tf);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ty.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(f=u.endsWith("Capture"),a=u.slice(2,f?u.length-7:void 0),m=n[Ge]||null,m=m!=null?m[u]:null,typeof m=="function"&&n.removeEventListener(a,m,f),typeof l=="function")){typeof m!="function"&&m!==null&&(u in n?n[u]=null:n.hasAttribute(u)&&n.removeAttribute(u)),n.addEventListener(a,l,f);break e}u in n?n[u]=l:l===!0?n.setAttribute(u,""):ic(n,u,l)}}}function Tn(n,a,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":rt("error",n),rt("load",n);var l=!1,f=!1,m;for(m in u)if(u.hasOwnProperty(m)){var S=u[m];if(S!=null)switch(m){case"src":l=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:Ot(n,a,m,S,u,null)}}f&&Ot(n,a,"srcSet",u.srcSet,u,null),l&&Ot(n,a,"src",u.src,u,null);return;case"input":rt("invalid",n);var R=m=S=f=null,H=null,J=null;for(l in u)if(u.hasOwnProperty(l)){var le=u[l];if(le!=null)switch(l){case"name":f=le;break;case"type":S=le;break;case"checked":H=le;break;case"defaultChecked":J=le;break;case"value":m=le;break;case"defaultValue":R=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(i(137,a));break;default:Ot(n,a,l,le,u,null)}}Ry(n,m,R,H,J,S,f,!1),oc(n);return;case"select":rt("invalid",n),l=S=m=null;for(f in u)if(u.hasOwnProperty(f)&&(R=u[f],R!=null))switch(f){case"value":m=R;break;case"defaultValue":S=R;break;case"multiple":l=R;default:Ot(n,a,f,R,u,null)}a=m,u=S,n.multiple=!!l,a!=null?hu(n,!!l,a,!1):u!=null&&hu(n,!!l,u,!0);return;case"textarea":rt("invalid",n),m=f=l=null;for(S in u)if(u.hasOwnProperty(S)&&(R=u[S],R!=null))switch(S){case"value":l=R;break;case"defaultValue":f=R;break;case"children":m=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(i(91));break;default:Ot(n,a,S,R,u,null)}Oy(n,l,f,m),oc(n);return;case"option":for(H in u)if(u.hasOwnProperty(H)&&(l=u[H],l!=null))switch(H){case"selected":n.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ot(n,a,H,l,u,null)}return;case"dialog":rt("beforetoggle",n),rt("toggle",n),rt("cancel",n),rt("close",n);break;case"iframe":case"object":rt("load",n);break;case"video":case"audio":for(l=0;l<Pl.length;l++)rt(Pl[l],n);break;case"image":rt("error",n),rt("load",n);break;case"details":rt("toggle",n);break;case"embed":case"source":case"link":rt("error",n),rt("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(J in u)if(u.hasOwnProperty(J)&&(l=u[J],l!=null))switch(J){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:Ot(n,a,J,l,u,null)}return;default:if(rh(a)){for(le in u)u.hasOwnProperty(le)&&(l=u[le],l!==void 0&&zp(n,a,le,l,u,void 0));return}}for(R in u)u.hasOwnProperty(R)&&(l=u[R],l!=null&&Ot(n,a,R,l,u,null))}function A7(n,a,u,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,m=null,S=null,R=null,H=null,J=null,le=null;for(re in u){var ce=u[re];if(u.hasOwnProperty(re)&&ce!=null)switch(re){case"checked":break;case"value":break;case"defaultValue":H=ce;default:l.hasOwnProperty(re)||Ot(n,a,re,null,l,ce)}}for(var ne in l){var re=l[ne];if(ce=u[ne],l.hasOwnProperty(ne)&&(re!=null||ce!=null))switch(ne){case"type":m=re;break;case"name":f=re;break;case"checked":J=re;break;case"defaultChecked":le=re;break;case"value":S=re;break;case"defaultValue":R=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(i(137,a));break;default:re!==ce&&Ot(n,a,ne,re,l,ce)}}th(n,S,R,H,J,le,m,f);return;case"select":re=S=R=ne=null;for(m in u)if(H=u[m],u.hasOwnProperty(m)&&H!=null)switch(m){case"value":break;case"multiple":re=H;default:l.hasOwnProperty(m)||Ot(n,a,m,null,l,H)}for(f in l)if(m=l[f],H=u[f],l.hasOwnProperty(f)&&(m!=null||H!=null))switch(f){case"value":ne=m;break;case"defaultValue":R=m;break;case"multiple":S=m;default:m!==H&&Ot(n,a,f,m,l,H)}a=R,u=S,l=re,ne!=null?hu(n,!!u,ne,!1):!!l!=!!u&&(a!=null?hu(n,!!u,a,!0):hu(n,!!u,u?[]:"",!1));return;case"textarea":re=ne=null;for(R in u)if(f=u[R],u.hasOwnProperty(R)&&f!=null&&!l.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:Ot(n,a,R,null,l,f)}for(S in l)if(f=l[S],m=u[S],l.hasOwnProperty(S)&&(f!=null||m!=null))switch(S){case"value":ne=f;break;case"defaultValue":re=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(i(91));break;default:f!==m&&Ot(n,a,S,f,l,m)}Ny(n,ne,re);return;case"option":for(var je in u)if(ne=u[je],u.hasOwnProperty(je)&&ne!=null&&!l.hasOwnProperty(je))switch(je){case"selected":n.selected=!1;break;default:Ot(n,a,je,null,l,ne)}for(H in l)if(ne=l[H],re=u[H],l.hasOwnProperty(H)&&ne!==re&&(ne!=null||re!=null))switch(H){case"selected":n.selected=ne&&typeof ne!="function"&&typeof ne!="symbol";break;default:Ot(n,a,H,ne,l,re)}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 Ue in u)ne=u[Ue],u.hasOwnProperty(Ue)&&ne!=null&&!l.hasOwnProperty(Ue)&&Ot(n,a,Ue,null,l,ne);for(J in l)if(ne=l[J],re=u[J],l.hasOwnProperty(J)&&ne!==re&&(ne!=null||re!=null))switch(J){case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(i(137,a));break;default:Ot(n,a,J,ne,l,re)}return;default:if(rh(a)){for(var kt in u)ne=u[kt],u.hasOwnProperty(kt)&&ne!==void 0&&!l.hasOwnProperty(kt)&&zp(n,a,kt,void 0,l,ne);for(le in l)ne=l[le],re=u[le],!l.hasOwnProperty(le)||ne===re||ne===void 0&&re===void 0||zp(n,a,le,ne,l,re);return}}for(var G in u)ne=u[G],u.hasOwnProperty(G)&&ne!=null&&!l.hasOwnProperty(G)&&Ot(n,a,G,null,l,ne);for(ce in l)ne=l[ce],re=u[ce],!l.hasOwnProperty(ce)||ne===re||ne==null&&re==null||Ot(n,a,ce,ne,l,re)}var Yp=null,jp=null;function nf(n){return n.nodeType===9?n:n.ownerDocument}function kS(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function IS(n,a){if(n===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&a==="foreignObject"?0:n}function qp(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Vp=null;function x7(){var n=window.event;return n&&n.type==="popstate"?n===Vp?!1:(Vp=n,!0):(Vp=null,!1)}var DS=typeof setTimeout=="function"?setTimeout:void 0,_7=typeof clearTimeout=="function"?clearTimeout:void 0,wS=typeof Promise=="function"?Promise:void 0,v7=typeof queueMicrotask=="function"?queueMicrotask:typeof wS<"u"?function(n){return wS.resolve(null).then(n).catch(R7)}:DS;function R7(n){setTimeout(function(){throw n})}function $a(n){return n==="head"}function LS(n,a){var u=a,l=0,f=0;do{var m=u.nextSibling;if(n.removeChild(u),m&&m.nodeType===8)if(u=m.data,u==="/$"){if(0<l&&8>l){u=l;var S=n.ownerDocument;if(u&1&&Hl(S.documentElement),u&2&&Hl(S.body),u&4)for(u=S.head,Hl(u),S=u.firstChild;S;){var R=S.nextSibling,H=S.nodeName;S[na]||H==="SCRIPT"||H==="STYLE"||H==="LINK"&&S.rel.toLowerCase()==="stylesheet"||u.removeChild(S),S=R}}if(f===0){n.removeChild(m),$l(a);return}f--}else u==="$"||u==="$?"||u==="$!"?f++:l=u.charCodeAt(0)-48;else l=0;u=m}while(u);$l(a)}function Gp(n){var a=n.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var u=a;switch(a=a.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":Gp(u),W0(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}n.removeChild(u)}}function N7(n,a,u,l){for(;n.nodeType===1;){var f=u;if(n.nodeName.toLowerCase()!==a.toLowerCase()){if(!l&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(l){if(!n[na])switch(a){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(m=n.getAttribute("rel"),m==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(m!==f.rel||n.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||n.getAttribute("title")!==(f.title==null?null:f.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(m=n.getAttribute("src"),(m!==(f.src==null?null:f.src)||n.getAttribute("type")!==(f.type==null?null:f.type)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&m&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(a==="input"&&n.type==="hidden"){var m=f.name==null?null:""+f.name;if(f.type==="hidden"&&n.getAttribute("name")===m)return n}else return n;if(n=Nr(n.nextSibling),n===null)break}return null}function O7(n,a,u){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!u||(n=Nr(n.nextSibling),n===null))return null;return n}function $p(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState==="complete"}function k7(n,a){var u=n.ownerDocument;if(n.data!=="$?"||u.readyState==="complete")a();else{var l=function(){a(),u.removeEventListener("DOMContentLoaded",l)};u.addEventListener("DOMContentLoaded",l),n._reactRetry=l}}function Nr(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return n}var Xp=null;function MS(n){n=n.previousSibling;for(var a=0;n;){if(n.nodeType===8){var u=n.data;if(u==="$"||u==="$!"||u==="$?"){if(a===0)return n;a--}else u==="/$"&&a++}n=n.previousSibling}return null}function BS(n,a,u){switch(a=nf(u),n){case"html":if(n=a.documentElement,!n)throw Error(i(452));return n;case"head":if(n=a.head,!n)throw Error(i(453));return n;case"body":if(n=a.body,!n)throw Error(i(454));return n;default:throw Error(i(451))}}function Hl(n){for(var a=n.attributes;a.length;)n.removeAttributeNode(a[0]);W0(n)}var Ar=new Map,PS=new Set;function rf(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var ba=ie.d;ie.d={f:I7,r:D7,D:w7,C:L7,L:M7,m:B7,X:U7,S:P7,M:H7};function I7(){var n=ba.f(),a=Xc();return n||a}function D7(n){var a=su(n);a!==null&&a.tag===5&&a.type==="form"?r3(a):ba.r(n)}var ju=typeof document>"u"?null:document;function US(n,a,u){var l=ju;if(l&&typeof a=="string"&&a){var f=gr(a);f='link[rel="'+n+'"][href="'+f+'"]',typeof u=="string"&&(f+='[crossorigin="'+u+'"]'),PS.has(f)||(PS.add(f),n={rel:n,crossOrigin:u,href:a},l.querySelector(f)===null&&(a=l.createElement("link"),Tn(a,"link",n),dn(a),l.head.appendChild(a)))}}function w7(n){ba.D(n),US("dns-prefetch",n,null)}function L7(n,a){ba.C(n,a),US("preconnect",n,a)}function M7(n,a,u){ba.L(n,a,u);var l=ju;if(l&&n&&a){var f='link[rel="preload"][as="'+gr(a)+'"]';a==="image"&&u&&u.imageSrcSet?(f+='[imagesrcset="'+gr(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(f+='[imagesizes="'+gr(u.imageSizes)+'"]')):f+='[href="'+gr(n)+'"]';var m=f;switch(a){case"style":m=qu(n);break;case"script":m=Vu(n)}Ar.has(m)||(n=b({rel:"preload",href:a==="image"&&u&&u.imageSrcSet?void 0:n,as:a},u),Ar.set(m,n),l.querySelector(f)!==null||a==="style"&&l.querySelector(Fl(m))||a==="script"&&l.querySelector(zl(m))||(a=l.createElement("link"),Tn(a,"link",n),dn(a),l.head.appendChild(a)))}}function B7(n,a){ba.m(n,a);var u=ju;if(u&&n){var l=a&&typeof a.as=="string"?a.as:"script",f='link[rel="modulepreload"][as="'+gr(l)+'"][href="'+gr(n)+'"]',m=f;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Vu(n)}if(!Ar.has(m)&&(n=b({rel:"modulepreload",href:n},a),Ar.set(m,n),u.querySelector(f)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(zl(m)))return}l=u.createElement("link"),Tn(l,"link",n),dn(l),u.head.appendChild(l)}}}function P7(n,a,u){ba.S(n,a,u);var l=ju;if(l&&n){var f=cu(l).hoistableStyles,m=qu(n);a=a||"default";var S=f.get(m);if(!S){var R={loading:0,preload:null};if(S=l.querySelector(Fl(m)))R.loading=5;else{n=b({rel:"stylesheet",href:n,"data-precedence":a},u),(u=Ar.get(m))&&Qp(n,u);var H=S=l.createElement("link");dn(H),Tn(H,"link",n),H._p=new Promise(function(J,le){H.onload=J,H.onerror=le}),H.addEventListener("load",function(){R.loading|=1}),H.addEventListener("error",function(){R.loading|=2}),R.loading|=4,af(S,a,l)}S={type:"stylesheet",instance:S,count:1,state:R},f.set(m,S)}}}function U7(n,a){ba.X(n,a);var u=ju;if(u&&n){var l=cu(u).hoistableScripts,f=Vu(n),m=l.get(f);m||(m=u.querySelector(zl(f)),m||(n=b({src:n,async:!0},a),(a=Ar.get(f))&&Kp(n,a),m=u.createElement("script"),dn(m),Tn(m,"link",n),u.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},l.set(f,m))}}function H7(n,a){ba.M(n,a);var u=ju;if(u&&n){var l=cu(u).hoistableScripts,f=Vu(n),m=l.get(f);m||(m=u.querySelector(zl(f)),m||(n=b({src:n,async:!0,type:"module"},a),(a=Ar.get(f))&&Kp(n,a),m=u.createElement("script"),dn(m),Tn(m,"link",n),u.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},l.set(f,m))}}function HS(n,a,u,l){var f=(f=Te.current)?rf(f):null;if(!f)throw Error(i(446));switch(n){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(a=qu(u.href),u=cu(f).hoistableStyles,l=u.get(a),l||(l={type:"style",instance:null,count:0,state:null},u.set(a,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){n=qu(u.href);var m=cu(f).hoistableStyles,S=m.get(n);if(S||(f=f.ownerDocument||f,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(n,S),(m=f.querySelector(Fl(n)))&&!m._p&&(S.instance=m,S.state.loading=5),Ar.has(n)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},Ar.set(n,u),m||F7(f,n,u,S.state))),a&&l===null)throw Error(i(528,""));return S}if(a&&l!==null)throw Error(i(529,""));return null;case"script":return a=u.async,u=u.src,typeof u=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Vu(u),u=cu(f).hoistableScripts,l=u.get(a),l||(l={type:"script",instance:null,count:0,state:null},u.set(a,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,n))}}function qu(n){return'href="'+gr(n)+'"'}function Fl(n){return'link[rel="stylesheet"]['+n+"]"}function FS(n){return b({},n,{"data-precedence":n.precedence,precedence:null})}function F7(n,a,u,l){n.querySelector('link[rel="preload"][as="style"]['+a+"]")?l.loading=1:(a=n.createElement("link"),l.preload=a,a.addEventListener("load",function(){return l.loading|=1}),a.addEventListener("error",function(){return l.loading|=2}),Tn(a,"link",u),dn(a),n.head.appendChild(a))}function Vu(n){return'[src="'+gr(n)+'"]'}function zl(n){return"script[async]"+n}function zS(n,a,u){if(a.count++,a.instance===null)switch(a.type){case"style":var l=n.querySelector('style[data-href~="'+gr(u.href)+'"]');if(l)return a.instance=l,dn(l),l;var f=b({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return l=(n.ownerDocument||n).createElement("style"),dn(l),Tn(l,"style",f),af(l,u.precedence,n),a.instance=l;case"stylesheet":f=qu(u.href);var m=n.querySelector(Fl(f));if(m)return a.state.loading|=4,a.instance=m,dn(m),m;l=FS(u),(f=Ar.get(f))&&Qp(l,f),m=(n.ownerDocument||n).createElement("link"),dn(m);var S=m;return S._p=new Promise(function(R,H){S.onload=R,S.onerror=H}),Tn(m,"link",l),a.state.loading|=4,af(m,u.precedence,n),a.instance=m;case"script":return m=Vu(u.src),(f=n.querySelector(zl(m)))?(a.instance=f,dn(f),f):(l=u,(f=Ar.get(m))&&(l=b({},u),Kp(l,f)),n=n.ownerDocument||n,f=n.createElement("script"),dn(f),Tn(f,"link",l),n.head.appendChild(f),a.instance=f);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(l=a.instance,a.state.loading|=4,af(l,u.precedence,n));return a.instance}function af(n,a,u){for(var l=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=l.length?l[l.length-1]:null,m=f,S=0;S<l.length;S++){var R=l[S];if(R.dataset.precedence===a)m=R;else if(m!==f)break}m?m.parentNode.insertBefore(n,m.nextSibling):(a=u.nodeType===9?u.head:u,a.insertBefore(n,a.firstChild))}function Qp(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function Kp(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var uf=null;function YS(n,a,u){if(uf===null){var l=new Map,f=uf=new Map;f.set(u,l)}else f=uf,l=f.get(u),l||(l=new Map,f.set(u,l));if(l.has(n))return l;for(l.set(n,null),u=u.getElementsByTagName(n),f=0;f<u.length;f++){var m=u[f];if(!(m[na]||m[Ye]||n==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var S=m.getAttribute(a)||"";S=n+S;var R=l.get(S);R?R.push(m):l.set(S,[m])}}return l}function jS(n,a,u){n=n.ownerDocument||n,n.head.insertBefore(u,a==="title"?n.querySelector("head > title"):null)}function z7(n,a,u){if(u===1||a.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return n=a.disabled,typeof a.precedence=="string"&&n==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function qS(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}var Yl=null;function Y7(){}function j7(n,a,u){if(Yl===null)throw Error(i(475));var l=Yl;if(a.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var f=qu(u.href),m=n.querySelector(Fl(f));if(m){n=m._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(l.count++,l=of.bind(l),n.then(l,l)),a.state.loading|=4,a.instance=m,dn(m);return}m=n.ownerDocument||n,u=FS(u),(f=Ar.get(f))&&Qp(u,f),m=m.createElement("link"),dn(m);var S=m;S._p=new Promise(function(R,H){S.onload=R,S.onerror=H}),Tn(m,"link",u),a.instance=m}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(l.count++,a=of.bind(l),n.addEventListener("load",a),n.addEventListener("error",a))}}function q7(){if(Yl===null)throw Error(i(475));var n=Yl;return n.stylesheets&&n.count===0&&Wp(n,n.stylesheets),0<n.count?function(a){var u=setTimeout(function(){if(n.stylesheets&&Wp(n,n.stylesheets),n.unsuspend){var l=n.unsuspend;n.unsuspend=null,l()}},6e4);return n.unsuspend=a,function(){n.unsuspend=null,clearTimeout(u)}}:null}function of(){if(this.count--,this.count===0){if(this.stylesheets)Wp(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var lf=null;function Wp(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,lf=new Map,a.forEach(V7,n),lf=null,of.call(n))}function V7(n,a){if(!(a.state.loading&4)){var u=lf.get(n);if(u)var l=u.get(null);else{u=new Map,lf.set(n,u);for(var f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<f.length;m++){var S=f[m];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(u.set(S.dataset.precedence,S),l=S)}l&&u.set(null,l)}f=a.instance,S=f.getAttribute("data-precedence"),m=u.get(S)||l,m===l&&u.set(null,f),u.set(S,f),this.count++,l=of.bind(this),f.addEventListener("load",l),f.addEventListener("error",l),m?m.parentNode.insertBefore(f,m.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(f,n.firstChild)),a.state.loading|=4}}var jl={$$typeof:L,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function G7(n,a,u,l,f,m,S,R){this.tag=1,this.containerInfo=n,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=Wo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wo(0),this.hiddenUpdates=Wo(null),this.identifierPrefix=l,this.onUncaughtError=f,this.onCaughtError=m,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function VS(n,a,u,l,f,m,S,R,H,J,le,ce){return n=new G7(n,a,u,S,R,H,J,ce),a=1,m===!0&&(a|=24),m=er(3,null,null,a),n.current=m,m.stateNode=n,a=Dh(),a.refCount++,n.pooledCache=a,a.refCount++,m.memoizedState={element:l,isDehydrated:u,cache:a},Bh(m),n}function GS(n){return n?(n=Cu,n):Cu}function $S(n,a,u,l,f,m){f=GS(f),l.context===null?l.context=f:l.pendingContext=f,l=La(a),l.payload={element:u},m=m===void 0?null:m,m!==null&&(l.callback=m),u=Ma(n,l,a),u!==null&&(ir(u,n,a),yl(u,n,a))}function XS(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var u=n.retryLane;n.retryLane=u!==0&&u<a?u:a}}function Zp(n,a){XS(n,a),(n=n.alternate)&&XS(n,a)}function QS(n){if(n.tag===13){var a=Su(n,67108864);a!==null&&ir(a,n,67108864),Zp(n,67108864)}}var sf=!0;function $7(n,a,u,l){var f=F.T;F.T=null;var m=ie.p;try{ie.p=2,Jp(n,a,u,l)}finally{ie.p=m,F.T=f}}function X7(n,a,u,l){var f=F.T;F.T=null;var m=ie.p;try{ie.p=8,Jp(n,a,u,l)}finally{ie.p=m,F.T=f}}function Jp(n,a,u,l){if(sf){var f=em(l);if(f===null)Fp(n,a,l,cf,u),WS(n,l);else if(K7(f,n,a,u,l))l.stopPropagation();else if(WS(n,l),a&4&&-1<Q7.indexOf(n)){for(;f!==null;){var m=su(f);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var S=fn(m.pendingLanes);if(S!==0){var R=m;for(R.pendingLanes|=2,R.entangledLanes|=2;S;){var H=1<<31-Ae(S);R.entanglements[1]|=H,S&=~H}Xr(m),(_t&6)===0&&(Gc=Me()+500,Bl(0))}}break;case 13:R=Su(m,2),R!==null&&ir(R,m,2),Xc(),Zp(m,2)}if(m=em(l),m===null&&Fp(n,a,l,cf,u),m===f)break;f=m}f!==null&&l.stopPropagation()}else Fp(n,a,l,null,u)}}function em(n){return n=ih(n),tm(n)}var cf=null;function tm(n){if(cf=null,n=lu(n),n!==null){var a=s(n);if(a===null)n=null;else{var u=a.tag;if(u===13){if(n=c(a),n!==null)return n;n=null}else if(u===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}return cf=n,null}function KS(n){switch(n){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(Fe()){case qe:return 2;case $e:return 8;case ct:case Ie:return 32;case un:return 268435456;default:return 32}default:return 32}}var nm=!1,Xa=null,Qa=null,Ka=null,ql=new Map,Vl=new Map,Wa=[],Q7="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 WS(n,a){switch(n){case"focusin":case"focusout":Xa=null;break;case"dragenter":case"dragleave":Qa=null;break;case"mouseover":case"mouseout":Ka=null;break;case"pointerover":case"pointerout":ql.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vl.delete(a.pointerId)}}function Gl(n,a,u,l,f,m){return n===null||n.nativeEvent!==m?(n={blockedOn:a,domEventName:u,eventSystemFlags:l,nativeEvent:m,targetContainers:[f]},a!==null&&(a=su(a),a!==null&&QS(a)),n):(n.eventSystemFlags|=l,a=n.targetContainers,f!==null&&a.indexOf(f)===-1&&a.push(f),n)}function K7(n,a,u,l,f){switch(a){case"focusin":return Xa=Gl(Xa,n,a,u,l,f),!0;case"dragenter":return Qa=Gl(Qa,n,a,u,l,f),!0;case"mouseover":return Ka=Gl(Ka,n,a,u,l,f),!0;case"pointerover":var m=f.pointerId;return ql.set(m,Gl(ql.get(m)||null,n,a,u,l,f)),!0;case"gotpointercapture":return m=f.pointerId,Vl.set(m,Gl(Vl.get(m)||null,n,a,u,l,f)),!0}return!1}function ZS(n){var a=lu(n.target);if(a!==null){var u=s(a);if(u!==null){if(a=u.tag,a===13){if(a=c(u),a!==null){n.blockedOn=a,xe(n.priority,function(){if(u.tag===13){var l=ar();l=Zo(l);var f=Su(u,l);f!==null&&ir(f,u,l),Zp(u,l)}});return}}else if(a===3&&u.stateNode.current.memoizedState.isDehydrated){n.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}n.blockedOn=null}function ff(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var u=em(n.nativeEvent);if(u===null){u=n.nativeEvent;var l=new u.constructor(u.type,u);ah=l,u.target.dispatchEvent(l),ah=null}else return a=su(u),a!==null&&QS(a),n.blockedOn=u,!1;a.shift()}return!0}function JS(n,a,u){ff(n)&&u.delete(a)}function W7(){nm=!1,Xa!==null&&ff(Xa)&&(Xa=null),Qa!==null&&ff(Qa)&&(Qa=null),Ka!==null&&ff(Ka)&&(Ka=null),ql.forEach(JS),Vl.forEach(JS)}function df(n,a){n.blockedOn===a&&(n.blockedOn=null,nm||(nm=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,W7)))}var hf=null;function eC(n){hf!==n&&(hf=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){hf===n&&(hf=null);for(var a=0;a<n.length;a+=3){var u=n[a],l=n[a+1],f=n[a+2];if(typeof l!="function"){if(tm(l||u)===null)continue;break}var m=su(u);m!==null&&(n.splice(a,3),a-=3,tp(m,{pending:!0,data:f,method:u.method,action:l},l,f))}}))}function $l(n){function a(H){return df(H,n)}Xa!==null&&df(Xa,n),Qa!==null&&df(Qa,n),Ka!==null&&df(Ka,n),ql.forEach(a),Vl.forEach(a);for(var u=0;u<Wa.length;u++){var l=Wa[u];l.blockedOn===n&&(l.blockedOn=null)}for(;0<Wa.length&&(u=Wa[0],u.blockedOn===null);)ZS(u),u.blockedOn===null&&Wa.shift();if(u=(n.ownerDocument||n).$$reactFormReplay,u!=null)for(l=0;l<u.length;l+=3){var f=u[l],m=u[l+1],S=f[Ge]||null;if(typeof m=="function")S||eC(u);else if(S){var R=null;if(m&&m.hasAttribute("formAction")){if(f=m,S=m[Ge]||null)R=S.formAction;else if(tm(f)!==null)continue}else R=S.action;typeof R=="function"?u[l+1]=R:(u.splice(l,3),l-=3),eC(u)}}}function rm(n){this._internalRoot=n}pf.prototype.render=rm.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(i(409));var u=a.current,l=ar();$S(u,l,n,a,null,null)},pf.prototype.unmount=rm.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;$S(n.current,2,null,n,null,null),Xc(),a[xt]=null}};function pf(n){this._internalRoot=n}pf.prototype.unstable_scheduleHydration=function(n){if(n){var a=ac();n={blockedOn:null,target:n,priority:a};for(var u=0;u<Wa.length&&a!==0&&a<Wa[u].priority;u++);Wa.splice(u,0,n),u===0&&ZS(n)}};var tC=t.version;if(tC!=="19.1.0")throw Error(i(527,tC,"19.1.0"));ie.findDOMNode=function(n){var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(i(188)):(n=Object.keys(n).join(","),Error(i(268,n)));return n=h(a),n=n!==null?p(n):null,n=n===null?null:n.stateNode,n};var Z7={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mf.isDisabled&&mf.supportsFiber)try{ae=mf.inject(Z7),de=mf}catch{}}return Gu.createRoot=function(n,a){if(!o(n))throw Error(i(299));var u=!1,l="",f=b3,m=E3,S=y3,R=null;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(R=a.unstable_transitionCallbacks)),a=VS(n,1,!1,null,null,u,l,f,m,S,R,null),n[xt]=a.current,Hp(n),new rm(a)},Gu.hydrateRoot=function(n,a,u){if(!o(n))throw Error(i(299));var l=!1,f="",m=b3,S=E3,R=y3,H=null,J=null;return u!=null&&(u.unstable_strictMode===!0&&(l=!0),u.identifierPrefix!==void 0&&(f=u.identifierPrefix),u.onUncaughtError!==void 0&&(m=u.onUncaughtError),u.onCaughtError!==void 0&&(S=u.onCaughtError),u.onRecoverableError!==void 0&&(R=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(H=u.unstable_transitionCallbacks),u.formState!==void 0&&(J=u.formState)),a=VS(n,1,!0,a,u??null,l,f,m,S,R,H,J),a.context=GS(null),u=a.current,l=ar(),l=Zo(l),f=La(l),f.callback=null,Ma(u,f,l),u=l,a.current.lanes=u,ea(a,u),Xr(a),n[xt]=a.current,Hp(n),new pf(a)},Gu.version="19.1.0",Gu}var hm;function lC(){if(hm)return Ef.exports;hm=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Ef.exports=oC(),Ef.exports}var sC=lC();function Ja(){return Ja=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Ja.apply(null,arguments)}function cC(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function fC(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var dC=function(){function e(r){var i=this;this._insertTag=function(o){var s;i.tags.length===0?i.insertionPoint?s=i.insertionPoint.nextSibling:i.prepend?s=i.container.firstChild:s=i.before:s=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(o,s),i.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(fC(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=cC(o);try{s.insertRule(i,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){var o;return(o=i.parentNode)==null?void 0:o.removeChild(i)}),this.tags=[],this.ctr=0},e}(),Cn="-ms-",Kl="-moz-",dt="-webkit-",pm="comm",Cf="rule",Af="decl",hC="@import",mm="@keyframes",pC="@layer",mC=Math.abs,Wl=String.fromCharCode,gC=Object.assign;function bC(e,t){return gn(e,0)^45?(((t<<2^gn(e,0))<<2^gn(e,1))<<2^gn(e,2))<<2^gn(e,3):0}function gm(e){return e.trim()}function EC(e,t){return(e=t.exec(e))?e[0]:e}function ht(e,t,r){return e.replace(t,r)}function xf(e,t){return e.indexOf(t)}function gn(e,t){return e.charCodeAt(t)|0}function $u(e,t,r){return e.slice(t,r)}function Or(e){return e.length}function _f(e){return e.length}function Zl(e,t){return t.push(e),e}function yC(e,t){return e.map(t).join("")}var Jl=1,wi=1,bm=0,wn=0,Wt=0,Li="";function es(e,t,r,i,o,s,c){return{value:e,root:t,parent:r,type:i,props:o,children:s,line:Jl,column:wi,length:c,return:""}}function Xu(e,t){return gC(es("",null,null,"",null,null,0),e,{length:-e.length},t)}function TC(){return Wt}function SC(){return Wt=wn>0?gn(Li,--wn):0,wi--,Wt===10&&(wi=1,Jl--),Wt}function $n(){return Wt=wn<bm?gn(Li,wn++):0,wi++,Wt===10&&(wi=1,Jl++),Wt}function kr(){return gn(Li,wn)}function ts(){return wn}function Qu(e,t){return $u(Li,e,t)}function Ku(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Em(e){return Jl=wi=1,bm=Or(Li=e),wn=0,[]}function ym(e){return Li="",e}function ns(e){return gm(Qu(wn-1,vf(e===91?e+2:e===40?e+1:e)))}function CC(e){for(;(Wt=kr())&&Wt<33;)$n();return Ku(e)>2||Ku(Wt)>3?"":" "}function AC(e,t){for(;--t&&$n()&&!(Wt<48||Wt>102||Wt>57&&Wt<65||Wt>70&&Wt<97););return Qu(e,ts()+(t<6&&kr()==32&&$n()==32))}function vf(e){for(;$n();)switch(Wt){case e:return wn;case 34:case 39:e!==34&&e!==39&&vf(Wt);break;case 40:e===41&&vf(e);break;case 92:$n();break}return wn}function xC(e,t){for(;$n()&&e+Wt!==57;)if(e+Wt===84&&kr()===47)break;return"/*"+Qu(t,wn-1)+"*"+Wl(e===47?e:$n())}function _C(e){for(;!Ku(kr());)$n();return Qu(e,wn)}function vC(e){return ym(rs("",null,null,null,[""],e=Em(e),0,[0],e))}function rs(e,t,r,i,o,s,c,d,h){for(var p=0,b=0,E=c,T=0,y=0,v=0,x=1,B=1,O=1,P=0,L="",M=o,D=s,N=i,z=L;B;)switch(v=P,P=$n()){case 40:if(v!=108&&gn(z,E-1)==58){xf(z+=ht(ns(P),"&","&\f"),"&\f")!=-1&&(O=-1);break}case 34:case 39:case 91:z+=ns(P);break;case 9:case 10:case 13:case 32:z+=CC(v);break;case 92:z+=AC(ts()-1,7);continue;case 47:switch(kr()){case 42:case 47:Zl(RC(xC($n(),ts()),t,r),h);break;default:z+="/"}break;case 123*x:d[p++]=Or(z)*O;case 125*x:case 59:case 0:switch(P){case 0:case 125:B=0;case 59+b:O==-1&&(z=ht(z,/\f/g,"")),y>0&&Or(z)-E&&Zl(y>32?Sm(z+";",i,r,E-1):Sm(ht(z," ","")+";",i,r,E-2),h);break;case 59:z+=";";default:if(Zl(N=Tm(z,t,r,p,b,o,d,L,M=[],D=[],E),s),P===123)if(b===0)rs(z,t,N,N,M,s,E,d,D);else switch(T===99&&gn(z,3)===110?100:T){case 100:case 108:case 109:case 115:rs(e,N,N,i&&Zl(Tm(e,N,N,0,0,o,d,L,o,M=[],E),D),o,D,E,d,i?M:D);break;default:rs(z,N,N,N,[""],D,0,d,D)}}p=b=y=0,x=O=1,L=z="",E=c;break;case 58:E=1+Or(z),y=v;default:if(x<1){if(P==123)--x;else if(P==125&&x++==0&&SC()==125)continue}switch(z+=Wl(P),P*x){case 38:O=b>0?1:(z+="\f",-1);break;case 44:d[p++]=(Or(z)-1)*O,O=1;break;case 64:kr()===45&&(z+=ns($n())),T=kr(),b=E=Or(L=z+=_C(ts())),P++;break;case 45:v===45&&Or(z)==2&&(x=0)}}return s}function Tm(e,t,r,i,o,s,c,d,h,p,b){for(var E=o-1,T=o===0?s:[""],y=_f(T),v=0,x=0,B=0;v<i;++v)for(var O=0,P=$u(e,E+1,E=mC(x=c[v])),L=e;O<y;++O)(L=gm(x>0?T[O]+" "+P:ht(P,/&\f/g,T[O])))&&(h[B++]=L);return es(e,t,r,o===0?Cf:d,h,p,b)}function RC(e,t,r){return es(e,t,r,pm,Wl(TC()),$u(e,2,-2),0)}function Sm(e,t,r,i){return es(e,t,r,Af,$u(e,0,i),$u(e,i+1,-1),i)}function Mi(e,t){for(var r="",i=_f(e),o=0;o<i;o++)r+=t(e[o],o,e,t)||"";return r}function NC(e,t,r,i){switch(e.type){case pC:if(e.children.length)break;case hC:case Af:return e.return=e.return||e.value;case pm:return"";case mm:return e.return=e.value+"{"+Mi(e.children,i)+"}";case Cf:e.value=e.props.join(",")}return Or(r=Mi(e.children,i))?e.return=e.value+"{"+r+"}":""}function OC(e){var t=_f(e);return function(r,i,o,s){for(var c="",d=0;d<t;d++)c+=e[d](r,i,o,s)||"";return c}}function kC(e){return function(t){t.root||(t=t.return)&&e(t)}}function Cm(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var IC=function(t,r,i){for(var o=0,s=0;o=s,s=kr(),o===38&&s===12&&(r[i]=1),!Ku(s);)$n();return Qu(t,wn)},DC=function(t,r){var i=-1,o=44;do switch(Ku(o)){case 0:o===38&&kr()===12&&(r[i]=1),t[i]+=IC(wn-1,r,i);break;case 2:t[i]+=ns(o);break;case 4:if(o===44){t[++i]=kr()===58?"&\f":"",r[i]=t[i].length;break}default:t[i]+=Wl(o)}while(o=$n());return t},wC=function(t,r){return ym(DC(Em(t),r))},Am=new WeakMap,LC=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,i=t.parent,o=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Am.get(i))&&!o){Am.set(t,!0);for(var s=[],c=wC(r,s),d=i.props,h=0,p=0;h<c.length;h++)for(var b=0;b<d.length;b++,p++)t.props[p]=s[h]?c[h].replace(/&\f/g,d[b]):d[b]+" "+c[h]}}},MC=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function xm(e,t){switch(bC(e,t)){case 5103:return dt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return dt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return dt+e+Kl+e+Cn+e+e;case 6828:case 4268:return dt+e+Cn+e+e;case 6165:return dt+e+Cn+"flex-"+e+e;case 5187:return dt+e+ht(e,/(\w+).+(:[^]+)/,dt+"box-$1$2"+Cn+"flex-$1$2")+e;case 5443:return dt+e+Cn+"flex-item-"+ht(e,/flex-|-self/,"")+e;case 4675:return dt+e+Cn+"flex-line-pack"+ht(e,/align-content|flex-|-self/,"")+e;case 5548:return dt+e+Cn+ht(e,"shrink","negative")+e;case 5292:return dt+e+Cn+ht(e,"basis","preferred-size")+e;case 6060:return dt+"box-"+ht(e,"-grow","")+dt+e+Cn+ht(e,"grow","positive")+e;case 4554:return dt+ht(e,/([^-])(transform)/g,"$1"+dt+"$2")+e;case 6187:return ht(ht(ht(e,/(zoom-|grab)/,dt+"$1"),/(image-set)/,dt+"$1"),e,"")+e;case 5495:case 3959:return ht(e,/(image-set\([^]*)/,dt+"$1$`$1");case 4968:return ht(ht(e,/(.+:)(flex-)?(.*)/,dt+"box-pack:$3"+Cn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+dt+e+e;case 4095:case 3583:case 4068:case 2532:return ht(e,/(.+)-inline(.+)/,dt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Or(e)-1-t>6)switch(gn(e,t+1)){case 109:if(gn(e,t+4)!==45)break;case 102:return ht(e,/(.+:)(.+)-([^]+)/,"$1"+dt+"$2-$3$1"+Kl+(gn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~xf(e,"stretch")?xm(ht(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(gn(e,t+1)!==115)break;case 6444:switch(gn(e,Or(e)-3-(~xf(e,"!important")&&10))){case 107:return ht(e,":",":"+dt)+e;case 101:return ht(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+dt+(gn(e,14)===45?"inline-":"")+"box$3$1"+dt+"$2$3$1"+Cn+"$2box$3")+e}break;case 5936:switch(gn(e,t+11)){case 114:return dt+e+Cn+ht(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return dt+e+Cn+ht(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return dt+e+Cn+ht(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return dt+e+Cn+e+e}return e}var BC=function(t,r,i,o){if(t.length>-1&&!t.return)switch(t.type){case Af:t.return=xm(t.value,t.length);break;case mm:return Mi([Xu(t,{value:ht(t.value,"@","@"+dt)})],o);case Cf:if(t.length)return yC(t.props,function(s){switch(EC(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mi([Xu(t,{props:[ht(s,/:(read-\w+)/,":"+Kl+"$1")]})],o);case"::placeholder":return Mi([Xu(t,{props:[ht(s,/:(plac\w+)/,":"+dt+"input-$1")]}),Xu(t,{props:[ht(s,/:(plac\w+)/,":"+Kl+"$1")]}),Xu(t,{props:[ht(s,/:(plac\w+)/,Cn+"input-$1")]})],o)}return""})}},PC=[BC],_m=function(t){var r=t.key;if(r==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(x){var B=x.getAttribute("data-emotion");B.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=t.stylisPlugins||PC,s={},c,d=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(x){for(var B=x.getAttribute("data-emotion").split(" "),O=1;O<B.length;O++)s[B[O]]=!0;d.push(x)});var h,p=[LC,MC];{var b,E=[NC,kC(function(x){b.insert(x)})],T=OC(p.concat(o,E)),y=function(B){return Mi(vC(B),T)};h=function(B,O,P,L){b=P,y(B?B+"{"+O.styles+"}":O.styles),L&&(v.inserted[O.name]=!0)}}var v={key:r,sheet:new dC({key:r,container:c,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:h};return v.sheet.hydrate(d),v},Rf={exports:{}},Et={};/** @license React v16.13.1
|
|
42
42
|
* react-is.production.min.js
|
|
43
43
|
*
|
|
44
44
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
45
45
|
*
|
|
46
46
|
* This source code is licensed under the MIT license found in the
|
|
47
47
|
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var gm;function mC(){if(gm)return bt;gm=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,l=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,b=e?Symbol.for("react.forward_ref"):60112,E=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,R=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,U=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,q=e?Symbol.for("react.scope"):60119;function M(k){if(typeof k=="object"&&k!==null){var N=k.$$typeof;switch(N){case t:switch(k=k.type,k){case p:case m:case i:case s:case l:case E:return k;default:switch(k=k&&k.$$typeof,k){case d:case b:case R:case y:case c:return k;default:return N}}case r:return N}}}function P(k){return M(k)===m}return bt.AsyncMode=p,bt.ConcurrentMode=m,bt.ContextConsumer=d,bt.ContextProvider=c,bt.Element=t,bt.ForwardRef=b,bt.Fragment=i,bt.Lazy=R,bt.Memo=y,bt.Portal=r,bt.Profiler=s,bt.StrictMode=l,bt.Suspense=E,bt.isAsyncMode=function(k){return P(k)||M(k)===p},bt.isConcurrentMode=P,bt.isContextConsumer=function(k){return M(k)===d},bt.isContextProvider=function(k){return M(k)===c},bt.isElement=function(k){return typeof k=="object"&&k!==null&&k.$$typeof===t},bt.isForwardRef=function(k){return M(k)===b},bt.isFragment=function(k){return M(k)===i},bt.isLazy=function(k){return M(k)===R},bt.isMemo=function(k){return M(k)===y},bt.isPortal=function(k){return M(k)===r},bt.isProfiler=function(k){return M(k)===s},bt.isStrictMode=function(k){return M(k)===l},bt.isSuspense=function(k){return M(k)===E},bt.isValidElementType=function(k){return typeof k=="string"||typeof k=="function"||k===i||k===m||k===s||k===l||k===E||k===T||typeof k=="object"&&k!==null&&(k.$$typeof===R||k.$$typeof===y||k.$$typeof===c||k.$$typeof===d||k.$$typeof===b||k.$$typeof===U||k.$$typeof===D||k.$$typeof===q||k.$$typeof===x)},bt.typeOf=M,bt}var bm;function gC(){return bm||(bm=1,Cf.exports=mC()),Cf.exports}var Af,Em;function bC(){if(Em)return Af;Em=1;var e=gC(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=i,s[e.Memo]=l;function c(R){return e.isMemo(R)?l:s[R.$$typeof]||t}var d=Object.defineProperty,p=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,b=Object.getOwnPropertyDescriptor,E=Object.getPrototypeOf,T=Object.prototype;function y(R,x,U){if(typeof x!="string"){if(T){var D=E(x);D&&D!==T&&y(R,D,U)}var q=p(x);m&&(q=q.concat(m(x)));for(var M=c(R),P=c(x),k=0;k<q.length;++k){var N=q[k];if(!r[N]&&!(U&&U[N])&&!(P&&P[N])&&!(M&&M[N])){var Y=b(x,N);try{d(R,N,Y)}catch{}}}}return R}return Af=y,Af}bC();var EC=!0;function ym(e,t,r){var i="";return r.split(" ").forEach(function(l){e[l]!==void 0?t.push(e[l]+";"):l&&(i+=l+" ")}),i}var _f=function(t,r,i){var l=t.key+"-"+r.name;(i===!1||EC===!1)&&t.registered[l]===void 0&&(t.registered[l]=r.styles)},xf=function(t,r,i){_f(t,r,i);var l=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+l:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function yC(e){for(var t=0,r,i=0,l=e.length;l>=4;++i,l-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(l){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var TC={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},SC=/[A-Z]|^ms/g,CC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Tm=function(t){return t.charCodeAt(1)===45},Sm=function(t){return t!=null&&typeof t!="boolean"},vf=dm(function(e){return Tm(e)?e:e.replace(SC,"-$&").toLowerCase()}),Cm=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(CC,function(i,l,s){return Dr={name:l,styles:s,next:Dr},l})}return TC[t]!==1&&!Tm(t)&&typeof r=="number"&&r!==0?r+"px":r};function Qu(e,t,r){if(r==null)return"";var i=r;if(i.__emotion_styles!==void 0)return i;switch(typeof r){case"boolean":return"";case"object":{var l=r;if(l.anim===1)return Dr={name:l.name,styles:l.styles,next:Dr},l.name;var s=r;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)Dr={name:c.name,styles:c.styles,next:Dr},c=c.next;var d=s.styles+";";return d}return AC(e,t,r)}case"function":{if(e!==void 0){var p=Dr,m=r(e);return Dr=p,Qu(e,t,m)}break}}var b=r;if(t==null)return b;var E=t[b];return E!==void 0?E:b}function AC(e,t,r){var i="";if(Array.isArray(r))for(var l=0;l<r.length;l++)i+=Qu(e,t,r[l])+";";else for(var s in r){var c=r[s];if(typeof c!="object"){var d=c;t!=null&&t[d]!==void 0?i+=s+"{"+t[d]+"}":Sm(d)&&(i+=vf(s)+":"+Cm(s,d)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&(t==null||t[c[0]]===void 0))for(var p=0;p<c.length;p++)Sm(c[p])&&(i+=vf(s)+":"+Cm(s,c[p])+";");else{var m=Qu(e,t,c);switch(s){case"animation":case"animationName":{i+=vf(s)+":"+m+";";break}default:i+=s+"{"+m+"}"}}}return i}var Am=/label:\s*([^\s;{]+)\s*(;|$)/g,Dr;function Ku(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,l="";Dr=void 0;var s=e[0];if(s==null||s.raw===void 0)i=!1,l+=Qu(r,t,s);else{var c=s;l+=c[0]}for(var d=1;d<e.length;d++)if(l+=Qu(r,t,e[d]),i){var p=s;l+=p[d]}Am.lastIndex=0;for(var m="",b;(b=Am.exec(l))!==null;)m+="-"+b[1];var E=yC(l)+m;return{name:E,styles:l,next:Dr}}var _C=function(t){return t()},_m=df.useInsertionEffect?df.useInsertionEffect:!1,xm=_m||_C,vm=_m||A.useLayoutEffect,Rm=A.createContext(typeof HTMLElement<"u"?mm({key:"css"}):null),xC=Rm.Provider,Rf=function(t){return A.forwardRef(function(r,i){var l=A.useContext(Rm);return t(r,l,i)})},Mi=A.createContext({}),vC=function(){return A.useContext(Mi)},Nf={}.hasOwnProperty,Of="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",RC=function(t,r){var i={};for(var l in r)Nf.call(r,l)&&(i[l]=r[l]);return i[Of]=t,i},NC=function(t){var r=t.cache,i=t.serialized,l=t.isStringTag;return _f(r,i,l),xm(function(){return xf(r,i,l)}),null},OC=Rf(function(e,t,r){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var l=e[Of],s=[i],c="";typeof e.className=="string"?c=ym(t.registered,s,e.className):e.className!=null&&(c=e.className+" ");var d=Ku(s,void 0,A.useContext(Mi));c+=t.key+"-"+d.name;var p={};for(var m in e)Nf.call(e,m)&&m!=="css"&&m!==Of&&(p[m]=e[m]);return p.className=c,r&&(p.ref=r),A.createElement(A.Fragment,null,A.createElement(NC,{cache:t,serialized:d,isStringTag:typeof l=="string"}),A.createElement(l,p))}),IC=OC,Nm=function(t,r){var i=arguments;if(r==null||!Nf.call(r,"css"))return A.createElement.apply(void 0,i);var l=i.length,s=new Array(l);s[0]=IC,s[1]=RC(t,r);for(var c=2;c<l;c++)s[c]=i[c];return A.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Nm||(Nm={}));var DC=Rf(function(e,t){var r=e.styles,i=Ku([r],void 0,A.useContext(Mi)),l=A.useRef();return vm(function(){var s=t.key+"-global",c=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),d=!1,p=document.querySelector('style[data-emotion="'+s+" "+i.name+'"]');return t.sheet.tags.length&&(c.before=t.sheet.tags[0]),p!==null&&(d=!0,p.setAttribute("data-emotion",s),c.hydrate([p])),l.current=[c,d],function(){c.flush()}},[t]),vm(function(){var s=l.current,c=s[0],d=s[1];if(d){s[1]=!1;return}if(i.next!==void 0&&xf(t,i.next,!0),c.tags.length){var p=c.tags[c.tags.length-1].nextElementSibling;c.before=p,c.flush()}t.insert("",i,c,!1)},[t,i.name]),null});function wi(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ku(t)}function Wu(){var e=wi.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var kC=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,LC=dm(function(e){return kC.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),MC=LC,wC=function(t){return t!=="theme"},Om=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?MC:wC},Im=function(t,r,i){var l;if(r){var s=r.shouldForwardProp;l=t.__emotion_forwardProp&&s?function(c){return t.__emotion_forwardProp(c)&&s(c)}:s}return typeof l!="function"&&i&&(l=t.__emotion_forwardProp),l},BC=function(t){var r=t.cache,i=t.serialized,l=t.isStringTag;return _f(r,i,l),xm(function(){return xf(r,i,l)}),null},PC=function e(t,r){var i=t.__emotion_real===t,l=i&&t.__emotion_base||t,s,c;r!==void 0&&(s=r.label,c=r.target);var d=Im(t,r,i),p=d||Om(l),m=!p("as");return function(){var b=arguments,E=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&E.push("label:"+s+";"),b[0]==null||b[0].raw===void 0)E.push.apply(E,b);else{var T=b[0];E.push(T[0]);for(var y=b.length,R=1;R<y;R++)E.push(b[R],T[R])}var x=Rf(function(U,D,q){var M=m&&U.as||l,P="",k=[],N=U;if(U.theme==null){N={};for(var Y in U)N[Y]=U[Y];N.theme=A.useContext(Mi)}typeof U.className=="string"?P=ym(D.registered,k,U.className):U.className!=null&&(P=U.className+" ");var j=Ku(E.concat(k),D.registered,N);P+=D.key+"-"+j.name,c!==void 0&&(P+=" "+c);var G=m&&d===void 0?Om(M):p,_={};for(var z in U)m&&z==="as"||G(z)&&(_[z]=U[z]);return _.className=P,q&&(_.ref=q),A.createElement(A.Fragment,null,A.createElement(BC,{cache:D,serialized:j,isStringTag:typeof M=="string"}),A.createElement(M,_))});return x.displayName=s!==void 0?s:"Styled("+(typeof l=="string"?l:l.displayName||l.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=l,x.__emotion_styles=E,x.__emotion_forwardProp=d,Object.defineProperty(x,"toString",{value:function(){return"."+c}}),x.withComponent=function(U,D){var q=e(U,Za({},r,D,{shouldForwardProp:Im(x,D,!0)}));return q.apply(void 0,E)},x}},UC=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Pe=PC.bind(null);UC.forEach(function(e){Pe[e]=Pe(e)});function t7(){}function n7(){}function Dm(e){const t=[],r=String(e||"");let i=r.indexOf(","),l=0,s=!1;for(;!s;){i===-1&&(i=r.length,s=!0);const c=r.slice(l,i).trim();(c||!s)&&t.push(c),l=i+1,i=r.indexOf(",",l)}return t}function km(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const HC=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,FC=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,zC={};function Lm(e,t){return(zC.jsx?FC:HC).test(e)}const YC=/[ \t\n\f\r]/g;function jC(e){return typeof e=="object"?e.type==="text"?Mm(e.value):!1:Mm(e)}function Mm(e){return e.replace(YC,"")===""}let Zu=class{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}};Zu.prototype.normal={},Zu.prototype.property={},Zu.prototype.space=void 0;function wm(e,t){const r={},i={};for(const l of e)Object.assign(r,l.property),Object.assign(i,l.normal);return new Zu(r,i,t)}function Ju(e){return e.toLowerCase()}let Mn=class{constructor(t,r){this.attribute=r,this.property=t}};Mn.prototype.attribute="",Mn.prototype.booleanish=!1,Mn.prototype.boolean=!1,Mn.prototype.commaOrSpaceSeparated=!1,Mn.prototype.commaSeparated=!1,Mn.prototype.defined=!1,Mn.prototype.mustUseProperty=!1,Mn.prototype.number=!1,Mn.prototype.overloadedBoolean=!1,Mn.prototype.property="",Mn.prototype.spaceSeparated=!1,Mn.prototype.space=void 0;let qC=0;const $e=Ja(),Zt=Ja(),Bm=Ja(),ye=Ja(),Mt=Ja(),Bi=Ja(),Xn=Ja();function Ja(){return 2**++qC}const If=Object.freeze(Object.defineProperty({__proto__:null,boolean:$e,booleanish:Zt,commaOrSpaceSeparated:Xn,commaSeparated:Bi,number:ye,overloadedBoolean:Bm,spaceSeparated:Mt},Symbol.toStringTag,{value:"Module"})),Df=Object.keys(If);let kf=class extends Mn{constructor(t,r,i,l){let s=-1;if(super(t,r),Pm(this,"space",l),typeof i=="number")for(;++s<Df.length;){const c=Df[s];Pm(this,Df[s],(i&If[c])===If[c])}}};kf.prototype.defined=!0;function Pm(e,t,r){r&&(e[t]=r)}function Pi(e){const t={},r={};for(const[i,l]of Object.entries(e.properties)){const s=new kf(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,r[Ju(i)]=i,r[Ju(s.attribute)]=i}return new Zu(t,r,e.space)}const Um=Pi({properties:{ariaActiveDescendant:null,ariaAtomic:Zt,ariaAutoComplete:null,ariaBusy:Zt,ariaChecked:Zt,ariaColCount:ye,ariaColIndex:ye,ariaColSpan:ye,ariaControls:Mt,ariaCurrent:null,ariaDescribedBy:Mt,ariaDetails:null,ariaDisabled:Zt,ariaDropEffect:Mt,ariaErrorMessage:null,ariaExpanded:Zt,ariaFlowTo:Mt,ariaGrabbed:Zt,ariaHasPopup:null,ariaHidden:Zt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Mt,ariaLevel:ye,ariaLive:null,ariaModal:Zt,ariaMultiLine:Zt,ariaMultiSelectable:Zt,ariaOrientation:null,ariaOwns:Mt,ariaPlaceholder:null,ariaPosInSet:ye,ariaPressed:Zt,ariaReadOnly:Zt,ariaRelevant:null,ariaRequired:Zt,ariaRoleDescription:Mt,ariaRowCount:ye,ariaRowIndex:ye,ariaRowSpan:ye,ariaSelected:Zt,ariaSetSize:ye,ariaSort:null,ariaValueMax:ye,ariaValueMin:ye,ariaValueNow:ye,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Hm(e,t){return t in e?e[t]:t}function Fm(e,t){return Hm(e,t.toLowerCase())}const VC=Pi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Bi,acceptCharset:Mt,accessKey:Mt,action:null,allow:null,allowFullScreen:$e,allowPaymentRequest:$e,allowUserMedia:$e,alt:null,as:null,async:$e,autoCapitalize:null,autoComplete:Mt,autoFocus:$e,autoPlay:$e,blocking:Mt,capture:null,charSet:null,checked:$e,cite:null,className:Mt,cols:ye,colSpan:null,content:null,contentEditable:Zt,controls:$e,controlsList:Mt,coords:ye|Bi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:$e,defer:$e,dir:null,dirName:null,disabled:$e,download:Bm,draggable:Zt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$e,formTarget:null,headers:Mt,height:ye,hidden:$e,high:ye,href:null,hrefLang:null,htmlFor:Mt,httpEquiv:Mt,id:null,imageSizes:null,imageSrcSet:null,inert:$e,inputMode:null,integrity:null,is:null,isMap:$e,itemId:null,itemProp:Mt,itemRef:Mt,itemScope:$e,itemType:Mt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:$e,low:ye,manifest:null,max:null,maxLength:ye,media:null,method:null,min:null,minLength:ye,multiple:$e,muted:$e,name:null,nonce:null,noModule:$e,noValidate:$e,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:$e,optimum:ye,pattern:null,ping:Mt,placeholder:null,playsInline:$e,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:$e,referrerPolicy:null,rel:Mt,required:$e,reversed:$e,rows:ye,rowSpan:ye,sandbox:Mt,scope:null,scoped:$e,seamless:$e,selected:$e,shadowRootClonable:$e,shadowRootDelegatesFocus:$e,shadowRootMode:null,shape:null,size:ye,sizes:null,slot:null,span:ye,spellCheck:Zt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ye,step:null,style:null,tabIndex:ye,target:null,title:null,translate:null,type:null,typeMustMatch:$e,useMap:null,value:Zt,width:ye,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Mt,axis:null,background:null,bgColor:null,border:ye,borderColor:null,bottomMargin:ye,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:$e,declare:$e,event:null,face:null,frame:null,frameBorder:null,hSpace:ye,leftMargin:ye,link:null,longDesc:null,lowSrc:null,marginHeight:ye,marginWidth:ye,noResize:$e,noHref:$e,noShade:$e,noWrap:$e,object:null,profile:null,prompt:null,rev:null,rightMargin:ye,rules:null,scheme:null,scrolling:Zt,standby:null,summary:null,text:null,topMargin:ye,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ye,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:$e,disableRemotePlayback:$e,prefix:null,property:null,results:ye,security:null,unselectable:null},space:"html",transform:Fm}),GC=Pi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Xn,accentHeight:ye,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ye,amplitude:ye,arabicForm:null,ascent:ye,attributeName:null,attributeType:null,azimuth:ye,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ye,by:null,calcMode:null,capHeight:ye,className:Mt,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:ye,diffuseConstant:ye,direction:null,display:null,dur:null,divisor:ye,dominantBaseline:null,download:$e,dx:null,dy:null,edgeMode:null,editable:null,elevation:ye,enableBackground:null,end:null,event:null,exponent:ye,externalResourcesRequired:null,fill:null,fillOpacity:ye,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Bi,g2:Bi,glyphName:Bi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ye,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ye,horizOriginX:ye,horizOriginY:ye,id:null,ideographic:ye,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ye,k:ye,k1:ye,k2:ye,k3:ye,k4:ye,kernelMatrix:Xn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ye,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ye,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:ye,overlineThickness:ye,paintOrder:null,panose1:null,path:null,pathLength:ye,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Mt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ye,pointsAtY:ye,pointsAtZ:ye,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Xn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Xn,rev:Xn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Xn,requiredFeatures:Xn,requiredFonts:Xn,requiredFormats:Xn,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:ye,specularExponent:ye,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ye,strikethroughThickness:ye,string:null,stroke:null,strokeDashArray:Xn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ye,strokeOpacity:ye,strokeWidth:null,style:null,surfaceScale:ye,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Xn,tabIndex:ye,tableValues:null,target:null,targetX:ye,targetY:ye,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Xn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ye,underlineThickness:ye,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ye,values:null,vAlphabetic:ye,vMathematical:ye,vectorEffect:null,vHanging:ye,vIdeographic:ye,version:null,vertAdvY:ye,vertOriginX:ye,vertOriginY:ye,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ye,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Hm}),zm=Pi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Ym=Pi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Fm}),jm=Pi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),$C={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"},XC=/[A-Z]/g,qm=/-[a-z]/g,QC=/^data[-\w.:]+$/i;function Lf(e,t){const r=Ju(t);let i=t,l=Mn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&QC.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(qm,WC);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!qm.test(s)){let c=s.replace(XC,KC);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}l=kf}return new l(i,t)}function KC(e){return"-"+e.toLowerCase()}function WC(e){return e.charAt(1).toUpperCase()}const Jo=wm([Um,VC,zm,Ym,jm],"html"),Ui=wm([Um,GC,zm,Ym,jm],"svg");function Vm(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Gm(e){return e.join(" ").trim()}var Hi={},Mf,$m;function ZC(){if($m)return Mf;$m=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,p=`
|
|
49
|
-
`,m="/",b="*",E="",T="comment",y="declaration";Mf=function(x,U){if(typeof x!="string")throw new TypeError("First argument must be a string");if(!x)return[];U=U||{};var D=1,q=1;function M(Z){var X=Z.match(t);X&&(D+=X.length);var te=Z.lastIndexOf(p);q=~te?Z.length-te:q+Z.length}function P(){var Z={line:D,column:q};return function(X){return X.position=new k(Z),j(),X}}function k(Z){this.start=Z,this.end={line:D,column:q},this.source=U.source}k.prototype.content=x;function N(Z){var X=new Error(U.source+":"+D+":"+q+": "+Z);if(X.reason=Z,X.filename=U.source,X.line=D,X.column=q,X.source=x,!U.silent)throw X}function Y(Z){var X=Z.exec(x);if(X){var te=X[0];return M(te),x=x.slice(te.length),X}}function j(){Y(r)}function G(Z){var X;for(Z=Z||[];X=_();)X!==!1&&Z.push(X);return Z}function _(){var Z=P();if(!(m!=x.charAt(0)||b!=x.charAt(1))){for(var X=2;E!=x.charAt(X)&&(b!=x.charAt(X)||m!=x.charAt(X+1));)++X;if(X+=2,E===x.charAt(X-1))return N("End of comment missing");var te=x.slice(2,X-2);return q+=2,M(te),x=x.slice(X),q+=2,Z({type:T,comment:te})}}function z(){var Z=P(),X=Y(i);if(X){if(_(),!Y(l))return N("property missing ':'");var te=Y(s),H=Z({type:y,property:R(X[0].replace(e,E)),value:te?R(te[0].replace(e,E)):E});return Y(c),H}}function $(){var Z=[];G(Z);for(var X;X=z();)X!==!1&&(Z.push(X),G(Z));return Z}return j(),$()};function R(x){return x?x.replace(d,E):E}return Mf}var Xm;function JC(){if(Xm)return Hi;Xm=1;var e=Hi&&Hi.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.default=r;var t=e(ZC());function r(i,l){var s=null;if(!i||typeof i!="string")return s;var c=(0,t.default)(i),d=typeof l=="function";return c.forEach(function(p){if(p.type==="declaration"){var m=p.property,b=p.value;d?l(m,b,p):b&&(s=s||{},s[m]=b)}}),s}return Hi}var el={},Qm;function e6(){if(Qm)return el;Qm=1,Object.defineProperty(el,"__esModule",{value:!0}),el.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,s=function(m){return!m||r.test(m)||e.test(m)},c=function(m,b){return b.toUpperCase()},d=function(m,b){return"".concat(b,"-")},p=function(m,b){return b===void 0&&(b={}),s(m)?m:(m=m.toLowerCase(),b.reactCompat?m=m.replace(l,d):m=m.replace(i,d),m.replace(t,c))};return el.camelCase=p,el}var tl,Km;function t6(){if(Km)return tl;Km=1;var e=tl&&tl.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},t=e(JC()),r=e6();function i(l,s){var c={};return!l||typeof l!="string"||(0,t.default)(l,function(d,p){d&&p&&(c[(0,r.camelCase)(d,s)]=p)}),c}return i.default=i,tl=i,tl}var n6=t6();const r6=lr(n6),es=Wm("end"),kr=Wm("start");function Wm(e){return t;function t(r){const i=r&&r.position&&r.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function a6(e){const t=kr(e),r=es(e);if(t&&r)return{start:t,end:r}}function nl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Zm(e.position):"start"in e||"end"in e?Zm(e):"line"in e||"column"in e?wf(e):""}function wf(e){return Jm(e&&e.line)+":"+Jm(e&&e.column)}function Zm(e){return wf(e&&e.start)+"-"+wf(e&&e.end)}function Jm(e){return e&&typeof e=="number"?e:1}class An extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let l="",s={},c=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof t=="string"?l=t:!s.cause&&t&&(c=!0,l=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof i=="string"){const p=i.indexOf(":");p===-1?s.ruleId=i:(s.source=i.slice(0,p),s.ruleId=i.slice(p+1))}if(!s.place&&s.ancestors&&s.ancestors){const p=s.ancestors[s.ancestors.length-1];p&&(s.place=p.position)}const d=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file,this.message=l,this.line=d?d.line:void 0,this.name=nl(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=c&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}}An.prototype.file="",An.prototype.name="",An.prototype.reason="",An.prototype.message="",An.prototype.stack="",An.prototype.column=void 0,An.prototype.line=void 0,An.prototype.ancestors=void 0,An.prototype.cause=void 0,An.prototype.fatal=void 0,An.prototype.place=void 0,An.prototype.ruleId=void 0,An.prototype.source=void 0;const Bf={}.hasOwnProperty,i6=new Map,u6=/[A-Z]/g,l6=new Set(["table","tbody","thead","tfoot","tr"]),o6=new Set(["td","th"]),e1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function s6(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=b6(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=g6(r,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Ui:Jo,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=t1(l,e,void 0);return s&&typeof s!="string"?s:l.create(e,l.Fragment,{children:s||void 0},void 0)}function t1(e,t,r){if(t.type==="element")return c6(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return f6(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return h6(e,t,r);if(t.type==="mdxjsEsm")return d6(e,t);if(t.type==="root")return p6(e,t,r);if(t.type==="text")return m6(e,t)}function c6(e,t,r){const i=e.schema;let l=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(l=Ui,e.schema=l),e.ancestors.push(t);const s=r1(e,t.tagName,!1),c=E6(e,t);let d=Uf(e,t);return l6.has(t.tagName)&&(d=d.filter(function(p){return typeof p=="string"?!jC(p):!0})),n1(e,c,s,t),Pf(c,d),e.ancestors.pop(),e.schema=i,e.create(t,s,c,r)}function f6(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}rl(e,t.position)}function d6(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);rl(e,t.position)}function h6(e,t,r){const i=e.schema;let l=i;t.name==="svg"&&i.space==="html"&&(l=Ui,e.schema=l),e.ancestors.push(t);const s=t.name===null?e.Fragment:r1(e,t.name,!0),c=y6(e,t),d=Uf(e,t);return n1(e,c,s,t),Pf(c,d),e.ancestors.pop(),e.schema=i,e.create(t,s,c,r)}function p6(e,t,r){const i={};return Pf(i,Uf(e,t)),e.create(t,e.Fragment,i,r)}function m6(e,t){return t.value}function n1(e,t,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=i)}function Pf(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function g6(e,t,r){return i;function i(l,s,c,d){const m=Array.isArray(c.children)?r:t;return d?m(s,c,d):m(s,c)}}function b6(e,t){return r;function r(i,l,s,c){const d=Array.isArray(s.children),p=kr(i);return t(l,s,c,d,{columnNumber:p?p.column-1:void 0,fileName:e,lineNumber:p?p.line:void 0},void 0)}}function E6(e,t){const r={};let i,l;for(l in t.properties)if(l!=="children"&&Bf.call(t.properties,l)){const s=T6(e,l,t.properties[l]);if(s){const[c,d]=s;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&o6.has(t.tagName)?i=d:r[c]=d}}if(i){const s=r.style||(r.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function y6(e,t){const r={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const s=i.data.estree.body[0];s.type;const c=s.expression;c.type;const d=c.properties[0];d.type,Object.assign(r,e.evaluater.evaluateExpression(d.argument))}else rl(e,t.position);else{const l=i.name;let s;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const d=i.value.data.estree.body[0];d.type,s=e.evaluater.evaluateExpression(d.expression)}else rl(e,t.position);else s=i.value===null?!0:i.value;r[l]=s}return r}function Uf(e,t){const r=[];let i=-1;const l=e.passKeys?new Map:i6;for(;++i<t.children.length;){const s=t.children[i];let c;if(e.passKeys){const p=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(p){const m=l.get(p)||0;c=p+"-"+m,l.set(p,m+1)}}const d=t1(e,s,c);d!==void 0&&r.push(d)}return r}function T6(e,t,r){const i=Lf(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?km(r):Gm(r)),i.property==="style"){let l=typeof r=="object"?r:S6(e,String(r));return e.stylePropertyNameCase==="css"&&(l=C6(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&i.space?$C[i.property]||i.property:i.attribute,r]}}function S6(e,t){try{return r6(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,l=new An("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=e1+"#cannot-parse-style-attribute",l}}function r1(e,t,r){let i;if(!r)i={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let s=-1,c;for(;++s<l.length;){const d=Lm(l[s])?{type:"Identifier",name:l[s]}:{type:"Literal",value:l[s]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(s&&d.type==="Literal"),optional:!1}:d}i=c}else i=Lm(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const l=i.value;return Bf.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(i);rl(e)}function rl(e,t){const r=new An("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=e1+"#cannot-handle-mdx-estrees-without-createevaluater",r}function C6(e){const t={};let r;for(r in e)Bf.call(e,r)&&(t[A6(r)]=e[r]);return t}function A6(e){let t=e.replace(u6,_6);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function _6(e){return"-"+e.toLowerCase()}const Hf={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var Ff={exports:{}},al={};/**
|
|
48
|
+
*/var vm;function UC(){if(vm)return Et;vm=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,b=e?Symbol.for("react.forward_ref"):60112,E=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,B=e?Symbol.for("react.fundamental"):60117,O=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function L(D){if(typeof D=="object"&&D!==null){var N=D.$$typeof;switch(N){case t:switch(D=D.type,D){case h:case p:case i:case s:case o:case E:return D;default:switch(D=D&&D.$$typeof,D){case d:case b:case v:case y:case c:return D;default:return N}}case r:return N}}}function M(D){return L(D)===p}return Et.AsyncMode=h,Et.ConcurrentMode=p,Et.ContextConsumer=d,Et.ContextProvider=c,Et.Element=t,Et.ForwardRef=b,Et.Fragment=i,Et.Lazy=v,Et.Memo=y,Et.Portal=r,Et.Profiler=s,Et.StrictMode=o,Et.Suspense=E,Et.isAsyncMode=function(D){return M(D)||L(D)===h},Et.isConcurrentMode=M,Et.isContextConsumer=function(D){return L(D)===d},Et.isContextProvider=function(D){return L(D)===c},Et.isElement=function(D){return typeof D=="object"&&D!==null&&D.$$typeof===t},Et.isForwardRef=function(D){return L(D)===b},Et.isFragment=function(D){return L(D)===i},Et.isLazy=function(D){return L(D)===v},Et.isMemo=function(D){return L(D)===y},Et.isPortal=function(D){return L(D)===r},Et.isProfiler=function(D){return L(D)===s},Et.isStrictMode=function(D){return L(D)===o},Et.isSuspense=function(D){return L(D)===E},Et.isValidElementType=function(D){return typeof D=="string"||typeof D=="function"||D===i||D===p||D===s||D===o||D===E||D===T||typeof D=="object"&&D!==null&&(D.$$typeof===v||D.$$typeof===y||D.$$typeof===c||D.$$typeof===d||D.$$typeof===b||D.$$typeof===B||D.$$typeof===O||D.$$typeof===P||D.$$typeof===x)},Et.typeOf=L,Et}var Rm;function HC(){return Rm||(Rm=1,Rf.exports=UC()),Rf.exports}var Nf,Nm;function FC(){if(Nm)return Nf;Nm=1;var e=HC(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=i,s[e.Memo]=o;function c(v){return e.isMemo(v)?o:s[v.$$typeof]||t}var d=Object.defineProperty,h=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,b=Object.getOwnPropertyDescriptor,E=Object.getPrototypeOf,T=Object.prototype;function y(v,x,B){if(typeof x!="string"){if(T){var O=E(x);O&&O!==T&&y(v,O,B)}var P=h(x);p&&(P=P.concat(p(x)));for(var L=c(v),M=c(x),D=0;D<P.length;++D){var N=P[D];if(!r[N]&&!(B&&B[N])&&!(M&&M[N])&&!(L&&L[N])){var z=b(x,N);try{d(v,N,z)}catch{}}}}return v}return Nf=y,Nf}FC();var zC=!0;function Om(e,t,r){var i="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}var Of=function(t,r,i){var o=t.key+"-"+r.name;(i===!1||zC===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},kf=function(t,r,i){Of(t,r,i);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function YC(e){for(var t=0,r,i=0,o=e.length;o>=4;++i,o-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var jC={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},qC=/[A-Z]|^ms/g,VC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,km=function(t){return t.charCodeAt(1)===45},Im=function(t){return t!=null&&typeof t!="boolean"},If=Cm(function(e){return km(e)?e:e.replace(qC,"-$&").toLowerCase()}),Dm=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(VC,function(i,o,s){return Ir={name:o,styles:s,next:Ir},o})}return jC[t]!==1&&!km(t)&&typeof r=="number"&&r!==0?r+"px":r};function Wu(e,t,r){if(r==null)return"";var i=r;if(i.__emotion_styles!==void 0)return i;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Ir={name:o.name,styles:o.styles,next:Ir},o.name;var s=r;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)Ir={name:c.name,styles:c.styles,next:Ir},c=c.next;var d=s.styles+";";return d}return GC(e,t,r)}case"function":{if(e!==void 0){var h=Ir,p=r(e);return Ir=h,Wu(e,t,p)}break}}var b=r;if(t==null)return b;var E=t[b];return E!==void 0?E:b}function GC(e,t,r){var i="";if(Array.isArray(r))for(var o=0;o<r.length;o++)i+=Wu(e,t,r[o])+";";else for(var s in r){var c=r[s];if(typeof c!="object"){var d=c;t!=null&&t[d]!==void 0?i+=s+"{"+t[d]+"}":Im(d)&&(i+=If(s)+":"+Dm(s,d)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&(t==null||t[c[0]]===void 0))for(var h=0;h<c.length;h++)Im(c[h])&&(i+=If(s)+":"+Dm(s,c[h])+";");else{var p=Wu(e,t,c);switch(s){case"animation":case"animationName":{i+=If(s)+":"+p+";";break}default:i+=s+"{"+p+"}"}}}return i}var wm=/label:\s*([^\s;{]+)\s*(;|$)/g,Ir;function Zu(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,o="";Ir=void 0;var s=e[0];if(s==null||s.raw===void 0)i=!1,o+=Wu(r,t,s);else{var c=s;o+=c[0]}for(var d=1;d<e.length;d++)if(o+=Wu(r,t,e[d]),i){var h=s;o+=h[d]}wm.lastIndex=0;for(var p="",b;(b=wm.exec(o))!==null;)p+="-"+b[1];var E=YC(o)+p;return{name:E,styles:o,next:Ir}}var $C=function(t){return t()},Lm=bf.useInsertionEffect?bf.useInsertionEffect:!1,Mm=Lm||$C,Bm=Lm||A.useLayoutEffect,Pm=A.createContext(typeof HTMLElement<"u"?_m({key:"css"}):null),XC=Pm.Provider,Df=function(t){return A.forwardRef(function(r,i){var o=A.useContext(Pm);return t(r,o,i)})},Bi=A.createContext({}),QC=function(){return A.useContext(Bi)},wf={}.hasOwnProperty,Lf="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",KC=function(t,r){var i={};for(var o in r)wf.call(r,o)&&(i[o]=r[o]);return i[Lf]=t,i},WC=function(t){var r=t.cache,i=t.serialized,o=t.isStringTag;return Of(r,i,o),Mm(function(){return kf(r,i,o)}),null},ZC=Df(function(e,t,r){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[Lf],s=[i],c="";typeof e.className=="string"?c=Om(t.registered,s,e.className):e.className!=null&&(c=e.className+" ");var d=Zu(s,void 0,A.useContext(Bi));c+=t.key+"-"+d.name;var h={};for(var p in e)wf.call(e,p)&&p!=="css"&&p!==Lf&&(h[p]=e[p]);return h.className=c,r&&(h.ref=r),A.createElement(A.Fragment,null,A.createElement(WC,{cache:t,serialized:d,isStringTag:typeof o=="string"}),A.createElement(o,h))}),JC=ZC,Um=function(t,r){var i=arguments;if(r==null||!wf.call(r,"css"))return A.createElement.apply(void 0,i);var o=i.length,s=new Array(o);s[0]=JC,s[1]=KC(t,r);for(var c=2;c<o;c++)s[c]=i[c];return A.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Um||(Um={}));var e6=Df(function(e,t){var r=e.styles,i=Zu([r],void 0,A.useContext(Bi)),o=A.useRef();return Bm(function(){var s=t.key+"-global",c=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),d=!1,h=document.querySelector('style[data-emotion="'+s+" "+i.name+'"]');return t.sheet.tags.length&&(c.before=t.sheet.tags[0]),h!==null&&(d=!0,h.setAttribute("data-emotion",s),c.hydrate([h])),o.current=[c,d],function(){c.flush()}},[t]),Bm(function(){var s=o.current,c=s[0],d=s[1];if(d){s[1]=!1;return}if(i.next!==void 0&&kf(t,i.next,!0),c.tags.length){var h=c.tags[c.tags.length-1].nextElementSibling;c.before=h,c.flush()}t.insert("",i,c,!1)},[t,i.name]),null});function Pi(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Zu(t)}function Ju(){var e=Pi.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var t6=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,n6=Cm(function(e){return t6.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),r6=n6,a6=function(t){return t!=="theme"},Hm=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?r6:a6},Fm=function(t,r,i){var o;if(r){var s=r.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(c){return t.__emotion_forwardProp(c)&&s(c)}:s}return typeof o!="function"&&i&&(o=t.__emotion_forwardProp),o},i6=function(t){var r=t.cache,i=t.serialized,o=t.isStringTag;return Of(r,i,o),Mm(function(){return kf(r,i,o)}),null},u6=function e(t,r){var i=t.__emotion_real===t,o=i&&t.__emotion_base||t,s,c;r!==void 0&&(s=r.label,c=r.target);var d=Fm(t,r,i),h=d||Hm(o),p=!h("as");return function(){var b=arguments,E=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&E.push("label:"+s+";"),b[0]==null||b[0].raw===void 0)E.push.apply(E,b);else{var T=b[0];E.push(T[0]);for(var y=b.length,v=1;v<y;v++)E.push(b[v],T[v])}var x=Df(function(B,O,P){var L=p&&B.as||o,M="",D=[],N=B;if(B.theme==null){N={};for(var z in B)N[z]=B[z];N.theme=A.useContext(Bi)}typeof B.className=="string"?M=Om(O.registered,D,B.className):B.className!=null&&(M=B.className+" ");var q=Zu(E.concat(D),O.registered,N);M+=O.key+"-"+q.name,c!==void 0&&(M+=" "+c);var V=p&&d===void 0?Hm(L):h,_={};for(var j in B)p&&j==="as"||V(j)&&(_[j]=B[j]);return _.className=M,P&&(_.ref=P),A.createElement(A.Fragment,null,A.createElement(i6,{cache:O,serialized:q,isStringTag:typeof L=="string"}),A.createElement(L,_))});return x.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=o,x.__emotion_styles=E,x.__emotion_forwardProp=d,Object.defineProperty(x,"toString",{value:function(){return"."+c}}),x.withComponent=function(B,O){var P=e(B,Ja({},r,O,{shouldForwardProp:Fm(x,O,!0)}));return P.apply(void 0,E)},x}},o6=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],He=u6.bind(null);o6.forEach(function(e){He[e]=He(e)});function nB(){}function rB(){}function zm(e){const t=[],r=String(e||"");let i=r.indexOf(","),o=0,s=!1;for(;!s;){i===-1&&(i=r.length,s=!0);const c=r.slice(o,i).trim();(c||!s)&&t.push(c),o=i+1,i=r.indexOf(",",o)}return t}function Ym(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const l6=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,s6=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,c6={};function jm(e,t){return(c6.jsx?s6:l6).test(e)}const f6=/[ \t\n\f\r]/g;function d6(e){return typeof e=="object"?e.type==="text"?qm(e.value):!1:qm(e)}function qm(e){return e.replace(f6,"")===""}let eo=class{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}};eo.prototype.normal={},eo.prototype.property={},eo.prototype.space=void 0;function Vm(e,t){const r={},i={};for(const o of e)Object.assign(r,o.property),Object.assign(i,o.normal);return new eo(r,i,t)}function to(e){return e.toLowerCase()}let Ln=class{constructor(t,r){this.attribute=r,this.property=t}};Ln.prototype.attribute="",Ln.prototype.booleanish=!1,Ln.prototype.boolean=!1,Ln.prototype.commaOrSpaceSeparated=!1,Ln.prototype.commaSeparated=!1,Ln.prototype.defined=!1,Ln.prototype.mustUseProperty=!1,Ln.prototype.number=!1,Ln.prototype.overloadedBoolean=!1,Ln.prototype.property="",Ln.prototype.spaceSeparated=!1,Ln.prototype.space=void 0;let h6=0;const Qe=ei(),Zt=ei(),Gm=ei(),Ee=ei(),Lt=ei(),Ui=ei(),Xn=ei();function ei(){return 2**++h6}const Mf=Object.freeze(Object.defineProperty({__proto__:null,boolean:Qe,booleanish:Zt,commaOrSpaceSeparated:Xn,commaSeparated:Ui,number:Ee,overloadedBoolean:Gm,spaceSeparated:Lt},Symbol.toStringTag,{value:"Module"})),Bf=Object.keys(Mf);let Pf=class extends Ln{constructor(t,r,i,o){let s=-1;if(super(t,r),$m(this,"space",o),typeof i=="number")for(;++s<Bf.length;){const c=Bf[s];$m(this,Bf[s],(i&Mf[c])===Mf[c])}}};Pf.prototype.defined=!0;function $m(e,t,r){r&&(e[t]=r)}function Hi(e){const t={},r={};for(const[i,o]of Object.entries(e.properties)){const s=new Pf(i,e.transform(e.attributes||{},i),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,r[to(i)]=i,r[to(s.attribute)]=i}return new eo(t,r,e.space)}const Xm=Hi({properties:{ariaActiveDescendant:null,ariaAtomic:Zt,ariaAutoComplete:null,ariaBusy:Zt,ariaChecked:Zt,ariaColCount:Ee,ariaColIndex:Ee,ariaColSpan:Ee,ariaControls:Lt,ariaCurrent:null,ariaDescribedBy:Lt,ariaDetails:null,ariaDisabled:Zt,ariaDropEffect:Lt,ariaErrorMessage:null,ariaExpanded:Zt,ariaFlowTo:Lt,ariaGrabbed:Zt,ariaHasPopup:null,ariaHidden:Zt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Lt,ariaLevel:Ee,ariaLive:null,ariaModal:Zt,ariaMultiLine:Zt,ariaMultiSelectable:Zt,ariaOrientation:null,ariaOwns:Lt,ariaPlaceholder:null,ariaPosInSet:Ee,ariaPressed:Zt,ariaReadOnly:Zt,ariaRelevant:null,ariaRequired:Zt,ariaRoleDescription:Lt,ariaRowCount:Ee,ariaRowIndex:Ee,ariaRowSpan:Ee,ariaSelected:Zt,ariaSetSize:Ee,ariaSort:null,ariaValueMax:Ee,ariaValueMin:Ee,ariaValueNow:Ee,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Qm(e,t){return t in e?e[t]:t}function Km(e,t){return Qm(e,t.toLowerCase())}const p6=Hi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ui,acceptCharset:Lt,accessKey:Lt,action:null,allow:null,allowFullScreen:Qe,allowPaymentRequest:Qe,allowUserMedia:Qe,alt:null,as:null,async:Qe,autoCapitalize:null,autoComplete:Lt,autoFocus:Qe,autoPlay:Qe,blocking:Lt,capture:null,charSet:null,checked:Qe,cite:null,className:Lt,cols:Ee,colSpan:null,content:null,contentEditable:Zt,controls:Qe,controlsList:Lt,coords:Ee|Ui,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Qe,defer:Qe,dir:null,dirName:null,disabled:Qe,download:Gm,draggable:Zt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Qe,formTarget:null,headers:Lt,height:Ee,hidden:Qe,high:Ee,href:null,hrefLang:null,htmlFor:Lt,httpEquiv:Lt,id:null,imageSizes:null,imageSrcSet:null,inert:Qe,inputMode:null,integrity:null,is:null,isMap:Qe,itemId:null,itemProp:Lt,itemRef:Lt,itemScope:Qe,itemType:Lt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Qe,low:Ee,manifest:null,max:null,maxLength:Ee,media:null,method:null,min:null,minLength:Ee,multiple:Qe,muted:Qe,name:null,nonce:null,noModule:Qe,noValidate:Qe,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:Qe,optimum:Ee,pattern:null,ping:Lt,placeholder:null,playsInline:Qe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Qe,referrerPolicy:null,rel:Lt,required:Qe,reversed:Qe,rows:Ee,rowSpan:Ee,sandbox:Lt,scope:null,scoped:Qe,seamless:Qe,selected:Qe,shadowRootClonable:Qe,shadowRootDelegatesFocus:Qe,shadowRootMode:null,shape:null,size:Ee,sizes:null,slot:null,span:Ee,spellCheck:Zt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ee,step:null,style:null,tabIndex:Ee,target:null,title:null,translate:null,type:null,typeMustMatch:Qe,useMap:null,value:Zt,width:Ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Lt,axis:null,background:null,bgColor:null,border:Ee,borderColor:null,bottomMargin:Ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Qe,declare:Qe,event:null,face:null,frame:null,frameBorder:null,hSpace:Ee,leftMargin:Ee,link:null,longDesc:null,lowSrc:null,marginHeight:Ee,marginWidth:Ee,noResize:Qe,noHref:Qe,noShade:Qe,noWrap:Qe,object:null,profile:null,prompt:null,rev:null,rightMargin:Ee,rules:null,scheme:null,scrolling:Zt,standby:null,summary:null,text:null,topMargin:Ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Qe,disableRemotePlayback:Qe,prefix:null,property:null,results:Ee,security:null,unselectable:null},space:"html",transform:Km}),m6=Hi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Xn,accentHeight:Ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ee,amplitude:Ee,arabicForm:null,ascent:Ee,attributeName:null,attributeType:null,azimuth:Ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ee,by:null,calcMode:null,capHeight:Ee,className:Lt,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:Ee,diffuseConstant:Ee,direction:null,display:null,dur:null,divisor:Ee,dominantBaseline:null,download:Qe,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ee,enableBackground:null,end:null,event:null,exponent:Ee,externalResourcesRequired:null,fill:null,fillOpacity:Ee,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:Ui,g2:Ui,glyphName:Ui,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ee,horizOriginX:Ee,horizOriginY:Ee,id:null,ideographic:Ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ee,k:Ee,k1:Ee,k2:Ee,k3:Ee,k4:Ee,kernelMatrix:Xn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ee,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ee,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:Ee,overlineThickness:Ee,paintOrder:null,panose1:null,path:null,pathLength:Ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Lt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ee,pointsAtY:Ee,pointsAtZ:Ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Xn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Xn,rev:Xn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Xn,requiredFeatures:Xn,requiredFonts:Xn,requiredFormats:Xn,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:Ee,specularExponent:Ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ee,strikethroughThickness:Ee,string:null,stroke:null,strokeDashArray:Xn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ee,strokeOpacity:Ee,strokeWidth:null,style:null,surfaceScale:Ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Xn,tabIndex:Ee,tableValues:null,target:null,targetX:Ee,targetY:Ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Xn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ee,underlineThickness:Ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ee,values:null,vAlphabetic:Ee,vMathematical:Ee,vectorEffect:null,vHanging:Ee,vIdeographic:Ee,version:null,vertAdvY:Ee,vertOriginX:Ee,vertOriginY:Ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Qm}),Wm=Hi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Zm=Hi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Km}),Jm=Hi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),g6={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"},b6=/[A-Z]/g,e1=/-[a-z]/g,E6=/^data[-\w.:]+$/i;function Uf(e,t){const r=to(t);let i=t,o=Ln;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&E6.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(e1,T6);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!e1.test(s)){let c=s.replace(b6,y6);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}o=Pf}return new o(i,t)}function y6(e){return"-"+e.toLowerCase()}function T6(e){return e.charAt(1).toUpperCase()}const as=Vm([Xm,p6,Wm,Zm,Jm],"html"),Fi=Vm([Xm,m6,Wm,Zm,Jm],"svg");function t1(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function n1(e){return e.join(" ").trim()}var zi={},Hf,r1;function S6(){if(r1)return Hf;r1=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,h=`
|
|
49
|
+
`,p="/",b="*",E="",T="comment",y="declaration";Hf=function(x,B){if(typeof x!="string")throw new TypeError("First argument must be a string");if(!x)return[];B=B||{};var O=1,P=1;function L(ee){var X=ee.match(t);X&&(O+=X.length);var te=ee.lastIndexOf(h);P=~te?ee.length-te:P+ee.length}function M(){var ee={line:O,column:P};return function(X){return X.position=new D(ee),q(),X}}function D(ee){this.start=ee,this.end={line:O,column:P},this.source=B.source}D.prototype.content=x;function N(ee){var X=new Error(B.source+":"+O+":"+P+": "+ee);if(X.reason=ee,X.filename=B.source,X.line=O,X.column=P,X.source=x,!B.silent)throw X}function z(ee){var X=ee.exec(x);if(X){var te=X[0];return L(te),x=x.slice(te.length),X}}function q(){z(r)}function V(ee){var X;for(ee=ee||[];X=_();)X!==!1&&ee.push(X);return ee}function _(){var ee=M();if(!(p!=x.charAt(0)||b!=x.charAt(1))){for(var X=2;E!=x.charAt(X)&&(b!=x.charAt(X)||p!=x.charAt(X+1));)++X;if(X+=2,E===x.charAt(X-1))return N("End of comment missing");var te=x.slice(2,X-2);return P+=2,L(te),x=x.slice(X),P+=2,ee({type:T,comment:te})}}function j(){var ee=M(),X=z(i);if(X){if(_(),!z(o))return N("property missing ':'");var te=z(s),F=ee({type:y,property:v(X[0].replace(e,E)),value:te?v(te[0].replace(e,E)):E});return z(c),F}}function $(){var ee=[];V(ee);for(var X;X=j();)X!==!1&&(ee.push(X),V(ee));return ee}return q(),$()};function v(x){return x?x.replace(d,E):E}return Hf}var a1;function C6(){if(a1)return zi;a1=1;var e=zi&&zi.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(zi,"__esModule",{value:!0}),zi.default=r;var t=e(S6());function r(i,o){var s=null;if(!i||typeof i!="string")return s;var c=(0,t.default)(i),d=typeof o=="function";return c.forEach(function(h){if(h.type==="declaration"){var p=h.property,b=h.value;d?o(p,b,h):b&&(s=s||{},s[p]=b)}}),s}return zi}var no={},i1;function A6(){if(i1)return no;i1=1,Object.defineProperty(no,"__esModule",{value:!0}),no.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(p){return!p||r.test(p)||e.test(p)},c=function(p,b){return b.toUpperCase()},d=function(p,b){return"".concat(b,"-")},h=function(p,b){return b===void 0&&(b={}),s(p)?p:(p=p.toLowerCase(),b.reactCompat?p=p.replace(o,d):p=p.replace(i,d),p.replace(t,c))};return no.camelCase=h,no}var ro,u1;function x6(){if(u1)return ro;u1=1;var e=ro&&ro.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(C6()),r=A6();function i(o,s){var c={};return!o||typeof o!="string"||(0,t.default)(o,function(d,h){d&&h&&(c[(0,r.camelCase)(d,s)]=h)}),c}return i.default=i,ro=i,ro}var _6=x6();const v6=or(_6),is=o1("end"),Dr=o1("start");function o1(e){return t;function t(r){const i=r&&r.position&&r.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function R6(e){const t=Dr(e),r=is(e);if(t&&r)return{start:t,end:r}}function ao(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?l1(e.position):"start"in e||"end"in e?l1(e):"line"in e||"column"in e?Ff(e):""}function Ff(e){return s1(e&&e.line)+":"+s1(e&&e.column)}function l1(e){return Ff(e&&e.start)+"-"+Ff(e&&e.end)}function s1(e){return e&&typeof e=="number"?e:1}class An extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let o="",s={},c=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof t=="string"?o=t:!s.cause&&t&&(c=!0,o=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof i=="string"){const h=i.indexOf(":");h===-1?s.ruleId=i:(s.source=i.slice(0,h),s.ruleId=i.slice(h+1))}if(!s.place&&s.ancestors&&s.ancestors){const h=s.ancestors[s.ancestors.length-1];h&&(s.place=h.position)}const d=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=d?d.line:void 0,this.name=ao(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=c&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}}An.prototype.file="",An.prototype.name="",An.prototype.reason="",An.prototype.message="",An.prototype.stack="",An.prototype.column=void 0,An.prototype.line=void 0,An.prototype.ancestors=void 0,An.prototype.cause=void 0,An.prototype.fatal=void 0,An.prototype.place=void 0,An.prototype.ruleId=void 0,An.prototype.source=void 0;const zf={}.hasOwnProperty,N6=new Map,O6=/[A-Z]/g,k6=new Set(["table","tbody","thead","tfoot","tr"]),I6=new Set(["td","th"]),c1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function D6(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=F6(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=H6(r,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Fi:as,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=f1(o,e,void 0);return s&&typeof s!="string"?s:o.create(e,o.Fragment,{children:s||void 0},void 0)}function f1(e,t,r){if(t.type==="element")return w6(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return L6(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return B6(e,t,r);if(t.type==="mdxjsEsm")return M6(e,t);if(t.type==="root")return P6(e,t,r);if(t.type==="text")return U6(e,t)}function w6(e,t,r){const i=e.schema;let o=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(o=Fi,e.schema=o),e.ancestors.push(t);const s=h1(e,t.tagName,!1),c=z6(e,t);let d=jf(e,t);return k6.has(t.tagName)&&(d=d.filter(function(h){return typeof h=="string"?!d6(h):!0})),d1(e,c,s,t),Yf(c,d),e.ancestors.pop(),e.schema=i,e.create(t,s,c,r)}function L6(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}io(e,t.position)}function M6(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);io(e,t.position)}function B6(e,t,r){const i=e.schema;let o=i;t.name==="svg"&&i.space==="html"&&(o=Fi,e.schema=o),e.ancestors.push(t);const s=t.name===null?e.Fragment:h1(e,t.name,!0),c=Y6(e,t),d=jf(e,t);return d1(e,c,s,t),Yf(c,d),e.ancestors.pop(),e.schema=i,e.create(t,s,c,r)}function P6(e,t,r){const i={};return Yf(i,jf(e,t)),e.create(t,e.Fragment,i,r)}function U6(e,t){return t.value}function d1(e,t,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=i)}function Yf(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function H6(e,t,r){return i;function i(o,s,c,d){const p=Array.isArray(c.children)?r:t;return d?p(s,c,d):p(s,c)}}function F6(e,t){return r;function r(i,o,s,c){const d=Array.isArray(s.children),h=Dr(i);return t(o,s,c,d,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function z6(e,t){const r={};let i,o;for(o in t.properties)if(o!=="children"&&zf.call(t.properties,o)){const s=j6(e,o,t.properties[o]);if(s){const[c,d]=s;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&I6.has(t.tagName)?i=d:r[c]=d}}if(i){const s=r.style||(r.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function Y6(e,t){const r={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const s=i.data.estree.body[0];s.type;const c=s.expression;c.type;const d=c.properties[0];d.type,Object.assign(r,e.evaluater.evaluateExpression(d.argument))}else io(e,t.position);else{const o=i.name;let s;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const d=i.value.data.estree.body[0];d.type,s=e.evaluater.evaluateExpression(d.expression)}else io(e,t.position);else s=i.value===null?!0:i.value;r[o]=s}return r}function jf(e,t){const r=[];let i=-1;const o=e.passKeys?new Map:N6;for(;++i<t.children.length;){const s=t.children[i];let c;if(e.passKeys){const h=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(h){const p=o.get(h)||0;c=h+"-"+p,o.set(h,p+1)}}const d=f1(e,s,c);d!==void 0&&r.push(d)}return r}function j6(e,t,r){const i=Uf(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?Ym(r):n1(r)),i.property==="style"){let o=typeof r=="object"?r:q6(e,String(r));return e.stylePropertyNameCase==="css"&&(o=V6(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&i.space?g6[i.property]||i.property:i.attribute,r]}}function q6(e,t){try{return v6(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,o=new An("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=c1+"#cannot-parse-style-attribute",o}}function h1(e,t,r){let i;if(!r)i={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let s=-1,c;for(;++s<o.length;){const d=jm(o[s])?{type:"Identifier",name:o[s]}:{type:"Literal",value:o[s]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(s&&d.type==="Literal"),optional:!1}:d}i=c}else i=jm(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const o=i.value;return zf.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(i);io(e)}function io(e,t){const r=new An("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=c1+"#cannot-handle-mdx-estrees-without-createevaluater",r}function V6(e){const t={};let r;for(r in e)zf.call(e,r)&&(t[G6(r)]=e[r]);return t}function G6(e){let t=e.replace(O6,$6);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function $6(e){return"-"+e.toLowerCase()}const qf={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var Vf={exports:{}},uo={};/**
|
|
50
50
|
* @license React
|
|
51
51
|
* react-jsx-runtime.production.js
|
|
52
52
|
*
|
|
@@ -54,20 +54,20 @@ Error generating stack: `+u.message+`
|
|
|
54
54
|
*
|
|
55
55
|
* This source code is licensed under the MIT license found in the
|
|
56
56
|
* LICENSE file in the root directory of this source tree.
|
|
57
|
-
*/var a1;function x6(){if(a1)return al;a1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(i,l,s){var c=null;if(s!==void 0&&(c=""+s),l.key!==void 0&&(c=""+l.key),"key"in l){s={};for(var d in l)d!=="key"&&(s[d]=l[d])}else s=l;return l=s.ref,{$$typeof:e,type:i,key:c,ref:l!==void 0?l:null,props:s}}return al.Fragment=t,al.jsx=r,al.jsxs=r,al}var i1;function v6(){return i1||(i1=1,Ff.exports=x6()),Ff.exports}var he=v6();const R6={};function N6(e,t){const r=R6,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,l=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return u1(e,i,l)}function u1(e,t,r){if(O6(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return l1(e.children,t,r)}return Array.isArray(e)?l1(e,t,r):""}function l1(e,t,r){const i=[];let l=-1;for(;++l<e.length;)i[l]=u1(e[l],t,r);return i.join("")}function O6(e){return!!(e&&typeof e=="object")}const o1=document.createElement("i");function zf(e){const t="&"+e+";";o1.innerHTML=t;const r=o1.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function Lr(e,t,r,i){const l=e.length;let s=0,c;if(t<0?t=-t>l?0:l+t:t=t>l?l:t,r=r>0?r:0,i.length<1e4)c=Array.from(i),c.unshift(t,r),e.splice(...c);else for(r&&e.splice(t,r);s<i.length;)c=i.slice(s,s+1e4),c.unshift(t,0),e.splice(...c),s+=1e4,t+=1e4}function or(e,t){return e.length>0?(Lr(e,e.length,0,t),e):t}const s1={}.hasOwnProperty;function I6(e){const t={};let r=-1;for(;++r<e.length;)D6(t,e[r]);return t}function D6(e,t){let r;for(r in t){const l=(s1.call(e,r)?e[r]:void 0)||(e[r]={}),s=t[r];let c;if(s)for(c in s){s1.call(l,c)||(l[c]=[]);const d=s[c];k6(l[c],Array.isArray(d)?d:d?[d]:[])}}}function k6(e,t){let r=-1;const i=[];for(;++r<t.length;)(t[r].add==="after"?e:i).push(t[r]);Lr(e,0,0,i)}function c1(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Fi(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Mr=Ea(/[A-Za-z]/),Qn=Ea(/[\dA-Za-z]/),L6=Ea(/[#-'*+\--9=?A-Z^-~]/);function Yf(e){return e!==null&&(e<32||e===127)}const jf=Ea(/\d/),M6=Ea(/[\dA-Fa-f]/),w6=Ea(/[!-/:-@[-`{-~]/);function Ye(e){return e!==null&&e<-2}function wn(e){return e!==null&&(e<0||e===32)}function pt(e){return e===-2||e===-1||e===32}const B6=Ea(new RegExp("\\p{P}|\\p{S}","u")),P6=Ea(/\s/);function Ea(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function zi(e){const t=[];let r=-1,i=0,l=0;for(;++r<e.length;){const s=e.charCodeAt(r);let c="";if(s===37&&Qn(e.charCodeAt(r+1))&&Qn(e.charCodeAt(r+2)))l=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(c=String.fromCharCode(s));else if(s>55295&&s<57344){const d=e.charCodeAt(r+1);s<56320&&d>56319&&d<57344?(c=String.fromCharCode(s,d),l=1):c="�"}else c=String.fromCharCode(s);c&&(t.push(e.slice(i,r),encodeURIComponent(c)),i=r+l+1,c=""),l&&(r+=l,l=0)}return t.join("")+e.slice(i)}function wt(e,t,r,i){const l=i?i-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(p){return pt(p)?(e.enter(r),d(p)):t(p)}function d(p){return pt(p)&&s++<l?(e.consume(p),d):(e.exit(r),t(p))}}const U6={tokenize:H6};function H6(e){const t=e.attempt(this.parser.constructs.contentInitial,i,l);let r;return t;function i(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),wt(e,t,"linePrefix")}function l(d){return e.enter("paragraph"),s(d)}function s(d){const p=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=p),r=p,c(d)}function c(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return Ye(d)?(e.consume(d),e.exit("chunkText"),s):(e.consume(d),c)}}const F6={tokenize:z6},f1={tokenize:Y6};function z6(e){const t=this,r=[];let i=0,l,s,c;return d;function d(M){if(i<r.length){const P=r[i];return t.containerState=P[1],e.attempt(P[0].continuation,p,m)(M)}return m(M)}function p(M){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&q();const P=t.events.length;let k=P,N;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){N=t.events[k][1].end;break}D(i);let Y=P;for(;Y<t.events.length;)t.events[Y][1].end={...N},Y++;return Lr(t.events,k+1,0,t.events.slice(P)),t.events.length=Y,m(M)}return d(M)}function m(M){if(i===r.length){if(!l)return T(M);if(l.currentConstruct&&l.currentConstruct.concrete)return R(M);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(f1,b,E)(M)}function b(M){return l&&q(),D(i),T(M)}function E(M){return t.parser.lazy[t.now().line]=i!==r.length,c=t.now().offset,R(M)}function T(M){return t.containerState={},e.attempt(f1,y,R)(M)}function y(M){return i++,r.push([t.currentConstruct,t.containerState]),T(M)}function R(M){if(M===null){l&&q(),D(0),e.consume(M);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:s}),x(M)}function x(M){if(M===null){U(e.exit("chunkFlow"),!0),D(0),e.consume(M);return}return Ye(M)?(e.consume(M),U(e.exit("chunkFlow")),i=0,t.interrupt=void 0,d):(e.consume(M),x)}function U(M,P){const k=t.sliceStream(M);if(P&&k.push(null),M.previous=s,s&&(s.next=M),s=M,l.defineSkip(M.start),l.write(k),t.parser.lazy[M.start.line]){let N=l.events.length;for(;N--;)if(l.events[N][1].start.offset<c&&(!l.events[N][1].end||l.events[N][1].end.offset>c))return;const Y=t.events.length;let j=Y,G,_;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){if(G){_=t.events[j][1].end;break}G=!0}for(D(i),N=Y;N<t.events.length;)t.events[N][1].end={..._},N++;Lr(t.events,j+1,0,t.events.slice(Y)),t.events.length=N}}function D(M){let P=r.length;for(;P-- >M;){const k=r[P];t.containerState=k[1],k[0].exit.call(t,e)}r.length=M}function q(){l.write([null]),s=void 0,l=void 0,t.containerState._closeFlow=void 0}}function Y6(e,t,r){return wt(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function d1(e){if(e===null||wn(e)||P6(e))return 1;if(B6(e))return 2}function qf(e,t,r){const i=[];let l=-1;for(;++l<e.length;){const s=e[l].resolveAll;s&&!i.includes(s)&&(t=s(t,r),i.push(s))}return t}const Vf={name:"attention",resolveAll:j6,tokenize:q6};function j6(e,t){let r=-1,i,l,s,c,d,p,m,b;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(i=r;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[i][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;p=e[i][1].end.offset-e[i][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const E={...e[i][1].end},T={...e[r][1].start};h1(E,-p),h1(T,p),c={type:p>1?"strongSequence":"emphasisSequence",start:E,end:{...e[i][1].end}},d={type:p>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:T},s={type:p>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[r][1].start}},l={type:p>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},e[i][1].end={...c.start},e[r][1].start={...d.end},m=[],e[i][1].end.offset-e[i][1].start.offset&&(m=or(m,[["enter",e[i][1],t],["exit",e[i][1],t]])),m=or(m,[["enter",l,t],["enter",c,t],["exit",c,t],["enter",s,t]]),m=or(m,qf(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),m=or(m,[["exit",s,t],["enter",d,t],["exit",d,t],["exit",l,t]]),e[r][1].end.offset-e[r][1].start.offset?(b=2,m=or(m,[["enter",e[r][1],t],["exit",e[r][1],t]])):b=0,Lr(e,i-1,r-i+3,m),r=i+m.length-b-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function q6(e,t){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,l=d1(i);let s;return c;function c(p){return s=p,e.enter("attentionSequence"),d(p)}function d(p){if(p===s)return e.consume(p),d;const m=e.exit("attentionSequence"),b=d1(p),E=!b||b===2&&l||r.includes(p),T=!l||l===2&&b||r.includes(i);return m._open=!!(s===42?E:E&&(l||!T)),m._close=!!(s===42?T:T&&(b||!E)),t(p)}}function h1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const V6={name:"autolink",tokenize:G6};function G6(e,t,r){let i=0;return l;function l(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(y){return Mr(y)?(e.consume(y),c):y===64?r(y):m(y)}function c(y){return y===43||y===45||y===46||Qn(y)?(i=1,d(y)):m(y)}function d(y){return y===58?(e.consume(y),i=0,p):(y===43||y===45||y===46||Qn(y))&&i++<32?(e.consume(y),d):(i=0,m(y))}function p(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):y===null||y===32||y===60||Yf(y)?r(y):(e.consume(y),p)}function m(y){return y===64?(e.consume(y),b):L6(y)?(e.consume(y),m):r(y)}function b(y){return Qn(y)?E(y):r(y)}function E(y){return y===46?(e.consume(y),i=0,b):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):T(y)}function T(y){if((y===45||Qn(y))&&i++<63){const R=y===45?T:E;return e.consume(y),R}return r(y)}}const ts={partial:!0,tokenize:$6};function $6(e,t,r){return i;function i(s){return pt(s)?wt(e,l,"linePrefix")(s):l(s)}function l(s){return s===null||Ye(s)?t(s):r(s)}}const p1={continuation:{tokenize:Q6},exit:K6,name:"blockQuote",tokenize:X6};function X6(e,t,r){const i=this;return l;function l(c){if(c===62){const d=i.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),s}return r(c)}function s(c){return pt(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(c))}}function Q6(e,t,r){const i=this;return l;function l(c){return pt(c)?wt(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):s(c)}function s(c){return e.attempt(p1,t,r)(c)}}function K6(e){e.exit("blockQuote")}const m1={name:"characterEscape",tokenize:W6};function W6(e,t,r){return i;function i(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),l}function l(s){return w6(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(s)}}const g1={name:"characterReference",tokenize:Z6};function Z6(e,t,r){const i=this;let l=0,s,c;return d;function d(E){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(E),e.exit("characterReferenceMarker"),p}function p(E){return E===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(E),e.exit("characterReferenceMarkerNumeric"),m):(e.enter("characterReferenceValue"),s=31,c=Qn,b(E))}function m(E){return E===88||E===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(E),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,c=M6,b):(e.enter("characterReferenceValue"),s=7,c=jf,b(E))}function b(E){if(E===59&&l){const T=e.exit("characterReferenceValue");return c===Qn&&!zf(i.sliceSerialize(T))?r(E):(e.enter("characterReferenceMarker"),e.consume(E),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return c(E)&&l++<s?(e.consume(E),b):r(E)}}const b1={partial:!0,tokenize:eA},E1={concrete:!0,name:"codeFenced",tokenize:J6};function J6(e,t,r){const i=this,l={partial:!0,tokenize:k};let s=0,c=0,d;return p;function p(N){return m(N)}function m(N){const Y=i.events[i.events.length-1];return s=Y&&Y[1].type==="linePrefix"?Y[2].sliceSerialize(Y[1],!0).length:0,d=N,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),b(N)}function b(N){return N===d?(c++,e.consume(N),b):c<3?r(N):(e.exit("codeFencedFenceSequence"),pt(N)?wt(e,E,"whitespace")(N):E(N))}function E(N){return N===null||Ye(N)?(e.exit("codeFencedFence"),i.interrupt?t(N):e.check(b1,x,P)(N)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),T(N))}function T(N){return N===null||Ye(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),E(N)):pt(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),wt(e,y,"whitespace")(N)):N===96&&N===d?r(N):(e.consume(N),T)}function y(N){return N===null||Ye(N)?E(N):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),R(N))}function R(N){return N===null||Ye(N)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),E(N)):N===96&&N===d?r(N):(e.consume(N),R)}function x(N){return e.attempt(l,P,U)(N)}function U(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),D}function D(N){return s>0&&pt(N)?wt(e,q,"linePrefix",s+1)(N):q(N)}function q(N){return N===null||Ye(N)?e.check(b1,x,P)(N):(e.enter("codeFlowValue"),M(N))}function M(N){return N===null||Ye(N)?(e.exit("codeFlowValue"),q(N)):(e.consume(N),M)}function P(N){return e.exit("codeFenced"),t(N)}function k(N,Y,j){let G=0;return _;function _(te){return N.enter("lineEnding"),N.consume(te),N.exit("lineEnding"),z}function z(te){return N.enter("codeFencedFence"),pt(te)?wt(N,$,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(te):$(te)}function $(te){return te===d?(N.enter("codeFencedFenceSequence"),Z(te)):j(te)}function Z(te){return te===d?(G++,N.consume(te),Z):G>=c?(N.exit("codeFencedFenceSequence"),pt(te)?wt(N,X,"whitespace")(te):X(te)):j(te)}function X(te){return te===null||Ye(te)?(N.exit("codeFencedFence"),Y(te)):j(te)}}}function eA(e,t,r){const i=this;return l;function l(c){return c===null?r(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s)}function s(c){return i.parser.lazy[i.now().line]?r(c):t(c)}}const Gf={name:"codeIndented",tokenize:nA},tA={partial:!0,tokenize:rA};function nA(e,t,r){const i=this;return l;function l(m){return e.enter("codeIndented"),wt(e,s,"linePrefix",5)(m)}function s(m){const b=i.events[i.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?c(m):r(m)}function c(m){return m===null?p(m):Ye(m)?e.attempt(tA,c,p)(m):(e.enter("codeFlowValue"),d(m))}function d(m){return m===null||Ye(m)?(e.exit("codeFlowValue"),c(m)):(e.consume(m),d)}function p(m){return e.exit("codeIndented"),t(m)}}function rA(e,t,r){const i=this;return l;function l(c){return i.parser.lazy[i.now().line]?r(c):Ye(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):wt(e,s,"linePrefix",5)(c)}function s(c){const d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):Ye(c)?l(c):r(c)}}const aA={name:"codeText",previous:uA,resolve:iA,tokenize:lA};function iA(e){let t=e.length-4,r=3,i,l;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=r;++i<t;)if(e[i][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(i=r-1,t++;++i<=t;)l===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(l=i):(i===t||e[i][1].type==="lineEnding")&&(e[l][1].type="codeTextData",i!==l+2&&(e[l][1].end=e[i-1][1].end,e.splice(l+2,i-l-2),t-=i-l-2,i=l+2),l=void 0);return e}function uA(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function lA(e,t,r){let i=0,l,s;return c;function c(E){return e.enter("codeText"),e.enter("codeTextSequence"),d(E)}function d(E){return E===96?(e.consume(E),i++,d):(e.exit("codeTextSequence"),p(E))}function p(E){return E===null?r(E):E===32?(e.enter("space"),e.consume(E),e.exit("space"),p):E===96?(s=e.enter("codeTextSequence"),l=0,b(E)):Ye(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),p):(e.enter("codeTextData"),m(E))}function m(E){return E===null||E===32||E===96||Ye(E)?(e.exit("codeTextData"),p(E)):(e.consume(E),m)}function b(E){return E===96?(e.consume(E),l++,b):l===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(E)):(s.type="codeTextData",m(E))}}class oA{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const i=r??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,r,i){const l=r||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return i&&il(this.left,i),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),il(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),il(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);il(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);il(this.left,r.reverse())}}}function il(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function y1(e){const t={};let r=-1,i,l,s,c,d,p,m;const b=new oA(e);for(;++r<b.length;){for(;r in t;)r=t[r];if(i=b.get(r),r&&i[1].type==="chunkFlow"&&b.get(r-1)[1].type==="listItemPrefix"&&(p=i[1]._tokenizer.events,s=0,s<p.length&&p[s][1].type==="lineEndingBlank"&&(s+=2),s<p.length&&p[s][1].type==="content"))for(;++s<p.length&&p[s][1].type!=="content";)p[s][1].type==="chunkText"&&(p[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,sA(b,r)),r=t[r],m=!0);else if(i[1]._container){for(s=r,l=void 0;s--;)if(c=b.get(s),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(l&&(b.get(l)[1].type="lineEndingBlank"),c[1].type="lineEnding",l=s);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;l&&(i[1].end={...b.get(l)[1].start},d=b.slice(l,r),d.unshift(i),b.splice(l,r-l+1,d))}}return Lr(e,0,Number.POSITIVE_INFINITY,b.slice(0)),!m}function sA(e,t){const r=e.get(t)[1],i=e.get(t)[2];let l=t-1;const s=[];let c=r._tokenizer;c||(c=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,p=[],m={};let b,E,T=-1,y=r,R=0,x=0;const U=[x];for(;y;){for(;e.get(++l)[1]!==y;);s.push(l),y._tokenizer||(b=i.sliceStream(y),y.next||b.push(null),E&&c.defineSkip(y.start),y._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(b),y._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),E=y,y=y.next}for(y=r;++T<d.length;)d[T][0]==="exit"&&d[T-1][0]==="enter"&&d[T][1].type===d[T-1][1].type&&d[T][1].start.line!==d[T][1].end.line&&(x=T+1,U.push(x),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(c.events=[],y?(y._tokenizer=void 0,y.previous=void 0):U.pop(),T=U.length;T--;){const D=d.slice(U[T],U[T+1]),q=s.pop();p.push([q,q+D.length-1]),e.splice(q,2,D)}for(p.reverse(),T=-1;++T<p.length;)m[R+p[T][0]]=R+p[T][1],R+=p[T][1]-p[T][0]-1;return m}const cA={resolve:dA,tokenize:hA},fA={partial:!0,tokenize:pA};function dA(e){return y1(e),e}function hA(e,t){let r;return i;function i(d){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),l(d)}function l(d){return d===null?s(d):Ye(d)?e.check(fA,c,s)(d):(e.consume(d),l)}function s(d){return e.exit("chunkContent"),e.exit("content"),t(d)}function c(d){return e.consume(d),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,l}}function pA(e,t,r){const i=this;return l;function l(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),wt(e,s,"linePrefix")}function s(c){if(c===null||Ye(c))return r(c);const d=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):e.interrupt(i.parser.constructs.flow,r,t)(c)}}function T1(e,t,r,i,l,s,c,d,p){const m=p||Number.POSITIVE_INFINITY;let b=0;return E;function E(D){return D===60?(e.enter(i),e.enter(l),e.enter(s),e.consume(D),e.exit(s),T):D===null||D===32||D===41||Yf(D)?r(D):(e.enter(i),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),x(D))}function T(D){return D===62?(e.enter(s),e.consume(D),e.exit(s),e.exit(l),e.exit(i),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),y(D))}function y(D){return D===62?(e.exit("chunkString"),e.exit(d),T(D)):D===null||D===60||Ye(D)?r(D):(e.consume(D),D===92?R:y)}function R(D){return D===60||D===62||D===92?(e.consume(D),y):y(D)}function x(D){return!b&&(D===null||D===41||wn(D))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(i),t(D)):b<m&&D===40?(e.consume(D),b++,x):D===41?(e.consume(D),b--,x):D===null||D===32||D===40||Yf(D)?r(D):(e.consume(D),D===92?U:x)}function U(D){return D===40||D===41||D===92?(e.consume(D),x):x(D)}}function S1(e,t,r,i,l,s){const c=this;let d=0,p;return m;function m(y){return e.enter(i),e.enter(l),e.consume(y),e.exit(l),e.enter(s),b}function b(y){return d>999||y===null||y===91||y===93&&!p||y===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?r(y):y===93?(e.exit(s),e.enter(l),e.consume(y),e.exit(l),e.exit(i),t):Ye(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),b):(e.enter("chunkString",{contentType:"string"}),E(y))}function E(y){return y===null||y===91||y===93||Ye(y)||d++>999?(e.exit("chunkString"),b(y)):(e.consume(y),p||(p=!pt(y)),y===92?T:E)}function T(y){return y===91||y===92||y===93?(e.consume(y),d++,E):E(y)}}function C1(e,t,r,i,l,s){let c;return d;function d(T){return T===34||T===39||T===40?(e.enter(i),e.enter(l),e.consume(T),e.exit(l),c=T===40?41:T,p):r(T)}function p(T){return T===c?(e.enter(l),e.consume(T),e.exit(l),e.exit(i),t):(e.enter(s),m(T))}function m(T){return T===c?(e.exit(s),p(c)):T===null?r(T):Ye(T)?(e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),wt(e,m,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),b(T))}function b(T){return T===c||T===null||Ye(T)?(e.exit("chunkString"),m(T)):(e.consume(T),T===92?E:b)}function E(T){return T===c||T===92?(e.consume(T),b):b(T)}}function ul(e,t){let r;return i;function i(l){return Ye(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r=!0,i):pt(l)?wt(e,i,r?"linePrefix":"lineSuffix")(l):t(l)}}const mA={name:"definition",tokenize:bA},gA={partial:!0,tokenize:EA};function bA(e,t,r){const i=this;let l;return s;function s(y){return e.enter("definition"),c(y)}function c(y){return S1.call(i,e,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function d(y){return l=Fi(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),p):r(y)}function p(y){return wn(y)?ul(e,m)(y):m(y)}function m(y){return T1(e,b,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function b(y){return e.attempt(gA,E,E)(y)}function E(y){return pt(y)?wt(e,T,"whitespace")(y):T(y)}function T(y){return y===null||Ye(y)?(e.exit("definition"),i.parser.defined.push(l),t(y)):r(y)}}function EA(e,t,r){return i;function i(d){return wn(d)?ul(e,l)(d):r(d)}function l(d){return C1(e,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function s(d){return pt(d)?wt(e,c,"whitespace")(d):c(d)}function c(d){return d===null||Ye(d)?t(d):r(d)}}const yA={name:"hardBreakEscape",tokenize:TA};function TA(e,t,r){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),l}function l(s){return Ye(s)?(e.exit("hardBreakEscape"),t(s)):r(s)}}const SA={name:"headingAtx",resolve:CA,tokenize:AA};function CA(e,t){let r=e.length-2,i=3,l,s;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(l={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},s={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},Lr(e,i,r-i+1,[["enter",l,t],["enter",s,t],["exit",s,t],["exit",l,t]])),e}function AA(e,t,r){let i=0;return l;function l(b){return e.enter("atxHeading"),s(b)}function s(b){return e.enter("atxHeadingSequence"),c(b)}function c(b){return b===35&&i++<6?(e.consume(b),c):b===null||wn(b)?(e.exit("atxHeadingSequence"),d(b)):r(b)}function d(b){return b===35?(e.enter("atxHeadingSequence"),p(b)):b===null||Ye(b)?(e.exit("atxHeading"),t(b)):pt(b)?wt(e,d,"whitespace")(b):(e.enter("atxHeadingText"),m(b))}function p(b){return b===35?(e.consume(b),p):(e.exit("atxHeadingSequence"),d(b))}function m(b){return b===null||b===35||wn(b)?(e.exit("atxHeadingText"),d(b)):(e.consume(b),m)}}const _A=["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"],A1=["pre","script","style","textarea"],xA={concrete:!0,name:"htmlFlow",resolveTo:NA,tokenize:OA},vA={partial:!0,tokenize:DA},RA={partial:!0,tokenize:IA};function NA(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function OA(e,t,r){const i=this;let l,s,c,d,p;return m;function m(O){return b(O)}function b(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),E}function E(O){return O===33?(e.consume(O),T):O===47?(e.consume(O),s=!0,x):O===63?(e.consume(O),l=3,i.interrupt?t:C):Mr(O)?(e.consume(O),c=String.fromCharCode(O),U):r(O)}function T(O){return O===45?(e.consume(O),l=2,y):O===91?(e.consume(O),l=5,d=0,R):Mr(O)?(e.consume(O),l=4,i.interrupt?t:C):r(O)}function y(O){return O===45?(e.consume(O),i.interrupt?t:C):r(O)}function R(O){const be="CDATA[";return O===be.charCodeAt(d++)?(e.consume(O),d===be.length?i.interrupt?t:$:R):r(O)}function x(O){return Mr(O)?(e.consume(O),c=String.fromCharCode(O),U):r(O)}function U(O){if(O===null||O===47||O===62||wn(O)){const be=O===47,Ne=c.toLowerCase();return!be&&!s&&A1.includes(Ne)?(l=1,i.interrupt?t(O):$(O)):_A.includes(c.toLowerCase())?(l=6,be?(e.consume(O),D):i.interrupt?t(O):$(O)):(l=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(O):s?q(O):M(O))}return O===45||Qn(O)?(e.consume(O),c+=String.fromCharCode(O),U):r(O)}function D(O){return O===62?(e.consume(O),i.interrupt?t:$):r(O)}function q(O){return pt(O)?(e.consume(O),q):_(O)}function M(O){return O===47?(e.consume(O),_):O===58||O===95||Mr(O)?(e.consume(O),P):pt(O)?(e.consume(O),M):_(O)}function P(O){return O===45||O===46||O===58||O===95||Qn(O)?(e.consume(O),P):k(O)}function k(O){return O===61?(e.consume(O),N):pt(O)?(e.consume(O),k):M(O)}function N(O){return O===null||O===60||O===61||O===62||O===96?r(O):O===34||O===39?(e.consume(O),p=O,Y):pt(O)?(e.consume(O),N):j(O)}function Y(O){return O===p?(e.consume(O),p=null,G):O===null||Ye(O)?r(O):(e.consume(O),Y)}function j(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||wn(O)?k(O):(e.consume(O),j)}function G(O){return O===47||O===62||pt(O)?M(O):r(O)}function _(O){return O===62?(e.consume(O),z):r(O)}function z(O){return O===null||Ye(O)?$(O):pt(O)?(e.consume(O),z):r(O)}function $(O){return O===45&&l===2?(e.consume(O),H):O===60&&l===1?(e.consume(O),Q):O===62&&l===4?(e.consume(O),J):O===63&&l===3?(e.consume(O),C):O===93&&l===5?(e.consume(O),me):Ye(O)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(vA,fe,Z)(O)):O===null||Ye(O)?(e.exit("htmlFlowData"),Z(O)):(e.consume(O),$)}function Z(O){return e.check(RA,X,fe)(O)}function X(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),te}function te(O){return O===null||Ye(O)?Z(O):(e.enter("htmlFlowData"),$(O))}function H(O){return O===45?(e.consume(O),C):$(O)}function Q(O){return O===47?(e.consume(O),c="",ie):$(O)}function ie(O){if(O===62){const be=c.toLowerCase();return A1.includes(be)?(e.consume(O),J):$(O)}return Mr(O)&&c.length<8?(e.consume(O),c+=String.fromCharCode(O),ie):$(O)}function me(O){return O===93?(e.consume(O),C):$(O)}function C(O){return O===62?(e.consume(O),J):O===45&&l===2?(e.consume(O),C):$(O)}function J(O){return O===null||Ye(O)?(e.exit("htmlFlowData"),fe(O)):(e.consume(O),J)}function fe(O){return e.exit("htmlFlow"),t(O)}}function IA(e,t,r){const i=this;return l;function l(c){return Ye(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):r(c)}function s(c){return i.parser.lazy[i.now().line]?r(c):t(c)}}function DA(e,t,r){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(ts,t,r)}}const kA={name:"htmlText",tokenize:LA};function LA(e,t,r){const i=this;let l,s,c;return d;function d(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),p}function p(C){return C===33?(e.consume(C),m):C===47?(e.consume(C),k):C===63?(e.consume(C),M):Mr(C)?(e.consume(C),j):r(C)}function m(C){return C===45?(e.consume(C),b):C===91?(e.consume(C),s=0,R):Mr(C)?(e.consume(C),q):r(C)}function b(C){return C===45?(e.consume(C),y):r(C)}function E(C){return C===null?r(C):C===45?(e.consume(C),T):Ye(C)?(c=E,Q(C)):(e.consume(C),E)}function T(C){return C===45?(e.consume(C),y):E(C)}function y(C){return C===62?H(C):C===45?T(C):E(C)}function R(C){const J="CDATA[";return C===J.charCodeAt(s++)?(e.consume(C),s===J.length?x:R):r(C)}function x(C){return C===null?r(C):C===93?(e.consume(C),U):Ye(C)?(c=x,Q(C)):(e.consume(C),x)}function U(C){return C===93?(e.consume(C),D):x(C)}function D(C){return C===62?H(C):C===93?(e.consume(C),D):x(C)}function q(C){return C===null||C===62?H(C):Ye(C)?(c=q,Q(C)):(e.consume(C),q)}function M(C){return C===null?r(C):C===63?(e.consume(C),P):Ye(C)?(c=M,Q(C)):(e.consume(C),M)}function P(C){return C===62?H(C):M(C)}function k(C){return Mr(C)?(e.consume(C),N):r(C)}function N(C){return C===45||Qn(C)?(e.consume(C),N):Y(C)}function Y(C){return Ye(C)?(c=Y,Q(C)):pt(C)?(e.consume(C),Y):H(C)}function j(C){return C===45||Qn(C)?(e.consume(C),j):C===47||C===62||wn(C)?G(C):r(C)}function G(C){return C===47?(e.consume(C),H):C===58||C===95||Mr(C)?(e.consume(C),_):Ye(C)?(c=G,Q(C)):pt(C)?(e.consume(C),G):H(C)}function _(C){return C===45||C===46||C===58||C===95||Qn(C)?(e.consume(C),_):z(C)}function z(C){return C===61?(e.consume(C),$):Ye(C)?(c=z,Q(C)):pt(C)?(e.consume(C),z):G(C)}function $(C){return C===null||C===60||C===61||C===62||C===96?r(C):C===34||C===39?(e.consume(C),l=C,Z):Ye(C)?(c=$,Q(C)):pt(C)?(e.consume(C),$):(e.consume(C),X)}function Z(C){return C===l?(e.consume(C),l=void 0,te):C===null?r(C):Ye(C)?(c=Z,Q(C)):(e.consume(C),Z)}function X(C){return C===null||C===34||C===39||C===60||C===61||C===96?r(C):C===47||C===62||wn(C)?G(C):(e.consume(C),X)}function te(C){return C===47||C===62||wn(C)?G(C):r(C)}function H(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),t):r(C)}function Q(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),ie}function ie(C){return pt(C)?wt(e,me,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):me(C)}function me(C){return e.enter("htmlTextData"),c(C)}}const $f={name:"labelEnd",resolveAll:PA,resolveTo:UA,tokenize:HA},MA={tokenize:FA},wA={tokenize:zA},BA={tokenize:YA};function PA(e){let t=-1;const r=[];for(;++t<e.length;){const i=e[t][1];if(r.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const l=i.type==="labelImage"?4:2;i.type="data",t+=l}}return e.length!==r.length&&Lr(e,0,e.length,r),e}function UA(e,t){let r=e.length,i=0,l,s,c,d;for(;r--;)if(l=e[r][1],s){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[r][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(c){if(e[r][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(s=r,l.type!=="labelLink")){i=2;break}}else l.type==="labelEnd"&&(c=r);const p={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},m={type:"label",start:{...e[s][1].start},end:{...e[c][1].end}},b={type:"labelText",start:{...e[s+i+2][1].end},end:{...e[c-2][1].start}};return d=[["enter",p,t],["enter",m,t]],d=or(d,e.slice(s+1,s+i+3)),d=or(d,[["enter",b,t]]),d=or(d,qf(t.parser.constructs.insideSpan.null,e.slice(s+i+4,c-3),t)),d=or(d,[["exit",b,t],e[c-2],e[c-1],["exit",m,t]]),d=or(d,e.slice(c+1)),d=or(d,[["exit",p,t]]),Lr(e,s,e.length,d),e}function HA(e,t,r){const i=this;let l=i.events.length,s,c;for(;l--;)if((i.events[l][1].type==="labelImage"||i.events[l][1].type==="labelLink")&&!i.events[l][1]._balanced){s=i.events[l][1];break}return d;function d(T){return s?s._inactive?E(T):(c=i.parser.defined.includes(Fi(i.sliceSerialize({start:s.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(T),e.exit("labelMarker"),e.exit("labelEnd"),p):r(T)}function p(T){return T===40?e.attempt(MA,b,c?b:E)(T):T===91?e.attempt(wA,b,c?m:E)(T):c?b(T):E(T)}function m(T){return e.attempt(BA,b,E)(T)}function b(T){return t(T)}function E(T){return s._balanced=!0,r(T)}}function FA(e,t,r){return i;function i(E){return e.enter("resource"),e.enter("resourceMarker"),e.consume(E),e.exit("resourceMarker"),l}function l(E){return wn(E)?ul(e,s)(E):s(E)}function s(E){return E===41?b(E):T1(e,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(E)}function c(E){return wn(E)?ul(e,p)(E):b(E)}function d(E){return r(E)}function p(E){return E===34||E===39||E===40?C1(e,m,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(E):b(E)}function m(E){return wn(E)?ul(e,b)(E):b(E)}function b(E){return E===41?(e.enter("resourceMarker"),e.consume(E),e.exit("resourceMarker"),e.exit("resource"),t):r(E)}}function zA(e,t,r){const i=this;return l;function l(d){return S1.call(i,e,s,c,"reference","referenceMarker","referenceString")(d)}function s(d){return i.parser.defined.includes(Fi(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(d):r(d)}function c(d){return r(d)}}function YA(e,t,r){return i;function i(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),l}function l(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):r(s)}}const jA={name:"labelStartImage",resolveAll:$f.resolveAll,tokenize:qA};function qA(e,t,r){const i=this;return l;function l(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),s}function s(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),c):r(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(d):t(d)}}const VA={name:"labelStartLink",resolveAll:$f.resolveAll,tokenize:GA};function GA(e,t,r){const i=this;return l;function l(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),s}function s(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(c):t(c)}}const Xf={name:"lineEnding",tokenize:$A};function $A(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),wt(e,t,"linePrefix")}}const ns={name:"thematicBreak",tokenize:XA};function XA(e,t,r){let i=0,l;return s;function s(m){return e.enter("thematicBreak"),c(m)}function c(m){return l=m,d(m)}function d(m){return m===l?(e.enter("thematicBreakSequence"),p(m)):i>=3&&(m===null||Ye(m))?(e.exit("thematicBreak"),t(m)):r(m)}function p(m){return m===l?(e.consume(m),i++,p):(e.exit("thematicBreakSequence"),pt(m)?wt(e,d,"whitespace")(m):d(m))}}const Bn={continuation:{tokenize:ZA},exit:e_,name:"list",tokenize:WA},QA={partial:!0,tokenize:t_},KA={partial:!0,tokenize:JA};function WA(e,t,r){const i=this,l=i.events[i.events.length-1];let s=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,c=0;return d;function d(y){const R=i.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(R==="listUnordered"?!i.containerState.marker||y===i.containerState.marker:jf(y)){if(i.containerState.type||(i.containerState.type=R,e.enter(R,{_container:!0})),R==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(ns,r,m)(y):m(y);if(!i.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),p(y)}return r(y)}function p(y){return jf(y)&&++c<10?(e.consume(y),p):(!i.interrupt||c<2)&&(i.containerState.marker?y===i.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),m(y)):r(y)}function m(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||y,e.check(ts,i.interrupt?r:b,e.attempt(QA,T,E))}function b(y){return i.containerState.initialBlankLine=!0,s++,T(y)}function E(y){return pt(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),T):r(y)}function T(y){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function ZA(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(ts,l,s);function l(d){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,wt(e,t,"listItemIndent",i.containerState.size+1)(d)}function s(d){return i.containerState.furtherBlankLines||!pt(d)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(d)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(KA,t,c)(d))}function c(d){return i.containerState._closeFlow=!0,i.interrupt=void 0,wt(e,e.attempt(Bn,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function JA(e,t,r){const i=this;return wt(e,l,"listItemIndent",i.containerState.size+1);function l(s){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?t(s):r(s)}}function e_(e){e.exit(this.containerState.type)}function t_(e,t,r){const i=this;return wt(e,l,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(s){const c=i.events[i.events.length-1];return!pt(s)&&c&&c[1].type==="listItemPrefixWhitespace"?t(s):r(s)}}const _1={name:"setextUnderline",resolveTo:n_,tokenize:r_};function n_(e,t){let r=e.length,i,l,s;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(l=r)}else e[r][1].type==="content"&&e.splice(r,1),!s&&e[r][1].type==="definition"&&(s=r);const c={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",s?(e.splice(l,0,["enter",c,t]),e.splice(s+1,0,["exit",e[i][1],t]),e[i][1].end={...e[s][1].end}):e[i][1]=c,e.push(["exit",c,t]),e}function r_(e,t,r){const i=this;let l;return s;function s(m){let b=i.events.length,E;for(;b--;)if(i.events[b][1].type!=="lineEnding"&&i.events[b][1].type!=="linePrefix"&&i.events[b][1].type!=="content"){E=i.events[b][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||E)?(e.enter("setextHeadingLine"),l=m,c(m)):r(m)}function c(m){return e.enter("setextHeadingLineSequence"),d(m)}function d(m){return m===l?(e.consume(m),d):(e.exit("setextHeadingLineSequence"),pt(m)?wt(e,p,"lineSuffix")(m):p(m))}function p(m){return m===null||Ye(m)?(e.exit("setextHeadingLine"),t(m)):r(m)}}const a_={tokenize:i_};function i_(e){const t=this,r=e.attempt(ts,i,e.attempt(this.parser.constructs.flowInitial,l,wt(e,e.attempt(this.parser.constructs.flow,l,e.attempt(cA,l)),"linePrefix")));return r;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function l(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const u_={resolveAll:v1()},l_=x1("string"),o_=x1("text");function x1(e){return{resolveAll:v1(e==="text"?s_:void 0),tokenize:t};function t(r){const i=this,l=this.parser.constructs[e],s=r.attempt(l,c,d);return c;function c(b){return m(b)?s(b):d(b)}function d(b){if(b===null){r.consume(b);return}return r.enter("data"),r.consume(b),p}function p(b){return m(b)?(r.exit("data"),s(b)):(r.consume(b),p)}function m(b){if(b===null)return!0;const E=l[b];let T=-1;if(E)for(;++T<E.length;){const y=E[T];if(!y.previous||y.previous.call(i,i.previous))return!0}return!1}}}function v1(e){return t;function t(r,i){let l=-1,s;for(;++l<=r.length;)s===void 0?r[l]&&r[l][1].type==="data"&&(s=l,l++):(!r[l]||r[l][1].type!=="data")&&(l!==s+2&&(r[s][1].end=r[l-1][1].end,r.splice(s+2,l-s-2),l=s+2),s=void 0);return e?e(r,i):r}}function s_(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const i=e[r-1][1],l=t.sliceStream(i);let s=l.length,c=-1,d=0,p;for(;s--;){const m=l[s];if(typeof m=="string"){for(c=m.length;m.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(m===-2)p=!0,d++;else if(m!==-1){s++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(d=0),d){const m={type:r===e.length||p||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?c:i.start._bufferIndex+c,_index:i.start._index+s,line:i.end.line,column:i.end.column-d,offset:i.end.offset-d},end:{...i.end}};i.end={...m.start},i.start.offset===i.end.offset?Object.assign(i,m):(e.splice(r,0,["enter",m,t],["exit",m,t]),r+=2)}r++}return e}const c_=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:mA},disable:{null:[]},document:{42:Bn,43:Bn,45:Bn,48:Bn,49:Bn,50:Bn,51:Bn,52:Bn,53:Bn,54:Bn,55:Bn,56:Bn,57:Bn,62:p1},flow:{35:SA,42:ns,45:[_1,ns],60:xA,61:_1,95:ns,96:E1,126:E1},flowInitial:{[-2]:Gf,[-1]:Gf,32:Gf},insideSpan:{null:[Vf,u_]},string:{38:g1,92:m1},text:{[-5]:Xf,[-4]:Xf,[-3]:Xf,33:jA,38:g1,42:Vf,60:[V6,kA],91:VA,92:[yA,m1],93:$f,95:Vf,96:aA}},Symbol.toStringTag,{value:"Module"}));function f_(e,t,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const l={},s=[];let c=[],d=[];const p={attempt:Y(k),check:Y(N),consume:q,enter:M,exit:P,interrupt:Y(N,{interrupt:!0})},m={code:null,containerState:{},defineSkip:x,events:[],now:R,parser:e,previous:null,sliceSerialize:T,sliceStream:y,write:E};let b=t.tokenize.call(m,p);return t.resolveAll&&s.push(t),m;function E(z){return c=or(c,z),U(),c[c.length-1]!==null?[]:(j(t,0),m.events=qf(s,m.events,m),m.events)}function T(z,$){return h_(y(z),$)}function y(z){return d_(c,z)}function R(){const{_bufferIndex:z,_index:$,line:Z,column:X,offset:te}=i;return{_bufferIndex:z,_index:$,line:Z,column:X,offset:te}}function x(z){l[z.line]=z.column,_()}function U(){let z;for(;i._index<c.length;){const $=c[i._index];if(typeof $=="string")for(z=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===z&&i._bufferIndex<$.length;)D($.charCodeAt(i._bufferIndex));else D($)}}function D(z){b=b(z)}function q(z){Ye(z)?(i.line++,i.column=1,i.offset+=z===-3?2:1,_()):z!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===c[i._index].length&&(i._bufferIndex=-1,i._index++)),m.previous=z}function M(z,$){const Z=$||{};return Z.type=z,Z.start=R(),m.events.push(["enter",Z,m]),d.push(Z),Z}function P(z){const $=d.pop();return $.end=R(),m.events.push(["exit",$,m]),$}function k(z,$){j(z,$.from)}function N(z,$){$.restore()}function Y(z,$){return Z;function Z(X,te,H){let Q,ie,me,C;return Array.isArray(X)?fe(X):"tokenize"in X?fe([X]):J(X);function J(Ee){return Ke;function Ke(Me){const lt=Me!==null&&Ee[Me],yt=Me!==null&&Ee.null,Re=[...Array.isArray(lt)?lt:lt?[lt]:[],...Array.isArray(yt)?yt:yt?[yt]:[]];return fe(Re)(Me)}}function fe(Ee){return Q=Ee,ie=0,Ee.length===0?H:O(Ee[ie])}function O(Ee){return Ke;function Ke(Me){return C=G(),me=Ee,Ee.partial||(m.currentConstruct=Ee),Ee.name&&m.parser.constructs.disable.null.includes(Ee.name)?Ne():Ee.tokenize.call($?Object.assign(Object.create(m),$):m,p,be,Ne)(Me)}}function be(Ee){return z(me,C),te}function Ne(Ee){return C.restore(),++ie<Q.length?O(Q[ie]):H}}}function j(z,$){z.resolveAll&&!s.includes(z)&&s.push(z),z.resolve&&Lr(m.events,$,m.events.length-$,z.resolve(m.events.slice($),m)),z.resolveTo&&(m.events=z.resolveTo(m.events,m))}function G(){const z=R(),$=m.previous,Z=m.currentConstruct,X=m.events.length,te=Array.from(d);return{from:X,restore:H};function H(){i=z,m.previous=$,m.currentConstruct=Z,m.events.length=X,d=te,_()}}function _(){i.line in l&&i.column<2&&(i.column=l[i.line],i.offset+=l[i.line]-1)}}function d_(e,t){const r=t.start._index,i=t.start._bufferIndex,l=t.end._index,s=t.end._bufferIndex;let c;if(r===l)c=[e[r].slice(i,s)];else{if(c=e.slice(r,l),i>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(i):c.shift()}s>0&&c.push(e[l].slice(0,s))}return c}function h_(e,t){let r=-1;const i=[];let l;for(;++r<e.length;){const s=e[r];let c;if(typeof s=="string")c=s;else switch(s){case-5:{c="\r";break}case-4:{c=`
|
|
57
|
+
*/var p1;function X6(){if(p1)return uo;p1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(i,o,s){var c=null;if(s!==void 0&&(c=""+s),o.key!==void 0&&(c=""+o.key),"key"in o){s={};for(var d in o)d!=="key"&&(s[d]=o[d])}else s=o;return o=s.ref,{$$typeof:e,type:i,key:c,ref:o!==void 0?o:null,props:s}}return uo.Fragment=t,uo.jsx=r,uo.jsxs=r,uo}var m1;function Q6(){return m1||(m1=1,Vf.exports=X6()),Vf.exports}var pe=Q6();const K6={};function W6(e,t){const r=K6,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return g1(e,i,o)}function g1(e,t,r){if(Z6(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return b1(e.children,t,r)}return Array.isArray(e)?b1(e,t,r):""}function b1(e,t,r){const i=[];let o=-1;for(;++o<e.length;)i[o]=g1(e[o],t,r);return i.join("")}function Z6(e){return!!(e&&typeof e=="object")}const E1=document.createElement("i");function Gf(e){const t="&"+e+";";E1.innerHTML=t;const r=E1.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function wr(e,t,r,i){const o=e.length;let s=0,c;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,r=r>0?r:0,i.length<1e4)c=Array.from(i),c.unshift(t,r),e.splice(...c);else for(r&&e.splice(t,r);s<i.length;)c=i.slice(s,s+1e4),c.unshift(t,0),e.splice(...c),s+=1e4,t+=1e4}function lr(e,t){return e.length>0?(wr(e,e.length,0,t),e):t}const y1={}.hasOwnProperty;function J6(e){const t={};let r=-1;for(;++r<e.length;)eA(t,e[r]);return t}function eA(e,t){let r;for(r in t){const o=(y1.call(e,r)?e[r]:void 0)||(e[r]={}),s=t[r];let c;if(s)for(c in s){y1.call(o,c)||(o[c]=[]);const d=s[c];tA(o[c],Array.isArray(d)?d:d?[d]:[])}}}function tA(e,t){let r=-1;const i=[];for(;++r<t.length;)(t[r].add==="after"?e:i).push(t[r]);wr(e,0,0,i)}function T1(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Yi(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Lr=Ea(/[A-Za-z]/),Qn=Ea(/[\dA-Za-z]/),nA=Ea(/[#-'*+\--9=?A-Z^-~]/);function $f(e){return e!==null&&(e<32||e===127)}const Xf=Ea(/\d/),rA=Ea(/[\dA-Fa-f]/),aA=Ea(/[!-/:-@[-`{-~]/);function Le(e){return e!==null&&e<-2}function Mn(e){return e!==null&&(e<0||e===32)}function pt(e){return e===-2||e===-1||e===32}const iA=Ea(new RegExp("\\p{P}|\\p{S}","u")),uA=Ea(/\s/);function Ea(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function ji(e){const t=[];let r=-1,i=0,o=0;for(;++r<e.length;){const s=e.charCodeAt(r);let c="";if(s===37&&Qn(e.charCodeAt(r+1))&&Qn(e.charCodeAt(r+2)))o=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(c=String.fromCharCode(s));else if(s>55295&&s<57344){const d=e.charCodeAt(r+1);s<56320&&d>56319&&d<57344?(c=String.fromCharCode(s,d),o=1):c="�"}else c=String.fromCharCode(s);c&&(t.push(e.slice(i,r),encodeURIComponent(c)),i=r+o+1,c=""),o&&(r+=o,o=0)}return t.join("")+e.slice(i)}function yt(e,t,r,i){const o=i?i-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(h){return pt(h)?(e.enter(r),d(h)):t(h)}function d(h){return pt(h)&&s++<o?(e.consume(h),d):(e.exit(r),t(h))}}const oA={tokenize:lA};function lA(e){const t=e.attempt(this.parser.constructs.contentInitial,i,o);let r;return t;function i(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),yt(e,t,"linePrefix")}function o(d){return e.enter("paragraph"),s(d)}function s(d){const h=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=h),r=h,c(d)}function c(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return Le(d)?(e.consume(d),e.exit("chunkText"),s):(e.consume(d),c)}}const sA={tokenize:cA},S1={tokenize:fA};function cA(e){const t=this,r=[];let i=0,o,s,c;return d;function d(L){if(i<r.length){const M=r[i];return t.containerState=M[1],e.attempt(M[0].continuation,h,p)(L)}return p(L)}function h(L){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&P();const M=t.events.length;let D=M,N;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){N=t.events[D][1].end;break}O(i);let z=M;for(;z<t.events.length;)t.events[z][1].end={...N},z++;return wr(t.events,D+1,0,t.events.slice(M)),t.events.length=z,p(L)}return d(L)}function p(L){if(i===r.length){if(!o)return T(L);if(o.currentConstruct&&o.currentConstruct.concrete)return v(L);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(S1,b,E)(L)}function b(L){return o&&P(),O(i),T(L)}function E(L){return t.parser.lazy[t.now().line]=i!==r.length,c=t.now().offset,v(L)}function T(L){return t.containerState={},e.attempt(S1,y,v)(L)}function y(L){return i++,r.push([t.currentConstruct,t.containerState]),T(L)}function v(L){if(L===null){o&&P(),O(0),e.consume(L);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:s}),x(L)}function x(L){if(L===null){B(e.exit("chunkFlow"),!0),O(0),e.consume(L);return}return Le(L)?(e.consume(L),B(e.exit("chunkFlow")),i=0,t.interrupt=void 0,d):(e.consume(L),x)}function B(L,M){const D=t.sliceStream(L);if(M&&D.push(null),L.previous=s,s&&(s.next=L),s=L,o.defineSkip(L.start),o.write(D),t.parser.lazy[L.start.line]){let N=o.events.length;for(;N--;)if(o.events[N][1].start.offset<c&&(!o.events[N][1].end||o.events[N][1].end.offset>c))return;const z=t.events.length;let q=z,V,_;for(;q--;)if(t.events[q][0]==="exit"&&t.events[q][1].type==="chunkFlow"){if(V){_=t.events[q][1].end;break}V=!0}for(O(i),N=z;N<t.events.length;)t.events[N][1].end={..._},N++;wr(t.events,q+1,0,t.events.slice(z)),t.events.length=N}}function O(L){let M=r.length;for(;M-- >L;){const D=r[M];t.containerState=D[1],D[0].exit.call(t,e)}r.length=L}function P(){o.write([null]),s=void 0,o=void 0,t.containerState._closeFlow=void 0}}function fA(e,t,r){return yt(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function C1(e){if(e===null||Mn(e)||uA(e))return 1;if(iA(e))return 2}function Qf(e,t,r){const i=[];let o=-1;for(;++o<e.length;){const s=e[o].resolveAll;s&&!i.includes(s)&&(t=s(t,r),i.push(s))}return t}const Kf={name:"attention",resolveAll:dA,tokenize:hA};function dA(e,t){let r=-1,i,o,s,c,d,h,p,b;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(i=r;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[i][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;h=e[i][1].end.offset-e[i][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const E={...e[i][1].end},T={...e[r][1].start};A1(E,-h),A1(T,h),c={type:h>1?"strongSequence":"emphasisSequence",start:E,end:{...e[i][1].end}},d={type:h>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:T},s={type:h>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[r][1].start}},o={type:h>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},e[i][1].end={...c.start},e[r][1].start={...d.end},p=[],e[i][1].end.offset-e[i][1].start.offset&&(p=lr(p,[["enter",e[i][1],t],["exit",e[i][1],t]])),p=lr(p,[["enter",o,t],["enter",c,t],["exit",c,t],["enter",s,t]]),p=lr(p,Qf(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),p=lr(p,[["exit",s,t],["enter",d,t],["exit",d,t],["exit",o,t]]),e[r][1].end.offset-e[r][1].start.offset?(b=2,p=lr(p,[["enter",e[r][1],t],["exit",e[r][1],t]])):b=0,wr(e,i-1,r-i+3,p),r=i+p.length-b-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function hA(e,t){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,o=C1(i);let s;return c;function c(h){return s=h,e.enter("attentionSequence"),d(h)}function d(h){if(h===s)return e.consume(h),d;const p=e.exit("attentionSequence"),b=C1(h),E=!b||b===2&&o||r.includes(h),T=!o||o===2&&b||r.includes(i);return p._open=!!(s===42?E:E&&(o||!T)),p._close=!!(s===42?T:T&&(b||!E)),t(h)}}function A1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const pA={name:"autolink",tokenize:mA};function mA(e,t,r){let i=0;return o;function o(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(y){return Lr(y)?(e.consume(y),c):y===64?r(y):p(y)}function c(y){return y===43||y===45||y===46||Qn(y)?(i=1,d(y)):p(y)}function d(y){return y===58?(e.consume(y),i=0,h):(y===43||y===45||y===46||Qn(y))&&i++<32?(e.consume(y),d):(i=0,p(y))}function h(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):y===null||y===32||y===60||$f(y)?r(y):(e.consume(y),h)}function p(y){return y===64?(e.consume(y),b):nA(y)?(e.consume(y),p):r(y)}function b(y){return Qn(y)?E(y):r(y)}function E(y){return y===46?(e.consume(y),i=0,b):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):T(y)}function T(y){if((y===45||Qn(y))&&i++<63){const v=y===45?T:E;return e.consume(y),v}return r(y)}}const us={partial:!0,tokenize:gA};function gA(e,t,r){return i;function i(s){return pt(s)?yt(e,o,"linePrefix")(s):o(s)}function o(s){return s===null||Le(s)?t(s):r(s)}}const x1={continuation:{tokenize:EA},exit:yA,name:"blockQuote",tokenize:bA};function bA(e,t,r){const i=this;return o;function o(c){if(c===62){const d=i.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),s}return r(c)}function s(c){return pt(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(c))}}function EA(e,t,r){const i=this;return o;function o(c){return pt(c)?yt(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):s(c)}function s(c){return e.attempt(x1,t,r)(c)}}function yA(e){e.exit("blockQuote")}const _1={name:"characterEscape",tokenize:TA};function TA(e,t,r){return i;function i(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),o}function o(s){return aA(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(s)}}const v1={name:"characterReference",tokenize:SA};function SA(e,t,r){const i=this;let o=0,s,c;return d;function d(E){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(E),e.exit("characterReferenceMarker"),h}function h(E){return E===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(E),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),s=31,c=Qn,b(E))}function p(E){return E===88||E===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(E),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,c=rA,b):(e.enter("characterReferenceValue"),s=7,c=Xf,b(E))}function b(E){if(E===59&&o){const T=e.exit("characterReferenceValue");return c===Qn&&!Gf(i.sliceSerialize(T))?r(E):(e.enter("characterReferenceMarker"),e.consume(E),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return c(E)&&o++<s?(e.consume(E),b):r(E)}}const R1={partial:!0,tokenize:AA},N1={concrete:!0,name:"codeFenced",tokenize:CA};function CA(e,t,r){const i=this,o={partial:!0,tokenize:D};let s=0,c=0,d;return h;function h(N){return p(N)}function p(N){const z=i.events[i.events.length-1];return s=z&&z[1].type==="linePrefix"?z[2].sliceSerialize(z[1],!0).length:0,d=N,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),b(N)}function b(N){return N===d?(c++,e.consume(N),b):c<3?r(N):(e.exit("codeFencedFenceSequence"),pt(N)?yt(e,E,"whitespace")(N):E(N))}function E(N){return N===null||Le(N)?(e.exit("codeFencedFence"),i.interrupt?t(N):e.check(R1,x,M)(N)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),T(N))}function T(N){return N===null||Le(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),E(N)):pt(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),yt(e,y,"whitespace")(N)):N===96&&N===d?r(N):(e.consume(N),T)}function y(N){return N===null||Le(N)?E(N):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(N))}function v(N){return N===null||Le(N)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),E(N)):N===96&&N===d?r(N):(e.consume(N),v)}function x(N){return e.attempt(o,M,B)(N)}function B(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),O}function O(N){return s>0&&pt(N)?yt(e,P,"linePrefix",s+1)(N):P(N)}function P(N){return N===null||Le(N)?e.check(R1,x,M)(N):(e.enter("codeFlowValue"),L(N))}function L(N){return N===null||Le(N)?(e.exit("codeFlowValue"),P(N)):(e.consume(N),L)}function M(N){return e.exit("codeFenced"),t(N)}function D(N,z,q){let V=0;return _;function _(te){return N.enter("lineEnding"),N.consume(te),N.exit("lineEnding"),j}function j(te){return N.enter("codeFencedFence"),pt(te)?yt(N,$,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(te):$(te)}function $(te){return te===d?(N.enter("codeFencedFenceSequence"),ee(te)):q(te)}function ee(te){return te===d?(V++,N.consume(te),ee):V>=c?(N.exit("codeFencedFenceSequence"),pt(te)?yt(N,X,"whitespace")(te):X(te)):q(te)}function X(te){return te===null||Le(te)?(N.exit("codeFencedFence"),z(te)):q(te)}}}function AA(e,t,r){const i=this;return o;function o(c){return c===null?r(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s)}function s(c){return i.parser.lazy[i.now().line]?r(c):t(c)}}const Wf={name:"codeIndented",tokenize:_A},xA={partial:!0,tokenize:vA};function _A(e,t,r){const i=this;return o;function o(p){return e.enter("codeIndented"),yt(e,s,"linePrefix",5)(p)}function s(p){const b=i.events[i.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?c(p):r(p)}function c(p){return p===null?h(p):Le(p)?e.attempt(xA,c,h)(p):(e.enter("codeFlowValue"),d(p))}function d(p){return p===null||Le(p)?(e.exit("codeFlowValue"),c(p)):(e.consume(p),d)}function h(p){return e.exit("codeIndented"),t(p)}}function vA(e,t,r){const i=this;return o;function o(c){return i.parser.lazy[i.now().line]?r(c):Le(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):yt(e,s,"linePrefix",5)(c)}function s(c){const d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):Le(c)?o(c):r(c)}}const RA={name:"codeText",previous:OA,resolve:NA,tokenize:kA};function NA(e){let t=e.length-4,r=3,i,o;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=r;++i<t;)if(e[i][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(i=r-1,t++;++i<=t;)o===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(o=i):(i===t||e[i][1].type==="lineEnding")&&(e[o][1].type="codeTextData",i!==o+2&&(e[o][1].end=e[i-1][1].end,e.splice(o+2,i-o-2),t-=i-o-2,i=o+2),o=void 0);return e}function OA(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function kA(e,t,r){let i=0,o,s;return c;function c(E){return e.enter("codeText"),e.enter("codeTextSequence"),d(E)}function d(E){return E===96?(e.consume(E),i++,d):(e.exit("codeTextSequence"),h(E))}function h(E){return E===null?r(E):E===32?(e.enter("space"),e.consume(E),e.exit("space"),h):E===96?(s=e.enter("codeTextSequence"),o=0,b(E)):Le(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),h):(e.enter("codeTextData"),p(E))}function p(E){return E===null||E===32||E===96||Le(E)?(e.exit("codeTextData"),h(E)):(e.consume(E),p)}function b(E){return E===96?(e.consume(E),o++,b):o===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(E)):(s.type="codeTextData",p(E))}}class IA{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const i=r??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,r,i){const o=r||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return i&&oo(this.left,i),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),oo(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),oo(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);oo(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);oo(this.left,r.reverse())}}}function oo(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function O1(e){const t={};let r=-1,i,o,s,c,d,h,p;const b=new IA(e);for(;++r<b.length;){for(;r in t;)r=t[r];if(i=b.get(r),r&&i[1].type==="chunkFlow"&&b.get(r-1)[1].type==="listItemPrefix"&&(h=i[1]._tokenizer.events,s=0,s<h.length&&h[s][1].type==="lineEndingBlank"&&(s+=2),s<h.length&&h[s][1].type==="content"))for(;++s<h.length&&h[s][1].type!=="content";)h[s][1].type==="chunkText"&&(h[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,DA(b,r)),r=t[r],p=!0);else if(i[1]._container){for(s=r,o=void 0;s--;)if(c=b.get(s),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(b.get(o)[1].type="lineEndingBlank"),c[1].type="lineEnding",o=s);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;o&&(i[1].end={...b.get(o)[1].start},d=b.slice(o,r),d.unshift(i),b.splice(o,r-o+1,d))}}return wr(e,0,Number.POSITIVE_INFINITY,b.slice(0)),!p}function DA(e,t){const r=e.get(t)[1],i=e.get(t)[2];let o=t-1;const s=[];let c=r._tokenizer;c||(c=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,h=[],p={};let b,E,T=-1,y=r,v=0,x=0;const B=[x];for(;y;){for(;e.get(++o)[1]!==y;);s.push(o),y._tokenizer||(b=i.sliceStream(y),y.next||b.push(null),E&&c.defineSkip(y.start),y._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(b),y._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),E=y,y=y.next}for(y=r;++T<d.length;)d[T][0]==="exit"&&d[T-1][0]==="enter"&&d[T][1].type===d[T-1][1].type&&d[T][1].start.line!==d[T][1].end.line&&(x=T+1,B.push(x),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(c.events=[],y?(y._tokenizer=void 0,y.previous=void 0):B.pop(),T=B.length;T--;){const O=d.slice(B[T],B[T+1]),P=s.pop();h.push([P,P+O.length-1]),e.splice(P,2,O)}for(h.reverse(),T=-1;++T<h.length;)p[v+h[T][0]]=v+h[T][1],v+=h[T][1]-h[T][0]-1;return p}const wA={resolve:MA,tokenize:BA},LA={partial:!0,tokenize:PA};function MA(e){return O1(e),e}function BA(e,t){let r;return i;function i(d){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),o(d)}function o(d){return d===null?s(d):Le(d)?e.check(LA,c,s)(d):(e.consume(d),o)}function s(d){return e.exit("chunkContent"),e.exit("content"),t(d)}function c(d){return e.consume(d),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,o}}function PA(e,t,r){const i=this;return o;function o(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),yt(e,s,"linePrefix")}function s(c){if(c===null||Le(c))return r(c);const d=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):e.interrupt(i.parser.constructs.flow,r,t)(c)}}function k1(e,t,r,i,o,s,c,d,h){const p=h||Number.POSITIVE_INFINITY;let b=0;return E;function E(O){return O===60?(e.enter(i),e.enter(o),e.enter(s),e.consume(O),e.exit(s),T):O===null||O===32||O===41||$f(O)?r(O):(e.enter(i),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),x(O))}function T(O){return O===62?(e.enter(s),e.consume(O),e.exit(s),e.exit(o),e.exit(i),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),y(O))}function y(O){return O===62?(e.exit("chunkString"),e.exit(d),T(O)):O===null||O===60||Le(O)?r(O):(e.consume(O),O===92?v:y)}function v(O){return O===60||O===62||O===92?(e.consume(O),y):y(O)}function x(O){return!b&&(O===null||O===41||Mn(O))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(i),t(O)):b<p&&O===40?(e.consume(O),b++,x):O===41?(e.consume(O),b--,x):O===null||O===32||O===40||$f(O)?r(O):(e.consume(O),O===92?B:x)}function B(O){return O===40||O===41||O===92?(e.consume(O),x):x(O)}}function I1(e,t,r,i,o,s){const c=this;let d=0,h;return p;function p(y){return e.enter(i),e.enter(o),e.consume(y),e.exit(o),e.enter(s),b}function b(y){return d>999||y===null||y===91||y===93&&!h||y===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?r(y):y===93?(e.exit(s),e.enter(o),e.consume(y),e.exit(o),e.exit(i),t):Le(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),b):(e.enter("chunkString",{contentType:"string"}),E(y))}function E(y){return y===null||y===91||y===93||Le(y)||d++>999?(e.exit("chunkString"),b(y)):(e.consume(y),h||(h=!pt(y)),y===92?T:E)}function T(y){return y===91||y===92||y===93?(e.consume(y),d++,E):E(y)}}function D1(e,t,r,i,o,s){let c;return d;function d(T){return T===34||T===39||T===40?(e.enter(i),e.enter(o),e.consume(T),e.exit(o),c=T===40?41:T,h):r(T)}function h(T){return T===c?(e.enter(o),e.consume(T),e.exit(o),e.exit(i),t):(e.enter(s),p(T))}function p(T){return T===c?(e.exit(s),h(c)):T===null?r(T):Le(T)?(e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),yt(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),b(T))}function b(T){return T===c||T===null||Le(T)?(e.exit("chunkString"),p(T)):(e.consume(T),T===92?E:b)}function E(T){return T===c||T===92?(e.consume(T),b):b(T)}}function lo(e,t){let r;return i;function i(o){return Le(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,i):pt(o)?yt(e,i,r?"linePrefix":"lineSuffix")(o):t(o)}}const UA={name:"definition",tokenize:FA},HA={partial:!0,tokenize:zA};function FA(e,t,r){const i=this;let o;return s;function s(y){return e.enter("definition"),c(y)}function c(y){return I1.call(i,e,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function d(y){return o=Yi(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),h):r(y)}function h(y){return Mn(y)?lo(e,p)(y):p(y)}function p(y){return k1(e,b,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function b(y){return e.attempt(HA,E,E)(y)}function E(y){return pt(y)?yt(e,T,"whitespace")(y):T(y)}function T(y){return y===null||Le(y)?(e.exit("definition"),i.parser.defined.push(o),t(y)):r(y)}}function zA(e,t,r){return i;function i(d){return Mn(d)?lo(e,o)(d):r(d)}function o(d){return D1(e,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function s(d){return pt(d)?yt(e,c,"whitespace")(d):c(d)}function c(d){return d===null||Le(d)?t(d):r(d)}}const YA={name:"hardBreakEscape",tokenize:jA};function jA(e,t,r){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),o}function o(s){return Le(s)?(e.exit("hardBreakEscape"),t(s)):r(s)}}const qA={name:"headingAtx",resolve:VA,tokenize:GA};function VA(e,t){let r=e.length-2,i=3,o,s;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(o={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},s={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},wr(e,i,r-i+1,[["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t]])),e}function GA(e,t,r){let i=0;return o;function o(b){return e.enter("atxHeading"),s(b)}function s(b){return e.enter("atxHeadingSequence"),c(b)}function c(b){return b===35&&i++<6?(e.consume(b),c):b===null||Mn(b)?(e.exit("atxHeadingSequence"),d(b)):r(b)}function d(b){return b===35?(e.enter("atxHeadingSequence"),h(b)):b===null||Le(b)?(e.exit("atxHeading"),t(b)):pt(b)?yt(e,d,"whitespace")(b):(e.enter("atxHeadingText"),p(b))}function h(b){return b===35?(e.consume(b),h):(e.exit("atxHeadingSequence"),d(b))}function p(b){return b===null||b===35||Mn(b)?(e.exit("atxHeadingText"),d(b)):(e.consume(b),p)}}const $A=["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"],w1=["pre","script","style","textarea"],XA={concrete:!0,name:"htmlFlow",resolveTo:WA,tokenize:ZA},QA={partial:!0,tokenize:ex},KA={partial:!0,tokenize:JA};function WA(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function ZA(e,t,r){const i=this;let o,s,c,d,h;return p;function p(k){return b(k)}function b(k){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(k),E}function E(k){return k===33?(e.consume(k),T):k===47?(e.consume(k),s=!0,x):k===63?(e.consume(k),o=3,i.interrupt?t:C):Lr(k)?(e.consume(k),c=String.fromCharCode(k),B):r(k)}function T(k){return k===45?(e.consume(k),o=2,y):k===91?(e.consume(k),o=5,d=0,v):Lr(k)?(e.consume(k),o=4,i.interrupt?t:C):r(k)}function y(k){return k===45?(e.consume(k),i.interrupt?t:C):r(k)}function v(k){const be="CDATA[";return k===be.charCodeAt(d++)?(e.consume(k),d===be.length?i.interrupt?t:$:v):r(k)}function x(k){return Lr(k)?(e.consume(k),c=String.fromCharCode(k),B):r(k)}function B(k){if(k===null||k===47||k===62||Mn(k)){const be=k===47,Re=c.toLowerCase();return!be&&!s&&w1.includes(Re)?(o=1,i.interrupt?t(k):$(k)):$A.includes(c.toLowerCase())?(o=6,be?(e.consume(k),O):i.interrupt?t(k):$(k)):(o=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(k):s?P(k):L(k))}return k===45||Qn(k)?(e.consume(k),c+=String.fromCharCode(k),B):r(k)}function O(k){return k===62?(e.consume(k),i.interrupt?t:$):r(k)}function P(k){return pt(k)?(e.consume(k),P):_(k)}function L(k){return k===47?(e.consume(k),_):k===58||k===95||Lr(k)?(e.consume(k),M):pt(k)?(e.consume(k),L):_(k)}function M(k){return k===45||k===46||k===58||k===95||Qn(k)?(e.consume(k),M):D(k)}function D(k){return k===61?(e.consume(k),N):pt(k)?(e.consume(k),D):L(k)}function N(k){return k===null||k===60||k===61||k===62||k===96?r(k):k===34||k===39?(e.consume(k),h=k,z):pt(k)?(e.consume(k),N):q(k)}function z(k){return k===h?(e.consume(k),h=null,V):k===null||Le(k)?r(k):(e.consume(k),z)}function q(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||Mn(k)?D(k):(e.consume(k),q)}function V(k){return k===47||k===62||pt(k)?L(k):r(k)}function _(k){return k===62?(e.consume(k),j):r(k)}function j(k){return k===null||Le(k)?$(k):pt(k)?(e.consume(k),j):r(k)}function $(k){return k===45&&o===2?(e.consume(k),F):k===60&&o===1?(e.consume(k),ie):k===62&&o===4?(e.consume(k),Z):k===63&&o===3?(e.consume(k),C):k===93&&o===5?(e.consume(k),he):Le(k)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(QA,fe,ee)(k)):k===null||Le(k)?(e.exit("htmlFlowData"),ee(k)):(e.consume(k),$)}function ee(k){return e.check(KA,X,fe)(k)}function X(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),te}function te(k){return k===null||Le(k)?ee(k):(e.enter("htmlFlowData"),$(k))}function F(k){return k===45?(e.consume(k),C):$(k)}function ie(k){return k===47?(e.consume(k),c="",Q):$(k)}function Q(k){if(k===62){const be=c.toLowerCase();return w1.includes(be)?(e.consume(k),Z):$(k)}return Lr(k)&&c.length<8?(e.consume(k),c+=String.fromCharCode(k),Q):$(k)}function he(k){return k===93?(e.consume(k),C):$(k)}function C(k){return k===62?(e.consume(k),Z):k===45&&o===2?(e.consume(k),C):$(k)}function Z(k){return k===null||Le(k)?(e.exit("htmlFlowData"),fe(k)):(e.consume(k),Z)}function fe(k){return e.exit("htmlFlow"),t(k)}}function JA(e,t,r){const i=this;return o;function o(c){return Le(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):r(c)}function s(c){return i.parser.lazy[i.now().line]?r(c):t(c)}}function ex(e,t,r){return i;function i(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(us,t,r)}}const tx={name:"htmlText",tokenize:nx};function nx(e,t,r){const i=this;let o,s,c;return d;function d(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),h}function h(C){return C===33?(e.consume(C),p):C===47?(e.consume(C),D):C===63?(e.consume(C),L):Lr(C)?(e.consume(C),q):r(C)}function p(C){return C===45?(e.consume(C),b):C===91?(e.consume(C),s=0,v):Lr(C)?(e.consume(C),P):r(C)}function b(C){return C===45?(e.consume(C),y):r(C)}function E(C){return C===null?r(C):C===45?(e.consume(C),T):Le(C)?(c=E,ie(C)):(e.consume(C),E)}function T(C){return C===45?(e.consume(C),y):E(C)}function y(C){return C===62?F(C):C===45?T(C):E(C)}function v(C){const Z="CDATA[";return C===Z.charCodeAt(s++)?(e.consume(C),s===Z.length?x:v):r(C)}function x(C){return C===null?r(C):C===93?(e.consume(C),B):Le(C)?(c=x,ie(C)):(e.consume(C),x)}function B(C){return C===93?(e.consume(C),O):x(C)}function O(C){return C===62?F(C):C===93?(e.consume(C),O):x(C)}function P(C){return C===null||C===62?F(C):Le(C)?(c=P,ie(C)):(e.consume(C),P)}function L(C){return C===null?r(C):C===63?(e.consume(C),M):Le(C)?(c=L,ie(C)):(e.consume(C),L)}function M(C){return C===62?F(C):L(C)}function D(C){return Lr(C)?(e.consume(C),N):r(C)}function N(C){return C===45||Qn(C)?(e.consume(C),N):z(C)}function z(C){return Le(C)?(c=z,ie(C)):pt(C)?(e.consume(C),z):F(C)}function q(C){return C===45||Qn(C)?(e.consume(C),q):C===47||C===62||Mn(C)?V(C):r(C)}function V(C){return C===47?(e.consume(C),F):C===58||C===95||Lr(C)?(e.consume(C),_):Le(C)?(c=V,ie(C)):pt(C)?(e.consume(C),V):F(C)}function _(C){return C===45||C===46||C===58||C===95||Qn(C)?(e.consume(C),_):j(C)}function j(C){return C===61?(e.consume(C),$):Le(C)?(c=j,ie(C)):pt(C)?(e.consume(C),j):V(C)}function $(C){return C===null||C===60||C===61||C===62||C===96?r(C):C===34||C===39?(e.consume(C),o=C,ee):Le(C)?(c=$,ie(C)):pt(C)?(e.consume(C),$):(e.consume(C),X)}function ee(C){return C===o?(e.consume(C),o=void 0,te):C===null?r(C):Le(C)?(c=ee,ie(C)):(e.consume(C),ee)}function X(C){return C===null||C===34||C===39||C===60||C===61||C===96?r(C):C===47||C===62||Mn(C)?V(C):(e.consume(C),X)}function te(C){return C===47||C===62||Mn(C)?V(C):r(C)}function F(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),t):r(C)}function ie(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),Q}function Q(C){return pt(C)?yt(e,he,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):he(C)}function he(C){return e.enter("htmlTextData"),c(C)}}const Zf={name:"labelEnd",resolveAll:ux,resolveTo:ox,tokenize:lx},rx={tokenize:sx},ax={tokenize:cx},ix={tokenize:fx};function ux(e){let t=-1;const r=[];for(;++t<e.length;){const i=e[t][1];if(r.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const o=i.type==="labelImage"?4:2;i.type="data",t+=o}}return e.length!==r.length&&wr(e,0,e.length,r),e}function ox(e,t){let r=e.length,i=0,o,s,c,d;for(;r--;)if(o=e[r][1],s){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[r][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(c){if(e[r][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(s=r,o.type!=="labelLink")){i=2;break}}else o.type==="labelEnd"&&(c=r);const h={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[s][1].start},end:{...e[c][1].end}},b={type:"labelText",start:{...e[s+i+2][1].end},end:{...e[c-2][1].start}};return d=[["enter",h,t],["enter",p,t]],d=lr(d,e.slice(s+1,s+i+3)),d=lr(d,[["enter",b,t]]),d=lr(d,Qf(t.parser.constructs.insideSpan.null,e.slice(s+i+4,c-3),t)),d=lr(d,[["exit",b,t],e[c-2],e[c-1],["exit",p,t]]),d=lr(d,e.slice(c+1)),d=lr(d,[["exit",h,t]]),wr(e,s,e.length,d),e}function lx(e,t,r){const i=this;let o=i.events.length,s,c;for(;o--;)if((i.events[o][1].type==="labelImage"||i.events[o][1].type==="labelLink")&&!i.events[o][1]._balanced){s=i.events[o][1];break}return d;function d(T){return s?s._inactive?E(T):(c=i.parser.defined.includes(Yi(i.sliceSerialize({start:s.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(T),e.exit("labelMarker"),e.exit("labelEnd"),h):r(T)}function h(T){return T===40?e.attempt(rx,b,c?b:E)(T):T===91?e.attempt(ax,b,c?p:E)(T):c?b(T):E(T)}function p(T){return e.attempt(ix,b,E)(T)}function b(T){return t(T)}function E(T){return s._balanced=!0,r(T)}}function sx(e,t,r){return i;function i(E){return e.enter("resource"),e.enter("resourceMarker"),e.consume(E),e.exit("resourceMarker"),o}function o(E){return Mn(E)?lo(e,s)(E):s(E)}function s(E){return E===41?b(E):k1(e,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(E)}function c(E){return Mn(E)?lo(e,h)(E):b(E)}function d(E){return r(E)}function h(E){return E===34||E===39||E===40?D1(e,p,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(E):b(E)}function p(E){return Mn(E)?lo(e,b)(E):b(E)}function b(E){return E===41?(e.enter("resourceMarker"),e.consume(E),e.exit("resourceMarker"),e.exit("resource"),t):r(E)}}function cx(e,t,r){const i=this;return o;function o(d){return I1.call(i,e,s,c,"reference","referenceMarker","referenceString")(d)}function s(d){return i.parser.defined.includes(Yi(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(d):r(d)}function c(d){return r(d)}}function fx(e,t,r){return i;function i(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),o}function o(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):r(s)}}const dx={name:"labelStartImage",resolveAll:Zf.resolveAll,tokenize:hx};function hx(e,t,r){const i=this;return o;function o(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),s}function s(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),c):r(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(d):t(d)}}const px={name:"labelStartLink",resolveAll:Zf.resolveAll,tokenize:mx};function mx(e,t,r){const i=this;return o;function o(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),s}function s(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(c):t(c)}}const Jf={name:"lineEnding",tokenize:gx};function gx(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),yt(e,t,"linePrefix")}}const os={name:"thematicBreak",tokenize:bx};function bx(e,t,r){let i=0,o;return s;function s(p){return e.enter("thematicBreak"),c(p)}function c(p){return o=p,d(p)}function d(p){return p===o?(e.enter("thematicBreakSequence"),h(p)):i>=3&&(p===null||Le(p))?(e.exit("thematicBreak"),t(p)):r(p)}function h(p){return p===o?(e.consume(p),i++,h):(e.exit("thematicBreakSequence"),pt(p)?yt(e,d,"whitespace")(p):d(p))}}const Bn={continuation:{tokenize:Sx},exit:Ax,name:"list",tokenize:Tx},Ex={partial:!0,tokenize:xx},yx={partial:!0,tokenize:Cx};function Tx(e,t,r){const i=this,o=i.events[i.events.length-1];let s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,c=0;return d;function d(y){const v=i.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!i.containerState.marker||y===i.containerState.marker:Xf(y)){if(i.containerState.type||(i.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(os,r,p)(y):p(y);if(!i.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(y)}return r(y)}function h(y){return Xf(y)&&++c<10?(e.consume(y),h):(!i.interrupt||c<2)&&(i.containerState.marker?y===i.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),p(y)):r(y)}function p(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||y,e.check(us,i.interrupt?r:b,e.attempt(Ex,T,E))}function b(y){return i.containerState.initialBlankLine=!0,s++,T(y)}function E(y){return pt(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),T):r(y)}function T(y){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function Sx(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(us,o,s);function o(d){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,yt(e,t,"listItemIndent",i.containerState.size+1)(d)}function s(d){return i.containerState.furtherBlankLines||!pt(d)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(d)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(yx,t,c)(d))}function c(d){return i.containerState._closeFlow=!0,i.interrupt=void 0,yt(e,e.attempt(Bn,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function Cx(e,t,r){const i=this;return yt(e,o,"listItemIndent",i.containerState.size+1);function o(s){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?t(s):r(s)}}function Ax(e){e.exit(this.containerState.type)}function xx(e,t,r){const i=this;return yt(e,o,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(s){const c=i.events[i.events.length-1];return!pt(s)&&c&&c[1].type==="listItemPrefixWhitespace"?t(s):r(s)}}const L1={name:"setextUnderline",resolveTo:_x,tokenize:vx};function _x(e,t){let r=e.length,i,o,s;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(o=r)}else e[r][1].type==="content"&&e.splice(r,1),!s&&e[r][1].type==="definition"&&(s=r);const c={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",s?(e.splice(o,0,["enter",c,t]),e.splice(s+1,0,["exit",e[i][1],t]),e[i][1].end={...e[s][1].end}):e[i][1]=c,e.push(["exit",c,t]),e}function vx(e,t,r){const i=this;let o;return s;function s(p){let b=i.events.length,E;for(;b--;)if(i.events[b][1].type!=="lineEnding"&&i.events[b][1].type!=="linePrefix"&&i.events[b][1].type!=="content"){E=i.events[b][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||E)?(e.enter("setextHeadingLine"),o=p,c(p)):r(p)}function c(p){return e.enter("setextHeadingLineSequence"),d(p)}function d(p){return p===o?(e.consume(p),d):(e.exit("setextHeadingLineSequence"),pt(p)?yt(e,h,"lineSuffix")(p):h(p))}function h(p){return p===null||Le(p)?(e.exit("setextHeadingLine"),t(p)):r(p)}}const Rx={tokenize:Nx};function Nx(e){const t=this,r=e.attempt(us,i,e.attempt(this.parser.constructs.flowInitial,o,yt(e,e.attempt(this.parser.constructs.flow,o,e.attempt(wA,o)),"linePrefix")));return r;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function o(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const Ox={resolveAll:B1()},kx=M1("string"),Ix=M1("text");function M1(e){return{resolveAll:B1(e==="text"?Dx:void 0),tokenize:t};function t(r){const i=this,o=this.parser.constructs[e],s=r.attempt(o,c,d);return c;function c(b){return p(b)?s(b):d(b)}function d(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"),s(b)):(r.consume(b),h)}function p(b){if(b===null)return!0;const E=o[b];let T=-1;if(E)for(;++T<E.length;){const y=E[T];if(!y.previous||y.previous.call(i,i.previous))return!0}return!1}}}function B1(e){return t;function t(r,i){let o=-1,s;for(;++o<=r.length;)s===void 0?r[o]&&r[o][1].type==="data"&&(s=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==s+2&&(r[s][1].end=r[o-1][1].end,r.splice(s+2,o-s-2),o=s+2),s=void 0);return e?e(r,i):r}}function Dx(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const i=e[r-1][1],o=t.sliceStream(i);let s=o.length,c=-1,d=0,h;for(;s--;){const p=o[s];if(typeof p=="string"){for(c=p.length;p.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(p===-2)h=!0,d++;else if(p!==-1){s++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(d=0),d){const p={type:r===e.length||h||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?c:i.start._bufferIndex+c,_index:i.start._index+s,line:i.end.line,column:i.end.column-d,offset:i.end.offset-d},end:{...i.end}};i.end={...p.start},i.start.offset===i.end.offset?Object.assign(i,p):(e.splice(r,0,["enter",p,t],["exit",p,t]),r+=2)}r++}return e}const wx=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:UA},disable:{null:[]},document:{42:Bn,43:Bn,45:Bn,48:Bn,49:Bn,50:Bn,51:Bn,52:Bn,53:Bn,54:Bn,55:Bn,56:Bn,57:Bn,62:x1},flow:{35:qA,42:os,45:[L1,os],60:XA,61:L1,95:os,96:N1,126:N1},flowInitial:{[-2]:Wf,[-1]:Wf,32:Wf},insideSpan:{null:[Kf,Ox]},string:{38:v1,92:_1},text:{[-5]:Jf,[-4]:Jf,[-3]:Jf,33:dx,38:v1,42:Kf,60:[pA,tx],91:px,92:[YA,_1],93:Zf,95:Kf,96:RA}},Symbol.toStringTag,{value:"Module"}));function Lx(e,t,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const o={},s=[];let c=[],d=[];const h={attempt:z(D),check:z(N),consume:P,enter:L,exit:M,interrupt:z(N,{interrupt:!0})},p={code:null,containerState:{},defineSkip:x,events:[],now:v,parser:e,previous:null,sliceSerialize:T,sliceStream:y,write:E};let b=t.tokenize.call(p,h);return t.resolveAll&&s.push(t),p;function E(j){return c=lr(c,j),B(),c[c.length-1]!==null?[]:(q(t,0),p.events=Qf(s,p.events,p),p.events)}function T(j,$){return Bx(y(j),$)}function y(j){return Mx(c,j)}function v(){const{_bufferIndex:j,_index:$,line:ee,column:X,offset:te}=i;return{_bufferIndex:j,_index:$,line:ee,column:X,offset:te}}function x(j){o[j.line]=j.column,_()}function B(){let j;for(;i._index<c.length;){const $=c[i._index];if(typeof $=="string")for(j=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===j&&i._bufferIndex<$.length;)O($.charCodeAt(i._bufferIndex));else O($)}}function O(j){b=b(j)}function P(j){Le(j)?(i.line++,i.column=1,i.offset+=j===-3?2:1,_()):j!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===c[i._index].length&&(i._bufferIndex=-1,i._index++)),p.previous=j}function L(j,$){const ee=$||{};return ee.type=j,ee.start=v(),p.events.push(["enter",ee,p]),d.push(ee),ee}function M(j){const $=d.pop();return $.end=v(),p.events.push(["exit",$,p]),$}function D(j,$){q(j,$.from)}function N(j,$){$.restore()}function z(j,$){return ee;function ee(X,te,F){let ie,Q,he,C;return Array.isArray(X)?fe(X):"tokenize"in X?fe([X]):Z(X);function Z(Te){return Xe;function Xe(Be){const ut=Be!==null&&Te[Be],Ct=Be!==null&&Te.null,gt=[...Array.isArray(ut)?ut:ut?[ut]:[],...Array.isArray(Ct)?Ct:Ct?[Ct]:[]];return fe(gt)(Be)}}function fe(Te){return ie=Te,Q=0,Te.length===0?F:k(Te[Q])}function k(Te){return Xe;function Xe(Be){return C=V(),he=Te,Te.partial||(p.currentConstruct=Te),Te.name&&p.parser.constructs.disable.null.includes(Te.name)?Re():Te.tokenize.call($?Object.assign(Object.create(p),$):p,h,be,Re)(Be)}}function be(Te){return j(he,C),te}function Re(Te){return C.restore(),++Q<ie.length?k(ie[Q]):F}}}function q(j,$){j.resolveAll&&!s.includes(j)&&s.push(j),j.resolve&&wr(p.events,$,p.events.length-$,j.resolve(p.events.slice($),p)),j.resolveTo&&(p.events=j.resolveTo(p.events,p))}function V(){const j=v(),$=p.previous,ee=p.currentConstruct,X=p.events.length,te=Array.from(d);return{from:X,restore:F};function F(){i=j,p.previous=$,p.currentConstruct=ee,p.events.length=X,d=te,_()}}function _(){i.line in o&&i.column<2&&(i.column=o[i.line],i.offset+=o[i.line]-1)}}function Mx(e,t){const r=t.start._index,i=t.start._bufferIndex,o=t.end._index,s=t.end._bufferIndex;let c;if(r===o)c=[e[r].slice(i,s)];else{if(c=e.slice(r,o),i>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(i):c.shift()}s>0&&c.push(e[o].slice(0,s))}return c}function Bx(e,t){let r=-1;const i=[];let o;for(;++r<e.length;){const s=e[r];let c;if(typeof s=="string")c=s;else switch(s){case-5:{c="\r";break}case-4:{c=`
|
|
58
58
|
`;break}case-3:{c=`\r
|
|
59
|
-
`;break}case-2:{c=t?" ":" ";break}case-1:{if(!t&&l)continue;c=" ";break}default:c=String.fromCharCode(s)}l=s===-2,i.push(c)}return i.join("")}function p_(e){const i={constructs:I6([c_,...(e||{}).extensions||[]]),content:l(U6),defined:[],document:l(F6),flow:l(a_),lazy:{},string:l(l_),text:l(o_)};return i;function l(s){return c;function c(d){return f_(i,s,d)}}}function m_(e){for(;!y1(e););return e}const R1=/[\0\t\n\r]/g;function g_(){let e=1,t="",r=!0,i;return l;function l(s,c,d){const p=[];let m,b,E,T,y;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(c||void 0).decode(s)),E=0,t="",r&&(s.charCodeAt(0)===65279&&E++,r=void 0);E<s.length;){if(R1.lastIndex=E,m=R1.exec(s),T=m&&m.index!==void 0?m.index:s.length,y=s.charCodeAt(T),!m){t=s.slice(E);break}if(y===10&&E===T&&i)p.push(-3),i=void 0;else switch(i&&(p.push(-5),i=void 0),E<T&&(p.push(s.slice(E,T)),e+=T-E),y){case 0:{p.push(65533),e++;break}case 9:{for(b=Math.ceil(e/4)*4,p.push(-2);e++<b;)p.push(-1);break}case 10:{p.push(-4),e=1;break}default:i=!0,e=1}E=T+1}return d&&(i&&p.push(-5),t&&p.push(t),p.push(null)),p}}const b_=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function E_(e){return e.replace(b_,y_)}function y_(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const l=r.charCodeAt(1),s=l===120||l===88;return c1(r.slice(s?2:1),s?16:10)}return zf(r)||e}const N1={}.hasOwnProperty;function T_(e,t,r){return typeof t!="string"&&(r=t,t=void 0),S_(r)(m_(p_(r).document().write(g_()(e,t,!0))))}function S_(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(je),autolinkProtocol:G,autolinkEmail:G,atxHeading:s(Fe),blockQuote:s(yt),characterEscape:G,characterReference:G,codeFenced:s(Re),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(Re,c),codeText:s(We,c),codeTextData:G,data:G,codeFlowValue:G,definition:s(Oe),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(Se),hardBreakEscape:s(Ve),hardBreakTrailing:s(Ve),htmlFlow:s(ke,c),htmlFlowData:G,htmlText:s(ke,c),htmlTextData:G,image:s(Le),label:c,link:s(je),listItem:s(Et),listItemValue:T,listOrdered:s(nt,E),listUnordered:s(nt),paragraph:s(Ie),reference:O,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(Fe),strong:s(nn),thematicBreak:s(Tt)},exit:{atxHeading:p(),atxHeadingSequence:k,autolink:p(),autolinkEmail:lt,autolinkProtocol:Me,blockQuote:p(),characterEscapeValue:_,characterReferenceMarkerHexadecimal:Ne,characterReferenceMarkerNumeric:Ne,characterReferenceValue:Ee,characterReference:Ke,codeFenced:p(U),codeFencedFence:x,codeFencedFenceInfo:y,codeFencedFenceMeta:R,codeFlowValue:_,codeIndented:p(D),codeText:p(te),codeTextData:_,data:_,definition:p(),definitionDestinationString:P,definitionLabelString:q,definitionTitleString:M,emphasis:p(),hardBreakEscape:p($),hardBreakTrailing:p($),htmlFlow:p(Z),htmlFlowData:_,htmlText:p(X),htmlTextData:_,image:p(Q),label:me,labelText:ie,lineEnding:z,link:p(H),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:be,resourceDestinationString:C,resourceTitleString:J,resource:fe,setextHeading:p(j),setextHeadingLineSequence:Y,setextHeadingText:N,strong:p(),thematicBreak:p()}};O1(t,(e||{}).mdastExtensions||[]);const r={};return i;function i(ae){let de={type:"root",children:[]};const Ce={stack:[de],tokenStack:[],config:t,enter:d,exit:m,buffer:c,resume:b,data:r},Ae=[];let we=-1;for(;++we<ae.length;)if(ae[we][1].type==="listOrdered"||ae[we][1].type==="listUnordered")if(ae[we][0]==="enter")Ae.push(we);else{const Ge=Ae.pop();we=l(ae,Ge,we)}for(we=-1;++we<ae.length;){const Ge=t[ae[we][0]];N1.call(Ge,ae[we][1].type)&&Ge[ae[we][1].type].call(Object.assign({sliceSerialize:ae[we][2].sliceSerialize},Ce),ae[we][1])}if(Ce.tokenStack.length>0){const Ge=Ce.tokenStack[Ce.tokenStack.length-1];(Ge[1]||I1).call(Ce,void 0,Ge[0])}for(de.position={start:ya(ae.length>0?ae[0][1].start:{line:1,column:1,offset:0}),end:ya(ae.length>0?ae[ae.length-2][1].end:{line:1,column:1,offset:0})},we=-1;++we<t.transforms.length;)de=t.transforms[we](de)||de;return de}function l(ae,de,Ce){let Ae=de-1,we=-1,Ge=!1,kt,St,Zn,fn;for(;++Ae<=Ce;){const rn=ae[Ae];switch(rn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{rn[0]==="enter"?we++:we--,fn=void 0;break}case"lineEndingBlank":{rn[0]==="enter"&&(kt&&!fn&&!we&&!Zn&&(Zn=Ae),fn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:fn=void 0}if(!we&&rn[0]==="enter"&&rn[1].type==="listItemPrefix"||we===-1&&rn[0]==="exit"&&(rn[1].type==="listUnordered"||rn[1].type==="listOrdered")){if(kt){let Hn=Ae;for(St=void 0;Hn--;){const Fn=ae[Hn];if(Fn[1].type==="lineEnding"||Fn[1].type==="lineEndingBlank"){if(Fn[0]==="exit")continue;St&&(ae[St][1].type="lineEndingBlank",Ge=!0),Fn[1].type="lineEnding",St=Hn}else if(!(Fn[1].type==="linePrefix"||Fn[1].type==="blockQuotePrefix"||Fn[1].type==="blockQuotePrefixWhitespace"||Fn[1].type==="blockQuoteMarker"||Fn[1].type==="listItemIndent"))break}Zn&&(!St||Zn<St)&&(kt._spread=!0),kt.end=Object.assign({},St?ae[St][1].start:rn[1].end),ae.splice(St||Ae,0,["exit",kt,rn[2]]),Ae++,Ce++}if(rn[1].type==="listItemPrefix"){const Hn={type:"listItem",_spread:!1,start:Object.assign({},rn[1].start),end:void 0};kt=Hn,ae.splice(Ae,0,["enter",Hn,rn[2]]),Ae++,Ce++,Zn=void 0,fn=!0}}}return ae[de][1]._spread=Ge,Ce}function s(ae,de){return Ce;function Ce(Ae){d.call(this,ae(Ae),Ae),de&&de.call(this,Ae)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(ae,de,Ce){this.stack[this.stack.length-1].children.push(ae),this.stack.push(ae),this.tokenStack.push([de,Ce||void 0]),ae.position={start:ya(de.start),end:void 0}}function p(ae){return de;function de(Ce){ae&&ae.call(this,Ce),m.call(this,Ce)}}function m(ae,de){const Ce=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==ae.type&&(de?de.call(this,ae,Ae[0]):(Ae[1]||I1).call(this,ae,Ae[0]));else throw new Error("Cannot close `"+ae.type+"` ("+nl({start:ae.start,end:ae.end})+"): it’s not open");Ce.position.end=ya(ae.end)}function b(){return N6(this.stack.pop())}function E(){this.data.expectingFirstListItemValue=!0}function T(ae){if(this.data.expectingFirstListItemValue){const de=this.stack[this.stack.length-2];de.start=Number.parseInt(this.sliceSerialize(ae),10),this.data.expectingFirstListItemValue=void 0}}function y(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.lang=ae}function R(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.meta=ae}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function U(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.value=ae.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function D(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.value=ae.replace(/(\r?\n|\r)$/g,"")}function q(ae){const de=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=de,Ce.identifier=Fi(this.sliceSerialize(ae)).toLowerCase()}function M(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.title=ae}function P(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.url=ae}function k(ae){const de=this.stack[this.stack.length-1];if(!de.depth){const Ce=this.sliceSerialize(ae).length;de.depth=Ce}}function N(){this.data.setextHeadingSlurpLineEnding=!0}function Y(ae){const de=this.stack[this.stack.length-1];de.depth=this.sliceSerialize(ae).codePointAt(0)===61?1:2}function j(){this.data.setextHeadingSlurpLineEnding=void 0}function G(ae){const Ce=this.stack[this.stack.length-1].children;let Ae=Ce[Ce.length-1];(!Ae||Ae.type!=="text")&&(Ae=Pt(),Ae.position={start:ya(ae.start),end:void 0},Ce.push(Ae)),this.stack.push(Ae)}function _(ae){const de=this.stack.pop();de.value+=this.sliceSerialize(ae),de.position.end=ya(ae.end)}function z(ae){const de=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ce=de.children[de.children.length-1];Ce.position.end=ya(ae.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(de.type)&&(G.call(this,ae),_.call(this,ae))}function $(){this.data.atHardBreak=!0}function Z(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.value=ae}function X(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.value=ae}function te(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.value=ae}function H(){const ae=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";ae.type+="Reference",ae.referenceType=de,delete ae.url,delete ae.title}else delete ae.identifier,delete ae.label;this.data.referenceType=void 0}function Q(){const ae=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";ae.type+="Reference",ae.referenceType=de,delete ae.url,delete ae.title}else delete ae.identifier,delete ae.label;this.data.referenceType=void 0}function ie(ae){const de=this.sliceSerialize(ae),Ce=this.stack[this.stack.length-2];Ce.label=E_(de),Ce.identifier=Fi(de).toLowerCase()}function me(){const ae=this.stack[this.stack.length-1],de=this.resume(),Ce=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ce.type==="link"){const Ae=ae.children;Ce.children=Ae}else Ce.alt=de}function C(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.url=ae}function J(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.title=ae}function fe(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function be(ae){const de=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=de,Ce.identifier=Fi(this.sliceSerialize(ae)).toLowerCase(),this.data.referenceType="full"}function Ne(ae){this.data.characterReferenceType=ae.type}function Ee(ae){const de=this.sliceSerialize(ae),Ce=this.data.characterReferenceType;let Ae;Ce?(Ae=c1(de,Ce==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=zf(de);const we=this.stack[this.stack.length-1];we.value+=Ae}function Ke(ae){const de=this.stack.pop();de.position.end=ya(ae.end)}function Me(ae){_.call(this,ae);const de=this.stack[this.stack.length-1];de.url=this.sliceSerialize(ae)}function lt(ae){_.call(this,ae);const de=this.stack[this.stack.length-1];de.url="mailto:"+this.sliceSerialize(ae)}function yt(){return{type:"blockquote",children:[]}}function Re(){return{type:"code",lang:null,meta:null,value:""}}function We(){return{type:"inlineCode",value:""}}function Oe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Se(){return{type:"emphasis",children:[]}}function Fe(){return{type:"heading",depth:0,children:[]}}function Ve(){return{type:"break"}}function ke(){return{type:"html",value:""}}function Le(){return{type:"image",title:null,url:"",alt:null}}function je(){return{type:"link",title:null,url:"",children:[]}}function nt(ae){return{type:"list",ordered:ae.type==="listOrdered",start:null,spread:ae._spread,children:[]}}function Et(ae){return{type:"listItem",spread:ae._spread,checked:null,children:[]}}function Ie(){return{type:"paragraph",children:[]}}function nn(){return{type:"strong",children:[]}}function Pt(){return{type:"text",value:""}}function Tt(){return{type:"thematicBreak"}}}function ya(e){return{line:e.line,column:e.column,offset:e.offset}}function O1(e,t){let r=-1;for(;++r<t.length;){const i=t[r];Array.isArray(i)?O1(e,i):C_(e,i)}}function C_(e,t){let r;for(r in t)if(N1.call(t,r))switch(r){case"canContainEols":{const i=t[r];i&&e[r].push(...i);break}case"transforms":{const i=t[r];i&&e[r].push(...i);break}case"enter":case"exit":{const i=t[r];i&&Object.assign(e[r],i);break}}}function I1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+nl({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+nl({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+nl({start:t.start,end:t.end})+") is still open")}function A_(e){const t=this;t.parser=r;function r(i){return T_(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function __(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function x_(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
60
|
-
`}]}function
|
|
61
|
-
`:"",i={};t.lang&&(i.className=["language-"+t.lang]);let
|
|
62
|
-
`}),b.type==="element"&&b.tagName==="p"&&!
|
|
63
|
-
`});const
|
|
59
|
+
`;break}case-2:{c=t?" ":" ";break}case-1:{if(!t&&o)continue;c=" ";break}default:c=String.fromCharCode(s)}o=s===-2,i.push(c)}return i.join("")}function Px(e){const i={constructs:J6([wx,...(e||{}).extensions||[]]),content:o(oA),defined:[],document:o(sA),flow:o(Rx),lazy:{},string:o(kx),text:o(Ix)};return i;function o(s){return c;function c(d){return Lx(i,s,d)}}}function Ux(e){for(;!O1(e););return e}const P1=/[\0\t\n\r]/g;function Hx(){let e=1,t="",r=!0,i;return o;function o(s,c,d){const h=[];let p,b,E,T,y;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(c||void 0).decode(s)),E=0,t="",r&&(s.charCodeAt(0)===65279&&E++,r=void 0);E<s.length;){if(P1.lastIndex=E,p=P1.exec(s),T=p&&p.index!==void 0?p.index:s.length,y=s.charCodeAt(T),!p){t=s.slice(E);break}if(y===10&&E===T&&i)h.push(-3),i=void 0;else switch(i&&(h.push(-5),i=void 0),E<T&&(h.push(s.slice(E,T)),e+=T-E),y){case 0:{h.push(65533),e++;break}case 9:{for(b=Math.ceil(e/4)*4,h.push(-2);e++<b;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:i=!0,e=1}E=T+1}return d&&(i&&h.push(-5),t&&h.push(t),h.push(null)),h}}const Fx=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function zx(e){return e.replace(Fx,Yx)}function Yx(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const o=r.charCodeAt(1),s=o===120||o===88;return T1(r.slice(s?2:1),s?16:10)}return Gf(r)||e}const U1={}.hasOwnProperty;function jx(e,t,r){return typeof t!="string"&&(r=t,t=void 0),qx(r)(Ux(Px(r).document().write(Hx()(e,t,!0))))}function qx(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(qe),autolinkProtocol:V,autolinkEmail:V,atxHeading:s(we),blockQuote:s(Ct),characterEscape:V,characterReference:V,codeFenced:s(gt),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(gt,c),codeText:s(Ne,c),codeTextData:V,data:V,codeFlowValue:V,definition:s(Oe),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(Ce),hardBreakEscape:s(ke),hardBreakTrailing:s(ke),htmlFlow:s(Me,c),htmlFlowData:V,htmlText:s(Me,c),htmlTextData:V,image:s(Fe),label:c,link:s(qe),listItem:s(ct),listItemValue:T,listOrdered:s($e,E),listUnordered:s($e),paragraph:s(Ie),reference:k,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(we),strong:s(un),thematicBreak:s(Bt)},exit:{atxHeading:h(),atxHeadingSequence:D,autolink:h(),autolinkEmail:ut,autolinkProtocol:Be,blockQuote:h(),characterEscapeValue:_,characterReferenceMarkerHexadecimal:Re,characterReferenceMarkerNumeric:Re,characterReferenceValue:Te,characterReference:Xe,codeFenced:h(B),codeFencedFence:x,codeFencedFenceInfo:y,codeFencedFenceMeta:v,codeFlowValue:_,codeIndented:h(O),codeText:h(te),codeTextData:_,data:_,definition:h(),definitionDestinationString:M,definitionLabelString:P,definitionTitleString:L,emphasis:h(),hardBreakEscape:h($),hardBreakTrailing:h($),htmlFlow:h(ee),htmlFlowData:_,htmlText:h(X),htmlTextData:_,image:h(ie),label:he,labelText:Q,lineEnding:j,link:h(F),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:be,resourceDestinationString:C,resourceTitleString:Z,resource:fe,setextHeading:h(q),setextHeadingLineSequence:z,setextHeadingText:N,strong:h(),thematicBreak:h()}};H1(t,(e||{}).mdastExtensions||[]);const r={};return i;function i(ae){let de={type:"root",children:[]};const Se={stack:[de],tokenStack:[],config:t,enter:d,exit:p,buffer:c,resume:b,data:r},Ae=[];let Pe=-1;for(;++Pe<ae.length;)if(ae[Pe][1].type==="listOrdered"||ae[Pe][1].type==="listUnordered")if(ae[Pe][0]==="enter")Ae.push(Pe);else{const Ve=Ae.pop();Pe=o(ae,Ve,Pe)}for(Pe=-1;++Pe<ae.length;){const Ve=t[ae[Pe][0]];U1.call(Ve,ae[Pe][1].type)&&Ve[ae[Pe][1].type].call(Object.assign({sliceSerialize:ae[Pe][2].sliceSerialize},Se),ae[Pe][1])}if(Se.tokenStack.length>0){const Ve=Se.tokenStack[Se.tokenStack.length-1];(Ve[1]||F1).call(Se,void 0,Ve[0])}for(de.position={start:ya(ae.length>0?ae[0][1].start:{line:1,column:1,offset:0}),end:ya(ae.length>0?ae[ae.length-2][1].end:{line:1,column:1,offset:0})},Pe=-1;++Pe<t.transforms.length;)de=t.transforms[Pe](de)||de;return de}function o(ae,de,Se){let Ae=de-1,Pe=-1,Ve=!1,Tt,At,Zn,fn;for(;++Ae<=Se;){const nn=ae[Ae];switch(nn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{nn[0]==="enter"?Pe++:Pe--,fn=void 0;break}case"lineEndingBlank":{nn[0]==="enter"&&(Tt&&!fn&&!Pe&&!Zn&&(Zn=Ae),fn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:fn=void 0}if(!Pe&&nn[0]==="enter"&&nn[1].type==="listItemPrefix"||Pe===-1&&nn[0]==="exit"&&(nn[1].type==="listUnordered"||nn[1].type==="listOrdered")){if(Tt){let Hn=Ae;for(At=void 0;Hn--;){const Fn=ae[Hn];if(Fn[1].type==="lineEnding"||Fn[1].type==="lineEndingBlank"){if(Fn[0]==="exit")continue;At&&(ae[At][1].type="lineEndingBlank",Ve=!0),Fn[1].type="lineEnding",At=Hn}else if(!(Fn[1].type==="linePrefix"||Fn[1].type==="blockQuotePrefix"||Fn[1].type==="blockQuotePrefixWhitespace"||Fn[1].type==="blockQuoteMarker"||Fn[1].type==="listItemIndent"))break}Zn&&(!At||Zn<At)&&(Tt._spread=!0),Tt.end=Object.assign({},At?ae[At][1].start:nn[1].end),ae.splice(At||Ae,0,["exit",Tt,nn[2]]),Ae++,Se++}if(nn[1].type==="listItemPrefix"){const Hn={type:"listItem",_spread:!1,start:Object.assign({},nn[1].start),end:void 0};Tt=Hn,ae.splice(Ae,0,["enter",Hn,nn[2]]),Ae++,Se++,Zn=void 0,fn=!0}}}return ae[de][1]._spread=Ve,Se}function s(ae,de){return Se;function Se(Ae){d.call(this,ae(Ae),Ae),de&&de.call(this,Ae)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(ae,de,Se){this.stack[this.stack.length-1].children.push(ae),this.stack.push(ae),this.tokenStack.push([de,Se||void 0]),ae.position={start:ya(de.start),end:void 0}}function h(ae){return de;function de(Se){ae&&ae.call(this,Se),p.call(this,Se)}}function p(ae,de){const Se=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==ae.type&&(de?de.call(this,ae,Ae[0]):(Ae[1]||F1).call(this,ae,Ae[0]));else throw new Error("Cannot close `"+ae.type+"` ("+ao({start:ae.start,end:ae.end})+"): it’s not open");Se.position.end=ya(ae.end)}function b(){return W6(this.stack.pop())}function E(){this.data.expectingFirstListItemValue=!0}function T(ae){if(this.data.expectingFirstListItemValue){const de=this.stack[this.stack.length-2];de.start=Number.parseInt(this.sliceSerialize(ae),10),this.data.expectingFirstListItemValue=void 0}}function y(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.lang=ae}function v(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.meta=ae}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function B(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.value=ae.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function O(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.value=ae.replace(/(\r?\n|\r)$/g,"")}function P(ae){const de=this.resume(),Se=this.stack[this.stack.length-1];Se.label=de,Se.identifier=Yi(this.sliceSerialize(ae)).toLowerCase()}function L(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.title=ae}function M(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.url=ae}function D(ae){const de=this.stack[this.stack.length-1];if(!de.depth){const Se=this.sliceSerialize(ae).length;de.depth=Se}}function N(){this.data.setextHeadingSlurpLineEnding=!0}function z(ae){const de=this.stack[this.stack.length-1];de.depth=this.sliceSerialize(ae).codePointAt(0)===61?1:2}function q(){this.data.setextHeadingSlurpLineEnding=void 0}function V(ae){const Se=this.stack[this.stack.length-1].children;let Ae=Se[Se.length-1];(!Ae||Ae.type!=="text")&&(Ae=Ft(),Ae.position={start:ya(ae.start),end:void 0},Se.push(Ae)),this.stack.push(Ae)}function _(ae){const de=this.stack.pop();de.value+=this.sliceSerialize(ae),de.position.end=ya(ae.end)}function j(ae){const de=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Se=de.children[de.children.length-1];Se.position.end=ya(ae.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(de.type)&&(V.call(this,ae),_.call(this,ae))}function $(){this.data.atHardBreak=!0}function ee(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.value=ae}function X(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.value=ae}function te(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.value=ae}function F(){const ae=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";ae.type+="Reference",ae.referenceType=de,delete ae.url,delete ae.title}else delete ae.identifier,delete ae.label;this.data.referenceType=void 0}function ie(){const ae=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";ae.type+="Reference",ae.referenceType=de,delete ae.url,delete ae.title}else delete ae.identifier,delete ae.label;this.data.referenceType=void 0}function Q(ae){const de=this.sliceSerialize(ae),Se=this.stack[this.stack.length-2];Se.label=zx(de),Se.identifier=Yi(de).toLowerCase()}function he(){const ae=this.stack[this.stack.length-1],de=this.resume(),Se=this.stack[this.stack.length-1];if(this.data.inReference=!0,Se.type==="link"){const Ae=ae.children;Se.children=Ae}else Se.alt=de}function C(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.url=ae}function Z(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.title=ae}function fe(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function be(ae){const de=this.resume(),Se=this.stack[this.stack.length-1];Se.label=de,Se.identifier=Yi(this.sliceSerialize(ae)).toLowerCase(),this.data.referenceType="full"}function Re(ae){this.data.characterReferenceType=ae.type}function Te(ae){const de=this.sliceSerialize(ae),Se=this.data.characterReferenceType;let Ae;Se?(Ae=T1(de,Se==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=Gf(de);const Pe=this.stack[this.stack.length-1];Pe.value+=Ae}function Xe(ae){const de=this.stack.pop();de.position.end=ya(ae.end)}function Be(ae){_.call(this,ae);const de=this.stack[this.stack.length-1];de.url=this.sliceSerialize(ae)}function ut(ae){_.call(this,ae);const de=this.stack[this.stack.length-1];de.url="mailto:"+this.sliceSerialize(ae)}function Ct(){return{type:"blockquote",children:[]}}function gt(){return{type:"code",lang:null,meta:null,value:""}}function Ne(){return{type:"inlineCode",value:""}}function Oe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ce(){return{type:"emphasis",children:[]}}function we(){return{type:"heading",depth:0,children:[]}}function ke(){return{type:"break"}}function Me(){return{type:"html",value:""}}function Fe(){return{type:"image",title:null,url:"",alt:null}}function qe(){return{type:"link",title:null,url:"",children:[]}}function $e(ae){return{type:"list",ordered:ae.type==="listOrdered",start:null,spread:ae._spread,children:[]}}function ct(ae){return{type:"listItem",spread:ae._spread,checked:null,children:[]}}function Ie(){return{type:"paragraph",children:[]}}function un(){return{type:"strong",children:[]}}function Ft(){return{type:"text",value:""}}function Bt(){return{type:"thematicBreak"}}}function ya(e){return{line:e.line,column:e.column,offset:e.offset}}function H1(e,t){let r=-1;for(;++r<t.length;){const i=t[r];Array.isArray(i)?H1(e,i):Vx(e,i)}}function Vx(e,t){let r;for(r in t)if(U1.call(t,r))switch(r){case"canContainEols":{const i=t[r];i&&e[r].push(...i);break}case"transforms":{const i=t[r];i&&e[r].push(...i);break}case"enter":case"exit":{const i=t[r];i&&Object.assign(e[r],i);break}}}function F1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ao({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ao({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ao({start:t.start,end:t.end})+") is still open")}function Gx(e){const t=this;t.parser=r;function r(i){return jx(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function $x(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function Xx(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
60
|
+
`}]}function Qx(e,t){const r=t.value?t.value+`
|
|
61
|
+
`:"",i={};t.lang&&(i.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function Kx(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Wx(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Zx(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),o=ji(i.toLowerCase()),s=e.footnoteOrder.indexOf(i);let c,d=e.footnoteCounts.get(i);d===void 0?(d=0,e.footnoteOrder.push(i),c=e.footnoteOrder.length):c=s+1,d+=1,e.footnoteCounts.set(i,d);const h={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(t,h);const p={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(t,p),e.applyData(t,p)}function Jx(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function e_(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function z1(e,t){const r=t.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const o=e.all(t),s=o[0];s&&s.type==="text"?s.value="["+s.value:o.unshift({type:"text",value:"["});const c=o[o.length-1];return c&&c.type==="text"?c.value+=i:o.push({type:"text",value:i}),o}function t_(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return z1(e,t);const o={src:ji(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(o.title=i.title);const s={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,s),e.applyData(t,s)}function n_(e,t){const r={src:ji(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function r_(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,i),e.applyData(t,i)}function a_(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return z1(e,t);const o={href:ji(i.url||"")};i.title!==null&&i.title!==void 0&&(o.title=i.title);const s={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function i_(e,t){const r={href:ji(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function u_(e,t,r){const i=e.all(t),o=r?o_(r):Y1(t),s={},c=[];if(typeof t.checked=="boolean"){const b=i[0];let E;b&&b.type==="element"&&b.tagName==="p"?E=b:(E={type:"element",tagName:"p",properties:{},children:[]},i.unshift(E)),E.children.length>0&&E.children.unshift({type:"text",value:" "}),E.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let d=-1;for(;++d<i.length;){const b=i[d];(o||d!==0||b.type!=="element"||b.tagName!=="p")&&c.push({type:"text",value:`
|
|
62
|
+
`}),b.type==="element"&&b.tagName==="p"&&!o?c.push(...b.children):c.push(b)}const h=i[i.length-1];h&&(o||h.type!=="element"||h.tagName!=="p")&&c.push({type:"text",value:`
|
|
63
|
+
`});const p={type:"element",tagName:"li",properties:s,children:c};return e.patch(t,p),e.applyData(t,p)}function o_(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let i=-1;for(;!t&&++i<r.length;)t=Y1(r[i])}return t}function Y1(e){const t=e.spread;return t??e.children.length>1}function l_(e,t){const r={},i=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++o<i.length;){const c=i[o];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)}function s_(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function c_(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function f_(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function d_(e,t){const r=e.all(t),i=r.shift(),o=[];if(i){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],c),o.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},d=Dr(t.children[1]),h=is(t.children[t.children.length-1]);d&&h&&(c.position={start:d,end:h}),o.push(c)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,s),e.applyData(t,s)}function h_(e,t,r){const i=r?r.children:void 0,s=(i?i.indexOf(t):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,d=c?c.length:t.children.length;let h=-1;const p=[];for(;++h<d;){const E=t.children[h],T={},y=c?c[h]:void 0;y&&(T.align=y);let v={type:"element",tagName:s,properties:T,children:[]};E&&(v.children=e.all(E),e.patch(E,v),v=e.applyData(E,v)),p.push(v)}const b={type:"element",tagName:"tr",properties:{},children:e.wrap(p,!0)};return e.patch(t,b),e.applyData(t,b)}function p_(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const j1=9,q1=32;function m_(e){const t=String(e),r=/\r?\n|\r/g;let i=r.exec(t),o=0;const s=[];for(;i;)s.push(V1(t.slice(o,i.index),o>0,!0),i[0]),o=i.index+i[0].length,i=r.exec(t);return s.push(V1(t.slice(o),o>0,!1)),s.join("")}function V1(e,t,r){let i=0,o=e.length;if(t){let s=e.codePointAt(i);for(;s===j1||s===q1;)i++,s=e.codePointAt(i)}if(r){let s=e.codePointAt(o-1);for(;s===j1||s===q1;)o--,s=e.codePointAt(o-1)}return o>i?e.slice(i,o):""}function g_(e,t){const r={type:"text",value:m_(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function b_(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const E_={blockquote:$x,break:Xx,code:Qx,delete:Kx,emphasis:Wx,footnoteReference:Zx,heading:Jx,html:e_,imageReference:t_,image:n_,inlineCode:r_,linkReference:a_,link:i_,listItem:u_,list:l_,paragraph:s_,root:c_,strong:f_,table:d_,tableCell:p_,tableRow:h_,text:g_,thematicBreak:b_,toml:ls,yaml:ls,definition:ls,footnoteDefinition:ls};function ls(){}const G1=-1,ss=0,so=1,cs=2,ed=3,td=4,nd=5,rd=6,$1=7,X1=8,Q1=typeof self=="object"?self:globalThis,y_=(e,t)=>{const r=(o,s)=>(e.set(s,o),o),i=o=>{if(e.has(o))return e.get(o);const[s,c]=t[o];switch(s){case ss:case G1:return r(c,o);case so:{const d=r([],o);for(const h of c)d.push(i(h));return d}case cs:{const d=r({},o);for(const[h,p]of c)d[i(h)]=i(p);return d}case ed:return r(new Date(c),o);case td:{const{source:d,flags:h}=c;return r(new RegExp(d,h),o)}case nd:{const d=r(new Map,o);for(const[h,p]of c)d.set(i(h),i(p));return d}case rd:{const d=r(new Set,o);for(const h of c)d.add(i(h));return d}case $1:{const{name:d,message:h}=c;return r(new Q1[d](h),o)}case X1:return r(BigInt(c),o);case"BigInt":return r(Object(BigInt(c)),o);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:d}=new Uint8Array(c);return r(new DataView(d),c)}}return r(new Q1[s](c),o)};return i},K1=e=>y_(new Map,e)(0),qi="",{toString:T_}={},{keys:S_}=Object,co=e=>{const t=typeof e;if(t!=="object"||!e)return[ss,t];const r=T_.call(e).slice(8,-1);switch(r){case"Array":return[so,qi];case"Object":return[cs,qi];case"Date":return[ed,qi];case"RegExp":return[td,qi];case"Map":return[nd,qi];case"Set":return[rd,qi];case"DataView":return[so,r]}return r.includes("Array")?[so,r]:r.includes("Error")?[$1,r]:[cs,r]},fs=([e,t])=>e===ss&&(t==="function"||t==="symbol"),C_=(e,t,r,i)=>{const o=(c,d)=>{const h=i.push(c)-1;return r.set(d,h),h},s=c=>{if(r.has(c))return r.get(c);let[d,h]=co(c);switch(d){case ss:{let b=c;switch(h){case"bigint":d=X1,b=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);b=null;break;case"undefined":return o([G1],c)}return o([d,b],c)}case so:{if(h){let T=c;return h==="DataView"?T=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(T=new Uint8Array(c)),o([h,[...T]],c)}const b=[],E=o([d,b],c);for(const T of c)b.push(s(T));return E}case cs:{if(h)switch(h){case"BigInt":return o([h,c.toString()],c);case"Boolean":case"Number":case"String":return o([h,c.valueOf()],c)}if(t&&"toJSON"in c)return s(c.toJSON());const b=[],E=o([d,b],c);for(const T of S_(c))(e||!fs(co(c[T])))&&b.push([s(T),s(c[T])]);return E}case ed:return o([d,c.toISOString()],c);case td:{const{source:b,flags:E}=c;return o([d,{source:b,flags:E}],c)}case nd:{const b=[],E=o([d,b],c);for(const[T,y]of c)(e||!(fs(co(T))||fs(co(y))))&&b.push([s(T),s(y)]);return E}case rd:{const b=[],E=o([d,b],c);for(const T of c)(e||!fs(co(T)))&&b.push(s(T));return E}}const{message:p}=c;return o([d,{name:h,message:p}],c)};return s},W1=(e,{json:t,lossy:r}={})=>{const i=[];return C_(!(t||r),!!t,new Map,i)(e),i},Vi=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?K1(W1(e,t)):structuredClone(e):(e,t)=>K1(W1(e,t));function A_(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function x_(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function __(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||A_,i=e.options.footnoteBackLabel||x_,o=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let h=-1;for(;++h<e.footnoteOrder.length;){const p=e.footnoteById.get(e.footnoteOrder[h]);if(!p)continue;const b=e.all(p),E=String(p.identifier).toUpperCase(),T=ji(E.toLowerCase());let y=0;const v=[],x=e.footnoteCounts.get(E);for(;x!==void 0&&++y<=x;){v.length>0&&v.push({type:"text",value:" "});let P=typeof r=="string"?r:r(h,y);typeof P=="string"&&(P={type:"text",value:P}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+T+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(h,y),className:["data-footnote-backref"]},children:Array.isArray(P)?P:[P]})}const B=b[b.length-1];if(B&&B.type==="element"&&B.tagName==="p"){const P=B.children[B.children.length-1];P&&P.type==="text"?P.value+=" ":B.children.push({type:"text",value:" "}),B.children.push(...v)}else b.push(...v);const O={type:"element",tagName:"li",properties:{id:t+"fn-"+T},children:e.wrap(b,!0)};e.patch(p,O),d.push(O)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Vi(c),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
|
|
64
64
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
|
|
65
|
-
`}]}}const
|
|
65
|
+
`}]}}const ad=function(e){if(e==null)return O_;if(typeof e=="function")return ds(e);if(typeof e=="object")return Array.isArray(e)?v_(e):R_(e);if(typeof e=="string")return N_(e);throw new Error("Expected function, string, or object as test")};function v_(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=ad(e[r]);return ds(i);function i(...o){let s=-1;for(;++s<t.length;)if(t[s].apply(this,o))return!0;return!1}}function R_(e){const t=e;return ds(r);function r(i){const o=i;let s;for(s in e)if(o[s]!==t[s])return!1;return!0}}function N_(e){return ds(t);function t(r){return r&&r.type===e}}function ds(e){return t;function t(r,i,o){return!!(k_(r)&&e.call(this,r,typeof i=="number"?i:void 0,o||void 0))}}function O_(){return!0}function k_(e){return e!==null&&typeof e=="object"&&"type"in e}function hB(e){return e}const Z1=[],I_=!0,J1=!1,eg="skip";function tg(e,t,r,i){let o;typeof t=="function"&&typeof r!="function"?(i=r,r=t):o=t;const s=ad(o),c=i?-1:1;d(e,void 0,[])();function d(h,p,b){const E=h&&typeof h=="object"?h:{};if(typeof E.type=="string"){const y=typeof E.tagName=="string"?E.tagName:typeof E.name=="string"?E.name:void 0;Object.defineProperty(T,"name",{value:"node ("+(h.type+(y?"<"+y+">":""))+")"})}return T;function T(){let y=Z1,v,x,B;if((!t||s(h,p,b[b.length-1]||void 0))&&(y=D_(r(h,b)),y[0]===J1))return y;if("children"in h&&h.children){const O=h;if(O.children&&y[0]!==eg)for(x=(i?O.children.length:-1)+c,B=b.concat(O);x>-1&&x<O.children.length;){const P=O.children[x];if(v=d(P,x,B)(),v[0]===J1)return v;x=typeof v[1]=="number"?v[1]:x+c}}return y}}}function D_(e){return Array.isArray(e)?e:typeof e=="number"?[I_,e]:e==null?Z1:[e]}function id(e,t,r,i){let o,s,c;typeof t=="function"&&typeof r!="function"?(s=void 0,c=t,o=r):(s=t,c=r,o=i),tg(e,s,d,o);function d(h,p){const b=p[p.length-1],E=b?b.children.indexOf(h):void 0;return c(h,E,b)}}const ud={}.hasOwnProperty,w_={};function L_(e,t){const r=t||w_,i=new Map,o=new Map,s=new Map,c={...E_,...r.handlers},d={all:p,applyData:B_,definitionById:i,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:c,one:h,options:r,patch:M_,wrap:U_};return id(e,function(b){if(b.type==="definition"||b.type==="footnoteDefinition"){const E=b.type==="definition"?i:o,T=String(b.identifier).toUpperCase();E.has(T)||E.set(T,b)}}),d;function h(b,E){const T=b.type,y=d.handlers[T];if(ud.call(d.handlers,T)&&y)return y(d,b,E);if(d.options.passThrough&&d.options.passThrough.includes(T)){if("children"in b){const{children:x,...B}=b,O=Vi(B);return O.children=d.all(b),O}return Vi(b)}return(d.options.unknownHandler||P_)(d,b,E)}function p(b){const E=[];if("children"in b){const T=b.children;let y=-1;for(;++y<T.length;){const v=d.one(T[y],b);if(v){if(y&&T[y-1].type==="break"&&(!Array.isArray(v)&&v.type==="text"&&(v.value=ng(v.value)),!Array.isArray(v)&&v.type==="element")){const x=v.children[0];x&&x.type==="text"&&(x.value=ng(x.value))}Array.isArray(v)?E.push(...v):E.push(v)}}}return E}}function M_(e,t){e.position&&(t.position=R6(e))}function B_(e,t){let r=t;if(e&&e.data){const i=e.data.hName,o=e.data.hChildren,s=e.data.hProperties;if(typeof i=="string")if(r.type==="element")r.tagName=i;else{const c="children"in r?r.children:[r];r={type:"element",tagName:i,properties:{},children:c}}r.type==="element"&&s&&Object.assign(r.properties,Vi(s)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}function P_(e,t){const r=t.data||{},i="value"in t&&!(ud.call(r,"hProperties")||ud.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function U_(e,t){const r=[];let i=-1;for(t&&r.push({type:"text",value:`
|
|
66
66
|
`});++i<e.length;)i&&r.push({type:"text",value:`
|
|
67
67
|
`}),r.push(e[i]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
68
|
-
`}),r}function
|
|
69
|
-
`},l),s}function E4(e,t){return e&&"run"in e?async function(r,i){const l=G1(r,{file:i,...t});await e.run(l,i)}:function(r,i){return G1(r,{file:i,...e||t})}}function $1(e){if(e)throw e}var td,X1;function y4(){if(X1)return td;X1=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(m){return typeof Array.isArray=="function"?Array.isArray(m):t.call(m)==="[object Array]"},s=function(m){if(!m||t.call(m)!=="[object Object]")return!1;var b=e.call(m,"constructor"),E=m.constructor&&m.constructor.prototype&&e.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!b&&!E)return!1;var T;for(T in m);return typeof T>"u"||e.call(m,T)},c=function(m,b){r&&b.name==="__proto__"?r(m,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):m[b.name]=b.newValue},d=function(m,b){if(b==="__proto__")if(e.call(m,b)){if(i)return i(m,b).value}else return;return m[b]};return td=function p(){var m,b,E,T,y,R,x=arguments[0],U=1,D=arguments.length,q=!1;for(typeof x=="boolean"&&(q=x,x=arguments[1]||{},U=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});U<D;++U)if(m=arguments[U],m!=null)for(b in m)E=d(x,b),T=d(m,b),x!==T&&(q&&T&&(s(T)||(y=l(T)))?(y?(y=!1,R=E&&l(E)?E:[]):R=E&&s(E)?E:{},c(x,{name:b,newValue:p(q,R,T)})):typeof T<"u"&&c(x,{name:b,newValue:T}));return x},td}var T4=y4();const nd=lr(T4);function rd(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function S4(){const e=[],t={run:r,use:i};return t;function r(...l){let s=-1;const c=l.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...l);function d(p,...m){const b=e[++s];let E=-1;if(p){c(p);return}for(;++E<l.length;)(m[E]===null||m[E]===void 0)&&(m[E]=l[E]);l=m,b?C4(b,d)(...m):c(null,...m)}}function i(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}function C4(e,t){let r;return i;function i(...c){const d=e.length>c.length;let p;d&&c.push(l);try{p=e.apply(this,c)}catch(m){const b=m;if(d&&r)throw b;return l(b)}d||(p&&p.then&&typeof p.then=="function"?p.then(s,l):p instanceof Error?l(p):s(p))}function l(c,...d){r||(r=!0,t(c,...d))}function s(c){l(null,c)}}const wr={basename:A4,dirname:_4,extname:x4,join:v4,sep:"/"};function A4(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');sl(e);let r=0,i=-1,l=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(s){r=l+1;break}}else i<0&&(s=!0,i=l+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let c=-1,d=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(s){r=l+1;break}}else c<0&&(s=!0,c=l+1),d>-1&&(e.codePointAt(l)===t.codePointAt(d--)?d<0&&(i=l):(d=-1,i=c));return r===i?i=c:i<0&&(i=e.length),e.slice(r,i)}function _4(e){if(sl(e),e.length===0)return".";let t=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){t=r;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function x4(e){sl(e);let t=e.length,r=-1,i=0,l=-1,s=0,c;for(;t--;){const d=e.codePointAt(t);if(d===47){if(c){i=t+1;break}continue}r<0&&(c=!0,r=t+1),d===46?l<0?l=t:s!==1&&(s=1):l>-1&&(s=-1)}return l<0||r<0||s===0||s===1&&l===r-1&&l===i+1?"":e.slice(l,r)}function v4(...e){let t=-1,r;for(;++t<e.length;)sl(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":R4(r)}function R4(e){sl(e);const t=e.codePointAt(0)===47;let r=N4(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function N4(e,t){let r="",i=0,l=-1,s=0,c=-1,d,p;for(;++c<=e.length;){if(c<e.length)d=e.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(l===c-1||s===1))if(l!==c-1&&s===2){if(r.length<2||i!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(p=r.lastIndexOf("/"),p!==r.length-1){p<0?(r="",i=0):(r=r.slice(0,p),i=r.length-1-r.lastIndexOf("/")),l=c,s=0;continue}}else if(r.length>0){r="",i=0,l=c,s=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(l+1,c):r=e.slice(l+1,c),i=c-l-1;l=c,s=0}else d===46&&s>-1?s++:s=-1}return r}function sl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const O4={cwd:I4};function I4(){return"/"}function ad(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function D4(e){if(typeof e=="string")e=new URL(e);else if(!ad(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return k4(e)}function k4(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const i=t.codePointAt(r+2);if(i===70||i===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}const id=["history","path","basename","stem","extname","dirname"];class Q1{constructor(t){let r;t?ad(t)?r={path:t}:typeof t=="string"||L4(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":O4.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<id.length;){const s=id[i];s in r&&r[s]!==void 0&&r[s]!==null&&(this[s]=s==="history"?[...r[s]]:r[s])}let l;for(l in r)id.includes(l)||(this[l]=r[l])}get basename(){return typeof this.path=="string"?wr.basename(this.path):void 0}set basename(t){ld(t,"basename"),ud(t,"basename"),this.path=wr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?wr.dirname(this.path):void 0}set dirname(t){K1(this.basename,"dirname"),this.path=wr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?wr.extname(this.path):void 0}set extname(t){if(ud(t,"extname"),K1(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=wr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ad(t)&&(t=D4(t)),ld(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?wr.basename(this.path,this.extname):void 0}set stem(t){ld(t,"stem"),ud(t,"stem"),this.path=wr.join(this.dirname||"",t+(this.extname||""))}fail(t,r,i){const l=this.message(t,r,i);throw l.fatal=!0,l}info(t,r,i){const l=this.message(t,r,i);return l.fatal=void 0,l}message(t,r,i){const l=new An(t,r,i);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ud(e,t){if(e&&e.includes(wr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+wr.sep+"`")}function ld(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function K1(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function L4(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const M4=function(e){const i=this.constructor.prototype,l=i[e],s=function(){return l.apply(s,arguments)};return Object.setPrototypeOf(s,i),s},w4={}.hasOwnProperty;class od extends M4{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=S4()}copy(){const t=new od;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];t.use(...i)}return t.data(nd(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(fd("data",this.frozen),this.namespace[t]=r,this):w4.call(this.namespace,t)&&this.namespace[t]||void 0:t?(fd("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const l=r.call(t,...i);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=os(t),i=this.parser||this.Parser;return sd("parse",i),i(String(r),r)}process(t,r){const i=this;return this.freeze(),sd("process",this.parser||this.Parser),cd("process",this.compiler||this.Compiler),r?l(void 0,r):new Promise(l);function l(s,c){const d=os(t),p=i.parse(d);i.run(p,d,function(b,E,T){if(b||!E||!T)return m(b);const y=E,R=i.stringify(y,T);U4(R)?T.value=R:T.result=R,m(b,T)});function m(b,E){b||!E?c(b):s?s(E):r(void 0,E)}}}processSync(t){let r=!1,i;return this.freeze(),sd("processSync",this.parser||this.Parser),cd("processSync",this.compiler||this.Compiler),this.process(t,l),Z1("processSync","process",r),i;function l(s,c){r=!0,$1(s),i=c}}run(t,r,i){W1(t),this.freeze();const l=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?s(void 0,i):new Promise(s);function s(c,d){const p=os(r);l.run(t,p,m);function m(b,E,T){const y=E||t;b?d(b):c?c(y):i(void 0,y,T)}}}runSync(t,r){let i=!1,l;return this.run(t,r,s),Z1("runSync","run",i),l;function s(c,d){$1(c),l=d,i=!0}}stringify(t,r){this.freeze();const i=os(r),l=this.compiler||this.Compiler;return cd("stringify",l),W1(t),l(t,i)}use(t,...r){const i=this.attachers,l=this.namespace;if(fd("use",this.frozen),t!=null)if(typeof t=="function")p(t,r);else if(typeof t=="object")Array.isArray(t)?d(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(m){if(typeof m=="function")p(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[b,...E]=m;p(b,E)}else c(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function c(m){if(!("plugins"in m)&&!("settings"in m))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");d(m.plugins),m.settings&&(l.settings=nd(!0,l.settings,m.settings))}function d(m){let b=-1;if(m!=null)if(Array.isArray(m))for(;++b<m.length;){const E=m[b];s(E)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function p(m,b){let E=-1,T=-1;for(;++E<i.length;)if(i[E][0]===m){T=E;break}if(T===-1)i.push([m,...b]);else if(b.length>0){let[y,...R]=b;const x=i[T][1];rd(x)&&rd(y)&&(y=nd(!0,x,y)),i[T]=[m,y,...R]}}}}const B4=new od().freeze();function sd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function cd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function fd(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function W1(e){if(!rd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Z1(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function os(e){return P4(e)?e:new Q1(e)}function P4(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function U4(e){return typeof e=="string"||H4(e)}function H4(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const F4="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",J1=[],eg={allowDangerousHtml:!0},z4=/^(https?|ircs?|mailto|xmpp)$/i,Y4=[{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 tg(e){const t=j4(e),r=q4(e);return V4(t.runSync(t.parse(r),r),e)}function j4(e){const t=e.rehypePlugins||J1,r=e.remarkPlugins||J1,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...eg}:eg;return B4().use(A_).use(r).use(E4,i).use(t)}function q4(e){const t=e.children||"",r=new Q1;return typeof t=="string"&&(r.value=t),r}function V4(e,t){const r=t.allowedElements,i=t.allowElement,l=t.components,s=t.disallowedElements,c=t.skipHtml,d=t.unwrapDisallowed,p=t.urlTransform||G4;for(const b of Y4)Object.hasOwn(t,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+F4+b.id,void 0);return Jf(e,m),s6(e,{Fragment:he.Fragment,components:l,ignoreInvalidStyle:!0,jsx:he.jsx,jsxs:he.jsxs,passKeys:!0,passNode:!0});function m(b,E,T){if(b.type==="raw"&&T&&typeof E=="number")return c?T.children.splice(E,1):T.children[E]={type:"text",value:b.value},E;if(b.type==="element"){let y;for(y in Hf)if(Object.hasOwn(Hf,y)&&Object.hasOwn(b.properties,y)){const R=b.properties[y],x=Hf[y];(x===null||x.includes(b.tagName))&&(b.properties[y]=p(String(R||""),y,b))}}if(b.type==="element"){let y=r?!r.includes(b.tagName):s?s.includes(b.tagName):!1;if(!y&&i&&typeof E=="number"&&(y=!i(b,E,T)),y&&T&&typeof E=="number")return d&&b.children?T.children.splice(E,1,...b.children):T.children.splice(E,1),E}}}function G4(e){const t=e.indexOf(":"),r=e.indexOf("?"),i=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||r!==-1&&t>r||i!==-1&&t>i||z4.test(e.slice(0,t))?e:""}const ng=/[#.]/g;function $4(e,t){const r=e||"",i={};let l=0,s,c;for(;l<r.length;){ng.lastIndex=l;const d=ng.exec(r),p=r.slice(l,d?d.index:r.length);p&&(s?s==="#"?i.id=p:Array.isArray(i.className)?i.className.push(p):i.className=[p]:c=p,l+=p.length),d&&(s=d[0],l++)}return{type:"element",tagName:c||t||"div",properties:i,children:[]}}function rg(e,t,r){const i=r?W4(r):void 0;function l(s,c,...d){let p;if(s==null){p={type:"root",children:[]};const m=c;d.unshift(m)}else{p=$4(s,t);const m=p.tagName.toLowerCase(),b=i?i.get(m):void 0;if(p.tagName=b||m,X4(c))d.unshift(c);else for(const[E,T]of Object.entries(c))Q4(e,p.properties,E,T)}for(const m of d)dd(p.children,m);return p.type==="element"&&p.tagName==="template"&&(p.content={type:"root",children:p.children},p.children=[]),p}return l}function X4(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const i of r){const l=t[i];if(l&&typeof l=="object"){if(!Array.isArray(l))return!0;const s=l;for(const c of s)if(typeof c!="number"&&typeof c!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Q4(e,t,r,i){const l=Lf(e,r);let s;if(i!=null){if(typeof i=="number"){if(Number.isNaN(i))return;s=i}else typeof i=="boolean"?s=i:typeof i=="string"?l.spaceSeparated?s=Vm(i):l.commaSeparated?s=Dm(i):l.commaOrSpaceSeparated?s=Vm(Dm(i).join(" ")):s=ag(l,l.property,i):Array.isArray(i)?s=[...i]:s=l.property==="style"?K4(i):String(i);if(Array.isArray(s)){const c=[];for(const d of s)c.push(ag(l,l.property,d));s=c}l.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[l.property]=s}}function dd(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)dd(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?dd(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function ag(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||Ju(r)===Ju(t)))return!0}return r}function K4(e){const t=[];for(const[r,i]of Object.entries(e))t.push([r,i].join(": "));return t.join("; ")}function W4(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const Z4=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],J4=rg(Jo,"div"),ex=rg(Ui,"g",Z4);function tx(e){const t=String(e),r=[];return{toOffset:l,toPoint:i};function i(s){if(typeof s=="number"&&s>-1&&s<=t.length){let c=0;for(;;){let d=r[c];if(d===void 0){const p=ig(t,r[c-1]);d=p===-1?t.length+1:p+1,r[c]=d}if(d>s)return{line:c+1,column:s-(c>0?r[c-1]:0)+1,offset:s};c++}}}function l(s){if(s&&typeof s.line=="number"&&typeof s.column=="number"&&!Number.isNaN(s.line)&&!Number.isNaN(s.column)){for(;r.length<s.line;){const d=r[r.length-1],p=ig(t,d),m=p===-1?t.length+1:p+1;if(d===m)break;r.push(m)}const c=(s.line>1?r[s.line-2]:0)+s.column-1;if(c<r[s.line-1])return c}}}function ig(e,t){const r=e.indexOf("\r",t),i=e.indexOf(`
|
|
70
|
-
`,t);return i===-1?r:r===-1||r+1===i?i:r<i?r:i}const ei={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},ug={}.hasOwnProperty,nx=Object.prototype;function rx(e,t){const r=t||{};return hd({file:r.file||void 0,location:!1,schema:r.space==="svg"?Ui:Jo,verbose:r.verbose||!1},e)}function hd(e,t){let r;switch(t.nodeName){case"#comment":{const i=t;return r={type:"comment",value:i.data},ss(e,i,r),r}case"#document":case"#document-fragment":{const i=t,l="mode"in i?i.mode==="quirks"||i.mode==="limited-quirks":!1;if(r={type:"root",children:lg(e,t.childNodes),data:{quirksMode:l}},e.file&&e.location){const s=String(e.file),c=tx(s),d=c.toPoint(0),p=c.toPoint(s.length);r.position={start:d,end:p}}return r}case"#documentType":{const i=t;return r={type:"doctype"},ss(e,i,r),r}case"#text":{const i=t;return r={type:"text",value:i.value},ss(e,i,r),r}default:return r=ax(e,t),r}}function lg(e,t){let r=-1;const i=[];for(;++r<t.length;){const l=hd(e,t[r]);i.push(l)}return i}function ax(e,t){const r=e.schema;e.schema=t.namespaceURI===ei.svg?Ui:Jo;let i=-1;const l={};for(;++i<t.attrs.length;){const d=t.attrs[i],p=(d.prefix?d.prefix+":":"")+d.name;ug.call(nx,p)||(l[p]=d.value)}const c=(e.schema.space==="svg"?ex:J4)(t.tagName,l,lg(e,t.childNodes));if(ss(e,t,c),c.tagName==="template"){const d=t,p=d.sourceCodeLocation,m=p&&p.startTag&&qi(p.startTag),b=p&&p.endTag&&qi(p.endTag),E=hd(e,d.content);m&&b&&e.file&&(E.position={start:m.end,end:b.start}),c.content=E}return e.schema=r,c}function ss(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const i=ix(e,r,t.sourceCodeLocation);i&&(e.location=!0,r.position=i)}}function ix(e,t,r){const i=qi(r);if(t.type==="element"){const l=t.children[t.children.length-1];if(i&&!r.endTag&&l&&l.position&&l.position.end&&(i.end=Object.assign({},l.position.end)),e.verbose){const s={};let c;if(r.attrs)for(c in r.attrs)ug.call(r.attrs,c)&&(s[Lf(e.schema,c).property]=qi(r.attrs[c]));r.startTag;const d=qi(r.startTag),p=r.endTag?qi(r.endTag):void 0,m={opening:d};p&&(m.closing=p),m.properties=s,t.data={position:m}}}return i}function qi(e){const t=og({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=og({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function og(e){return e.line&&e.column?e:void 0}class cl{constructor(t,r,i){this.property=t,this.normal=r,i&&(this.space=i)}}cl.prototype.property={},cl.prototype.normal={},cl.prototype.space=null;function sg(e,t){const r={},i={};let l=-1;for(;++l<e.length;)Object.assign(r,e[l].property),Object.assign(i,e[l].normal);return new cl(r,i,t)}function pd(e){return e.toLowerCase()}class sr{constructor(t,r){this.property=t,this.attribute=r}}sr.prototype.space=null,sr.prototype.boolean=!1,sr.prototype.booleanish=!1,sr.prototype.overloadedBoolean=!1,sr.prototype.number=!1,sr.prototype.commaSeparated=!1,sr.prototype.spaceSeparated=!1,sr.prototype.commaOrSpaceSeparated=!1,sr.prototype.mustUseProperty=!1,sr.prototype.defined=!1;let ux=0;const Xe=ti(),Jt=ti(),cg=ti(),Te=ti(),Bt=ti(),Vi=ti(),Kn=ti();function ti(){return 2**++ux}const md=Object.freeze(Object.defineProperty({__proto__:null,boolean:Xe,booleanish:Jt,commaOrSpaceSeparated:Kn,commaSeparated:Vi,number:Te,overloadedBoolean:cg,spaceSeparated:Bt},Symbol.toStringTag,{value:"Module"})),gd=Object.keys(md);class bd extends sr{constructor(t,r,i,l){let s=-1;if(super(t,r),fg(this,"space",l),typeof i=="number")for(;++s<gd.length;){const c=gd[s];fg(this,gd[s],(i&md[c])===md[c])}}}bd.prototype.defined=!0;function fg(e,t,r){r&&(e[t]=r)}const lx={}.hasOwnProperty;function Gi(e){const t={},r={};let i;for(i in e.properties)if(lx.call(e.properties,i)){const l=e.properties[i],s=new bd(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,r[pd(i)]=i,r[pd(s.attribute)]=i}return new cl(t,r,e.space)}const dg=Gi({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),hg=Gi({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function pg(e,t){return t in e?e[t]:t}function mg(e,t){return pg(e,t.toLowerCase())}const gg=Gi({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:mg,properties:{xmlns:null,xmlnsXLink:null}}),bg=Gi({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Jt,ariaAutoComplete:null,ariaBusy:Jt,ariaChecked:Jt,ariaColCount:Te,ariaColIndex:Te,ariaColSpan:Te,ariaControls:Bt,ariaCurrent:null,ariaDescribedBy:Bt,ariaDetails:null,ariaDisabled:Jt,ariaDropEffect:Bt,ariaErrorMessage:null,ariaExpanded:Jt,ariaFlowTo:Bt,ariaGrabbed:Jt,ariaHasPopup:null,ariaHidden:Jt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Bt,ariaLevel:Te,ariaLive:null,ariaModal:Jt,ariaMultiLine:Jt,ariaMultiSelectable:Jt,ariaOrientation:null,ariaOwns:Bt,ariaPlaceholder:null,ariaPosInSet:Te,ariaPressed:Jt,ariaReadOnly:Jt,ariaRelevant:null,ariaRequired:Jt,ariaRoleDescription:Bt,ariaRowCount:Te,ariaRowIndex:Te,ariaRowSpan:Te,ariaSelected:Jt,ariaSetSize:Te,ariaSort:null,ariaValueMax:Te,ariaValueMin:Te,ariaValueNow:Te,ariaValueText:null,role:null}}),ox=Gi({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:mg,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Vi,acceptCharset:Bt,accessKey:Bt,action:null,allow:null,allowFullScreen:Xe,allowPaymentRequest:Xe,allowUserMedia:Xe,alt:null,as:null,async:Xe,autoCapitalize:null,autoComplete:Bt,autoFocus:Xe,autoPlay:Xe,blocking:Bt,capture:null,charSet:null,checked:Xe,cite:null,className:Bt,cols:Te,colSpan:null,content:null,contentEditable:Jt,controls:Xe,controlsList:Bt,coords:Te|Vi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Xe,defer:Xe,dir:null,dirName:null,disabled:Xe,download:cg,draggable:Jt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Xe,formTarget:null,headers:Bt,height:Te,hidden:Xe,high:Te,href:null,hrefLang:null,htmlFor:Bt,httpEquiv:Bt,id:null,imageSizes:null,imageSrcSet:null,inert:Xe,inputMode:null,integrity:null,is:null,isMap:Xe,itemId:null,itemProp:Bt,itemRef:Bt,itemScope:Xe,itemType:Bt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Xe,low:Te,manifest:null,max:null,maxLength:Te,media:null,method:null,min:null,minLength:Te,multiple:Xe,muted:Xe,name:null,nonce:null,noModule:Xe,noValidate:Xe,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:Xe,optimum:Te,pattern:null,ping:Bt,placeholder:null,playsInline:Xe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Xe,referrerPolicy:null,rel:Bt,required:Xe,reversed:Xe,rows:Te,rowSpan:Te,sandbox:Bt,scope:null,scoped:Xe,seamless:Xe,selected:Xe,shadowRootClonable:Xe,shadowRootDelegatesFocus:Xe,shadowRootMode:null,shape:null,size:Te,sizes:null,slot:null,span:Te,spellCheck:Jt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Te,step:null,style:null,tabIndex:Te,target:null,title:null,translate:null,type:null,typeMustMatch:Xe,useMap:null,value:Jt,width:Te,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Bt,axis:null,background:null,bgColor:null,border:Te,borderColor:null,bottomMargin:Te,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Xe,declare:Xe,event:null,face:null,frame:null,frameBorder:null,hSpace:Te,leftMargin:Te,link:null,longDesc:null,lowSrc:null,marginHeight:Te,marginWidth:Te,noResize:Xe,noHref:Xe,noShade:Xe,noWrap:Xe,object:null,profile:null,prompt:null,rev:null,rightMargin:Te,rules:null,scheme:null,scrolling:Jt,standby:null,summary:null,text:null,topMargin:Te,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Te,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Xe,disableRemotePlayback:Xe,prefix:null,property:null,results:Te,security:null,unselectable:null}}),sx=Gi({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:pg,properties:{about:Kn,accentHeight:Te,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Te,amplitude:Te,arabicForm:null,ascent:Te,attributeName:null,attributeType:null,azimuth:Te,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Te,by:null,calcMode:null,capHeight:Te,className: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:Te,diffuseConstant:Te,direction:null,display:null,dur:null,divisor:Te,dominantBaseline:null,download:Xe,dx:null,dy:null,edgeMode:null,editable:null,elevation:Te,enableBackground:null,end:null,event:null,exponent:Te,externalResourcesRequired:null,fill:null,fillOpacity:Te,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Vi,g2:Vi,glyphName:Vi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Te,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Te,horizOriginX:Te,horizOriginY:Te,id:null,ideographic:Te,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Te,k:Te,k1:Te,k2:Te,k3:Te,k4:Te,kernelMatrix:Kn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Te,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Te,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Te,overlineThickness:Te,paintOrder:null,panose1:null,path:null,pathLength:Te,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Bt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Te,pointsAtY:Te,pointsAtZ:Te,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Kn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Kn,rev:Kn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Kn,requiredFeatures:Kn,requiredFonts:Kn,requiredFormats:Kn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Te,specularExponent:Te,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Te,strikethroughThickness:Te,string:null,stroke:null,strokeDashArray:Kn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Te,strokeOpacity:Te,strokeWidth:null,style:null,surfaceScale:Te,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Kn,tabIndex:Te,tableValues:null,target:null,targetX:Te,targetY:Te,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Kn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Te,underlineThickness:Te,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Te,values:null,vAlphabetic:Te,vMathematical:Te,vectorEffect:null,vHanging:Te,vIdeographic:Te,version:null,vertAdvY:Te,vertOriginX:Te,vertOriginY:Te,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Te,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),cx=/^data[-\w.:]+$/i,Eg=/-[a-z]/g,fx=/[A-Z]/g;function dx(e,t){const r=pd(t);let i=t,l=sr;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&cx.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(Eg,px);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!Eg.test(s)){let c=s.replace(fx,hx);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}l=bd}return new l(i,t)}function hx(e){return"-"+e.toLowerCase()}function px(e){return e.charAt(1).toUpperCase()}const mx=sg([hg,dg,gg,bg,ox],"html"),yg=sg([hg,dg,gg,bg,sx],"svg"),Tg={}.hasOwnProperty;function Sg(e,t){const r=t||{};function i(l,...s){let c=i.invalid;const d=i.handlers;if(l&&Tg.call(l,e)){const p=String(l[e]);c=Tg.call(d,p)?d[p]:i.unknown}if(c)return c.call(this,l,...s)}return i.handlers=r.handlers||{},i.invalid=r.invalid,i.unknown=r.unknown,i}const gx={},bx={}.hasOwnProperty,Cg=Sg("type",{handlers:{root:yx,element:_x,text:Cx,comment:Ax,doctype:Sx}});function Ex(e,t){const i=(t||gx).space;return Cg(e,i==="svg"?yg:mx)}function yx(e,t){const r={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return r.childNodes=Ed(e.children,r,t),$i(e,r),r}function Tx(e,t){const r={nodeName:"#document-fragment",childNodes:[]};return r.childNodes=Ed(e.children,r,t),$i(e,r),r}function Sx(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return $i(e,t),t}function Cx(e){const t={nodeName:"#text",value:e.value,parentNode:null};return $i(e,t),t}function Ax(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return $i(e,t),t}function _x(e,t){const r=t;let i=r;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=yg);const l=[];let s;if(e.properties){for(s in e.properties)if(s!=="children"&&bx.call(e.properties,s)){const p=xx(i,s,e.properties[s]);p&&l.push(p)}}const c=i.space,d={nodeName:e.tagName,tagName:e.tagName,attrs:l,namespaceURI:ei[c],childNodes:[],parentNode:null};return d.childNodes=Ed(e.children,d,i),$i(e,d),e.tagName==="template"&&e.content&&(d.content=Tx(e.content,i)),d}function xx(e,t,r){const i=dx(e,t);if(r===!1||r===null||r===void 0||typeof r=="number"&&Number.isNaN(r)||!r&&i.boolean)return;Array.isArray(r)&&(r=i.commaSeparated?km(r):Gm(r));const l={name:i.attribute,value:r===!0?"":String(r)};if(i.space&&i.space!=="html"&&i.space!=="svg"){const s=l.name.indexOf(":");s<0?l.prefix="":(l.name=l.name.slice(s+1),l.prefix=i.attribute.slice(0,s)),l.namespace=ei[i.space]}return l}function Ed(e,t,r){let i=-1;const l=[];if(e)for(;++i<e.length;){const s=Cg(e[i],r);s.parentNode=t,l.push(s)}return l}function $i(e,t){const r=e.position;r&&r.start&&r.end&&(r.start.offset,r.end.offset,t.sourceCodeLocation={startLine:r.start.line,startCol:r.start.column,startOffset:r.start.offset,endLine:r.end.line,endCol:r.end.column,endOffset:r.end.offset})}const vx=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Rx=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ht="�";var I;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(I||(I={}));const Pn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Ag(e){return e>=55296&&e<=57343}function Nx(e){return e>=56320&&e<=57343}function Ox(e,t){return(e-55296)*1024+9216+t}function _g(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function xg(e){return e>=64976&&e<=65007||Rx.has(e)}var ue;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(ue||(ue={}));const Ix=65536;class Dx{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Ix,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,r){const{line:i,col:l,offset:s}=this,c=l+r,d=s+r;return{code:t,startLine:i,endLine:i,startCol:c,endCol:c,startOffset:d,endOffset:d}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const r=this.html.charCodeAt(this.pos+1);if(Nx(r))return this.pos++,this._addGap(),Ox(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,I.EOF;return this._err(ue.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,r){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=r}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,r){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(r)return this.html.startsWith(t,this.pos);for(let i=0;i<t.length;i++)if((this.html.charCodeAt(this.pos+i)|32)!==t.charCodeAt(i))return!1;return!0}peek(t){const r=this.pos+t;if(r>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,I.EOF;const i=this.html.charCodeAt(r);return i===I.CARRIAGE_RETURN?I.LINE_FEED:i}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,I.EOF;let t=this.html.charCodeAt(this.pos);return t===I.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,I.LINE_FEED):t===I.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Ag(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===I.LINE_FEED||t===I.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){_g(t)?this._err(ue.controlCharacterInInputStream):xg(t)&&this._err(ue.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Je;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Je||(Je={}));function vg(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}const kx=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Lx=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function Mx(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Lx.get(e))!==null&&t!==void 0?t:e}var sn;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(sn||(sn={}));const wx=32;var Ta;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ta||(Ta={}));function yd(e){return e>=sn.ZERO&&e<=sn.NINE}function Bx(e){return e>=sn.UPPER_A&&e<=sn.UPPER_F||e>=sn.LOWER_A&&e<=sn.LOWER_F}function Px(e){return e>=sn.UPPER_A&&e<=sn.UPPER_Z||e>=sn.LOWER_A&&e<=sn.LOWER_Z||yd(e)}function Ux(e){return e===sn.EQUALS||Px(e)}var cn;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(cn||(cn={}));var Qr;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Qr||(Qr={}));class Hx{constructor(t,r,i){this.decodeTree=t,this.emitCodePoint=r,this.errors=i,this.state=cn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Qr.Strict}startEntity(t){this.decodeMode=t,this.state=cn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case cn.EntityStart:return t.charCodeAt(r)===sn.NUM?(this.state=cn.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=cn.NamedEntity,this.stateNamedEntity(t,r));case cn.NumericStart:return this.stateNumericStart(t,r);case cn.NumericDecimal:return this.stateNumericDecimal(t,r);case cn.NumericHex:return this.stateNumericHex(t,r);case cn.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|wx)===sn.LOWER_X?(this.state=cn.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=cn.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,i,l){if(r!==i){const s=i-r;this.result=this.result*Math.pow(l,s)+Number.parseInt(t.substr(r,s),l),this.consumed+=s}}stateNumericHex(t,r){const i=r;for(;r<t.length;){const l=t.charCodeAt(r);if(yd(l)||Bx(l))r+=1;else return this.addToNumericResult(t,i,r,16),this.emitNumericEntity(l,3)}return this.addToNumericResult(t,i,r,16),-1}stateNumericDecimal(t,r){const i=r;for(;r<t.length;){const l=t.charCodeAt(r);if(yd(l))r+=1;else return this.addToNumericResult(t,i,r,10),this.emitNumericEntity(l,2)}return this.addToNumericResult(t,i,r,10),-1}emitNumericEntity(t,r){var i;if(this.consumed<=r)return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===sn.SEMI)this.consumed+=1;else if(this.decodeMode===Qr.Strict)return 0;return this.emitCodePoint(Mx(this.result),this.consumed),this.errors&&(t!==sn.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){const{decodeTree:i}=this;let l=i[this.treeIndex],s=(l&Ta.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){const c=t.charCodeAt(r);if(this.treeIndex=Fx(i,l,this.treeIndex+Math.max(1,s),c),this.treeIndex<0)return this.result===0||this.decodeMode===Qr.Attribute&&(s===0||Ux(c))?0:this.emitNotTerminatedNamedEntity();if(l=i[this.treeIndex],s=(l&Ta.VALUE_LENGTH)>>14,s!==0){if(c===sn.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==Qr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:r,decodeTree:i}=this,l=(i[r]&Ta.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,l,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,i){const{decodeTree:l}=this;return this.emitCodePoint(r===1?l[t]&~Ta.VALUE_LENGTH:l[t+1],i),r===3&&this.emitCodePoint(l[t+2],i),i}end(){var t;switch(this.state){case cn.NamedEntity:return this.result!==0&&(this.decodeMode!==Qr.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case cn.NumericDecimal:return this.emitNumericEntity(0,2);case cn.NumericHex:return this.emitNumericEntity(0,3);case cn.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case cn.EntityStart:return 0}}}function Fx(e,t,r,i){const l=(t&Ta.BRANCH_LENGTH)>>7,s=t&Ta.JUMP_TABLE;if(l===0)return s!==0&&i===s?r:-1;if(s){const p=i-s;return p<0||p>=l?-1:e[r+p]-1}let c=r,d=c+l-1;for(;c<=d;){const p=c+d>>>1,m=e[p];if(m<i)c=p+1;else if(m>i)d=p-1;else return e[p+l]}return-1}var pe;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(pe||(pe={}));var ni;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(ni||(ni={}));var cr;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(cr||(cr={}));var W;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(W||(W={}));var g;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(g||(g={}));const zx=new Map([[W.A,g.A],[W.ADDRESS,g.ADDRESS],[W.ANNOTATION_XML,g.ANNOTATION_XML],[W.APPLET,g.APPLET],[W.AREA,g.AREA],[W.ARTICLE,g.ARTICLE],[W.ASIDE,g.ASIDE],[W.B,g.B],[W.BASE,g.BASE],[W.BASEFONT,g.BASEFONT],[W.BGSOUND,g.BGSOUND],[W.BIG,g.BIG],[W.BLOCKQUOTE,g.BLOCKQUOTE],[W.BODY,g.BODY],[W.BR,g.BR],[W.BUTTON,g.BUTTON],[W.CAPTION,g.CAPTION],[W.CENTER,g.CENTER],[W.CODE,g.CODE],[W.COL,g.COL],[W.COLGROUP,g.COLGROUP],[W.DD,g.DD],[W.DESC,g.DESC],[W.DETAILS,g.DETAILS],[W.DIALOG,g.DIALOG],[W.DIR,g.DIR],[W.DIV,g.DIV],[W.DL,g.DL],[W.DT,g.DT],[W.EM,g.EM],[W.EMBED,g.EMBED],[W.FIELDSET,g.FIELDSET],[W.FIGCAPTION,g.FIGCAPTION],[W.FIGURE,g.FIGURE],[W.FONT,g.FONT],[W.FOOTER,g.FOOTER],[W.FOREIGN_OBJECT,g.FOREIGN_OBJECT],[W.FORM,g.FORM],[W.FRAME,g.FRAME],[W.FRAMESET,g.FRAMESET],[W.H1,g.H1],[W.H2,g.H2],[W.H3,g.H3],[W.H4,g.H4],[W.H5,g.H5],[W.H6,g.H6],[W.HEAD,g.HEAD],[W.HEADER,g.HEADER],[W.HGROUP,g.HGROUP],[W.HR,g.HR],[W.HTML,g.HTML],[W.I,g.I],[W.IMG,g.IMG],[W.IMAGE,g.IMAGE],[W.INPUT,g.INPUT],[W.IFRAME,g.IFRAME],[W.KEYGEN,g.KEYGEN],[W.LABEL,g.LABEL],[W.LI,g.LI],[W.LINK,g.LINK],[W.LISTING,g.LISTING],[W.MAIN,g.MAIN],[W.MALIGNMARK,g.MALIGNMARK],[W.MARQUEE,g.MARQUEE],[W.MATH,g.MATH],[W.MENU,g.MENU],[W.META,g.META],[W.MGLYPH,g.MGLYPH],[W.MI,g.MI],[W.MO,g.MO],[W.MN,g.MN],[W.MS,g.MS],[W.MTEXT,g.MTEXT],[W.NAV,g.NAV],[W.NOBR,g.NOBR],[W.NOFRAMES,g.NOFRAMES],[W.NOEMBED,g.NOEMBED],[W.NOSCRIPT,g.NOSCRIPT],[W.OBJECT,g.OBJECT],[W.OL,g.OL],[W.OPTGROUP,g.OPTGROUP],[W.OPTION,g.OPTION],[W.P,g.P],[W.PARAM,g.PARAM],[W.PLAINTEXT,g.PLAINTEXT],[W.PRE,g.PRE],[W.RB,g.RB],[W.RP,g.RP],[W.RT,g.RT],[W.RTC,g.RTC],[W.RUBY,g.RUBY],[W.S,g.S],[W.SCRIPT,g.SCRIPT],[W.SEARCH,g.SEARCH],[W.SECTION,g.SECTION],[W.SELECT,g.SELECT],[W.SOURCE,g.SOURCE],[W.SMALL,g.SMALL],[W.SPAN,g.SPAN],[W.STRIKE,g.STRIKE],[W.STRONG,g.STRONG],[W.STYLE,g.STYLE],[W.SUB,g.SUB],[W.SUMMARY,g.SUMMARY],[W.SUP,g.SUP],[W.TABLE,g.TABLE],[W.TBODY,g.TBODY],[W.TEMPLATE,g.TEMPLATE],[W.TEXTAREA,g.TEXTAREA],[W.TFOOT,g.TFOOT],[W.TD,g.TD],[W.TH,g.TH],[W.THEAD,g.THEAD],[W.TITLE,g.TITLE],[W.TR,g.TR],[W.TRACK,g.TRACK],[W.TT,g.TT],[W.U,g.U],[W.UL,g.UL],[W.SVG,g.SVG],[W.VAR,g.VAR],[W.WBR,g.WBR],[W.XMP,g.XMP]]);function Xi(e){var t;return(t=zx.get(e))!==null&&t!==void 0?t:g.UNKNOWN}const ge=g,Yx={[pe.HTML]:new Set([ge.ADDRESS,ge.APPLET,ge.AREA,ge.ARTICLE,ge.ASIDE,ge.BASE,ge.BASEFONT,ge.BGSOUND,ge.BLOCKQUOTE,ge.BODY,ge.BR,ge.BUTTON,ge.CAPTION,ge.CENTER,ge.COL,ge.COLGROUP,ge.DD,ge.DETAILS,ge.DIR,ge.DIV,ge.DL,ge.DT,ge.EMBED,ge.FIELDSET,ge.FIGCAPTION,ge.FIGURE,ge.FOOTER,ge.FORM,ge.FRAME,ge.FRAMESET,ge.H1,ge.H2,ge.H3,ge.H4,ge.H5,ge.H6,ge.HEAD,ge.HEADER,ge.HGROUP,ge.HR,ge.HTML,ge.IFRAME,ge.IMG,ge.INPUT,ge.LI,ge.LINK,ge.LISTING,ge.MAIN,ge.MARQUEE,ge.MENU,ge.META,ge.NAV,ge.NOEMBED,ge.NOFRAMES,ge.NOSCRIPT,ge.OBJECT,ge.OL,ge.P,ge.PARAM,ge.PLAINTEXT,ge.PRE,ge.SCRIPT,ge.SECTION,ge.SELECT,ge.SOURCE,ge.STYLE,ge.SUMMARY,ge.TABLE,ge.TBODY,ge.TD,ge.TEMPLATE,ge.TEXTAREA,ge.TFOOT,ge.TH,ge.THEAD,ge.TITLE,ge.TR,ge.TRACK,ge.UL,ge.WBR,ge.XMP]),[pe.MATHML]:new Set([ge.MI,ge.MO,ge.MN,ge.MS,ge.MTEXT,ge.ANNOTATION_XML]),[pe.SVG]:new Set([ge.TITLE,ge.FOREIGN_OBJECT,ge.DESC]),[pe.XLINK]:new Set,[pe.XML]:new Set,[pe.XMLNS]:new Set},Td=new Set([ge.H1,ge.H2,ge.H3,ge.H4,ge.H5,ge.H6]);W.STYLE,W.SCRIPT,W.XMP,W.IFRAME,W.NOEMBED,W.NOFRAMES,W.PLAINTEXT;var L;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(L||(L={}));const $t={DATA:L.DATA,RCDATA:L.RCDATA,RAWTEXT:L.RAWTEXT,SCRIPT_DATA:L.SCRIPT_DATA,PLAINTEXT:L.PLAINTEXT,CDATA_SECTION:L.CDATA_SECTION};function jx(e){return e>=I.DIGIT_0&&e<=I.DIGIT_9}function fl(e){return e>=I.LATIN_CAPITAL_A&&e<=I.LATIN_CAPITAL_Z}function qx(e){return e>=I.LATIN_SMALL_A&&e<=I.LATIN_SMALL_Z}function Sa(e){return qx(e)||fl(e)}function Rg(e){return Sa(e)||jx(e)}function cs(e){return e+32}function Ng(e){return e===I.SPACE||e===I.LINE_FEED||e===I.TABULATION||e===I.FORM_FEED}function Og(e){return Ng(e)||e===I.SOLIDUS||e===I.GREATER_THAN_SIGN}function Vx(e){return e===I.NULL?ue.nullCharacterReference:e>1114111?ue.characterReferenceOutsideUnicodeRange:Ag(e)?ue.surrogateCharacterReference:xg(e)?ue.noncharacterCharacterReference:_g(e)||e===I.CARRIAGE_RETURN?ue.controlCharacterReference:null}class Gx{constructor(t,r){this.options=t,this.handler=r,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=L.DATA,this.returnState=L.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Dx(r),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Hx(kx,(i,l)=>{this.preprocessor.pos=this.entityStartPos+l-1,this._flushCodePointConsumedAsCharacterReference(i)},r.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(ue.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:i=>{this._err(ue.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+i)},validateNumericCharacterReference:i=>{const l=Vx(i);l&&this._err(l,1)}}:void 0)}_err(t,r=0){var i,l;(l=(i=this.handler).onParseError)===null||l===void 0||l.call(i,this.preprocessor.getError(t,r))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,r,i){this.active=!0,this.preprocessor.write(t,r),this._runParsingLoop(),this.paused||i==null||i()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let r=0;r<t;r++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,r){return this.preprocessor.startsWith(t,r)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Je.START_TAG,tagName:"",tagID:g.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Je.END_TAG,tagName:"",tagID:g.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Je.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Je.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,r){this.currentCharacterToken={type:t,chars:r,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,r;const i=this.currentToken;if(vg(i,this.currentAttr.name)===null){if(i.attrs.push(this.currentAttr),i.location&&this.currentLocation){const l=(t=(r=i.location).attrs)!==null&&t!==void 0?t:r.attrs=Object.create(null);l[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(ue.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Xi(t.tagName),t.type===Je.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(ue.endTagWithAttributes),t.selfClosing&&this._err(ue.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Je.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Je.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Je.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Je.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=r;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,r)}_emitCodePoint(t){const r=Ng(t)?Je.WHITESPACE_CHARACTER:t===I.NULL?Je.NULL_CHARACTER:Je.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Je.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=L.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Qr.Attribute:Qr.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===L.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===L.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===L.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case L.DATA:{this._stateData(t);break}case L.RCDATA:{this._stateRcdata(t);break}case L.RAWTEXT:{this._stateRawtext(t);break}case L.SCRIPT_DATA:{this._stateScriptData(t);break}case L.PLAINTEXT:{this._statePlaintext(t);break}case L.TAG_OPEN:{this._stateTagOpen(t);break}case L.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case L.TAG_NAME:{this._stateTagName(t);break}case L.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case L.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case L.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case L.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case L.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case L.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case L.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case L.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case L.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case L.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case L.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case L.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case L.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case L.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case L.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case L.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case L.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case L.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case L.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case L.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case L.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case L.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case L.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case L.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case L.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case L.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case L.BOGUS_COMMENT:{this._stateBogusComment(t);break}case L.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case L.COMMENT_START:{this._stateCommentStart(t);break}case L.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case L.COMMENT:{this._stateComment(t);break}case L.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case L.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case L.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case L.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case L.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case L.COMMENT_END:{this._stateCommentEnd(t);break}case L.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case L.DOCTYPE:{this._stateDoctype(t);break}case L.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case L.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case L.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case L.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case L.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case L.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case L.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case L.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case L.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case L.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case L.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case L.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case L.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case L.CDATA_SECTION:{this._stateCdataSection(t);break}case L.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case L.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case L.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case L.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case I.LESS_THAN_SIGN:{this.state=L.TAG_OPEN;break}case I.AMPERSAND:{this._startCharacterReference();break}case I.NULL:{this._err(ue.unexpectedNullCharacter),this._emitCodePoint(t);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case I.AMPERSAND:{this._startCharacterReference();break}case I.LESS_THAN_SIGN:{this.state=L.RCDATA_LESS_THAN_SIGN;break}case I.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(Ht);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case I.LESS_THAN_SIGN:{this.state=L.RAWTEXT_LESS_THAN_SIGN;break}case I.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(Ht);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case I.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_LESS_THAN_SIGN;break}case I.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(Ht);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case I.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(Ht);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Sa(t))this._createStartTagToken(),this.state=L.TAG_NAME,this._stateTagName(t);else switch(t){case I.EXCLAMATION_MARK:{this.state=L.MARKUP_DECLARATION_OPEN;break}case I.SOLIDUS:{this.state=L.END_TAG_OPEN;break}case I.QUESTION_MARK:{this._err(ue.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=L.BOGUS_COMMENT,this._stateBogusComment(t);break}case I.EOF:{this._err(ue.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ue.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=L.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Sa(t))this._createEndTagToken(),this.state=L.TAG_NAME,this._stateTagName(t);else switch(t){case I.GREATER_THAN_SIGN:{this._err(ue.missingEndTagName),this.state=L.DATA;break}case I.EOF:{this._err(ue.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(ue.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=L.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const r=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=L.BEFORE_ATTRIBUTE_NAME;break}case I.SOLIDUS:{this.state=L.SELF_CLOSING_START_TAG;break}case I.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentTagToken();break}case I.NULL:{this._err(ue.unexpectedNullCharacter),r.tagName+=Ht;break}case I.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(fl(t)?cs(t):t)}}_stateRcdataLessThanSign(t){t===I.SOLIDUS?this.state=L.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=L.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Sa(t)?(this.state=L.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=L.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const r=this.currentToken;switch(r.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=L.BEFORE_ATTRIBUTE_NAME,!1;case I.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=L.SELF_CLOSING_START_TAG,!1;case I.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=L.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=L.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===I.SOLIDUS?this.state=L.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=L.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Sa(t)?(this.state=L.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=L.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=L.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case I.SOLIDUS:{this.state=L.SCRIPT_DATA_END_TAG_OPEN;break}case I.EXCLAMATION_MARK:{this.state=L.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=L.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Sa(t)?(this.state=L.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=L.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=L.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===I.HYPHEN_MINUS?(this.state=L.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=L.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===I.HYPHEN_MINUS?(this.state=L.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=L.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case I.HYPHEN_MINUS:{this.state=L.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case I.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(Ht);break}case I.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case I.HYPHEN_MINUS:{this.state=L.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case I.NULL:{this._err(ue.unexpectedNullCharacter),this.state=L.SCRIPT_DATA_ESCAPED,this._emitChars(Ht);break}case I.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=L.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case I.HYPHEN_MINUS:{this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case I.GREATER_THAN_SIGN:{this.state=L.SCRIPT_DATA,this._emitChars(">");break}case I.NULL:{this._err(ue.unexpectedNullCharacter),this.state=L.SCRIPT_DATA_ESCAPED,this._emitChars(Ht);break}case I.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=L.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===I.SOLIDUS?this.state=L.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Sa(t)?(this._emitChars("<"),this.state=L.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=L.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Sa(t)?(this.state=L.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=L.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=L.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Pn.SCRIPT,!1)&&Og(this.preprocessor.peek(Pn.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Pn.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=L.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case I.HYPHEN_MINUS:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case I.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(Ht);break}case I.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case I.HYPHEN_MINUS:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case I.NULL:{this._err(ue.unexpectedNullCharacter),this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ht);break}case I.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case I.HYPHEN_MINUS:{this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case I.GREATER_THAN_SIGN:{this.state=L.SCRIPT_DATA,this._emitChars(">");break}case I.NULL:{this._err(ue.unexpectedNullCharacter),this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ht);break}case I.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===I.SOLIDUS?(this.state=L.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Pn.SCRIPT,!1)&&Og(this.preprocessor.peek(Pn.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Pn.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=L.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.SOLIDUS:case I.GREATER_THAN_SIGN:case I.EOF:{this.state=L.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case I.EQUALS_SIGN:{this._err(ue.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=L.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=L.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:case I.SOLIDUS:case I.GREATER_THAN_SIGN:case I.EOF:{this._leaveAttrName(),this.state=L.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case I.EQUALS_SIGN:{this._leaveAttrName(),this.state=L.BEFORE_ATTRIBUTE_VALUE;break}case I.QUOTATION_MARK:case I.APOSTROPHE:case I.LESS_THAN_SIGN:{this._err(ue.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case I.NULL:{this._err(ue.unexpectedNullCharacter),this.currentAttr.name+=Ht;break}default:this.currentAttr.name+=String.fromCodePoint(fl(t)?cs(t):t)}}_stateAfterAttributeName(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.SOLIDUS:{this.state=L.SELF_CLOSING_START_TAG;break}case I.EQUALS_SIGN:{this.state=L.BEFORE_ATTRIBUTE_VALUE;break}case I.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentTagToken();break}case I.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=L.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.QUOTATION_MARK:{this.state=L.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case I.APOSTROPHE:{this.state=L.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(ue.missingAttributeValue),this.state=L.DATA,this.emitCurrentTagToken();break}default:this.state=L.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case I.QUOTATION_MARK:{this.state=L.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case I.AMPERSAND:{this._startCharacterReference();break}case I.NULL:{this._err(ue.unexpectedNullCharacter),this.currentAttr.value+=Ht;break}case I.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case I.APOSTROPHE:{this.state=L.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case I.AMPERSAND:{this._startCharacterReference();break}case I.NULL:{this._err(ue.unexpectedNullCharacter),this.currentAttr.value+=Ht;break}case I.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this._leaveAttrValue(),this.state=L.BEFORE_ATTRIBUTE_NAME;break}case I.AMPERSAND:{this._startCharacterReference();break}case I.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=L.DATA,this.emitCurrentTagToken();break}case I.NULL:{this._err(ue.unexpectedNullCharacter),this.currentAttr.value+=Ht;break}case I.QUOTATION_MARK:case I.APOSTROPHE:case I.LESS_THAN_SIGN:case I.EQUALS_SIGN:case I.GRAVE_ACCENT:{this._err(ue.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case I.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this._leaveAttrValue(),this.state=L.BEFORE_ATTRIBUTE_NAME;break}case I.SOLIDUS:{this._leaveAttrValue(),this.state=L.SELF_CLOSING_START_TAG;break}case I.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=L.DATA,this.emitCurrentTagToken();break}case I.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this._err(ue.missingWhitespaceBetweenAttributes),this.state=L.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case I.GREATER_THAN_SIGN:{const r=this.currentToken;r.selfClosing=!0,this.state=L.DATA,this.emitCurrentTagToken();break}case I.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this._err(ue.unexpectedSolidusInTag),this.state=L.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const r=this.currentToken;switch(t){case I.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentComment(r);break}case I.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case I.NULL:{this._err(ue.unexpectedNullCharacter),r.data+=Ht;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Pn.DASH_DASH,!0)?(this._createCommentToken(Pn.DASH_DASH.length+1),this.state=L.COMMENT_START):this._consumeSequenceIfMatch(Pn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Pn.DOCTYPE.length+1),this.state=L.DOCTYPE):this._consumeSequenceIfMatch(Pn.CDATA_START,!0)?this.inForeignNode?this.state=L.CDATA_SECTION:(this._err(ue.cdataInHtmlContent),this._createCommentToken(Pn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=L.BOGUS_COMMENT):this._ensureHibernation()||(this._err(ue.incorrectlyOpenedComment),this._createCommentToken(2),this.state=L.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case I.HYPHEN_MINUS:{this.state=L.COMMENT_START_DASH;break}case I.GREATER_THAN_SIGN:{this._err(ue.abruptClosingOfEmptyComment),this.state=L.DATA;const r=this.currentToken;this.emitCurrentComment(r);break}default:this.state=L.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const r=this.currentToken;switch(t){case I.HYPHEN_MINUS:{this.state=L.COMMENT_END;break}case I.GREATER_THAN_SIGN:{this._err(ue.abruptClosingOfEmptyComment),this.state=L.DATA,this.emitCurrentComment(r);break}case I.EOF:{this._err(ue.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=L.COMMENT,this._stateComment(t)}}_stateComment(t){const r=this.currentToken;switch(t){case I.HYPHEN_MINUS:{this.state=L.COMMENT_END_DASH;break}case I.LESS_THAN_SIGN:{r.data+="<",this.state=L.COMMENT_LESS_THAN_SIGN;break}case I.NULL:{this._err(ue.unexpectedNullCharacter),r.data+=Ht;break}case I.EOF:{this._err(ue.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const r=this.currentToken;switch(t){case I.EXCLAMATION_MARK:{r.data+="!",this.state=L.COMMENT_LESS_THAN_SIGN_BANG;break}case I.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=L.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===I.HYPHEN_MINUS?this.state=L.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=L.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===I.HYPHEN_MINUS?this.state=L.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=L.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==I.GREATER_THAN_SIGN&&t!==I.EOF&&this._err(ue.nestedComment),this.state=L.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const r=this.currentToken;switch(t){case I.HYPHEN_MINUS:{this.state=L.COMMENT_END;break}case I.EOF:{this._err(ue.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=L.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const r=this.currentToken;switch(t){case I.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentComment(r);break}case I.EXCLAMATION_MARK:{this.state=L.COMMENT_END_BANG;break}case I.HYPHEN_MINUS:{r.data+="-";break}case I.EOF:{this._err(ue.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--",this.state=L.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const r=this.currentToken;switch(t){case I.HYPHEN_MINUS:{r.data+="--!",this.state=L.COMMENT_END_DASH;break}case I.GREATER_THAN_SIGN:{this._err(ue.incorrectlyClosedComment),this.state=L.DATA,this.emitCurrentComment(r);break}case I.EOF:{this._err(ue.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=L.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=L.BEFORE_DOCTYPE_NAME;break}case I.GREATER_THAN_SIGN:{this.state=L.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case I.EOF:{this._err(ue.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.missingWhitespaceBeforeDoctypeName),this.state=L.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(fl(t))this._createDoctypeToken(String.fromCharCode(cs(t))),this.state=L.DOCTYPE_NAME;else switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.NULL:{this._err(ue.unexpectedNullCharacter),this._createDoctypeToken(Ht),this.state=L.DOCTYPE_NAME;break}case I.GREATER_THAN_SIGN:{this._err(ue.missingDoctypeName),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=L.DATA;break}case I.EOF:{this._err(ue.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=L.DOCTYPE_NAME}}_stateDoctypeName(t){const r=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=L.AFTER_DOCTYPE_NAME;break}case I.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentDoctype(r);break}case I.NULL:{this._err(ue.unexpectedNullCharacter),r.name+=Ht;break}case I.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(fl(t)?cs(t):t)}}_stateAfterDoctypeName(t){const r=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentDoctype(r);break}case I.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Pn.PUBLIC,!1)?this.state=L.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Pn.SYSTEM,!1)?this.state=L.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(ue.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const r=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=L.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case I.QUOTATION_MARK:{this._err(ue.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=L.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{this._err(ue.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=L.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(ue.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=L.DATA,this.emitCurrentDoctype(r);break}case I.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.QUOTATION_MARK:{r.publicId="",this.state=L.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{r.publicId="",this.state=L.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(ue.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=L.DATA,this.emitCurrentDoctype(r);break}case I.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case I.QUOTATION_MARK:{this.state=L.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case I.NULL:{this._err(ue.unexpectedNullCharacter),r.publicId+=Ht;break}case I.GREATER_THAN_SIGN:{this._err(ue.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=L.DATA;break}case I.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case I.APOSTROPHE:{this.state=L.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case I.NULL:{this._err(ue.unexpectedNullCharacter),r.publicId+=Ht;break}case I.GREATER_THAN_SIGN:{this._err(ue.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=L.DATA;break}case I.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=L.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case I.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentDoctype(r);break}case I.QUOTATION_MARK:{this._err(ue.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{this._err(ue.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case I.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const r=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=L.DATA;break}case I.QUOTATION_MARK:{r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case I.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const r=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=L.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case I.QUOTATION_MARK:{this._err(ue.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{this._err(ue.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(ue.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=L.DATA,this.emitCurrentDoctype(r);break}case I.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.QUOTATION_MARK:{r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(ue.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=L.DATA,this.emitCurrentDoctype(r);break}case I.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case I.QUOTATION_MARK:{this.state=L.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case I.NULL:{this._err(ue.unexpectedNullCharacter),r.systemId+=Ht;break}case I.GREATER_THAN_SIGN:{this._err(ue.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=L.DATA;break}case I.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case I.APOSTROPHE:{this.state=L.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case I.NULL:{this._err(ue.unexpectedNullCharacter),r.systemId+=Ht;break}case I.GREATER_THAN_SIGN:{this._err(ue.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=L.DATA;break}case I.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=L.DATA;break}case I.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const r=this.currentToken;switch(t){case I.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=L.DATA;break}case I.NULL:{this._err(ue.unexpectedNullCharacter);break}case I.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case I.RIGHT_SQUARE_BRACKET:{this.state=L.CDATA_SECTION_BRACKET;break}case I.EOF:{this._err(ue.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===I.RIGHT_SQUARE_BRACKET?this.state=L.CDATA_SECTION_END:(this._emitChars("]"),this.state=L.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case I.GREATER_THAN_SIGN:{this.state=L.DATA;break}case I.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=L.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(I.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Rg(this.preprocessor.peek(1))?L.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Rg(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===I.SEMICOLON&&this._err(ue.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const Ig=new Set([g.DD,g.DT,g.LI,g.OPTGROUP,g.OPTION,g.P,g.RB,g.RP,g.RT,g.RTC]),Dg=new Set([...Ig,g.CAPTION,g.COLGROUP,g.TBODY,g.TD,g.TFOOT,g.TH,g.THEAD,g.TR]),fs=new Set([g.APPLET,g.CAPTION,g.HTML,g.MARQUEE,g.OBJECT,g.TABLE,g.TD,g.TEMPLATE,g.TH]),$x=new Set([...fs,g.OL,g.UL]),Xx=new Set([...fs,g.BUTTON]),kg=new Set([g.ANNOTATION_XML,g.MI,g.MN,g.MO,g.MS,g.MTEXT]),Lg=new Set([g.DESC,g.FOREIGN_OBJECT,g.TITLE]),Qx=new Set([g.TR,g.TEMPLATE,g.HTML]),Kx=new Set([g.TBODY,g.TFOOT,g.THEAD,g.TEMPLATE,g.HTML]),Wx=new Set([g.TABLE,g.TEMPLATE,g.HTML]),Zx=new Set([g.TD,g.TH]);class Jx{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,r,i){this.treeAdapter=r,this.handler=i,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=g.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===g.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===pe.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,r){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=r,this.currentTagId=r,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,r,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,r){const i=this._indexOf(t);this.items[i]=r,i===this.stackTop&&(this.current=r)}insertAfter(t,r,i){const l=this._indexOf(t)+1;this.items.splice(l,0,r),this.tagIDs.splice(l,0,i),this.stackTop++,l===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,l===this.stackTop)}popUntilTagNamePopped(t){let r=this.stackTop+1;do r=this.tagIDs.lastIndexOf(t,r-1);while(r>0&&this.treeAdapter.getNamespaceURI(this.items[r])!==pe.HTML);this.shortenToLength(Math.max(r,0))}shortenToLength(t){for(;this.stackTop>=t;){const r=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,this.stackTop<t)}}popUntilElementPopped(t){const r=this._indexOf(t);this.shortenToLength(Math.max(r,0))}popUntilPopped(t,r){const i=this._indexOfTagNames(t,r);this.shortenToLength(Math.max(i,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Td,pe.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Zx,pe.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,r){for(let i=this.stackTop;i>=0;i--)if(t.has(this.tagIDs[i])&&this.treeAdapter.getNamespaceURI(this.items[i])===r)return i;return-1}clearBackTo(t,r){const i=this._indexOfTagNames(t,r);this.shortenToLength(i+1)}clearBackToTableContext(){this.clearBackTo(Wx,pe.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Kx,pe.HTML)}clearBackToTableRowContext(){this.clearBackTo(Qx,pe.HTML)}remove(t){const r=this._indexOf(t);r>=0&&(r===this.stackTop?this.pop():(this.items.splice(r,1),this.tagIDs.splice(r,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===g.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const r=this._indexOf(t)-1;return r>=0?this.items[r]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===g.HTML}hasInDynamicScope(t,r){for(let i=this.stackTop;i>=0;i--){const l=this.tagIDs[i];switch(this.treeAdapter.getNamespaceURI(this.items[i])){case pe.HTML:{if(l===t)return!0;if(r.has(l))return!1;break}case pe.SVG:{if(Lg.has(l))return!1;break}case pe.MATHML:{if(kg.has(l))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,fs)}hasInListItemScope(t){return this.hasInDynamicScope(t,$x)}hasInButtonScope(t){return this.hasInDynamicScope(t,Xx)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case pe.HTML:{if(Td.has(r))return!0;if(fs.has(r))return!1;break}case pe.SVG:{if(Lg.has(r))return!1;break}case pe.MATHML:{if(kg.has(r))return!1;break}}}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===pe.HTML)switch(this.tagIDs[r]){case t:return!0;case g.TABLE:case g.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===pe.HTML)switch(this.tagIDs[t]){case g.TBODY:case g.THEAD:case g.TFOOT:return!0;case g.TABLE:case g.HTML:return!1}return!0}hasInSelectScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===pe.HTML)switch(this.tagIDs[r]){case t:return!0;case g.OPTION:case g.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&Ig.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Dg.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Dg.has(this.currentTagId);)this.pop()}}const Sd=3;var Br;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Br||(Br={}));const Mg={type:Br.Marker};class ev{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,r){const i=[],l=r.length,s=this.treeAdapter.getTagName(t),c=this.treeAdapter.getNamespaceURI(t);for(let d=0;d<this.entries.length;d++){const p=this.entries[d];if(p.type===Br.Marker)break;const{element:m}=p;if(this.treeAdapter.getTagName(m)===s&&this.treeAdapter.getNamespaceURI(m)===c){const b=this.treeAdapter.getAttrList(m);b.length===l&&i.push({idx:d,attrs:b})}}return i}_ensureNoahArkCondition(t){if(this.entries.length<Sd)return;const r=this.treeAdapter.getAttrList(t),i=this._getNoahArkConditionCandidates(t,r);if(i.length<Sd)return;const l=new Map(r.map(c=>[c.name,c.value]));let s=0;for(let c=0;c<i.length;c++){const d=i[c];d.attrs.every(p=>l.get(p.name)===p.value)&&(s+=1,s>=Sd&&this.entries.splice(d.idx,1))}}insertMarker(){this.entries.unshift(Mg)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:Br.Element,element:t,token:r})}insertElementAfterBookmark(t,r){const i=this.entries.indexOf(this.bookmark);this.entries.splice(i,0,{type:Br.Element,element:t,token:r})}removeEntry(t){const r=this.entries.indexOf(t);r!==-1&&this.entries.splice(r,1)}clearToLastMarker(){const t=this.entries.indexOf(Mg);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const r=this.entries.find(i=>i.type===Br.Marker||this.treeAdapter.getTagName(i.element)===t);return r&&r.type===Br.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===Br.Element&&r.element===t)}}const Ca={createDocument(){return{nodeName:"#document",mode:cr.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){const i=e.childNodes.indexOf(r);e.childNodes.splice(i,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,r,i){const l=e.childNodes.find(s=>s.nodeName==="#documentType");if(l)l.name=t,l.publicId=r,l.systemId=i;else{const s={nodeName:"#documentType",name:t,publicId:r,systemId:i,parentNode:null};Ca.appendChild(e,s)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const r=e.childNodes[e.childNodes.length-1];if(Ca.isTextNode(r)){r.value+=t;return}}Ca.appendChild(e,Ca.createTextNode(t))},insertTextBefore(e,t,r){const i=e.childNodes[e.childNodes.indexOf(r)-1];i&&Ca.isTextNode(i)?i.value+=t:Ca.insertBefore(e,Ca.createTextNode(t),r)},adoptAttributes(e,t){const r=new Set(e.attrs.map(i=>i.name));for(let i=0;i<t.length;i++)r.has(t[i].name)||e.attrs.push(t[i])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},wg="html",tv="about:legacy-compat",nv="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Bg=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],rv=[...Bg,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],av=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Pg=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],iv=[...Pg,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Ug(e,t){return t.some(r=>e.startsWith(r))}function uv(e){return e.name===wg&&e.publicId===null&&(e.systemId===null||e.systemId===tv)}function lv(e){if(e.name!==wg)return cr.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===nv)return cr.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),av.has(r))return cr.QUIRKS;let i=t===null?rv:Bg;if(Ug(r,i))return cr.QUIRKS;if(i=t===null?Pg:iv,Ug(r,i))return cr.LIMITED_QUIRKS}return cr.NO_QUIRKS}const Hg={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},ov="definitionurl",sv="definitionURL",cv=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),fv=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:pe.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:pe.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:pe.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:pe.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:pe.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:pe.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:pe.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:pe.XML}],["xml:space",{prefix:"xml",name:"space",namespace:pe.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:pe.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:pe.XMLNS}]]),dv=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),hv=new Set([g.B,g.BIG,g.BLOCKQUOTE,g.BODY,g.BR,g.CENTER,g.CODE,g.DD,g.DIV,g.DL,g.DT,g.EM,g.EMBED,g.H1,g.H2,g.H3,g.H4,g.H5,g.H6,g.HEAD,g.HR,g.I,g.IMG,g.LI,g.LISTING,g.MENU,g.META,g.NOBR,g.OL,g.P,g.PRE,g.RUBY,g.S,g.SMALL,g.SPAN,g.STRONG,g.STRIKE,g.SUB,g.SUP,g.TABLE,g.TT,g.U,g.UL,g.VAR]);function pv(e){const t=e.tagID;return t===g.FONT&&e.attrs.some(({name:i})=>i===ni.COLOR||i===ni.SIZE||i===ni.FACE)||hv.has(t)}function Fg(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===ov){e.attrs[t].name=sv;break}}function zg(e){for(let t=0;t<e.attrs.length;t++){const r=cv.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function Cd(e){for(let t=0;t<e.attrs.length;t++){const r=fv.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}function mv(e){const t=dv.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Xi(e.tagName))}function gv(e,t){return t===pe.MATHML&&(e===g.MI||e===g.MO||e===g.MN||e===g.MS||e===g.MTEXT)}function bv(e,t,r){if(t===pe.MATHML&&e===g.ANNOTATION_XML){for(let i=0;i<r.length;i++)if(r[i].name===ni.ENCODING){const l=r[i].value.toLowerCase();return l===Hg.TEXT_HTML||l===Hg.APPLICATION_XML}}return t===pe.SVG&&(e===g.FOREIGN_OBJECT||e===g.DESC||e===g.TITLE)}function Ev(e,t,r,i){return(!i||i===pe.HTML)&&bv(e,t,r)||(!i||i===pe.MATHML)&&gv(e,t)}const yv="hidden",Tv=8,Sv=3;var w;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(w||(w={}));const Cv={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Yg=new Set([g.TABLE,g.TBODY,g.TFOOT,g.THEAD,g.TR]),jg={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Ca,onParseError:null};class qg{constructor(t,r,i=null,l=null){this.fragmentContext=i,this.scriptHandler=l,this.currentToken=null,this.stopped=!1,this.insertionMode=w.INITIAL,this.originalInsertionMode=w.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...jg,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=r??this.treeAdapter.createDocument(),this.tokenizer=new Gx(this.options,this),this.activeFormattingElements=new ev(this.treeAdapter),this.fragmentContextID=i?Xi(this.treeAdapter.getTagName(i)):g.UNKNOWN,this._setContextModes(i??this.document,this.fragmentContextID),this.openElements=new Jx(this.document,this.treeAdapter,this)}static parse(t,r){const i=new this(r);return i.tokenizer.write(t,!0),i.document}static getFragmentParser(t,r){const i={...jg,...r};t??(t=i.treeAdapter.createElement(W.TEMPLATE,pe.HTML,[]));const l=i.treeAdapter.createElement("documentmock",pe.HTML,[]),s=new this(i,l,t);return s.fragmentContextID===g.TEMPLATE&&s.tmplInsertionModeStack.unshift(w.IN_TEMPLATE),s._initTokenizerForFragmentParsing(),s._insertFakeRootElement(),s._resetInsertionMode(),s._findFormInFragmentContext(),s}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,r),r}_err(t,r,i){var l;if(!this.onParseError)return;const s=(l=t.location)!==null&&l!==void 0?l:Cv,c={code:r,startLine:s.startLine,startCol:s.startCol,startOffset:s.startOffset,endLine:i?s.startLine:s.endLine,endCol:i?s.startCol:s.endCol,endOffset:i?s.startOffset:s.endOffset};this.onParseError(c)}onItemPush(t,r,i){var l,s;(s=(l=this.treeAdapter).onItemPush)===null||s===void 0||s.call(l,t),i&&this.openElements.stackTop>0&&this._setContextModes(t,r)}onItemPop(t,r){var i,l;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(l=(i=this.treeAdapter).onItemPop)===null||l===void 0||l.call(i,t,this.openElements.current),r){let s,c;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,c=this.fragmentContextID):{current:s,currentTagId:c}=this.openElements,this._setContextModes(s,c)}}_setContextModes(t,r){const i=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===pe.HTML;this.currentNotInHTML=!i,this.tokenizer.inForeignNode=!i&&t!==void 0&&r!==void 0&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,pe.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=w.TEXT}switchToPlaintextParsing(){this.insertionMode=w.TEXT,this.originalInsertionMode=w.IN_BODY,this.tokenizer.state=$t.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===W.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==pe.HTML))switch(this.fragmentContextID){case g.TITLE:case g.TEXTAREA:{this.tokenizer.state=$t.RCDATA;break}case g.STYLE:case g.XMP:case g.IFRAME:case g.NOEMBED:case g.NOFRAMES:case g.NOSCRIPT:{this.tokenizer.state=$t.RAWTEXT;break}case g.SCRIPT:{this.tokenizer.state=$t.SCRIPT_DATA;break}case g.PLAINTEXT:{this.tokenizer.state=$t.PLAINTEXT;break}}}_setDocumentType(t){const r=t.name||"",i=t.publicId||"",l=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,r,i,l),t.location){const c=this.treeAdapter.getChildNodes(this.document).find(d=>this.treeAdapter.isDocumentTypeNode(d));c&&this.treeAdapter.setNodeSourceCodeLocation(c,t.location)}}_attachElementToTree(t,r){if(this.options.sourceCodeLocationInfo){const i=r&&{...r,startTag:r};this.treeAdapter.setNodeSourceCodeLocation(t,i)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const i=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(i??this.document,t)}}_appendElement(t,r){const i=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(i,t.location)}_insertElement(t,r){const i=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(i,t.location),this.openElements.push(i,t.tagID)}_insertFakeElement(t,r){const i=this.treeAdapter.createElement(t,pe.HTML,[]);this._attachElementToTree(i,null),this.openElements.push(i,r)}_insertTemplate(t){const r=this.treeAdapter.createElement(t.tagName,pe.HTML,t.attrs),i=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(r,i),this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(W.HTML,pe.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,g.HTML)}_appendCommentNode(t,r){const i=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(r,i),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}_insertCharacters(t){let r,i;if(this._shouldFosterParentOnInsertion()?({parent:r,beforeElement:i}=this._findFosterParentingLocation(),i?this.treeAdapter.insertTextBefore(r,t.chars,i):this.treeAdapter.insertText(r,t.chars)):(r=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(r,t.chars)),!t.location)return;const l=this.treeAdapter.getChildNodes(r),s=i?l.lastIndexOf(i):l.length,c=l[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(c)){const{endLine:p,endCol:m,endOffset:b}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(c,{endLine:p,endCol:m,endOffset:b})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(c,t.location)}_adoptNodes(t,r){for(let i=this.treeAdapter.getFirstChild(t);i;i=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(i),this.treeAdapter.appendChild(r,i)}_setEndLocation(t,r){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&r.location){const i=r.location,l=this.treeAdapter.getTagName(t),s=r.type===Je.END_TAG&&l===r.tagName?{endTag:{...i},endLine:i.endLine,endCol:i.endCol,endOffset:i.endOffset}:{endLine:i.startLine,endCol:i.startCol,endOffset:i.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let r,i;return this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,i=this.fragmentContextID):{current:r,currentTagId:i}=this.openElements,t.tagID===g.SVG&&this.treeAdapter.getTagName(r)===W.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===pe.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===g.MGLYPH||t.tagID===g.MALIGNMARK)&&i!==void 0&&!this._isIntegrationPoint(i,r,pe.HTML)}_processToken(t){switch(t.type){case Je.CHARACTER:{this.onCharacter(t);break}case Je.NULL_CHARACTER:{this.onNullCharacter(t);break}case Je.COMMENT:{this.onComment(t);break}case Je.DOCTYPE:{this.onDoctype(t);break}case Je.START_TAG:{this._processStartTag(t);break}case Je.END_TAG:{this.onEndTag(t);break}case Je.EOF:{this.onEof(t);break}case Je.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,i){const l=this.treeAdapter.getNamespaceURI(r),s=this.treeAdapter.getAttrList(r);return Ev(t,l,s,i)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const r=this.activeFormattingElements.entries.findIndex(l=>l.type===Br.Marker||this.openElements.contains(l.element)),i=r===-1?t-1:r-1;for(let l=i;l>=0;l--){const s=this.activeFormattingElements.entries[l];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=w.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(g.P),this.openElements.popUntilTagNamePopped(g.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case g.TR:{this.insertionMode=w.IN_ROW;return}case g.TBODY:case g.THEAD:case g.TFOOT:{this.insertionMode=w.IN_TABLE_BODY;return}case g.CAPTION:{this.insertionMode=w.IN_CAPTION;return}case g.COLGROUP:{this.insertionMode=w.IN_COLUMN_GROUP;return}case g.TABLE:{this.insertionMode=w.IN_TABLE;return}case g.BODY:{this.insertionMode=w.IN_BODY;return}case g.FRAMESET:{this.insertionMode=w.IN_FRAMESET;return}case g.SELECT:{this._resetInsertionModeForSelect(t);return}case g.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case g.HTML:{this.insertionMode=this.headElement?w.AFTER_HEAD:w.BEFORE_HEAD;return}case g.TD:case g.TH:{if(t>0){this.insertionMode=w.IN_CELL;return}break}case g.HEAD:{if(t>0){this.insertionMode=w.IN_HEAD;return}break}}this.insertionMode=w.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let r=t-1;r>0;r--){const i=this.openElements.tagIDs[r];if(i===g.TEMPLATE)break;if(i===g.TABLE){this.insertionMode=w.IN_SELECT_IN_TABLE;return}}this.insertionMode=w.IN_SELECT}_isElementCausesFosterParenting(t){return Yg.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case g.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===pe.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case g.TABLE:{const i=this.treeAdapter.getParentNode(r);return i?{parent:i,beforeElement:r}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertBefore(r.parent,t,r.beforeElement):this.treeAdapter.appendChild(r.parent,t)}_isSpecialElement(t,r){const i=this.treeAdapter.getNamespaceURI(t);return Yx[i].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Z5(this,t);return}switch(this.insertionMode){case w.INITIAL:{dl(this,t);break}case w.BEFORE_HTML:{hl(this,t);break}case w.BEFORE_HEAD:{pl(this,t);break}case w.IN_HEAD:{ml(this,t);break}case w.IN_HEAD_NO_SCRIPT:{gl(this,t);break}case w.AFTER_HEAD:{bl(this,t);break}case w.IN_BODY:case w.IN_CAPTION:case w.IN_CELL:case w.IN_TEMPLATE:{Gg(this,t);break}case w.TEXT:case w.IN_SELECT:case w.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case w.IN_TABLE:case w.IN_TABLE_BODY:case w.IN_ROW:{vd(this,t);break}case w.IN_TABLE_TEXT:{eb(this,t);break}case w.IN_COLUMN_GROUP:{ps(this,t);break}case w.AFTER_BODY:{bs(this,t);break}case w.AFTER_AFTER_BODY:{Es(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){W5(this,t);return}switch(this.insertionMode){case w.INITIAL:{dl(this,t);break}case w.BEFORE_HTML:{hl(this,t);break}case w.BEFORE_HEAD:{pl(this,t);break}case w.IN_HEAD:{ml(this,t);break}case w.IN_HEAD_NO_SCRIPT:{gl(this,t);break}case w.AFTER_HEAD:{bl(this,t);break}case w.TEXT:{this._insertCharacters(t);break}case w.IN_TABLE:case w.IN_TABLE_BODY:case w.IN_ROW:{vd(this,t);break}case w.IN_COLUMN_GROUP:{ps(this,t);break}case w.AFTER_BODY:{bs(this,t);break}case w.AFTER_AFTER_BODY:{Es(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){_d(this,t);return}switch(this.insertionMode){case w.INITIAL:case w.BEFORE_HTML:case w.BEFORE_HEAD:case w.IN_HEAD:case w.IN_HEAD_NO_SCRIPT:case w.AFTER_HEAD:case w.IN_BODY:case w.IN_TABLE:case w.IN_CAPTION:case w.IN_COLUMN_GROUP:case w.IN_TABLE_BODY:case w.IN_ROW:case w.IN_CELL:case w.IN_SELECT:case w.IN_SELECT_IN_TABLE:case w.IN_TEMPLATE:case w.IN_FRAMESET:case w.AFTER_FRAMESET:{_d(this,t);break}case w.IN_TABLE_TEXT:{Tl(this,t);break}case w.AFTER_BODY:{Ov(this,t);break}case w.AFTER_AFTER_BODY:case w.AFTER_AFTER_FRAMESET:{Iv(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case w.INITIAL:{Dv(this,t);break}case w.BEFORE_HEAD:case w.IN_HEAD:case w.IN_HEAD_NO_SCRIPT:case w.AFTER_HEAD:{this._err(t,ue.misplacedDoctype);break}case w.IN_TABLE_TEXT:{Tl(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,ue.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?J5(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case w.INITIAL:{dl(this,t);break}case w.BEFORE_HTML:{kv(this,t);break}case w.BEFORE_HEAD:{Mv(this,t);break}case w.IN_HEAD:{_r(this,t);break}case w.IN_HEAD_NO_SCRIPT:{Pv(this,t);break}case w.AFTER_HEAD:{Hv(this,t);break}case w.IN_BODY:{_n(this,t);break}case w.IN_TABLE:{Qi(this,t);break}case w.IN_TABLE_TEXT:{Tl(this,t);break}case w.IN_CAPTION:{w5(this,t);break}case w.IN_COLUMN_GROUP:{Rd(this,t);break}case w.IN_TABLE_BODY:{ms(this,t);break}case w.IN_ROW:{gs(this,t);break}case w.IN_CELL:{U5(this,t);break}case w.IN_SELECT:{rb(this,t);break}case w.IN_SELECT_IN_TABLE:{F5(this,t);break}case w.IN_TEMPLATE:{Y5(this,t);break}case w.AFTER_BODY:{q5(this,t);break}case w.IN_FRAMESET:{V5(this,t);break}case w.AFTER_FRAMESET:{$5(this,t);break}case w.AFTER_AFTER_BODY:{Q5(this,t);break}case w.AFTER_AFTER_FRAMESET:{K5(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?e8(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case w.INITIAL:{dl(this,t);break}case w.BEFORE_HTML:{Lv(this,t);break}case w.BEFORE_HEAD:{wv(this,t);break}case w.IN_HEAD:{Bv(this,t);break}case w.IN_HEAD_NO_SCRIPT:{Uv(this,t);break}case w.AFTER_HEAD:{Fv(this,t);break}case w.IN_BODY:{hs(this,t);break}case w.TEXT:{x5(this,t);break}case w.IN_TABLE:{El(this,t);break}case w.IN_TABLE_TEXT:{Tl(this,t);break}case w.IN_CAPTION:{B5(this,t);break}case w.IN_COLUMN_GROUP:{P5(this,t);break}case w.IN_TABLE_BODY:{Nd(this,t);break}case w.IN_ROW:{nb(this,t);break}case w.IN_CELL:{H5(this,t);break}case w.IN_SELECT:{ab(this,t);break}case w.IN_SELECT_IN_TABLE:{z5(this,t);break}case w.IN_TEMPLATE:{j5(this,t);break}case w.AFTER_BODY:{ub(this,t);break}case w.IN_FRAMESET:{G5(this,t);break}case w.AFTER_FRAMESET:{X5(this,t);break}case w.AFTER_AFTER_BODY:{Es(this,t);break}}}onEof(t){switch(this.insertionMode){case w.INITIAL:{dl(this,t);break}case w.BEFORE_HTML:{hl(this,t);break}case w.BEFORE_HEAD:{pl(this,t);break}case w.IN_HEAD:{ml(this,t);break}case w.IN_HEAD_NO_SCRIPT:{gl(this,t);break}case w.AFTER_HEAD:{bl(this,t);break}case w.IN_BODY:case w.IN_TABLE:case w.IN_CAPTION:case w.IN_COLUMN_GROUP:case w.IN_TABLE_BODY:case w.IN_ROW:case w.IN_CELL:case w.IN_SELECT:case w.IN_SELECT_IN_TABLE:{Zg(this,t);break}case w.TEXT:{v5(this,t);break}case w.IN_TABLE_TEXT:{Tl(this,t);break}case w.IN_TEMPLATE:{ib(this,t);break}case w.AFTER_BODY:case w.IN_FRAMESET:case w.AFTER_FRAMESET:case w.AFTER_AFTER_BODY:case w.AFTER_AFTER_FRAMESET:{xd(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===I.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case w.IN_HEAD:case w.IN_HEAD_NO_SCRIPT:case w.AFTER_HEAD:case w.TEXT:case w.IN_COLUMN_GROUP:case w.IN_SELECT:case w.IN_SELECT_IN_TABLE:case w.IN_FRAMESET:case w.AFTER_FRAMESET:{this._insertCharacters(t);break}case w.IN_BODY:case w.IN_CAPTION:case w.IN_CELL:case w.IN_TEMPLATE:case w.AFTER_BODY:case w.AFTER_AFTER_BODY:case w.AFTER_AFTER_FRAMESET:{Vg(this,t);break}case w.IN_TABLE:case w.IN_TABLE_BODY:case w.IN_ROW:{vd(this,t);break}case w.IN_TABLE_TEXT:{Jg(this,t);break}}}}function Av(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):Wg(e,t),r}function _v(e,t){let r=null,i=e.openElements.stackTop;for(;i>=0;i--){const l=e.openElements.items[i];if(l===t.element)break;e._isSpecialElement(l,e.openElements.tagIDs[i])&&(r=l)}return r||(e.openElements.shortenToLength(Math.max(i,0)),e.activeFormattingElements.removeEntry(t)),r}function xv(e,t,r){let i=t,l=e.openElements.getCommonAncestor(t);for(let s=0,c=l;c!==r;s++,c=l){l=e.openElements.getCommonAncestor(c);const d=e.activeFormattingElements.getElementEntry(c),p=d&&s>=Sv;!d||p?(p&&e.activeFormattingElements.removeEntry(d),e.openElements.remove(c)):(c=vv(e,d),i===t&&(e.activeFormattingElements.bookmark=d),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(c,i),i=c)}return i}function vv(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),i=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,i),t.element=i,i}function Rv(e,t,r){const i=e.treeAdapter.getTagName(t),l=Xi(i);if(e._isElementCausesFosterParenting(l))e._fosterParentElement(r);else{const s=e.treeAdapter.getNamespaceURI(t);l===g.TEMPLATE&&s===pe.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function Nv(e,t,r){const i=e.treeAdapter.getNamespaceURI(r.element),{token:l}=r,s=e.treeAdapter.createElement(l.tagName,i,l.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,l),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,s,l.tagID)}function Ad(e,t){for(let r=0;r<Tv;r++){const i=Av(e,t);if(!i)break;const l=_v(e,i);if(!l)break;e.activeFormattingElements.bookmark=i;const s=xv(e,l,i.element),c=e.openElements.getCommonAncestor(i.element);e.treeAdapter.detachNode(s),c&&Rv(e,c,s),Nv(e,l,i)}}function _d(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Ov(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Iv(e,t){e._appendCommentNode(t,e.document)}function xd(e,t){if(e.stopped=!0,t.location){const r=e.fragmentContext?0:2;for(let i=e.openElements.stackTop;i>=r;i--)e._setEndLocation(e.openElements.items[i],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const i=e.openElements.items[0],l=e.treeAdapter.getNodeSourceCodeLocation(i);if(l&&!l.endTag&&(e._setEndLocation(i,t),e.openElements.stackTop>=1)){const s=e.openElements.items[1],c=e.treeAdapter.getNodeSourceCodeLocation(s);c&&!c.endTag&&e._setEndLocation(s,t)}}}}function Dv(e,t){e._setDocumentType(t);const r=t.forceQuirks?cr.QUIRKS:lv(t);uv(t)||e._err(t,ue.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=w.BEFORE_HTML}function dl(e,t){e._err(t,ue.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,cr.QUIRKS),e.insertionMode=w.BEFORE_HTML,e._processToken(t)}function kv(e,t){t.tagID===g.HTML?(e._insertElement(t,pe.HTML),e.insertionMode=w.BEFORE_HEAD):hl(e,t)}function Lv(e,t){const r=t.tagID;(r===g.HTML||r===g.HEAD||r===g.BODY||r===g.BR)&&hl(e,t)}function hl(e,t){e._insertFakeRootElement(),e.insertionMode=w.BEFORE_HEAD,e._processToken(t)}function Mv(e,t){switch(t.tagID){case g.HTML:{_n(e,t);break}case g.HEAD:{e._insertElement(t,pe.HTML),e.headElement=e.openElements.current,e.insertionMode=w.IN_HEAD;break}default:pl(e,t)}}function wv(e,t){const r=t.tagID;r===g.HEAD||r===g.BODY||r===g.HTML||r===g.BR?pl(e,t):e._err(t,ue.endTagWithoutMatchingOpenElement)}function pl(e,t){e._insertFakeElement(W.HEAD,g.HEAD),e.headElement=e.openElements.current,e.insertionMode=w.IN_HEAD,e._processToken(t)}function _r(e,t){switch(t.tagID){case g.HTML:{_n(e,t);break}case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:{e._appendElement(t,pe.HTML),t.ackSelfClosing=!0;break}case g.TITLE:{e._switchToTextParsing(t,$t.RCDATA);break}case g.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,$t.RAWTEXT):(e._insertElement(t,pe.HTML),e.insertionMode=w.IN_HEAD_NO_SCRIPT);break}case g.NOFRAMES:case g.STYLE:{e._switchToTextParsing(t,$t.RAWTEXT);break}case g.SCRIPT:{e._switchToTextParsing(t,$t.SCRIPT_DATA);break}case g.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=w.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(w.IN_TEMPLATE);break}case g.HEAD:{e._err(t,ue.misplacedStartTagForHeadElement);break}default:ml(e,t)}}function Bv(e,t){switch(t.tagID){case g.HEAD:{e.openElements.pop(),e.insertionMode=w.AFTER_HEAD;break}case g.BODY:case g.BR:case g.HTML:{ml(e,t);break}case g.TEMPLATE:{ri(e,t);break}default:e._err(t,ue.endTagWithoutMatchingOpenElement)}}function ri(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==g.TEMPLATE&&e._err(t,ue.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,ue.endTagWithoutMatchingOpenElement)}function ml(e,t){e.openElements.pop(),e.insertionMode=w.AFTER_HEAD,e._processToken(t)}function Pv(e,t){switch(t.tagID){case g.HTML:{_n(e,t);break}case g.BASEFONT:case g.BGSOUND:case g.HEAD:case g.LINK:case g.META:case g.NOFRAMES:case g.STYLE:{_r(e,t);break}case g.NOSCRIPT:{e._err(t,ue.nestedNoscriptInHead);break}default:gl(e,t)}}function Uv(e,t){switch(t.tagID){case g.NOSCRIPT:{e.openElements.pop(),e.insertionMode=w.IN_HEAD;break}case g.BR:{gl(e,t);break}default:e._err(t,ue.endTagWithoutMatchingOpenElement)}}function gl(e,t){const r=t.type===Je.EOF?ue.openElementsLeftAfterEof:ue.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=w.IN_HEAD,e._processToken(t)}function Hv(e,t){switch(t.tagID){case g.HTML:{_n(e,t);break}case g.BODY:{e._insertElement(t,pe.HTML),e.framesetOk=!1,e.insertionMode=w.IN_BODY;break}case g.FRAMESET:{e._insertElement(t,pe.HTML),e.insertionMode=w.IN_FRAMESET;break}case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:case g.NOFRAMES:case g.SCRIPT:case g.STYLE:case g.TEMPLATE:case g.TITLE:{e._err(t,ue.abandonedHeadElementChild),e.openElements.push(e.headElement,g.HEAD),_r(e,t),e.openElements.remove(e.headElement);break}case g.HEAD:{e._err(t,ue.misplacedStartTagForHeadElement);break}default:bl(e,t)}}function Fv(e,t){switch(t.tagID){case g.BODY:case g.HTML:case g.BR:{bl(e,t);break}case g.TEMPLATE:{ri(e,t);break}default:e._err(t,ue.endTagWithoutMatchingOpenElement)}}function bl(e,t){e._insertFakeElement(W.BODY,g.BODY),e.insertionMode=w.IN_BODY,ds(e,t)}function ds(e,t){switch(t.type){case Je.CHARACTER:{Gg(e,t);break}case Je.WHITESPACE_CHARACTER:{Vg(e,t);break}case Je.COMMENT:{_d(e,t);break}case Je.START_TAG:{_n(e,t);break}case Je.END_TAG:{hs(e,t);break}case Je.EOF:{Zg(e,t);break}}}function Vg(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Gg(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function zv(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Yv(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function jv(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,pe.HTML),e.insertionMode=w.IN_FRAMESET)}function qv(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,pe.HTML)}function Vv(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Td.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,pe.HTML)}function Gv(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,pe.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function $v(e,t){const r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,pe.HTML),r||(e.formElement=e.openElements.current))}function Xv(e,t){e.framesetOk=!1;const r=t.tagID;for(let i=e.openElements.stackTop;i>=0;i--){const l=e.openElements.tagIDs[i];if(r===g.LI&&l===g.LI||(r===g.DD||r===g.DT)&&(l===g.DD||l===g.DT)){e.openElements.generateImpliedEndTagsWithExclusion(l),e.openElements.popUntilTagNamePopped(l);break}if(l!==g.ADDRESS&&l!==g.DIV&&l!==g.P&&e._isSpecialElement(e.openElements.items[i],l))break}e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,pe.HTML)}function Qv(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,pe.HTML),e.tokenizer.state=$t.PLAINTEXT}function Kv(e,t){e.openElements.hasInScope(g.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML),e.framesetOk=!1}function Wv(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(W.A);r&&(Ad(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Zv(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Jv(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(g.NOBR)&&(Ad(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function e5(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function t5(e,t){e.treeAdapter.getDocumentMode(e.document)!==cr.QUIRKS&&e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,pe.HTML),e.framesetOk=!1,e.insertionMode=w.IN_TABLE}function $g(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,pe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Xg(e){const t=vg(e,ni.TYPE);return t!=null&&t.toLowerCase()===yv}function n5(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,pe.HTML),Xg(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function r5(e,t){e._appendElement(t,pe.HTML),t.ackSelfClosing=!0}function a5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._appendElement(t,pe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function i5(e,t){t.tagName=W.IMG,t.tagID=g.IMG,$g(e,t)}function u5(e,t){e._insertElement(t,pe.HTML),e.skipNextNewLine=!0,e.tokenizer.state=$t.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=w.TEXT}function l5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,$t.RAWTEXT)}function o5(e,t){e.framesetOk=!1,e._switchToTextParsing(t,$t.RAWTEXT)}function Qg(e,t){e._switchToTextParsing(t,$t.RAWTEXT)}function s5(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===w.IN_TABLE||e.insertionMode===w.IN_CAPTION||e.insertionMode===w.IN_TABLE_BODY||e.insertionMode===w.IN_ROW||e.insertionMode===w.IN_CELL?w.IN_SELECT_IN_TABLE:w.IN_SELECT}function c5(e,t){e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML)}function f5(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,pe.HTML)}function d5(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(g.RTC),e._insertElement(t,pe.HTML)}function h5(e,t){e._reconstructActiveFormattingElements(),Fg(t),Cd(t),t.selfClosing?e._appendElement(t,pe.MATHML):e._insertElement(t,pe.MATHML),t.ackSelfClosing=!0}function p5(e,t){e._reconstructActiveFormattingElements(),zg(t),Cd(t),t.selfClosing?e._appendElement(t,pe.SVG):e._insertElement(t,pe.SVG),t.ackSelfClosing=!0}function Kg(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML)}function _n(e,t){switch(t.tagID){case g.I:case g.S:case g.B:case g.U:case g.EM:case g.TT:case g.BIG:case g.CODE:case g.FONT:case g.SMALL:case g.STRIKE:case g.STRONG:{Zv(e,t);break}case g.A:{Wv(e,t);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{Vv(e,t);break}case g.P:case g.DL:case g.OL:case g.UL:case g.DIV:case g.DIR:case g.NAV:case g.MAIN:case g.MENU:case g.ASIDE:case g.CENTER:case g.FIGURE:case g.FOOTER:case g.HEADER:case g.HGROUP:case g.DIALOG:case g.DETAILS:case g.ADDRESS:case g.ARTICLE:case g.SEARCH:case g.SECTION:case g.SUMMARY:case g.FIELDSET:case g.BLOCKQUOTE:case g.FIGCAPTION:{qv(e,t);break}case g.LI:case g.DD:case g.DT:{Xv(e,t);break}case g.BR:case g.IMG:case g.WBR:case g.AREA:case g.EMBED:case g.KEYGEN:{$g(e,t);break}case g.HR:{a5(e,t);break}case g.RB:case g.RTC:{f5(e,t);break}case g.RT:case g.RP:{d5(e,t);break}case g.PRE:case g.LISTING:{Gv(e,t);break}case g.XMP:{l5(e,t);break}case g.SVG:{p5(e,t);break}case g.HTML:{zv(e,t);break}case g.BASE:case g.LINK:case g.META:case g.STYLE:case g.TITLE:case g.SCRIPT:case g.BGSOUND:case g.BASEFONT:case g.TEMPLATE:{_r(e,t);break}case g.BODY:{Yv(e,t);break}case g.FORM:{$v(e,t);break}case g.NOBR:{Jv(e,t);break}case g.MATH:{h5(e,t);break}case g.TABLE:{t5(e,t);break}case g.INPUT:{n5(e,t);break}case g.PARAM:case g.TRACK:case g.SOURCE:{r5(e,t);break}case g.IMAGE:{i5(e,t);break}case g.BUTTON:{Kv(e,t);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{e5(e,t);break}case g.IFRAME:{o5(e,t);break}case g.SELECT:{s5(e,t);break}case g.OPTION:case g.OPTGROUP:{c5(e,t);break}case g.NOEMBED:case g.NOFRAMES:{Qg(e,t);break}case g.FRAMESET:{jv(e,t);break}case g.TEXTAREA:{u5(e,t);break}case g.NOSCRIPT:{e.options.scriptingEnabled?Qg(e,t):Kg(e,t);break}case g.PLAINTEXT:{Qv(e,t);break}case g.COL:case g.TH:case g.TD:case g.TR:case g.HEAD:case g.FRAME:case g.TBODY:case g.TFOOT:case g.THEAD:case g.CAPTION:case g.COLGROUP:break;default:Kg(e,t)}}function m5(e,t){if(e.openElements.hasInScope(g.BODY)&&(e.insertionMode=w.AFTER_BODY,e.options.sourceCodeLocationInfo)){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function g5(e,t){e.openElements.hasInScope(g.BODY)&&(e.insertionMode=w.AFTER_BODY,ub(e,t))}function b5(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function E5(e){const t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(g.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(g.FORM):r&&e.openElements.remove(r))}function y5(e){e.openElements.hasInButtonScope(g.P)||e._insertFakeElement(W.P,g.P),e._closePElement()}function T5(e){e.openElements.hasInListItemScope(g.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(g.LI),e.openElements.popUntilTagNamePopped(g.LI))}function S5(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function C5(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function A5(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function _5(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(W.BR,g.BR),e.openElements.pop(),e.framesetOk=!1}function Wg(e,t){const r=t.tagName,i=t.tagID;for(let l=e.openElements.stackTop;l>0;l--){const s=e.openElements.items[l],c=e.openElements.tagIDs[l];if(i===c&&(i!==g.UNKNOWN||e.treeAdapter.getTagName(s)===r)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.stackTop>=l&&e.openElements.shortenToLength(l);break}if(e._isSpecialElement(s,c))break}}function hs(e,t){switch(t.tagID){case g.A:case g.B:case g.I:case g.S:case g.U:case g.EM:case g.TT:case g.BIG:case g.CODE:case g.FONT:case g.NOBR:case g.SMALL:case g.STRIKE:case g.STRONG:{Ad(e,t);break}case g.P:{y5(e);break}case g.DL:case g.UL:case g.OL:case g.DIR:case g.DIV:case g.NAV:case g.PRE:case g.MAIN:case g.MENU:case g.ASIDE:case g.BUTTON:case g.CENTER:case g.FIGURE:case g.FOOTER:case g.HEADER:case g.HGROUP:case g.DIALOG:case g.ADDRESS:case g.ARTICLE:case g.DETAILS:case g.SEARCH:case g.SECTION:case g.SUMMARY:case g.LISTING:case g.FIELDSET:case g.BLOCKQUOTE:case g.FIGCAPTION:{b5(e,t);break}case g.LI:{T5(e);break}case g.DD:case g.DT:{S5(e,t);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{C5(e);break}case g.BR:{_5(e);break}case g.BODY:{m5(e,t);break}case g.HTML:{g5(e,t);break}case g.FORM:{E5(e);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{A5(e,t);break}case g.TEMPLATE:{ri(e,t);break}default:Wg(e,t)}}function Zg(e,t){e.tmplInsertionModeStack.length>0?ib(e,t):xd(e,t)}function x5(e,t){var r;t.tagID===g.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function v5(e,t){e._err(t,ue.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function vd(e,t){if(e.openElements.currentTagId!==void 0&&Yg.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=w.IN_TABLE_TEXT,t.type){case Je.CHARACTER:{eb(e,t);break}case Je.WHITESPACE_CHARACTER:{Jg(e,t);break}}else yl(e,t)}function R5(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,pe.HTML),e.insertionMode=w.IN_CAPTION}function N5(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,pe.HTML),e.insertionMode=w.IN_COLUMN_GROUP}function O5(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(W.COLGROUP,g.COLGROUP),e.insertionMode=w.IN_COLUMN_GROUP,Rd(e,t)}function I5(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,pe.HTML),e.insertionMode=w.IN_TABLE_BODY}function D5(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(W.TBODY,g.TBODY),e.insertionMode=w.IN_TABLE_BODY,ms(e,t)}function k5(e,t){e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function L5(e,t){Xg(t)?e._appendElement(t,pe.HTML):yl(e,t),t.ackSelfClosing=!0}function M5(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,pe.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Qi(e,t){switch(t.tagID){case g.TD:case g.TH:case g.TR:{D5(e,t);break}case g.STYLE:case g.SCRIPT:case g.TEMPLATE:{_r(e,t);break}case g.COL:{O5(e,t);break}case g.FORM:{M5(e,t);break}case g.TABLE:{k5(e,t);break}case g.TBODY:case g.TFOOT:case g.THEAD:{I5(e,t);break}case g.INPUT:{L5(e,t);break}case g.CAPTION:{R5(e,t);break}case g.COLGROUP:{N5(e,t);break}default:yl(e,t)}}function El(e,t){switch(t.tagID){case g.TABLE:{e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode());break}case g.TEMPLATE:{ri(e,t);break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:case g.TBODY:case g.TD:case g.TFOOT:case g.TH:case g.THEAD:case g.TR:break;default:yl(e,t)}}function yl(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,ds(e,t),e.fosterParentingEnabled=r}function Jg(e,t){e.pendingCharacterTokens.push(t)}function eb(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Tl(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)yl(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const tb=new Set([g.CAPTION,g.COL,g.COLGROUP,g.TBODY,g.TD,g.TFOOT,g.TH,g.THEAD,g.TR]);function w5(e,t){const r=t.tagID;tb.has(r)?e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=w.IN_TABLE,Qi(e,t)):_n(e,t)}function B5(e,t){const r=t.tagID;switch(r){case g.CAPTION:case g.TABLE:{e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=w.IN_TABLE,r===g.TABLE&&El(e,t));break}case g.BODY:case g.COL:case g.COLGROUP:case g.HTML:case g.TBODY:case g.TD:case g.TFOOT:case g.TH:case g.THEAD:case g.TR:break;default:hs(e,t)}}function Rd(e,t){switch(t.tagID){case g.HTML:{_n(e,t);break}case g.COL:{e._appendElement(t,pe.HTML),t.ackSelfClosing=!0;break}case g.TEMPLATE:{_r(e,t);break}default:ps(e,t)}}function P5(e,t){switch(t.tagID){case g.COLGROUP:{e.openElements.currentTagId===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=w.IN_TABLE);break}case g.TEMPLATE:{ri(e,t);break}case g.COL:break;default:ps(e,t)}}function ps(e,t){e.openElements.currentTagId===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=w.IN_TABLE,e._processToken(t))}function ms(e,t){switch(t.tagID){case g.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,pe.HTML),e.insertionMode=w.IN_ROW;break}case g.TH:case g.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(W.TR,g.TR),e.insertionMode=w.IN_ROW,gs(e,t);break}case g.CAPTION:case g.COL:case g.COLGROUP:case g.TBODY:case g.TFOOT:case g.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE,Qi(e,t));break}default:Qi(e,t)}}function Nd(e,t){const r=t.tagID;switch(t.tagID){case g.TBODY:case g.TFOOT:case g.THEAD:{e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE);break}case g.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE,El(e,t));break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:case g.TD:case g.TH:case g.TR:break;default:El(e,t)}}function gs(e,t){switch(t.tagID){case g.TH:case g.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,pe.HTML),e.insertionMode=w.IN_CELL,e.activeFormattingElements.insertMarker();break}case g.CAPTION:case g.COL:case g.COLGROUP:case g.TBODY:case g.TFOOT:case g.THEAD:case g.TR:{e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE_BODY,ms(e,t));break}default:Qi(e,t)}}function nb(e,t){switch(t.tagID){case g.TR:{e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE_BODY);break}case g.TABLE:{e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE_BODY,Nd(e,t));break}case g.TBODY:case g.TFOOT:case g.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(g.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE_BODY,Nd(e,t));break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:case g.TD:case g.TH:break;default:El(e,t)}}function U5(e,t){const r=t.tagID;tb.has(r)?(e.openElements.hasInTableScope(g.TD)||e.openElements.hasInTableScope(g.TH))&&(e._closeTableCell(),gs(e,t)):_n(e,t)}function H5(e,t){const r=t.tagID;switch(r){case g.TD:case g.TH:{e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=w.IN_ROW);break}case g.TABLE:case g.TBODY:case g.TFOOT:case g.THEAD:case g.TR:{e.openElements.hasInTableScope(r)&&(e._closeTableCell(),nb(e,t));break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:break;default:hs(e,t)}}function rb(e,t){switch(t.tagID){case g.HTML:{_n(e,t);break}case g.OPTION:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e._insertElement(t,pe.HTML);break}case g.OPTGROUP:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e.openElements.currentTagId===g.OPTGROUP&&e.openElements.pop(),e._insertElement(t,pe.HTML);break}case g.HR:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e.openElements.currentTagId===g.OPTGROUP&&e.openElements.pop(),e._appendElement(t,pe.HTML),t.ackSelfClosing=!0;break}case g.INPUT:case g.KEYGEN:case g.TEXTAREA:case g.SELECT:{e.openElements.hasInSelectScope(g.SELECT)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),t.tagID!==g.SELECT&&e._processStartTag(t));break}case g.SCRIPT:case g.TEMPLATE:{_r(e,t);break}}}function ab(e,t){switch(t.tagID){case g.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===g.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===g.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===g.OPTGROUP&&e.openElements.pop();break}case g.OPTION:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop();break}case g.SELECT:{e.openElements.hasInSelectScope(g.SELECT)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode());break}case g.TEMPLATE:{ri(e,t);break}}}function F5(e,t){const r=t.tagID;r===g.CAPTION||r===g.TABLE||r===g.TBODY||r===g.TFOOT||r===g.THEAD||r===g.TR||r===g.TD||r===g.TH?(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e._processStartTag(t)):rb(e,t)}function z5(e,t){const r=t.tagID;r===g.CAPTION||r===g.TABLE||r===g.TBODY||r===g.TFOOT||r===g.THEAD||r===g.TR||r===g.TD||r===g.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e.onEndTag(t)):ab(e,t)}function Y5(e,t){switch(t.tagID){case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:case g.NOFRAMES:case g.SCRIPT:case g.STYLE:case g.TEMPLATE:case g.TITLE:{_r(e,t);break}case g.CAPTION:case g.COLGROUP:case g.TBODY:case g.TFOOT:case g.THEAD:{e.tmplInsertionModeStack[0]=w.IN_TABLE,e.insertionMode=w.IN_TABLE,Qi(e,t);break}case g.COL:{e.tmplInsertionModeStack[0]=w.IN_COLUMN_GROUP,e.insertionMode=w.IN_COLUMN_GROUP,Rd(e,t);break}case g.TR:{e.tmplInsertionModeStack[0]=w.IN_TABLE_BODY,e.insertionMode=w.IN_TABLE_BODY,ms(e,t);break}case g.TD:case g.TH:{e.tmplInsertionModeStack[0]=w.IN_ROW,e.insertionMode=w.IN_ROW,gs(e,t);break}default:e.tmplInsertionModeStack[0]=w.IN_BODY,e.insertionMode=w.IN_BODY,_n(e,t)}}function j5(e,t){t.tagID===g.TEMPLATE&&ri(e,t)}function ib(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):xd(e,t)}function q5(e,t){t.tagID===g.HTML?_n(e,t):bs(e,t)}function ub(e,t){var r;if(t.tagID===g.HTML){if(e.fragmentContext||(e.insertionMode=w.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===g.HTML){e._setEndLocation(e.openElements.items[0],t);const i=e.openElements.items[1];i&&!(!((r=e.treeAdapter.getNodeSourceCodeLocation(i))===null||r===void 0)&&r.endTag)&&e._setEndLocation(i,t)}}else bs(e,t)}function bs(e,t){e.insertionMode=w.IN_BODY,ds(e,t)}function V5(e,t){switch(t.tagID){case g.HTML:{_n(e,t);break}case g.FRAMESET:{e._insertElement(t,pe.HTML);break}case g.FRAME:{e._appendElement(t,pe.HTML),t.ackSelfClosing=!0;break}case g.NOFRAMES:{_r(e,t);break}}}function G5(e,t){t.tagID===g.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==g.FRAMESET&&(e.insertionMode=w.AFTER_FRAMESET))}function $5(e,t){switch(t.tagID){case g.HTML:{_n(e,t);break}case g.NOFRAMES:{_r(e,t);break}}}function X5(e,t){t.tagID===g.HTML&&(e.insertionMode=w.AFTER_AFTER_FRAMESET)}function Q5(e,t){t.tagID===g.HTML?_n(e,t):Es(e,t)}function Es(e,t){e.insertionMode=w.IN_BODY,ds(e,t)}function K5(e,t){switch(t.tagID){case g.HTML:{_n(e,t);break}case g.NOFRAMES:{_r(e,t);break}}}function W5(e,t){t.chars=Ht,e._insertCharacters(t)}function Z5(e,t){e._insertCharacters(t),e.framesetOk=!1}function lb(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==pe.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function J5(e,t){if(pv(t))lb(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(r);i===pe.MATHML?Fg(t):i===pe.SVG&&(mv(t),zg(t)),Cd(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i),t.ackSelfClosing=!0}}function e8(e,t){if(t.tagID===g.P||t.tagID===g.BR){lb(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(i)===pe.HTML){e._endTagOutsideForeignContent(t);break}const l=e.treeAdapter.getTagName(i);if(l.toLowerCase()===t.tagName){t.tagName=l,e.openElements.shortenToLength(r);break}}}W.AREA,W.BASE,W.BASEFONT,W.BGSOUND,W.BR,W.COL,W.EMBED,W.FRAME,W.HR,W.IMG,W.INPUT,W.KEYGEN,W.LINK,W.META,W.PARAM,W.SOURCE,W.TRACK,W.WBR;const t8=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,n8=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),ob={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function sb(e,t){const r=d8(e),i=Sg("type",{handlers:{root:r8,element:a8,text:i8,comment:fb,doctype:u8,raw:o8},unknown:s8}),l={parser:r?new qg(ob):qg.getFragmentParser(void 0,ob),handle(d){i(d,l)},stitches:!1,options:t||{}};i(e,l),Ki(l,kr());const s=r?l.parser.document:l.parser.getFragment(),c=rx(s,{file:l.options.file});return l.stitches&&Jf(c,"comment",function(d,p,m){const b=d;if(b.value.stitch&&m&&p!==void 0){const E=m.children;return E[p]=b.value.stitch,p}}),c.type==="root"&&c.children.length===1&&c.children[0].type===e.type?c.children[0]:c}function cb(e,t){let r=-1;if(e)for(;++r<e.length;)t.handle(e[r])}function r8(e,t){cb(e.children,t)}function a8(e,t){c8(e,t),cb(e.children,t),f8(e,t)}function i8(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const r={type:Je.CHARACTER,chars:e.value,location:Sl(e)};Ki(t,kr(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function u8(e,t){const r={type:Je.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Sl(e)};Ki(t,kr(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function l8(e,t){t.stitches=!0;const r=h8(e);if("children"in e&&"children"in r){const i=sb({type:"root",children:e.children},t.options);r.children=i.children}fb({type:"comment",value:{stitch:r}},t)}function fb(e,t){const r=e.value,i={type:Je.COMMENT,data:r,location:Sl(e)};Ki(t,kr(e)),t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken)}function o8(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,db(t,kr(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(t8,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const r=t.parser.tokenizer._consume();t.parser.tokenizer._callState(r)}}function s8(e,t){const r=e;if(t.options.passThrough&&t.options.passThrough.includes(r.type))l8(r,t);else{let i="";throw n8.has(r.type)&&(i=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+r.type+"` node"+i)}}function Ki(e,t){db(e,t);const r=e.parser.tokenizer.currentCharacterToken;r&&r.location&&(r.location.endLine=e.parser.tokenizer.preprocessor.line,r.location.endCol=e.parser.tokenizer.preprocessor.col+1,r.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=$t.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function db(e,t){if(t&&t.offset!==void 0){const r={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=r}}function c8(e,t){const r=e.tagName.toLowerCase();if(t.parser.tokenizer.state===$t.PLAINTEXT)return;Ki(t,kr(e));const i=t.parser.openElements.current;let l="namespaceURI"in i?i.namespaceURI:ei.html;l===ei.html&&r==="svg"&&(l=ei.svg);const s=Ex({...e,children:[]},{space:l===ei.svg?"svg":"html"}),c={type:Je.START_TAG,tagName:r,tagID:Xi(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in s?s.attrs:[],location:Sl(e)};t.parser.currentToken=c,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r}function f8(e,t){const r=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&vx.includes(r)||t.parser.tokenizer.state===$t.PLAINTEXT)return;Ki(t,es(e));const i={type:Je.END_TAG,tagName:r,tagID:Xi(r),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Sl(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),r===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===$t.RCDATA||t.parser.tokenizer.state===$t.RAWTEXT||t.parser.tokenizer.state===$t.SCRIPT_DATA)&&(t.parser.tokenizer.state=$t.DATA)}function d8(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Sl(e){const t=kr(e)||{line:void 0,column:void 0,offset:void 0},r=es(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:r.line,endCol:r.column,endOffset:r.offset}}function h8(e){return"children"in e?ji({...e,children:[]}):ji(e)}function p8(e){return function(t,r){return sb(t,{...e,file:r})}}const m8=({color:e="currentColor",size:t=24,className:r,...i})=>Ot.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},Ot.createElement("path",{d:"M7.82843 10.9999H20V12.9999H7.82843L13.1924 18.3638L11.7782 19.778L4 11.9999L11.7782 4.22168L13.1924 5.63589L7.82843 10.9999Z"})),g8=({color:e="currentColor",size:t=24,className:r,...i})=>Ot.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},Ot.createElement("path",{d:"M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z"})),hb=({color:e="currentColor",size:t=24,className:r,...i})=>Ot.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},Ot.createElement("path",{d:"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"})),b8=({color:e="currentColor",size:t=24,className:r,...i})=>Ot.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},Ot.createElement("path",{d:"M5 10C3.9 10 3 10.9 3 12C3 13.1 3.9 14 5 14C6.1 14 7 13.1 7 12C7 10.9 6.1 10 5 10ZM19 10C17.9 10 17 10.9 17 12C17 13.1 17.9 14 19 14C20.1 14 21 13.1 21 12C21 10.9 20.1 10 19 10ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10Z"})),pb=({color:e="currentColor",size:t=24,className:r,...i})=>Ot.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},Ot.createElement("path",{d:"M1.94607 9.31543C1.42353 9.14125 1.4194 8.86022 1.95682 8.68108L21.043 2.31901C21.5715 2.14285 21.8746 2.43866 21.7265 2.95694L16.2733 22.0432C16.1223 22.5716 15.8177 22.59 15.5944 22.0876L11.9999 14L17.9999 6.00005L9.99992 12L1.94607 9.31543Z"})),E8=({color:e="currentColor",size:t=24,className:r,...i})=>Ot.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},Ot.createElement("path",{d:"M6 5H18C18.5523 5 19 5.44772 19 6V18C19 18.5523 18.5523 19 18 19H6C5.44772 19 5 18.5523 5 18V6C5 5.44772 5.44772 5 6 5Z"})),Od=({color:e="currentColor",size:t=24,className:r,...i})=>Ot.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},Ot.createElement("path",{d:"M17.0007 1.20825 18.3195 3.68108 20.7923 4.99992 18.3195 6.31876 17.0007 8.79159 15.6818 6.31876 13.209 4.99992 15.6818 3.68108 17.0007 1.20825ZM10.6673 9.33325 15.6673 11.9999 10.6673 14.6666 8.00065 19.6666 5.33398 14.6666.333984 11.9999 5.33398 9.33325 8.00065 4.33325 10.6673 9.33325ZM11.4173 11.9999 9.18905 10.8115 8.00065 8.58325 6.81224 10.8115 4.58398 11.9999 6.81224 13.1883 8.00065 15.4166 9.18905 13.1883 11.4173 11.9999ZM19.6673 16.3333 18.0007 13.2083 16.334 16.3333 13.209 17.9999 16.334 19.6666 18.0007 22.7916 19.6673 19.6666 22.7923 17.9999 19.6673 16.3333Z"}));function mb(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(r=mb(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function tt(){for(var e,t,r=0,i="",l=arguments.length;r<l;r++)(e=arguments[r])&&(t=mb(e))&&(i&&(i+=" "),i+=t);return i}function On(e,t,r=void 0){const i={};for(const l in e){const s=e[l];let c="",d=!0;for(let p=0;p<s.length;p+=1){const m=s[p];m&&(c+=(d===!0?"":" ")+t(m),d=!1,r&&r[m]&&(c+=" "+r[m]))}i[l]=c}return i}const gb=A.createContext();function y8({value:e,...t}){return he.jsx(gb.Provider,{value:e??!0,...t})}const Id=()=>A.useContext(gb)??!1;var Dd={exports:{}},xt={};/**
|
|
68
|
+
`}),r}function ng(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function rg(e,t){const r=L_(e,t),i=r.one(e,void 0),o=__(r),s=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return o&&s.children.push({type:"text",value:`
|
|
69
|
+
`},o),s}function H_(e,t){return e&&"run"in e?async function(r,i){const o=rg(r,{file:i,...t});await e.run(o,i)}:function(r,i){return rg(r,{file:i,...e||t})}}function ag(e){if(e)throw e}var od,ig;function F_(){if(ig)return od;ig=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(p){return typeof Array.isArray=="function"?Array.isArray(p):t.call(p)==="[object Array]"},s=function(p){if(!p||t.call(p)!=="[object Object]")return!1;var b=e.call(p,"constructor"),E=p.constructor&&p.constructor.prototype&&e.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!b&&!E)return!1;var T;for(T in p);return typeof T>"u"||e.call(p,T)},c=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},d=function(p,b){if(b==="__proto__")if(e.call(p,b)){if(i)return i(p,b).value}else return;return p[b]};return od=function h(){var p,b,E,T,y,v,x=arguments[0],B=1,O=arguments.length,P=!1;for(typeof x=="boolean"&&(P=x,x=arguments[1]||{},B=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});B<O;++B)if(p=arguments[B],p!=null)for(b in p)E=d(x,b),T=d(p,b),x!==T&&(P&&T&&(s(T)||(y=o(T)))?(y?(y=!1,v=E&&o(E)?E:[]):v=E&&s(E)?E:{},c(x,{name:b,newValue:h(P,v,T)})):typeof T<"u"&&c(x,{name:b,newValue:T}));return x},od}var z_=F_();const ld=or(z_);function sd(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Y_(){const e=[],t={run:r,use:i};return t;function r(...o){let s=-1;const c=o.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...o);function d(h,...p){const b=e[++s];let E=-1;if(h){c(h);return}for(;++E<o.length;)(p[E]===null||p[E]===void 0)&&(p[E]=o[E]);o=p,b?j_(b,d)(...p):c(null,...p)}}function i(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function j_(e,t){let r;return i;function i(...c){const d=e.length>c.length;let h;d&&c.push(o);try{h=e.apply(this,c)}catch(p){const b=p;if(d&&r)throw b;return o(b)}d||(h&&h.then&&typeof h.then=="function"?h.then(s,o):h instanceof Error?o(h):s(h))}function o(c,...d){r||(r=!0,t(c,...d))}function s(c){o(null,c)}}const Mr={basename:q_,dirname:V_,extname:G_,join:$_,sep:"/"};function q_(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');fo(e);let r=0,i=-1,o=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(s){r=o+1;break}}else i<0&&(s=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let c=-1,d=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(s){r=o+1;break}}else c<0&&(s=!0,c=o+1),d>-1&&(e.codePointAt(o)===t.codePointAt(d--)?d<0&&(i=o):(d=-1,i=c));return r===i?i=c:i<0&&(i=e.length),e.slice(r,i)}function V_(e){if(fo(e),e.length===0)return".";let t=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){t=r;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function G_(e){fo(e);let t=e.length,r=-1,i=0,o=-1,s=0,c;for(;t--;){const d=e.codePointAt(t);if(d===47){if(c){i=t+1;break}continue}r<0&&(c=!0,r=t+1),d===46?o<0?o=t:s!==1&&(s=1):o>-1&&(s=-1)}return o<0||r<0||s===0||s===1&&o===r-1&&o===i+1?"":e.slice(o,r)}function $_(...e){let t=-1,r;for(;++t<e.length;)fo(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":X_(r)}function X_(e){fo(e);const t=e.codePointAt(0)===47;let r=Q_(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function Q_(e,t){let r="",i=0,o=-1,s=0,c=-1,d,h;for(;++c<=e.length;){if(c<e.length)d=e.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(o===c-1||s===1))if(o!==c-1&&s===2){if(r.length<2||i!==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="",i=0):(r=r.slice(0,h),i=r.length-1-r.lastIndexOf("/")),o=c,s=0;continue}}else if(r.length>0){r="",i=0,o=c,s=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(o+1,c):r=e.slice(o+1,c),i=c-o-1;o=c,s=0}else d===46&&s>-1?s++:s=-1}return r}function fo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const K_={cwd:W_};function W_(){return"/"}function cd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Z_(e){if(typeof e=="string")e=new URL(e);else if(!cd(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return J_(e)}function J_(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const i=t.codePointAt(r+2);if(i===70||i===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const fd=["history","path","basename","stem","extname","dirname"];class ug{constructor(t){let r;t?cd(t)?r={path:t}:typeof t=="string"||e4(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":K_.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<fd.length;){const s=fd[i];s in r&&r[s]!==void 0&&r[s]!==null&&(this[s]=s==="history"?[...r[s]]:r[s])}let o;for(o in r)fd.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?Mr.basename(this.path):void 0}set basename(t){hd(t,"basename"),dd(t,"basename"),this.path=Mr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Mr.dirname(this.path):void 0}set dirname(t){og(this.basename,"dirname"),this.path=Mr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Mr.extname(this.path):void 0}set extname(t){if(dd(t,"extname"),og(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Mr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){cd(t)&&(t=Z_(t)),hd(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Mr.basename(this.path,this.extname):void 0}set stem(t){hd(t,"stem"),dd(t,"stem"),this.path=Mr.join(this.dirname||"",t+(this.extname||""))}fail(t,r,i){const o=this.message(t,r,i);throw o.fatal=!0,o}info(t,r,i){const o=this.message(t,r,i);return o.fatal=void 0,o}message(t,r,i){const o=new An(t,r,i);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function dd(e,t){if(e&&e.includes(Mr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Mr.sep+"`")}function hd(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function og(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function e4(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const t4=function(e){const i=this.constructor.prototype,o=i[e],s=function(){return o.apply(s,arguments)};return Object.setPrototypeOf(s,i),s},n4={}.hasOwnProperty;class pd extends t4{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=Y_()}copy(){const t=new pd;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];t.use(...i)}return t.data(ld(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(bd("data",this.frozen),this.namespace[t]=r,this):n4.call(this.namespace,t)&&this.namespace[t]||void 0:t?(bd("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const o=r.call(t,...i);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=hs(t),i=this.parser||this.Parser;return md("parse",i),i(String(r),r)}process(t,r){const i=this;return this.freeze(),md("process",this.parser||this.Parser),gd("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(s,c){const d=hs(t),h=i.parse(d);i.run(h,d,function(b,E,T){if(b||!E||!T)return p(b);const y=E,v=i.stringify(y,T);i4(v)?T.value=v:T.result=v,p(b,T)});function p(b,E){b||!E?c(b):s?s(E):r(void 0,E)}}}processSync(t){let r=!1,i;return this.freeze(),md("processSync",this.parser||this.Parser),gd("processSync",this.compiler||this.Compiler),this.process(t,o),sg("processSync","process",r),i;function o(s,c){r=!0,ag(s),i=c}}run(t,r,i){lg(t),this.freeze();const o=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?s(void 0,i):new Promise(s);function s(c,d){const h=hs(r);o.run(t,h,p);function p(b,E,T){const y=E||t;b?d(b):c?c(y):i(void 0,y,T)}}}runSync(t,r){let i=!1,o;return this.run(t,r,s),sg("runSync","run",i),o;function s(c,d){ag(c),o=d,i=!0}}stringify(t,r){this.freeze();const i=hs(r),o=this.compiler||this.Compiler;return gd("stringify",o),lg(t),o(t,i)}use(t,...r){const i=this.attachers,o=this.namespace;if(bd("use",this.frozen),t!=null)if(typeof t=="function")h(t,r);else if(typeof t=="object")Array.isArray(t)?d(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(p){if(typeof p=="function")h(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[b,...E]=p;h(b,E)}else c(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function c(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");d(p.plugins),p.settings&&(o.settings=ld(!0,o.settings,p.settings))}function d(p){let b=-1;if(p!=null)if(Array.isArray(p))for(;++b<p.length;){const E=p[b];s(E)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function h(p,b){let E=-1,T=-1;for(;++E<i.length;)if(i[E][0]===p){T=E;break}if(T===-1)i.push([p,...b]);else if(b.length>0){let[y,...v]=b;const x=i[T][1];sd(x)&&sd(y)&&(y=ld(!0,x,y)),i[T]=[p,y,...v]}}}}const r4=new pd().freeze();function md(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function gd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function bd(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function lg(e){if(!sd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function sg(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function hs(e){return a4(e)?e:new ug(e)}function a4(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function i4(e){return typeof e=="string"||u4(e)}function u4(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const o4="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",cg=[],fg={allowDangerousHtml:!0},l4=/^(https?|ircs?|mailto|xmpp)$/i,s4=[{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 dg(e){const t=c4(e),r=f4(e);return d4(t.runSync(t.parse(r),r),e)}function c4(e){const t=e.rehypePlugins||cg,r=e.remarkPlugins||cg,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...fg}:fg;return r4().use(Gx).use(r).use(H_,i).use(t)}function f4(e){const t=e.children||"",r=new ug;return typeof t=="string"&&(r.value=t),r}function d4(e,t){const r=t.allowedElements,i=t.allowElement,o=t.components,s=t.disallowedElements,c=t.skipHtml,d=t.unwrapDisallowed,h=t.urlTransform||h4;for(const b of s4)Object.hasOwn(t,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+o4+b.id,void 0);return id(e,p),D6(e,{Fragment:pe.Fragment,components:o,ignoreInvalidStyle:!0,jsx:pe.jsx,jsxs:pe.jsxs,passKeys:!0,passNode:!0});function p(b,E,T){if(b.type==="raw"&&T&&typeof E=="number")return c?T.children.splice(E,1):T.children[E]={type:"text",value:b.value},E;if(b.type==="element"){let y;for(y in qf)if(Object.hasOwn(qf,y)&&Object.hasOwn(b.properties,y)){const v=b.properties[y],x=qf[y];(x===null||x.includes(b.tagName))&&(b.properties[y]=h(String(v||""),y,b))}}if(b.type==="element"){let y=r?!r.includes(b.tagName):s?s.includes(b.tagName):!1;if(!y&&i&&typeof E=="number"&&(y=!i(b,E,T)),y&&T&&typeof E=="number")return d&&b.children?T.children.splice(E,1,...b.children):T.children.splice(E,1),E}}}function h4(e){const t=e.indexOf(":"),r=e.indexOf("?"),i=e.indexOf("#"),o=e.indexOf("/");return t===-1||o!==-1&&t>o||r!==-1&&t>r||i!==-1&&t>i||l4.test(e.slice(0,t))?e:""}const hg=/[#.]/g;function p4(e,t){const r=e||"",i={};let o=0,s,c;for(;o<r.length;){hg.lastIndex=o;const d=hg.exec(r),h=r.slice(o,d?d.index:r.length);h&&(s?s==="#"?i.id=h:Array.isArray(i.className)?i.className.push(h):i.className=[h]:c=h,o+=h.length),d&&(s=d[0],o++)}return{type:"element",tagName:c||t||"div",properties:i,children:[]}}function pg(e,t,r){const i=r?E4(r):void 0;function o(s,c,...d){let h;if(s==null){h={type:"root",children:[]};const p=c;d.unshift(p)}else{h=p4(s,t);const p=h.tagName.toLowerCase(),b=i?i.get(p):void 0;if(h.tagName=b||p,m4(c))d.unshift(c);else for(const[E,T]of Object.entries(c))g4(e,h.properties,E,T)}for(const p of d)Ed(h.children,p);return h.type==="element"&&h.tagName==="template"&&(h.content={type:"root",children:h.children},h.children=[]),h}return o}function m4(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const i of r){const o=t[i];if(o&&typeof o=="object"){if(!Array.isArray(o))return!0;const s=o;for(const c of s)if(typeof c!="number"&&typeof c!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function g4(e,t,r,i){const o=Uf(e,r);let s;if(i!=null){if(typeof i=="number"){if(Number.isNaN(i))return;s=i}else typeof i=="boolean"?s=i:typeof i=="string"?o.spaceSeparated?s=t1(i):o.commaSeparated?s=zm(i):o.commaOrSpaceSeparated?s=t1(zm(i).join(" ")):s=mg(o,o.property,i):Array.isArray(i)?s=[...i]:s=o.property==="style"?b4(i):String(i);if(Array.isArray(s)){const c=[];for(const d of s)c.push(mg(o,o.property,d));s=c}o.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[o.property]=s}}function Ed(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)Ed(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?Ed(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function mg(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||to(r)===to(t)))return!0}return r}function b4(e){const t=[];for(const[r,i]of Object.entries(e))t.push([r,i].join(": "));return t.join("; ")}function E4(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const y4=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],T4=pg(as,"div"),S4=pg(Fi,"g",y4);function C4(e){const t=String(e),r=[];return{toOffset:o,toPoint:i};function i(s){if(typeof s=="number"&&s>-1&&s<=t.length){let c=0;for(;;){let d=r[c];if(d===void 0){const h=gg(t,r[c-1]);d=h===-1?t.length+1:h+1,r[c]=d}if(d>s)return{line:c+1,column:s-(c>0?r[c-1]:0)+1,offset:s};c++}}}function o(s){if(s&&typeof s.line=="number"&&typeof s.column=="number"&&!Number.isNaN(s.line)&&!Number.isNaN(s.column)){for(;r.length<s.line;){const d=r[r.length-1],h=gg(t,d),p=h===-1?t.length+1:h+1;if(d===p)break;r.push(p)}const c=(s.line>1?r[s.line-2]:0)+s.column-1;if(c<r[s.line-1])return c}}}function gg(e,t){const r=e.indexOf("\r",t),i=e.indexOf(`
|
|
70
|
+
`,t);return i===-1?r:r===-1||r+1===i?i:r<i?r:i}const ti={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},bg={}.hasOwnProperty,A4=Object.prototype;function x4(e,t){const r=t||{};return yd({file:r.file||void 0,location:!1,schema:r.space==="svg"?Fi:as,verbose:r.verbose||!1},e)}function yd(e,t){let r;switch(t.nodeName){case"#comment":{const i=t;return r={type:"comment",value:i.data},ps(e,i,r),r}case"#document":case"#document-fragment":{const i=t,o="mode"in i?i.mode==="quirks"||i.mode==="limited-quirks":!1;if(r={type:"root",children:Eg(e,t.childNodes),data:{quirksMode:o}},e.file&&e.location){const s=String(e.file),c=C4(s),d=c.toPoint(0),h=c.toPoint(s.length);r.position={start:d,end:h}}return r}case"#documentType":{const i=t;return r={type:"doctype"},ps(e,i,r),r}case"#text":{const i=t;return r={type:"text",value:i.value},ps(e,i,r),r}default:return r=_4(e,t),r}}function Eg(e,t){let r=-1;const i=[];for(;++r<t.length;){const o=yd(e,t[r]);i.push(o)}return i}function _4(e,t){const r=e.schema;e.schema=t.namespaceURI===ti.svg?Fi:as;let i=-1;const o={};for(;++i<t.attrs.length;){const d=t.attrs[i],h=(d.prefix?d.prefix+":":"")+d.name;bg.call(A4,h)||(o[h]=d.value)}const c=(e.schema.space==="svg"?S4:T4)(t.tagName,o,Eg(e,t.childNodes));if(ps(e,t,c),c.tagName==="template"){const d=t,h=d.sourceCodeLocation,p=h&&h.startTag&&Gi(h.startTag),b=h&&h.endTag&&Gi(h.endTag),E=yd(e,d.content);p&&b&&e.file&&(E.position={start:p.end,end:b.start}),c.content=E}return e.schema=r,c}function ps(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const i=v4(e,r,t.sourceCodeLocation);i&&(e.location=!0,r.position=i)}}function v4(e,t,r){const i=Gi(r);if(t.type==="element"){const o=t.children[t.children.length-1];if(i&&!r.endTag&&o&&o.position&&o.position.end&&(i.end=Object.assign({},o.position.end)),e.verbose){const s={};let c;if(r.attrs)for(c in r.attrs)bg.call(r.attrs,c)&&(s[Uf(e.schema,c).property]=Gi(r.attrs[c]));r.startTag;const d=Gi(r.startTag),h=r.endTag?Gi(r.endTag):void 0,p={opening:d};h&&(p.closing=h),p.properties=s,t.data={position:p}}}return i}function Gi(e){const t=yg({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=yg({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function yg(e){return e.line&&e.column?e:void 0}class ho{constructor(t,r,i){this.property=t,this.normal=r,i&&(this.space=i)}}ho.prototype.property={},ho.prototype.normal={},ho.prototype.space=null;function Tg(e,t){const r={},i={};let o=-1;for(;++o<e.length;)Object.assign(r,e[o].property),Object.assign(i,e[o].normal);return new ho(r,i,t)}function Td(e){return e.toLowerCase()}class sr{constructor(t,r){this.property=t,this.attribute=r}}sr.prototype.space=null,sr.prototype.boolean=!1,sr.prototype.booleanish=!1,sr.prototype.overloadedBoolean=!1,sr.prototype.number=!1,sr.prototype.commaSeparated=!1,sr.prototype.spaceSeparated=!1,sr.prototype.commaOrSpaceSeparated=!1,sr.prototype.mustUseProperty=!1,sr.prototype.defined=!1;let R4=0;const Ke=ni(),Jt=ni(),Sg=ni(),ye=ni(),Mt=ni(),$i=ni(),Kn=ni();function ni(){return 2**++R4}const Sd=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ke,booleanish:Jt,commaOrSpaceSeparated:Kn,commaSeparated:$i,number:ye,overloadedBoolean:Sg,spaceSeparated:Mt},Symbol.toStringTag,{value:"Module"})),Cd=Object.keys(Sd);class Ad extends sr{constructor(t,r,i,o){let s=-1;if(super(t,r),Cg(this,"space",o),typeof i=="number")for(;++s<Cd.length;){const c=Cd[s];Cg(this,Cd[s],(i&Sd[c])===Sd[c])}}}Ad.prototype.defined=!0;function Cg(e,t,r){r&&(e[t]=r)}const N4={}.hasOwnProperty;function Xi(e){const t={},r={};let i;for(i in e.properties)if(N4.call(e.properties,i)){const o=e.properties[i],s=new Ad(i,e.transform(e.attributes||{},i),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,r[Td(i)]=i,r[Td(s.attribute)]=i}return new ho(t,r,e.space)}const Ag=Xi({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),xg=Xi({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function _g(e,t){return t in e?e[t]:t}function vg(e,t){return _g(e,t.toLowerCase())}const Rg=Xi({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:vg,properties:{xmlns:null,xmlnsXLink:null}}),Ng=Xi({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Jt,ariaAutoComplete:null,ariaBusy:Jt,ariaChecked:Jt,ariaColCount:ye,ariaColIndex:ye,ariaColSpan:ye,ariaControls:Mt,ariaCurrent:null,ariaDescribedBy:Mt,ariaDetails:null,ariaDisabled:Jt,ariaDropEffect:Mt,ariaErrorMessage:null,ariaExpanded:Jt,ariaFlowTo:Mt,ariaGrabbed:Jt,ariaHasPopup:null,ariaHidden:Jt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Mt,ariaLevel:ye,ariaLive:null,ariaModal:Jt,ariaMultiLine:Jt,ariaMultiSelectable:Jt,ariaOrientation:null,ariaOwns:Mt,ariaPlaceholder:null,ariaPosInSet:ye,ariaPressed:Jt,ariaReadOnly:Jt,ariaRelevant:null,ariaRequired:Jt,ariaRoleDescription:Mt,ariaRowCount:ye,ariaRowIndex:ye,ariaRowSpan:ye,ariaSelected:Jt,ariaSetSize:ye,ariaSort:null,ariaValueMax:ye,ariaValueMin:ye,ariaValueNow:ye,ariaValueText:null,role:null}}),O4=Xi({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:vg,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:$i,acceptCharset:Mt,accessKey:Mt,action:null,allow:null,allowFullScreen:Ke,allowPaymentRequest:Ke,allowUserMedia:Ke,alt:null,as:null,async:Ke,autoCapitalize:null,autoComplete:Mt,autoFocus:Ke,autoPlay:Ke,blocking:Mt,capture:null,charSet:null,checked:Ke,cite:null,className:Mt,cols:ye,colSpan:null,content:null,contentEditable:Jt,controls:Ke,controlsList:Mt,coords:ye|$i,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ke,defer:Ke,dir:null,dirName:null,disabled:Ke,download:Sg,draggable:Jt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ke,formTarget:null,headers:Mt,height:ye,hidden:Ke,high:ye,href:null,hrefLang:null,htmlFor:Mt,httpEquiv:Mt,id:null,imageSizes:null,imageSrcSet:null,inert:Ke,inputMode:null,integrity:null,is:null,isMap:Ke,itemId:null,itemProp:Mt,itemRef:Mt,itemScope:Ke,itemType:Mt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ke,low:ye,manifest:null,max:null,maxLength:ye,media:null,method:null,min:null,minLength:ye,multiple:Ke,muted:Ke,name:null,nonce:null,noModule:Ke,noValidate:Ke,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:Ke,optimum:ye,pattern:null,ping:Mt,placeholder:null,playsInline:Ke,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ke,referrerPolicy:null,rel:Mt,required:Ke,reversed:Ke,rows:ye,rowSpan:ye,sandbox:Mt,scope:null,scoped:Ke,seamless:Ke,selected:Ke,shadowRootClonable:Ke,shadowRootDelegatesFocus:Ke,shadowRootMode:null,shape:null,size:ye,sizes:null,slot:null,span:ye,spellCheck:Jt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ye,step:null,style:null,tabIndex:ye,target:null,title:null,translate:null,type:null,typeMustMatch:Ke,useMap:null,value:Jt,width:ye,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Mt,axis:null,background:null,bgColor:null,border:ye,borderColor:null,bottomMargin:ye,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ke,declare:Ke,event:null,face:null,frame:null,frameBorder:null,hSpace:ye,leftMargin:ye,link:null,longDesc:null,lowSrc:null,marginHeight:ye,marginWidth:ye,noResize:Ke,noHref:Ke,noShade:Ke,noWrap:Ke,object:null,profile:null,prompt:null,rev:null,rightMargin:ye,rules:null,scheme:null,scrolling:Jt,standby:null,summary:null,text:null,topMargin:ye,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ye,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ke,disableRemotePlayback:Ke,prefix:null,property:null,results:ye,security:null,unselectable:null}}),k4=Xi({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:_g,properties:{about:Kn,accentHeight:ye,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ye,amplitude:ye,arabicForm:null,ascent:ye,attributeName:null,attributeType:null,azimuth:ye,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ye,by:null,calcMode:null,capHeight:ye,className:Mt,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:ye,diffuseConstant:ye,direction:null,display:null,dur:null,divisor:ye,dominantBaseline:null,download:Ke,dx:null,dy:null,edgeMode:null,editable:null,elevation:ye,enableBackground:null,end:null,event:null,exponent:ye,externalResourcesRequired:null,fill:null,fillOpacity:ye,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:$i,g2:$i,glyphName:$i,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ye,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ye,horizOriginX:ye,horizOriginY:ye,id:null,ideographic:ye,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ye,k:ye,k1:ye,k2:ye,k3:ye,k4:ye,kernelMatrix:Kn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ye,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ye,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:ye,overlineThickness:ye,paintOrder:null,panose1:null,path:null,pathLength:ye,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Mt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ye,pointsAtY:ye,pointsAtZ:ye,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Kn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Kn,rev:Kn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Kn,requiredFeatures:Kn,requiredFonts:Kn,requiredFormats:Kn,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:ye,specularExponent:ye,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ye,strikethroughThickness:ye,string:null,stroke:null,strokeDashArray:Kn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ye,strokeOpacity:ye,strokeWidth:null,style:null,surfaceScale:ye,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Kn,tabIndex:ye,tableValues:null,target:null,targetX:ye,targetY:ye,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Kn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ye,underlineThickness:ye,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ye,values:null,vAlphabetic:ye,vMathematical:ye,vectorEffect:null,vHanging:ye,vIdeographic:ye,version:null,vertAdvY:ye,vertOriginX:ye,vertOriginY:ye,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ye,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),I4=/^data[-\w.:]+$/i,Og=/-[a-z]/g,D4=/[A-Z]/g;function w4(e,t){const r=Td(t);let i=t,o=sr;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&I4.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(Og,M4);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!Og.test(s)){let c=s.replace(D4,L4);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}o=Ad}return new o(i,t)}function L4(e){return"-"+e.toLowerCase()}function M4(e){return e.charAt(1).toUpperCase()}const B4=Tg([xg,Ag,Rg,Ng,O4],"html"),kg=Tg([xg,Ag,Rg,Ng,k4],"svg"),Ig={}.hasOwnProperty;function Dg(e,t){const r=t||{};function i(o,...s){let c=i.invalid;const d=i.handlers;if(o&&Ig.call(o,e)){const h=String(o[e]);c=Ig.call(d,h)?d[h]:i.unknown}if(c)return c.call(this,o,...s)}return i.handlers=r.handlers||{},i.invalid=r.invalid,i.unknown=r.unknown,i}const P4={},U4={}.hasOwnProperty,wg=Dg("type",{handlers:{root:F4,element:V4,text:j4,comment:q4,doctype:Y4}});function H4(e,t){const i=(t||P4).space;return wg(e,i==="svg"?kg:B4)}function F4(e,t){const r={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return r.childNodes=xd(e.children,r,t),Qi(e,r),r}function z4(e,t){const r={nodeName:"#document-fragment",childNodes:[]};return r.childNodes=xd(e.children,r,t),Qi(e,r),r}function Y4(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Qi(e,t),t}function j4(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Qi(e,t),t}function q4(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Qi(e,t),t}function V4(e,t){const r=t;let i=r;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=kg);const o=[];let s;if(e.properties){for(s in e.properties)if(s!=="children"&&U4.call(e.properties,s)){const h=G4(i,s,e.properties[s]);h&&o.push(h)}}const c=i.space,d={nodeName:e.tagName,tagName:e.tagName,attrs:o,namespaceURI:ti[c],childNodes:[],parentNode:null};return d.childNodes=xd(e.children,d,i),Qi(e,d),e.tagName==="template"&&e.content&&(d.content=z4(e.content,i)),d}function G4(e,t,r){const i=w4(e,t);if(r===!1||r===null||r===void 0||typeof r=="number"&&Number.isNaN(r)||!r&&i.boolean)return;Array.isArray(r)&&(r=i.commaSeparated?Ym(r):n1(r));const o={name:i.attribute,value:r===!0?"":String(r)};if(i.space&&i.space!=="html"&&i.space!=="svg"){const s=o.name.indexOf(":");s<0?o.prefix="":(o.name=o.name.slice(s+1),o.prefix=i.attribute.slice(0,s)),o.namespace=ti[i.space]}return o}function xd(e,t,r){let i=-1;const o=[];if(e)for(;++i<e.length;){const s=wg(e[i],r);s.parentNode=t,o.push(s)}return o}function Qi(e,t){const r=e.position;r&&r.start&&r.end&&(r.start.offset,r.end.offset,t.sourceCodeLocation={startLine:r.start.line,startCol:r.start.column,startOffset:r.start.offset,endLine:r.end.line,endCol:r.end.column,endOffset:r.end.offset})}const $4=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],X4=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ut="�";var I;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(I||(I={}));const Pn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Lg(e){return e>=55296&&e<=57343}function Q4(e){return e>=56320&&e<=57343}function K4(e,t){return(e-55296)*1024+9216+t}function Mg(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Bg(e){return e>=64976&&e<=65007||X4.has(e)}var ue;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(ue||(ue={}));const W4=65536;class Z4{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=W4,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,r){const{line:i,col:o,offset:s}=this,c=o+r,d=s+r;return{code:t,startLine:i,endLine:i,startCol:c,endCol:c,startOffset:d,endOffset:d}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const r=this.html.charCodeAt(this.pos+1);if(Q4(r))return this.pos++,this._addGap(),K4(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,I.EOF;return this._err(ue.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,r){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=r}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,r){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(r)return this.html.startsWith(t,this.pos);for(let i=0;i<t.length;i++)if((this.html.charCodeAt(this.pos+i)|32)!==t.charCodeAt(i))return!1;return!0}peek(t){const r=this.pos+t;if(r>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,I.EOF;const i=this.html.charCodeAt(r);return i===I.CARRIAGE_RETURN?I.LINE_FEED:i}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,I.EOF;let t=this.html.charCodeAt(this.pos);return t===I.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,I.LINE_FEED):t===I.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Lg(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===I.LINE_FEED||t===I.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Mg(t)?this._err(ue.controlCharacterInInputStream):Bg(t)&&this._err(ue.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Je;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Je||(Je={}));function Pg(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}const J4=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),ev=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function tv(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=ev.get(e))!==null&&t!==void 0?t:e}var sn;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(sn||(sn={}));const nv=32;var Ta;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ta||(Ta={}));function _d(e){return e>=sn.ZERO&&e<=sn.NINE}function rv(e){return e>=sn.UPPER_A&&e<=sn.UPPER_F||e>=sn.LOWER_A&&e<=sn.LOWER_F}function av(e){return e>=sn.UPPER_A&&e<=sn.UPPER_Z||e>=sn.LOWER_A&&e<=sn.LOWER_Z||_d(e)}function iv(e){return e===sn.EQUALS||av(e)}var cn;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(cn||(cn={}));var Qr;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Qr||(Qr={}));class uv{constructor(t,r,i){this.decodeTree=t,this.emitCodePoint=r,this.errors=i,this.state=cn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Qr.Strict}startEntity(t){this.decodeMode=t,this.state=cn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case cn.EntityStart:return t.charCodeAt(r)===sn.NUM?(this.state=cn.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=cn.NamedEntity,this.stateNamedEntity(t,r));case cn.NumericStart:return this.stateNumericStart(t,r);case cn.NumericDecimal:return this.stateNumericDecimal(t,r);case cn.NumericHex:return this.stateNumericHex(t,r);case cn.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|nv)===sn.LOWER_X?(this.state=cn.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=cn.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,i,o){if(r!==i){const s=i-r;this.result=this.result*Math.pow(o,s)+Number.parseInt(t.substr(r,s),o),this.consumed+=s}}stateNumericHex(t,r){const i=r;for(;r<t.length;){const o=t.charCodeAt(r);if(_d(o)||rv(o))r+=1;else return this.addToNumericResult(t,i,r,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(t,i,r,16),-1}stateNumericDecimal(t,r){const i=r;for(;r<t.length;){const o=t.charCodeAt(r);if(_d(o))r+=1;else return this.addToNumericResult(t,i,r,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(t,i,r,10),-1}emitNumericEntity(t,r){var i;if(this.consumed<=r)return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===sn.SEMI)this.consumed+=1;else if(this.decodeMode===Qr.Strict)return 0;return this.emitCodePoint(tv(this.result),this.consumed),this.errors&&(t!==sn.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){const{decodeTree:i}=this;let o=i[this.treeIndex],s=(o&Ta.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){const c=t.charCodeAt(r);if(this.treeIndex=ov(i,o,this.treeIndex+Math.max(1,s),c),this.treeIndex<0)return this.result===0||this.decodeMode===Qr.Attribute&&(s===0||iv(c))?0:this.emitNotTerminatedNamedEntity();if(o=i[this.treeIndex],s=(o&Ta.VALUE_LENGTH)>>14,s!==0){if(c===sn.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==Qr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:r,decodeTree:i}=this,o=(i[r]&Ta.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,o,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,i){const{decodeTree:o}=this;return this.emitCodePoint(r===1?o[t]&~Ta.VALUE_LENGTH:o[t+1],i),r===3&&this.emitCodePoint(o[t+2],i),i}end(){var t;switch(this.state){case cn.NamedEntity:return this.result!==0&&(this.decodeMode!==Qr.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case cn.NumericDecimal:return this.emitNumericEntity(0,2);case cn.NumericHex:return this.emitNumericEntity(0,3);case cn.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case cn.EntityStart:return 0}}}function ov(e,t,r,i){const o=(t&Ta.BRANCH_LENGTH)>>7,s=t&Ta.JUMP_TABLE;if(o===0)return s!==0&&i===s?r:-1;if(s){const h=i-s;return h<0||h>=o?-1:e[r+h]-1}let c=r,d=c+o-1;for(;c<=d;){const h=c+d>>>1,p=e[h];if(p<i)c=h+1;else if(p>i)d=h-1;else return e[h+o]}return-1}var me;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(me||(me={}));var ri;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(ri||(ri={}));var cr;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(cr||(cr={}));var W;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(W||(W={}));var g;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(g||(g={}));const lv=new Map([[W.A,g.A],[W.ADDRESS,g.ADDRESS],[W.ANNOTATION_XML,g.ANNOTATION_XML],[W.APPLET,g.APPLET],[W.AREA,g.AREA],[W.ARTICLE,g.ARTICLE],[W.ASIDE,g.ASIDE],[W.B,g.B],[W.BASE,g.BASE],[W.BASEFONT,g.BASEFONT],[W.BGSOUND,g.BGSOUND],[W.BIG,g.BIG],[W.BLOCKQUOTE,g.BLOCKQUOTE],[W.BODY,g.BODY],[W.BR,g.BR],[W.BUTTON,g.BUTTON],[W.CAPTION,g.CAPTION],[W.CENTER,g.CENTER],[W.CODE,g.CODE],[W.COL,g.COL],[W.COLGROUP,g.COLGROUP],[W.DD,g.DD],[W.DESC,g.DESC],[W.DETAILS,g.DETAILS],[W.DIALOG,g.DIALOG],[W.DIR,g.DIR],[W.DIV,g.DIV],[W.DL,g.DL],[W.DT,g.DT],[W.EM,g.EM],[W.EMBED,g.EMBED],[W.FIELDSET,g.FIELDSET],[W.FIGCAPTION,g.FIGCAPTION],[W.FIGURE,g.FIGURE],[W.FONT,g.FONT],[W.FOOTER,g.FOOTER],[W.FOREIGN_OBJECT,g.FOREIGN_OBJECT],[W.FORM,g.FORM],[W.FRAME,g.FRAME],[W.FRAMESET,g.FRAMESET],[W.H1,g.H1],[W.H2,g.H2],[W.H3,g.H3],[W.H4,g.H4],[W.H5,g.H5],[W.H6,g.H6],[W.HEAD,g.HEAD],[W.HEADER,g.HEADER],[W.HGROUP,g.HGROUP],[W.HR,g.HR],[W.HTML,g.HTML],[W.I,g.I],[W.IMG,g.IMG],[W.IMAGE,g.IMAGE],[W.INPUT,g.INPUT],[W.IFRAME,g.IFRAME],[W.KEYGEN,g.KEYGEN],[W.LABEL,g.LABEL],[W.LI,g.LI],[W.LINK,g.LINK],[W.LISTING,g.LISTING],[W.MAIN,g.MAIN],[W.MALIGNMARK,g.MALIGNMARK],[W.MARQUEE,g.MARQUEE],[W.MATH,g.MATH],[W.MENU,g.MENU],[W.META,g.META],[W.MGLYPH,g.MGLYPH],[W.MI,g.MI],[W.MO,g.MO],[W.MN,g.MN],[W.MS,g.MS],[W.MTEXT,g.MTEXT],[W.NAV,g.NAV],[W.NOBR,g.NOBR],[W.NOFRAMES,g.NOFRAMES],[W.NOEMBED,g.NOEMBED],[W.NOSCRIPT,g.NOSCRIPT],[W.OBJECT,g.OBJECT],[W.OL,g.OL],[W.OPTGROUP,g.OPTGROUP],[W.OPTION,g.OPTION],[W.P,g.P],[W.PARAM,g.PARAM],[W.PLAINTEXT,g.PLAINTEXT],[W.PRE,g.PRE],[W.RB,g.RB],[W.RP,g.RP],[W.RT,g.RT],[W.RTC,g.RTC],[W.RUBY,g.RUBY],[W.S,g.S],[W.SCRIPT,g.SCRIPT],[W.SEARCH,g.SEARCH],[W.SECTION,g.SECTION],[W.SELECT,g.SELECT],[W.SOURCE,g.SOURCE],[W.SMALL,g.SMALL],[W.SPAN,g.SPAN],[W.STRIKE,g.STRIKE],[W.STRONG,g.STRONG],[W.STYLE,g.STYLE],[W.SUB,g.SUB],[W.SUMMARY,g.SUMMARY],[W.SUP,g.SUP],[W.TABLE,g.TABLE],[W.TBODY,g.TBODY],[W.TEMPLATE,g.TEMPLATE],[W.TEXTAREA,g.TEXTAREA],[W.TFOOT,g.TFOOT],[W.TD,g.TD],[W.TH,g.TH],[W.THEAD,g.THEAD],[W.TITLE,g.TITLE],[W.TR,g.TR],[W.TRACK,g.TRACK],[W.TT,g.TT],[W.U,g.U],[W.UL,g.UL],[W.SVG,g.SVG],[W.VAR,g.VAR],[W.WBR,g.WBR],[W.XMP,g.XMP]]);function Ki(e){var t;return(t=lv.get(e))!==null&&t!==void 0?t:g.UNKNOWN}const ge=g,sv={[me.HTML]:new Set([ge.ADDRESS,ge.APPLET,ge.AREA,ge.ARTICLE,ge.ASIDE,ge.BASE,ge.BASEFONT,ge.BGSOUND,ge.BLOCKQUOTE,ge.BODY,ge.BR,ge.BUTTON,ge.CAPTION,ge.CENTER,ge.COL,ge.COLGROUP,ge.DD,ge.DETAILS,ge.DIR,ge.DIV,ge.DL,ge.DT,ge.EMBED,ge.FIELDSET,ge.FIGCAPTION,ge.FIGURE,ge.FOOTER,ge.FORM,ge.FRAME,ge.FRAMESET,ge.H1,ge.H2,ge.H3,ge.H4,ge.H5,ge.H6,ge.HEAD,ge.HEADER,ge.HGROUP,ge.HR,ge.HTML,ge.IFRAME,ge.IMG,ge.INPUT,ge.LI,ge.LINK,ge.LISTING,ge.MAIN,ge.MARQUEE,ge.MENU,ge.META,ge.NAV,ge.NOEMBED,ge.NOFRAMES,ge.NOSCRIPT,ge.OBJECT,ge.OL,ge.P,ge.PARAM,ge.PLAINTEXT,ge.PRE,ge.SCRIPT,ge.SECTION,ge.SELECT,ge.SOURCE,ge.STYLE,ge.SUMMARY,ge.TABLE,ge.TBODY,ge.TD,ge.TEMPLATE,ge.TEXTAREA,ge.TFOOT,ge.TH,ge.THEAD,ge.TITLE,ge.TR,ge.TRACK,ge.UL,ge.WBR,ge.XMP]),[me.MATHML]:new Set([ge.MI,ge.MO,ge.MN,ge.MS,ge.MTEXT,ge.ANNOTATION_XML]),[me.SVG]:new Set([ge.TITLE,ge.FOREIGN_OBJECT,ge.DESC]),[me.XLINK]:new Set,[me.XML]:new Set,[me.XMLNS]:new Set},vd=new Set([ge.H1,ge.H2,ge.H3,ge.H4,ge.H5,ge.H6]);W.STYLE,W.SCRIPT,W.XMP,W.IFRAME,W.NOEMBED,W.NOFRAMES,W.PLAINTEXT;var w;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(w||(w={}));const $t={DATA:w.DATA,RCDATA:w.RCDATA,RAWTEXT:w.RAWTEXT,SCRIPT_DATA:w.SCRIPT_DATA,PLAINTEXT:w.PLAINTEXT,CDATA_SECTION:w.CDATA_SECTION};function cv(e){return e>=I.DIGIT_0&&e<=I.DIGIT_9}function po(e){return e>=I.LATIN_CAPITAL_A&&e<=I.LATIN_CAPITAL_Z}function fv(e){return e>=I.LATIN_SMALL_A&&e<=I.LATIN_SMALL_Z}function Sa(e){return fv(e)||po(e)}function Ug(e){return Sa(e)||cv(e)}function ms(e){return e+32}function Hg(e){return e===I.SPACE||e===I.LINE_FEED||e===I.TABULATION||e===I.FORM_FEED}function Fg(e){return Hg(e)||e===I.SOLIDUS||e===I.GREATER_THAN_SIGN}function dv(e){return e===I.NULL?ue.nullCharacterReference:e>1114111?ue.characterReferenceOutsideUnicodeRange:Lg(e)?ue.surrogateCharacterReference:Bg(e)?ue.noncharacterCharacterReference:Mg(e)||e===I.CARRIAGE_RETURN?ue.controlCharacterReference:null}class hv{constructor(t,r){this.options=t,this.handler=r,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=w.DATA,this.returnState=w.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Z4(r),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new uv(J4,(i,o)=>{this.preprocessor.pos=this.entityStartPos+o-1,this._flushCodePointConsumedAsCharacterReference(i)},r.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(ue.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:i=>{this._err(ue.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+i)},validateNumericCharacterReference:i=>{const o=dv(i);o&&this._err(o,1)}}:void 0)}_err(t,r=0){var i,o;(o=(i=this.handler).onParseError)===null||o===void 0||o.call(i,this.preprocessor.getError(t,r))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,r,i){this.active=!0,this.preprocessor.write(t,r),this._runParsingLoop(),this.paused||i==null||i()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let r=0;r<t;r++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,r){return this.preprocessor.startsWith(t,r)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Je.START_TAG,tagName:"",tagID:g.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Je.END_TAG,tagName:"",tagID:g.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Je.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Je.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,r){this.currentCharacterToken={type:t,chars:r,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,r;const i=this.currentToken;if(Pg(i,this.currentAttr.name)===null){if(i.attrs.push(this.currentAttr),i.location&&this.currentLocation){const o=(t=(r=i.location).attrs)!==null&&t!==void 0?t:r.attrs=Object.create(null);o[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(ue.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Ki(t.tagName),t.type===Je.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(ue.endTagWithAttributes),t.selfClosing&&this._err(ue.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Je.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Je.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Je.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Je.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=r;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,r)}_emitCodePoint(t){const r=Hg(t)?Je.WHITESPACE_CHARACTER:t===I.NULL?Je.NULL_CHARACTER:Je.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Je.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=w.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Qr.Attribute:Qr.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===w.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===w.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===w.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case w.DATA:{this._stateData(t);break}case w.RCDATA:{this._stateRcdata(t);break}case w.RAWTEXT:{this._stateRawtext(t);break}case w.SCRIPT_DATA:{this._stateScriptData(t);break}case w.PLAINTEXT:{this._statePlaintext(t);break}case w.TAG_OPEN:{this._stateTagOpen(t);break}case w.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case w.TAG_NAME:{this._stateTagName(t);break}case w.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case w.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case w.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case w.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case w.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case w.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case w.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case w.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case w.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case w.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case w.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case w.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case w.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case w.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case w.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case w.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case w.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case w.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case w.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case w.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case w.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case w.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case w.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case w.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case w.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case w.BOGUS_COMMENT:{this._stateBogusComment(t);break}case w.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case w.COMMENT_START:{this._stateCommentStart(t);break}case w.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case w.COMMENT:{this._stateComment(t);break}case w.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case w.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case w.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case w.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case w.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case w.COMMENT_END:{this._stateCommentEnd(t);break}case w.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case w.DOCTYPE:{this._stateDoctype(t);break}case w.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case w.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case w.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case w.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case w.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case w.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case w.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case w.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case w.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case w.CDATA_SECTION:{this._stateCdataSection(t);break}case w.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case w.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case w.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case w.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case I.LESS_THAN_SIGN:{this.state=w.TAG_OPEN;break}case I.AMPERSAND:{this._startCharacterReference();break}case I.NULL:{this._err(ue.unexpectedNullCharacter),this._emitCodePoint(t);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case I.AMPERSAND:{this._startCharacterReference();break}case I.LESS_THAN_SIGN:{this.state=w.RCDATA_LESS_THAN_SIGN;break}case I.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(Ut);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case I.LESS_THAN_SIGN:{this.state=w.RAWTEXT_LESS_THAN_SIGN;break}case I.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(Ut);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case I.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_LESS_THAN_SIGN;break}case I.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(Ut);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case I.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(Ut);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Sa(t))this._createStartTagToken(),this.state=w.TAG_NAME,this._stateTagName(t);else switch(t){case I.EXCLAMATION_MARK:{this.state=w.MARKUP_DECLARATION_OPEN;break}case I.SOLIDUS:{this.state=w.END_TAG_OPEN;break}case I.QUESTION_MARK:{this._err(ue.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=w.BOGUS_COMMENT,this._stateBogusComment(t);break}case I.EOF:{this._err(ue.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ue.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=w.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Sa(t))this._createEndTagToken(),this.state=w.TAG_NAME,this._stateTagName(t);else switch(t){case I.GREATER_THAN_SIGN:{this._err(ue.missingEndTagName),this.state=w.DATA;break}case I.EOF:{this._err(ue.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(ue.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=w.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const r=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=w.BEFORE_ATTRIBUTE_NAME;break}case I.SOLIDUS:{this.state=w.SELF_CLOSING_START_TAG;break}case I.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentTagToken();break}case I.NULL:{this._err(ue.unexpectedNullCharacter),r.tagName+=Ut;break}case I.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(po(t)?ms(t):t)}}_stateRcdataLessThanSign(t){t===I.SOLIDUS?this.state=w.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=w.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Sa(t)?(this.state=w.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=w.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const r=this.currentToken;switch(r.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=w.BEFORE_ATTRIBUTE_NAME,!1;case I.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=w.SELF_CLOSING_START_TAG,!1;case I.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=w.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=w.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===I.SOLIDUS?this.state=w.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=w.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Sa(t)?(this.state=w.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=w.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=w.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case I.SOLIDUS:{this.state=w.SCRIPT_DATA_END_TAG_OPEN;break}case I.EXCLAMATION_MARK:{this.state=w.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=w.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Sa(t)?(this.state=w.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=w.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=w.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===I.HYPHEN_MINUS?(this.state=w.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=w.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===I.HYPHEN_MINUS?(this.state=w.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=w.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case I.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case I.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(Ut);break}case I.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case I.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case I.NULL:{this._err(ue.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_ESCAPED,this._emitChars(Ut);break}case I.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case I.HYPHEN_MINUS:{this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case I.GREATER_THAN_SIGN:{this.state=w.SCRIPT_DATA,this._emitChars(">");break}case I.NULL:{this._err(ue.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_ESCAPED,this._emitChars(Ut);break}case I.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===I.SOLIDUS?this.state=w.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Sa(t)?(this._emitChars("<"),this.state=w.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=w.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Sa(t)?(this.state=w.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=w.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=w.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Pn.SCRIPT,!1)&&Fg(this.preprocessor.peek(Pn.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Pn.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=w.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case I.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case I.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(Ut);break}case I.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case I.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case I.NULL:{this._err(ue.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ut);break}case I.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case I.HYPHEN_MINUS:{this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case I.GREATER_THAN_SIGN:{this.state=w.SCRIPT_DATA,this._emitChars(">");break}case I.NULL:{this._err(ue.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ut);break}case I.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===I.SOLIDUS?(this.state=w.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Pn.SCRIPT,!1)&&Fg(this.preprocessor.peek(Pn.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Pn.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=w.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.SOLIDUS:case I.GREATER_THAN_SIGN:case I.EOF:{this.state=w.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case I.EQUALS_SIGN:{this._err(ue.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=w.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=w.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:case I.SOLIDUS:case I.GREATER_THAN_SIGN:case I.EOF:{this._leaveAttrName(),this.state=w.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case I.EQUALS_SIGN:{this._leaveAttrName(),this.state=w.BEFORE_ATTRIBUTE_VALUE;break}case I.QUOTATION_MARK:case I.APOSTROPHE:case I.LESS_THAN_SIGN:{this._err(ue.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case I.NULL:{this._err(ue.unexpectedNullCharacter),this.currentAttr.name+=Ut;break}default:this.currentAttr.name+=String.fromCodePoint(po(t)?ms(t):t)}}_stateAfterAttributeName(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.SOLIDUS:{this.state=w.SELF_CLOSING_START_TAG;break}case I.EQUALS_SIGN:{this.state=w.BEFORE_ATTRIBUTE_VALUE;break}case I.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentTagToken();break}case I.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=w.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.QUOTATION_MARK:{this.state=w.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case I.APOSTROPHE:{this.state=w.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(ue.missingAttributeValue),this.state=w.DATA,this.emitCurrentTagToken();break}default:this.state=w.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case I.QUOTATION_MARK:{this.state=w.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case I.AMPERSAND:{this._startCharacterReference();break}case I.NULL:{this._err(ue.unexpectedNullCharacter),this.currentAttr.value+=Ut;break}case I.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case I.APOSTROPHE:{this.state=w.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case I.AMPERSAND:{this._startCharacterReference();break}case I.NULL:{this._err(ue.unexpectedNullCharacter),this.currentAttr.value+=Ut;break}case I.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this._leaveAttrValue(),this.state=w.BEFORE_ATTRIBUTE_NAME;break}case I.AMPERSAND:{this._startCharacterReference();break}case I.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=w.DATA,this.emitCurrentTagToken();break}case I.NULL:{this._err(ue.unexpectedNullCharacter),this.currentAttr.value+=Ut;break}case I.QUOTATION_MARK:case I.APOSTROPHE:case I.LESS_THAN_SIGN:case I.EQUALS_SIGN:case I.GRAVE_ACCENT:{this._err(ue.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case I.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this._leaveAttrValue(),this.state=w.BEFORE_ATTRIBUTE_NAME;break}case I.SOLIDUS:{this._leaveAttrValue(),this.state=w.SELF_CLOSING_START_TAG;break}case I.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=w.DATA,this.emitCurrentTagToken();break}case I.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this._err(ue.missingWhitespaceBetweenAttributes),this.state=w.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case I.GREATER_THAN_SIGN:{const r=this.currentToken;r.selfClosing=!0,this.state=w.DATA,this.emitCurrentTagToken();break}case I.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this._err(ue.unexpectedSolidusInTag),this.state=w.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const r=this.currentToken;switch(t){case I.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentComment(r);break}case I.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case I.NULL:{this._err(ue.unexpectedNullCharacter),r.data+=Ut;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Pn.DASH_DASH,!0)?(this._createCommentToken(Pn.DASH_DASH.length+1),this.state=w.COMMENT_START):this._consumeSequenceIfMatch(Pn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Pn.DOCTYPE.length+1),this.state=w.DOCTYPE):this._consumeSequenceIfMatch(Pn.CDATA_START,!0)?this.inForeignNode?this.state=w.CDATA_SECTION:(this._err(ue.cdataInHtmlContent),this._createCommentToken(Pn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=w.BOGUS_COMMENT):this._ensureHibernation()||(this._err(ue.incorrectlyOpenedComment),this._createCommentToken(2),this.state=w.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case I.HYPHEN_MINUS:{this.state=w.COMMENT_START_DASH;break}case I.GREATER_THAN_SIGN:{this._err(ue.abruptClosingOfEmptyComment),this.state=w.DATA;const r=this.currentToken;this.emitCurrentComment(r);break}default:this.state=w.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const r=this.currentToken;switch(t){case I.HYPHEN_MINUS:{this.state=w.COMMENT_END;break}case I.GREATER_THAN_SIGN:{this._err(ue.abruptClosingOfEmptyComment),this.state=w.DATA,this.emitCurrentComment(r);break}case I.EOF:{this._err(ue.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=w.COMMENT,this._stateComment(t)}}_stateComment(t){const r=this.currentToken;switch(t){case I.HYPHEN_MINUS:{this.state=w.COMMENT_END_DASH;break}case I.LESS_THAN_SIGN:{r.data+="<",this.state=w.COMMENT_LESS_THAN_SIGN;break}case I.NULL:{this._err(ue.unexpectedNullCharacter),r.data+=Ut;break}case I.EOF:{this._err(ue.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const r=this.currentToken;switch(t){case I.EXCLAMATION_MARK:{r.data+="!",this.state=w.COMMENT_LESS_THAN_SIGN_BANG;break}case I.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=w.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===I.HYPHEN_MINUS?this.state=w.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=w.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===I.HYPHEN_MINUS?this.state=w.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=w.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==I.GREATER_THAN_SIGN&&t!==I.EOF&&this._err(ue.nestedComment),this.state=w.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const r=this.currentToken;switch(t){case I.HYPHEN_MINUS:{this.state=w.COMMENT_END;break}case I.EOF:{this._err(ue.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=w.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const r=this.currentToken;switch(t){case I.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentComment(r);break}case I.EXCLAMATION_MARK:{this.state=w.COMMENT_END_BANG;break}case I.HYPHEN_MINUS:{r.data+="-";break}case I.EOF:{this._err(ue.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--",this.state=w.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const r=this.currentToken;switch(t){case I.HYPHEN_MINUS:{r.data+="--!",this.state=w.COMMENT_END_DASH;break}case I.GREATER_THAN_SIGN:{this._err(ue.incorrectlyClosedComment),this.state=w.DATA,this.emitCurrentComment(r);break}case I.EOF:{this._err(ue.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=w.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_NAME;break}case I.GREATER_THAN_SIGN:{this.state=w.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case I.EOF:{this._err(ue.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.missingWhitespaceBeforeDoctypeName),this.state=w.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(po(t))this._createDoctypeToken(String.fromCharCode(ms(t))),this.state=w.DOCTYPE_NAME;else switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.NULL:{this._err(ue.unexpectedNullCharacter),this._createDoctypeToken(Ut),this.state=w.DOCTYPE_NAME;break}case I.GREATER_THAN_SIGN:{this._err(ue.missingDoctypeName),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case I.EOF:{this._err(ue.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=w.DOCTYPE_NAME}}_stateDoctypeName(t){const r=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=w.AFTER_DOCTYPE_NAME;break}case I.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(r);break}case I.NULL:{this._err(ue.unexpectedNullCharacter),r.name+=Ut;break}case I.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(po(t)?ms(t):t)}}_stateAfterDoctypeName(t){const r=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(r);break}case I.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Pn.PUBLIC,!1)?this.state=w.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Pn.SYSTEM,!1)?this.state=w.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(ue.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const r=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case I.QUOTATION_MARK:{this._err(ue.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{this._err(ue.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(ue.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(r);break}case I.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.QUOTATION_MARK:{r.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{r.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(ue.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(r);break}case I.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case I.QUOTATION_MARK:{this.state=w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case I.NULL:{this._err(ue.unexpectedNullCharacter),r.publicId+=Ut;break}case I.GREATER_THAN_SIGN:{this._err(ue.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case I.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case I.APOSTROPHE:{this.state=w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case I.NULL:{this._err(ue.unexpectedNullCharacter),r.publicId+=Ut;break}case I.GREATER_THAN_SIGN:{this._err(ue.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case I.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=w.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case I.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(r);break}case I.QUOTATION_MARK:{this._err(ue.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{this._err(ue.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case I.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const r=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=w.DATA;break}case I.QUOTATION_MARK:{r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case I.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const r=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case I.QUOTATION_MARK:{this._err(ue.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{this._err(ue.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(ue.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(r);break}case I.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.QUOTATION_MARK:{r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(ue.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(r);break}case I.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case I.QUOTATION_MARK:{this.state=w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case I.NULL:{this._err(ue.unexpectedNullCharacter),r.systemId+=Ut;break}case I.GREATER_THAN_SIGN:{this._err(ue.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case I.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case I.APOSTROPHE:{this.state=w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case I.NULL:{this._err(ue.unexpectedNullCharacter),r.systemId+=Ut;break}case I.GREATER_THAN_SIGN:{this._err(ue.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case I.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=w.DATA;break}case I.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const r=this.currentToken;switch(t){case I.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=w.DATA;break}case I.NULL:{this._err(ue.unexpectedNullCharacter);break}case I.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case I.RIGHT_SQUARE_BRACKET:{this.state=w.CDATA_SECTION_BRACKET;break}case I.EOF:{this._err(ue.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===I.RIGHT_SQUARE_BRACKET?this.state=w.CDATA_SECTION_END:(this._emitChars("]"),this.state=w.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case I.GREATER_THAN_SIGN:{this.state=w.DATA;break}case I.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=w.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(I.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Ug(this.preprocessor.peek(1))?w.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Ug(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===I.SEMICOLON&&this._err(ue.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const zg=new Set([g.DD,g.DT,g.LI,g.OPTGROUP,g.OPTION,g.P,g.RB,g.RP,g.RT,g.RTC]),Yg=new Set([...zg,g.CAPTION,g.COLGROUP,g.TBODY,g.TD,g.TFOOT,g.TH,g.THEAD,g.TR]),gs=new Set([g.APPLET,g.CAPTION,g.HTML,g.MARQUEE,g.OBJECT,g.TABLE,g.TD,g.TEMPLATE,g.TH]),pv=new Set([...gs,g.OL,g.UL]),mv=new Set([...gs,g.BUTTON]),jg=new Set([g.ANNOTATION_XML,g.MI,g.MN,g.MO,g.MS,g.MTEXT]),qg=new Set([g.DESC,g.FOREIGN_OBJECT,g.TITLE]),gv=new Set([g.TR,g.TEMPLATE,g.HTML]),bv=new Set([g.TBODY,g.TFOOT,g.THEAD,g.TEMPLATE,g.HTML]),Ev=new Set([g.TABLE,g.TEMPLATE,g.HTML]),yv=new Set([g.TD,g.TH]);class Tv{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,r,i){this.treeAdapter=r,this.handler=i,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=g.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===g.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===me.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,r){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=r,this.currentTagId=r,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,r,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,r){const i=this._indexOf(t);this.items[i]=r,i===this.stackTop&&(this.current=r)}insertAfter(t,r,i){const o=this._indexOf(t)+1;this.items.splice(o,0,r),this.tagIDs.splice(o,0,i),this.stackTop++,o===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,o===this.stackTop)}popUntilTagNamePopped(t){let r=this.stackTop+1;do r=this.tagIDs.lastIndexOf(t,r-1);while(r>0&&this.treeAdapter.getNamespaceURI(this.items[r])!==me.HTML);this.shortenToLength(Math.max(r,0))}shortenToLength(t){for(;this.stackTop>=t;){const r=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,this.stackTop<t)}}popUntilElementPopped(t){const r=this._indexOf(t);this.shortenToLength(Math.max(r,0))}popUntilPopped(t,r){const i=this._indexOfTagNames(t,r);this.shortenToLength(Math.max(i,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(vd,me.HTML)}popUntilTableCellPopped(){this.popUntilPopped(yv,me.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,r){for(let i=this.stackTop;i>=0;i--)if(t.has(this.tagIDs[i])&&this.treeAdapter.getNamespaceURI(this.items[i])===r)return i;return-1}clearBackTo(t,r){const i=this._indexOfTagNames(t,r);this.shortenToLength(i+1)}clearBackToTableContext(){this.clearBackTo(Ev,me.HTML)}clearBackToTableBodyContext(){this.clearBackTo(bv,me.HTML)}clearBackToTableRowContext(){this.clearBackTo(gv,me.HTML)}remove(t){const r=this._indexOf(t);r>=0&&(r===this.stackTop?this.pop():(this.items.splice(r,1),this.tagIDs.splice(r,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===g.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const r=this._indexOf(t)-1;return r>=0?this.items[r]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===g.HTML}hasInDynamicScope(t,r){for(let i=this.stackTop;i>=0;i--){const o=this.tagIDs[i];switch(this.treeAdapter.getNamespaceURI(this.items[i])){case me.HTML:{if(o===t)return!0;if(r.has(o))return!1;break}case me.SVG:{if(qg.has(o))return!1;break}case me.MATHML:{if(jg.has(o))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,gs)}hasInListItemScope(t){return this.hasInDynamicScope(t,pv)}hasInButtonScope(t){return this.hasInDynamicScope(t,mv)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case me.HTML:{if(vd.has(r))return!0;if(gs.has(r))return!1;break}case me.SVG:{if(qg.has(r))return!1;break}case me.MATHML:{if(jg.has(r))return!1;break}}}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===me.HTML)switch(this.tagIDs[r]){case t:return!0;case g.TABLE:case g.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===me.HTML)switch(this.tagIDs[t]){case g.TBODY:case g.THEAD:case g.TFOOT:return!0;case g.TABLE:case g.HTML:return!1}return!0}hasInSelectScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===me.HTML)switch(this.tagIDs[r]){case t:return!0;case g.OPTION:case g.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&zg.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Yg.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Yg.has(this.currentTagId);)this.pop()}}const Rd=3;var Br;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Br||(Br={}));const Vg={type:Br.Marker};class Sv{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,r){const i=[],o=r.length,s=this.treeAdapter.getTagName(t),c=this.treeAdapter.getNamespaceURI(t);for(let d=0;d<this.entries.length;d++){const h=this.entries[d];if(h.type===Br.Marker)break;const{element:p}=h;if(this.treeAdapter.getTagName(p)===s&&this.treeAdapter.getNamespaceURI(p)===c){const b=this.treeAdapter.getAttrList(p);b.length===o&&i.push({idx:d,attrs:b})}}return i}_ensureNoahArkCondition(t){if(this.entries.length<Rd)return;const r=this.treeAdapter.getAttrList(t),i=this._getNoahArkConditionCandidates(t,r);if(i.length<Rd)return;const o=new Map(r.map(c=>[c.name,c.value]));let s=0;for(let c=0;c<i.length;c++){const d=i[c];d.attrs.every(h=>o.get(h.name)===h.value)&&(s+=1,s>=Rd&&this.entries.splice(d.idx,1))}}insertMarker(){this.entries.unshift(Vg)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:Br.Element,element:t,token:r})}insertElementAfterBookmark(t,r){const i=this.entries.indexOf(this.bookmark);this.entries.splice(i,0,{type:Br.Element,element:t,token:r})}removeEntry(t){const r=this.entries.indexOf(t);r!==-1&&this.entries.splice(r,1)}clearToLastMarker(){const t=this.entries.indexOf(Vg);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const r=this.entries.find(i=>i.type===Br.Marker||this.treeAdapter.getTagName(i.element)===t);return r&&r.type===Br.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===Br.Element&&r.element===t)}}const Ca={createDocument(){return{nodeName:"#document",mode:cr.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){const i=e.childNodes.indexOf(r);e.childNodes.splice(i,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,r,i){const o=e.childNodes.find(s=>s.nodeName==="#documentType");if(o)o.name=t,o.publicId=r,o.systemId=i;else{const s={nodeName:"#documentType",name:t,publicId:r,systemId:i,parentNode:null};Ca.appendChild(e,s)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const r=e.childNodes[e.childNodes.length-1];if(Ca.isTextNode(r)){r.value+=t;return}}Ca.appendChild(e,Ca.createTextNode(t))},insertTextBefore(e,t,r){const i=e.childNodes[e.childNodes.indexOf(r)-1];i&&Ca.isTextNode(i)?i.value+=t:Ca.insertBefore(e,Ca.createTextNode(t),r)},adoptAttributes(e,t){const r=new Set(e.attrs.map(i=>i.name));for(let i=0;i<t.length;i++)r.has(t[i].name)||e.attrs.push(t[i])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Gg="html",Cv="about:legacy-compat",Av="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",$g=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],xv=[...$g,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],_v=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Xg=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],vv=[...Xg,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Qg(e,t){return t.some(r=>e.startsWith(r))}function Rv(e){return e.name===Gg&&e.publicId===null&&(e.systemId===null||e.systemId===Cv)}function Nv(e){if(e.name!==Gg)return cr.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===Av)return cr.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),_v.has(r))return cr.QUIRKS;let i=t===null?xv:$g;if(Qg(r,i))return cr.QUIRKS;if(i=t===null?Xg:vv,Qg(r,i))return cr.LIMITED_QUIRKS}return cr.NO_QUIRKS}const Kg={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Ov="definitionurl",kv="definitionURL",Iv=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Dv=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:me.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:me.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:me.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:me.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:me.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:me.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:me.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:me.XML}],["xml:space",{prefix:"xml",name:"space",namespace:me.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:me.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:me.XMLNS}]]),wv=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Lv=new Set([g.B,g.BIG,g.BLOCKQUOTE,g.BODY,g.BR,g.CENTER,g.CODE,g.DD,g.DIV,g.DL,g.DT,g.EM,g.EMBED,g.H1,g.H2,g.H3,g.H4,g.H5,g.H6,g.HEAD,g.HR,g.I,g.IMG,g.LI,g.LISTING,g.MENU,g.META,g.NOBR,g.OL,g.P,g.PRE,g.RUBY,g.S,g.SMALL,g.SPAN,g.STRONG,g.STRIKE,g.SUB,g.SUP,g.TABLE,g.TT,g.U,g.UL,g.VAR]);function Mv(e){const t=e.tagID;return t===g.FONT&&e.attrs.some(({name:i})=>i===ri.COLOR||i===ri.SIZE||i===ri.FACE)||Lv.has(t)}function Wg(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Ov){e.attrs[t].name=kv;break}}function Zg(e){for(let t=0;t<e.attrs.length;t++){const r=Iv.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function Nd(e){for(let t=0;t<e.attrs.length;t++){const r=Dv.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}function Bv(e){const t=wv.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Ki(e.tagName))}function Pv(e,t){return t===me.MATHML&&(e===g.MI||e===g.MO||e===g.MN||e===g.MS||e===g.MTEXT)}function Uv(e,t,r){if(t===me.MATHML&&e===g.ANNOTATION_XML){for(let i=0;i<r.length;i++)if(r[i].name===ri.ENCODING){const o=r[i].value.toLowerCase();return o===Kg.TEXT_HTML||o===Kg.APPLICATION_XML}}return t===me.SVG&&(e===g.FOREIGN_OBJECT||e===g.DESC||e===g.TITLE)}function Hv(e,t,r,i){return(!i||i===me.HTML)&&Uv(e,t,r)||(!i||i===me.MATHML)&&Pv(e,t)}const Fv="hidden",zv=8,Yv=3;var U;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(U||(U={}));const jv={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Jg=new Set([g.TABLE,g.TBODY,g.TFOOT,g.THEAD,g.TR]),eb={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Ca,onParseError:null};class tb{constructor(t,r,i=null,o=null){this.fragmentContext=i,this.scriptHandler=o,this.currentToken=null,this.stopped=!1,this.insertionMode=U.INITIAL,this.originalInsertionMode=U.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...eb,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=r??this.treeAdapter.createDocument(),this.tokenizer=new hv(this.options,this),this.activeFormattingElements=new Sv(this.treeAdapter),this.fragmentContextID=i?Ki(this.treeAdapter.getTagName(i)):g.UNKNOWN,this._setContextModes(i??this.document,this.fragmentContextID),this.openElements=new Tv(this.document,this.treeAdapter,this)}static parse(t,r){const i=new this(r);return i.tokenizer.write(t,!0),i.document}static getFragmentParser(t,r){const i={...eb,...r};t??(t=i.treeAdapter.createElement(W.TEMPLATE,me.HTML,[]));const o=i.treeAdapter.createElement("documentmock",me.HTML,[]),s=new this(i,o,t);return s.fragmentContextID===g.TEMPLATE&&s.tmplInsertionModeStack.unshift(U.IN_TEMPLATE),s._initTokenizerForFragmentParsing(),s._insertFakeRootElement(),s._resetInsertionMode(),s._findFormInFragmentContext(),s}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,r),r}_err(t,r,i){var o;if(!this.onParseError)return;const s=(o=t.location)!==null&&o!==void 0?o:jv,c={code:r,startLine:s.startLine,startCol:s.startCol,startOffset:s.startOffset,endLine:i?s.startLine:s.endLine,endCol:i?s.startCol:s.endCol,endOffset:i?s.startOffset:s.endOffset};this.onParseError(c)}onItemPush(t,r,i){var o,s;(s=(o=this.treeAdapter).onItemPush)===null||s===void 0||s.call(o,t),i&&this.openElements.stackTop>0&&this._setContextModes(t,r)}onItemPop(t,r){var i,o;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(o=(i=this.treeAdapter).onItemPop)===null||o===void 0||o.call(i,t,this.openElements.current),r){let s,c;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,c=this.fragmentContextID):{current:s,currentTagId:c}=this.openElements,this._setContextModes(s,c)}}_setContextModes(t,r){const i=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===me.HTML;this.currentNotInHTML=!i,this.tokenizer.inForeignNode=!i&&t!==void 0&&r!==void 0&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,me.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=U.TEXT}switchToPlaintextParsing(){this.insertionMode=U.TEXT,this.originalInsertionMode=U.IN_BODY,this.tokenizer.state=$t.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===W.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==me.HTML))switch(this.fragmentContextID){case g.TITLE:case g.TEXTAREA:{this.tokenizer.state=$t.RCDATA;break}case g.STYLE:case g.XMP:case g.IFRAME:case g.NOEMBED:case g.NOFRAMES:case g.NOSCRIPT:{this.tokenizer.state=$t.RAWTEXT;break}case g.SCRIPT:{this.tokenizer.state=$t.SCRIPT_DATA;break}case g.PLAINTEXT:{this.tokenizer.state=$t.PLAINTEXT;break}}}_setDocumentType(t){const r=t.name||"",i=t.publicId||"",o=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,r,i,o),t.location){const c=this.treeAdapter.getChildNodes(this.document).find(d=>this.treeAdapter.isDocumentTypeNode(d));c&&this.treeAdapter.setNodeSourceCodeLocation(c,t.location)}}_attachElementToTree(t,r){if(this.options.sourceCodeLocationInfo){const i=r&&{...r,startTag:r};this.treeAdapter.setNodeSourceCodeLocation(t,i)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const i=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(i??this.document,t)}}_appendElement(t,r){const i=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(i,t.location)}_insertElement(t,r){const i=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(i,t.location),this.openElements.push(i,t.tagID)}_insertFakeElement(t,r){const i=this.treeAdapter.createElement(t,me.HTML,[]);this._attachElementToTree(i,null),this.openElements.push(i,r)}_insertTemplate(t){const r=this.treeAdapter.createElement(t.tagName,me.HTML,t.attrs),i=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(r,i),this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(W.HTML,me.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,g.HTML)}_appendCommentNode(t,r){const i=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(r,i),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}_insertCharacters(t){let r,i;if(this._shouldFosterParentOnInsertion()?({parent:r,beforeElement:i}=this._findFosterParentingLocation(),i?this.treeAdapter.insertTextBefore(r,t.chars,i):this.treeAdapter.insertText(r,t.chars)):(r=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(r,t.chars)),!t.location)return;const o=this.treeAdapter.getChildNodes(r),s=i?o.lastIndexOf(i):o.length,c=o[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(c)){const{endLine:h,endCol:p,endOffset:b}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(c,{endLine:h,endCol:p,endOffset:b})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(c,t.location)}_adoptNodes(t,r){for(let i=this.treeAdapter.getFirstChild(t);i;i=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(i),this.treeAdapter.appendChild(r,i)}_setEndLocation(t,r){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&r.location){const i=r.location,o=this.treeAdapter.getTagName(t),s=r.type===Je.END_TAG&&o===r.tagName?{endTag:{...i},endLine:i.endLine,endCol:i.endCol,endOffset:i.endOffset}:{endLine:i.startLine,endCol:i.startCol,endOffset:i.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let r,i;return this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,i=this.fragmentContextID):{current:r,currentTagId:i}=this.openElements,t.tagID===g.SVG&&this.treeAdapter.getTagName(r)===W.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===me.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===g.MGLYPH||t.tagID===g.MALIGNMARK)&&i!==void 0&&!this._isIntegrationPoint(i,r,me.HTML)}_processToken(t){switch(t.type){case Je.CHARACTER:{this.onCharacter(t);break}case Je.NULL_CHARACTER:{this.onNullCharacter(t);break}case Je.COMMENT:{this.onComment(t);break}case Je.DOCTYPE:{this.onDoctype(t);break}case Je.START_TAG:{this._processStartTag(t);break}case Je.END_TAG:{this.onEndTag(t);break}case Je.EOF:{this.onEof(t);break}case Je.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,i){const o=this.treeAdapter.getNamespaceURI(r),s=this.treeAdapter.getAttrList(r);return Hv(t,o,s,i)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const r=this.activeFormattingElements.entries.findIndex(o=>o.type===Br.Marker||this.openElements.contains(o.element)),i=r===-1?t-1:r-1;for(let o=i;o>=0;o--){const s=this.activeFormattingElements.entries[o];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=U.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(g.P),this.openElements.popUntilTagNamePopped(g.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case g.TR:{this.insertionMode=U.IN_ROW;return}case g.TBODY:case g.THEAD:case g.TFOOT:{this.insertionMode=U.IN_TABLE_BODY;return}case g.CAPTION:{this.insertionMode=U.IN_CAPTION;return}case g.COLGROUP:{this.insertionMode=U.IN_COLUMN_GROUP;return}case g.TABLE:{this.insertionMode=U.IN_TABLE;return}case g.BODY:{this.insertionMode=U.IN_BODY;return}case g.FRAMESET:{this.insertionMode=U.IN_FRAMESET;return}case g.SELECT:{this._resetInsertionModeForSelect(t);return}case g.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case g.HTML:{this.insertionMode=this.headElement?U.AFTER_HEAD:U.BEFORE_HEAD;return}case g.TD:case g.TH:{if(t>0){this.insertionMode=U.IN_CELL;return}break}case g.HEAD:{if(t>0){this.insertionMode=U.IN_HEAD;return}break}}this.insertionMode=U.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let r=t-1;r>0;r--){const i=this.openElements.tagIDs[r];if(i===g.TEMPLATE)break;if(i===g.TABLE){this.insertionMode=U.IN_SELECT_IN_TABLE;return}}this.insertionMode=U.IN_SELECT}_isElementCausesFosterParenting(t){return Jg.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case g.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===me.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case g.TABLE:{const i=this.treeAdapter.getParentNode(r);return i?{parent:i,beforeElement:r}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertBefore(r.parent,t,r.beforeElement):this.treeAdapter.appendChild(r.parent,t)}_isSpecialElement(t,r){const i=this.treeAdapter.getNamespaceURI(t);return sv[i].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){y8(this,t);return}switch(this.insertionMode){case U.INITIAL:{mo(this,t);break}case U.BEFORE_HTML:{go(this,t);break}case U.BEFORE_HEAD:{bo(this,t);break}case U.IN_HEAD:{Eo(this,t);break}case U.IN_HEAD_NO_SCRIPT:{yo(this,t);break}case U.AFTER_HEAD:{To(this,t);break}case U.IN_BODY:case U.IN_CAPTION:case U.IN_CELL:case U.IN_TEMPLATE:{rb(this,t);break}case U.TEXT:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{Dd(this,t);break}case U.IN_TABLE_TEXT:{fb(this,t);break}case U.IN_COLUMN_GROUP:{ys(this,t);break}case U.AFTER_BODY:{Cs(this,t);break}case U.AFTER_AFTER_BODY:{As(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){E8(this,t);return}switch(this.insertionMode){case U.INITIAL:{mo(this,t);break}case U.BEFORE_HTML:{go(this,t);break}case U.BEFORE_HEAD:{bo(this,t);break}case U.IN_HEAD:{Eo(this,t);break}case U.IN_HEAD_NO_SCRIPT:{yo(this,t);break}case U.AFTER_HEAD:{To(this,t);break}case U.TEXT:{this._insertCharacters(t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{Dd(this,t);break}case U.IN_COLUMN_GROUP:{ys(this,t);break}case U.AFTER_BODY:{Cs(this,t);break}case U.AFTER_AFTER_BODY:{As(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){kd(this,t);return}switch(this.insertionMode){case U.INITIAL:case U.BEFORE_HTML:case U.BEFORE_HEAD:case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:case U.IN_BODY:case U.IN_TABLE:case U.IN_CAPTION:case U.IN_COLUMN_GROUP:case U.IN_TABLE_BODY:case U.IN_ROW:case U.IN_CELL:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:case U.IN_TEMPLATE:case U.IN_FRAMESET:case U.AFTER_FRAMESET:{kd(this,t);break}case U.IN_TABLE_TEXT:{Ao(this,t);break}case U.AFTER_BODY:{Kv(this,t);break}case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{Wv(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case U.INITIAL:{Zv(this,t);break}case U.BEFORE_HEAD:case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:{this._err(t,ue.misplacedDoctype);break}case U.IN_TABLE_TEXT:{Ao(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,ue.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?T8(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case U.INITIAL:{mo(this,t);break}case U.BEFORE_HTML:{Jv(this,t);break}case U.BEFORE_HEAD:{t5(this,t);break}case U.IN_HEAD:{xr(this,t);break}case U.IN_HEAD_NO_SCRIPT:{a5(this,t);break}case U.AFTER_HEAD:{u5(this,t);break}case U.IN_BODY:{xn(this,t);break}case U.IN_TABLE:{Wi(this,t);break}case U.IN_TABLE_TEXT:{Ao(this,t);break}case U.IN_CAPTION:{n8(this,t);break}case U.IN_COLUMN_GROUP:{wd(this,t);break}case U.IN_TABLE_BODY:{Ts(this,t);break}case U.IN_ROW:{Ss(this,t);break}case U.IN_CELL:{i8(this,t);break}case U.IN_SELECT:{pb(this,t);break}case U.IN_SELECT_IN_TABLE:{o8(this,t);break}case U.IN_TEMPLATE:{s8(this,t);break}case U.AFTER_BODY:{f8(this,t);break}case U.IN_FRAMESET:{d8(this,t);break}case U.AFTER_FRAMESET:{p8(this,t);break}case U.AFTER_AFTER_BODY:{g8(this,t);break}case U.AFTER_AFTER_FRAMESET:{b8(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?S8(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case U.INITIAL:{mo(this,t);break}case U.BEFORE_HTML:{e5(this,t);break}case U.BEFORE_HEAD:{n5(this,t);break}case U.IN_HEAD:{r5(this,t);break}case U.IN_HEAD_NO_SCRIPT:{i5(this,t);break}case U.AFTER_HEAD:{o5(this,t);break}case U.IN_BODY:{Es(this,t);break}case U.TEXT:{G5(this,t);break}case U.IN_TABLE:{So(this,t);break}case U.IN_TABLE_TEXT:{Ao(this,t);break}case U.IN_CAPTION:{r8(this,t);break}case U.IN_COLUMN_GROUP:{a8(this,t);break}case U.IN_TABLE_BODY:{Ld(this,t);break}case U.IN_ROW:{hb(this,t);break}case U.IN_CELL:{u8(this,t);break}case U.IN_SELECT:{mb(this,t);break}case U.IN_SELECT_IN_TABLE:{l8(this,t);break}case U.IN_TEMPLATE:{c8(this,t);break}case U.AFTER_BODY:{bb(this,t);break}case U.IN_FRAMESET:{h8(this,t);break}case U.AFTER_FRAMESET:{m8(this,t);break}case U.AFTER_AFTER_BODY:{As(this,t);break}}}onEof(t){switch(this.insertionMode){case U.INITIAL:{mo(this,t);break}case U.BEFORE_HTML:{go(this,t);break}case U.BEFORE_HEAD:{bo(this,t);break}case U.IN_HEAD:{Eo(this,t);break}case U.IN_HEAD_NO_SCRIPT:{yo(this,t);break}case U.AFTER_HEAD:{To(this,t);break}case U.IN_BODY:case U.IN_TABLE:case U.IN_CAPTION:case U.IN_COLUMN_GROUP:case U.IN_TABLE_BODY:case U.IN_ROW:case U.IN_CELL:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:{sb(this,t);break}case U.TEXT:{$5(this,t);break}case U.IN_TABLE_TEXT:{Ao(this,t);break}case U.IN_TEMPLATE:{gb(this,t);break}case U.AFTER_BODY:case U.IN_FRAMESET:case U.AFTER_FRAMESET:case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{Id(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===I.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:case U.TEXT:case U.IN_COLUMN_GROUP:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:case U.IN_FRAMESET:case U.AFTER_FRAMESET:{this._insertCharacters(t);break}case U.IN_BODY:case U.IN_CAPTION:case U.IN_CELL:case U.IN_TEMPLATE:case U.AFTER_BODY:case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{nb(this,t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{Dd(this,t);break}case U.IN_TABLE_TEXT:{cb(this,t);break}}}}function qv(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):lb(e,t),r}function Vv(e,t){let r=null,i=e.openElements.stackTop;for(;i>=0;i--){const o=e.openElements.items[i];if(o===t.element)break;e._isSpecialElement(o,e.openElements.tagIDs[i])&&(r=o)}return r||(e.openElements.shortenToLength(Math.max(i,0)),e.activeFormattingElements.removeEntry(t)),r}function Gv(e,t,r){let i=t,o=e.openElements.getCommonAncestor(t);for(let s=0,c=o;c!==r;s++,c=o){o=e.openElements.getCommonAncestor(c);const d=e.activeFormattingElements.getElementEntry(c),h=d&&s>=Yv;!d||h?(h&&e.activeFormattingElements.removeEntry(d),e.openElements.remove(c)):(c=$v(e,d),i===t&&(e.activeFormattingElements.bookmark=d),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(c,i),i=c)}return i}function $v(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),i=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,i),t.element=i,i}function Xv(e,t,r){const i=e.treeAdapter.getTagName(t),o=Ki(i);if(e._isElementCausesFosterParenting(o))e._fosterParentElement(r);else{const s=e.treeAdapter.getNamespaceURI(t);o===g.TEMPLATE&&s===me.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function Qv(e,t,r){const i=e.treeAdapter.getNamespaceURI(r.element),{token:o}=r,s=e.treeAdapter.createElement(o.tagName,i,o.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,o),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,s,o.tagID)}function Od(e,t){for(let r=0;r<zv;r++){const i=qv(e,t);if(!i)break;const o=Vv(e,i);if(!o)break;e.activeFormattingElements.bookmark=i;const s=Gv(e,o,i.element),c=e.openElements.getCommonAncestor(i.element);e.treeAdapter.detachNode(s),c&&Xv(e,c,s),Qv(e,o,i)}}function kd(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Kv(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Wv(e,t){e._appendCommentNode(t,e.document)}function Id(e,t){if(e.stopped=!0,t.location){const r=e.fragmentContext?0:2;for(let i=e.openElements.stackTop;i>=r;i--)e._setEndLocation(e.openElements.items[i],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const i=e.openElements.items[0],o=e.treeAdapter.getNodeSourceCodeLocation(i);if(o&&!o.endTag&&(e._setEndLocation(i,t),e.openElements.stackTop>=1)){const s=e.openElements.items[1],c=e.treeAdapter.getNodeSourceCodeLocation(s);c&&!c.endTag&&e._setEndLocation(s,t)}}}}function Zv(e,t){e._setDocumentType(t);const r=t.forceQuirks?cr.QUIRKS:Nv(t);Rv(t)||e._err(t,ue.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=U.BEFORE_HTML}function mo(e,t){e._err(t,ue.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,cr.QUIRKS),e.insertionMode=U.BEFORE_HTML,e._processToken(t)}function Jv(e,t){t.tagID===g.HTML?(e._insertElement(t,me.HTML),e.insertionMode=U.BEFORE_HEAD):go(e,t)}function e5(e,t){const r=t.tagID;(r===g.HTML||r===g.HEAD||r===g.BODY||r===g.BR)&&go(e,t)}function go(e,t){e._insertFakeRootElement(),e.insertionMode=U.BEFORE_HEAD,e._processToken(t)}function t5(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.HEAD:{e._insertElement(t,me.HTML),e.headElement=e.openElements.current,e.insertionMode=U.IN_HEAD;break}default:bo(e,t)}}function n5(e,t){const r=t.tagID;r===g.HEAD||r===g.BODY||r===g.HTML||r===g.BR?bo(e,t):e._err(t,ue.endTagWithoutMatchingOpenElement)}function bo(e,t){e._insertFakeElement(W.HEAD,g.HEAD),e.headElement=e.openElements.current,e.insertionMode=U.IN_HEAD,e._processToken(t)}function xr(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:{e._appendElement(t,me.HTML),t.ackSelfClosing=!0;break}case g.TITLE:{e._switchToTextParsing(t,$t.RCDATA);break}case g.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,$t.RAWTEXT):(e._insertElement(t,me.HTML),e.insertionMode=U.IN_HEAD_NO_SCRIPT);break}case g.NOFRAMES:case g.STYLE:{e._switchToTextParsing(t,$t.RAWTEXT);break}case g.SCRIPT:{e._switchToTextParsing(t,$t.SCRIPT_DATA);break}case g.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=U.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(U.IN_TEMPLATE);break}case g.HEAD:{e._err(t,ue.misplacedStartTagForHeadElement);break}default:Eo(e,t)}}function r5(e,t){switch(t.tagID){case g.HEAD:{e.openElements.pop(),e.insertionMode=U.AFTER_HEAD;break}case g.BODY:case g.BR:case g.HTML:{Eo(e,t);break}case g.TEMPLATE:{ai(e,t);break}default:e._err(t,ue.endTagWithoutMatchingOpenElement)}}function ai(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==g.TEMPLATE&&e._err(t,ue.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,ue.endTagWithoutMatchingOpenElement)}function Eo(e,t){e.openElements.pop(),e.insertionMode=U.AFTER_HEAD,e._processToken(t)}function a5(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.BASEFONT:case g.BGSOUND:case g.HEAD:case g.LINK:case g.META:case g.NOFRAMES:case g.STYLE:{xr(e,t);break}case g.NOSCRIPT:{e._err(t,ue.nestedNoscriptInHead);break}default:yo(e,t)}}function i5(e,t){switch(t.tagID){case g.NOSCRIPT:{e.openElements.pop(),e.insertionMode=U.IN_HEAD;break}case g.BR:{yo(e,t);break}default:e._err(t,ue.endTagWithoutMatchingOpenElement)}}function yo(e,t){const r=t.type===Je.EOF?ue.openElementsLeftAfterEof:ue.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=U.IN_HEAD,e._processToken(t)}function u5(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.BODY:{e._insertElement(t,me.HTML),e.framesetOk=!1,e.insertionMode=U.IN_BODY;break}case g.FRAMESET:{e._insertElement(t,me.HTML),e.insertionMode=U.IN_FRAMESET;break}case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:case g.NOFRAMES:case g.SCRIPT:case g.STYLE:case g.TEMPLATE:case g.TITLE:{e._err(t,ue.abandonedHeadElementChild),e.openElements.push(e.headElement,g.HEAD),xr(e,t),e.openElements.remove(e.headElement);break}case g.HEAD:{e._err(t,ue.misplacedStartTagForHeadElement);break}default:To(e,t)}}function o5(e,t){switch(t.tagID){case g.BODY:case g.HTML:case g.BR:{To(e,t);break}case g.TEMPLATE:{ai(e,t);break}default:e._err(t,ue.endTagWithoutMatchingOpenElement)}}function To(e,t){e._insertFakeElement(W.BODY,g.BODY),e.insertionMode=U.IN_BODY,bs(e,t)}function bs(e,t){switch(t.type){case Je.CHARACTER:{rb(e,t);break}case Je.WHITESPACE_CHARACTER:{nb(e,t);break}case Je.COMMENT:{kd(e,t);break}case Je.START_TAG:{xn(e,t);break}case Je.END_TAG:{Es(e,t);break}case Je.EOF:{sb(e,t);break}}}function nb(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function rb(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function l5(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function s5(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function c5(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,me.HTML),e.insertionMode=U.IN_FRAMESET)}function f5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,me.HTML)}function d5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&vd.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,me.HTML)}function h5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,me.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function p5(e,t){const r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,me.HTML),r||(e.formElement=e.openElements.current))}function m5(e,t){e.framesetOk=!1;const r=t.tagID;for(let i=e.openElements.stackTop;i>=0;i--){const o=e.openElements.tagIDs[i];if(r===g.LI&&o===g.LI||(r===g.DD||r===g.DT)&&(o===g.DD||o===g.DT)){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(o!==g.ADDRESS&&o!==g.DIV&&o!==g.P&&e._isSpecialElement(e.openElements.items[i],o))break}e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,me.HTML)}function g5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,me.HTML),e.tokenizer.state=$t.PLAINTEXT}function b5(e,t){e.openElements.hasInScope(g.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.framesetOk=!1}function E5(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(W.A);r&&(Od(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function y5(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function T5(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(g.NOBR)&&(Od(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function S5(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function C5(e,t){e.treeAdapter.getDocumentMode(e.document)!==cr.QUIRKS&&e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,me.HTML),e.framesetOk=!1,e.insertionMode=U.IN_TABLE}function ab(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,me.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function ib(e){const t=Pg(e,ri.TYPE);return t!=null&&t.toLowerCase()===Fv}function A5(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,me.HTML),ib(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function x5(e,t){e._appendElement(t,me.HTML),t.ackSelfClosing=!0}function _5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._appendElement(t,me.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function v5(e,t){t.tagName=W.IMG,t.tagID=g.IMG,ab(e,t)}function R5(e,t){e._insertElement(t,me.HTML),e.skipNextNewLine=!0,e.tokenizer.state=$t.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=U.TEXT}function N5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,$t.RAWTEXT)}function O5(e,t){e.framesetOk=!1,e._switchToTextParsing(t,$t.RAWTEXT)}function ub(e,t){e._switchToTextParsing(t,$t.RAWTEXT)}function k5(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===U.IN_TABLE||e.insertionMode===U.IN_CAPTION||e.insertionMode===U.IN_TABLE_BODY||e.insertionMode===U.IN_ROW||e.insertionMode===U.IN_CELL?U.IN_SELECT_IN_TABLE:U.IN_SELECT}function I5(e,t){e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML)}function D5(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,me.HTML)}function w5(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(g.RTC),e._insertElement(t,me.HTML)}function L5(e,t){e._reconstructActiveFormattingElements(),Wg(t),Nd(t),t.selfClosing?e._appendElement(t,me.MATHML):e._insertElement(t,me.MATHML),t.ackSelfClosing=!0}function M5(e,t){e._reconstructActiveFormattingElements(),Zg(t),Nd(t),t.selfClosing?e._appendElement(t,me.SVG):e._insertElement(t,me.SVG),t.ackSelfClosing=!0}function ob(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML)}function xn(e,t){switch(t.tagID){case g.I:case g.S:case g.B:case g.U:case g.EM:case g.TT:case g.BIG:case g.CODE:case g.FONT:case g.SMALL:case g.STRIKE:case g.STRONG:{y5(e,t);break}case g.A:{E5(e,t);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{d5(e,t);break}case g.P:case g.DL:case g.OL:case g.UL:case g.DIV:case g.DIR:case g.NAV:case g.MAIN:case g.MENU:case g.ASIDE:case g.CENTER:case g.FIGURE:case g.FOOTER:case g.HEADER:case g.HGROUP:case g.DIALOG:case g.DETAILS:case g.ADDRESS:case g.ARTICLE:case g.SEARCH:case g.SECTION:case g.SUMMARY:case g.FIELDSET:case g.BLOCKQUOTE:case g.FIGCAPTION:{f5(e,t);break}case g.LI:case g.DD:case g.DT:{m5(e,t);break}case g.BR:case g.IMG:case g.WBR:case g.AREA:case g.EMBED:case g.KEYGEN:{ab(e,t);break}case g.HR:{_5(e,t);break}case g.RB:case g.RTC:{D5(e,t);break}case g.RT:case g.RP:{w5(e,t);break}case g.PRE:case g.LISTING:{h5(e,t);break}case g.XMP:{N5(e,t);break}case g.SVG:{M5(e,t);break}case g.HTML:{l5(e,t);break}case g.BASE:case g.LINK:case g.META:case g.STYLE:case g.TITLE:case g.SCRIPT:case g.BGSOUND:case g.BASEFONT:case g.TEMPLATE:{xr(e,t);break}case g.BODY:{s5(e,t);break}case g.FORM:{p5(e,t);break}case g.NOBR:{T5(e,t);break}case g.MATH:{L5(e,t);break}case g.TABLE:{C5(e,t);break}case g.INPUT:{A5(e,t);break}case g.PARAM:case g.TRACK:case g.SOURCE:{x5(e,t);break}case g.IMAGE:{v5(e,t);break}case g.BUTTON:{b5(e,t);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{S5(e,t);break}case g.IFRAME:{O5(e,t);break}case g.SELECT:{k5(e,t);break}case g.OPTION:case g.OPTGROUP:{I5(e,t);break}case g.NOEMBED:case g.NOFRAMES:{ub(e,t);break}case g.FRAMESET:{c5(e,t);break}case g.TEXTAREA:{R5(e,t);break}case g.NOSCRIPT:{e.options.scriptingEnabled?ub(e,t):ob(e,t);break}case g.PLAINTEXT:{g5(e,t);break}case g.COL:case g.TH:case g.TD:case g.TR:case g.HEAD:case g.FRAME:case g.TBODY:case g.TFOOT:case g.THEAD:case g.CAPTION:case g.COLGROUP:break;default:ob(e,t)}}function B5(e,t){if(e.openElements.hasInScope(g.BODY)&&(e.insertionMode=U.AFTER_BODY,e.options.sourceCodeLocationInfo)){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function P5(e,t){e.openElements.hasInScope(g.BODY)&&(e.insertionMode=U.AFTER_BODY,bb(e,t))}function U5(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function H5(e){const t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(g.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(g.FORM):r&&e.openElements.remove(r))}function F5(e){e.openElements.hasInButtonScope(g.P)||e._insertFakeElement(W.P,g.P),e._closePElement()}function z5(e){e.openElements.hasInListItemScope(g.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(g.LI),e.openElements.popUntilTagNamePopped(g.LI))}function Y5(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function j5(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function q5(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function V5(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(W.BR,g.BR),e.openElements.pop(),e.framesetOk=!1}function lb(e,t){const r=t.tagName,i=t.tagID;for(let o=e.openElements.stackTop;o>0;o--){const s=e.openElements.items[o],c=e.openElements.tagIDs[o];if(i===c&&(i!==g.UNKNOWN||e.treeAdapter.getTagName(s)===r)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.stackTop>=o&&e.openElements.shortenToLength(o);break}if(e._isSpecialElement(s,c))break}}function Es(e,t){switch(t.tagID){case g.A:case g.B:case g.I:case g.S:case g.U:case g.EM:case g.TT:case g.BIG:case g.CODE:case g.FONT:case g.NOBR:case g.SMALL:case g.STRIKE:case g.STRONG:{Od(e,t);break}case g.P:{F5(e);break}case g.DL:case g.UL:case g.OL:case g.DIR:case g.DIV:case g.NAV:case g.PRE:case g.MAIN:case g.MENU:case g.ASIDE:case g.BUTTON:case g.CENTER:case g.FIGURE:case g.FOOTER:case g.HEADER:case g.HGROUP:case g.DIALOG:case g.ADDRESS:case g.ARTICLE:case g.DETAILS:case g.SEARCH:case g.SECTION:case g.SUMMARY:case g.LISTING:case g.FIELDSET:case g.BLOCKQUOTE:case g.FIGCAPTION:{U5(e,t);break}case g.LI:{z5(e);break}case g.DD:case g.DT:{Y5(e,t);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{j5(e);break}case g.BR:{V5(e);break}case g.BODY:{B5(e,t);break}case g.HTML:{P5(e,t);break}case g.FORM:{H5(e);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{q5(e,t);break}case g.TEMPLATE:{ai(e,t);break}default:lb(e,t)}}function sb(e,t){e.tmplInsertionModeStack.length>0?gb(e,t):Id(e,t)}function G5(e,t){var r;t.tagID===g.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function $5(e,t){e._err(t,ue.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Dd(e,t){if(e.openElements.currentTagId!==void 0&&Jg.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=U.IN_TABLE_TEXT,t.type){case Je.CHARACTER:{fb(e,t);break}case Je.WHITESPACE_CHARACTER:{cb(e,t);break}}else Co(e,t)}function X5(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,me.HTML),e.insertionMode=U.IN_CAPTION}function Q5(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,me.HTML),e.insertionMode=U.IN_COLUMN_GROUP}function K5(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(W.COLGROUP,g.COLGROUP),e.insertionMode=U.IN_COLUMN_GROUP,wd(e,t)}function W5(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,me.HTML),e.insertionMode=U.IN_TABLE_BODY}function Z5(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(W.TBODY,g.TBODY),e.insertionMode=U.IN_TABLE_BODY,Ts(e,t)}function J5(e,t){e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function e8(e,t){ib(t)?e._appendElement(t,me.HTML):Co(e,t),t.ackSelfClosing=!0}function t8(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,me.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Wi(e,t){switch(t.tagID){case g.TD:case g.TH:case g.TR:{Z5(e,t);break}case g.STYLE:case g.SCRIPT:case g.TEMPLATE:{xr(e,t);break}case g.COL:{K5(e,t);break}case g.FORM:{t8(e,t);break}case g.TABLE:{J5(e,t);break}case g.TBODY:case g.TFOOT:case g.THEAD:{W5(e,t);break}case g.INPUT:{e8(e,t);break}case g.CAPTION:{X5(e,t);break}case g.COLGROUP:{Q5(e,t);break}default:Co(e,t)}}function So(e,t){switch(t.tagID){case g.TABLE:{e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode());break}case g.TEMPLATE:{ai(e,t);break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:case g.TBODY:case g.TD:case g.TFOOT:case g.TH:case g.THEAD:case g.TR:break;default:Co(e,t)}}function Co(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,bs(e,t),e.fosterParentingEnabled=r}function cb(e,t){e.pendingCharacterTokens.push(t)}function fb(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Ao(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)Co(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const db=new Set([g.CAPTION,g.COL,g.COLGROUP,g.TBODY,g.TD,g.TFOOT,g.TH,g.THEAD,g.TR]);function n8(e,t){const r=t.tagID;db.has(r)?e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_TABLE,Wi(e,t)):xn(e,t)}function r8(e,t){const r=t.tagID;switch(r){case g.CAPTION:case g.TABLE:{e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_TABLE,r===g.TABLE&&So(e,t));break}case g.BODY:case g.COL:case g.COLGROUP:case g.HTML:case g.TBODY:case g.TD:case g.TFOOT:case g.TH:case g.THEAD:case g.TR:break;default:Es(e,t)}}function wd(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.COL:{e._appendElement(t,me.HTML),t.ackSelfClosing=!0;break}case g.TEMPLATE:{xr(e,t);break}default:ys(e,t)}}function a8(e,t){switch(t.tagID){case g.COLGROUP:{e.openElements.currentTagId===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=U.IN_TABLE);break}case g.TEMPLATE:{ai(e,t);break}case g.COL:break;default:ys(e,t)}}function ys(e,t){e.openElements.currentTagId===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=U.IN_TABLE,e._processToken(t))}function Ts(e,t){switch(t.tagID){case g.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,me.HTML),e.insertionMode=U.IN_ROW;break}case g.TH:case g.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(W.TR,g.TR),e.insertionMode=U.IN_ROW,Ss(e,t);break}case g.CAPTION:case g.COL:case g.COLGROUP:case g.TBODY:case g.TFOOT:case g.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE,Wi(e,t));break}default:Wi(e,t)}}function Ld(e,t){const r=t.tagID;switch(t.tagID){case g.TBODY:case g.TFOOT:case g.THEAD:{e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE);break}case g.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE,So(e,t));break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:case g.TD:case g.TH:case g.TR:break;default:So(e,t)}}function Ss(e,t){switch(t.tagID){case g.TH:case g.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,me.HTML),e.insertionMode=U.IN_CELL,e.activeFormattingElements.insertMarker();break}case g.CAPTION:case g.COL:case g.COLGROUP:case g.TBODY:case g.TFOOT:case g.THEAD:case g.TR:{e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,Ts(e,t));break}default:Wi(e,t)}}function hb(e,t){switch(t.tagID){case g.TR:{e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY);break}case g.TABLE:{e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,Ld(e,t));break}case g.TBODY:case g.TFOOT:case g.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(g.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,Ld(e,t));break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:case g.TD:case g.TH:break;default:So(e,t)}}function i8(e,t){const r=t.tagID;db.has(r)?(e.openElements.hasInTableScope(g.TD)||e.openElements.hasInTableScope(g.TH))&&(e._closeTableCell(),Ss(e,t)):xn(e,t)}function u8(e,t){const r=t.tagID;switch(r){case g.TD:case g.TH:{e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_ROW);break}case g.TABLE:case g.TBODY:case g.TFOOT:case g.THEAD:case g.TR:{e.openElements.hasInTableScope(r)&&(e._closeTableCell(),hb(e,t));break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:break;default:Es(e,t)}}function pb(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.OPTION:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e._insertElement(t,me.HTML);break}case g.OPTGROUP:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e.openElements.currentTagId===g.OPTGROUP&&e.openElements.pop(),e._insertElement(t,me.HTML);break}case g.HR:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e.openElements.currentTagId===g.OPTGROUP&&e.openElements.pop(),e._appendElement(t,me.HTML),t.ackSelfClosing=!0;break}case g.INPUT:case g.KEYGEN:case g.TEXTAREA:case g.SELECT:{e.openElements.hasInSelectScope(g.SELECT)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),t.tagID!==g.SELECT&&e._processStartTag(t));break}case g.SCRIPT:case g.TEMPLATE:{xr(e,t);break}}}function mb(e,t){switch(t.tagID){case g.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===g.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===g.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===g.OPTGROUP&&e.openElements.pop();break}case g.OPTION:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop();break}case g.SELECT:{e.openElements.hasInSelectScope(g.SELECT)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode());break}case g.TEMPLATE:{ai(e,t);break}}}function o8(e,t){const r=t.tagID;r===g.CAPTION||r===g.TABLE||r===g.TBODY||r===g.TFOOT||r===g.THEAD||r===g.TR||r===g.TD||r===g.TH?(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e._processStartTag(t)):pb(e,t)}function l8(e,t){const r=t.tagID;r===g.CAPTION||r===g.TABLE||r===g.TBODY||r===g.TFOOT||r===g.THEAD||r===g.TR||r===g.TD||r===g.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e.onEndTag(t)):mb(e,t)}function s8(e,t){switch(t.tagID){case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:case g.NOFRAMES:case g.SCRIPT:case g.STYLE:case g.TEMPLATE:case g.TITLE:{xr(e,t);break}case g.CAPTION:case g.COLGROUP:case g.TBODY:case g.TFOOT:case g.THEAD:{e.tmplInsertionModeStack[0]=U.IN_TABLE,e.insertionMode=U.IN_TABLE,Wi(e,t);break}case g.COL:{e.tmplInsertionModeStack[0]=U.IN_COLUMN_GROUP,e.insertionMode=U.IN_COLUMN_GROUP,wd(e,t);break}case g.TR:{e.tmplInsertionModeStack[0]=U.IN_TABLE_BODY,e.insertionMode=U.IN_TABLE_BODY,Ts(e,t);break}case g.TD:case g.TH:{e.tmplInsertionModeStack[0]=U.IN_ROW,e.insertionMode=U.IN_ROW,Ss(e,t);break}default:e.tmplInsertionModeStack[0]=U.IN_BODY,e.insertionMode=U.IN_BODY,xn(e,t)}}function c8(e,t){t.tagID===g.TEMPLATE&&ai(e,t)}function gb(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Id(e,t)}function f8(e,t){t.tagID===g.HTML?xn(e,t):Cs(e,t)}function bb(e,t){var r;if(t.tagID===g.HTML){if(e.fragmentContext||(e.insertionMode=U.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===g.HTML){e._setEndLocation(e.openElements.items[0],t);const i=e.openElements.items[1];i&&!(!((r=e.treeAdapter.getNodeSourceCodeLocation(i))===null||r===void 0)&&r.endTag)&&e._setEndLocation(i,t)}}else Cs(e,t)}function Cs(e,t){e.insertionMode=U.IN_BODY,bs(e,t)}function d8(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.FRAMESET:{e._insertElement(t,me.HTML);break}case g.FRAME:{e._appendElement(t,me.HTML),t.ackSelfClosing=!0;break}case g.NOFRAMES:{xr(e,t);break}}}function h8(e,t){t.tagID===g.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==g.FRAMESET&&(e.insertionMode=U.AFTER_FRAMESET))}function p8(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.NOFRAMES:{xr(e,t);break}}}function m8(e,t){t.tagID===g.HTML&&(e.insertionMode=U.AFTER_AFTER_FRAMESET)}function g8(e,t){t.tagID===g.HTML?xn(e,t):As(e,t)}function As(e,t){e.insertionMode=U.IN_BODY,bs(e,t)}function b8(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.NOFRAMES:{xr(e,t);break}}}function E8(e,t){t.chars=Ut,e._insertCharacters(t)}function y8(e,t){e._insertCharacters(t),e.framesetOk=!1}function Eb(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==me.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function T8(e,t){if(Mv(t))Eb(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(r);i===me.MATHML?Wg(t):i===me.SVG&&(Bv(t),Zg(t)),Nd(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i),t.ackSelfClosing=!0}}function S8(e,t){if(t.tagID===g.P||t.tagID===g.BR){Eb(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(i)===me.HTML){e._endTagOutsideForeignContent(t);break}const o=e.treeAdapter.getTagName(i);if(o.toLowerCase()===t.tagName){t.tagName=o,e.openElements.shortenToLength(r);break}}}W.AREA,W.BASE,W.BASEFONT,W.BGSOUND,W.BR,W.COL,W.EMBED,W.FRAME,W.HR,W.IMG,W.INPUT,W.KEYGEN,W.LINK,W.META,W.PARAM,W.SOURCE,W.TRACK,W.WBR;const C8=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,A8=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),yb={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Tb(e,t){const r=w8(e),i=Dg("type",{handlers:{root:x8,element:_8,text:v8,comment:Cb,doctype:R8,raw:O8},unknown:k8}),o={parser:r?new tb(yb):tb.getFragmentParser(void 0,yb),handle(d){i(d,o)},stitches:!1,options:t||{}};i(e,o),Zi(o,Dr());const s=r?o.parser.document:o.parser.getFragment(),c=x4(s,{file:o.options.file});return o.stitches&&id(c,"comment",function(d,h,p){const b=d;if(b.value.stitch&&p&&h!==void 0){const E=p.children;return E[h]=b.value.stitch,h}}),c.type==="root"&&c.children.length===1&&c.children[0].type===e.type?c.children[0]:c}function Sb(e,t){let r=-1;if(e)for(;++r<e.length;)t.handle(e[r])}function x8(e,t){Sb(e.children,t)}function _8(e,t){I8(e,t),Sb(e.children,t),D8(e,t)}function v8(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const r={type:Je.CHARACTER,chars:e.value,location:xo(e)};Zi(t,Dr(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function R8(e,t){const r={type:Je.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:xo(e)};Zi(t,Dr(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function N8(e,t){t.stitches=!0;const r=L8(e);if("children"in e&&"children"in r){const i=Tb({type:"root",children:e.children},t.options);r.children=i.children}Cb({type:"comment",value:{stitch:r}},t)}function Cb(e,t){const r=e.value,i={type:Je.COMMENT,data:r,location:xo(e)};Zi(t,Dr(e)),t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken)}function O8(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Ab(t,Dr(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(C8,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const r=t.parser.tokenizer._consume();t.parser.tokenizer._callState(r)}}function k8(e,t){const r=e;if(t.options.passThrough&&t.options.passThrough.includes(r.type))N8(r,t);else{let i="";throw A8.has(r.type)&&(i=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+r.type+"` node"+i)}}function Zi(e,t){Ab(e,t);const r=e.parser.tokenizer.currentCharacterToken;r&&r.location&&(r.location.endLine=e.parser.tokenizer.preprocessor.line,r.location.endCol=e.parser.tokenizer.preprocessor.col+1,r.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=$t.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Ab(e,t){if(t&&t.offset!==void 0){const r={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=r}}function I8(e,t){const r=e.tagName.toLowerCase();if(t.parser.tokenizer.state===$t.PLAINTEXT)return;Zi(t,Dr(e));const i=t.parser.openElements.current;let o="namespaceURI"in i?i.namespaceURI:ti.html;o===ti.html&&r==="svg"&&(o=ti.svg);const s=H4({...e,children:[]},{space:o===ti.svg?"svg":"html"}),c={type:Je.START_TAG,tagName:r,tagID:Ki(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in s?s.attrs:[],location:xo(e)};t.parser.currentToken=c,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r}function D8(e,t){const r=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&$4.includes(r)||t.parser.tokenizer.state===$t.PLAINTEXT)return;Zi(t,is(e));const i={type:Je.END_TAG,tagName:r,tagID:Ki(r),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:xo(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),r===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===$t.RCDATA||t.parser.tokenizer.state===$t.RAWTEXT||t.parser.tokenizer.state===$t.SCRIPT_DATA)&&(t.parser.tokenizer.state=$t.DATA)}function w8(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function xo(e){const t=Dr(e)||{line:void 0,column:void 0,offset:void 0},r=is(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:r.line,endCol:r.column,endOffset:r.offset}}function L8(e){return"children"in e?Vi({...e,children:[]}):Vi(e)}function M8(e){return function(t,r){return Tb(t,{...e,file:r})}}const B8=({color:e="currentColor",size:t=24,className:r,...i})=>St.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},St.createElement("path",{d:"M7.82843 10.9999H20V12.9999H7.82843L13.1924 18.3638L11.7782 19.778L4 11.9999L11.7782 4.22168L13.1924 5.63589L7.82843 10.9999Z"})),P8=({color:e="currentColor",size:t=24,className:r,...i})=>St.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},St.createElement("path",{d:"M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z"})),xb=({color:e="currentColor",size:t=24,className:r,...i})=>St.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},St.createElement("path",{d:"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"})),U8=({color:e="currentColor",size:t=24,className:r,...i})=>St.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},St.createElement("path",{d:"M5 10C3.9 10 3 10.9 3 12C3 13.1 3.9 14 5 14C6.1 14 7 13.1 7 12C7 10.9 6.1 10 5 10ZM19 10C17.9 10 17 10.9 17 12C17 13.1 17.9 14 19 14C20.1 14 21 13.1 21 12C21 10.9 20.1 10 19 10ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10Z"})),_b=({color:e="currentColor",size:t=24,className:r,...i})=>St.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},St.createElement("path",{d:"M1.94607 9.31543C1.42353 9.14125 1.4194 8.86022 1.95682 8.68108L21.043 2.31901C21.5715 2.14285 21.8746 2.43866 21.7265 2.95694L16.2733 22.0432C16.1223 22.5716 15.8177 22.59 15.5944 22.0876L11.9999 14L17.9999 6.00005L9.99992 12L1.94607 9.31543Z"})),H8=({color:e="currentColor",size:t=24,className:r,...i})=>St.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},St.createElement("path",{d:"M6 5H18C18.5523 5 19 5.44772 19 6V18C19 18.5523 18.5523 19 18 19H6C5.44772 19 5 18.5523 5 18V6C5 5.44772 5.44772 5 6 5Z"})),Md=({color:e="currentColor",size:t=24,className:r,...i})=>St.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},St.createElement("path",{d:"M17.0007 1.20825 18.3195 3.68108 20.7923 4.99992 18.3195 6.31876 17.0007 8.79159 15.6818 6.31876 13.209 4.99992 15.6818 3.68108 17.0007 1.20825ZM10.6673 9.33325 15.6673 11.9999 10.6673 14.6666 8.00065 19.6666 5.33398 14.6666.333984 11.9999 5.33398 9.33325 8.00065 4.33325 10.6673 9.33325ZM11.4173 11.9999 9.18905 10.8115 8.00065 8.58325 6.81224 10.8115 4.58398 11.9999 6.81224 13.1883 8.00065 15.4166 9.18905 13.1883 11.4173 11.9999ZM19.6673 16.3333 18.0007 13.2083 16.334 16.3333 13.209 17.9999 16.334 19.6666 18.0007 22.7916 19.6673 19.6666 22.7923 17.9999 19.6673 16.3333Z"}));function vb(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=vb(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function tt(){for(var e,t,r=0,i="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=vb(e))&&(i&&(i+=" "),i+=t);return i}function On(e,t,r=void 0){const i={};for(const o in e){const s=e[o];let c="",d=!0;for(let h=0;h<s.length;h+=1){const p=s[h];p&&(c+=(d===!0?"":" ")+t(p),d=!1,r&&r[p]&&(c+=" "+r[p]))}i[o]=c}return i}const Rb=A.createContext();function F8({value:e,...t}){return pe.jsx(Rb.Provider,{value:e??!0,...t})}const Bd=()=>A.useContext(Rb)??!1;var Pd={exports:{}},Rt={};/**
|
|
71
71
|
* @license React
|
|
72
72
|
* react-is.production.js
|
|
73
73
|
*
|
|
@@ -75,19 +75,19 @@ Error generating stack: `+u.message+`
|
|
|
75
75
|
*
|
|
76
76
|
* This source code is licensed under the MIT license found in the
|
|
77
77
|
* LICENSE file in the root directory of this source tree.
|
|
78
|
-
*/var bb;function T8(){if(bb)return xt;bb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),T=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function R(x){if(typeof x=="object"&&x!==null){var U=x.$$typeof;switch(U){case e:switch(x=x.type,x){case r:case l:case i:case p:case m:case T:return x;default:switch(x=x&&x.$$typeof,x){case c:case d:case E:case b:return x;case s:return x;default:return U}}case t:return U}}}return xt.ContextConsumer=s,xt.ContextProvider=c,xt.Element=e,xt.ForwardRef=d,xt.Fragment=r,xt.Lazy=E,xt.Memo=b,xt.Portal=t,xt.Profiler=l,xt.StrictMode=i,xt.Suspense=p,xt.SuspenseList=m,xt.isContextConsumer=function(x){return R(x)===s},xt.isContextProvider=function(x){return R(x)===c},xt.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},xt.isForwardRef=function(x){return R(x)===d},xt.isFragment=function(x){return R(x)===r},xt.isLazy=function(x){return R(x)===E},xt.isMemo=function(x){return R(x)===b},xt.isPortal=function(x){return R(x)===t},xt.isProfiler=function(x){return R(x)===l},xt.isStrictMode=function(x){return R(x)===i},xt.isSuspense=function(x){return R(x)===p},xt.isSuspenseList=function(x){return R(x)===m},xt.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===l||x===i||x===p||x===m||typeof x=="object"&&x!==null&&(x.$$typeof===E||x.$$typeof===b||x.$$typeof===c||x.$$typeof===s||x.$$typeof===d||x.$$typeof===y||x.getModuleId!==void 0)},xt.typeOf=R,xt}var Eb;function S8(){return Eb||(Eb=1,Dd.exports=T8()),Dd.exports}var yb=S8();function Pr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Tb(e){if(A.isValidElement(e)||yb.isValidElementType(e)||!Pr(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Tb(e[r])}),t}function Un(e,t,r={clone:!0}){const i=r.clone?{...e}:e;return Pr(e)&&Pr(t)&&Object.keys(t).forEach(l=>{A.isValidElement(t[l])||yb.isValidElementType(t[l])?i[l]=t[l]:Pr(t[l])&&Object.prototype.hasOwnProperty.call(e,l)&&Pr(e[l])?i[l]=Un(e[l],t[l],r):r.clone?i[l]=Pr(t[l])?Tb(t[l]):t[l]:i[l]=t[l]}),i}function Aa(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>r.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${r} for the full message.`}function ct(e){if(typeof e!="string")throw new Error(Aa(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Sb(...e){return e.reduce((t,r)=>r==null?t:function(...l){t.apply(this,l),r.apply(this,l)},()=>{})}function ys(e,t=166){let r;function i(...l){const s=()=>{e.apply(this,l)};clearTimeout(r),r=setTimeout(s,t)}return i.clear=()=>{clearTimeout(r)},i}function _a(e){return e&&e.ownerDocument||document}function Ur(e){return _a(e).defaultView||window}function Cb(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const xa=typeof window<"u"?A.useLayoutEffect:A.useEffect;let Ab=0;function C8(e){const[t,r]=A.useState(e),i=e||t;return A.useEffect(()=>{t==null&&(Ab+=1,r(`mui-${Ab}`))},[t]),i}const _b={...df}.useId;function A8(e){if(_b!==void 0){const t=_b();return e??t}return C8(e)}function Hr(e){const t=A.useRef(e);return xa(()=>{t.current=e}),A.useRef((...r)=>(0,t.current)(...r)).current}function xr(...e){const t=A.useRef(void 0),r=A.useCallback(i=>{const l=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const c=s,d=c(i);return typeof d=="function"?d:()=>{c(null)}}return s.current=i,()=>{s.current=null}});return()=>{l.forEach(s=>s==null?void 0:s())}},e);return A.useMemo(()=>e.every(i=>i==null)?null:i=>{t.current&&(t.current(),t.current=void 0),i!=null&&(t.current=r(i))},e)}const xb={};function vb(e,t){const r=A.useRef(xb);return r.current===xb&&(r.current=e(t)),r}const _8=[];function x8(e){A.useEffect(e,_8)}class kd{constructor(){jo(this,"currentId",null);jo(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});jo(this,"disposeEffect",()=>this.clear)}static create(){return new kd}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function v8(){const e=vb(kd.create).current;return x8(e.disposeEffect),e}function Rb(e){try{return e.matches(":focus-visible")}catch{}return!1}function R8(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Ts(e,t){const r={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const l=i;if(l==="components"||l==="slots")r[l]={...e[l],...r[l]};else if(l==="componentsProps"||l==="slotProps"){const s=e[l],c=t[l];if(!c)r[l]=s||{};else if(!s)r[l]=c;else{r[l]={...c};for(const d in s)if(Object.prototype.hasOwnProperty.call(s,d)){const p=d;r[l][p]=Ts(s[p],c[p])}}}else r[l]===void 0&&(r[l]=e[l])}return r}const Nb=e=>e,N8=(()=>{let e=Nb;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Nb}}})(),O8={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function xn(e,t,r="Mui"){const i=O8[t];return i?`${r}-${i}`:`${N8.generate(e)}-${t}`}function vn(e,t,r="Mui"){const i={};return t.forEach(l=>{i[l]=xn(e,l,r)}),i}function I8(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function D8(e){return typeof e=="string"}function Ob(e,t,r){return e===void 0||D8(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function Ib(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!t.includes(i)).forEach(i=>{r[i]=e[i]}),r}function Db(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function kb(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:i,externalForwardedProps:l,className:s}=e;if(!t){const y=tt(r==null?void 0:r.className,s,l==null?void 0:l.className,i==null?void 0:i.className),R={...r==null?void 0:r.style,...l==null?void 0:l.style,...i==null?void 0:i.style},x={...r,...l,...i};return y.length>0&&(x.className=y),Object.keys(R).length>0&&(x.style=R),{props:x,internalRef:void 0}}const c=Ib({...l,...i}),d=Db(i),p=Db(l),m=t(c),b=tt(m==null?void 0:m.className,r==null?void 0:r.className,s,l==null?void 0:l.className,i==null?void 0:i.className),E={...m==null?void 0:m.style,...r==null?void 0:r.style,...l==null?void 0:l.style,...i==null?void 0:i.style},T={...m,...r,...p,...d};return b.length>0&&(T.className=b),Object.keys(E).length>0&&(T.style=E),{props:T,internalRef:m.ref}}function Lb(e,t,r){return typeof e=="function"?e(t,r):e}function Ss(e){var E;const{elementType:t,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:l=!1,...s}=e,c=l?{}:Lb(r,i),{props:d,internalRef:p}=kb({...s,externalSlotProps:c}),m=xr(p,c==null?void 0:c.ref,(E=e.additionalProps)==null?void 0:E.ref);return Ob(t,{...d,ref:m},i)}function Cs(e){var t;return parseInt(A.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function k8(e){const t=_a(e);return t.body===e?Ur(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Cl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Mb(e){return parseInt(Ur(e).getComputedStyle(e).paddingRight,10)||0}function L8(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),i=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||i}function wb(e,t,r,i,l){const s=[t,r,...i];[].forEach.call(e.children,c=>{const d=!s.includes(c),p=!L8(c);d&&p&&Cl(c,l)})}function Ld(e,t){let r=-1;return e.some((i,l)=>t(i)?(r=l,!0):!1),r}function M8(e,t){const r=[],i=e.container;if(!t.disableScrollLock){if(k8(i)){const c=R8(Ur(i));r.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${Mb(i)+c}px`;const d=_a(i).querySelectorAll(".mui-fixed");[].forEach.call(d,p=>{r.push({value:p.style.paddingRight,property:"padding-right",el:p}),p.style.paddingRight=`${Mb(p)+c}px`})}let s;if(i.parentNode instanceof DocumentFragment)s=_a(i).body;else{const c=i.parentElement,d=Ur(i);s=(c==null?void 0:c.nodeName)==="HTML"&&d.getComputedStyle(c).overflowY==="scroll"?c:i}r.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{r.forEach(({value:s,el:c,property:d})=>{s?c.style.setProperty(d,s):c.style.removeProperty(d)})}}function w8(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class B8{constructor(){this.modals=[],this.containers=[]}add(t,r){let i=this.modals.indexOf(t);if(i!==-1)return i;i=this.modals.length,this.modals.push(t),t.modalRef&&Cl(t.modalRef,!1);const l=w8(r);wb(r,t.mount,t.modalRef,l,!0);const s=Ld(this.containers,c=>c.container===r);return s!==-1?(this.containers[s].modals.push(t),i):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:l}),i)}mount(t,r){const i=Ld(this.containers,s=>s.modals.includes(t)),l=this.containers[i];l.restore||(l.restore=M8(l,r))}remove(t,r=!0){const i=this.modals.indexOf(t);if(i===-1)return i;const l=Ld(this.containers,c=>c.modals.includes(t)),s=this.containers[l];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(i,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&Cl(t.modalRef,r),wb(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(l,1);else{const c=s.modals[s.modals.length-1];c.modalRef&&Cl(c.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const P8=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function U8(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function H8(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=i=>e.ownerDocument.querySelector(`input[type="radio"]${i}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function F8(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||H8(e))}function z8(e){const t=[],r=[];return Array.from(e.querySelectorAll(P8)).forEach((i,l)=>{const s=U8(i);s===-1||!F8(i)||(s===0?t.push(i):r.push({documentOrder:l,tabIndex:s,node:i}))}),r.sort((i,l)=>i.tabIndex===l.tabIndex?i.documentOrder-l.documentOrder:i.tabIndex-l.tabIndex).map(i=>i.node).concat(t)}function Y8(){return!0}function j8(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:i=!1,disableRestoreFocus:l=!1,getTabbable:s=z8,isEnabled:c=Y8,open:d}=e,p=A.useRef(!1),m=A.useRef(null),b=A.useRef(null),E=A.useRef(null),T=A.useRef(null),y=A.useRef(!1),R=A.useRef(null),x=xr(Cs(t),R),U=A.useRef(null);A.useEffect(()=>{!d||!R.current||(y.current=!r)},[r,d]),A.useEffect(()=>{if(!d||!R.current)return;const M=_a(R.current);return R.current.contains(M.activeElement)||(R.current.hasAttribute("tabIndex")||R.current.setAttribute("tabIndex","-1"),y.current&&R.current.focus()),()=>{l||(E.current&&E.current.focus&&(p.current=!0,E.current.focus()),E.current=null)}},[d]),A.useEffect(()=>{if(!d||!R.current)return;const M=_a(R.current),P=Y=>{U.current=Y,!(i||!c()||Y.key!=="Tab")&&M.activeElement===R.current&&Y.shiftKey&&(p.current=!0,b.current&&b.current.focus())},k=()=>{var G,_;const Y=R.current;if(Y===null)return;if(!M.hasFocus()||!c()||p.current){p.current=!1;return}if(Y.contains(M.activeElement)||i&&M.activeElement!==m.current&&M.activeElement!==b.current)return;if(M.activeElement!==T.current)T.current=null;else if(T.current!==null)return;if(!y.current)return;let j=[];if((M.activeElement===m.current||M.activeElement===b.current)&&(j=s(R.current)),j.length>0){const z=!!((G=U.current)!=null&&G.shiftKey&&((_=U.current)==null?void 0:_.key)==="Tab"),$=j[0],Z=j[j.length-1];typeof $!="string"&&typeof Z!="string"&&(z?Z.focus():$.focus())}else Y.focus()};M.addEventListener("focusin",k),M.addEventListener("keydown",P,!0);const N=setInterval(()=>{M.activeElement&&M.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(N),M.removeEventListener("focusin",k),M.removeEventListener("keydown",P,!0)}},[r,i,l,c,d,s]);const D=M=>{E.current===null&&(E.current=M.relatedTarget),y.current=!0,T.current=M.target;const P=t.props.onFocus;P&&P(M)},q=M=>{E.current===null&&(E.current=M.relatedTarget),y.current=!0};return he.jsxs(A.Fragment,{children:[he.jsx("div",{tabIndex:d?0:-1,onFocus:q,ref:m,"data-testid":"sentinelStart"}),A.cloneElement(t,{ref:x,onFocus:D}),he.jsx("div",{tabIndex:d?0:-1,onFocus:q,ref:b,"data-testid":"sentinelEnd"})]})}var Bb=tm();const As=lr(Bb);function q8(e){return typeof e=="function"?e():e}const V8=A.forwardRef(function(t,r){const{children:i,container:l,disablePortal:s=!1}=t,[c,d]=A.useState(null),p=xr(A.isValidElement(i)?Cs(i):null,r);if(xa(()=>{s||d(q8(l)||document.body)},[l,s]),xa(()=>{if(c&&!s)return Cb(r,c),()=>{Cb(r,null)}},[r,c,s]),s){if(A.isValidElement(i)){const m={ref:p};return A.cloneElement(i,m)}return i}return c&&Bb.createPortal(i,c)});function Al(e,t){return t?Un(e,t,{clone:!1}):e}function G8(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(i=>i.startsWith("@container")).sort((i,l)=>{var c,d;const s=/min-width:\s*([0-9.]+)/;return+(((c=i.match(s))==null?void 0:c[1])||0)-+(((d=l.match(s))==null?void 0:d[1])||0)});return r.length?r.reduce((i,l)=>{const s=t[l];return delete i[l],i[l]=s,i},{...t}):t}function $8(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function X8(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,i,l]=r,s=Number.isNaN(+i)?i||0:+i;return e.containerQueries(l).up(s)}function Q8(e){const t=(s,c)=>s.replace("@media",c?`@container ${c}`:"@container");function r(s,c){s.up=(...d)=>t(e.breakpoints.up(...d),c),s.down=(...d)=>t(e.breakpoints.down(...d),c),s.between=(...d)=>t(e.breakpoints.between(...d),c),s.only=(...d)=>t(e.breakpoints.only(...d),c),s.not=(...d)=>{const p=t(e.breakpoints.not(...d),c);return p.includes("not all and")?p.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):p}}const i={},l=s=>(r(i,s),i);return r(l),{...e,containerQueries:l}}const _s={xs:0,sm:600,md:900,lg:1200,xl:1536},Pb={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${_s[e]}px)`},K8={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:_s[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Kr(e,t,r){const i=e.theme||{};if(Array.isArray(t)){const s=i.breakpoints||Pb;return t.reduce((c,d,p)=>(c[s.up(s.keys[p])]=r(t[p]),c),{})}if(typeof t=="object"){const s=i.breakpoints||Pb;return Object.keys(t).reduce((c,d)=>{if($8(s.keys,d)){const p=X8(i.containerQueries?i:K8,d);p&&(c[p]=r(t[d],d))}else if(Object.keys(s.values||_s).includes(d)){const p=s.up(d);c[p]=r(t[d],d)}else{const p=d;c[p]=t[p]}return c},{})}return r(t)}function W8(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((i,l)=>{const s=e.up(l);return i[s]={},i},{}))||{}}function Z8(e,t){return e.reduce((r,i)=>{const l=r[i];return(!l||Object.keys(l).length===0)&&delete r[i],r},t)}function xs(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const i=`vars.${t}`.split(".").reduce((l,s)=>l&&l[s]?l[s]:null,e);if(i!=null)return i}return t.split(".").reduce((i,l)=>i&&i[l]!=null?i[l]:null,e)}function vs(e,t,r,i=r){let l;return typeof e=="function"?l=e(r):Array.isArray(e)?l=e[r]||i:l=xs(e,r)||i,t&&(l=t(l,i,e)),l}function Xt(e){const{prop:t,cssProperty:r=e.prop,themeKey:i,transform:l}=e,s=c=>{if(c[t]==null)return null;const d=c[t],p=c.theme,m=xs(p,i)||{};return Kr(c,d,E=>{let T=vs(m,l,E);return E===T&&typeof E=="string"&&(T=vs(m,l,`${t}${E==="default"?"":ct(E)}`,E)),r===!1?T:{[r]:T}})};return s.propTypes={},s.filterProps=[t],s}function J8(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const eR={m:"margin",p:"padding"},tR={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ub={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},nR=J8(e=>{if(e.length>2)if(Ub[e])e=Ub[e];else return[e];const[t,r]=e.split(""),i=eR[t],l=tR[r]||"";return Array.isArray(l)?l.map(s=>i+s):[i+l]}),Md=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],wd=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Md,...wd];function _l(e,t,r,i){const l=xs(e,t,!0)??r;return typeof l=="number"||typeof l=="string"?s=>typeof s=="string"?s:typeof l=="string"?`calc(${s} * ${l})`:l*s:Array.isArray(l)?s=>{if(typeof s=="string")return s;const c=Math.abs(s),d=l[c];return s>=0?d:typeof d=="number"?-d:`-${d}`}:typeof l=="function"?l:()=>{}}function Bd(e){return _l(e,"spacing",8)}function xl(e,t){return typeof t=="string"||t==null?t:e(t)}function rR(e,t){return r=>e.reduce((i,l)=>(i[l]=xl(t,r),i),{})}function aR(e,t,r,i){if(!t.includes(r))return null;const l=nR(r),s=rR(l,i),c=e[r];return Kr(e,c,s)}function Hb(e,t){const r=Bd(e.theme);return Object.keys(e).map(i=>aR(e,t,i,r)).reduce(Al,{})}function jt(e){return Hb(e,Md)}jt.propTypes={},jt.filterProps=Md;function qt(e){return Hb(e,wd)}qt.propTypes={},qt.filterProps=wd;function Rs(...e){const t=e.reduce((i,l)=>(l.filterProps.forEach(s=>{i[s]=l}),i),{}),r=i=>Object.keys(i).reduce((l,s)=>t[s]?Al(l,t[s](i)):l,{});return r.propTypes={},r.filterProps=e.reduce((i,l)=>i.concat(l.filterProps),[]),r}function fr(e){return typeof e!="number"?e:`${e}px solid`}function dr(e,t){return Xt({prop:e,themeKey:"borders",transform:t})}const iR=dr("border",fr),uR=dr("borderTop",fr),lR=dr("borderRight",fr),oR=dr("borderBottom",fr),sR=dr("borderLeft",fr),cR=dr("borderColor"),fR=dr("borderTopColor"),dR=dr("borderRightColor"),hR=dr("borderBottomColor"),pR=dr("borderLeftColor"),mR=dr("outline",fr),gR=dr("outlineColor"),Ns=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=_l(e.theme,"shape.borderRadius",4),r=i=>({borderRadius:xl(t,i)});return Kr(e,e.borderRadius,r)}return null};Ns.propTypes={},Ns.filterProps=["borderRadius"],Rs(iR,uR,lR,oR,sR,cR,fR,dR,hR,pR,Ns,mR,gR);const Os=e=>{if(e.gap!==void 0&&e.gap!==null){const t=_l(e.theme,"spacing",8),r=i=>({gap:xl(t,i)});return Kr(e,e.gap,r)}return null};Os.propTypes={},Os.filterProps=["gap"];const Is=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=_l(e.theme,"spacing",8),r=i=>({columnGap:xl(t,i)});return Kr(e,e.columnGap,r)}return null};Is.propTypes={},Is.filterProps=["columnGap"];const Ds=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=_l(e.theme,"spacing",8),r=i=>({rowGap:xl(t,i)});return Kr(e,e.rowGap,r)}return null};Ds.propTypes={},Ds.filterProps=["rowGap"];const bR=Xt({prop:"gridColumn"}),ER=Xt({prop:"gridRow"}),yR=Xt({prop:"gridAutoFlow"}),TR=Xt({prop:"gridAutoColumns"}),SR=Xt({prop:"gridAutoRows"}),CR=Xt({prop:"gridTemplateColumns"}),AR=Xt({prop:"gridTemplateRows"}),_R=Xt({prop:"gridTemplateAreas"}),xR=Xt({prop:"gridArea"});Rs(Os,Is,Ds,bR,ER,yR,TR,SR,CR,AR,_R,xR);function Wi(e,t){return t==="grey"?t:e}const vR=Xt({prop:"color",themeKey:"palette",transform:Wi}),RR=Xt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Wi}),NR=Xt({prop:"backgroundColor",themeKey:"palette",transform:Wi});Rs(vR,RR,NR);function Wn(e){return e<=1&&e!==0?`${e*100}%`:e}const OR=Xt({prop:"width",transform:Wn}),Pd=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var l,s,c,d,p;const i=((c=(s=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:s.values)==null?void 0:c[r])||_s[r];return i?((p=(d=e.theme)==null?void 0:d.breakpoints)==null?void 0:p.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Wn(r)}};return Kr(e,e.maxWidth,t)}return null};Pd.filterProps=["maxWidth"];const IR=Xt({prop:"minWidth",transform:Wn}),DR=Xt({prop:"height",transform:Wn}),kR=Xt({prop:"maxHeight",transform:Wn}),LR=Xt({prop:"minHeight",transform:Wn});Xt({prop:"size",cssProperty:"width",transform:Wn}),Xt({prop:"size",cssProperty:"height",transform:Wn});const MR=Xt({prop:"boxSizing"});Rs(OR,Pd,IR,DR,kR,LR,MR);const vl={border:{themeKey:"borders",transform:fr},borderTop:{themeKey:"borders",transform:fr},borderRight:{themeKey:"borders",transform:fr},borderBottom:{themeKey:"borders",transform:fr},borderLeft:{themeKey:"borders",transform:fr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:fr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ns},color:{themeKey:"palette",transform:Wi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Wi},backgroundColor:{themeKey:"palette",transform:Wi},p:{style:qt},pt:{style:qt},pr:{style:qt},pb:{style:qt},pl:{style:qt},px:{style:qt},py:{style:qt},padding:{style:qt},paddingTop:{style:qt},paddingRight:{style:qt},paddingBottom:{style:qt},paddingLeft:{style:qt},paddingX:{style:qt},paddingY:{style:qt},paddingInline:{style:qt},paddingInlineStart:{style:qt},paddingInlineEnd:{style:qt},paddingBlock:{style:qt},paddingBlockStart:{style:qt},paddingBlockEnd:{style:qt},m:{style:jt},mt:{style:jt},mr:{style:jt},mb:{style:jt},ml:{style:jt},mx:{style:jt},my:{style:jt},margin:{style:jt},marginTop:{style:jt},marginRight:{style:jt},marginBottom:{style:jt},marginLeft:{style:jt},marginX:{style:jt},marginY:{style:jt},marginInline:{style:jt},marginInlineStart:{style:jt},marginInlineEnd:{style:jt},marginBlock:{style:jt},marginBlockStart:{style:jt},marginBlockEnd:{style:jt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Os},rowGap:{style:Ds},columnGap:{style:Is},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Wn},maxWidth:{style:Pd},minWidth:{transform:Wn},height:{transform:Wn},maxHeight:{transform:Wn},minHeight:{transform:Wn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function wR(...e){const t=e.reduce((i,l)=>i.concat(Object.keys(l)),[]),r=new Set(t);return e.every(i=>r.size===Object.keys(i).length)}function BR(e,t){return typeof e=="function"?e(t):e}function PR(){function e(r,i,l,s){const c={[r]:i,theme:l},d=s[r];if(!d)return{[r]:i};const{cssProperty:p=r,themeKey:m,transform:b,style:E}=d;if(i==null)return null;if(m==="typography"&&i==="inherit")return{[r]:i};const T=xs(l,m)||{};return E?E(c):Kr(c,i,R=>{let x=vs(T,b,R);return R===x&&typeof R=="string"&&(x=vs(T,b,`${r}${R==="default"?"":ct(R)}`,R)),p===!1?x:{[p]:x}})}function t(r){const{sx:i,theme:l={}}=r||{};if(!i)return null;const s=l.unstable_sxConfig??vl;function c(d){let p=d;if(typeof d=="function")p=d(l);else if(typeof d!="object")return d;if(!p)return null;const m=W8(l.breakpoints),b=Object.keys(m);let E=m;return Object.keys(p).forEach(T=>{const y=BR(p[T],l);if(y!=null)if(typeof y=="object")if(s[T])E=Al(E,e(T,y,l,s));else{const R=Kr({theme:l},y,x=>({[T]:x}));wR(R,y)?E[T]=t({sx:y,theme:l}):E=Al(E,R)}else E=Al(E,e(T,y,l,s))}),G8(l,Z8(b,E))}return Array.isArray(i)?i.map(c):c(i)}return t}const ai=PR();ai.filterProps=["sx"];const UR=e=>{var i;const t={systemProps:{},otherProps:{}},r=((i=e==null?void 0:e.theme)==null?void 0:i.unstable_sxConfig)??vl;return Object.keys(e).forEach(l=>{r[l]?t.systemProps[l]=e[l]:t.otherProps[l]=e[l]}),t};function HR(e){const{sx:t,...r}=e,{systemProps:i,otherProps:l}=UR(r);let s;return Array.isArray(t)?s=[i,...t]:typeof t=="function"?s=(...c)=>{const d=t(...c);return Pr(d)?{...i,...d}:i}:s={...i,...t},{...l,sx:s}}function FR(e){return e==null||Object.keys(e).length===0}function Fb(e){const{styles:t,defaultTheme:r={}}=e,i=typeof t=="function"?l=>t(FR(l)?r:l):t;return he.jsx(DC,{styles:i})}/**
|
|
78
|
+
*/var Nb;function z8(){if(Nb)return Rt;Nb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),T=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function v(x){if(typeof x=="object"&&x!==null){var B=x.$$typeof;switch(B){case e:switch(x=x.type,x){case r:case o:case i:case h:case p:case T:return x;default:switch(x=x&&x.$$typeof,x){case c:case d:case E:case b:return x;case s:return x;default:return B}}case t:return B}}}return Rt.ContextConsumer=s,Rt.ContextProvider=c,Rt.Element=e,Rt.ForwardRef=d,Rt.Fragment=r,Rt.Lazy=E,Rt.Memo=b,Rt.Portal=t,Rt.Profiler=o,Rt.StrictMode=i,Rt.Suspense=h,Rt.SuspenseList=p,Rt.isContextConsumer=function(x){return v(x)===s},Rt.isContextProvider=function(x){return v(x)===c},Rt.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},Rt.isForwardRef=function(x){return v(x)===d},Rt.isFragment=function(x){return v(x)===r},Rt.isLazy=function(x){return v(x)===E},Rt.isMemo=function(x){return v(x)===b},Rt.isPortal=function(x){return v(x)===t},Rt.isProfiler=function(x){return v(x)===o},Rt.isStrictMode=function(x){return v(x)===i},Rt.isSuspense=function(x){return v(x)===h},Rt.isSuspenseList=function(x){return v(x)===p},Rt.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===o||x===i||x===h||x===p||typeof x=="object"&&x!==null&&(x.$$typeof===E||x.$$typeof===b||x.$$typeof===c||x.$$typeof===s||x.$$typeof===d||x.$$typeof===y||x.getModuleId!==void 0)},Rt.typeOf=v,Rt}var Ob;function Y8(){return Ob||(Ob=1,Pd.exports=z8()),Pd.exports}var kb=Y8();function Pr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ib(e){if(A.isValidElement(e)||kb.isValidElementType(e)||!Pr(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Ib(e[r])}),t}function Un(e,t,r={clone:!0}){const i=r.clone?{...e}:e;return Pr(e)&&Pr(t)&&Object.keys(t).forEach(o=>{A.isValidElement(t[o])||kb.isValidElementType(t[o])?i[o]=t[o]:Pr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Pr(e[o])?i[o]=Un(e[o],t[o],r):r.clone?i[o]=Pr(t[o])?Ib(t[o]):t[o]:i[o]=t[o]}),i}function Aa(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>r.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${r} for the full message.`}function st(e){if(typeof e!="string")throw new Error(Aa(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Db(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function xs(e,t=166){let r;function i(...o){const s=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(s,t)}return i.clear=()=>{clearTimeout(r)},i}function xa(e){return e&&e.ownerDocument||document}function Ur(e){return xa(e).defaultView||window}function wb(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const _a=typeof window<"u"?A.useLayoutEffect:A.useEffect;let Lb=0;function j8(e){const[t,r]=A.useState(e),i=e||t;return A.useEffect(()=>{t==null&&(Lb+=1,r(`mui-${Lb}`))},[t]),i}const Mb={...bf}.useId;function q8(e){if(Mb!==void 0){const t=Mb();return e??t}return j8(e)}function Hr(e){const t=A.useRef(e);return _a(()=>{t.current=e}),A.useRef((...r)=>(0,t.current)(...r)).current}function _r(...e){const t=A.useRef(void 0),r=A.useCallback(i=>{const o=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const c=s,d=c(i);return typeof d=="function"?d:()=>{c(null)}}return s.current=i,()=>{s.current=null}});return()=>{o.forEach(s=>s==null?void 0:s())}},e);return A.useMemo(()=>e.every(i=>i==null)?null:i=>{t.current&&(t.current(),t.current=void 0),i!=null&&(t.current=r(i))},e)}const Bb={};function Pb(e,t){const r=A.useRef(Bb);return r.current===Bb&&(r.current=e(t)),r}const V8=[];function G8(e){A.useEffect(e,V8)}class Ud{constructor(){Xl(this,"currentId",null);Xl(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Xl(this,"disposeEffect",()=>this.clear)}static create(){return new Ud}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function $8(){const e=Pb(Ud.create).current;return G8(e.disposeEffect),e}function Ub(e){try{return e.matches(":focus-visible")}catch{}return!1}function X8(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function _s(e,t){const r={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const o=i;if(o==="components"||o==="slots")r[o]={...e[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const s=e[o],c=t[o];if(!c)r[o]=s||{};else if(!s)r[o]=c;else{r[o]={...c};for(const d in s)if(Object.prototype.hasOwnProperty.call(s,d)){const h=d;r[o][h]=_s(s[h],c[h])}}}else r[o]===void 0&&(r[o]=e[o])}return r}const Hb=e=>e,Q8=(()=>{let e=Hb;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Hb}}})(),K8={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function _n(e,t,r="Mui"){const i=K8[t];return i?`${r}-${i}`:`${Q8.generate(e)}-${t}`}function vn(e,t,r="Mui"){const i={};return t.forEach(o=>{i[o]=_n(e,o,r)}),i}function W8(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Z8(e){return typeof e=="string"}function Fb(e,t,r){return e===void 0||Z8(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function zb(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!t.includes(i)).forEach(i=>{r[i]=e[i]}),r}function Yb(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function jb(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:i,externalForwardedProps:o,className:s}=e;if(!t){const y=tt(r==null?void 0:r.className,s,o==null?void 0:o.className,i==null?void 0:i.className),v={...r==null?void 0:r.style,...o==null?void 0:o.style,...i==null?void 0:i.style},x={...r,...o,...i};return y.length>0&&(x.className=y),Object.keys(v).length>0&&(x.style=v),{props:x,internalRef:void 0}}const c=zb({...o,...i}),d=Yb(i),h=Yb(o),p=t(c),b=tt(p==null?void 0:p.className,r==null?void 0:r.className,s,o==null?void 0:o.className,i==null?void 0:i.className),E={...p==null?void 0:p.style,...r==null?void 0:r.style,...o==null?void 0:o.style,...i==null?void 0:i.style},T={...p,...r,...h,...d};return b.length>0&&(T.className=b),Object.keys(E).length>0&&(T.style=E),{props:T,internalRef:p.ref}}function qb(e,t,r){return typeof e=="function"?e(t,r):e}function vs(e){var E;const{elementType:t,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1,...s}=e,c=o?{}:qb(r,i),{props:d,internalRef:h}=jb({...s,externalSlotProps:c}),p=_r(h,c==null?void 0:c.ref,(E=e.additionalProps)==null?void 0:E.ref);return Fb(t,{...d,ref:p},i)}function Rs(e){var t;return parseInt(A.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function J8(e){const t=xa(e);return t.body===e?Ur(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function _o(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Vb(e){return parseInt(Ur(e).getComputedStyle(e).paddingRight,10)||0}function eR(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),i=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||i}function Gb(e,t,r,i,o){const s=[t,r,...i];[].forEach.call(e.children,c=>{const d=!s.includes(c),h=!eR(c);d&&h&&_o(c,o)})}function Hd(e,t){let r=-1;return e.some((i,o)=>t(i)?(r=o,!0):!1),r}function tR(e,t){const r=[],i=e.container;if(!t.disableScrollLock){if(J8(i)){const c=X8(Ur(i));r.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${Vb(i)+c}px`;const d=xa(i).querySelectorAll(".mui-fixed");[].forEach.call(d,h=>{r.push({value:h.style.paddingRight,property:"padding-right",el:h}),h.style.paddingRight=`${Vb(h)+c}px`})}let s;if(i.parentNode instanceof DocumentFragment)s=xa(i).body;else{const c=i.parentElement,d=Ur(i);s=(c==null?void 0:c.nodeName)==="HTML"&&d.getComputedStyle(c).overflowY==="scroll"?c:i}r.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{r.forEach(({value:s,el:c,property:d})=>{s?c.style.setProperty(d,s):c.style.removeProperty(d)})}}function nR(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class rR{constructor(){this.modals=[],this.containers=[]}add(t,r){let i=this.modals.indexOf(t);if(i!==-1)return i;i=this.modals.length,this.modals.push(t),t.modalRef&&_o(t.modalRef,!1);const o=nR(r);Gb(r,t.mount,t.modalRef,o,!0);const s=Hd(this.containers,c=>c.container===r);return s!==-1?(this.containers[s].modals.push(t),i):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),i)}mount(t,r){const i=Hd(this.containers,s=>s.modals.includes(t)),o=this.containers[i];o.restore||(o.restore=tR(o,r))}remove(t,r=!0){const i=this.modals.indexOf(t);if(i===-1)return i;const o=Hd(this.containers,c=>c.modals.includes(t)),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(i,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&_o(t.modalRef,r),Gb(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const c=s.modals[s.modals.length-1];c.modalRef&&_o(c.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const aR=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function iR(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function uR(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=i=>e.ownerDocument.querySelector(`input[type="radio"]${i}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function oR(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||uR(e))}function lR(e){const t=[],r=[];return Array.from(e.querySelectorAll(aR)).forEach((i,o)=>{const s=iR(i);s===-1||!oR(i)||(s===0?t.push(i):r.push({documentOrder:o,tabIndex:s,node:i}))}),r.sort((i,o)=>i.tabIndex===o.tabIndex?i.documentOrder-o.documentOrder:i.tabIndex-o.tabIndex).map(i=>i.node).concat(t)}function sR(){return!0}function cR(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:i=!1,disableRestoreFocus:o=!1,getTabbable:s=lR,isEnabled:c=sR,open:d}=e,h=A.useRef(!1),p=A.useRef(null),b=A.useRef(null),E=A.useRef(null),T=A.useRef(null),y=A.useRef(!1),v=A.useRef(null),x=_r(Rs(t),v),B=A.useRef(null);A.useEffect(()=>{!d||!v.current||(y.current=!r)},[r,d]),A.useEffect(()=>{if(!d||!v.current)return;const L=xa(v.current);return v.current.contains(L.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),y.current&&v.current.focus()),()=>{o||(E.current&&E.current.focus&&(h.current=!0,E.current.focus()),E.current=null)}},[d]),A.useEffect(()=>{if(!d||!v.current)return;const L=xa(v.current),M=z=>{B.current=z,!(i||!c()||z.key!=="Tab")&&L.activeElement===v.current&&z.shiftKey&&(h.current=!0,b.current&&b.current.focus())},D=()=>{var V,_;const z=v.current;if(z===null)return;if(!L.hasFocus()||!c()||h.current){h.current=!1;return}if(z.contains(L.activeElement)||i&&L.activeElement!==p.current&&L.activeElement!==b.current)return;if(L.activeElement!==T.current)T.current=null;else if(T.current!==null)return;if(!y.current)return;let q=[];if((L.activeElement===p.current||L.activeElement===b.current)&&(q=s(v.current)),q.length>0){const j=!!((V=B.current)!=null&&V.shiftKey&&((_=B.current)==null?void 0:_.key)==="Tab"),$=q[0],ee=q[q.length-1];typeof $!="string"&&typeof ee!="string"&&(j?ee.focus():$.focus())}else z.focus()};L.addEventListener("focusin",D),L.addEventListener("keydown",M,!0);const N=setInterval(()=>{L.activeElement&&L.activeElement.tagName==="BODY"&&D()},50);return()=>{clearInterval(N),L.removeEventListener("focusin",D),L.removeEventListener("keydown",M,!0)}},[r,i,o,c,d,s]);const O=L=>{E.current===null&&(E.current=L.relatedTarget),y.current=!0,T.current=L.target;const M=t.props.onFocus;M&&M(L)},P=L=>{E.current===null&&(E.current=L.relatedTarget),y.current=!0};return pe.jsxs(A.Fragment,{children:[pe.jsx("div",{tabIndex:d?0:-1,onFocus:P,ref:p,"data-testid":"sentinelStart"}),A.cloneElement(t,{ref:x,onFocus:O}),pe.jsx("div",{tabIndex:d?0:-1,onFocus:P,ref:b,"data-testid":"sentinelEnd"})]})}var $b=fm();const Ns=or($b);function fR(e){return typeof e=="function"?e():e}const dR=A.forwardRef(function(t,r){const{children:i,container:o,disablePortal:s=!1}=t,[c,d]=A.useState(null),h=_r(A.isValidElement(i)?Rs(i):null,r);if(_a(()=>{s||d(fR(o)||document.body)},[o,s]),_a(()=>{if(c&&!s)return wb(r,c),()=>{wb(r,null)}},[r,c,s]),s){if(A.isValidElement(i)){const p={ref:h};return A.cloneElement(i,p)}return i}return c&&$b.createPortal(i,c)});function vo(e,t){return t?Un(e,t,{clone:!1}):e}function hR(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(i=>i.startsWith("@container")).sort((i,o)=>{var c,d;const s=/min-width:\s*([0-9.]+)/;return+(((c=i.match(s))==null?void 0:c[1])||0)-+(((d=o.match(s))==null?void 0:d[1])||0)});return r.length?r.reduce((i,o)=>{const s=t[o];return delete i[o],i[o]=s,i},{...t}):t}function pR(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function mR(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,i,o]=r,s=Number.isNaN(+i)?i||0:+i;return e.containerQueries(o).up(s)}function gR(e){const t=(s,c)=>s.replace("@media",c?`@container ${c}`:"@container");function r(s,c){s.up=(...d)=>t(e.breakpoints.up(...d),c),s.down=(...d)=>t(e.breakpoints.down(...d),c),s.between=(...d)=>t(e.breakpoints.between(...d),c),s.only=(...d)=>t(e.breakpoints.only(...d),c),s.not=(...d)=>{const h=t(e.breakpoints.not(...d),c);return h.includes("not all and")?h.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):h}}const i={},o=s=>(r(i,s),i);return r(o),{...e,containerQueries:o}}const Os={xs:0,sm:600,md:900,lg:1200,xl:1536},Xb={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Os[e]}px)`},bR={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Os[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Kr(e,t,r){const i=e.theme||{};if(Array.isArray(t)){const s=i.breakpoints||Xb;return t.reduce((c,d,h)=>(c[s.up(s.keys[h])]=r(t[h]),c),{})}if(typeof t=="object"){const s=i.breakpoints||Xb;return Object.keys(t).reduce((c,d)=>{if(pR(s.keys,d)){const h=mR(i.containerQueries?i:bR,d);h&&(c[h]=r(t[d],d))}else if(Object.keys(s.values||Os).includes(d)){const h=s.up(d);c[h]=r(t[d],d)}else{const h=d;c[h]=t[h]}return c},{})}return r(t)}function ER(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((i,o)=>{const s=e.up(o);return i[s]={},i},{}))||{}}function yR(e,t){return e.reduce((r,i)=>{const o=r[i];return(!o||Object.keys(o).length===0)&&delete r[i],r},t)}function ks(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const i=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(i!=null)return i}return t.split(".").reduce((i,o)=>i&&i[o]!=null?i[o]:null,e)}function Is(e,t,r,i=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||i:o=ks(e,r)||i,t&&(o=t(o,i,e)),o}function Xt(e){const{prop:t,cssProperty:r=e.prop,themeKey:i,transform:o}=e,s=c=>{if(c[t]==null)return null;const d=c[t],h=c.theme,p=ks(h,i)||{};return Kr(c,d,E=>{let T=Is(p,o,E);return E===T&&typeof E=="string"&&(T=Is(p,o,`${t}${E==="default"?"":st(E)}`,E)),r===!1?T:{[r]:T}})};return s.propTypes={},s.filterProps=[t],s}function TR(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const SR={m:"margin",p:"padding"},CR={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Qb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},AR=TR(e=>{if(e.length>2)if(Qb[e])e=Qb[e];else return[e];const[t,r]=e.split(""),i=SR[t],o=CR[r]||"";return Array.isArray(o)?o.map(s=>i+s):[i+o]}),Fd=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],zd=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Fd,...zd];function Ro(e,t,r,i){const o=ks(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?s=>typeof s=="string"?s:typeof o=="string"?`calc(${s} * ${o})`:o*s:Array.isArray(o)?s=>{if(typeof s=="string")return s;const c=Math.abs(s),d=o[c];return s>=0?d:typeof d=="number"?-d:`-${d}`}:typeof o=="function"?o:()=>{}}function Yd(e){return Ro(e,"spacing",8)}function No(e,t){return typeof t=="string"||t==null?t:e(t)}function xR(e,t){return r=>e.reduce((i,o)=>(i[o]=No(t,r),i),{})}function _R(e,t,r,i){if(!t.includes(r))return null;const o=AR(r),s=xR(o,i),c=e[r];return Kr(e,c,s)}function Kb(e,t){const r=Yd(e.theme);return Object.keys(e).map(i=>_R(e,t,i,r)).reduce(vo,{})}function jt(e){return Kb(e,Fd)}jt.propTypes={},jt.filterProps=Fd;function qt(e){return Kb(e,zd)}qt.propTypes={},qt.filterProps=zd;function Ds(...e){const t=e.reduce((i,o)=>(o.filterProps.forEach(s=>{i[s]=o}),i),{}),r=i=>Object.keys(i).reduce((o,s)=>t[s]?vo(o,t[s](i)):o,{});return r.propTypes={},r.filterProps=e.reduce((i,o)=>i.concat(o.filterProps),[]),r}function fr(e){return typeof e!="number"?e:`${e}px solid`}function dr(e,t){return Xt({prop:e,themeKey:"borders",transform:t})}const vR=dr("border",fr),RR=dr("borderTop",fr),NR=dr("borderRight",fr),OR=dr("borderBottom",fr),kR=dr("borderLeft",fr),IR=dr("borderColor"),DR=dr("borderTopColor"),wR=dr("borderRightColor"),LR=dr("borderBottomColor"),MR=dr("borderLeftColor"),BR=dr("outline",fr),PR=dr("outlineColor"),ws=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ro(e.theme,"shape.borderRadius",4),r=i=>({borderRadius:No(t,i)});return Kr(e,e.borderRadius,r)}return null};ws.propTypes={},ws.filterProps=["borderRadius"],Ds(vR,RR,NR,OR,kR,IR,DR,wR,LR,MR,ws,BR,PR);const Ls=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ro(e.theme,"spacing",8),r=i=>({gap:No(t,i)});return Kr(e,e.gap,r)}return null};Ls.propTypes={},Ls.filterProps=["gap"];const Ms=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ro(e.theme,"spacing",8),r=i=>({columnGap:No(t,i)});return Kr(e,e.columnGap,r)}return null};Ms.propTypes={},Ms.filterProps=["columnGap"];const Bs=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ro(e.theme,"spacing",8),r=i=>({rowGap:No(t,i)});return Kr(e,e.rowGap,r)}return null};Bs.propTypes={},Bs.filterProps=["rowGap"];const UR=Xt({prop:"gridColumn"}),HR=Xt({prop:"gridRow"}),FR=Xt({prop:"gridAutoFlow"}),zR=Xt({prop:"gridAutoColumns"}),YR=Xt({prop:"gridAutoRows"}),jR=Xt({prop:"gridTemplateColumns"}),qR=Xt({prop:"gridTemplateRows"}),VR=Xt({prop:"gridTemplateAreas"}),GR=Xt({prop:"gridArea"});Ds(Ls,Ms,Bs,UR,HR,FR,zR,YR,jR,qR,VR,GR);function Ji(e,t){return t==="grey"?t:e}const $R=Xt({prop:"color",themeKey:"palette",transform:Ji}),XR=Xt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ji}),QR=Xt({prop:"backgroundColor",themeKey:"palette",transform:Ji});Ds($R,XR,QR);function Wn(e){return e<=1&&e!==0?`${e*100}%`:e}const KR=Xt({prop:"width",transform:Wn}),jd=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var o,s,c,d,h;const i=((c=(s=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:s.values)==null?void 0:c[r])||Os[r];return i?((h=(d=e.theme)==null?void 0:d.breakpoints)==null?void 0:h.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Wn(r)}};return Kr(e,e.maxWidth,t)}return null};jd.filterProps=["maxWidth"];const WR=Xt({prop:"minWidth",transform:Wn}),ZR=Xt({prop:"height",transform:Wn}),JR=Xt({prop:"maxHeight",transform:Wn}),eN=Xt({prop:"minHeight",transform:Wn});Xt({prop:"size",cssProperty:"width",transform:Wn}),Xt({prop:"size",cssProperty:"height",transform:Wn});const tN=Xt({prop:"boxSizing"});Ds(KR,jd,WR,ZR,JR,eN,tN);const Oo={border:{themeKey:"borders",transform:fr},borderTop:{themeKey:"borders",transform:fr},borderRight:{themeKey:"borders",transform:fr},borderBottom:{themeKey:"borders",transform:fr},borderLeft:{themeKey:"borders",transform:fr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:fr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ws},color:{themeKey:"palette",transform:Ji},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ji},backgroundColor:{themeKey:"palette",transform:Ji},p:{style:qt},pt:{style:qt},pr:{style:qt},pb:{style:qt},pl:{style:qt},px:{style:qt},py:{style:qt},padding:{style:qt},paddingTop:{style:qt},paddingRight:{style:qt},paddingBottom:{style:qt},paddingLeft:{style:qt},paddingX:{style:qt},paddingY:{style:qt},paddingInline:{style:qt},paddingInlineStart:{style:qt},paddingInlineEnd:{style:qt},paddingBlock:{style:qt},paddingBlockStart:{style:qt},paddingBlockEnd:{style:qt},m:{style:jt},mt:{style:jt},mr:{style:jt},mb:{style:jt},ml:{style:jt},mx:{style:jt},my:{style:jt},margin:{style:jt},marginTop:{style:jt},marginRight:{style:jt},marginBottom:{style:jt},marginLeft:{style:jt},marginX:{style:jt},marginY:{style:jt},marginInline:{style:jt},marginInlineStart:{style:jt},marginInlineEnd:{style:jt},marginBlock:{style:jt},marginBlockStart:{style:jt},marginBlockEnd:{style:jt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ls},rowGap:{style:Bs},columnGap:{style:Ms},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Wn},maxWidth:{style:jd},minWidth:{transform:Wn},height:{transform:Wn},maxHeight:{transform:Wn},minHeight:{transform:Wn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function nN(...e){const t=e.reduce((i,o)=>i.concat(Object.keys(o)),[]),r=new Set(t);return e.every(i=>r.size===Object.keys(i).length)}function rN(e,t){return typeof e=="function"?e(t):e}function aN(){function e(r,i,o,s){const c={[r]:i,theme:o},d=s[r];if(!d)return{[r]:i};const{cssProperty:h=r,themeKey:p,transform:b,style:E}=d;if(i==null)return null;if(p==="typography"&&i==="inherit")return{[r]:i};const T=ks(o,p)||{};return E?E(c):Kr(c,i,v=>{let x=Is(T,b,v);return v===x&&typeof v=="string"&&(x=Is(T,b,`${r}${v==="default"?"":st(v)}`,v)),h===!1?x:{[h]:x}})}function t(r){const{sx:i,theme:o={}}=r||{};if(!i)return null;const s=o.unstable_sxConfig??Oo;function c(d){let h=d;if(typeof d=="function")h=d(o);else if(typeof d!="object")return d;if(!h)return null;const p=ER(o.breakpoints),b=Object.keys(p);let E=p;return Object.keys(h).forEach(T=>{const y=rN(h[T],o);if(y!=null)if(typeof y=="object")if(s[T])E=vo(E,e(T,y,o,s));else{const v=Kr({theme:o},y,x=>({[T]:x}));nN(v,y)?E[T]=t({sx:y,theme:o}):E=vo(E,v)}else E=vo(E,e(T,y,o,s))}),hR(o,yR(b,E))}return Array.isArray(i)?i.map(c):c(i)}return t}const ii=aN();ii.filterProps=["sx"];const iN=e=>{var i;const t={systemProps:{},otherProps:{}},r=((i=e==null?void 0:e.theme)==null?void 0:i.unstable_sxConfig)??Oo;return Object.keys(e).forEach(o=>{r[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function uN(e){const{sx:t,...r}=e,{systemProps:i,otherProps:o}=iN(r);let s;return Array.isArray(t)?s=[i,...t]:typeof t=="function"?s=(...c)=>{const d=t(...c);return Pr(d)?{...i,...d}:i}:s={...i,...t},{...o,sx:s}}function oN(e){return e==null||Object.keys(e).length===0}function Wb(e){const{styles:t,defaultTheme:r={}}=e,i=typeof t=="function"?o=>t(oN(o)?r:o):t;return pe.jsx(e6,{styles:i})}/**
|
|
79
79
|
* @mui/styled-engine v6.4.11
|
|
80
80
|
*
|
|
81
81
|
* @license MIT
|
|
82
82
|
* This source code is licensed under the MIT license found in the
|
|
83
83
|
* LICENSE file in the root directory of this source tree.
|
|
84
|
-
*/function
|
|
85
|
-
${d}.classList.add('${T}'.replace('%s', colorScheme));`}const E=b.match(/\[([^\]]+)\]/);if(E){const[T,y]=E[1].split("=");y||(
|
|
86
|
-
${d}.removeAttribute('${T}'.replace('%s', dark));`),
|
|
87
|
-
${d}.setAttribute('${T}'.replace('%s', colorScheme), ${y?`${y}.replace('%s', colorScheme)`:'""'});`}else
|
|
84
|
+
*/function lN(e,t){return He(e,t)}function sN(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Zb=[];function Jb(e){return Zb[0]=e,Zu(Zb)}const cN=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,i)=>r.val-i.val),t.reduce((r,i)=>({...r,[i.key]:i.val}),{})};function fN(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:i=5,...o}=e,s=cN(t),c=Object.keys(s);function d(T){return`@media (min-width:${typeof t[T]=="number"?t[T]:T}${r})`}function h(T){return`@media (max-width:${(typeof t[T]=="number"?t[T]:T)-i/100}${r})`}function p(T,y){const v=c.indexOf(y);return`@media (min-width:${typeof t[T]=="number"?t[T]:T}${r}) and (max-width:${(v!==-1&&typeof t[c[v]]=="number"?t[c[v]]:y)-i/100}${r})`}function b(T){return c.indexOf(T)+1<c.length?p(T,c[c.indexOf(T)+1]):d(T)}function E(T){const y=c.indexOf(T);return y===0?d(c[1]):y===c.length-1?h(c[y]):p(T,c[c.indexOf(T)+1]).replace("@media","@media not all and")}return{keys:c,values:s,up:d,down:h,between:p,only:b,not:E,unit:r,...o}}const dN={borderRadius:4};function eE(e=8,t=Yd({spacing:e})){if(e.mui)return e;const r=(...i)=>(i.length===0?[1]:i).map(s=>{const c=t(s);return typeof c=="number"?`${c}px`:c}).join(" ");return r.mui=!0,r}function hN(e,t){var i;const r=this;if(r.vars){if(!((i=r.colorSchemes)!=null&&i[e])||typeof r.getColorSchemeSelector!="function")return{};let o=r.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return r.palette.mode===e?t:{}}function qd(e={},...t){const{breakpoints:r={},palette:i={},spacing:o,shape:s={},...c}=e,d=fN(r),h=eE(o);let p=Un({breakpoints:d,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:h,shape:{...dN,...s}},c);return p=gR(p),p.applyStyles=hN,p=t.reduce((b,E)=>Un(b,E),p),p.unstable_sxConfig={...Oo,...c==null?void 0:c.unstable_sxConfig},p.unstable_sx=function(E){return ii({sx:E,theme:this})},p}function pN(e){return Object.keys(e).length===0}function tE(e=null){const t=A.useContext(Bi);return!t||pN(t)?e:t}const mN=qd();function Vd(e=mN){return tE(e)}function gN({styles:e,themeId:t,defaultTheme:r={}}){const i=Vd(r),o=typeof e=="function"?e(t&&i[t]||i):e;return pe.jsx(Wb,{styles:o})}function nE(e){const{variants:t,...r}=e,i={variants:t,style:Jb(r),isProcessed:!0};return i.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Jb(o.style))}),i}const bN=qd();function Gd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function EN(e){return e?(t,r)=>r[e]:null}function yN(e,t,r){e.theme=CN(e.theme)?r:e.theme[t]||e.theme}function Ps(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>Ps(e,i));if(Array.isArray(r==null?void 0:r.variants)){let i;if(r.isProcessed)i=r.style;else{const{variants:o,...s}=r;i=s}return rE(e,r.variants,[i])}return r!=null&&r.isProcessed?r.style:r}function rE(e,t,r=[]){var o;let i;e:for(let s=0;s<t.length;s+=1){const c=t[s];if(typeof c.props=="function"){if(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),!c.props(i))continue}else for(const d in c.props)if(e[d]!==c.props[d]&&((o=e.ownerState)==null?void 0:o[d])!==c.props[d])continue e;typeof c.style=="function"?(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),r.push(c.style(i))):r.push(c.style)}return r}function TN(e={}){const{themeId:t,defaultTheme:r=bN,rootShouldForwardProp:i=Gd,slotShouldForwardProp:o=Gd}=e;function s(d){yN(d,t,r)}return(d,h={})=>{sN(d,D=>D.filter(N=>N!==ii));const{name:p,slot:b,skipVariantsResolver:E,skipSx:T,overridesResolver:y=EN(xN(b)),...v}=h,x=E!==void 0?E:b&&b!=="Root"&&b!=="root"||!1,B=T||!1;let O=Gd;b==="Root"||b==="root"?O=i:b?O=o:AN(d)&&(O=void 0);const P=lN(d,{shouldForwardProp:O,label:SN(),...v}),L=D=>{if(typeof D=="function"&&D.__emotion_real!==D)return function(z){return Ps(z,D)};if(Pr(D)){const N=nE(D);return N.variants?function(q){return Ps(q,N)}:N.style}return D},M=(...D)=>{const N=[],z=D.map(L),q=[];if(N.push(s),p&&y&&q.push(function($){var F,ie;const X=(ie=(F=$.theme.components)==null?void 0:F[p])==null?void 0:ie.styleOverrides;if(!X)return null;const te={};for(const Q in X)te[Q]=Ps($,X[Q]);return y($,te)}),p&&!x&&q.push(function($){var te,F;const ee=$.theme,X=(F=(te=ee==null?void 0:ee.components)==null?void 0:te[p])==null?void 0:F.variants;return X?rE($,X):null}),B||q.push(ii),Array.isArray(z[0])){const j=z.shift(),$=new Array(N.length).fill(""),ee=new Array(q.length).fill("");let X;X=[...$,...j,...ee],X.raw=[...$,...j.raw,...ee],N.unshift(X)}const V=[...N,...z,...q],_=P(...V);return d.muiName&&(_.muiName=d.muiName),_};return P.withConfig&&(M.withConfig=P.withConfig),M}}function SN(e,t){return void 0}function CN(e){for(const t in e)return!1;return!0}function AN(e){return typeof e=="string"&&e.charCodeAt(0)>96}function xN(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function _N(e){const{theme:t,name:r,props:i}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?i:_s(t.components[r].defaultProps,i)}function vN({props:e,name:t,defaultTheme:r,themeId:i}){let o=Vd(r);return o=o[i]||o,_N({theme:o,name:t,props:e})}function $d(e,t=0,r=1){return W8(e,t,r)}function RN(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(i=>i+i)),r?`rgb${r.length===4?"a":""}(${r.map((i,o)=>o<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function va(e){if(e.type)return e;if(e.charAt(0)==="#")return va(RN(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(Aa(9,e));let i=e.substring(t+1,e.length-1),o;if(r==="color"){if(i=i.split(" "),o=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Aa(10,o))}else i=i.split(",");return i=i.map(s=>parseFloat(s)),{type:r,values:i,colorSpace:o}}const NN=e=>{const t=va(e);return t.values.slice(0,3).map((r,i)=>t.type.includes("hsl")&&i!==0?`${r}%`:r).join(" ")},ko=(e,t)=>{try{return NN(e)}catch{return e}};function Us(e){const{type:t,colorSpace:r}=e;let{values:i}=e;return t.includes("rgb")?i=i.map((o,s)=>s<3?parseInt(o,10):o):t.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),t.includes("color")?i=`${r} ${i.join(" ")}`:i=`${i.join(", ")}`,`${t}(${i})`}function aE(e){e=va(e);const{values:t}=e,r=t[0],i=t[1]/100,o=t[2]/100,s=i*Math.min(o,1-o),c=(p,b=(p+r/30)%12)=>o-s*Math.max(Math.min(b-3,9-b,1),-1);let d="rgb";const h=[Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255)];return e.type==="hsla"&&(d+="a",h.push(t[3])),Us({type:d,values:h})}function Xd(e){e=va(e);let t=e.type==="hsl"||e.type==="hsla"?va(aE(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ON(e,t){const r=Xd(e),i=Xd(t);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}function Io(e,t){return e=va(e),t=$d(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Us(e)}function Hs(e,t,r){try{return Io(e,t)}catch{return e}}function Do(e,t){if(e=va(e),t=$d(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Us(e)}function It(e,t,r){try{return Do(e,t)}catch{return e}}function wo(e,t){if(e=va(e),t=$d(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Us(e)}function Dt(e,t,r){try{return wo(e,t)}catch{return e}}function kN(e,t=.15){return Xd(e)>.5?Do(e,t):wo(e,t)}function Fs(e,t,r){try{return kN(e,t)}catch{return e}}const iE=A.createContext(null);function Qd(){return A.useContext(iE)}const IN=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function DN(e,t){return typeof t=="function"?t(e):{...e,...t}}function wN(e){const{children:t,theme:r}=e,i=Qd(),o=A.useMemo(()=>{const s=i===null?{...r}:DN(i,r);return s!=null&&(s[IN]=i!==null),s},[r,i]);return pe.jsx(iE.Provider,{value:o,children:t})}const uE=A.createContext(void 0);function LN({value:e,children:t}){return pe.jsx(uE.Provider,{value:e,children:t})}function MN(e){const{theme:t,name:r,props:i}=e;if(!t||!t.components||!t.components[r])return i;const o=t.components[r];return o.defaultProps?_s(o.defaultProps,i):!o.styleOverrides&&!o.variants?_s(o,i):i}function BN({props:e,name:t}){const r=A.useContext(uE);return MN({props:e,name:t,theme:{components:r}})}const oE={};function lE(e,t,r,i=!1){return A.useMemo(()=>{const o=e&&t[e]||t;if(typeof r=="function"){const s=r(o),c=e?{...t,[e]:s}:s;return i?()=>c:c}return e?{...t,[e]:r}:{...t,...r}},[e,t,r,i])}function sE(e){const{children:t,theme:r,themeId:i}=e,o=tE(oE),s=Qd()||oE,c=lE(i,o,r),d=lE(i,s,r,!0),h=(i?c[i]:c).direction==="rtl";return pe.jsx(wN,{theme:d,children:pe.jsx(Bi.Provider,{value:c,children:pe.jsx(F8,{value:h,children:pe.jsx(LN,{value:i?c[i].components:c.components,children:t})})})})}const cE={theme:void 0};function PN(e){let t,r;return function(o){let s=t;return(s===void 0||o.theme!==r)&&(cE.theme=o.theme,s=nE(e(cE)),t=s,r=o.theme),s}}const Kd="mode",Wd="color-scheme",UN="data-color-scheme";function HN(e){const{defaultMode:t="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:i="dark",modeStorageKey:o=Kd,colorSchemeStorageKey:s=Wd,attribute:c=UN,colorSchemeNode:d="document.documentElement",nonce:h}=e||{};let p="",b=c;if(c==="class"&&(b=".%s"),c==="data"&&(b="[data-%s]"),b.startsWith(".")){const T=b.substring(1);p+=`${d}.classList.remove('${T}'.replace('%s', light), '${T}'.replace('%s', dark));
|
|
85
|
+
${d}.classList.add('${T}'.replace('%s', colorScheme));`}const E=b.match(/\[([^\]]+)\]/);if(E){const[T,y]=E[1].split("=");y||(p+=`${d}.removeAttribute('${T}'.replace('%s', light));
|
|
86
|
+
${d}.removeAttribute('${T}'.replace('%s', dark));`),p+=`
|
|
87
|
+
${d}.setAttribute('${T}'.replace('%s', colorScheme), ${y?`${y}.replace('%s', colorScheme)`:'""'});`}else p+=`${d}.setAttribute('${b}', colorScheme);`;return pe.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?h:"",dangerouslySetInnerHTML:{__html:`(function() {
|
|
88
88
|
try {
|
|
89
89
|
let colorScheme = '';
|
|
90
|
-
const mode = localStorage.getItem('${
|
|
90
|
+
const mode = localStorage.getItem('${o}') || '${t}';
|
|
91
91
|
const dark = localStorage.getItem('${s}-dark') || '${i}';
|
|
92
92
|
const light = localStorage.getItem('${s}-light') || '${r}';
|
|
93
93
|
if (mode === 'system') {
|
|
@@ -106,16 +106,16 @@ try {
|
|
|
106
106
|
colorScheme = dark;
|
|
107
107
|
}
|
|
108
108
|
if (colorScheme) {
|
|
109
|
-
${
|
|
109
|
+
${p}
|
|
110
110
|
}
|
|
111
|
-
} catch(e){}})();`}},"mui-color-scheme-init")}function yN(){}const TN=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(r){if(typeof window>"u")return;if(!t)return r;let i;try{i=t.localStorage.getItem(e)}catch{}return i||r},set:r=>{if(t)try{t.localStorage.setItem(e,r)}catch{}},subscribe:r=>{if(!t)return yN;const i=l=>{const s=l.newValue;l.key===e&&r(s)};return t.addEventListener("storage",i),()=>{t.removeEventListener("storage",i)}}});function Gd(){}function eE(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function tE(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function SN(e){return tE(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function CN(e){const{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:i,supportedColorSchemes:l=[],modeStorageKey:s=qd,colorSchemeStorageKey:c=Vd,storageWindow:d=typeof window>"u"?void 0:window,storageManager:p=TN,noSsr:m=!1}=e,b=l.join(","),E=l.length>1,T=A.useMemo(()=>p==null?void 0:p({key:s,storageWindow:d}),[p,s,d]),y=A.useMemo(()=>p==null?void 0:p({key:`${c}-light`,storageWindow:d}),[p,c,d]),R=A.useMemo(()=>p==null?void 0:p({key:`${c}-dark`,storageWindow:d}),[p,c,d]),[x,U]=A.useState(()=>{const j=(T==null?void 0:T.get(t))||t,G=(y==null?void 0:y.get(r))||r,_=(R==null?void 0:R.get(i))||i;return{mode:j,systemMode:eE(j),lightColorScheme:G,darkColorScheme:_}}),[D,q]=A.useState(m||!E);A.useEffect(()=>{q(!0)},[]);const M=SN(x),P=A.useCallback(j=>{U(G=>{if(j===G.mode)return G;const _=j??t;return T==null||T.set(_),{...G,mode:_,systemMode:eE(_)}})},[T,t]),k=A.useCallback(j=>{j?typeof j=="string"?j&&!b.includes(j)?console.error(`\`${j}\` does not exist in \`theme.colorSchemes\`.`):U(G=>{const _={...G};return tE(G,z=>{z==="light"&&(y==null||y.set(j),_.lightColorScheme=j),z==="dark"&&(R==null||R.set(j),_.darkColorScheme=j)}),_}):U(G=>{const _={...G},z=j.light===null?r:j.light,$=j.dark===null?i:j.dark;return z&&(b.includes(z)?(_.lightColorScheme=z,y==null||y.set(z)):console.error(`\`${z}\` does not exist in \`theme.colorSchemes\`.`)),$&&(b.includes($)?(_.darkColorScheme=$,R==null||R.set($)):console.error(`\`${$}\` does not exist in \`theme.colorSchemes\`.`)),_}):U(G=>(y==null||y.set(r),R==null||R.set(i),{...G,lightColorScheme:r,darkColorScheme:i}))},[b,y,R,r,i]),N=A.useCallback(j=>{x.mode==="system"&&U(G=>{const _=j!=null&&j.matches?"dark":"light";return G.systemMode===_?G:{...G,systemMode:_}})},[x.mode]),Y=A.useRef(N);return Y.current=N,A.useEffect(()=>{if(typeof window.matchMedia!="function"||!E)return;const j=(..._)=>Y.current(..._),G=window.matchMedia("(prefers-color-scheme: dark)");return G.addListener(j),j(G),()=>{G.removeListener(j)}},[E]),A.useEffect(()=>{if(E){const j=(T==null?void 0:T.subscribe(z=>{(!z||["light","dark","system"].includes(z))&&P(z||t)}))||Gd,G=(y==null?void 0:y.subscribe(z=>{(!z||b.match(z))&&k({light:z})}))||Gd,_=(R==null?void 0:R.subscribe(z=>{(!z||b.match(z))&&k({dark:z})}))||Gd;return()=>{j(),G(),_()}}},[k,P,b,t,d,E,T,y,R]),{...x,mode:D?x.mode:void 0,systemMode:D?x.systemMode:void 0,colorScheme:D?M:void 0,setMode:P,setColorScheme:k}}const AN="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function _N(e){const{themeId:t,theme:r={},modeStorageKey:i=qd,colorSchemeStorageKey:l=Vd,disableTransitionOnChange:s=!1,defaultColorScheme:c,resolveTheme:d}=e,p={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},m=A.createContext(void 0),b=()=>A.useContext(m)||p,E={},T={};function y(D){var Pt,Tt,ae,de;const{children:q,theme:M,modeStorageKey:P=i,colorSchemeStorageKey:k=l,disableTransitionOnChange:N=s,storageManager:Y,storageWindow:j=typeof window>"u"?void 0:window,documentNode:G=typeof document>"u"?void 0:document,colorSchemeNode:_=typeof document>"u"?void 0:document.documentElement,disableNestedContext:z=!1,disableStyleSheetGeneration:$=!1,defaultMode:Z="system",noSsr:X}=D,te=A.useRef(!1),H=jd(),Q=A.useContext(m),ie=!!Q&&!z,me=A.useMemo(()=>M||(typeof r=="function"?r():r),[M]),C=me[t],J=C||me,{colorSchemes:fe=E,components:O=T,cssVarPrefix:be}=J,Ne=Object.keys(fe).filter(Ce=>!!fe[Ce]).join(","),Ee=A.useMemo(()=>Ne.split(","),[Ne]),Ke=typeof c=="string"?c:c.light,Me=typeof c=="string"?c:c.dark,lt=fe[Ke]&&fe[Me]?Z:((Tt=(Pt=fe[J.defaultColorScheme])==null?void 0:Pt.palette)==null?void 0:Tt.mode)||((ae=J.palette)==null?void 0:ae.mode),{mode:yt,setMode:Re,systemMode:We,lightColorScheme:Oe,darkColorScheme:Se,colorScheme:Fe,setColorScheme:Ve}=CN({supportedColorSchemes:Ee,defaultLightColorScheme:Ke,defaultDarkColorScheme:Me,modeStorageKey:P,colorSchemeStorageKey:k,defaultMode:lt,storageManager:Y,storageWindow:j,noSsr:X});let ke=yt,Le=Fe;ie&&(ke=Q.mode,Le=Q.colorScheme);const je=A.useMemo(()=>{var Ge;const Ce=Le||J.defaultColorScheme,Ae=((Ge=J.generateThemeVars)==null?void 0:Ge.call(J))||J.vars,we={...J,components:O,colorSchemes:fe,cssVarPrefix:be,vars:Ae};if(typeof we.generateSpacing=="function"&&(we.spacing=we.generateSpacing()),Ce){const kt=fe[Ce];kt&&typeof kt=="object"&&Object.keys(kt).forEach(St=>{kt[St]&&typeof kt[St]=="object"?we[St]={...we[St],...kt[St]}:we[St]=kt[St]})}return d?d(we):we},[J,Le,O,fe,be]),nt=J.colorSchemeSelector;xa(()=>{if(Le&&_&&nt&&nt!=="media"){const Ce=nt;let Ae=nt;if(Ce==="class"&&(Ae=".%s"),Ce==="data"&&(Ae="[data-%s]"),Ce!=null&&Ce.startsWith("data-")&&!Ce.includes("%s")&&(Ae=`[${Ce}="%s"]`),Ae.startsWith("."))_.classList.remove(...Ee.map(we=>Ae.substring(1).replace("%s",we))),_.classList.add(Ae.substring(1).replace("%s",Le));else{const we=Ae.replace("%s",Le).match(/\[([^\]]+)\]/);if(we){const[Ge,kt]=we[1].split("=");kt||Ee.forEach(St=>{_.removeAttribute(Ge.replace(Le,St))}),_.setAttribute(Ge,kt?kt.replace(/"|'/g,""):"")}else _.setAttribute(Ae,Le)}}},[Le,nt,_,Ee]),A.useEffect(()=>{let Ce;if(N&&te.current&&G){const Ae=G.createElement("style");Ae.appendChild(G.createTextNode(AN)),G.head.appendChild(Ae),window.getComputedStyle(G.body),Ce=setTimeout(()=>{G.head.removeChild(Ae)},1)}return()=>{clearTimeout(Ce)}},[Le,N,G]),A.useEffect(()=>(te.current=!0,()=>{te.current=!1}),[]);const Et=A.useMemo(()=>({allColorSchemes:Ee,colorScheme:Le,darkColorScheme:Se,lightColorScheme:Oe,mode:ke,setColorScheme:Ve,setMode:Re,systemMode:We}),[Ee,Le,Se,Oe,ke,Ve,Re,We,je.colorSchemeSelector]);let Ie=!0;($||J.cssVariables===!1||ie&&(H==null?void 0:H.cssVarPrefix)===be)&&(Ie=!1);const nn=he.jsxs(A.Fragment,{children:[he.jsx(Zb,{themeId:C?t:void 0,theme:je,children:q}),Ie&&he.jsx(Fb,{styles:((de=je.generateStyleSheets)==null?void 0:de.call(je))||[]})]});return ie?nn:he.jsx(m.Provider,{value:Et,children:nn})}const R=typeof c=="string"?c:c.light,x=typeof c=="string"?c:c.dark;return{CssVarsProvider:y,useColorScheme:b,getInitColorSchemeScript:D=>EN({colorSchemeStorageKey:l,defaultLightColorScheme:R,defaultDarkColorScheme:x,modeStorageKey:i,...D})}}function xN(e=""){function t(...i){if(!i.length)return"";const l=i[0];return typeof l=="string"&&!l.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${l}${t(...i.slice(1))})`:`, ${l}`}return(i,...l)=>`var(--${e?`${e}-`:""}${i}${t(...l)})`}const nE=(e,t,r,i=[])=>{let l=e;t.forEach((s,c)=>{c===t.length-1?Array.isArray(l)?l[Number(s)]=r:l&&typeof l=="object"&&(l[s]=r):l&&typeof l=="object"&&(l[s]||(l[s]=i.includes(s)?[]:{}),l=l[s])})},vN=(e,t,r)=>{function i(l,s=[],c=[]){Object.entries(l).forEach(([d,p])=>{(!r||r&&!r([...s,d]))&&p!=null&&(typeof p=="object"&&Object.keys(p).length>0?i(p,[...s,d],Array.isArray(p)?[...c,d]:c):t([...s,d],p,c))})}i(e)},RN=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>e.includes(i))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function $d(e,t){const{prefix:r,shouldSkipGeneratingVar:i}=t||{},l={},s={},c={};return vN(e,(d,p,m)=>{if((typeof p=="string"||typeof p=="number")&&(!i||!i(d,p))){const b=`--${r?`${r}-`:""}${d.join("-")}`,E=RN(d,p);Object.assign(l,{[b]:E}),nE(s,d,`var(${b})`,m),nE(c,d,`var(${b}, ${E})`,m)}},d=>d[0]==="vars"),{css:l,vars:s,varsWithDefaults:c}}function NN(e,t={}){const{getSelector:r=U,disableCssColorScheme:i,colorSchemeSelector:l}=t,{colorSchemes:s={},components:c,defaultColorScheme:d="light",...p}=e,{vars:m,css:b,varsWithDefaults:E}=$d(p,t);let T=E;const y={},{[d]:R,...x}=s;if(Object.entries(x||{}).forEach(([M,P])=>{const{vars:k,css:N,varsWithDefaults:Y}=$d(P,t);T=Un(T,Y),y[M]={css:N,vars:k}}),R){const{css:M,vars:P,varsWithDefaults:k}=$d(R,t);T=Un(T,k),y[d]={css:M,vars:P}}function U(M,P){var N,Y;let k=l;if(l==="class"&&(k=".%s"),l==="data"&&(k="[data-%s]"),l!=null&&l.startsWith("data-")&&!l.includes("%s")&&(k=`[${l}="%s"]`),M){if(k==="media")return e.defaultColorScheme===M?":root":{[`@media (prefers-color-scheme: ${((Y=(N=s[M])==null?void 0:N.palette)==null?void 0:Y.mode)||M})`]:{":root":P}};if(k)return e.defaultColorScheme===M?`:root, ${k.replace("%s",String(M))}`:k.replace("%s",String(M))}return":root"}return{vars:T,generateThemeVars:()=>{let M={...m};return Object.entries(y).forEach(([,{vars:P}])=>{M=Un(M,P)}),M},generateStyleSheets:()=>{var j,G;const M=[],P=e.defaultColorScheme||"light";function k(_,z){Object.keys(z).length&&M.push(typeof _=="string"?{[_]:{...z}}:_)}k(r(void 0,{...b}),b);const{[P]:N,...Y}=y;if(N){const{css:_}=N,z=(G=(j=s[P])==null?void 0:j.palette)==null?void 0:G.mode,$=!i&&z?{colorScheme:z,..._}:{..._};k(r(P,{...$}),$)}return Object.entries(Y).forEach(([_,{css:z}])=>{var X,te;const $=(te=(X=s[_])==null?void 0:X.palette)==null?void 0:te.mode,Z=!i&&$?{colorScheme:$,...z}:{...z};k(r(_,{...Z}),Z)}),M}}}function ON(e){return function(r){return e==="media"?`@media (prefers-color-scheme: ${r})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const Dl={black:"#000",white:"#fff"},IN={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Zi={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ji={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},kl={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},eu={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},tu={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},nu={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function rE(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Dl.white,default:Dl.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const DN=rE();function aE(){return{text:{primary:Dl.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Dl.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const iE=aE();function uE(e,t,r,i){const l=i.light||i,s=i.dark||i*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Il(e.main,l):t==="dark"&&(e.dark=Ol(e.main,s)))}function kN(e="light"){return e==="dark"?{main:eu[200],light:eu[50],dark:eu[400]}:{main:eu[700],light:eu[400],dark:eu[800]}}function LN(e="light"){return e==="dark"?{main:Zi[200],light:Zi[50],dark:Zi[400]}:{main:Zi[500],light:Zi[300],dark:Zi[700]}}function MN(e="light"){return e==="dark"?{main:Ji[500],light:Ji[300],dark:Ji[700]}:{main:Ji[700],light:Ji[400],dark:Ji[800]}}function wN(e="light"){return e==="dark"?{main:tu[400],light:tu[300],dark:tu[700]}:{main:tu[700],light:tu[500],dark:tu[900]}}function BN(e="light"){return e==="dark"?{main:nu[400],light:nu[300],dark:nu[700]}:{main:nu[800],light:nu[500],dark:nu[900]}}function PN(e="light"){return e==="dark"?{main:kl[400],light:kl[300],dark:kl[700]}:{main:"#ed6c02",light:kl[500],dark:kl[900]}}function Xd(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:i=.2,...l}=e,s=e.primary||kN(t),c=e.secondary||LN(t),d=e.error||MN(t),p=e.info||wN(t),m=e.success||BN(t),b=e.warning||PN(t);function E(x){return oN(x,iE.text.primary)>=r?iE.text.primary:DN.text.primary}const T=({color:x,name:U,mainShade:D=500,lightShade:q=300,darkShade:M=700})=>{if(x={...x},!x.main&&x[D]&&(x.main=x[D]),!x.hasOwnProperty("main"))throw new Error(Aa(11,U?` (${U})`:"",D));if(typeof x.main!="string")throw new Error(Aa(12,U?` (${U})`:"",JSON.stringify(x.main)));return uE(x,"light",q,i),uE(x,"dark",M,i),x.contrastText||(x.contrastText=E(x.main)),x};let y;return t==="light"?y=rE():t==="dark"&&(y=aE()),Un({common:{...Dl},mode:t,primary:T({color:s,name:"primary"}),secondary:T({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:T({color:d,name:"error"}),warning:T({color:b,name:"warning"}),info:T({color:p,name:"info"}),success:T({color:m,name:"success"}),grey:IN,contrastThreshold:r,getContrastText:E,augmentColor:T,tonalOffset:i,...y},l)}function UN(e){const t={};return Object.entries(e).forEach(i=>{const[l,s]=i;typeof s=="object"&&(t[l]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function HN(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function FN(e){return Math.round(e*1e5)/1e5}const lE={textTransform:"uppercase"},oE='"Roboto", "Helvetica", "Arial", sans-serif';function sE(e,t){const{fontFamily:r=oE,fontSize:i=14,fontWeightLight:l=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:p=16,allVariants:m,pxToRem:b,...E}=typeof t=="function"?t(e):t,T=i/14,y=b||(U=>`${U/p*T}rem`),R=(U,D,q,M,P)=>({fontFamily:r,fontWeight:U,fontSize:y(D),lineHeight:q,...r===oE?{letterSpacing:`${FN(M/D)}em`}:{},...P,...m}),x={h1:R(l,96,1.167,-1.5),h2:R(l,60,1.2,-.5),h3:R(s,48,1.167,0),h4:R(s,34,1.235,.25),h5:R(s,24,1.334,0),h6:R(c,20,1.6,.15),subtitle1:R(s,16,1.75,.15),subtitle2:R(c,14,1.57,.1),body1:R(s,16,1.5,.15),body2:R(s,14,1.43,.15),button:R(c,14,1.75,.4,lE),caption:R(s,12,1.66,.4),overline:R(s,12,2.66,1,lE),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Un({htmlFontSize:p,pxToRem:y,fontFamily:r,fontSize:i,fontWeightLight:l,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:d,...x},E,{clone:!1})}const zN=.2,YN=.14,jN=.12;function Ft(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${zN})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${YN})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${jN})`].join(",")}const qN=["none",Ft(0,2,1,-1,0,1,1,0,0,1,3,0),Ft(0,3,1,-2,0,2,2,0,0,1,5,0),Ft(0,3,3,-2,0,3,4,0,0,1,8,0),Ft(0,2,4,-1,0,4,5,0,0,1,10,0),Ft(0,3,5,-1,0,5,8,0,0,1,14,0),Ft(0,3,5,-1,0,6,10,0,0,1,18,0),Ft(0,4,5,-2,0,7,10,1,0,2,16,1),Ft(0,5,5,-3,0,8,10,1,0,3,14,2),Ft(0,5,6,-3,0,9,12,1,0,3,16,2),Ft(0,6,6,-3,0,10,14,1,0,4,18,3),Ft(0,6,7,-4,0,11,15,1,0,4,20,3),Ft(0,7,8,-4,0,12,17,2,0,5,22,4),Ft(0,7,8,-4,0,13,19,2,0,5,24,4),Ft(0,7,9,-4,0,14,21,2,0,5,26,4),Ft(0,8,9,-5,0,15,22,2,0,6,28,5),Ft(0,8,10,-5,0,16,24,2,0,6,30,5),Ft(0,8,11,-5,0,17,26,2,0,6,32,5),Ft(0,9,11,-5,0,18,28,2,0,7,34,6),Ft(0,9,12,-6,0,19,29,2,0,7,36,6),Ft(0,10,13,-6,0,20,31,3,0,8,38,7),Ft(0,10,13,-6,0,21,33,3,0,8,40,7),Ft(0,10,14,-6,0,22,35,3,0,8,42,7),Ft(0,11,14,-7,0,23,36,3,0,9,44,8),Ft(0,11,15,-7,0,24,38,3,0,9,46,8)],VN={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},GN={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function cE(e){return`${Math.round(e)}ms`}function $N(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function XN(e){const t={...VN,...e.easing},r={...GN,...e.duration};return{getAutoHeightDuration:$N,create:(l=["all"],s={})=>{const{duration:c=r.standard,easing:d=t.easeInOut,delay:p=0,...m}=s;return(Array.isArray(l)?l:[l]).map(b=>`${b} ${typeof c=="string"?c:cE(c)} ${d} ${typeof p=="string"?p:cE(p)}`).join(",")},...e,easing:t,duration:r}}const QN={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function KN(e){return Pr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function fE(e={}){const t={...e};function r(i){const l=Object.entries(i);for(let s=0;s<l.length;s++){const[c,d]=l[s];!KN(d)||c.startsWith("unstable_")?delete i[c]:Pr(d)&&(i[c]={...d},r(i[c]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
111
|
+
} catch(e){}})();`}},"mui-color-scheme-init")}function FN(){}const zN=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(r){if(typeof window>"u")return;if(!t)return r;let i;try{i=t.localStorage.getItem(e)}catch{}return i||r},set:r=>{if(t)try{t.localStorage.setItem(e,r)}catch{}},subscribe:r=>{if(!t)return FN;const i=o=>{const s=o.newValue;o.key===e&&r(s)};return t.addEventListener("storage",i),()=>{t.removeEventListener("storage",i)}}});function Zd(){}function fE(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function dE(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function YN(e){return dE(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function jN(e){const{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:i,supportedColorSchemes:o=[],modeStorageKey:s=Kd,colorSchemeStorageKey:c=Wd,storageWindow:d=typeof window>"u"?void 0:window,storageManager:h=zN,noSsr:p=!1}=e,b=o.join(","),E=o.length>1,T=A.useMemo(()=>h==null?void 0:h({key:s,storageWindow:d}),[h,s,d]),y=A.useMemo(()=>h==null?void 0:h({key:`${c}-light`,storageWindow:d}),[h,c,d]),v=A.useMemo(()=>h==null?void 0:h({key:`${c}-dark`,storageWindow:d}),[h,c,d]),[x,B]=A.useState(()=>{const q=(T==null?void 0:T.get(t))||t,V=(y==null?void 0:y.get(r))||r,_=(v==null?void 0:v.get(i))||i;return{mode:q,systemMode:fE(q),lightColorScheme:V,darkColorScheme:_}}),[O,P]=A.useState(p||!E);A.useEffect(()=>{P(!0)},[]);const L=YN(x),M=A.useCallback(q=>{B(V=>{if(q===V.mode)return V;const _=q??t;return T==null||T.set(_),{...V,mode:_,systemMode:fE(_)}})},[T,t]),D=A.useCallback(q=>{q?typeof q=="string"?q&&!b.includes(q)?console.error(`\`${q}\` does not exist in \`theme.colorSchemes\`.`):B(V=>{const _={...V};return dE(V,j=>{j==="light"&&(y==null||y.set(q),_.lightColorScheme=q),j==="dark"&&(v==null||v.set(q),_.darkColorScheme=q)}),_}):B(V=>{const _={...V},j=q.light===null?r:q.light,$=q.dark===null?i:q.dark;return j&&(b.includes(j)?(_.lightColorScheme=j,y==null||y.set(j)):console.error(`\`${j}\` does not exist in \`theme.colorSchemes\`.`)),$&&(b.includes($)?(_.darkColorScheme=$,v==null||v.set($)):console.error(`\`${$}\` does not exist in \`theme.colorSchemes\`.`)),_}):B(V=>(y==null||y.set(r),v==null||v.set(i),{...V,lightColorScheme:r,darkColorScheme:i}))},[b,y,v,r,i]),N=A.useCallback(q=>{x.mode==="system"&&B(V=>{const _=q!=null&&q.matches?"dark":"light";return V.systemMode===_?V:{...V,systemMode:_}})},[x.mode]),z=A.useRef(N);return z.current=N,A.useEffect(()=>{if(typeof window.matchMedia!="function"||!E)return;const q=(..._)=>z.current(..._),V=window.matchMedia("(prefers-color-scheme: dark)");return V.addListener(q),q(V),()=>{V.removeListener(q)}},[E]),A.useEffect(()=>{if(E){const q=(T==null?void 0:T.subscribe(j=>{(!j||["light","dark","system"].includes(j))&&M(j||t)}))||Zd,V=(y==null?void 0:y.subscribe(j=>{(!j||b.match(j))&&D({light:j})}))||Zd,_=(v==null?void 0:v.subscribe(j=>{(!j||b.match(j))&&D({dark:j})}))||Zd;return()=>{q(),V(),_()}}},[D,M,b,t,d,E,T,y,v]),{...x,mode:O?x.mode:void 0,systemMode:O?x.systemMode:void 0,colorScheme:O?L:void 0,setMode:M,setColorScheme:D}}const qN="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function VN(e){const{themeId:t,theme:r={},modeStorageKey:i=Kd,colorSchemeStorageKey:o=Wd,disableTransitionOnChange:s=!1,defaultColorScheme:c,resolveTheme:d}=e,h={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},p=A.createContext(void 0),b=()=>A.useContext(p)||h,E={},T={};function y(O){var Ft,Bt,ae,de;const{children:P,theme:L,modeStorageKey:M=i,colorSchemeStorageKey:D=o,disableTransitionOnChange:N=s,storageManager:z,storageWindow:q=typeof window>"u"?void 0:window,documentNode:V=typeof document>"u"?void 0:document,colorSchemeNode:_=typeof document>"u"?void 0:document.documentElement,disableNestedContext:j=!1,disableStyleSheetGeneration:$=!1,defaultMode:ee="system",noSsr:X}=O,te=A.useRef(!1),F=Qd(),ie=A.useContext(p),Q=!!ie&&!j,he=A.useMemo(()=>L||(typeof r=="function"?r():r),[L]),C=he[t],Z=C||he,{colorSchemes:fe=E,components:k=T,cssVarPrefix:be}=Z,Re=Object.keys(fe).filter(Se=>!!fe[Se]).join(","),Te=A.useMemo(()=>Re.split(","),[Re]),Xe=typeof c=="string"?c:c.light,Be=typeof c=="string"?c:c.dark,ut=fe[Xe]&&fe[Be]?ee:((Bt=(Ft=fe[Z.defaultColorScheme])==null?void 0:Ft.palette)==null?void 0:Bt.mode)||((ae=Z.palette)==null?void 0:ae.mode),{mode:Ct,setMode:gt,systemMode:Ne,lightColorScheme:Oe,darkColorScheme:Ce,colorScheme:we,setColorScheme:ke}=jN({supportedColorSchemes:Te,defaultLightColorScheme:Xe,defaultDarkColorScheme:Be,modeStorageKey:M,colorSchemeStorageKey:D,defaultMode:ut,storageManager:z,storageWindow:q,noSsr:X});let Me=Ct,Fe=we;Q&&(Me=ie.mode,Fe=ie.colorScheme);const qe=A.useMemo(()=>{var Ve;const Se=Fe||Z.defaultColorScheme,Ae=((Ve=Z.generateThemeVars)==null?void 0:Ve.call(Z))||Z.vars,Pe={...Z,components:k,colorSchemes:fe,cssVarPrefix:be,vars:Ae};if(typeof Pe.generateSpacing=="function"&&(Pe.spacing=Pe.generateSpacing()),Se){const Tt=fe[Se];Tt&&typeof Tt=="object"&&Object.keys(Tt).forEach(At=>{Tt[At]&&typeof Tt[At]=="object"?Pe[At]={...Pe[At],...Tt[At]}:Pe[At]=Tt[At]})}return d?d(Pe):Pe},[Z,Fe,k,fe,be]),$e=Z.colorSchemeSelector;_a(()=>{if(Fe&&_&&$e&&$e!=="media"){const Se=$e;let Ae=$e;if(Se==="class"&&(Ae=".%s"),Se==="data"&&(Ae="[data-%s]"),Se!=null&&Se.startsWith("data-")&&!Se.includes("%s")&&(Ae=`[${Se}="%s"]`),Ae.startsWith("."))_.classList.remove(...Te.map(Pe=>Ae.substring(1).replace("%s",Pe))),_.classList.add(Ae.substring(1).replace("%s",Fe));else{const Pe=Ae.replace("%s",Fe).match(/\[([^\]]+)\]/);if(Pe){const[Ve,Tt]=Pe[1].split("=");Tt||Te.forEach(At=>{_.removeAttribute(Ve.replace(Fe,At))}),_.setAttribute(Ve,Tt?Tt.replace(/"|'/g,""):"")}else _.setAttribute(Ae,Fe)}}},[Fe,$e,_,Te]),A.useEffect(()=>{let Se;if(N&&te.current&&V){const Ae=V.createElement("style");Ae.appendChild(V.createTextNode(qN)),V.head.appendChild(Ae),window.getComputedStyle(V.body),Se=setTimeout(()=>{V.head.removeChild(Ae)},1)}return()=>{clearTimeout(Se)}},[Fe,N,V]),A.useEffect(()=>(te.current=!0,()=>{te.current=!1}),[]);const ct=A.useMemo(()=>({allColorSchemes:Te,colorScheme:Fe,darkColorScheme:Ce,lightColorScheme:Oe,mode:Me,setColorScheme:ke,setMode:gt,systemMode:Ne}),[Te,Fe,Ce,Oe,Me,ke,gt,Ne,qe.colorSchemeSelector]);let Ie=!0;($||Z.cssVariables===!1||Q&&(F==null?void 0:F.cssVarPrefix)===be)&&(Ie=!1);const un=pe.jsxs(A.Fragment,{children:[pe.jsx(sE,{themeId:C?t:void 0,theme:qe,children:P}),Ie&&pe.jsx(Wb,{styles:((de=qe.generateStyleSheets)==null?void 0:de.call(qe))||[]})]});return Q?un:pe.jsx(p.Provider,{value:ct,children:un})}const v=typeof c=="string"?c:c.light,x=typeof c=="string"?c:c.dark;return{CssVarsProvider:y,useColorScheme:b,getInitColorSchemeScript:O=>HN({colorSchemeStorageKey:o,defaultLightColorScheme:v,defaultDarkColorScheme:x,modeStorageKey:i,...O})}}function GN(e=""){function t(...i){if(!i.length)return"";const o=i[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...i.slice(1))})`:`, ${o}`}return(i,...o)=>`var(--${e?`${e}-`:""}${i}${t(...o)})`}const hE=(e,t,r,i=[])=>{let o=e;t.forEach((s,c)=>{c===t.length-1?Array.isArray(o)?o[Number(s)]=r:o&&typeof o=="object"&&(o[s]=r):o&&typeof o=="object"&&(o[s]||(o[s]=i.includes(s)?[]:{}),o=o[s])})},$N=(e,t,r)=>{function i(o,s=[],c=[]){Object.entries(o).forEach(([d,h])=>{(!r||r&&!r([...s,d]))&&h!=null&&(typeof h=="object"&&Object.keys(h).length>0?i(h,[...s,d],Array.isArray(h)?[...c,d]:c):t([...s,d],h,c))})}i(e)},XN=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>e.includes(i))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Jd(e,t){const{prefix:r,shouldSkipGeneratingVar:i}=t||{},o={},s={},c={};return $N(e,(d,h,p)=>{if((typeof h=="string"||typeof h=="number")&&(!i||!i(d,h))){const b=`--${r?`${r}-`:""}${d.join("-")}`,E=XN(d,h);Object.assign(o,{[b]:E}),hE(s,d,`var(${b})`,p),hE(c,d,`var(${b}, ${E})`,p)}},d=>d[0]==="vars"),{css:o,vars:s,varsWithDefaults:c}}function QN(e,t={}){const{getSelector:r=B,disableCssColorScheme:i,colorSchemeSelector:o}=t,{colorSchemes:s={},components:c,defaultColorScheme:d="light",...h}=e,{vars:p,css:b,varsWithDefaults:E}=Jd(h,t);let T=E;const y={},{[d]:v,...x}=s;if(Object.entries(x||{}).forEach(([L,M])=>{const{vars:D,css:N,varsWithDefaults:z}=Jd(M,t);T=Un(T,z),y[L]={css:N,vars:D}}),v){const{css:L,vars:M,varsWithDefaults:D}=Jd(v,t);T=Un(T,D),y[d]={css:L,vars:M}}function B(L,M){var N,z;let D=o;if(o==="class"&&(D=".%s"),o==="data"&&(D="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(D=`[${o}="%s"]`),L){if(D==="media")return e.defaultColorScheme===L?":root":{[`@media (prefers-color-scheme: ${((z=(N=s[L])==null?void 0:N.palette)==null?void 0:z.mode)||L})`]:{":root":M}};if(D)return e.defaultColorScheme===L?`:root, ${D.replace("%s",String(L))}`:D.replace("%s",String(L))}return":root"}return{vars:T,generateThemeVars:()=>{let L={...p};return Object.entries(y).forEach(([,{vars:M}])=>{L=Un(L,M)}),L},generateStyleSheets:()=>{var q,V;const L=[],M=e.defaultColorScheme||"light";function D(_,j){Object.keys(j).length&&L.push(typeof _=="string"?{[_]:{...j}}:_)}D(r(void 0,{...b}),b);const{[M]:N,...z}=y;if(N){const{css:_}=N,j=(V=(q=s[M])==null?void 0:q.palette)==null?void 0:V.mode,$=!i&&j?{colorScheme:j,..._}:{..._};D(r(M,{...$}),$)}return Object.entries(z).forEach(([_,{css:j}])=>{var X,te;const $=(te=(X=s[_])==null?void 0:X.palette)==null?void 0:te.mode,ee=!i&&$?{colorScheme:$,...j}:{...j};D(r(_,{...ee}),ee)}),L}}}function KN(e){return function(r){return e==="media"?`@media (prefers-color-scheme: ${r})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const Lo={black:"#000",white:"#fff"},WN={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},eu={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},tu={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Mo={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},nu={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},ru={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},au={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function pE(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Lo.white,default:Lo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const ZN=pE();function mE(){return{text:{primary:Lo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Lo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const gE=mE();function bE(e,t,r,i){const o=i.light||i,s=i.dark||i*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=wo(e.main,o):t==="dark"&&(e.dark=Do(e.main,s)))}function JN(e="light"){return e==="dark"?{main:nu[200],light:nu[50],dark:nu[400]}:{main:nu[700],light:nu[400],dark:nu[800]}}function eO(e="light"){return e==="dark"?{main:eu[200],light:eu[50],dark:eu[400]}:{main:eu[500],light:eu[300],dark:eu[700]}}function tO(e="light"){return e==="dark"?{main:tu[500],light:tu[300],dark:tu[700]}:{main:tu[700],light:tu[400],dark:tu[800]}}function nO(e="light"){return e==="dark"?{main:ru[400],light:ru[300],dark:ru[700]}:{main:ru[700],light:ru[500],dark:ru[900]}}function rO(e="light"){return e==="dark"?{main:au[400],light:au[300],dark:au[700]}:{main:au[800],light:au[500],dark:au[900]}}function aO(e="light"){return e==="dark"?{main:Mo[400],light:Mo[300],dark:Mo[700]}:{main:"#ed6c02",light:Mo[500],dark:Mo[900]}}function e0(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:i=.2,...o}=e,s=e.primary||JN(t),c=e.secondary||eO(t),d=e.error||tO(t),h=e.info||nO(t),p=e.success||rO(t),b=e.warning||aO(t);function E(x){return ON(x,gE.text.primary)>=r?gE.text.primary:ZN.text.primary}const T=({color:x,name:B,mainShade:O=500,lightShade:P=300,darkShade:L=700})=>{if(x={...x},!x.main&&x[O]&&(x.main=x[O]),!x.hasOwnProperty("main"))throw new Error(Aa(11,B?` (${B})`:"",O));if(typeof x.main!="string")throw new Error(Aa(12,B?` (${B})`:"",JSON.stringify(x.main)));return bE(x,"light",P,i),bE(x,"dark",L,i),x.contrastText||(x.contrastText=E(x.main)),x};let y;return t==="light"?y=pE():t==="dark"&&(y=mE()),Un({common:{...Lo},mode:t,primary:T({color:s,name:"primary"}),secondary:T({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:T({color:d,name:"error"}),warning:T({color:b,name:"warning"}),info:T({color:h,name:"info"}),success:T({color:p,name:"success"}),grey:WN,contrastThreshold:r,getContrastText:E,augmentColor:T,tonalOffset:i,...y},o)}function iO(e){const t={};return Object.entries(e).forEach(i=>{const[o,s]=i;typeof s=="object"&&(t[o]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function uO(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function oO(e){return Math.round(e*1e5)/1e5}const EE={textTransform:"uppercase"},yE='"Roboto", "Helvetica", "Arial", sans-serif';function TE(e,t){const{fontFamily:r=yE,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:h=16,allVariants:p,pxToRem:b,...E}=typeof t=="function"?t(e):t,T=i/14,y=b||(B=>`${B/h*T}rem`),v=(B,O,P,L,M)=>({fontFamily:r,fontWeight:B,fontSize:y(O),lineHeight:P,...r===yE?{letterSpacing:`${oO(L/O)}em`}:{},...M,...p}),x={h1:v(o,96,1.167,-1.5),h2:v(o,60,1.2,-.5),h3:v(s,48,1.167,0),h4:v(s,34,1.235,.25),h5:v(s,24,1.334,0),h6:v(c,20,1.6,.15),subtitle1:v(s,16,1.75,.15),subtitle2:v(c,14,1.57,.1),body1:v(s,16,1.5,.15),body2:v(s,14,1.43,.15),button:v(c,14,1.75,.4,EE),caption:v(s,12,1.66,.4),overline:v(s,12,2.66,1,EE),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Un({htmlFontSize:h,pxToRem:y,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:d,...x},E,{clone:!1})}const lO=.2,sO=.14,cO=.12;function Ht(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${lO})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${sO})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${cO})`].join(",")}const fO=["none",Ht(0,2,1,-1,0,1,1,0,0,1,3,0),Ht(0,3,1,-2,0,2,2,0,0,1,5,0),Ht(0,3,3,-2,0,3,4,0,0,1,8,0),Ht(0,2,4,-1,0,4,5,0,0,1,10,0),Ht(0,3,5,-1,0,5,8,0,0,1,14,0),Ht(0,3,5,-1,0,6,10,0,0,1,18,0),Ht(0,4,5,-2,0,7,10,1,0,2,16,1),Ht(0,5,5,-3,0,8,10,1,0,3,14,2),Ht(0,5,6,-3,0,9,12,1,0,3,16,2),Ht(0,6,6,-3,0,10,14,1,0,4,18,3),Ht(0,6,7,-4,0,11,15,1,0,4,20,3),Ht(0,7,8,-4,0,12,17,2,0,5,22,4),Ht(0,7,8,-4,0,13,19,2,0,5,24,4),Ht(0,7,9,-4,0,14,21,2,0,5,26,4),Ht(0,8,9,-5,0,15,22,2,0,6,28,5),Ht(0,8,10,-5,0,16,24,2,0,6,30,5),Ht(0,8,11,-5,0,17,26,2,0,6,32,5),Ht(0,9,11,-5,0,18,28,2,0,7,34,6),Ht(0,9,12,-6,0,19,29,2,0,7,36,6),Ht(0,10,13,-6,0,20,31,3,0,8,38,7),Ht(0,10,13,-6,0,21,33,3,0,8,40,7),Ht(0,10,14,-6,0,22,35,3,0,8,42,7),Ht(0,11,14,-7,0,23,36,3,0,9,44,8),Ht(0,11,15,-7,0,24,38,3,0,9,46,8)],dO={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},hO={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function SE(e){return`${Math.round(e)}ms`}function pO(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function mO(e){const t={...dO,...e.easing},r={...hO,...e.duration};return{getAutoHeightDuration:pO,create:(o=["all"],s={})=>{const{duration:c=r.standard,easing:d=t.easeInOut,delay:h=0,...p}=s;return(Array.isArray(o)?o:[o]).map(b=>`${b} ${typeof c=="string"?c:SE(c)} ${d} ${typeof h=="string"?h:SE(h)}`).join(",")},...e,easing:t,duration:r}}const gO={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function bO(e){return Pr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function CE(e={}){const t={...e};function r(i){const o=Object.entries(i);for(let s=0;s<o.length;s++){const[c,d]=o[s];!bO(d)||c.startsWith("unstable_")?delete i[c]:Pr(d)&&(i[c]={...d},r(i[c]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
112
112
|
|
|
113
113
|
const theme = ${JSON.stringify(t,null,2)};
|
|
114
114
|
|
|
115
115
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
116
116
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
117
117
|
|
|
118
|
-
export default theme;`}function Qd(e={},...t){const{breakpoints:r,mixins:i={},spacing:l,palette:s={},transitions:c={},typography:d={},shape:p,...m}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Aa(20));const b=Xd(s),E=Ud(e);let T=Un(E,{mixins:HN(E.breakpoints,i),palette:b,shadows:qN.slice(),typography:sE(b,d),transitions:XN(c),zIndex:{...QN}});return T=Un(T,m),T=t.reduce((y,R)=>Un(y,R),T),T.unstable_sxConfig={...vl,...m==null?void 0:m.unstable_sxConfig},T.unstable_sx=function(R){return ai({sx:R,theme:this})},T.toRuntimeSource=fE,T}function Kd(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const WN=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=Kd(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function dE(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function hE(e){return e==="dark"?WN:[]}function ZN(e){const{palette:t={mode:"light"},opacity:r,overlays:i,...l}=e,s=Xd(t);return{palette:s,opacity:{...dE(s.mode),...r},overlays:i||hE(s.mode),...l}}function JN(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const eO=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],tO=e=>(t,r)=>{const i=e.rootSelector||":root",l=e.colorSchemeSelector;let s=l;if(l==="class"&&(s=".%s"),l==="data"&&(s="[data-%s]"),l!=null&&l.startsWith("data-")&&!l.includes("%s")&&(s=`[${l}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const c={};return eO(e.cssVarPrefix).forEach(d=>{c[d]=r[d],delete r[d]}),s==="media"?{[i]:r,"@media (prefers-color-scheme: dark)":{[i]:c}}:s?{[s.replace("%s",t)]:c,[`${i}, ${s.replace("%s",t)}`]:r}:{[i]:{...r,...c}}}if(s&&s!=="media")return`${i}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[i]:r}};if(s)return s.replace("%s",String(t))}return i};function nO(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function le(e,t,r){!e[t]&&r&&(e[t]=r)}function Ll(e){return typeof e!="string"||!e.startsWith("hsl")?e:$b(e)}function Wr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Rl(Ll(e[t])))}function rO(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Fr=e=>{try{return e()}catch{}},aO=(e="mui")=>xN(e);function Wd(e,t,r,i){if(!t)return;t=t===!0?{}:t;const l=i==="dark"?"dark":"light";if(!r){e[i]=ZN({...t,palette:{mode:l,...t==null?void 0:t.palette}});return}const{palette:s,...c}=Qd({...r,palette:{mode:l,...t==null?void 0:t.palette}});return e[i]={...t,palette:s,opacity:{...dE(l),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||hE(l)},c}function iO(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:i,disableCssColorScheme:l=!1,cssVarPrefix:s="mui",shouldSkipGeneratingVar:c=JN,colorSchemeSelector:d=r.light&&r.dark?"media":void 0,rootSelector:p=":root",...m}=e,b=Object.keys(r)[0],E=i||(r.light&&b!=="light"?"light":b),T=aO(s),{[E]:y,light:R,dark:x,...U}=r,D={...U};let q=y;if((E==="dark"&&!("dark"in r)||E==="light"&&!("light"in r))&&(q=!0),!q)throw new Error(Aa(21,E));const M=Wd(D,q,m,E);R&&!D.light&&Wd(D,R,void 0,"light"),x&&!D.dark&&Wd(D,x,void 0,"dark");let P={defaultColorScheme:E,...M,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:p,getCssVar:T,colorSchemes:D,font:{...UN(M.typography),...M.font},spacing:rO(m.spacing)};Object.keys(P.colorSchemes).forEach(G=>{const _=P.colorSchemes[G].palette,z=$=>{const Z=$.split("-"),X=Z[1],te=Z[2];return T($,_[X][te])};if(_.mode==="light"&&(le(_.common,"background","#fff"),le(_.common,"onBackground","#000")),_.mode==="dark"&&(le(_.common,"background","#000"),le(_.common,"onBackground","#fff")),nO(_,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),_.mode==="light"){le(_.Alert,"errorColor",It(_.error.light,.6)),le(_.Alert,"infoColor",It(_.info.light,.6)),le(_.Alert,"successColor",It(_.success.light,.6)),le(_.Alert,"warningColor",It(_.warning.light,.6)),le(_.Alert,"errorFilledBg",z("palette-error-main")),le(_.Alert,"infoFilledBg",z("palette-info-main")),le(_.Alert,"successFilledBg",z("palette-success-main")),le(_.Alert,"warningFilledBg",z("palette-warning-main")),le(_.Alert,"errorFilledColor",Fr(()=>_.getContrastText(_.error.main))),le(_.Alert,"infoFilledColor",Fr(()=>_.getContrastText(_.info.main))),le(_.Alert,"successFilledColor",Fr(()=>_.getContrastText(_.success.main))),le(_.Alert,"warningFilledColor",Fr(()=>_.getContrastText(_.warning.main))),le(_.Alert,"errorStandardBg",Dt(_.error.light,.9)),le(_.Alert,"infoStandardBg",Dt(_.info.light,.9)),le(_.Alert,"successStandardBg",Dt(_.success.light,.9)),le(_.Alert,"warningStandardBg",Dt(_.warning.light,.9)),le(_.Alert,"errorIconColor",z("palette-error-main")),le(_.Alert,"infoIconColor",z("palette-info-main")),le(_.Alert,"successIconColor",z("palette-success-main")),le(_.Alert,"warningIconColor",z("palette-warning-main")),le(_.AppBar,"defaultBg",z("palette-grey-100")),le(_.Avatar,"defaultBg",z("palette-grey-400")),le(_.Button,"inheritContainedBg",z("palette-grey-300")),le(_.Button,"inheritContainedHoverBg",z("palette-grey-A100")),le(_.Chip,"defaultBorder",z("palette-grey-400")),le(_.Chip,"defaultAvatarColor",z("palette-grey-700")),le(_.Chip,"defaultIconColor",z("palette-grey-700")),le(_.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),le(_.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),le(_.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),le(_.LinearProgress,"primaryBg",Dt(_.primary.main,.62)),le(_.LinearProgress,"secondaryBg",Dt(_.secondary.main,.62)),le(_.LinearProgress,"errorBg",Dt(_.error.main,.62)),le(_.LinearProgress,"infoBg",Dt(_.info.main,.62)),le(_.LinearProgress,"successBg",Dt(_.success.main,.62)),le(_.LinearProgress,"warningBg",Dt(_.warning.main,.62)),le(_.Skeleton,"bg",`rgba(${z("palette-text-primaryChannel")} / 0.11)`),le(_.Slider,"primaryTrack",Dt(_.primary.main,.62)),le(_.Slider,"secondaryTrack",Dt(_.secondary.main,.62)),le(_.Slider,"errorTrack",Dt(_.error.main,.62)),le(_.Slider,"infoTrack",Dt(_.info.main,.62)),le(_.Slider,"successTrack",Dt(_.success.main,.62)),le(_.Slider,"warningTrack",Dt(_.warning.main,.62));const $=ws(_.background.default,.8);le(_.SnackbarContent,"bg",$),le(_.SnackbarContent,"color",Fr(()=>_.getContrastText($))),le(_.SpeedDialAction,"fabHoverBg",ws(_.background.paper,.15)),le(_.StepConnector,"border",z("palette-grey-400")),le(_.StepContent,"border",z("palette-grey-400")),le(_.Switch,"defaultColor",z("palette-common-white")),le(_.Switch,"defaultDisabledColor",z("palette-grey-100")),le(_.Switch,"primaryDisabledColor",Dt(_.primary.main,.62)),le(_.Switch,"secondaryDisabledColor",Dt(_.secondary.main,.62)),le(_.Switch,"errorDisabledColor",Dt(_.error.main,.62)),le(_.Switch,"infoDisabledColor",Dt(_.info.main,.62)),le(_.Switch,"successDisabledColor",Dt(_.success.main,.62)),le(_.Switch,"warningDisabledColor",Dt(_.warning.main,.62)),le(_.TableCell,"border",Dt(Ms(_.divider,1),.88)),le(_.Tooltip,"bg",Ms(_.grey[700],.92))}if(_.mode==="dark"){le(_.Alert,"errorColor",Dt(_.error.light,.6)),le(_.Alert,"infoColor",Dt(_.info.light,.6)),le(_.Alert,"successColor",Dt(_.success.light,.6)),le(_.Alert,"warningColor",Dt(_.warning.light,.6)),le(_.Alert,"errorFilledBg",z("palette-error-dark")),le(_.Alert,"infoFilledBg",z("palette-info-dark")),le(_.Alert,"successFilledBg",z("palette-success-dark")),le(_.Alert,"warningFilledBg",z("palette-warning-dark")),le(_.Alert,"errorFilledColor",Fr(()=>_.getContrastText(_.error.dark))),le(_.Alert,"infoFilledColor",Fr(()=>_.getContrastText(_.info.dark))),le(_.Alert,"successFilledColor",Fr(()=>_.getContrastText(_.success.dark))),le(_.Alert,"warningFilledColor",Fr(()=>_.getContrastText(_.warning.dark))),le(_.Alert,"errorStandardBg",It(_.error.light,.9)),le(_.Alert,"infoStandardBg",It(_.info.light,.9)),le(_.Alert,"successStandardBg",It(_.success.light,.9)),le(_.Alert,"warningStandardBg",It(_.warning.light,.9)),le(_.Alert,"errorIconColor",z("palette-error-main")),le(_.Alert,"infoIconColor",z("palette-info-main")),le(_.Alert,"successIconColor",z("palette-success-main")),le(_.Alert,"warningIconColor",z("palette-warning-main")),le(_.AppBar,"defaultBg",z("palette-grey-900")),le(_.AppBar,"darkBg",z("palette-background-paper")),le(_.AppBar,"darkColor",z("palette-text-primary")),le(_.Avatar,"defaultBg",z("palette-grey-600")),le(_.Button,"inheritContainedBg",z("palette-grey-800")),le(_.Button,"inheritContainedHoverBg",z("palette-grey-700")),le(_.Chip,"defaultBorder",z("palette-grey-700")),le(_.Chip,"defaultAvatarColor",z("palette-grey-300")),le(_.Chip,"defaultIconColor",z("palette-grey-300")),le(_.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),le(_.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),le(_.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),le(_.LinearProgress,"primaryBg",It(_.primary.main,.5)),le(_.LinearProgress,"secondaryBg",It(_.secondary.main,.5)),le(_.LinearProgress,"errorBg",It(_.error.main,.5)),le(_.LinearProgress,"infoBg",It(_.info.main,.5)),le(_.LinearProgress,"successBg",It(_.success.main,.5)),le(_.LinearProgress,"warningBg",It(_.warning.main,.5)),le(_.Skeleton,"bg",`rgba(${z("palette-text-primaryChannel")} / 0.13)`),le(_.Slider,"primaryTrack",It(_.primary.main,.5)),le(_.Slider,"secondaryTrack",It(_.secondary.main,.5)),le(_.Slider,"errorTrack",It(_.error.main,.5)),le(_.Slider,"infoTrack",It(_.info.main,.5)),le(_.Slider,"successTrack",It(_.success.main,.5)),le(_.Slider,"warningTrack",It(_.warning.main,.5));const $=ws(_.background.default,.98);le(_.SnackbarContent,"bg",$),le(_.SnackbarContent,"color",Fr(()=>_.getContrastText($))),le(_.SpeedDialAction,"fabHoverBg",ws(_.background.paper,.15)),le(_.StepConnector,"border",z("palette-grey-600")),le(_.StepContent,"border",z("palette-grey-600")),le(_.Switch,"defaultColor",z("palette-grey-300")),le(_.Switch,"defaultDisabledColor",z("palette-grey-600")),le(_.Switch,"primaryDisabledColor",It(_.primary.main,.55)),le(_.Switch,"secondaryDisabledColor",It(_.secondary.main,.55)),le(_.Switch,"errorDisabledColor",It(_.error.main,.55)),le(_.Switch,"infoDisabledColor",It(_.info.main,.55)),le(_.Switch,"successDisabledColor",It(_.success.main,.55)),le(_.Switch,"warningDisabledColor",It(_.warning.main,.55)),le(_.TableCell,"border",It(Ms(_.divider,1),.68)),le(_.Tooltip,"bg",Ms(_.grey[700],.92))}Wr(_.background,"default"),Wr(_.background,"paper"),Wr(_.common,"background"),Wr(_.common,"onBackground"),Wr(_,"divider"),Object.keys(_).forEach($=>{const Z=_[$];$!=="tonalOffset"&&Z&&typeof Z=="object"&&(Z.main&&le(_[$],"mainChannel",Rl(Ll(Z.main))),Z.light&&le(_[$],"lightChannel",Rl(Ll(Z.light))),Z.dark&&le(_[$],"darkChannel",Rl(Ll(Z.dark))),Z.contrastText&&le(_[$],"contrastTextChannel",Rl(Ll(Z.contrastText))),$==="text"&&(Wr(_[$],"primary"),Wr(_[$],"secondary")),$==="action"&&(Z.active&&Wr(_[$],"active"),Z.selected&&Wr(_[$],"selected")))})}),P=t.reduce((G,_)=>Un(G,_),P);const k={prefix:s,disableCssColorScheme:l,shouldSkipGeneratingVar:c,getSelector:tO(P)},{vars:N,generateThemeVars:Y,generateStyleSheets:j}=NN(P,k);return P.vars=N,Object.entries(P.colorSchemes[P.defaultColorScheme]).forEach(([G,_])=>{P[G]=_}),P.generateThemeVars=Y,P.generateStyleSheets=j,P.generateSpacing=function(){return jb(m.spacing,Bd(this))},P.getColorSchemeSelector=ON(d),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=c,P.unstable_sxConfig={...vl,...m==null?void 0:m.unstable_sxConfig},P.unstable_sx=function(_){return ai({sx:_,theme:this})},P.toRuntimeSource=fE,P}function pE(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Xd({...r===!0?{}:r.palette,mode:t})})}function Bs(e={},...t){const{palette:r,cssVariables:i=!1,colorSchemes:l=r?void 0:{light:!0},defaultColorScheme:s=r==null?void 0:r.mode,...c}=e,d=s||"light",p=l==null?void 0:l[d],m={...l,...r?{[d]:{...typeof p!="boolean"&&p,palette:r}}:void 0};if(i===!1){if(!("colorSchemes"in e))return Qd(e,...t);let b=r;"palette"in e||m[d]&&(m[d]!==!0?b=m[d].palette:d==="dark"&&(b={mode:"dark"}));const E=Qd({...e,palette:b},...t);return E.defaultColorScheme=d,E.colorSchemes=m,E.palette.mode==="light"&&(E.colorSchemes.light={...m.light!==!0&&m.light,palette:E.palette},pE(E,"dark",m.dark)),E.palette.mode==="dark"&&(E.colorSchemes.dark={...m.dark!==!0&&m.dark,palette:E.palette},pE(E,"light",m.light)),E}return!r&&!("light"in m)&&d==="light"&&(m.light=!0),iO({...c,colorSchemes:m,defaultColorScheme:d,...typeof i!="boolean"&&i},...t)}const Ps=Bs(),zr="$$material";function Ml(){const e=Hd(Ps);return e[zr]||e}function uO(e){return he.jsx(QR,{...e,defaultTheme:Ps,themeId:zr})}function lO(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const mE=e=>lO(e)&&e!=="classes",mt=JR({themeId:zr,defaultTheme:Ps,rootShouldForwardProp:mE});function oO(e){return function(r){return he.jsx(uO,{styles:typeof e=="function"?i=>e({theme:i,...r}):e})}}function sO(){return HR}const Rn=gN;function In(e){return mN(e)}function en(e,t){const{className:r,elementType:i,ownerState:l,externalForwardedProps:s,internalForwardedProps:c,shouldForwardComponentProp:d=!1,...p}=t,{component:m,slots:b={[e]:void 0},slotProps:E={[e]:void 0},...T}=s,y=b[e]||i,R=Lb(E[e],l),{props:{component:x,...U},internalRef:D}=kb({className:r,...p,externalForwardedProps:e==="root"?T:void 0,externalSlotProps:R}),q=xr(D,R==null?void 0:R.ref,t.ref),M=e==="root"?x||m:x,P=Ob(y,{...e==="root"&&!m&&!b[e]&&c,...e!=="root"&&!b[e]&&c,...U,...M&&!d&&{as:M},...M&&d&&{component:M},ref:q},l);return[y,P]}function Us(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function Zd(e,t){return Zd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Zd(e,t)}function gE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zd(e,t)}const bE={disabled:!1},Hs=Ot.createContext(null);var cO=function(t){return t.scrollTop},wl="unmounted",ii="exited",ui="entering",ru="entered",Jd="exiting",Yr=function(e){gE(t,e);function t(i,l){var s;s=e.call(this,i,l)||this;var c=l,d=c&&!c.isMounting?i.enter:i.appear,p;return s.appearStatus=null,i.in?d?(p=ii,s.appearStatus=ui):p=ru:i.unmountOnExit||i.mountOnEnter?p=wl:p=ii,s.state={status:p},s.nextCallback=null,s}t.getDerivedStateFromProps=function(l,s){var c=l.in;return c&&s.status===wl?{status:ii}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(l){var s=null;if(l!==this.props){var c=this.state.status;this.props.in?c!==ui&&c!==ru&&(s=ui):(c===ui||c===ru)&&(s=Jd)}this.updateStatus(!1,s)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var l=this.props.timeout,s,c,d;return s=c=d=l,l!=null&&typeof l!="number"&&(s=l.exit,c=l.enter,d=l.appear!==void 0?l.appear:c),{exit:s,enter:c,appear:d}},r.updateStatus=function(l,s){if(l===void 0&&(l=!1),s!==null)if(this.cancelNextCallback(),s===ui){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:As.findDOMNode(this);c&&cO(c)}this.performEnter(l)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ii&&this.setState({status:wl})},r.performEnter=function(l){var s=this,c=this.props.enter,d=this.context?this.context.isMounting:l,p=this.props.nodeRef?[d]:[As.findDOMNode(this),d],m=p[0],b=p[1],E=this.getTimeouts(),T=d?E.appear:E.enter;if(!l&&!c||bE.disabled){this.safeSetState({status:ru},function(){s.props.onEntered(m)});return}this.props.onEnter(m,b),this.safeSetState({status:ui},function(){s.props.onEntering(m,b),s.onTransitionEnd(T,function(){s.safeSetState({status:ru},function(){s.props.onEntered(m,b)})})})},r.performExit=function(){var l=this,s=this.props.exit,c=this.getTimeouts(),d=this.props.nodeRef?void 0:As.findDOMNode(this);if(!s||bE.disabled){this.safeSetState({status:ii},function(){l.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:Jd},function(){l.props.onExiting(d),l.onTransitionEnd(c.exit,function(){l.safeSetState({status:ii},function(){l.props.onExited(d)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(l,s){s=this.setNextCallback(s),this.setState(l,s)},r.setNextCallback=function(l){var s=this,c=!0;return this.nextCallback=function(d){c&&(c=!1,s.nextCallback=null,l(d))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},r.onTransitionEnd=function(l,s){this.setNextCallback(s);var c=this.props.nodeRef?this.props.nodeRef.current:As.findDOMNode(this),d=l==null&&!this.props.addEndListener;if(!c||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var p=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],m=p[0],b=p[1];this.props.addEndListener(m,b)}l!=null&&setTimeout(this.nextCallback,l)},r.render=function(){var l=this.state.status;if(l===wl)return null;var s=this.props,c=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var d=Us(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ot.createElement(Hs.Provider,{value:null},typeof c=="function"?c(l,d):Ot.cloneElement(Ot.Children.only(c),d))},t}(Ot.Component);Yr.contextType=Hs,Yr.propTypes={};function au(){}Yr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:au,onEntering:au,onEntered:au,onExit:au,onExiting:au,onExited:au},Yr.UNMOUNTED=wl,Yr.EXITED=ii,Yr.ENTERING=ui,Yr.ENTERED=ru,Yr.EXITING=Jd;function fO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function e0(e,t){var r=function(s){return t&&A.isValidElement(s)?t(s):s},i=Object.create(null);return e&&A.Children.map(e,function(l){return l}).forEach(function(l){i[l.key]=r(l)}),i}function dO(e,t){e=e||{},t=t||{};function r(b){return b in t?t[b]:e[b]}var i=Object.create(null),l=[];for(var s in e)s in t?l.length&&(i[s]=l,l=[]):l.push(s);var c,d={};for(var p in t){if(i[p])for(c=0;c<i[p].length;c++){var m=i[p][c];d[i[p][c]]=r(m)}d[p]=r(p)}for(c=0;c<l.length;c++)d[l[c]]=r(l[c]);return d}function li(e,t,r){return r[t]!=null?r[t]:e.props[t]}function hO(e,t){return e0(e.children,function(r){return A.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:li(r,"appear",e),enter:li(r,"enter",e),exit:li(r,"exit",e)})})}function pO(e,t,r){var i=e0(e.children),l=dO(t,i);return Object.keys(l).forEach(function(s){var c=l[s];if(A.isValidElement(c)){var d=s in t,p=s in i,m=t[s],b=A.isValidElement(m)&&!m.props.in;p&&(!d||b)?l[s]=A.cloneElement(c,{onExited:r.bind(null,c),in:!0,exit:li(c,"exit",e),enter:li(c,"enter",e)}):!p&&d&&!b?l[s]=A.cloneElement(c,{in:!1}):p&&d&&A.isValidElement(m)&&(l[s]=A.cloneElement(c,{onExited:r.bind(null,c),in:m.props.in,exit:li(c,"exit",e),enter:li(c,"enter",e)}))}}),l}var mO=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},gO={component:"div",childFactory:function(t){return t}},t0=function(e){gE(t,e);function t(i,l){var s;s=e.call(this,i,l)||this;var c=s.handleExited.bind(fO(s));return s.state={contextValue:{isMounting:!0},handleExited:c,firstRender:!0},s}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(l,s){var c=s.children,d=s.handleExited,p=s.firstRender;return{children:p?hO(l,d):pO(l,c,d),firstRender:!1}},r.handleExited=function(l,s){var c=e0(this.props.children);l.key in c||(l.props.onExited&&l.props.onExited(s),this.mounted&&this.setState(function(d){var p=Za({},d.children);return delete p[l.key],{children:p}}))},r.render=function(){var l=this.props,s=l.component,c=l.childFactory,d=Us(l,["component","childFactory"]),p=this.state.contextValue,m=mO(this.state.children).map(c);return delete d.appear,delete d.enter,delete d.exit,s===null?Ot.createElement(Hs.Provider,{value:p},m):Ot.createElement(Hs.Provider,{value:p},Ot.createElement(s,d,m))},t}(Ot.Component);t0.propTypes={},t0.defaultProps=gO;const EE=e=>e.scrollTop;function Fs(e,t){const{timeout:r,easing:i,style:l={}}=e;return{duration:l.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:l.transitionTimingFunction??(typeof i=="object"?i[t.mode]:i),delay:l.transitionDelay}}const bO={entering:{opacity:1},entered:{opacity:1}},EO=A.forwardRef(function(t,r){const i=Ml(),l={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:s,appear:c=!0,children:d,easing:p,in:m,onEnter:b,onEntered:E,onEntering:T,onExit:y,onExited:R,onExiting:x,style:U,timeout:D=l,TransitionComponent:q=Yr,...M}=t,P=A.useRef(null),k=xr(P,Cs(d),r),N=X=>te=>{if(X){const H=P.current;te===void 0?X(H):X(H,te)}},Y=N(T),j=N((X,te)=>{EE(X);const H=Fs({style:U,timeout:D,easing:p},{mode:"enter"});X.style.webkitTransition=i.transitions.create("opacity",H),X.style.transition=i.transitions.create("opacity",H),b&&b(X,te)}),G=N(E),_=N(x),z=N(X=>{const te=Fs({style:U,timeout:D,easing:p},{mode:"exit"});X.style.webkitTransition=i.transitions.create("opacity",te),X.style.transition=i.transitions.create("opacity",te),y&&y(X)}),$=N(R),Z=X=>{s&&s(P.current,X)};return he.jsx(q,{appear:c,in:m,nodeRef:P,onEnter:j,onEntered:G,onEntering:Y,onExit:z,onExited:$,onExiting:_,addEndListener:Z,timeout:D,...M,children:(X,{ownerState:te,...H})=>A.cloneElement(d,{style:{opacity:0,visibility:X==="exited"&&!m?"hidden":void 0,...bO[X],...U,...d.props.style},ref:k,...H})})});function yO(e){return xn("MuiBackdrop",e)}vn("MuiBackdrop",["root","invisible"]);const TO=e=>{const{classes:t,invisible:r}=e;return On({root:["root",r&&"invisible"]},yO,t)},SO=mt("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),CO=A.forwardRef(function(t,r){const i=In({props:t,name:"MuiBackdrop"}),{children:l,className:s,component:c="div",invisible:d=!1,open:p,components:m={},componentsProps:b={},slotProps:E={},slots:T={},TransitionComponent:y,transitionDuration:R,...x}=i,U={...i,component:c,invisible:d},D=TO(U),q={transition:y,root:m.Root,...T},M={...b,...E},P={slots:q,slotProps:M},[k,N]=en("root",{elementType:SO,externalForwardedProps:P,className:tt(D.root,s),ownerState:U}),[Y,j]=en("transition",{elementType:EO,externalForwardedProps:P,ownerState:U});return he.jsx(Y,{in:p,timeout:R,...x,...j,children:he.jsx(k,{"aria-hidden":!0,...N,classes:D,ref:r,children:l})})});function AO(e){return typeof e=="function"?e():e}function _O(e){return e?e.props.hasOwnProperty("in"):!1}const yE=()=>{},zs=new B8;function xO(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:i=!1,closeAfterTransition:l=!1,onTransitionEnter:s,onTransitionExited:c,children:d,onClose:p,open:m,rootRef:b}=e,E=A.useRef({}),T=A.useRef(null),y=A.useRef(null),R=xr(y,b),[x,U]=A.useState(!m),D=_O(d);let q=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(q=!1);const M=()=>_a(T.current),P=()=>(E.current.modalRef=y.current,E.current.mount=T.current,E.current),k=()=>{zs.mount(P(),{disableScrollLock:i}),y.current&&(y.current.scrollTop=0)},N=Hr(()=>{const te=AO(t)||M().body;zs.add(P(),te),y.current&&k()}),Y=()=>zs.isTopModal(P()),j=Hr(te=>{T.current=te,te&&(m&&Y()?k():y.current&&Cl(y.current,q))}),G=A.useCallback(()=>{zs.remove(P(),q)},[q]);A.useEffect(()=>()=>{G()},[G]),A.useEffect(()=>{m?N():(!D||!l)&&G()},[m,G,D,l,N]);const _=te=>H=>{var Q;(Q=te.onKeyDown)==null||Q.call(te,H),!(H.key!=="Escape"||H.which===229||!Y())&&(r||(H.stopPropagation(),p&&p(H,"escapeKeyDown")))},z=te=>H=>{var Q;(Q=te.onClick)==null||Q.call(te,H),H.target===H.currentTarget&&p&&p(H,"backdropClick")};return{getRootProps:(te={})=>{const H=Ib(e);delete H.onTransitionEnter,delete H.onTransitionExited;const Q={...H,...te};return{role:"presentation",...Q,onKeyDown:_(Q),ref:R}},getBackdropProps:(te={})=>{const H=te;return{"aria-hidden":!0,...H,onClick:z(H),open:m}},getTransitionProps:()=>{const te=()=>{U(!1),s&&s()},H=()=>{U(!0),c&&c(),l&&G()};return{onEnter:Sb(te,(d==null?void 0:d.props.onEnter)??yE),onExited:Sb(H,(d==null?void 0:d.props.onExited)??yE)}},rootRef:R,portalRef:j,isTopModal:Y,exited:x,hasTransition:D}}function vO(e){return xn("MuiModal",e)}vn("MuiModal",["root","hidden","backdrop"]);const RO=e=>{const{open:t,exited:r,classes:i}=e;return On({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},vO,i)},NO=mt("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Rn(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),OO=mt(CO,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),IO=A.forwardRef(function(t,r){const i=In({name:"MuiModal",props:t}),{BackdropComponent:l=OO,BackdropProps:s,classes:c,className:d,closeAfterTransition:p=!1,children:m,container:b,component:E,components:T={},componentsProps:y={},disableAutoFocus:R=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:U=!1,disablePortal:D=!1,disableRestoreFocus:q=!1,disableScrollLock:M=!1,hideBackdrop:P=!1,keepMounted:k=!1,onBackdropClick:N,onClose:Y,onTransitionEnter:j,onTransitionExited:G,open:_,slotProps:z={},slots:$={},theme:Z,...X}=i,te={...i,closeAfterTransition:p,disableAutoFocus:R,disableEnforceFocus:x,disableEscapeKeyDown:U,disablePortal:D,disableRestoreFocus:q,disableScrollLock:M,hideBackdrop:P,keepMounted:k},{getRootProps:H,getBackdropProps:Q,getTransitionProps:ie,portalRef:me,isTopModal:C,exited:J,hasTransition:fe}=xO({...te,rootRef:r}),O={...te,exited:J},be=RO(O),Ne={};if(m.props.tabIndex===void 0&&(Ne.tabIndex="-1"),fe){const{onEnter:Re,onExited:We}=ie();Ne.onEnter=Re,Ne.onExited=We}const Ee={slots:{root:T.Root,backdrop:T.Backdrop,...$},slotProps:{...y,...z}},[Ke,Me]=en("root",{ref:r,elementType:NO,externalForwardedProps:{...Ee,...X,component:E},getSlotProps:H,ownerState:O,className:tt(d,be==null?void 0:be.root,!O.open&&O.exited&&(be==null?void 0:be.hidden))}),[lt,yt]=en("backdrop",{ref:s==null?void 0:s.ref,elementType:l,externalForwardedProps:Ee,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:Re=>Q({...Re,onClick:We=>{N&&N(We),Re!=null&&Re.onClick&&Re.onClick(We)}}),className:tt(s==null?void 0:s.className,be==null?void 0:be.backdrop),ownerState:O});return!k&&!_&&(!fe||J)?null:he.jsx(V8,{ref:me,container:b,disablePortal:D,children:he.jsxs(Ke,{...Me,children:[!P&&l?he.jsx(lt,{...yt}):null,he.jsx(j8,{disableEnforceFocus:x,disableAutoFocus:R,disableRestoreFocus:q,isEnabled:C,open:_,children:A.cloneElement(m,Ne)})]})})});function DO(e){return xn("MuiSvgIcon",e)}vn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const kO=e=>{const{color:t,fontSize:r,classes:i}=e,l={root:["root",t!=="inherit"&&`color${ct(t)}`,`fontSize${ct(r)}`]};return On(l,DO,i)},LO=mt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${ct(r.color)}`],t[`fontSize${ct(r.fontSize)}`]]}})(Rn(({theme:e})=>{var t,r,i,l,s,c,d,p,m,b,E,T,y,R;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(l=(t=e.transitions)==null?void 0:t.create)==null?void 0:l.call(t,"fill",{duration:(i=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:i.shorter}),variants:[{props:x=>!x.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((c=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:c.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((p=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:p.call(d,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((b=(m=e.typography)==null?void 0:m.pxToRem)==null?void 0:b.call(m,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,x])=>x&&x.main).map(([x])=>{var U,D;return{props:{color:x},style:{color:(D=(U=(e.vars??e).palette)==null?void 0:U[x])==null?void 0:D.main}}}),{props:{color:"action"},style:{color:(T=(E=(e.vars??e).palette)==null?void 0:E.action)==null?void 0:T.active}},{props:{color:"disabled"},style:{color:(R=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:R.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),n0=A.forwardRef(function(t,r){const i=In({props:t,name:"MuiSvgIcon"}),{children:l,className:s,color:c="inherit",component:d="svg",fontSize:p="medium",htmlColor:m,inheritViewBox:b=!1,titleAccess:E,viewBox:T="0 0 24 24",...y}=i,R=A.isValidElement(l)&&l.type==="svg",x={...i,color:c,component:d,fontSize:p,instanceFontSize:t.fontSize,inheritViewBox:b,viewBox:T,hasSvgAsChild:R},U={};b||(U.viewBox=T);const D=kO(x);return he.jsxs(LO,{as:d,className:tt(D.root,s),focusable:"false",color:m,"aria-hidden":E?void 0:!0,role:E?"img":void 0,ref:r,...U,...y,...R&&l.props,ownerState:x,children:[R?l.props.children:l,E?he.jsx("title",{children:E}):null]})});n0.muiName="SvgIcon";function oi(e,t){function r(i,l){return he.jsx(n0,{"data-testid":`${t}Icon`,ref:l,...i,children:e})}return r.muiName=n0.muiName,A.memo(A.forwardRef(r))}function MO(e,t){if(!e)return t;if(typeof e=="function"||typeof t=="function")return l=>{const s=typeof t=="function"?t(l):t,c=typeof e=="function"?e({...l,...s}):e,d=tt(l==null?void 0:l.className,s==null?void 0:s.className,c==null?void 0:c.className);return{...s,...c,...!!d&&{className:d},...(s==null?void 0:s.style)&&(c==null?void 0:c.style)&&{style:{...s.style,...c.style}},...(s==null?void 0:s.sx)&&(c==null?void 0:c.sx)&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const r=t,i=tt(r==null?void 0:r.className,e==null?void 0:e.className);return{...t,...e,...!!i&&{className:i},...(r==null?void 0:r.style)&&(e==null?void 0:e.style)&&{style:{...r.style,...e.style}},...(r==null?void 0:r.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function wO(e,t,r){const i=t.getBoundingClientRect(),l=r&&r.getBoundingClientRect(),s=Ur(t);let c;if(t.fakeTransform)c=t.fakeTransform;else{const m=s.getComputedStyle(t);c=m.getPropertyValue("-webkit-transform")||m.getPropertyValue("transform")}let d=0,p=0;if(c&&c!=="none"&&typeof c=="string"){const m=c.split("(")[1].split(")")[0].split(",");d=parseInt(m[4],10),p=parseInt(m[5],10)}return e==="left"?l?`translateX(${l.right+d-i.left}px)`:`translateX(${s.innerWidth+d-i.left}px)`:e==="right"?l?`translateX(-${i.right-l.left-d}px)`:`translateX(-${i.left+i.width-d}px)`:e==="up"?l?`translateY(${l.bottom+p-i.top}px)`:`translateY(${s.innerHeight+p-i.top}px)`:l?`translateY(-${i.top-l.top+i.height-p}px)`:`translateY(-${i.top+i.height-p}px)`}function BO(e){return typeof e=="function"?e():e}function Ys(e,t,r){const i=BO(r),l=wO(e,t,i);l&&(t.style.webkitTransform=l,t.style.transform=l)}const PO=A.forwardRef(function(t,r){const i=Ml(),l={enter:i.transitions.easing.easeOut,exit:i.transitions.easing.sharp},s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:c,appear:d=!0,children:p,container:m,direction:b="down",easing:E=l,in:T,onEnter:y,onEntered:R,onEntering:x,onExit:U,onExited:D,onExiting:q,style:M,timeout:P=s,TransitionComponent:k=Yr,...N}=t,Y=A.useRef(null),j=xr(Cs(p),Y,r),G=ie=>me=>{ie&&(me===void 0?ie(Y.current):ie(Y.current,me))},_=G((ie,me)=>{Ys(b,ie,m),EE(ie),y&&y(ie,me)}),z=G((ie,me)=>{const C=Fs({timeout:P,style:M,easing:E},{mode:"enter"});ie.style.webkitTransition=i.transitions.create("-webkit-transform",{...C}),ie.style.transition=i.transitions.create("transform",{...C}),ie.style.webkitTransform="none",ie.style.transform="none",x&&x(ie,me)}),$=G(R),Z=G(q),X=G(ie=>{const me=Fs({timeout:P,style:M,easing:E},{mode:"exit"});ie.style.webkitTransition=i.transitions.create("-webkit-transform",me),ie.style.transition=i.transitions.create("transform",me),Ys(b,ie,m),U&&U(ie)}),te=G(ie=>{ie.style.webkitTransition="",ie.style.transition="",D&&D(ie)}),H=ie=>{c&&c(Y.current,ie)},Q=A.useCallback(()=>{Y.current&&Ys(b,Y.current,m)},[b,m]);return A.useEffect(()=>{if(T||b==="down"||b==="right")return;const ie=ys(()=>{Y.current&&Ys(b,Y.current,m)}),me=Ur(Y.current);return me.addEventListener("resize",ie),()=>{ie.clear(),me.removeEventListener("resize",ie)}},[b,T,m]),A.useEffect(()=>{T||Q()},[T,Q]),he.jsx(k,{nodeRef:Y,onEnter:_,onEntered:$,onEntering:z,onExit:X,onExited:te,onExiting:Z,addEndListener:H,appear:d,in:T,timeout:P,...N,children:(ie,{ownerState:me,...C})=>A.cloneElement(p,{ref:j,style:{visibility:ie==="exited"&&!T?"hidden":void 0,...M,...p.props.style},...C})})});function UO(e){return xn("MuiPaper",e)}vn("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const HO=e=>{const{square:t,elevation:r,variant:i,classes:l}=e,s={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${r}`]};return On(s,UO,l)},FO=mt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(Rn(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),TE=A.forwardRef(function(t,r){var y;const i=In({props:t,name:"MuiPaper"}),l=Ml(),{className:s,component:c="div",elevation:d=1,square:p=!1,variant:m="elevation",...b}=i,E={...i,component:c,elevation:d,square:p,variant:m},T=HO(E);return he.jsx(FO,{as:c,ownerState:E,className:tt(T.root,s),ref:r,...b,style:{...m==="elevation"&&{"--Paper-shadow":(l.vars||l).shadows[d],...l.vars&&{"--Paper-overlay":(y=l.vars.overlays)==null?void 0:y[d]},...!l.vars&&l.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Nl("#fff",Kd(d))}, ${Nl("#fff",Kd(d))})`}},...b.style}})});function zO(e){return xn("MuiDrawer",e)}vn("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const SE=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},YO=e=>{const{classes:t,anchor:r,variant:i}=e,l={root:["root",`anchor${ct(r)}`],docked:[(i==="permanent"||i==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ct(r)}`,i!=="temporary"&&`paperAnchorDocked${ct(r)}`]};return On(l,zO,t)},jO=mt(IO,{name:"MuiDrawer",slot:"Root",overridesResolver:SE})(Rn(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),qO=mt("div",{shouldForwardProp:mE,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:SE})({flex:"0 0 auto"}),VO=mt(TE,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${ct(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${ct(r.anchor)}`]]}})(Rn(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),CE={left:"right",right:"left",top:"down",bottom:"up"};function GO(e){return["left","right"].includes(e)}function $O({direction:e},t){return e==="rtl"&&GO(t)?CE[t]:t}const XO=A.forwardRef(function(t,r){const i=In({props:t,name:"MuiDrawer"}),l=Ml(),s=Id(),c={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{anchor:d="left",BackdropProps:p,children:m,className:b,elevation:E=16,hideBackdrop:T=!1,ModalProps:{BackdropProps:y,...R}={},onClose:x,open:U=!1,PaperProps:D={},SlideProps:q,TransitionComponent:M,transitionDuration:P=c,variant:k="temporary",slots:N={},slotProps:Y={},...j}=i,G=A.useRef(!1);A.useEffect(()=>{G.current=!0},[]);const _=$O({direction:s?"rtl":"ltr"},d),$={...i,anchor:d,elevation:E,open:U,variant:k,...j},Z=YO($),X={slots:{transition:M,...N},slotProps:{paper:D,transition:q,...Y,backdrop:MO(Y.backdrop||{...p,...y},{transitionDuration:P})}},[te,H]=en("root",{ref:r,elementType:jO,className:tt(Z.root,Z.modal,b),shouldForwardComponentProp:!0,ownerState:$,externalForwardedProps:{...X,...j,...R},additionalProps:{open:U,onClose:x,hideBackdrop:T,slots:{backdrop:X.slots.backdrop},slotProps:{backdrop:X.slotProps.backdrop}}}),[Q,ie]=en("paper",{elementType:VO,shouldForwardComponentProp:!0,className:tt(Z.paper,D.className),ownerState:$,externalForwardedProps:X,additionalProps:{elevation:k==="temporary"?E:0,square:!0}}),[me,C]=en("docked",{elementType:qO,ref:r,className:tt(Z.root,Z.docked,b),ownerState:$,externalForwardedProps:X,additionalProps:j}),[J,fe]=en("transition",{elementType:PO,ownerState:$,externalForwardedProps:X,additionalProps:{in:U,direction:CE[_],timeout:P,appear:G.current}}),O=he.jsx(Q,{...ie,children:m});if(k==="permanent")return he.jsx(me,{...C,children:O});const be=he.jsx(J,{...fe,children:O});return k==="persistent"?he.jsx(me,{...C,children:be}):he.jsx(te,{...H,children:be})});class js{constructor(){jo(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new js}static use(){const t=vb(js.create).current,[r,i]=A.useState(!1);return t.shouldMount=r,t.setShouldMount=i,A.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=KO(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...t)})}stop(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...t)})}pulsate(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...t)})}}function QO(){return js.use()}function KO(){let e,t;const r=new Promise((i,l)=>{e=i,t=l});return r.resolve=e,r.reject=t,r}function WO(e){const{className:t,classes:r,pulsate:i=!1,rippleX:l,rippleY:s,rippleSize:c,in:d,onExited:p,timeout:m}=e,[b,E]=A.useState(!1),T=tt(t,r.ripple,r.rippleVisible,i&&r.ripplePulsate),y={width:c,height:c,top:-(c/2)+s,left:-(c/2)+l},R=tt(r.child,b&&r.childLeaving,i&&r.childPulsate);return!d&&!b&&E(!0),A.useEffect(()=>{if(!d&&p!=null){const x=setTimeout(p,m);return()=>{clearTimeout(x)}}},[p,d,m]),he.jsx("span",{className:T,style:y,children:he.jsx("span",{className:R})})}const hr=vn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),r0=550,ZO=80,JO=Wu`
|
|
118
|
+
export default theme;`}function t0(e={},...t){const{breakpoints:r,mixins:i={},spacing:o,palette:s={},transitions:c={},typography:d={},shape:h,...p}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Aa(20));const b=e0(s),E=qd(e);let T=Un(E,{mixins:uO(E.breakpoints,i),palette:b,shadows:fO.slice(),typography:TE(b,d),transitions:mO(c),zIndex:{...gO}});return T=Un(T,p),T=t.reduce((y,v)=>Un(y,v),T),T.unstable_sxConfig={...Oo,...p==null?void 0:p.unstable_sxConfig},T.unstable_sx=function(v){return ii({sx:v,theme:this})},T.toRuntimeSource=CE,T}function n0(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const EO=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=n0(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function AE(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function xE(e){return e==="dark"?EO:[]}function yO(e){const{palette:t={mode:"light"},opacity:r,overlays:i,...o}=e,s=e0(t);return{palette:s,opacity:{...AE(s.mode),...r},overlays:i||xE(s.mode),...o}}function TO(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const SO=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],CO=e=>(t,r)=>{const i=e.rootSelector||":root",o=e.colorSchemeSelector;let s=o;if(o==="class"&&(s=".%s"),o==="data"&&(s="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(s=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const c={};return SO(e.cssVarPrefix).forEach(d=>{c[d]=r[d],delete r[d]}),s==="media"?{[i]:r,"@media (prefers-color-scheme: dark)":{[i]:c}}:s?{[s.replace("%s",t)]:c,[`${i}, ${s.replace("%s",t)}`]:r}:{[i]:{...r,...c}}}if(s&&s!=="media")return`${i}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[i]:r}};if(s)return s.replace("%s",String(t))}return i};function AO(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function oe(e,t,r){!e[t]&&r&&(e[t]=r)}function Bo(e){return typeof e!="string"||!e.startsWith("hsl")?e:aE(e)}function Wr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ko(Bo(e[t])))}function xO(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Fr=e=>{try{return e()}catch{}},_O=(e="mui")=>GN(e);function r0(e,t,r,i){if(!t)return;t=t===!0?{}:t;const o=i==="dark"?"dark":"light";if(!r){e[i]=yO({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:s,...c}=t0({...r,palette:{mode:o,...t==null?void 0:t.palette}});return e[i]={...t,palette:s,opacity:{...AE(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||xE(o)},c}function vO(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:i,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",shouldSkipGeneratingVar:c=TO,colorSchemeSelector:d=r.light&&r.dark?"media":void 0,rootSelector:h=":root",...p}=e,b=Object.keys(r)[0],E=i||(r.light&&b!=="light"?"light":b),T=_O(s),{[E]:y,light:v,dark:x,...B}=r,O={...B};let P=y;if((E==="dark"&&!("dark"in r)||E==="light"&&!("light"in r))&&(P=!0),!P)throw new Error(Aa(21,E));const L=r0(O,P,p,E);v&&!O.light&&r0(O,v,void 0,"light"),x&&!O.dark&&r0(O,x,void 0,"dark");let M={defaultColorScheme:E,...L,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:h,getCssVar:T,colorSchemes:O,font:{...iO(L.typography),...L.font},spacing:xO(p.spacing)};Object.keys(M.colorSchemes).forEach(V=>{const _=M.colorSchemes[V].palette,j=$=>{const ee=$.split("-"),X=ee[1],te=ee[2];return T($,_[X][te])};if(_.mode==="light"&&(oe(_.common,"background","#fff"),oe(_.common,"onBackground","#000")),_.mode==="dark"&&(oe(_.common,"background","#000"),oe(_.common,"onBackground","#fff")),AO(_,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),_.mode==="light"){oe(_.Alert,"errorColor",It(_.error.light,.6)),oe(_.Alert,"infoColor",It(_.info.light,.6)),oe(_.Alert,"successColor",It(_.success.light,.6)),oe(_.Alert,"warningColor",It(_.warning.light,.6)),oe(_.Alert,"errorFilledBg",j("palette-error-main")),oe(_.Alert,"infoFilledBg",j("palette-info-main")),oe(_.Alert,"successFilledBg",j("palette-success-main")),oe(_.Alert,"warningFilledBg",j("palette-warning-main")),oe(_.Alert,"errorFilledColor",Fr(()=>_.getContrastText(_.error.main))),oe(_.Alert,"infoFilledColor",Fr(()=>_.getContrastText(_.info.main))),oe(_.Alert,"successFilledColor",Fr(()=>_.getContrastText(_.success.main))),oe(_.Alert,"warningFilledColor",Fr(()=>_.getContrastText(_.warning.main))),oe(_.Alert,"errorStandardBg",Dt(_.error.light,.9)),oe(_.Alert,"infoStandardBg",Dt(_.info.light,.9)),oe(_.Alert,"successStandardBg",Dt(_.success.light,.9)),oe(_.Alert,"warningStandardBg",Dt(_.warning.light,.9)),oe(_.Alert,"errorIconColor",j("palette-error-main")),oe(_.Alert,"infoIconColor",j("palette-info-main")),oe(_.Alert,"successIconColor",j("palette-success-main")),oe(_.Alert,"warningIconColor",j("palette-warning-main")),oe(_.AppBar,"defaultBg",j("palette-grey-100")),oe(_.Avatar,"defaultBg",j("palette-grey-400")),oe(_.Button,"inheritContainedBg",j("palette-grey-300")),oe(_.Button,"inheritContainedHoverBg",j("palette-grey-A100")),oe(_.Chip,"defaultBorder",j("palette-grey-400")),oe(_.Chip,"defaultAvatarColor",j("palette-grey-700")),oe(_.Chip,"defaultIconColor",j("palette-grey-700")),oe(_.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),oe(_.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),oe(_.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),oe(_.LinearProgress,"primaryBg",Dt(_.primary.main,.62)),oe(_.LinearProgress,"secondaryBg",Dt(_.secondary.main,.62)),oe(_.LinearProgress,"errorBg",Dt(_.error.main,.62)),oe(_.LinearProgress,"infoBg",Dt(_.info.main,.62)),oe(_.LinearProgress,"successBg",Dt(_.success.main,.62)),oe(_.LinearProgress,"warningBg",Dt(_.warning.main,.62)),oe(_.Skeleton,"bg",`rgba(${j("palette-text-primaryChannel")} / 0.11)`),oe(_.Slider,"primaryTrack",Dt(_.primary.main,.62)),oe(_.Slider,"secondaryTrack",Dt(_.secondary.main,.62)),oe(_.Slider,"errorTrack",Dt(_.error.main,.62)),oe(_.Slider,"infoTrack",Dt(_.info.main,.62)),oe(_.Slider,"successTrack",Dt(_.success.main,.62)),oe(_.Slider,"warningTrack",Dt(_.warning.main,.62));const $=Fs(_.background.default,.8);oe(_.SnackbarContent,"bg",$),oe(_.SnackbarContent,"color",Fr(()=>_.getContrastText($))),oe(_.SpeedDialAction,"fabHoverBg",Fs(_.background.paper,.15)),oe(_.StepConnector,"border",j("palette-grey-400")),oe(_.StepContent,"border",j("palette-grey-400")),oe(_.Switch,"defaultColor",j("palette-common-white")),oe(_.Switch,"defaultDisabledColor",j("palette-grey-100")),oe(_.Switch,"primaryDisabledColor",Dt(_.primary.main,.62)),oe(_.Switch,"secondaryDisabledColor",Dt(_.secondary.main,.62)),oe(_.Switch,"errorDisabledColor",Dt(_.error.main,.62)),oe(_.Switch,"infoDisabledColor",Dt(_.info.main,.62)),oe(_.Switch,"successDisabledColor",Dt(_.success.main,.62)),oe(_.Switch,"warningDisabledColor",Dt(_.warning.main,.62)),oe(_.TableCell,"border",Dt(Hs(_.divider,1),.88)),oe(_.Tooltip,"bg",Hs(_.grey[700],.92))}if(_.mode==="dark"){oe(_.Alert,"errorColor",Dt(_.error.light,.6)),oe(_.Alert,"infoColor",Dt(_.info.light,.6)),oe(_.Alert,"successColor",Dt(_.success.light,.6)),oe(_.Alert,"warningColor",Dt(_.warning.light,.6)),oe(_.Alert,"errorFilledBg",j("palette-error-dark")),oe(_.Alert,"infoFilledBg",j("palette-info-dark")),oe(_.Alert,"successFilledBg",j("palette-success-dark")),oe(_.Alert,"warningFilledBg",j("palette-warning-dark")),oe(_.Alert,"errorFilledColor",Fr(()=>_.getContrastText(_.error.dark))),oe(_.Alert,"infoFilledColor",Fr(()=>_.getContrastText(_.info.dark))),oe(_.Alert,"successFilledColor",Fr(()=>_.getContrastText(_.success.dark))),oe(_.Alert,"warningFilledColor",Fr(()=>_.getContrastText(_.warning.dark))),oe(_.Alert,"errorStandardBg",It(_.error.light,.9)),oe(_.Alert,"infoStandardBg",It(_.info.light,.9)),oe(_.Alert,"successStandardBg",It(_.success.light,.9)),oe(_.Alert,"warningStandardBg",It(_.warning.light,.9)),oe(_.Alert,"errorIconColor",j("palette-error-main")),oe(_.Alert,"infoIconColor",j("palette-info-main")),oe(_.Alert,"successIconColor",j("palette-success-main")),oe(_.Alert,"warningIconColor",j("palette-warning-main")),oe(_.AppBar,"defaultBg",j("palette-grey-900")),oe(_.AppBar,"darkBg",j("palette-background-paper")),oe(_.AppBar,"darkColor",j("palette-text-primary")),oe(_.Avatar,"defaultBg",j("palette-grey-600")),oe(_.Button,"inheritContainedBg",j("palette-grey-800")),oe(_.Button,"inheritContainedHoverBg",j("palette-grey-700")),oe(_.Chip,"defaultBorder",j("palette-grey-700")),oe(_.Chip,"defaultAvatarColor",j("palette-grey-300")),oe(_.Chip,"defaultIconColor",j("palette-grey-300")),oe(_.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),oe(_.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),oe(_.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),oe(_.LinearProgress,"primaryBg",It(_.primary.main,.5)),oe(_.LinearProgress,"secondaryBg",It(_.secondary.main,.5)),oe(_.LinearProgress,"errorBg",It(_.error.main,.5)),oe(_.LinearProgress,"infoBg",It(_.info.main,.5)),oe(_.LinearProgress,"successBg",It(_.success.main,.5)),oe(_.LinearProgress,"warningBg",It(_.warning.main,.5)),oe(_.Skeleton,"bg",`rgba(${j("palette-text-primaryChannel")} / 0.13)`),oe(_.Slider,"primaryTrack",It(_.primary.main,.5)),oe(_.Slider,"secondaryTrack",It(_.secondary.main,.5)),oe(_.Slider,"errorTrack",It(_.error.main,.5)),oe(_.Slider,"infoTrack",It(_.info.main,.5)),oe(_.Slider,"successTrack",It(_.success.main,.5)),oe(_.Slider,"warningTrack",It(_.warning.main,.5));const $=Fs(_.background.default,.98);oe(_.SnackbarContent,"bg",$),oe(_.SnackbarContent,"color",Fr(()=>_.getContrastText($))),oe(_.SpeedDialAction,"fabHoverBg",Fs(_.background.paper,.15)),oe(_.StepConnector,"border",j("palette-grey-600")),oe(_.StepContent,"border",j("palette-grey-600")),oe(_.Switch,"defaultColor",j("palette-grey-300")),oe(_.Switch,"defaultDisabledColor",j("palette-grey-600")),oe(_.Switch,"primaryDisabledColor",It(_.primary.main,.55)),oe(_.Switch,"secondaryDisabledColor",It(_.secondary.main,.55)),oe(_.Switch,"errorDisabledColor",It(_.error.main,.55)),oe(_.Switch,"infoDisabledColor",It(_.info.main,.55)),oe(_.Switch,"successDisabledColor",It(_.success.main,.55)),oe(_.Switch,"warningDisabledColor",It(_.warning.main,.55)),oe(_.TableCell,"border",It(Hs(_.divider,1),.68)),oe(_.Tooltip,"bg",Hs(_.grey[700],.92))}Wr(_.background,"default"),Wr(_.background,"paper"),Wr(_.common,"background"),Wr(_.common,"onBackground"),Wr(_,"divider"),Object.keys(_).forEach($=>{const ee=_[$];$!=="tonalOffset"&&ee&&typeof ee=="object"&&(ee.main&&oe(_[$],"mainChannel",ko(Bo(ee.main))),ee.light&&oe(_[$],"lightChannel",ko(Bo(ee.light))),ee.dark&&oe(_[$],"darkChannel",ko(Bo(ee.dark))),ee.contrastText&&oe(_[$],"contrastTextChannel",ko(Bo(ee.contrastText))),$==="text"&&(Wr(_[$],"primary"),Wr(_[$],"secondary")),$==="action"&&(ee.active&&Wr(_[$],"active"),ee.selected&&Wr(_[$],"selected")))})}),M=t.reduce((V,_)=>Un(V,_),M);const D={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:c,getSelector:CO(M)},{vars:N,generateThemeVars:z,generateStyleSheets:q}=QN(M,D);return M.vars=N,Object.entries(M.colorSchemes[M.defaultColorScheme]).forEach(([V,_])=>{M[V]=_}),M.generateThemeVars=z,M.generateStyleSheets=q,M.generateSpacing=function(){return eE(p.spacing,Yd(this))},M.getColorSchemeSelector=KN(d),M.spacing=M.generateSpacing(),M.shouldSkipGeneratingVar=c,M.unstable_sxConfig={...Oo,...p==null?void 0:p.unstable_sxConfig},M.unstable_sx=function(_){return ii({sx:_,theme:this})},M.toRuntimeSource=CE,M}function _E(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:e0({...r===!0?{}:r.palette,mode:t})})}function zs(e={},...t){const{palette:r,cssVariables:i=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:s=r==null?void 0:r.mode,...c}=e,d=s||"light",h=o==null?void 0:o[d],p={...o,...r?{[d]:{...typeof h!="boolean"&&h,palette:r}}:void 0};if(i===!1){if(!("colorSchemes"in e))return t0(e,...t);let b=r;"palette"in e||p[d]&&(p[d]!==!0?b=p[d].palette:d==="dark"&&(b={mode:"dark"}));const E=t0({...e,palette:b},...t);return E.defaultColorScheme=d,E.colorSchemes=p,E.palette.mode==="light"&&(E.colorSchemes.light={...p.light!==!0&&p.light,palette:E.palette},_E(E,"dark",p.dark)),E.palette.mode==="dark"&&(E.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:E.palette},_E(E,"light",p.light)),E}return!r&&!("light"in p)&&d==="light"&&(p.light=!0),vO({...c,colorSchemes:p,defaultColorScheme:d,...typeof i!="boolean"&&i},...t)}const Ys=zs(),zr="$$material";function Po(){const e=Vd(Ys);return e[zr]||e}function RO(e){return pe.jsx(gN,{...e,defaultTheme:Ys,themeId:zr})}function NO(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const vE=e=>NO(e)&&e!=="classes",mt=TN({themeId:zr,defaultTheme:Ys,rootShouldForwardProp:vE});function OO(e){return function(r){return pe.jsx(RO,{styles:typeof e=="function"?i=>e({theme:i,...r}):e})}}function kO(){return uN}const Rn=PN;function kn(e){return BN(e)}function en(e,t){const{className:r,elementType:i,ownerState:o,externalForwardedProps:s,internalForwardedProps:c,shouldForwardComponentProp:d=!1,...h}=t,{component:p,slots:b={[e]:void 0},slotProps:E={[e]:void 0},...T}=s,y=b[e]||i,v=qb(E[e],o),{props:{component:x,...B},internalRef:O}=jb({className:r,...h,externalForwardedProps:e==="root"?T:void 0,externalSlotProps:v}),P=_r(O,v==null?void 0:v.ref,t.ref),L=e==="root"?x||p:x,M=Fb(y,{...e==="root"&&!p&&!b[e]&&c,...e!=="root"&&!b[e]&&c,...B,...L&&!d&&{as:L},...L&&d&&{component:L},ref:P},o);return[y,M]}function js(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function a0(e,t){return a0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},a0(e,t)}function RE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,a0(e,t)}const NE={disabled:!1},qs=St.createContext(null);var IO=function(t){return t.scrollTop},Uo="unmounted",ui="exited",oi="entering",iu="entered",i0="exiting",Yr=function(e){RE(t,e);function t(i,o){var s;s=e.call(this,i,o)||this;var c=o,d=c&&!c.isMounting?i.enter:i.appear,h;return s.appearStatus=null,i.in?d?(h=ui,s.appearStatus=oi):h=iu:i.unmountOnExit||i.mountOnEnter?h=Uo:h=ui,s.state={status:h},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var c=o.in;return c&&s.status===Uo?{status:ui}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var s=null;if(o!==this.props){var c=this.state.status;this.props.in?c!==oi&&c!==iu&&(s=oi):(c===oi||c===iu)&&(s=i0)}this.updateStatus(!1,s)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,s,c,d;return s=c=d=o,o!=null&&typeof o!="number"&&(s=o.exit,c=o.enter,d=o.appear!==void 0?o.appear:c),{exit:s,enter:c,appear:d}},r.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===oi){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:Ns.findDOMNode(this);c&&IO(c)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ui&&this.setState({status:Uo})},r.performEnter=function(o){var s=this,c=this.props.enter,d=this.context?this.context.isMounting:o,h=this.props.nodeRef?[d]:[Ns.findDOMNode(this),d],p=h[0],b=h[1],E=this.getTimeouts(),T=d?E.appear:E.enter;if(!o&&!c||NE.disabled){this.safeSetState({status:iu},function(){s.props.onEntered(p)});return}this.props.onEnter(p,b),this.safeSetState({status:oi},function(){s.props.onEntering(p,b),s.onTransitionEnd(T,function(){s.safeSetState({status:iu},function(){s.props.onEntered(p,b)})})})},r.performExit=function(){var o=this,s=this.props.exit,c=this.getTimeouts(),d=this.props.nodeRef?void 0:Ns.findDOMNode(this);if(!s||NE.disabled){this.safeSetState({status:ui},function(){o.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:i0},function(){o.props.onExiting(d),o.onTransitionEnd(c.exit,function(){o.safeSetState({status:ui},function(){o.props.onExited(d)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},r.setNextCallback=function(o){var s=this,c=!0;return this.nextCallback=function(d){c&&(c=!1,s.nextCallback=null,o(d))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},r.onTransitionEnd=function(o,s){this.setNextCallback(s);var c=this.props.nodeRef?this.props.nodeRef.current:Ns.findDOMNode(this),d=o==null&&!this.props.addEndListener;if(!c||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var h=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],p=h[0],b=h[1];this.props.addEndListener(p,b)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Uo)return null;var s=this.props,c=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var d=js(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return St.createElement(qs.Provider,{value:null},typeof c=="function"?c(o,d):St.cloneElement(St.Children.only(c),d))},t}(St.Component);Yr.contextType=qs,Yr.propTypes={};function uu(){}Yr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:uu,onEntering:uu,onEntered:uu,onExit:uu,onExiting:uu,onExited:uu},Yr.UNMOUNTED=Uo,Yr.EXITED=ui,Yr.ENTERING=oi,Yr.ENTERED=iu,Yr.EXITING=i0;function DO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u0(e,t){var r=function(s){return t&&A.isValidElement(s)?t(s):s},i=Object.create(null);return e&&A.Children.map(e,function(o){return o}).forEach(function(o){i[o.key]=r(o)}),i}function wO(e,t){e=e||{},t=t||{};function r(b){return b in t?t[b]:e[b]}var i=Object.create(null),o=[];for(var s in e)s in t?o.length&&(i[s]=o,o=[]):o.push(s);var c,d={};for(var h in t){if(i[h])for(c=0;c<i[h].length;c++){var p=i[h][c];d[i[h][c]]=r(p)}d[h]=r(h)}for(c=0;c<o.length;c++)d[o[c]]=r(o[c]);return d}function li(e,t,r){return r[t]!=null?r[t]:e.props[t]}function LO(e,t){return u0(e.children,function(r){return A.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:li(r,"appear",e),enter:li(r,"enter",e),exit:li(r,"exit",e)})})}function MO(e,t,r){var i=u0(e.children),o=wO(t,i);return Object.keys(o).forEach(function(s){var c=o[s];if(A.isValidElement(c)){var d=s in t,h=s in i,p=t[s],b=A.isValidElement(p)&&!p.props.in;h&&(!d||b)?o[s]=A.cloneElement(c,{onExited:r.bind(null,c),in:!0,exit:li(c,"exit",e),enter:li(c,"enter",e)}):!h&&d&&!b?o[s]=A.cloneElement(c,{in:!1}):h&&d&&A.isValidElement(p)&&(o[s]=A.cloneElement(c,{onExited:r.bind(null,c),in:p.props.in,exit:li(c,"exit",e),enter:li(c,"enter",e)}))}}),o}var BO=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},PO={component:"div",childFactory:function(t){return t}},o0=function(e){RE(t,e);function t(i,o){var s;s=e.call(this,i,o)||this;var c=s.handleExited.bind(DO(s));return s.state={contextValue:{isMounting:!0},handleExited:c,firstRender:!0},s}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,s){var c=s.children,d=s.handleExited,h=s.firstRender;return{children:h?LO(o,d):MO(o,c,d),firstRender:!1}},r.handleExited=function(o,s){var c=u0(this.props.children);o.key in c||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(d){var h=Ja({},d.children);return delete h[o.key],{children:h}}))},r.render=function(){var o=this.props,s=o.component,c=o.childFactory,d=js(o,["component","childFactory"]),h=this.state.contextValue,p=BO(this.state.children).map(c);return delete d.appear,delete d.enter,delete d.exit,s===null?St.createElement(qs.Provider,{value:h},p):St.createElement(qs.Provider,{value:h},St.createElement(s,d,p))},t}(St.Component);o0.propTypes={},o0.defaultProps=PO;const OE=e=>e.scrollTop;function Vs(e,t){const{timeout:r,easing:i,style:o={}}=e;return{duration:o.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:o.transitionTimingFunction??(typeof i=="object"?i[t.mode]:i),delay:o.transitionDelay}}const UO={entering:{opacity:1},entered:{opacity:1}},HO=A.forwardRef(function(t,r){const i=Po(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:s,appear:c=!0,children:d,easing:h,in:p,onEnter:b,onEntered:E,onEntering:T,onExit:y,onExited:v,onExiting:x,style:B,timeout:O=o,TransitionComponent:P=Yr,...L}=t,M=A.useRef(null),D=_r(M,Rs(d),r),N=X=>te=>{if(X){const F=M.current;te===void 0?X(F):X(F,te)}},z=N(T),q=N((X,te)=>{OE(X);const F=Vs({style:B,timeout:O,easing:h},{mode:"enter"});X.style.webkitTransition=i.transitions.create("opacity",F),X.style.transition=i.transitions.create("opacity",F),b&&b(X,te)}),V=N(E),_=N(x),j=N(X=>{const te=Vs({style:B,timeout:O,easing:h},{mode:"exit"});X.style.webkitTransition=i.transitions.create("opacity",te),X.style.transition=i.transitions.create("opacity",te),y&&y(X)}),$=N(v),ee=X=>{s&&s(M.current,X)};return pe.jsx(P,{appear:c,in:p,nodeRef:M,onEnter:q,onEntered:V,onEntering:z,onExit:j,onExited:$,onExiting:_,addEndListener:ee,timeout:O,...L,children:(X,{ownerState:te,...F})=>A.cloneElement(d,{style:{opacity:0,visibility:X==="exited"&&!p?"hidden":void 0,...UO[X],...B,...d.props.style},ref:D,...F})})});function FO(e){return _n("MuiBackdrop",e)}vn("MuiBackdrop",["root","invisible"]);const zO=e=>{const{classes:t,invisible:r}=e;return On({root:["root",r&&"invisible"]},FO,t)},YO=mt("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),jO=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiBackdrop"}),{children:o,className:s,component:c="div",invisible:d=!1,open:h,components:p={},componentsProps:b={},slotProps:E={},slots:T={},TransitionComponent:y,transitionDuration:v,...x}=i,B={...i,component:c,invisible:d},O=zO(B),P={transition:y,root:p.Root,...T},L={...b,...E},M={slots:P,slotProps:L},[D,N]=en("root",{elementType:YO,externalForwardedProps:M,className:tt(O.root,s),ownerState:B}),[z,q]=en("transition",{elementType:HO,externalForwardedProps:M,ownerState:B});return pe.jsx(z,{in:h,timeout:v,...x,...q,children:pe.jsx(D,{"aria-hidden":!0,...N,classes:O,ref:r,children:o})})});function qO(e){return typeof e=="function"?e():e}function VO(e){return e?e.props.hasOwnProperty("in"):!1}const kE=()=>{},Gs=new rR;function GO(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:i=!1,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:c,children:d,onClose:h,open:p,rootRef:b}=e,E=A.useRef({}),T=A.useRef(null),y=A.useRef(null),v=_r(y,b),[x,B]=A.useState(!p),O=VO(d);let P=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(P=!1);const L=()=>xa(T.current),M=()=>(E.current.modalRef=y.current,E.current.mount=T.current,E.current),D=()=>{Gs.mount(M(),{disableScrollLock:i}),y.current&&(y.current.scrollTop=0)},N=Hr(()=>{const te=qO(t)||L().body;Gs.add(M(),te),y.current&&D()}),z=()=>Gs.isTopModal(M()),q=Hr(te=>{T.current=te,te&&(p&&z()?D():y.current&&_o(y.current,P))}),V=A.useCallback(()=>{Gs.remove(M(),P)},[P]);A.useEffect(()=>()=>{V()},[V]),A.useEffect(()=>{p?N():(!O||!o)&&V()},[p,V,O,o,N]);const _=te=>F=>{var ie;(ie=te.onKeyDown)==null||ie.call(te,F),!(F.key!=="Escape"||F.which===229||!z())&&(r||(F.stopPropagation(),h&&h(F,"escapeKeyDown")))},j=te=>F=>{var ie;(ie=te.onClick)==null||ie.call(te,F),F.target===F.currentTarget&&h&&h(F,"backdropClick")};return{getRootProps:(te={})=>{const F=zb(e);delete F.onTransitionEnter,delete F.onTransitionExited;const ie={...F,...te};return{role:"presentation",...ie,onKeyDown:_(ie),ref:v}},getBackdropProps:(te={})=>{const F=te;return{"aria-hidden":!0,...F,onClick:j(F),open:p}},getTransitionProps:()=>{const te=()=>{B(!1),s&&s()},F=()=>{B(!0),c&&c(),o&&V()};return{onEnter:Db(te,(d==null?void 0:d.props.onEnter)??kE),onExited:Db(F,(d==null?void 0:d.props.onExited)??kE)}},rootRef:v,portalRef:q,isTopModal:z,exited:x,hasTransition:O}}function $O(e){return _n("MuiModal",e)}vn("MuiModal",["root","hidden","backdrop"]);const XO=e=>{const{open:t,exited:r,classes:i}=e;return On({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},$O,i)},QO=mt("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Rn(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),KO=mt(jO,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),WO=A.forwardRef(function(t,r){const i=kn({name:"MuiModal",props:t}),{BackdropComponent:o=KO,BackdropProps:s,classes:c,className:d,closeAfterTransition:h=!1,children:p,container:b,component:E,components:T={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:B=!1,disablePortal:O=!1,disableRestoreFocus:P=!1,disableScrollLock:L=!1,hideBackdrop:M=!1,keepMounted:D=!1,onBackdropClick:N,onClose:z,onTransitionEnter:q,onTransitionExited:V,open:_,slotProps:j={},slots:$={},theme:ee,...X}=i,te={...i,closeAfterTransition:h,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:B,disablePortal:O,disableRestoreFocus:P,disableScrollLock:L,hideBackdrop:M,keepMounted:D},{getRootProps:F,getBackdropProps:ie,getTransitionProps:Q,portalRef:he,isTopModal:C,exited:Z,hasTransition:fe}=GO({...te,rootRef:r}),k={...te,exited:Z},be=XO(k),Re={};if(p.props.tabIndex===void 0&&(Re.tabIndex="-1"),fe){const{onEnter:gt,onExited:Ne}=Q();Re.onEnter=gt,Re.onExited=Ne}const Te={slots:{root:T.Root,backdrop:T.Backdrop,...$},slotProps:{...y,...j}},[Xe,Be]=en("root",{ref:r,elementType:QO,externalForwardedProps:{...Te,...X,component:E},getSlotProps:F,ownerState:k,className:tt(d,be==null?void 0:be.root,!k.open&&k.exited&&(be==null?void 0:be.hidden))}),[ut,Ct]=en("backdrop",{ref:s==null?void 0:s.ref,elementType:o,externalForwardedProps:Te,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:gt=>ie({...gt,onClick:Ne=>{N&&N(Ne),gt!=null&>.onClick&>.onClick(Ne)}}),className:tt(s==null?void 0:s.className,be==null?void 0:be.backdrop),ownerState:k});return!D&&!_&&(!fe||Z)?null:pe.jsx(dR,{ref:he,container:b,disablePortal:O,children:pe.jsxs(Xe,{...Be,children:[!M&&o?pe.jsx(ut,{...Ct}):null,pe.jsx(cR,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:P,isEnabled:C,open:_,children:A.cloneElement(p,Re)})]})})});function ZO(e){return _n("MuiSvgIcon",e)}vn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const JO=e=>{const{color:t,fontSize:r,classes:i}=e,o={root:["root",t!=="inherit"&&`color${st(t)}`,`fontSize${st(r)}`]};return On(o,ZO,i)},e9=mt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${st(r.color)}`],t[`fontSize${st(r.fontSize)}`]]}})(Rn(({theme:e})=>{var t,r,i,o,s,c,d,h,p,b,E,T,y,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(i=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:i.shorter}),variants:[{props:x=>!x.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((c=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:c.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((h=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:h.call(d,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((b=(p=e.typography)==null?void 0:p.pxToRem)==null?void 0:b.call(p,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,x])=>x&&x.main).map(([x])=>{var B,O;return{props:{color:x},style:{color:(O=(B=(e.vars??e).palette)==null?void 0:B[x])==null?void 0:O.main}}}),{props:{color:"action"},style:{color:(T=(E=(e.vars??e).palette)==null?void 0:E.action)==null?void 0:T.active}},{props:{color:"disabled"},style:{color:(v=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:v.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),l0=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:c="inherit",component:d="svg",fontSize:h="medium",htmlColor:p,inheritViewBox:b=!1,titleAccess:E,viewBox:T="0 0 24 24",...y}=i,v=A.isValidElement(o)&&o.type==="svg",x={...i,color:c,component:d,fontSize:h,instanceFontSize:t.fontSize,inheritViewBox:b,viewBox:T,hasSvgAsChild:v},B={};b||(B.viewBox=T);const O=JO(x);return pe.jsxs(e9,{as:d,className:tt(O.root,s),focusable:"false",color:p,"aria-hidden":E?void 0:!0,role:E?"img":void 0,ref:r,...B,...y,...v&&o.props,ownerState:x,children:[v?o.props.children:o,E?pe.jsx("title",{children:E}):null]})});l0.muiName="SvgIcon";function si(e,t){function r(i,o){return pe.jsx(l0,{"data-testid":`${t}Icon`,ref:o,...i,children:e})}return r.muiName=l0.muiName,A.memo(A.forwardRef(r))}function t9(e,t){if(!e)return t;if(typeof e=="function"||typeof t=="function")return o=>{const s=typeof t=="function"?t(o):t,c=typeof e=="function"?e({...o,...s}):e,d=tt(o==null?void 0:o.className,s==null?void 0:s.className,c==null?void 0:c.className);return{...s,...c,...!!d&&{className:d},...(s==null?void 0:s.style)&&(c==null?void 0:c.style)&&{style:{...s.style,...c.style}},...(s==null?void 0:s.sx)&&(c==null?void 0:c.sx)&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const r=t,i=tt(r==null?void 0:r.className,e==null?void 0:e.className);return{...t,...e,...!!i&&{className:i},...(r==null?void 0:r.style)&&(e==null?void 0:e.style)&&{style:{...r.style,...e.style}},...(r==null?void 0:r.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function n9(e,t,r){const i=t.getBoundingClientRect(),o=r&&r.getBoundingClientRect(),s=Ur(t);let c;if(t.fakeTransform)c=t.fakeTransform;else{const p=s.getComputedStyle(t);c=p.getPropertyValue("-webkit-transform")||p.getPropertyValue("transform")}let d=0,h=0;if(c&&c!=="none"&&typeof c=="string"){const p=c.split("(")[1].split(")")[0].split(",");d=parseInt(p[4],10),h=parseInt(p[5],10)}return e==="left"?o?`translateX(${o.right+d-i.left}px)`:`translateX(${s.innerWidth+d-i.left}px)`:e==="right"?o?`translateX(-${i.right-o.left-d}px)`:`translateX(-${i.left+i.width-d}px)`:e==="up"?o?`translateY(${o.bottom+h-i.top}px)`:`translateY(${s.innerHeight+h-i.top}px)`:o?`translateY(-${i.top-o.top+i.height-h}px)`:`translateY(-${i.top+i.height-h}px)`}function r9(e){return typeof e=="function"?e():e}function $s(e,t,r){const i=r9(r),o=n9(e,t,i);o&&(t.style.webkitTransform=o,t.style.transform=o)}const a9=A.forwardRef(function(t,r){const i=Po(),o={enter:i.transitions.easing.easeOut,exit:i.transitions.easing.sharp},s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:c,appear:d=!0,children:h,container:p,direction:b="down",easing:E=o,in:T,onEnter:y,onEntered:v,onEntering:x,onExit:B,onExited:O,onExiting:P,style:L,timeout:M=s,TransitionComponent:D=Yr,...N}=t,z=A.useRef(null),q=_r(Rs(h),z,r),V=Q=>he=>{Q&&(he===void 0?Q(z.current):Q(z.current,he))},_=V((Q,he)=>{$s(b,Q,p),OE(Q),y&&y(Q,he)}),j=V((Q,he)=>{const C=Vs({timeout:M,style:L,easing:E},{mode:"enter"});Q.style.webkitTransition=i.transitions.create("-webkit-transform",{...C}),Q.style.transition=i.transitions.create("transform",{...C}),Q.style.webkitTransform="none",Q.style.transform="none",x&&x(Q,he)}),$=V(v),ee=V(P),X=V(Q=>{const he=Vs({timeout:M,style:L,easing:E},{mode:"exit"});Q.style.webkitTransition=i.transitions.create("-webkit-transform",he),Q.style.transition=i.transitions.create("transform",he),$s(b,Q,p),B&&B(Q)}),te=V(Q=>{Q.style.webkitTransition="",Q.style.transition="",O&&O(Q)}),F=Q=>{c&&c(z.current,Q)},ie=A.useCallback(()=>{z.current&&$s(b,z.current,p)},[b,p]);return A.useEffect(()=>{if(T||b==="down"||b==="right")return;const Q=xs(()=>{z.current&&$s(b,z.current,p)}),he=Ur(z.current);return he.addEventListener("resize",Q),()=>{Q.clear(),he.removeEventListener("resize",Q)}},[b,T,p]),A.useEffect(()=>{T||ie()},[T,ie]),pe.jsx(D,{nodeRef:z,onEnter:_,onEntered:$,onEntering:j,onExit:X,onExited:te,onExiting:ee,addEndListener:F,appear:d,in:T,timeout:M,...N,children:(Q,{ownerState:he,...C})=>A.cloneElement(h,{ref:q,style:{visibility:Q==="exited"&&!T?"hidden":void 0,...L,...h.props.style},...C})})});function i9(e){return _n("MuiPaper",e)}vn("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const u9=e=>{const{square:t,elevation:r,variant:i,classes:o}=e,s={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${r}`]};return On(s,i9,o)},o9=mt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(Rn(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),IE=A.forwardRef(function(t,r){var y;const i=kn({props:t,name:"MuiPaper"}),o=Po(),{className:s,component:c="div",elevation:d=1,square:h=!1,variant:p="elevation",...b}=i,E={...i,component:c,elevation:d,square:h,variant:p},T=u9(E);return pe.jsx(o9,{as:c,ownerState:E,className:tt(T.root,s),ref:r,...b,style:{...p==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[d],...o.vars&&{"--Paper-overlay":(y=o.vars.overlays)==null?void 0:y[d]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Io("#fff",n0(d))}, ${Io("#fff",n0(d))})`}},...b.style}})});function l9(e){return _n("MuiDrawer",e)}vn("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const DE=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},s9=e=>{const{classes:t,anchor:r,variant:i}=e,o={root:["root",`anchor${st(r)}`],docked:[(i==="permanent"||i==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${st(r)}`,i!=="temporary"&&`paperAnchorDocked${st(r)}`]};return On(o,l9,t)},c9=mt(WO,{name:"MuiDrawer",slot:"Root",overridesResolver:DE})(Rn(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),f9=mt("div",{shouldForwardProp:vE,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:DE})({flex:"0 0 auto"}),d9=mt(IE,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${st(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${st(r.anchor)}`]]}})(Rn(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),wE={left:"right",right:"left",top:"down",bottom:"up"};function h9(e){return["left","right"].includes(e)}function p9({direction:e},t){return e==="rtl"&&h9(t)?wE[t]:t}const m9=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiDrawer"}),o=Po(),s=Bd(),c={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:d="left",BackdropProps:h,children:p,className:b,elevation:E=16,hideBackdrop:T=!1,ModalProps:{BackdropProps:y,...v}={},onClose:x,open:B=!1,PaperProps:O={},SlideProps:P,TransitionComponent:L,transitionDuration:M=c,variant:D="temporary",slots:N={},slotProps:z={},...q}=i,V=A.useRef(!1);A.useEffect(()=>{V.current=!0},[]);const _=p9({direction:s?"rtl":"ltr"},d),$={...i,anchor:d,elevation:E,open:B,variant:D,...q},ee=s9($),X={slots:{transition:L,...N},slotProps:{paper:O,transition:P,...z,backdrop:t9(z.backdrop||{...h,...y},{transitionDuration:M})}},[te,F]=en("root",{ref:r,elementType:c9,className:tt(ee.root,ee.modal,b),shouldForwardComponentProp:!0,ownerState:$,externalForwardedProps:{...X,...q,...v},additionalProps:{open:B,onClose:x,hideBackdrop:T,slots:{backdrop:X.slots.backdrop},slotProps:{backdrop:X.slotProps.backdrop}}}),[ie,Q]=en("paper",{elementType:d9,shouldForwardComponentProp:!0,className:tt(ee.paper,O.className),ownerState:$,externalForwardedProps:X,additionalProps:{elevation:D==="temporary"?E:0,square:!0}}),[he,C]=en("docked",{elementType:f9,ref:r,className:tt(ee.root,ee.docked,b),ownerState:$,externalForwardedProps:X,additionalProps:q}),[Z,fe]=en("transition",{elementType:a9,ownerState:$,externalForwardedProps:X,additionalProps:{in:B,direction:wE[_],timeout:M,appear:V.current}}),k=pe.jsx(ie,{...Q,children:p});if(D==="permanent")return pe.jsx(he,{...C,children:k});const be=pe.jsx(Z,{...fe,children:k});return D==="persistent"?pe.jsx(he,{...C,children:be}):pe.jsx(te,{...F,children:be})});class Xs{constructor(){Xl(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Xs}static use(){const t=Pb(Xs.create).current,[r,i]=A.useState(!1);return t.shouldMount=r,t.setShouldMount=i,A.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=b9(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...t)})}stop(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...t)})}pulsate(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...t)})}}function g9(){return Xs.use()}function b9(){let e,t;const r=new Promise((i,o)=>{e=i,t=o});return r.resolve=e,r.reject=t,r}function E9(e){const{className:t,classes:r,pulsate:i=!1,rippleX:o,rippleY:s,rippleSize:c,in:d,onExited:h,timeout:p}=e,[b,E]=A.useState(!1),T=tt(t,r.ripple,r.rippleVisible,i&&r.ripplePulsate),y={width:c,height:c,top:-(c/2)+s,left:-(c/2)+o},v=tt(r.child,b&&r.childLeaving,i&&r.childPulsate);return!d&&!b&&E(!0),A.useEffect(()=>{if(!d&&h!=null){const x=setTimeout(h,p);return()=>{clearTimeout(x)}}},[h,d,p]),pe.jsx("span",{className:T,style:y,children:pe.jsx("span",{className:v})})}const hr=vn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),s0=550,y9=80,T9=Ju`
|
|
119
119
|
0% {
|
|
120
120
|
transform: scale(0);
|
|
121
121
|
opacity: 0.1;
|
|
@@ -125,7 +125,7 @@ export default theme;`}function Qd(e={},...t){const{breakpoints:r,mixins:i={},sp
|
|
|
125
125
|
transform: scale(1);
|
|
126
126
|
opacity: 0.3;
|
|
127
127
|
}
|
|
128
|
-
`,
|
|
128
|
+
`,S9=Ju`
|
|
129
129
|
0% {
|
|
130
130
|
opacity: 1;
|
|
131
131
|
}
|
|
@@ -133,7 +133,7 @@ export default theme;`}function Qd(e={},...t){const{breakpoints:r,mixins:i={},sp
|
|
|
133
133
|
100% {
|
|
134
134
|
opacity: 0;
|
|
135
135
|
}
|
|
136
|
-
`,
|
|
136
|
+
`,C9=Ju`
|
|
137
137
|
0% {
|
|
138
138
|
transform: scale(1);
|
|
139
139
|
}
|
|
@@ -145,15 +145,15 @@ export default theme;`}function Qd(e={},...t){const{breakpoints:r,mixins:i={},sp
|
|
|
145
145
|
100% {
|
|
146
146
|
transform: scale(1);
|
|
147
147
|
}
|
|
148
|
-
`,
|
|
148
|
+
`,A9=mt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),x9=mt(E9,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
149
149
|
opacity: 0;
|
|
150
150
|
position: absolute;
|
|
151
151
|
|
|
152
152
|
&.${hr.rippleVisible} {
|
|
153
153
|
opacity: 0.3;
|
|
154
154
|
transform: scale(1);
|
|
155
|
-
animation-name: ${
|
|
156
|
-
animation-duration: ${
|
|
155
|
+
animation-name: ${T9};
|
|
156
|
+
animation-duration: ${s0}ms;
|
|
157
157
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
158
158
|
}
|
|
159
159
|
|
|
@@ -172,8 +172,8 @@ export default theme;`}function Qd(e={},...t){const{breakpoints:r,mixins:i={},sp
|
|
|
172
172
|
|
|
173
173
|
& .${hr.childLeaving} {
|
|
174
174
|
opacity: 0;
|
|
175
|
-
animation-name: ${
|
|
176
|
-
animation-duration: ${
|
|
175
|
+
animation-name: ${S9};
|
|
176
|
+
animation-duration: ${s0}ms;
|
|
177
177
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
178
178
|
}
|
|
179
179
|
|
|
@@ -182,18 +182,18 @@ export default theme;`}function Qd(e={},...t){const{breakpoints:r,mixins:i={},sp
|
|
|
182
182
|
/* @noflip */
|
|
183
183
|
left: 0px;
|
|
184
184
|
top: 0;
|
|
185
|
-
animation-name: ${
|
|
185
|
+
animation-name: ${C9};
|
|
186
186
|
animation-duration: 2500ms;
|
|
187
187
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
188
188
|
animation-iteration-count: infinite;
|
|
189
189
|
animation-delay: 200ms;
|
|
190
190
|
}
|
|
191
|
-
`,a9=A.forwardRef(function(t,r){const i=In({props:t,name:"MuiTouchRipple"}),{center:l=!1,classes:s={},className:c,...d}=i,[p,m]=A.useState([]),b=A.useRef(0),E=A.useRef(null);A.useEffect(()=>{E.current&&(E.current(),E.current=null)},[p]);const T=A.useRef(!1),y=v8(),R=A.useRef(null),x=A.useRef(null),U=A.useCallback(P=>{const{pulsate:k,rippleX:N,rippleY:Y,rippleSize:j,cb:G}=P;m(_=>[..._,he.jsx(r9,{classes:{ripple:tt(s.ripple,hr.ripple),rippleVisible:tt(s.rippleVisible,hr.rippleVisible),ripplePulsate:tt(s.ripplePulsate,hr.ripplePulsate),child:tt(s.child,hr.child),childLeaving:tt(s.childLeaving,hr.childLeaving),childPulsate:tt(s.childPulsate,hr.childPulsate)},timeout:r0,pulsate:k,rippleX:N,rippleY:Y,rippleSize:j},b.current)]),b.current+=1,E.current=G},[s]),D=A.useCallback((P={},k={},N=()=>{})=>{const{pulsate:Y=!1,center:j=l||k.pulsate,fakeElement:G=!1}=k;if((P==null?void 0:P.type)==="mousedown"&&T.current){T.current=!1;return}(P==null?void 0:P.type)==="touchstart"&&(T.current=!0);const _=G?null:x.current,z=_?_.getBoundingClientRect():{width:0,height:0,left:0,top:0};let $,Z,X;if(j||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)$=Math.round(z.width/2),Z=Math.round(z.height/2);else{const{clientX:te,clientY:H}=P.touches&&P.touches.length>0?P.touches[0]:P;$=Math.round(te-z.left),Z=Math.round(H-z.top)}if(j)X=Math.sqrt((2*z.width**2+z.height**2)/3),X%2===0&&(X+=1);else{const te=Math.max(Math.abs((_?_.clientWidth:0)-$),$)*2+2,H=Math.max(Math.abs((_?_.clientHeight:0)-Z),Z)*2+2;X=Math.sqrt(te**2+H**2)}P!=null&&P.touches?R.current===null&&(R.current=()=>{U({pulsate:Y,rippleX:$,rippleY:Z,rippleSize:X,cb:N})},y.start(ZO,()=>{R.current&&(R.current(),R.current=null)})):U({pulsate:Y,rippleX:$,rippleY:Z,rippleSize:X,cb:N})},[l,U,y]),q=A.useCallback(()=>{D({},{pulsate:!0})},[D]),M=A.useCallback((P,k)=>{if(y.clear(),(P==null?void 0:P.type)==="touchend"&&R.current){R.current(),R.current=null,y.start(0,()=>{M(P,k)});return}R.current=null,m(N=>N.length>0?N.slice(1):N),E.current=k},[y]);return A.useImperativeHandle(r,()=>({pulsate:q,start:D,stop:M}),[q,D,M]),he.jsx(n9,{className:tt(hr.root,s.root,c),ref:x,...d,children:he.jsx(t0,{component:null,exit:!0,children:p})})});function i9(e){return xn("MuiButtonBase",e)}const u9=vn("MuiButtonBase",["root","disabled","focusVisible"]),l9=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:i,classes:l}=e,c=On({root:["root",t&&"disabled",r&&"focusVisible"]},i9,l);return r&&i&&(c.root+=` ${i}`),c},o9=mt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${u9.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),a0=A.forwardRef(function(t,r){const i=In({props:t,name:"MuiButtonBase"}),{action:l,centerRipple:s=!1,children:c,className:d,component:p="button",disabled:m=!1,disableRipple:b=!1,disableTouchRipple:E=!1,focusRipple:T=!1,focusVisibleClassName:y,LinkComponent:R="a",onBlur:x,onClick:U,onContextMenu:D,onDragLeave:q,onFocus:M,onFocusVisible:P,onKeyDown:k,onKeyUp:N,onMouseDown:Y,onMouseLeave:j,onMouseUp:G,onTouchEnd:_,onTouchMove:z,onTouchStart:$,tabIndex:Z=0,TouchRippleProps:X,touchRippleRef:te,type:H,...Q}=i,ie=A.useRef(null),me=QO(),C=xr(me.ref,te),[J,fe]=A.useState(!1);m&&J&&fe(!1),A.useImperativeHandle(l,()=>({focusVisible:()=>{fe(!0),ie.current.focus()}}),[]);const O=me.shouldMount&&!b&&!m;A.useEffect(()=>{J&&T&&!b&&me.pulsate()},[b,T,J,me]);const be=Zr(me,"start",Y,E),Ne=Zr(me,"stop",D,E),Ee=Zr(me,"stop",q,E),Ke=Zr(me,"stop",G,E),Me=Zr(me,"stop",Ie=>{J&&Ie.preventDefault(),j&&j(Ie)},E),lt=Zr(me,"start",$,E),yt=Zr(me,"stop",_,E),Re=Zr(me,"stop",z,E),We=Zr(me,"stop",Ie=>{Rb(Ie.target)||fe(!1),x&&x(Ie)},!1),Oe=Hr(Ie=>{ie.current||(ie.current=Ie.currentTarget),Rb(Ie.target)&&(fe(!0),P&&P(Ie)),M&&M(Ie)}),Se=()=>{const Ie=ie.current;return p&&p!=="button"&&!(Ie.tagName==="A"&&Ie.href)},Fe=Hr(Ie=>{T&&!Ie.repeat&&J&&Ie.key===" "&&me.stop(Ie,()=>{me.start(Ie)}),Ie.target===Ie.currentTarget&&Se()&&Ie.key===" "&&Ie.preventDefault(),k&&k(Ie),Ie.target===Ie.currentTarget&&Se()&&Ie.key==="Enter"&&!m&&(Ie.preventDefault(),U&&U(Ie))}),Ve=Hr(Ie=>{T&&Ie.key===" "&&J&&!Ie.defaultPrevented&&me.stop(Ie,()=>{me.pulsate(Ie)}),N&&N(Ie),U&&Ie.target===Ie.currentTarget&&Se()&&Ie.key===" "&&!Ie.defaultPrevented&&U(Ie)});let ke=p;ke==="button"&&(Q.href||Q.to)&&(ke=R);const Le={};ke==="button"?(Le.type=H===void 0?"button":H,Le.disabled=m):(!Q.href&&!Q.to&&(Le.role="button"),m&&(Le["aria-disabled"]=m));const je=xr(r,ie),nt={...i,centerRipple:s,component:p,disabled:m,disableRipple:b,disableTouchRipple:E,focusRipple:T,tabIndex:Z,focusVisible:J},Et=l9(nt);return he.jsxs(o9,{as:ke,className:tt(Et.root,d),ownerState:nt,onBlur:We,onClick:U,onContextMenu:Ne,onFocus:Oe,onKeyDown:Fe,onKeyUp:Ve,onMouseDown:be,onMouseLeave:Me,onMouseUp:Ke,onDragLeave:Ee,onTouchEnd:yt,onTouchMove:Re,onTouchStart:lt,ref:je,tabIndex:m?-1:Z,type:H,...Le,...Q,children:[c,O?he.jsx(a9,{ref:C,center:s,...X}):null]})});function Zr(e,t,r,i=!1){return Hr(l=>(r&&r(l),i||e[t](l),!0))}function s9(e){return xn("MuiTab",e)}const pr=vn("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),c9=e=>{const{classes:t,textColor:r,fullWidth:i,wrapped:l,icon:s,label:c,selected:d,disabled:p}=e,m={root:["root",s&&c&&"labelIcon",`textColor${ct(r)}`,i&&"fullWidth",l&&"wrapped",d&&"selected",p&&"disabled"],icon:["iconWrapper","icon"]};return On(m,s9,t)},f9=mt(a0,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${ct(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${pr.iconWrapper}`]:t.iconWrapper},{[`& .${pr.icon}`]:t.icon}]}})(Rn(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="top",style:{[`& > .${pr.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="bottom",style:{[`& > .${pr.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="start",style:{[`& > .${pr.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="end",style:{[`& > .${pr.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${pr.selected}`]:{opacity:1},[`&.${pr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${pr.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${pr.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${pr.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${pr.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),d9=A.forwardRef(function(t,r){const i=In({props:t,name:"MuiTab"}),{className:l,disabled:s=!1,disableFocusRipple:c=!1,fullWidth:d,icon:p,iconPosition:m="top",indicator:b,label:E,onChange:T,onClick:y,onFocus:R,selected:x,selectionFollowsFocus:U,textColor:D="inherit",value:q,wrapped:M=!1,...P}=i,k={...i,disabled:s,disableFocusRipple:c,selected:x,icon:!!p,iconPosition:m,label:!!E,fullWidth:d,textColor:D,wrapped:M},N=c9(k),Y=p&&E&&A.isValidElement(p)?A.cloneElement(p,{className:tt(N.icon,p.props.className)}):p,j=_=>{!x&&T&&T(_,q),y&&y(_)},G=_=>{U&&!x&&T&&T(_,q),R&&R(_)};return he.jsxs(f9,{focusRipple:!c,className:tt(N.root,l),ref:r,role:"tab","aria-selected":x,disabled:s,onClick:j,onFocus:G,ownerState:k,tabIndex:x?0:-1,...P,children:[m==="top"||m==="start"?he.jsxs(A.Fragment,{children:[Y,E]}):he.jsxs(A.Fragment,{children:[E,Y]}),b]})});function h9(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function p9(e,t,r,i={},l=()=>{}){const{ease:s=h9,duration:c=300}=i;let d=null;const p=t[e];let m=!1;const b=()=>{m=!0},E=T=>{if(m){l(new Error("Animation cancelled"));return}d===null&&(d=T);const y=Math.min(1,(T-d)/c);if(t[e]=s(y)*(r-p)+p,y>=1){requestAnimationFrame(()=>{l(null)});return}requestAnimationFrame(E)};return p===r?(l(new Error("Element already at target position")),b):(requestAnimationFrame(E),b)}const m9={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function g9(e){const{onChange:t,...r}=e,i=A.useRef(),l=A.useRef(null),s=()=>{i.current=l.current.offsetHeight-l.current.clientHeight};return xa(()=>{const c=ys(()=>{const p=i.current;s(),p!==i.current&&t(i.current)}),d=Ur(l.current);return d.addEventListener("resize",c),()=>{c.clear(),d.removeEventListener("resize",c)}},[t]),A.useEffect(()=>{s(),t(i.current)},[t]),he.jsx("div",{style:m9,...r,ref:l})}const b9=oi(he.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),E9=oi(he.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function y9(e){return xn("MuiTabScrollButton",e)}const T9=vn("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),S9=e=>{const{classes:t,orientation:r,disabled:i}=e;return On({root:["root",r,i&&"disabled"]},y9,t)},C9=mt(a0,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${T9.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),A9=A.forwardRef(function(t,r){const i=In({props:t,name:"MuiTabScrollButton"}),{className:l,slots:s={},slotProps:c={},direction:d,orientation:p,disabled:m,...b}=i,E=Id(),T={isRtl:E,...i},y=S9(T),R=s.StartScrollButtonIcon??b9,x=s.EndScrollButtonIcon??E9,U=Ss({elementType:R,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:T}),D=Ss({elementType:x,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:T});return he.jsx(C9,{component:"div",className:tt(y.root,l),ref:r,role:null,ownerState:T,tabIndex:null,...b,style:{...b.style,...p==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${E?-90:90}deg)`}},children:d==="left"?he.jsx(R,{...U}):he.jsx(x,{...D})})});function _9(e){return xn("MuiTabs",e)}const i0=vn("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),AE=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,_E=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,qs=(e,t,r)=>{let i=!1,l=r(e,t);for(;l;){if(l===e.firstChild){if(i)return;i=!0}const s=l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||s)l=r(e,l);else{l.focus();return}}},x9=e=>{const{vertical:t,fixed:r,hideScrollbar:i,scrollableX:l,scrollableY:s,centered:c,scrollButtonsHideMobile:d,classes:p}=e;return On({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",i&&"hideScrollbar",l&&"scrollableX",s&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",c&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",d&&"scrollButtonsHideMobile"],scrollableX:[l&&"scrollableX"],hideScrollbar:[i&&"hideScrollbar"]},_9,p)},v9=mt("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${i0.scrollButtons}`]:t.scrollButtons},{[`& .${i0.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(Rn(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${i0.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),R9=mt("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),N9=mt("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.list,t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),O9=mt("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(Rn(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),I9=mt(g9)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),xE={},D9=A.forwardRef(function(t,r){const i=In({props:t,name:"MuiTabs"}),l=Ml(),s=Id(),{"aria-label":c,"aria-labelledby":d,action:p,centered:m=!1,children:b,className:E,component:T="div",allowScrollButtonsMobile:y=!1,indicatorColor:R="primary",onChange:x,orientation:U="horizontal",ScrollButtonComponent:D,scrollButtons:q="auto",selectionFollowsFocus:M,slots:P={},slotProps:k={},TabIndicatorProps:N={},TabScrollButtonProps:Y={},textColor:j="primary",value:G,variant:_="standard",visibleScrollbar:z=!1,...$}=i,Z=_==="scrollable",X=U==="vertical",te=X?"scrollTop":"scrollLeft",H=X?"top":"left",Q=X?"bottom":"right",ie=X?"clientHeight":"clientWidth",me=X?"height":"width",C={...i,component:T,allowScrollButtonsMobile:y,indicatorColor:R,orientation:U,vertical:X,scrollButtons:q,textColor:j,variant:_,visibleScrollbar:z,fixed:!Z,hideScrollbar:Z&&!z,scrollableX:Z&&!X,scrollableY:Z&&X,centered:m&&!Z,scrollButtonsHideMobile:!y},J=x9(C),fe=Ss({elementType:P.StartScrollButtonIcon,externalSlotProps:k.startScrollButtonIcon,ownerState:C}),O=Ss({elementType:P.EndScrollButtonIcon,externalSlotProps:k.endScrollButtonIcon,ownerState:C}),[be,Ne]=A.useState(!1),[Ee,Ke]=A.useState(xE),[Me,lt]=A.useState(!1),[yt,Re]=A.useState(!1),[We,Oe]=A.useState(!1),[Se,Fe]=A.useState({overflow:"hidden",scrollbarWidth:0}),Ve=new Map,ke=A.useRef(null),Le=A.useRef(null),je={slots:P,slotProps:{indicator:N,scrollButton:Y,...k}},nt=()=>{const _e=ke.current;let xe;if(_e){const qe=_e.getBoundingClientRect();xe={clientWidth:_e.clientWidth,scrollLeft:_e.scrollLeft,scrollTop:_e.scrollTop,scrollWidth:_e.scrollWidth,top:qe.top,bottom:qe.bottom,left:qe.left,right:qe.right}}let He;if(_e&&G!==!1){const qe=Le.current.children;if(qe.length>0){const Ct=qe[Ve.get(G)];He=Ct?Ct.getBoundingClientRect():null}}return{tabsMeta:xe,tabMeta:He}},Et=Hr(()=>{const{tabsMeta:_e,tabMeta:xe}=nt();let He=0,qe;X?(qe="top",xe&&_e&&(He=xe.top-_e.top+_e.scrollTop)):(qe=s?"right":"left",xe&&_e&&(He=(s?-1:1)*(xe[qe]-_e[qe]+_e.scrollLeft)));const Ct={[qe]:He,[me]:xe?xe[me]:0};if(typeof Ee[qe]!="number"||typeof Ee[me]!="number")Ke(Ct);else{const zn=Math.abs(Ee[qe]-Ct[qe]),ta=Math.abs(Ee[me]-Ct[me]);(zn>=1||ta>=1)&&Ke(Ct)}}),Ie=(_e,{animation:xe=!0}={})=>{xe?p9(te,ke.current,_e,{duration:l.transitions.duration.standard}):ke.current[te]=_e},nn=_e=>{let xe=ke.current[te];X?xe+=_e:xe+=_e*(s?-1:1),Ie(xe)},Pt=()=>{const _e=ke.current[ie];let xe=0;const He=Array.from(Le.current.children);for(let qe=0;qe<He.length;qe+=1){const Ct=He[qe];if(xe+Ct[ie]>_e){qe===0&&(xe=_e);break}xe+=Ct[ie]}return xe},Tt=()=>{nn(-1*Pt())},ae=()=>{nn(Pt())},[de,{onChange:Ce,...Ae}]=en("scrollbar",{className:tt(J.scrollableX,J.hideScrollbar),elementType:I9,shouldForwardComponentProp:!0,externalForwardedProps:je,ownerState:C}),we=A.useCallback(_e=>{Ce==null||Ce(_e),Fe({overflow:null,scrollbarWidth:_e})},[Ce]),[Ge,kt]=en("scrollButtons",{className:tt(J.scrollButtons,Y.className),elementType:A9,externalForwardedProps:je,ownerState:C,additionalProps:{orientation:U,slots:{StartScrollButtonIcon:P.startScrollButtonIcon||P.StartScrollButtonIcon,EndScrollButtonIcon:P.endScrollButtonIcon||P.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:fe,endScrollButtonIcon:O}}}),St=()=>{const _e={};_e.scrollbarSizeListener=Z?he.jsx(de,{...Ae,onChange:we}):null;const He=Z&&(q==="auto"&&(Me||yt)||q===!0);return _e.scrollButtonStart=He?he.jsx(Ge,{direction:s?"right":"left",onClick:Tt,disabled:!Me,...kt}):null,_e.scrollButtonEnd=He?he.jsx(Ge,{direction:s?"left":"right",onClick:ae,disabled:!yt,...kt}):null,_e},Zn=Hr(_e=>{const{tabsMeta:xe,tabMeta:He}=nt();if(!(!He||!xe)){if(He[H]<xe[H]){const qe=xe[te]+(He[H]-xe[H]);Ie(qe,{animation:_e})}else if(He[Q]>xe[Q]){const qe=xe[te]+(He[Q]-xe[Q]);Ie(qe,{animation:_e})}}}),fn=Hr(()=>{Z&&q!==!1&&Oe(!We)});A.useEffect(()=>{const _e=ys(()=>{ke.current&&Et()});let xe;const He=zn=>{zn.forEach(ta=>{ta.removedNodes.forEach(hi=>{xe==null||xe.unobserve(hi)}),ta.addedNodes.forEach(hi=>{xe==null||xe.observe(hi)})}),_e(),fn()},qe=Ur(ke.current);qe.addEventListener("resize",_e);let Ct;return typeof ResizeObserver<"u"&&(xe=new ResizeObserver(_e),Array.from(Le.current.children).forEach(zn=>{xe.observe(zn)})),typeof MutationObserver<"u"&&(Ct=new MutationObserver(He),Ct.observe(Le.current,{childList:!0})),()=>{_e.clear(),qe.removeEventListener("resize",_e),Ct==null||Ct.disconnect(),xe==null||xe.disconnect()}},[Et,fn]),A.useEffect(()=>{const _e=Array.from(Le.current.children),xe=_e.length;if(typeof IntersectionObserver<"u"&&xe>0&&Z&&q!==!1){const He=_e[0],qe=_e[xe-1],Ct={root:ke.current,threshold:.99},zn=na=>{lt(!na[0].isIntersecting)},ta=new IntersectionObserver(zn,Ct);ta.observe(He);const hi=na=>{Re(!na[0].isIntersecting)},Xl=new IntersectionObserver(hi,Ct);return Xl.observe(qe),()=>{ta.disconnect(),Xl.disconnect()}}},[Z,q,We,b==null?void 0:b.length]),A.useEffect(()=>{Ne(!0)},[]),A.useEffect(()=>{Et()}),A.useEffect(()=>{Zn(xE!==Ee)},[Zn,Ee]),A.useImperativeHandle(p,()=>({updateIndicator:Et,updateScrollButtons:fn}),[Et,fn]);const[rn,Hn]=en("indicator",{className:tt(J.indicator,N.className),elementType:O9,externalForwardedProps:je,ownerState:C,additionalProps:{style:Ee}}),Fn=he.jsx(rn,{...Hn});let di=0;const Ks=A.Children.map(b,_e=>{if(!A.isValidElement(_e))return null;const xe=_e.props.value===void 0?di:_e.props.value;Ve.set(xe,di);const He=xe===G;return di+=1,A.cloneElement(_e,{fullWidth:_==="fullWidth",indicator:He&&!be&&Fn,selected:He,selectionFollowsFocus:M,onChange:x,textColor:j,value:xe,...di===1&&G===!1&&!_e.props.tabIndex?{tabIndex:0}:{}})}),Vl=_e=>{if(_e.altKey||_e.shiftKey||_e.ctrlKey||_e.metaKey)return;const xe=Le.current,He=_a(xe).activeElement;if(He.getAttribute("role")!=="tab")return;let Ct=U==="horizontal"?"ArrowLeft":"ArrowUp",zn=U==="horizontal"?"ArrowRight":"ArrowDown";switch(U==="horizontal"&&s&&(Ct="ArrowRight",zn="ArrowLeft"),_e.key){case Ct:_e.preventDefault(),qs(xe,He,_E);break;case zn:_e.preventDefault(),qs(xe,He,AE);break;case"Home":_e.preventDefault(),qs(xe,null,AE);break;case"End":_e.preventDefault(),qs(xe,null,_E);break}},ea=St(),[F0,Ws]=en("root",{ref:r,className:tt(J.root,E),elementType:v9,externalForwardedProps:{...je,...$,component:T},ownerState:C}),[Zs,Gl]=en("scroller",{ref:ke,className:J.scroller,elementType:R9,externalForwardedProps:je,ownerState:C,additionalProps:{style:{overflow:Se.overflow,[X?`margin${s?"Left":"Right"}`:"marginBottom"]:z?void 0:-Se.scrollbarWidth}}}),[$l,Js]=en("list",{ref:Le,className:tt(J.list,J.flexContainer),elementType:N9,externalForwardedProps:je,ownerState:C,getSlotProps:_e=>({..._e,onKeyDown:xe=>{var He;Vl(xe),(He=_e.onKeyDown)==null||He.call(_e,xe)}})});return he.jsxs(F0,{...Ws,children:[ea.scrollButtonStart,ea.scrollbarSizeListener,he.jsxs(Zs,{...Gl,children:[he.jsx($l,{"aria-label":c,"aria-labelledby":d,"aria-orientation":U==="vertical"?"vertical":null,role:"tablist",...Js,children:Ks}),be&&Fn]}),ea.scrollButtonEnd]})}),vE=A.createContext(null);function k9(){const[e,t]=A.useState(null);return A.useEffect(()=>{t(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function L9(e){const{children:t,value:r}=e,i=k9(),l=A.useMemo(()=>({idPrefix:i,value:r}),[i,r]);return he.jsx(vE.Provider,{value:l,children:t})}function RE(){return A.useContext(vE)}function NE(e,t){const{idPrefix:r}=e;return r===null?null:`${e.idPrefix}-P-${t}`}function OE(e,t){const{idPrefix:r}=e;return r===null?null:`${e.idPrefix}-T-${t}`}const M9=["children"],w9=A.forwardRef(function(t,r){const{children:i}=t,l=Us(t,M9),s=RE();if(s===null)throw new TypeError("No TabContext provided");const c=A.Children.map(i,d=>A.isValidElement(d)?A.cloneElement(d,{"aria-controls":NE(s,d.props.value),id:OE(s,d.props.value)}):null);return he.jsx(D9,Za({},l,{ref:r,value:s.value,children:c}))});function B9({props:e,name:t}){return iN({props:e,name:t,defaultTheme:Ps,themeId:zr})}function u0({theme:e,...t}){const r=zr in e?e[zr]:void 0;return he.jsx(Zb,{...t,themeId:r?zr:void 0,theme:r||e})}const Vs={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:P9}=_N({themeId:zr,theme:()=>Bs({cssVariables:!0}),colorSchemeStorageKey:Vs.colorSchemeStorageKey,modeStorageKey:Vs.modeStorageKey,defaultColorScheme:{light:Vs.defaultLightColorScheme,dark:Vs.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:sE(e.palette,e.typography)};return t.unstable_sx=function(i){return ai({sx:i,theme:this})},t}}),U9=P9;function H9({theme:e,...t}){if(typeof e=="function")return he.jsx(u0,{theme:e,...t});const r=zr in e?e[zr]:e;return"colorSchemes"in r?he.jsx(U9,{theme:e,...t}):"vars"in r?he.jsx(u0,{theme:e,...t}):he.jsx(u0,{theme:{...e,vars:null},...t})}const tn={text:{roman:400,medium:500,bold:700}},ut=e=>`${e/16}rem`,IE={fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeightLight:tn.text.roman,fontWeightRegular:tn.text.roman,fontWeightMedium:tn.text.medium,fontWeightBold:tn.text.bold,h1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.bold,fontStyle:"normal",fontSize:ut(52),lineHeight:ut(60)},h2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.bold,fontStyle:"normal",fontSize:ut(34),lineHeight:ut(40)},h3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.bold,fontStyle:"normal",fontSize:ut(28),lineHeight:ut(36)},h4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.bold,fontStyle:"normal",fontSize:ut(24),lineHeight:ut(30)},h5:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:ut(18),lineHeight:ut(22)},subtitle1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:ut(16),lineHeight:ut(20)},subtitle2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:ut(14),lineHeight:ut(18)},subtitle3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:ut(12),lineHeight:ut(16)},subtitle4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:ut(10),lineHeight:ut(14)},body1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.roman,fontStyle:"normal",fontSize:ut(16),lineHeight:ut(20)},body2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.roman,fontStyle:"normal",fontSize:ut(14),lineHeight:ut(18)},body3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.roman,fontStyle:"normal",fontSize:ut(12),lineHeight:ut(16)},body4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.roman,fontStyle:"normal",fontSize:ut(10),lineHeight:ut(14)},buttonLarge:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:ut(16),lineHeight:ut(20)},button:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:ut(14),lineHeight:ut(18),textTransform:"none"},buttonSmall:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:ut(12),lineHeight:ut(16)}},F9={defaultProps:{variantMapping:{h1:"span",h2:"span",h3:"span",h4:"span",h5:"span",body1:"p",body2:"p",body3:"p",body4:"p",subtitle1:"p",subtitle2:"p",subtitle3:"p",subtitle4:"p",button:"span"}}},{typography:g7}=Bs({typography:IE,custom:{}}),z9=Pe.a({color:"inherit",textDecoration:"none"}),Y9=A.forwardRef(function({Component:t,...r},i){const l=vC(),s=t??l.custom.LinkAdapter;return A.createElement(z9,{as:s,ref:i,...r},r.children)}),j9={variant:!0,size:!0,edge:!0,startIcon:!0,endIcon:!0,responsive:!0,color:!0},DE=e=>!j9[e],l0={variant:"primary",size:"medium",edge:"rounded",responsive:!1},kE={small:1,medium:1,large:2},LE={small:"small",medium:"small",large:"medium"},ME=(e,t,r)=>{const i=t?kE[e]:0;return[{boxSizing:"border-box",borderWidth:kE[e]},e==="large"&&{padding:`${14-i}px 24px`,...r.typography.buttonLarge},e==="medium"&&{padding:`${11-i}px 16px`,...r.typography.button},e==="small"&&{padding:`${8-i}px 12px`,...r.typography.buttonSmall}]},wE=e=>{const{size:t,variant:r,edge:i,theme:l,color:s,responsive:c}={...l0,...e},{colors:d}=l.custom,p=r==="secondary"||r==="bordered";return wi([{color:l.palette.text.primary,textAlign:"center",display:"inline-flex",justifyContent:"center",alignItems:"center",transition:`background ${l.transitions.duration.short}ms`,cursor:"pointer",":disabled":{cursor:"default"},minWidth:"100px"},...ME(t,p,l),c&&{[l.breakpoints.down("sm")]:ME(LE[t],p,l)},r==="primary"&&{backgroundColor:d.mitRed,color:d.white,border:"none",boxShadow:"0px 2px 4px 0px rgba(37, 38, 43, 0.10), 0px 3px 8px 0px rgba(37, 38, 43, 0.12)",":hover:not(:disabled)":{backgroundColor:d.red,boxShadow:"none"},":disabled":{backgroundColor:d.silverGray,boxShadow:"none"}},r==="secondary"&&{color:d.red,backgroundColor:"transparent",borderColor:"currentcolor",borderStyle:"solid",":hover:not(:disabled)":{backgroundColor:"rgba(255, 20, 35, 0.06)"},":disabled":{color:d.silverGray}},r==="text"&&{backgroundColor:"transparent",borderStyle:"none",color:d.darkGray2,":hover:not(:disabled)":{backgroundColor:"rgba(64, 70, 76, 0.06)"},":disabled":{color:d.silverGray}},r==="bordered"&&{backgroundColor:d.white,color:d.silverGrayDark,border:`1px solid ${d.silverGrayLight}`,":hover:not(:disabled)":{backgroundColor:d.lightGray1,color:d.darkGray2},":disabled":{backgroundColor:d.lightGray2,border:`1px solid ${d.lightGray2}`,color:d.silverGrayDark}},r==="tertiary"&&{color:d.darkGray2,border:"none",backgroundColor:d.lightGray2,":hover:not(:disabled)":{backgroundColor:d.white},":disabled":{backgroundColor:d.lightGray2,color:d.silverGrayLight}},i==="rounded"&&{borderRadius:"4px"},i==="circular"&&{borderRadius:"100vh"},s==="secondary"&&{color:l.custom.colors.silverGray,borderColor:l.custom.colors.silverGray,":hover:not(:disabled)":{backgroundColor:l.custom.colors.lightGray1}}])},BE=Pe("button",{shouldForwardProp:DE})(wE),PE=Pe(Y9,{shouldForwardProp:DE})(wE),UE=Pe.span(({size:e,side:t})=>[{height:"1em",display:"flex",alignItems:"center"},t==="start"&&{marginLeft:"-4px",marginRight:"8px"},t==="end"&&{marginLeft:"8px",marginRight:"-4px"},{"& svg, & .MuiSvgIcon-root":{width:"1em",height:"1em",fontSize:ut({small:16,medium:20,large:24}[e])}}]),HE=e=>{const{children:t,size:r=l0.size}=e;return A.createElement(A.Fragment,null,e.startIcon?A.createElement(UE,{size:r,side:"start"},e.startIcon):null,t,e.endIcon?A.createElement(UE,{size:r,side:"end"},e.endIcon):null)},FE=A.forwardRef(({children:e,...t},r)=>A.createElement(BE,{ref:r,type:"button",...t},A.createElement(HE,{...t},e)));FE.displayName="Button";const zE=A.forwardRef(({children:e,Component:t,...r},i)=>A.createElement(PE,{Component:t,ref:i,...r},A.createElement(HE,{...r},e)));zE.displayName="ButtonLink";const q9={variant:"scrollable",allowScrollButtonsMobile:!0,scrollButtons:"auto"},V9=Pe(({styleVariant:e,...t})=>A.createElement(w9,{...q9,...t}))(({theme:e,styleVariant:t})=>({minHeight:"unset",".MuiTabs-indicator":{display:"none"},".MuiTabs-flexContainer":{gap:"8px",alignItems:"center"},".MuiTabs-scroller":{display:"flex"},...t==="chat"&&{flexGrow:1,".MuiTabs-flexContainer":{flexGrow:1,gap:"8px",alignItems:"center",backgroundColor:e.custom.colors.lightGray1,padding:"4px",borderRadius:"8px"},button:{flexGrow:1,backgroundColor:"transparent",...e.typography.body2},"button[aria-selected=true], button[aria-selected=true]:hover":{backgroundColor:e.custom.colors.darkGray1,color:e.custom.colors.white,cursor:"default"}}})),YE=({theme:e})=>wi({minWidth:"auto",":focus-visible":{outlineOffset:"-1px"},'&[aria-selected="true"]':{backgroundColor:e.custom.colors.white,borderColor:e.custom.colors.darkGray2}}),G9=Pe(FE)(YE),$9=Pe(zE)(YE),jE={variant:"tertiary",size:"small"},qE=A.forwardRef((e,t)=>{const{className:r,...i}=e;return A.createElement(G9,{...jE,...i,ref:t})});qE.displayName="TabButtonInner";const X9=A.forwardRef((e,t)=>{const{className:r,...i}=e;return A.createElement($9,{...jE,...i,ref:t},e.children)});X9.displayName="TabLinkInner";const o0=e=>A.createElement(d9,{...e,component:qE});function Q9(e){return typeof e.main=="string"}function K9(e,t=[]){if(!Q9(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function si(e=[]){return([,t])=>t&&K9(t,e)}function W9(e){return xn("MuiTypography",e)}vn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Z9={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},J9=sO(),eI=e=>{const{align:t,gutterBottom:r,noWrap:i,paragraph:l,variant:s,classes:c}=e,d={root:["root",s,e.align!=="inherit"&&`align${ct(t)}`,r&&"gutterBottom",i&&"noWrap",l&&"paragraph"]};return On(d,W9,c)},tI=mt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${ct(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(Rn(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([r,i])=>r!=="inherit"&&i&&typeof i=="object").map(([r,i])=>({props:{variant:r},style:i})),...Object.entries(e.palette).filter(si()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${ct(r)}`},style:{color:(e.vars||e).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),VE={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ci=A.forwardRef(function(t,r){const{color:i,...l}=In({props:t,name:"MuiTypography"}),s=!Z9[i],c=J9({...l,...s&&{color:i}}),{align:d="inherit",className:p,component:m,gutterBottom:b=!1,noWrap:E=!1,paragraph:T=!1,variant:y="body1",variantMapping:R=VE,...x}=c,U={...c,align:d,color:i,className:p,component:m,gutterBottom:b,noWrap:E,paragraph:T,variant:y,variantMapping:R},D=m||(T?"p":R[y]||VE[y])||"span",q=eI(U);return he.jsx(tI,{as:D,ref:r,className:tt(q.root,p),...x,ownerState:U,style:{...d!=="inherit"&&{"--Typography-textAlign":d},...x.style}})});function nI(e){return xn("MuiTabPanel",e)}vn("MuiTabPanel",["root","hidden"]);const rI=["children","className","value","keepMounted"],aI=e=>{const{classes:t,hidden:r}=e;return On({root:["root",r&&"hidden"]},nI,t)},iI=mt("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(3)})),uI=A.forwardRef(function(t,r){const i=B9({props:t,name:"MuiTabPanel"}),{children:l,className:s,value:c,keepMounted:d=!1}=i,p=Us(i,rI),m=Za({},i),b=aI(m),E=RE();if(E===null)throw new TypeError("No TabContext provided");const T=NE(E,c),y=OE(E,c);return he.jsx(iI,Za({"aria-labelledby":y,className:tt(b.root,s),hidden:c!==E.value,id:T,ref:r,role:"tabpanel",ownerState:m},p,{children:(d||c===E.value)&&l}))});var s0={exports:{}};/*!
|
|
191
|
+
`,_9=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:c,...d}=i,[h,p]=A.useState([]),b=A.useRef(0),E=A.useRef(null);A.useEffect(()=>{E.current&&(E.current(),E.current=null)},[h]);const T=A.useRef(!1),y=$8(),v=A.useRef(null),x=A.useRef(null),B=A.useCallback(M=>{const{pulsate:D,rippleX:N,rippleY:z,rippleSize:q,cb:V}=M;p(_=>[..._,pe.jsx(x9,{classes:{ripple:tt(s.ripple,hr.ripple),rippleVisible:tt(s.rippleVisible,hr.rippleVisible),ripplePulsate:tt(s.ripplePulsate,hr.ripplePulsate),child:tt(s.child,hr.child),childLeaving:tt(s.childLeaving,hr.childLeaving),childPulsate:tt(s.childPulsate,hr.childPulsate)},timeout:s0,pulsate:D,rippleX:N,rippleY:z,rippleSize:q},b.current)]),b.current+=1,E.current=V},[s]),O=A.useCallback((M={},D={},N=()=>{})=>{const{pulsate:z=!1,center:q=o||D.pulsate,fakeElement:V=!1}=D;if((M==null?void 0:M.type)==="mousedown"&&T.current){T.current=!1;return}(M==null?void 0:M.type)==="touchstart"&&(T.current=!0);const _=V?null:x.current,j=_?_.getBoundingClientRect():{width:0,height:0,left:0,top:0};let $,ee,X;if(q||M===void 0||M.clientX===0&&M.clientY===0||!M.clientX&&!M.touches)$=Math.round(j.width/2),ee=Math.round(j.height/2);else{const{clientX:te,clientY:F}=M.touches&&M.touches.length>0?M.touches[0]:M;$=Math.round(te-j.left),ee=Math.round(F-j.top)}if(q)X=Math.sqrt((2*j.width**2+j.height**2)/3),X%2===0&&(X+=1);else{const te=Math.max(Math.abs((_?_.clientWidth:0)-$),$)*2+2,F=Math.max(Math.abs((_?_.clientHeight:0)-ee),ee)*2+2;X=Math.sqrt(te**2+F**2)}M!=null&&M.touches?v.current===null&&(v.current=()=>{B({pulsate:z,rippleX:$,rippleY:ee,rippleSize:X,cb:N})},y.start(y9,()=>{v.current&&(v.current(),v.current=null)})):B({pulsate:z,rippleX:$,rippleY:ee,rippleSize:X,cb:N})},[o,B,y]),P=A.useCallback(()=>{O({},{pulsate:!0})},[O]),L=A.useCallback((M,D)=>{if(y.clear(),(M==null?void 0:M.type)==="touchend"&&v.current){v.current(),v.current=null,y.start(0,()=>{L(M,D)});return}v.current=null,p(N=>N.length>0?N.slice(1):N),E.current=D},[y]);return A.useImperativeHandle(r,()=>({pulsate:P,start:O,stop:L}),[P,O,L]),pe.jsx(A9,{className:tt(hr.root,s.root,c),ref:x,...d,children:pe.jsx(o0,{component:null,exit:!0,children:h})})});function v9(e){return _n("MuiButtonBase",e)}const R9=vn("MuiButtonBase",["root","disabled","focusVisible"]),N9=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:i,classes:o}=e,c=On({root:["root",t&&"disabled",r&&"focusVisible"]},v9,o);return r&&i&&(c.root+=` ${i}`),c},O9=mt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${R9.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),c0=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:c,className:d,component:h="button",disabled:p=!1,disableRipple:b=!1,disableTouchRipple:E=!1,focusRipple:T=!1,focusVisibleClassName:y,LinkComponent:v="a",onBlur:x,onClick:B,onContextMenu:O,onDragLeave:P,onFocus:L,onFocusVisible:M,onKeyDown:D,onKeyUp:N,onMouseDown:z,onMouseLeave:q,onMouseUp:V,onTouchEnd:_,onTouchMove:j,onTouchStart:$,tabIndex:ee=0,TouchRippleProps:X,touchRippleRef:te,type:F,...ie}=i,Q=A.useRef(null),he=g9(),C=_r(he.ref,te),[Z,fe]=A.useState(!1);p&&Z&&fe(!1),A.useImperativeHandle(o,()=>({focusVisible:()=>{fe(!0),Q.current.focus()}}),[]);const k=he.shouldMount&&!b&&!p;A.useEffect(()=>{Z&&T&&!b&&he.pulsate()},[b,T,Z,he]);const be=Zr(he,"start",z,E),Re=Zr(he,"stop",O,E),Te=Zr(he,"stop",P,E),Xe=Zr(he,"stop",V,E),Be=Zr(he,"stop",Ie=>{Z&&Ie.preventDefault(),q&&q(Ie)},E),ut=Zr(he,"start",$,E),Ct=Zr(he,"stop",_,E),gt=Zr(he,"stop",j,E),Ne=Zr(he,"stop",Ie=>{Ub(Ie.target)||fe(!1),x&&x(Ie)},!1),Oe=Hr(Ie=>{Q.current||(Q.current=Ie.currentTarget),Ub(Ie.target)&&(fe(!0),M&&M(Ie)),L&&L(Ie)}),Ce=()=>{const Ie=Q.current;return h&&h!=="button"&&!(Ie.tagName==="A"&&Ie.href)},we=Hr(Ie=>{T&&!Ie.repeat&&Z&&Ie.key===" "&&he.stop(Ie,()=>{he.start(Ie)}),Ie.target===Ie.currentTarget&&Ce()&&Ie.key===" "&&Ie.preventDefault(),D&&D(Ie),Ie.target===Ie.currentTarget&&Ce()&&Ie.key==="Enter"&&!p&&(Ie.preventDefault(),B&&B(Ie))}),ke=Hr(Ie=>{T&&Ie.key===" "&&Z&&!Ie.defaultPrevented&&he.stop(Ie,()=>{he.pulsate(Ie)}),N&&N(Ie),B&&Ie.target===Ie.currentTarget&&Ce()&&Ie.key===" "&&!Ie.defaultPrevented&&B(Ie)});let Me=h;Me==="button"&&(ie.href||ie.to)&&(Me=v);const Fe={};Me==="button"?(Fe.type=F===void 0?"button":F,Fe.disabled=p):(!ie.href&&!ie.to&&(Fe.role="button"),p&&(Fe["aria-disabled"]=p));const qe=_r(r,Q),$e={...i,centerRipple:s,component:h,disabled:p,disableRipple:b,disableTouchRipple:E,focusRipple:T,tabIndex:ee,focusVisible:Z},ct=N9($e);return pe.jsxs(O9,{as:Me,className:tt(ct.root,d),ownerState:$e,onBlur:Ne,onClick:B,onContextMenu:Re,onFocus:Oe,onKeyDown:we,onKeyUp:ke,onMouseDown:be,onMouseLeave:Be,onMouseUp:Xe,onDragLeave:Te,onTouchEnd:Ct,onTouchMove:gt,onTouchStart:ut,ref:qe,tabIndex:p?-1:ee,type:F,...Fe,...ie,children:[c,k?pe.jsx(_9,{ref:C,center:s,...X}):null]})});function Zr(e,t,r,i=!1){return Hr(o=>(r&&r(o),i||e[t](o),!0))}function k9(e){return _n("MuiTab",e)}const pr=vn("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),I9=e=>{const{classes:t,textColor:r,fullWidth:i,wrapped:o,icon:s,label:c,selected:d,disabled:h}=e,p={root:["root",s&&c&&"labelIcon",`textColor${st(r)}`,i&&"fullWidth",o&&"wrapped",d&&"selected",h&&"disabled"],icon:["iconWrapper","icon"]};return On(p,k9,t)},D9=mt(c0,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${st(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${pr.iconWrapper}`]:t.iconWrapper},{[`& .${pr.icon}`]:t.icon}]}})(Rn(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="top",style:{[`& > .${pr.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="bottom",style:{[`& > .${pr.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="start",style:{[`& > .${pr.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="end",style:{[`& > .${pr.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${pr.selected}`]:{opacity:1},[`&.${pr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${pr.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${pr.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${pr.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${pr.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),w9=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiTab"}),{className:o,disabled:s=!1,disableFocusRipple:c=!1,fullWidth:d,icon:h,iconPosition:p="top",indicator:b,label:E,onChange:T,onClick:y,onFocus:v,selected:x,selectionFollowsFocus:B,textColor:O="inherit",value:P,wrapped:L=!1,...M}=i,D={...i,disabled:s,disableFocusRipple:c,selected:x,icon:!!h,iconPosition:p,label:!!E,fullWidth:d,textColor:O,wrapped:L},N=I9(D),z=h&&E&&A.isValidElement(h)?A.cloneElement(h,{className:tt(N.icon,h.props.className)}):h,q=_=>{!x&&T&&T(_,P),y&&y(_)},V=_=>{B&&!x&&T&&T(_,P),v&&v(_)};return pe.jsxs(D9,{focusRipple:!c,className:tt(N.root,o),ref:r,role:"tab","aria-selected":x,disabled:s,onClick:q,onFocus:V,ownerState:D,tabIndex:x?0:-1,...M,children:[p==="top"||p==="start"?pe.jsxs(A.Fragment,{children:[z,E]}):pe.jsxs(A.Fragment,{children:[E,z]}),b]})});function L9(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function M9(e,t,r,i={},o=()=>{}){const{ease:s=L9,duration:c=300}=i;let d=null;const h=t[e];let p=!1;const b=()=>{p=!0},E=T=>{if(p){o(new Error("Animation cancelled"));return}d===null&&(d=T);const y=Math.min(1,(T-d)/c);if(t[e]=s(y)*(r-h)+h,y>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(E)};return h===r?(o(new Error("Element already at target position")),b):(requestAnimationFrame(E),b)}const B9={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function P9(e){const{onChange:t,...r}=e,i=A.useRef(),o=A.useRef(null),s=()=>{i.current=o.current.offsetHeight-o.current.clientHeight};return _a(()=>{const c=xs(()=>{const h=i.current;s(),h!==i.current&&t(i.current)}),d=Ur(o.current);return d.addEventListener("resize",c),()=>{c.clear(),d.removeEventListener("resize",c)}},[t]),A.useEffect(()=>{s(),t(i.current)},[t]),pe.jsx("div",{style:B9,...r,ref:o})}const U9=si(pe.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),H9=si(pe.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function F9(e){return _n("MuiTabScrollButton",e)}const z9=vn("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Y9=e=>{const{classes:t,orientation:r,disabled:i}=e;return On({root:["root",r,i&&"disabled"]},F9,t)},j9=mt(c0,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${z9.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),q9=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:c={},direction:d,orientation:h,disabled:p,...b}=i,E=Bd(),T={isRtl:E,...i},y=Y9(T),v=s.StartScrollButtonIcon??U9,x=s.EndScrollButtonIcon??H9,B=vs({elementType:v,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:T}),O=vs({elementType:x,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:T});return pe.jsx(j9,{component:"div",className:tt(y.root,o),ref:r,role:null,ownerState:T,tabIndex:null,...b,style:{...b.style,...h==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${E?-90:90}deg)`}},children:d==="left"?pe.jsx(v,{...B}):pe.jsx(x,{...O})})});function V9(e){return _n("MuiTabs",e)}const f0=vn("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),LE=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,ME=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Qs=(e,t,r)=>{let i=!1,o=r(e,t);for(;o;){if(o===e.firstChild){if(i)return;i=!0}const s=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||s)o=r(e,o);else{o.focus();return}}},G9=e=>{const{vertical:t,fixed:r,hideScrollbar:i,scrollableX:o,scrollableY:s,centered:c,scrollButtonsHideMobile:d,classes:h}=e;return On({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",i&&"hideScrollbar",o&&"scrollableX",s&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",c&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",d&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[i&&"hideScrollbar"]},V9,h)},$9=mt("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${f0.scrollButtons}`]:t.scrollButtons},{[`& .${f0.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(Rn(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${f0.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),X9=mt("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),Q9=mt("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.list,t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),K9=mt("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(Rn(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),W9=mt(P9)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),BE={},Z9=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiTabs"}),o=Po(),s=Bd(),{"aria-label":c,"aria-labelledby":d,action:h,centered:p=!1,children:b,className:E,component:T="div",allowScrollButtonsMobile:y=!1,indicatorColor:v="primary",onChange:x,orientation:B="horizontal",ScrollButtonComponent:O,scrollButtons:P="auto",selectionFollowsFocus:L,slots:M={},slotProps:D={},TabIndicatorProps:N={},TabScrollButtonProps:z={},textColor:q="primary",value:V,variant:_="standard",visibleScrollbar:j=!1,...$}=i,ee=_==="scrollable",X=B==="vertical",te=X?"scrollTop":"scrollLeft",F=X?"top":"left",ie=X?"bottom":"right",Q=X?"clientHeight":"clientWidth",he=X?"height":"width",C={...i,component:T,allowScrollButtonsMobile:y,indicatorColor:v,orientation:B,vertical:X,scrollButtons:P,textColor:q,variant:_,visibleScrollbar:j,fixed:!ee,hideScrollbar:ee&&!j,scrollableX:ee&&!X,scrollableY:ee&&X,centered:p&&!ee,scrollButtonsHideMobile:!y},Z=G9(C),fe=vs({elementType:M.StartScrollButtonIcon,externalSlotProps:D.startScrollButtonIcon,ownerState:C}),k=vs({elementType:M.EndScrollButtonIcon,externalSlotProps:D.endScrollButtonIcon,ownerState:C}),[be,Re]=A.useState(!1),[Te,Xe]=A.useState(BE),[Be,ut]=A.useState(!1),[Ct,gt]=A.useState(!1),[Ne,Oe]=A.useState(!1),[Ce,we]=A.useState({overflow:"hidden",scrollbarWidth:0}),ke=new Map,Me=A.useRef(null),Fe=A.useRef(null),qe={slots:M,slotProps:{indicator:N,scrollButton:z,...D}},$e=()=>{const xe=Me.current;let _e;if(xe){const Ge=xe.getBoundingClientRect();_e={clientWidth:xe.clientWidth,scrollLeft:xe.scrollLeft,scrollTop:xe.scrollTop,scrollWidth:xe.scrollWidth,top:Ge.top,bottom:Ge.bottom,left:Ge.left,right:Ge.right}}let Ye;if(xe&&V!==!1){const Ge=Fe.current.children;if(Ge.length>0){const xt=Ge[ke.get(V)];Ye=xt?xt.getBoundingClientRect():null}}return{tabsMeta:_e,tabMeta:Ye}},ct=Hr(()=>{const{tabsMeta:xe,tabMeta:_e}=$e();let Ye=0,Ge;X?(Ge="top",_e&&xe&&(Ye=_e.top-xe.top+xe.scrollTop)):(Ge=s?"right":"left",_e&&xe&&(Ye=(s?-1:1)*(_e[Ge]-xe[Ge]+xe.scrollLeft)));const xt={[Ge]:Ye,[he]:_e?_e[he]:0};if(typeof Te[Ge]!="number"||typeof Te[he]!="number")Xe(xt);else{const zn=Math.abs(Te[Ge]-xt[Ge]),ta=Math.abs(Te[he]-xt[he]);(zn>=1||ta>=1)&&Xe(xt)}}),Ie=(xe,{animation:_e=!0}={})=>{_e?M9(te,Me.current,xe,{duration:o.transitions.duration.standard}):Me.current[te]=xe},un=xe=>{let _e=Me.current[te];X?_e+=xe:_e+=xe*(s?-1:1),Ie(_e)},Ft=()=>{const xe=Me.current[Q];let _e=0;const Ye=Array.from(Fe.current.children);for(let Ge=0;Ge<Ye.length;Ge+=1){const xt=Ye[Ge];if(_e+xt[Q]>xe){Ge===0&&(_e=xe);break}_e+=xt[Q]}return _e},Bt=()=>{un(-1*Ft())},ae=()=>{un(Ft())},[de,{onChange:Se,...Ae}]=en("scrollbar",{className:tt(Z.scrollableX,Z.hideScrollbar),elementType:W9,shouldForwardComponentProp:!0,externalForwardedProps:qe,ownerState:C}),Pe=A.useCallback(xe=>{Se==null||Se(xe),we({overflow:null,scrollbarWidth:xe})},[Se]),[Ve,Tt]=en("scrollButtons",{className:tt(Z.scrollButtons,z.className),elementType:q9,externalForwardedProps:qe,ownerState:C,additionalProps:{orientation:B,slots:{StartScrollButtonIcon:M.startScrollButtonIcon||M.StartScrollButtonIcon,EndScrollButtonIcon:M.endScrollButtonIcon||M.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:fe,endScrollButtonIcon:k}}}),At=()=>{const xe={};xe.scrollbarSizeListener=ee?pe.jsx(de,{...Ae,onChange:Pe}):null;const Ye=ee&&(P==="auto"&&(Be||Ct)||P===!0);return xe.scrollButtonStart=Ye?pe.jsx(Ve,{direction:s?"right":"left",onClick:Bt,disabled:!Be,...Tt}):null,xe.scrollButtonEnd=Ye?pe.jsx(Ve,{direction:s?"left":"right",onClick:ae,disabled:!Ct,...Tt}):null,xe},Zn=Hr(xe=>{const{tabsMeta:_e,tabMeta:Ye}=$e();if(!(!Ye||!_e)){if(Ye[F]<_e[F]){const Ge=_e[te]+(Ye[F]-_e[F]);Ie(Ge,{animation:xe})}else if(Ye[ie]>_e[ie]){const Ge=_e[te]+(Ye[ie]-_e[ie]);Ie(Ge,{animation:xe})}}}),fn=Hr(()=>{ee&&P!==!1&&Oe(!Ne)});A.useEffect(()=>{const xe=xs(()=>{Me.current&&ct()});let _e;const Ye=zn=>{zn.forEach(ta=>{ta.removedNodes.forEach(mi=>{_e==null||_e.unobserve(mi)}),ta.addedNodes.forEach(mi=>{_e==null||_e.observe(mi)})}),xe(),fn()},Ge=Ur(Me.current);Ge.addEventListener("resize",xe);let xt;return typeof ResizeObserver<"u"&&(_e=new ResizeObserver(xe),Array.from(Fe.current.children).forEach(zn=>{_e.observe(zn)})),typeof MutationObserver<"u"&&(xt=new MutationObserver(Ye),xt.observe(Fe.current,{childList:!0})),()=>{xe.clear(),Ge.removeEventListener("resize",xe),xt==null||xt.disconnect(),_e==null||_e.disconnect()}},[ct,fn]),A.useEffect(()=>{const xe=Array.from(Fe.current.children),_e=xe.length;if(typeof IntersectionObserver<"u"&&_e>0&&ee&&P!==!1){const Ye=xe[0],Ge=xe[_e-1],xt={root:Me.current,threshold:.99},zn=na=>{ut(!na[0].isIntersecting)},ta=new IntersectionObserver(zn,xt);ta.observe(Ye);const mi=na=>{gt(!na[0].isIntersecting)},el=new IntersectionObserver(mi,xt);return el.observe(Ge),()=>{ta.disconnect(),el.disconnect()}}},[ee,P,Ne,b==null?void 0:b.length]),A.useEffect(()=>{Re(!0)},[]),A.useEffect(()=>{ct()}),A.useEffect(()=>{Zn(BE!==Te)},[Zn,Te]),A.useImperativeHandle(h,()=>({updateIndicator:ct,updateScrollButtons:fn}),[ct,fn]);const[nn,Hn]=en("indicator",{className:tt(Z.indicator,N.className),elementType:K9,externalForwardedProps:qe,ownerState:C,additionalProps:{style:Te}}),Fn=pe.jsx(nn,{...Hn});let pi=0;const tc=A.Children.map(b,xe=>{if(!A.isValidElement(xe))return null;const _e=xe.props.value===void 0?pi:xe.props.value;ke.set(_e,pi);const Ye=_e===V;return pi+=1,A.cloneElement(xe,{fullWidth:_==="fullWidth",indicator:Ye&&!be&&Fn,selected:Ye,selectionFollowsFocus:L,onChange:x,textColor:q,value:_e,...pi===1&&V===!1&&!xe.props.tabIndex?{tabIndex:0}:{}})}),Wo=xe=>{if(xe.altKey||xe.shiftKey||xe.ctrlKey||xe.metaKey)return;const _e=Fe.current,Ye=xa(_e).activeElement;if(Ye.getAttribute("role")!=="tab")return;let xt=B==="horizontal"?"ArrowLeft":"ArrowUp",zn=B==="horizontal"?"ArrowRight":"ArrowDown";switch(B==="horizontal"&&s&&(xt="ArrowRight",zn="ArrowLeft"),xe.key){case xt:xe.preventDefault(),Qs(_e,Ye,ME);break;case zn:xe.preventDefault(),Qs(_e,Ye,LE);break;case"Home":xe.preventDefault(),Qs(_e,null,LE);break;case"End":xe.preventDefault(),Qs(_e,null,ME);break}},ea=At(),[K0,nc]=en("root",{ref:r,className:tt(Z.root,E),elementType:$9,externalForwardedProps:{...qe,...$,component:T},ownerState:C}),[rc,Zo]=en("scroller",{ref:Me,className:Z.scroller,elementType:X9,externalForwardedProps:qe,ownerState:C,additionalProps:{style:{overflow:Ce.overflow,[X?`margin${s?"Left":"Right"}`:"marginBottom"]:j?void 0:-Ce.scrollbarWidth}}}),[Jo,ac]=en("list",{ref:Fe,className:tt(Z.list,Z.flexContainer),elementType:Q9,externalForwardedProps:qe,ownerState:C,getSlotProps:xe=>({...xe,onKeyDown:_e=>{var Ye;Wo(_e),(Ye=xe.onKeyDown)==null||Ye.call(xe,_e)}})});return pe.jsxs(K0,{...nc,children:[ea.scrollButtonStart,ea.scrollbarSizeListener,pe.jsxs(rc,{...Zo,children:[pe.jsx(Jo,{"aria-label":c,"aria-labelledby":d,"aria-orientation":B==="vertical"?"vertical":null,role:"tablist",...ac,children:tc}),be&&Fn]}),ea.scrollButtonEnd]})}),PE=A.createContext(null);function J9(){const[e,t]=A.useState(null);return A.useEffect(()=>{t(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function ek(e){const{children:t,value:r}=e,i=J9(),o=A.useMemo(()=>({idPrefix:i,value:r}),[i,r]);return pe.jsx(PE.Provider,{value:o,children:t})}function UE(){return A.useContext(PE)}function HE(e,t){const{idPrefix:r}=e;return r===null?null:`${e.idPrefix}-P-${t}`}function FE(e,t){const{idPrefix:r}=e;return r===null?null:`${e.idPrefix}-T-${t}`}const tk=["children"],nk=A.forwardRef(function(t,r){const{children:i}=t,o=js(t,tk),s=UE();if(s===null)throw new TypeError("No TabContext provided");const c=A.Children.map(i,d=>A.isValidElement(d)?A.cloneElement(d,{"aria-controls":HE(s,d.props.value),id:FE(s,d.props.value)}):null);return pe.jsx(Z9,Ja({},o,{ref:r,value:s.value,children:c}))});function rk({props:e,name:t}){return vN({props:e,name:t,defaultTheme:Ys,themeId:zr})}function d0({theme:e,...t}){const r=zr in e?e[zr]:void 0;return pe.jsx(sE,{...t,themeId:r?zr:void 0,theme:r||e})}const Ks={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:ak}=VN({themeId:zr,theme:()=>zs({cssVariables:!0}),colorSchemeStorageKey:Ks.colorSchemeStorageKey,modeStorageKey:Ks.modeStorageKey,defaultColorScheme:{light:Ks.defaultLightColorScheme,dark:Ks.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:TE(e.palette,e.typography)};return t.unstable_sx=function(i){return ii({sx:i,theme:this})},t}}),ik=ak;function uk({theme:e,...t}){if(typeof e=="function")return pe.jsx(d0,{theme:e,...t});const r=zr in e?e[zr]:e;return"colorSchemes"in r?pe.jsx(ik,{theme:e,...t}):"vars"in r?pe.jsx(d0,{theme:e,...t}):pe.jsx(d0,{theme:{...e,vars:null},...t})}const tn={text:{roman:400,medium:500,bold:700}},it=e=>`${e/16}rem`,zE={fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeightLight:tn.text.roman,fontWeightRegular:tn.text.roman,fontWeightMedium:tn.text.medium,fontWeightBold:tn.text.bold,h1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.bold,fontStyle:"normal",fontSize:it(52),lineHeight:it(60)},h2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.bold,fontStyle:"normal",fontSize:it(34),lineHeight:it(40)},h3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.bold,fontStyle:"normal",fontSize:it(28),lineHeight:it(36)},h4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.bold,fontStyle:"normal",fontSize:it(24),lineHeight:it(30)},h5:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:it(18),lineHeight:it(22)},subtitle1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:it(16),lineHeight:it(20)},subtitle2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:it(14),lineHeight:it(18)},subtitle3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:it(12),lineHeight:it(16)},subtitle4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:it(10),lineHeight:it(14)},body1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.roman,fontStyle:"normal",fontSize:it(16),lineHeight:it(20)},body2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.roman,fontStyle:"normal",fontSize:it(14),lineHeight:it(18)},body3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.roman,fontStyle:"normal",fontSize:it(12),lineHeight:it(16)},body4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.roman,fontStyle:"normal",fontSize:it(10),lineHeight:it(14)},buttonLarge:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:it(16),lineHeight:it(20)},button:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:it(14),lineHeight:it(18),textTransform:"none"},buttonSmall:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:it(12),lineHeight:it(16)}},ok={defaultProps:{variantMapping:{h1:"span",h2:"span",h3:"span",h4:"span",h5:"span",body1:"p",body2:"p",body3:"p",body4:"p",subtitle1:"p",subtitle2:"p",subtitle3:"p",subtitle4:"p",button:"span"}}},{typography:bB}=zs({typography:zE,custom:{}}),lk=He.a({color:"inherit",textDecoration:"none"}),sk=A.forwardRef(function({Component:t,...r},i){const o=QC(),s=t??o.custom.LinkAdapter;return A.createElement(lk,{as:s,ref:i,...r},r.children)}),ck={variant:!0,size:!0,edge:!0,startIcon:!0,endIcon:!0,responsive:!0,color:!0},YE=e=>!ck[e],h0={variant:"primary",size:"medium",edge:"rounded",responsive:!1},jE={small:1,medium:1,large:2},qE={small:"small",medium:"small",large:"medium"},VE=(e,t,r)=>{const i=t?jE[e]:0;return[{boxSizing:"border-box",borderWidth:jE[e]},e==="large"&&{padding:`${14-i}px 24px`,...r.typography.buttonLarge},e==="medium"&&{padding:`${11-i}px 16px`,...r.typography.button},e==="small"&&{padding:`${8-i}px 12px`,...r.typography.buttonSmall}]},GE=e=>{const{size:t,variant:r,edge:i,theme:o,color:s,responsive:c}={...h0,...e},{colors:d}=o.custom,h=r==="secondary"||r==="bordered";return Pi([{color:o.palette.text.primary,textAlign:"center",display:"inline-flex",justifyContent:"center",alignItems:"center",transition:`background ${o.transitions.duration.short}ms`,cursor:"pointer",":disabled":{cursor:"default"},minWidth:"100px"},...VE(t,h,o),c&&{[o.breakpoints.down("sm")]:VE(qE[t],h,o)},r==="primary"&&{backgroundColor:d.mitRed,color:d.white,border:"none",boxShadow:"0px 2px 4px 0px rgba(37, 38, 43, 0.10), 0px 3px 8px 0px rgba(37, 38, 43, 0.12)",":hover:not(:disabled)":{backgroundColor:d.red,boxShadow:"none"},":disabled":{backgroundColor:d.silverGray,boxShadow:"none"}},r==="secondary"&&{color:d.red,backgroundColor:"transparent",borderColor:"currentcolor",borderStyle:"solid",":hover:not(:disabled)":{backgroundColor:"rgba(255, 20, 35, 0.06)"},":disabled":{color:d.silverGray}},r==="text"&&{backgroundColor:"transparent",borderStyle:"none",color:d.darkGray2,":hover:not(:disabled)":{backgroundColor:"rgba(64, 70, 76, 0.06)"},":disabled":{color:d.silverGray}},r==="bordered"&&{backgroundColor:d.white,color:d.silverGrayDark,border:`1px solid ${d.silverGrayLight}`,":hover:not(:disabled)":{backgroundColor:d.lightGray1,color:d.darkGray2},":disabled":{backgroundColor:d.lightGray2,border:`1px solid ${d.lightGray2}`,color:d.silverGrayDark}},r==="tertiary"&&{color:d.darkGray2,border:"none",backgroundColor:d.lightGray2,":hover:not(:disabled)":{backgroundColor:d.white},":disabled":{backgroundColor:d.lightGray2,color:d.silverGrayLight}},i==="rounded"&&{borderRadius:"4px"},i==="circular"&&{borderRadius:"100vh"},s==="secondary"&&{color:o.custom.colors.silverGray,borderColor:o.custom.colors.silverGray,":hover:not(:disabled)":{backgroundColor:o.custom.colors.lightGray1}}])},$E=He("button",{shouldForwardProp:YE})(GE),XE=He(sk,{shouldForwardProp:YE})(GE),QE=He.span(({size:e,side:t})=>[{height:"1em",display:"flex",alignItems:"center"},t==="start"&&{marginLeft:"-4px",marginRight:"8px"},t==="end"&&{marginLeft:"8px",marginRight:"-4px"},{"& svg, & .MuiSvgIcon-root":{width:"1em",height:"1em",fontSize:it({small:16,medium:20,large:24}[e])}}]),KE=e=>{const{children:t,size:r=h0.size}=e;return A.createElement(A.Fragment,null,e.startIcon?A.createElement(QE,{size:r,side:"start"},e.startIcon):null,t,e.endIcon?A.createElement(QE,{size:r,side:"end"},e.endIcon):null)},WE=A.forwardRef(({children:e,...t},r)=>A.createElement($E,{ref:r,type:"button",...t},A.createElement(KE,{...t},e)));WE.displayName="Button";const ZE=A.forwardRef(({children:e,Component:t,...r},i)=>A.createElement(XE,{Component:t,ref:i,...r},A.createElement(KE,{...r},e)));ZE.displayName="ButtonLink";const fk={variant:"scrollable",allowScrollButtonsMobile:!0,scrollButtons:"auto"},dk=He(({styleVariant:e,...t})=>A.createElement(nk,{...fk,...t}))(({theme:e,styleVariant:t})=>({minHeight:"unset",".MuiTabs-indicator":{display:"none"},".MuiTabs-flexContainer":{gap:"8px",alignItems:"center"},".MuiTabs-scroller":{display:"flex"},...t==="chat"&&{flexGrow:1,".MuiTabs-flexContainer":{flexGrow:1,gap:"8px",alignItems:"center",backgroundColor:e.custom.colors.lightGray1,padding:"4px",borderRadius:"8px"},button:{flexGrow:1,backgroundColor:"transparent",...e.typography.body2},"button[aria-selected=true], button[aria-selected=true]:hover":{backgroundColor:e.custom.colors.darkGray1,color:e.custom.colors.white,cursor:"default"}}})),JE=({theme:e})=>Pi({minWidth:"auto",":focus-visible":{outlineOffset:"-1px"},'&[aria-selected="true"]':{backgroundColor:e.custom.colors.white,borderColor:e.custom.colors.darkGray2}}),hk=He(WE)(JE),pk=He(ZE)(JE),e2={variant:"tertiary",size:"small"},t2=A.forwardRef((e,t)=>{const{className:r,...i}=e;return A.createElement(hk,{...e2,...i,ref:t})});t2.displayName="TabButtonInner";const mk=A.forwardRef((e,t)=>{const{className:r,...i}=e;return A.createElement(pk,{...e2,...i,ref:t},e.children)});mk.displayName="TabLinkInner";const p0=e=>A.createElement(w9,{...e,component:t2});function gk(e){return typeof e.main=="string"}function bk(e,t=[]){if(!gk(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function ci(e=[]){return([,t])=>t&&bk(t,e)}function Ek(e){return _n("MuiTypography",e)}vn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const yk={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Tk=kO(),Sk=e=>{const{align:t,gutterBottom:r,noWrap:i,paragraph:o,variant:s,classes:c}=e,d={root:["root",s,e.align!=="inherit"&&`align${st(t)}`,r&&"gutterBottom",i&&"noWrap",o&&"paragraph"]};return On(d,Ek,c)},Ck=mt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${st(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(Rn(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([r,i])=>r!=="inherit"&&i&&typeof i=="object").map(([r,i])=>({props:{variant:r},style:i})),...Object.entries(e.palette).filter(ci()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${st(r)}`},style:{color:(e.vars||e).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),n2={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},fi=A.forwardRef(function(t,r){const{color:i,...o}=kn({props:t,name:"MuiTypography"}),s=!yk[i],c=Tk({...o,...s&&{color:i}}),{align:d="inherit",className:h,component:p,gutterBottom:b=!1,noWrap:E=!1,paragraph:T=!1,variant:y="body1",variantMapping:v=n2,...x}=c,B={...c,align:d,color:i,className:h,component:p,gutterBottom:b,noWrap:E,paragraph:T,variant:y,variantMapping:v},O=p||(T?"p":v[y]||n2[y])||"span",P=Sk(B);return pe.jsx(Ck,{as:O,ref:r,className:tt(P.root,h),...x,ownerState:B,style:{...d!=="inherit"&&{"--Typography-textAlign":d},...x.style}})});function Ak(e){return _n("MuiTabPanel",e)}vn("MuiTabPanel",["root","hidden"]);const xk=["children","className","value","keepMounted"],_k=e=>{const{classes:t,hidden:r}=e;return On({root:["root",r&&"hidden"]},Ak,t)},vk=mt("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(3)})),Rk=A.forwardRef(function(t,r){const i=rk({props:t,name:"MuiTabPanel"}),{children:o,className:s,value:c,keepMounted:d=!1}=i,h=js(i,xk),p=Ja({},i),b=_k(p),E=UE();if(E===null)throw new TypeError("No TabContext provided");const T=HE(E,c),y=FE(E,c);return pe.jsx(vk,Ja({"aria-labelledby":y,className:tt(b.root,s),hidden:c!==E.value,id:T,ref:r,role:"tabpanel",ownerState:p},h,{children:(d||c===E.value)&&o}))});var m0={exports:{}};/*!
|
|
192
192
|
Copyright (c) 2018 Jed Watson.
|
|
193
193
|
Licensed under the MIT License (MIT), see
|
|
194
194
|
http://jedwatson.github.io/classnames
|
|
195
|
-
*/var
|
|
196
|
-
`&&(P.value+=" ");const Y=N.boxSizing,j=Gs(N.paddingBottom)+Gs(N.paddingTop),G=Gs(N.borderBottomWidth)+Gs(N.borderTopWidth),_=P.scrollHeight;P.value="x";const z=P.scrollHeight;let $=_;s&&($=Math.max(Number(s)*z,$)),l&&($=Math.min(Number(l)*z,$)),$=Math.max($,z);const Z=$+(Y==="border-box"?j+G:0),X=Math.abs($-_)<=1;return{outerHeightStyle:Z,overflowing:X}},[l,s,t.placeholder]),x=Hr(()=>{const M=b.current,P=R();if(!M||!P||$E(P))return!1;const k=P.outerHeightStyle;return T.current!=null&&T.current!==k}),U=A.useCallback(()=>{const M=b.current,P=R();if(!M||!P||$E(P))return;const k=P.outerHeightStyle;T.current!==k&&(T.current=k,M.style.height=`${k}px`),M.style.overflow=P.overflowing?"hidden":""},[R]),D=A.useRef(-1);xa(()=>{const M=ys(U),P=b==null?void 0:b.current;if(!P)return;const k=Ur(P);k.addEventListener("resize",M);let N;return typeof ResizeObserver<"u"&&(N=new ResizeObserver(()=>{x()&&(N.unobserve(P),cancelAnimationFrame(D.current),U(),D.current=requestAnimationFrame(()=>{N.observe(P)}))}),N.observe(P)),()=>{M.clear(),cancelAnimationFrame(D.current),k.removeEventListener("resize",M),N&&N.disconnect()}},[R,U,x]),xa(()=>{U()});const q=M=>{m||U(),i&&i(M)};return he.jsxs(A.Fragment,{children:[he.jsx("textarea",{value:d,onChange:q,ref:E,rows:s,style:c,...p}),he.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...sI.shadow,...c,paddingTop:0,paddingBottom:0}})]})});function XE(e){return typeof e=="string"}function dI({props:e,states:t,muiFormControl:r}){return t.reduce((i,l)=>(i[l]=e[l],r&&typeof e[l]>"u"&&(i[l]=r[l]),i),{})}const QE=A.createContext(void 0);function hI(){return A.useContext(QE)}function KE(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function pI(e,t=!1){return e&&(KE(e.value)&&e.value!==""||t&&KE(e.defaultValue)&&e.defaultValue!=="")}function mI(e){return xn("MuiInputBase",e)}const c0=vn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var WE;const gI=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${ct(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},bI=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},EI=e=>{const{classes:t,color:r,disabled:i,error:l,endAdornment:s,focused:c,formControl:d,fullWidth:p,hiddenLabel:m,multiline:b,readOnly:E,size:T,startAdornment:y,type:R}=e,x={root:["root",`color${ct(r)}`,i&&"disabled",l&&"error",p&&"fullWidth",c&&"focused",d&&"formControl",T&&T!=="medium"&&`size${ct(T)}`,b&&"multiline",y&&"adornedStart",s&&"adornedEnd",m&&"hiddenLabel",E&&"readOnly"],input:["input",i&&"disabled",R==="search"&&"inputTypeSearch",b&&"inputMultiline",T==="small"&&"inputSizeSmall",m&&"inputHiddenLabel",y&&"inputAdornedStart",s&&"inputAdornedEnd",E&&"readOnly"]};return On(x,mI,t)},yI=mt("div",{name:"MuiInputBase",slot:"Root",overridesResolver:gI})(Rn(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${c0.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),TI=mt("input",{name:"MuiInputBase",slot:"Input",overridesResolver:bI})(Rn(({theme:e})=>{const t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},i={opacity:"0 !important"},l=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${c0.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":l,"&:focus::-moz-placeholder":l,"&:focus::-ms-input-placeholder":l},[`&.${c0.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),ZE=oO({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),SI=A.forwardRef(function(t,r){const i=In({props:t,name:"MuiInputBase"}),{"aria-describedby":l,autoComplete:s,autoFocus:c,className:d,color:p,components:m={},componentsProps:b={},defaultValue:E,disabled:T,disableInjectingGlobalStyles:y,endAdornment:R,error:x,fullWidth:U=!1,id:D,inputComponent:q="input",inputProps:M={},inputRef:P,margin:k,maxRows:N,minRows:Y,multiline:j=!1,name:G,onBlur:_,onChange:z,onClick:$,onFocus:Z,onKeyDown:X,onKeyUp:te,placeholder:H,readOnly:Q,renderSuffix:ie,rows:me,size:C,slotProps:J={},slots:fe={},startAdornment:O,type:be="text",value:Ne,...Ee}=i,Ke=M.value!=null?M.value:Ne,{current:Me}=A.useRef(Ke!=null),lt=A.useRef(),yt=A.useCallback(Ge=>{},[]),Re=xr(lt,P,M.ref,yt),[We,Oe]=A.useState(!1),Se=hI(),Fe=dI({props:i,muiFormControl:Se,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Fe.focused=Se?Se.focused:We,A.useEffect(()=>{!Se&&T&&We&&(Oe(!1),_&&_())},[Se,T,We,_]);const Ve=Se&&Se.onFilled,ke=Se&&Se.onEmpty,Le=A.useCallback(Ge=>{pI(Ge)?Ve&&Ve():ke&&ke()},[Ve,ke]);xa(()=>{Me&&Le({value:Ke})},[Ke,Le,Me]);const je=Ge=>{Z&&Z(Ge),M.onFocus&&M.onFocus(Ge),Se&&Se.onFocus?Se.onFocus(Ge):Oe(!0)},nt=Ge=>{_&&_(Ge),M.onBlur&&M.onBlur(Ge),Se&&Se.onBlur?Se.onBlur(Ge):Oe(!1)},Et=(Ge,...kt)=>{if(!Me){const St=Ge.target||lt.current;if(St==null)throw new Error(Aa(1));Le({value:St.value})}M.onChange&&M.onChange(Ge,...kt),z&&z(Ge,...kt)};A.useEffect(()=>{Le(lt.current)},[]);const Ie=Ge=>{lt.current&&Ge.currentTarget===Ge.target&<.current.focus(),$&&$(Ge)};let nn=q,Pt=M;j&&nn==="input"&&(me?Pt={type:void 0,minRows:me,maxRows:me,...Pt}:Pt={type:void 0,maxRows:N,minRows:Y,...Pt},nn=fI);const Tt=Ge=>{Le(Ge.animationName==="mui-auto-fill-cancel"?lt.current:{value:"x"})};A.useEffect(()=>{Se&&Se.setAdornedStart(!!O)},[Se,O]);const ae={...i,color:Fe.color||"primary",disabled:Fe.disabled,endAdornment:R,error:Fe.error,focused:Fe.focused,formControl:Se,fullWidth:U,hiddenLabel:Fe.hiddenLabel,multiline:j,size:Fe.size,startAdornment:O,type:be},de=EI(ae),Ce=fe.root||m.Root||yI,Ae=J.root||b.root||{},we=fe.input||m.Input||TI;return Pt={...Pt,...J.input??b.input},he.jsxs(A.Fragment,{children:[!y&&typeof ZE=="function"&&(WE||(WE=he.jsx(ZE,{}))),he.jsxs(Ce,{...Ae,ref:r,onClick:Ie,...Ee,...!XE(Ce)&&{ownerState:{...ae,...Ae.ownerState}},className:tt(de.root,Ae.className,d,Q&&"MuiInputBase-readOnly"),children:[O,he.jsx(QE.Provider,{value:null,children:he.jsx(we,{"aria-invalid":Fe.error,"aria-describedby":l,autoComplete:s,autoFocus:c,defaultValue:E,disabled:Fe.disabled,id:D,onAnimationStart:Tt,name:G,placeholder:H,readOnly:Q,required:Fe.required,rows:me,value:Ke,onKeyDown:X,onKeyUp:te,type:be,...Pt,...!XE(we)&&{as:nn,ownerState:{...ae,...Pt.ownerState}},ref:Re,className:tt(de.input,Pt.className,Q&&"MuiInputBase-readOnly"),onBlur:nt,onChange:Et,onFocus:je})}),R,ie?ie({...Fe,startAdornment:O}):null]})]})}),CI={size:"medium"},AI={small:"small",medium:"small",large:"medium",chat:"chat",hero:"large"},JE=({size:e,theme:t,multiline:r})=>wi([(e==="small"||e==="medium")&&{...t.typography.body2},(e==="large"||e==="chat"||e==="hero")&&{".remixicon":{width:"24px",height:"24px"},...t.typography.body1},e==="medium"&&{paddingLeft:"12px",paddingRight:"12px"},e==="small"&&!r&&{height:"32px"},e==="medium"&&!r&&{height:"40px"},e==="large"&&!r&&{height:"48px"},e==="chat"&&!r&&{height:"56px"},e==="hero"&&!r&&{height:"72px"},e==="small"&&{padding:"0 8px",".Mit-AdornmentButton":{width:"32px",".remixicon":{width:"16px",height:"16px"}}},e==="medium"&&{padding:"0 12px",".Mit-AdornmentButton":{width:"40px",".remixicon":{width:"20px",height:"20px"}}},e==="large"&&{padding:"0 16px",".Mit-AdornmentButton":{width:"48px"}},e==="chat"&&{padding:"0 16px",borderRadius:"8px",borderColor:t.custom.colors.silverGrayLight,backgroundColor:t.custom.colors.white,".Mit-AdornmentButton":{padding:"0 16px"}},e==="hero"&&{padding:"0 24px",".Mit-AdornmentButton":{width:"72px"}}]),_I=e=>({backgroundColor:"white",color:e.custom.colors.darkGray2,borderColor:e.custom.colors.silverGrayLight,borderWidth:"1px",borderStyle:"solid",borderRadius:"4px",overflow:"hidden","&.Mui-disabled":{backgroundColor:e.custom.colors.lightGray1},"&:hover:not(.Mui-disabled):not(.Mui-focused)":{borderColor:e.custom.colors.darkGray2},"&.Mui-focused":{borderColor:"transparent",outline:"2px solid currentcolor",outlineOffset:"-2px"},"&.Mui-error":{borderColor:e.custom.colors.red,outlineColor:e.custom.colors.red},"& input::placeholder, textarea::placeholder":{color:e.custom.colors.silverGrayDark,opacity:1},"& input:placeholder-shown, textarea:placeholder-shown":{textOverflow:"ellipsis"},"& textarea":{paddingTop:"8px",paddingBottom:"8px"},"&.MuiInputBase-adornedStart":{paddingLeft:"0",input:{paddingLeft:"8px"}},"&.MuiInputBase-adornedEnd":{paddingRight:"0",input:{paddingRight:"8px"}}}),xI=Object.keys({responsive:!0}),e2=Pe(SI,{shouldForwardProp:e=>!xI.includes(e)})(({theme:e,size:t=CI.size,multiline:r,responsive:i})=>[_I(e),JE({size:t,theme:e,multiline:r}),i&&{[e.breakpoints.down("sm")]:JE({size:AI[t],theme:e,multiline:r})}]),vI=Pe.button(({theme:e,disabled:t})=>({...e.typography.button,display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",border:"none",background:"transparent",transition:`background ${e.transitions.duration.short}ms`,cursor:t?"default":"pointer",":disabled":{cursor:"default",svg:{fill:e.custom.colors.silverGray}},":hover":{background:t?"inherit":"rgba(0, 0, 0, 0.06)"},color:e.custom.colors.silverGray,".MuiInputBase-root:hover &":{color:"inherit"},".MuiInputBase-root.Mui-focused &":{color:"inherit"},".MuiInputBase-root.Mui-disabled &":{color:"inherit"},height:"100%"})),RI=e=>e.preventDefault(),f0=({className:e,...t})=>A.createElement(vI,{onMouseDown:RI,className:Bl("Mit-AdornmentButton",e),...t}),NI=(...e)=>t=>{e.forEach(r=>{typeof r=="function"?r(t):r&&(r.current=t)})},t2=e=>e.scrollHeight-e.clientHeight-e.scrollTop,OI=e=>{e.scrollTop=e.scrollHeight},II=Pe.div({overflow:"auto"}),DI=A.forwardRef(function({children:t,threshold:r=2,className:i},l){const s=A.useRef(null),[c,d]=A.useState(t),p=A.useRef(null);return A.useLayoutEffect(()=>{s.current&&(p.current=t2(s.current)<r,d(t))},[t,r]),A.useLayoutEffect(()=>{if(!s.current)return;const m=t2(s.current)<r;p.current&&!m&&(OI(s.current),p.current=null)},[c,r]),A.createElement(II,{className:i,ref:NI(s,l)},c)}),n2=Pe.span({clipPath:"inset(100%)",clip:"rect(1px, 1px, 1px, 1px)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),kI={loadingMessages:[{delay:1500,text:"Loading"},{delay:4e3,text:"Still loading"}]},LI=({message:e,isLoading:t,loadingMessages:r=kI.loadingMessages})=>{var c;const[i,l]=A.useState(-1);A.useEffect(()=>{l(-1)},[t,r]),A.useEffect(()=>{const d=r[i+1];if(!t||!d)return()=>{};const p=setTimeout(()=>{l(i+1)},d.delay);return()=>{clearTimeout(p)}},[t,i,r]);const s=(c=r[i])==null?void 0:c.text;return A.createElement(n2,{"aria-atomic":"true","aria-live":"polite"},t?s:e)};function MI(e){return xn("MuiAlert",e)}const r2=vn("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function wI(e){return xn("MuiCircularProgress",e)}vn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ra=44,d0=Wu`
|
|
195
|
+
*/var r2;function Nk(){return r2||(r2=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",c=0;c<arguments.length;c++){var d=arguments[c];d&&(s=o(s,i(d)))}return s}function i(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var c="";for(var d in s)t.call(s,d)&&s[d]&&(c=o(c,d));return c}function o(s,c){return c?s?s+" "+c:s+c:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(m0)),m0.exports}var Ok=Nk();const Ho=or(Ok);function Ws(e){return parseInt(e,10)||0}const kk={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Ik(e){for(const t in e)return!1;return!0}function a2(e){return Ik(e)||e.outerHeightStyle===0&&!e.overflowing}const Dk=A.forwardRef(function(t,r){const{onChange:i,maxRows:o,minRows:s=1,style:c,value:d,...h}=t,{current:p}=A.useRef(d!=null),b=A.useRef(null),E=_r(r,b),T=A.useRef(null),y=A.useRef(null),v=A.useCallback(()=>{const L=b.current,M=y.current;if(!L||!M)return;const N=Ur(L).getComputedStyle(L);if(N.width==="0px")return{outerHeightStyle:0,overflowing:!1};M.style.width=N.width,M.value=L.value||t.placeholder||"x",M.value.slice(-1)===`
|
|
196
|
+
`&&(M.value+=" ");const z=N.boxSizing,q=Ws(N.paddingBottom)+Ws(N.paddingTop),V=Ws(N.borderBottomWidth)+Ws(N.borderTopWidth),_=M.scrollHeight;M.value="x";const j=M.scrollHeight;let $=_;s&&($=Math.max(Number(s)*j,$)),o&&($=Math.min(Number(o)*j,$)),$=Math.max($,j);const ee=$+(z==="border-box"?q+V:0),X=Math.abs($-_)<=1;return{outerHeightStyle:ee,overflowing:X}},[o,s,t.placeholder]),x=Hr(()=>{const L=b.current,M=v();if(!L||!M||a2(M))return!1;const D=M.outerHeightStyle;return T.current!=null&&T.current!==D}),B=A.useCallback(()=>{const L=b.current,M=v();if(!L||!M||a2(M))return;const D=M.outerHeightStyle;T.current!==D&&(T.current=D,L.style.height=`${D}px`),L.style.overflow=M.overflowing?"hidden":""},[v]),O=A.useRef(-1);_a(()=>{const L=xs(B),M=b==null?void 0:b.current;if(!M)return;const D=Ur(M);D.addEventListener("resize",L);let N;return typeof ResizeObserver<"u"&&(N=new ResizeObserver(()=>{x()&&(N.unobserve(M),cancelAnimationFrame(O.current),B(),O.current=requestAnimationFrame(()=>{N.observe(M)}))}),N.observe(M)),()=>{L.clear(),cancelAnimationFrame(O.current),D.removeEventListener("resize",L),N&&N.disconnect()}},[v,B,x]),_a(()=>{B()});const P=L=>{p||B(),i&&i(L)};return pe.jsxs(A.Fragment,{children:[pe.jsx("textarea",{value:d,onChange:P,ref:E,rows:s,style:c,...h}),pe.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...kk.shadow,...c,paddingTop:0,paddingBottom:0}})]})});function i2(e){return typeof e=="string"}function wk({props:e,states:t,muiFormControl:r}){return t.reduce((i,o)=>(i[o]=e[o],r&&typeof e[o]>"u"&&(i[o]=r[o]),i),{})}const u2=A.createContext(void 0);function Lk(){return A.useContext(u2)}function o2(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Mk(e,t=!1){return e&&(o2(e.value)&&e.value!==""||t&&o2(e.defaultValue)&&e.defaultValue!=="")}function Bk(e){return _n("MuiInputBase",e)}const g0=vn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var l2;const Pk=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${st(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Uk=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Hk=e=>{const{classes:t,color:r,disabled:i,error:o,endAdornment:s,focused:c,formControl:d,fullWidth:h,hiddenLabel:p,multiline:b,readOnly:E,size:T,startAdornment:y,type:v}=e,x={root:["root",`color${st(r)}`,i&&"disabled",o&&"error",h&&"fullWidth",c&&"focused",d&&"formControl",T&&T!=="medium"&&`size${st(T)}`,b&&"multiline",y&&"adornedStart",s&&"adornedEnd",p&&"hiddenLabel",E&&"readOnly"],input:["input",i&&"disabled",v==="search"&&"inputTypeSearch",b&&"inputMultiline",T==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",y&&"inputAdornedStart",s&&"inputAdornedEnd",E&&"readOnly"]};return On(x,Bk,t)},Fk=mt("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Pk})(Rn(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${g0.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),zk=mt("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Uk})(Rn(({theme:e})=>{const t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${g0.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${g0.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),s2=OO({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Yk=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:c,className:d,color:h,components:p={},componentsProps:b={},defaultValue:E,disabled:T,disableInjectingGlobalStyles:y,endAdornment:v,error:x,fullWidth:B=!1,id:O,inputComponent:P="input",inputProps:L={},inputRef:M,margin:D,maxRows:N,minRows:z,multiline:q=!1,name:V,onBlur:_,onChange:j,onClick:$,onFocus:ee,onKeyDown:X,onKeyUp:te,placeholder:F,readOnly:ie,renderSuffix:Q,rows:he,size:C,slotProps:Z={},slots:fe={},startAdornment:k,type:be="text",value:Re,...Te}=i,Xe=L.value!=null?L.value:Re,{current:Be}=A.useRef(Xe!=null),ut=A.useRef(),Ct=A.useCallback(Ve=>{},[]),gt=_r(ut,M,L.ref,Ct),[Ne,Oe]=A.useState(!1),Ce=Lk(),we=wk({props:i,muiFormControl:Ce,states:["color","disabled","error","hiddenLabel","size","required","filled"]});we.focused=Ce?Ce.focused:Ne,A.useEffect(()=>{!Ce&&T&&Ne&&(Oe(!1),_&&_())},[Ce,T,Ne,_]);const ke=Ce&&Ce.onFilled,Me=Ce&&Ce.onEmpty,Fe=A.useCallback(Ve=>{Mk(Ve)?ke&&ke():Me&&Me()},[ke,Me]);_a(()=>{Be&&Fe({value:Xe})},[Xe,Fe,Be]);const qe=Ve=>{ee&&ee(Ve),L.onFocus&&L.onFocus(Ve),Ce&&Ce.onFocus?Ce.onFocus(Ve):Oe(!0)},$e=Ve=>{_&&_(Ve),L.onBlur&&L.onBlur(Ve),Ce&&Ce.onBlur?Ce.onBlur(Ve):Oe(!1)},ct=(Ve,...Tt)=>{if(!Be){const At=Ve.target||ut.current;if(At==null)throw new Error(Aa(1));Fe({value:At.value})}L.onChange&&L.onChange(Ve,...Tt),j&&j(Ve,...Tt)};A.useEffect(()=>{Fe(ut.current)},[]);const Ie=Ve=>{ut.current&&Ve.currentTarget===Ve.target&&ut.current.focus(),$&&$(Ve)};let un=P,Ft=L;q&&un==="input"&&(he?Ft={type:void 0,minRows:he,maxRows:he,...Ft}:Ft={type:void 0,maxRows:N,minRows:z,...Ft},un=Dk);const Bt=Ve=>{Fe(Ve.animationName==="mui-auto-fill-cancel"?ut.current:{value:"x"})};A.useEffect(()=>{Ce&&Ce.setAdornedStart(!!k)},[Ce,k]);const ae={...i,color:we.color||"primary",disabled:we.disabled,endAdornment:v,error:we.error,focused:we.focused,formControl:Ce,fullWidth:B,hiddenLabel:we.hiddenLabel,multiline:q,size:we.size,startAdornment:k,type:be},de=Hk(ae),Se=fe.root||p.Root||Fk,Ae=Z.root||b.root||{},Pe=fe.input||p.Input||zk;return Ft={...Ft,...Z.input??b.input},pe.jsxs(A.Fragment,{children:[!y&&typeof s2=="function"&&(l2||(l2=pe.jsx(s2,{}))),pe.jsxs(Se,{...Ae,ref:r,onClick:Ie,...Te,...!i2(Se)&&{ownerState:{...ae,...Ae.ownerState}},className:tt(de.root,Ae.className,d,ie&&"MuiInputBase-readOnly"),children:[k,pe.jsx(u2.Provider,{value:null,children:pe.jsx(Pe,{"aria-invalid":we.error,"aria-describedby":o,autoComplete:s,autoFocus:c,defaultValue:E,disabled:we.disabled,id:O,onAnimationStart:Bt,name:V,placeholder:F,readOnly:ie,required:we.required,rows:he,value:Xe,onKeyDown:X,onKeyUp:te,type:be,...Ft,...!i2(Pe)&&{as:un,ownerState:{...ae,...Ft.ownerState}},ref:gt,className:tt(de.input,Ft.className,ie&&"MuiInputBase-readOnly"),onBlur:$e,onChange:ct,onFocus:qe})}),v,Q?Q({...we,startAdornment:k}):null]})]})}),jk={size:"medium"},qk={small:"small",medium:"small",large:"medium",chat:"chat",hero:"large"},c2=({size:e,theme:t,multiline:r})=>Pi([(e==="small"||e==="medium")&&{...t.typography.body2},(e==="large"||e==="chat"||e==="hero")&&{".remixicon":{width:"24px",height:"24px"},...t.typography.body1},e==="medium"&&{paddingLeft:"12px",paddingRight:"12px"},e==="small"&&!r&&{height:"32px"},e==="medium"&&!r&&{height:"40px"},e==="large"&&!r&&{height:"48px"},e==="chat"&&!r&&{height:"56px"},e==="hero"&&!r&&{height:"72px"},e==="small"&&{padding:"0 8px",".Mit-AdornmentButton":{width:"32px",".remixicon":{width:"16px",height:"16px"}}},e==="medium"&&{padding:"0 12px",".Mit-AdornmentButton":{width:"40px",".remixicon":{width:"20px",height:"20px"}}},e==="large"&&{padding:"0 16px",".Mit-AdornmentButton":{width:"48px"}},e==="chat"&&{padding:"0 16px",borderRadius:"8px",borderColor:t.custom.colors.silverGrayLight,backgroundColor:t.custom.colors.white,".Mit-AdornmentButton":{padding:"0 16px"}},e==="hero"&&{padding:"0 24px",".Mit-AdornmentButton":{width:"72px"}}]),Vk=e=>({backgroundColor:"white",color:e.custom.colors.darkGray2,borderColor:e.custom.colors.silverGrayLight,borderWidth:"1px",borderStyle:"solid",borderRadius:"4px",overflow:"hidden","&.Mui-disabled":{backgroundColor:e.custom.colors.lightGray1},"&:hover:not(.Mui-disabled):not(.Mui-focused)":{borderColor:e.custom.colors.darkGray2},"&.Mui-focused":{borderColor:"transparent",outline:"2px solid currentcolor",outlineOffset:"-2px"},"&.Mui-error":{borderColor:e.custom.colors.red,outlineColor:e.custom.colors.red},"& input::placeholder, textarea::placeholder":{color:e.custom.colors.silverGrayDark,opacity:1},"& input:placeholder-shown, textarea:placeholder-shown":{textOverflow:"ellipsis"},"& textarea":{paddingTop:"8px",paddingBottom:"8px"},"&.MuiInputBase-adornedStart":{paddingLeft:"0",input:{paddingLeft:"8px"}},"&.MuiInputBase-adornedEnd":{paddingRight:"0",input:{paddingRight:"8px"}}}),Gk=Object.keys({responsive:!0}),f2=He(Yk,{shouldForwardProp:e=>!Gk.includes(e)})(({theme:e,size:t=jk.size,multiline:r,responsive:i})=>[Vk(e),c2({size:t,theme:e,multiline:r}),i&&{[e.breakpoints.down("sm")]:c2({size:qk[t],theme:e,multiline:r})}]),$k=He.button(({theme:e,disabled:t})=>({...e.typography.button,display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",border:"none",background:"transparent",transition:`background ${e.transitions.duration.short}ms`,cursor:t?"default":"pointer",":disabled":{cursor:"default",svg:{fill:e.custom.colors.silverGray}},":hover":{background:t?"inherit":"rgba(0, 0, 0, 0.06)"},color:e.custom.colors.silverGray,".MuiInputBase-root:hover &":{color:"inherit"},".MuiInputBase-root.Mui-focused &":{color:"inherit"},".MuiInputBase-root.Mui-disabled &":{color:"inherit"},height:"100%"})),Xk=e=>e.preventDefault(),b0=({className:e,...t})=>A.createElement($k,{onMouseDown:Xk,className:Ho("Mit-AdornmentButton",e),...t}),Qk=({className:e})=>A.createElement("svg",{className:e,width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A.createElement("g",{clipPath:"url(#clip0_16894_46778)"},A.createElement("path",{d:"M32.5546 5.17074C33.7099 6.67302 32.4042 7.80224 32.2498 7.94865L32.9819 8.97157C33.7621 8.23748 34.8612 6.35612 33.4291 4.49682C32.7933 3.67046 31.8246 3.32347 30.6251 3.49396C29.7868 3.6143 29.1209 3.95327 29.0928 3.96731L29.6102 4.74753C29.9974 4.57504 31.6059 3.93321 32.5546 5.16873V5.17074Z",fill:"#40464C"}),A.createElement("path",{d:"M8.63481 5.04446L9.0881 4.22412C9.06002 4.21209 8.36805 3.92728 7.52163 3.87513C6.31219 3.80292 5.37351 4.22412 4.80589 5.10062C3.52825 7.07023 4.7738 8.85532 5.61219 9.52523L6.25803 8.44616C6.09356 8.31177 4.69959 7.29086 5.73053 5.70033C6.57895 4.3926 8.23166 4.90406 8.63079 5.04446H8.63481Z",fill:"#40464C"}),A.createElement("path",{d:"M25.1577 7.25851C25.1778 7.25851 25.1978 7.25851 25.2179 7.25851C27.4382 7.29862 28.6296 8.96136 28.6296 8.96136L29.129 8.81896C29.109 8.75076 28.9144 8.12297 28.3468 7.48315C27.8133 6.88344 26.8425 6.16138 25.2399 6.1333C25.2119 6.1333 25.1858 6.1333 25.1577 6.1333C22.7168 6.1333 21.6056 8.07483 21.3589 9.11179L22.4721 9.37053C22.4941 9.28428 23.0216 7.2565 25.1577 7.2565V7.25851Z",fill:"#40464C"}),A.createElement("path",{d:"M9.90619 9.34454C9.92625 9.2583 10.4357 7.23252 12.5898 7.23252C12.6099 7.23252 12.63 7.23252 12.65 7.23252C14.8703 7.27063 15.9213 8.97549 15.9213 8.97549L16.5612 8.79498C16.5411 8.72478 16.3465 8.09899 15.7789 7.46118C15.2454 6.86147 14.2746 6.13941 12.6721 6.11133C12.646 6.11133 12.6179 6.11133 12.5898 6.11133C10.1489 6.11133 9.03772 8.05286 8.79102 9.08982L9.90619 9.34655V9.34454Z",fill:"#40464C"}),A.createElement("path",{d:"M19.6383 26.256L19.1973 26.269L19.363 31.8525L19.804 31.8394L19.6383 26.256Z",fill:"#40464C"}),A.createElement("path",{d:"M14.1281 38.5777C14.786 38.9107 16.2321 39.4201 16.2321 39.4201L16.8318 39.5906L17.4616 39.725L17.8748 39.7912C17.8748 39.7912 19.0702 39.9336 19.704 39.9336C19.7562 39.9336 19.8103 39.9336 19.8625 39.9336C20.9255 39.9236 22.7748 39.6508 22.7748 39.6508L23.2782 39.5525L24.3031 39.2837L24.6461 39.1614L26.3068 38.5015L26.5977 38.3451L27.1994 37.984L27.4842 37.7754C27.4842 37.7754 28.6114 36.9411 29.0326 36.5359C29.4137 36.1689 29.6905 35.7797 29.8931 35.3987C30.3323 35.2482 31.6862 34.7689 33.1443 34.0187C33.732 33.7821 34.7429 33.0981 34.8091 33.054C38.0985 30.8718 39.7712 28.3907 39.9718 25.6429C40.3729 20.1592 36.6684 16.9922 35.6836 16.218C35.6415 14.8 35.469 13.0871 35.0137 11.318C35.6054 10.7163 36.173 9.95213 36.4518 9.02148C36.9472 7.36275 36.881 5.67595 36.2612 4.27195C35.5733 2.70949 34.2715 1.60234 32.4945 1.06681C30.6272 0.503205 28.6515 1.0989 27.2616 1.76079C25.1215 0.767959 22.6424 0.166244 19.9989 0.0238384C16.7235 -0.152665 13.8012 0.661656 11.3843 2.11179C9.95424 1.46394 7.56945 0.781999 5.46144 1.60635C3.73251 2.28428 2.52507 3.49373 1.96347 5.10432C1.46004 6.55245 1.52823 8.23925 2.15602 9.85385C2.56519 10.9028 3.50988 11.9338 4.33022 12.6378C4.0093 14.2404 3.89297 15.7366 3.8669 16.922C2.79584 17.8306 -1.06115 21.5793 0.276664 27.3718C0.936544 30.2279 2.92421 32.6528 6.02705 34.3858C6.36201 34.5723 6.709 34.7508 7.06 34.9173L8.38778 35.503C9.49494 35.9562 10.4898 36.2852 11.0012 36.4456C11.5528 36.931 12.1645 37.4004 12.8284 37.8316L14.1281 38.5797V38.5777ZM3.45572 9.54899C1.84714 6.20345 3.8328 3.63012 6.13536 2.72955C8.15111 1.9413 10.9029 3.49974 12.0201 4.09143L11.982 3.05648C14.2104 1.73271 16.9141 0.946468 19.9427 1.10893C22.151 1.22727 24.243 1.68457 26.0922 2.43672L26.2687 3.57195C27.3338 2.89201 29.8449 1.61437 31.9168 2.24016C34.2856 2.95419 36.199 5.26678 35.136 8.82292C34.765 10.0665 33.4472 11.2378 32.8696 11.6931L33.9827 12.1544C34.5945 15.2994 34.2796 18.1856 34.1372 19.1684C33.2426 18.8495 32.0612 18.5607 30.5209 18.3962C30.4547 16.6773 30.1117 12.9106 28.3126 11.2278C27.6106 10.5719 26.7621 10.2289 25.7894 10.2129C24.8186 10.1988 23.9862 10.5137 23.3304 11.1536C22.3716 12.0902 21.5332 13.5885 21.3948 15.8369C21.3447 16.6432 21.3587 17.3813 21.3868 17.9289C20.6186 17.7945 19.7943 17.7223 18.984 17.7203L18.5929 17.7143C17.951 17.7323 17.3714 17.7845 16.8479 17.8607C16.7717 16.1979 16.3926 12.9727 14.6516 11.3662C13.9577 10.7263 13.1213 10.3954 12.1605 10.3794C11.1978 10.3653 10.3815 10.6722 9.73362 11.294C7.87432 13.0831 7.72188 17.1005 7.73592 18.4684C6.76516 18.5767 5.99095 18.7432 5.3772 18.9297C5.27691 18.0191 5.08637 15.5501 5.56975 12.7561L6.26573 12.012C5.65399 11.6028 4.09755 10.8687 3.45974 9.54297L3.45572 9.54899ZM26.4673 13.0008C24.1888 13.1432 24.3011 17.0123 24.3914 18.2197C23.8017 18.2398 23.2842 18.2678 22.8691 18.2939C22.7708 16.4948 22.8951 13.1773 24.2189 11.8856C24.6261 11.4885 25.1155 11.296 25.7152 11.296C25.7312 11.296 25.7473 11.296 25.7613 11.296C26.4091 11.306 26.9567 11.5286 27.4341 11.9759C27.9636 12.4713 28.3968 13.2415 28.7177 14.2424C28.2464 13.4702 27.5364 12.9346 26.4653 13.0008H26.4673ZM27.7931 18.2718L26.9427 18.2257C26.4553 18.2057 25.9779 18.1956 25.5146 18.1896C25.4524 17.614 25.3601 15.9893 26.3309 15.9613C27.6607 15.9232 27.8051 17.4916 27.7931 18.2718ZM14.2364 18.2718L13.386 18.2257C12.8986 18.2057 12.4213 18.1956 11.958 18.1896C11.8958 17.614 11.8035 15.9893 12.7743 15.9613C14.1041 15.9232 14.2485 17.4916 14.2364 18.2718ZM19.2628 25.34C19.7903 25.4463 21.6436 25.9257 23.3143 26.7019C23.2662 27.2675 23.1579 28.1701 22.9112 29.0807C22.5722 30.3342 21.6596 32.2256 21.3347 32.8775C21.0318 32.8915 20.5224 32.9116 20.1252 32.9176C19.5355 32.9256 18.8777 32.9397 18.5347 32.9457C18.1596 32.4242 17.0886 30.8878 16.3946 29.4296C15.9192 28.4328 15.6204 27.5302 15.4599 26.9767C16.8439 26.1082 18.9358 25.4403 19.2628 25.338V25.34ZM10.7325 18.342C10.5881 18.342 10.4416 18.342 10.2892 18.342C9.94221 18.342 9.61528 18.3481 9.30038 18.3601C9.17001 16.7094 9.21614 13.3458 10.6081 12.006C11.0193 11.6109 11.5187 11.4203 12.1325 11.4324C12.7723 11.4424 13.3118 11.659 13.7832 12.0942C14.3528 12.6197 14.8101 13.4641 15.135 14.5713C14.6757 13.6868 13.9396 13.0389 12.7683 13.1111C10.4075 13.2556 10.6462 17.3913 10.7325 18.342ZM38.8686 25.4343C38.644 30.7454 31.6521 33.1182 30.3905 33.5093C30.4065 33.07 30.3524 32.7872 30.3524 32.7872C30.3303 32.8474 28.1561 38.7622 19.8525 38.8445C19.8023 38.8445 19.7562 38.8445 19.706 38.8445C13.3118 38.8445 7.3769 32.0411 7.3769 32.0411C7.68979 32.6027 8.24939 33.4712 9.04967 34.4319C7.42905 33.9686 2.62536 32.1855 1.45201 27.097C0.475229 22.8609 2.56719 19.9125 3.88495 18.5406C3.90902 19.0942 3.94311 19.4412 3.94712 19.5114L3.95114 19.5455C3.25716 19.9446 3.1308 20.2455 3.1308 20.2455C3.16088 20.2334 6.46229 19.387 10.2792 19.4251C11.5067 19.4372 12.4614 19.4833 13.1935 19.5415C13.0089 19.8102 12.9187 20.083 12.9167 20.3417C12.9127 21.4649 15.2393 21.8902 16.5089 22.3354C17.4015 22.6483 18.1536 22.9712 18.5848 23.1678C18.5909 23.6492 18.5989 24.287 18.6009 24.7944C17.7364 25.0251 15.7488 25.6288 14.4972 26.5795L14.439 26.6317C14.445 26.6618 14.5233 27.0108 14.6958 27.5603C13.8754 27.7308 12.9067 27.8471 11.7935 27.8451C7.76801 27.8411 5.18465 26.1844 5.18465 26.1844C5.26287 26.2967 7.17633 28.9282 11.7935 28.9322C12.1786 28.9322 12.5456 28.9182 12.8986 28.8941C13.1915 29.4918 13.713 30.7133 14.4811 31.7984C15.5362 33.2866 16.9562 34.6365 19.8585 34.6365C23.7857 34.6365 25.9779 32.4202 27.1292 29.1649C27.2977 29.1649 27.4641 29.1609 27.6326 29.1549C27.9174 29.1448 28.2022 29.1268 28.4891 29.1007C32.8595 28.6996 34.5925 26.9004 34.6647 26.8222C34.6647 26.8222 30.4406 27.8291 28.3908 28.0176C26.8945 28.156 25.4203 28.0417 24.0845 27.8191C24.2209 26.9145 24.243 26.2285 24.245 26.1423L24.251 26.1343C22.6444 25.3179 20.7209 24.9048 19.8043 24.7403C19.8003 24.1386 19.7903 23.3704 19.7843 22.893C20.1513 22.7005 20.6206 22.4738 21.1461 22.2612C23.0496 21.489 24.8427 21.2624 24.8748 20.0349C24.8828 19.746 24.7645 19.4813 24.5478 19.2406C26.1785 19.2226 28.2745 19.2567 30.2441 19.4592C34.1973 19.8644 36.7025 20.767 36.7185 20.775C36.7185 20.775 36.4598 20.3297 35.5211 19.7962V19.7822C35.5351 19.6859 35.6415 18.9297 35.6776 17.7704C36.9873 18.9979 39.0291 21.5492 38.8646 25.4302L38.8686 25.4343Z",fill:"#40464C"})),A.createElement("defs",null,A.createElement("clipPath",{id:"clip0_16894_46778"},A.createElement("rect",{width:"40",height:"39.9338",fill:"white"})))),Kk=He.div(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",gap:"16px",padding:"114px 32px 24px",[e.breakpoints.down("md")]:{padding:"114px 16px 24px",width:"100%"},boxSizing:"border-box",position:"absolute",zIndex:1,background:"white",bottom:0,top:0,left:0,right:0})),Wk=He.div(({theme:e})=>({position:"relative",padding:"16px",border:`1px solid ${e.custom.colors.lightGray2}`,borderRadius:"8px","svg:first-child":{fill:e.custom.colors.red,position:"absolute",top:"-10px",left:"-10px"}})),Zk=He(Qk)({width:"40px",height:"40px",display:"block"}),Jk=He(fi)({textAlign:"center",padding:"0 40px"}),eI=He(f2)({borderRadius:"8px",margin:"8px 0 24px 0",flexShrink:0,"button:focus-visible":{outlineOffset:"-1px",borderRadius:"7px"}}),tI=He(_b)(({theme:e})=>({fill:e.custom.colors.red,"button:disabled &":{fill:e.custom.colors.silverGray}})),nI=He.div(({theme:e})=>({display:"flex",gap:"16px",width:"100%",[e.breakpoints.down("sm")]:{flexDirection:"column"}})),rI=He.button(({theme:e})=>({flex:1,display:"flex",alignItems:"center",borderRadius:"8px",border:`1px solid ${e.custom.colors.lightGray2}`,padding:"12px 16px",color:e.custom.colors.darkGray2,backgroundColor:"transparent",textAlign:"left",[e.breakpoints.down("sm")]:{padding:"12px 36px"},":hover":{cursor:"pointer",borderColor:"transparent",color:e.custom.colors.white,backgroundColor:e.custom.colors.darkGray1}})),aI=({title:e,conversationStarters:t,className:r,onPromptSubmit:i})=>{const[o,s]=A.useState(""),c=h=>{s(h.target.value)},d=h=>{h.key==="Enter"&&o?i(o):s(o)};return A.createElement(Kk,{className:r,"data-testid":"ai-chat-entry-screen"},A.createElement(Wk,null,A.createElement(Md,null),A.createElement(Zk,null)),e?A.createElement(Jk,{variant:"h4"},e):null,A.createElement(eI,{fullWidth:!0,size:"chat",onChange:c,onKeyDown:d,inputProps:{"aria-label":"Ask a question"},endAdornment:A.createElement(b0,{"aria-label":"Send",onClick:()=>i(o)},A.createElement(tI,null)),responsive:!0}),A.createElement(nI,null,t==null?void 0:t.map(({content:h},p)=>A.createElement(rI,{key:p,onClick:()=>i(h),tabIndex:0,onKeyDown:b=>{b.key==="Enter"&&i(h)}},A.createElement(fi,{variant:"body2"},h)))))},iI=(...e)=>t=>{e.forEach(r=>{typeof r=="function"?r(t):r&&(r.current=t)})},d2=e=>e.scrollHeight-e.clientHeight-e.scrollTop,uI=e=>{e.scrollTop=e.scrollHeight},oI=He.div({overflow:"auto"}),lI=A.forwardRef(function({children:t,threshold:r=2,className:i},o){const s=A.useRef(null),[c,d]=A.useState(t),h=A.useRef(null);return A.useLayoutEffect(()=>{s.current&&(h.current=d2(s.current)<r,d(t))},[t,r]),A.useLayoutEffect(()=>{if(!s.current)return;const p=d2(s.current)<r;h.current&&!p&&(uI(s.current),h.current=null)},[c,r]),A.createElement(oI,{className:i,ref:iI(s,o)},c)}),h2=He.span({clipPath:"inset(100%)",clip:"rect(1px, 1px, 1px, 1px)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),sI={loadingMessages:[{delay:1500,text:"Loading"},{delay:4e3,text:"Still loading"}]},cI=({message:e,isLoading:t,loadingMessages:r=sI.loadingMessages})=>{var c;const[i,o]=A.useState(-1);A.useEffect(()=>{o(-1)},[t,r]),A.useEffect(()=>{const d=r[i+1];if(!t||!d)return()=>{};const h=setTimeout(()=>{o(i+1)},d.delay);return()=>{clearTimeout(h)}},[t,i,r]);const s=(c=r[i])==null?void 0:c.text;return A.createElement(h2,{"aria-atomic":"true","aria-live":"polite"},t?s:e)};function fI(e){return _n("MuiAlert",e)}const p2=vn("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function dI(e){return _n("MuiCircularProgress",e)}vn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ra=44,E0=Ju`
|
|
197
197
|
0% {
|
|
198
198
|
transform: rotate(0deg);
|
|
199
199
|
}
|
|
@@ -201,7 +201,7 @@ export default theme;`}function Qd(e={},...t){const{breakpoints:r,mixins:i={},sp
|
|
|
201
201
|
100% {
|
|
202
202
|
transform: rotate(360deg);
|
|
203
203
|
}
|
|
204
|
-
`,
|
|
204
|
+
`,y0=Ju`
|
|
205
205
|
0% {
|
|
206
206
|
stroke-dasharray: 1px, 200px;
|
|
207
207
|
stroke-dashoffset: 0;
|
|
@@ -216,14 +216,14 @@ export default theme;`}function Qd(e={},...t){const{breakpoints:r,mixins:i={},sp
|
|
|
216
216
|
stroke-dasharray: 1px, 200px;
|
|
217
217
|
stroke-dashoffset: -126px;
|
|
218
218
|
}
|
|
219
|
-
`,
|
|
220
|
-
animation: ${
|
|
221
|
-
`:null,
|
|
222
|
-
animation: ${
|
|
223
|
-
`:null,UI=e=>{const{classes:t,variant:r,color:i,disableShrink:l}=e,s={root:["root",r,`color${ct(i)}`],svg:["svg"],circle:["circle",`circle${ct(r)}`,l&&"circleDisableShrink"]};return On(s,wI,t)},HI=mt("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${ct(r.color)}`]]}})(Rn(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:BI||{animation:`${d0} 1.4s linear infinite`}},...Object.entries(e.palette).filter(si()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),FI=mt("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),zI=mt("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${ct(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(Rn(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:PI||{animation:`${h0} 1.4s ease-in-out infinite`}}]}))),YI=A.forwardRef(function(t,r){const i=In({props:t,name:"MuiCircularProgress"}),{className:l,color:s="primary",disableShrink:c=!1,size:d=40,style:p,thickness:m=3.6,value:b=0,variant:E="indeterminate",...T}=i,y={...i,color:s,disableShrink:c,size:d,thickness:m,value:b,variant:E},R=UI(y),x={},U={},D={};if(E==="determinate"){const q=2*Math.PI*((Ra-m)/2);x.strokeDasharray=q.toFixed(3),D["aria-valuenow"]=Math.round(b),x.strokeDashoffset=`${((100-b)/100*q).toFixed(3)}px`,U.transform="rotate(-90deg)"}return he.jsx(HI,{className:tt(R.root,l),style:{width:d,height:d,...U,...p},ownerState:y,ref:r,role:"progressbar",...D,...T,children:he.jsx(FI,{className:R.svg,ownerState:y,viewBox:`${Ra/2} ${Ra/2} ${Ra} ${Ra}`,children:he.jsx(zI,{className:R.circle,style:x,ownerState:y,cx:Ra,cy:Ra,r:(Ra-m)/2,fill:"none",strokeWidth:m})})})});function jI(e){return xn("MuiIconButton",e)}const a2=vn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),qI=e=>{const{classes:t,disabled:r,color:i,edge:l,size:s,loading:c}=e,d={root:["root",c&&"loading",r&&"disabled",i!=="default"&&`color${ct(i)}`,l&&`edge${ct(l)}`,`size${ct(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return On(d,jI,t)},VI=mt(a0,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${ct(r.color)}`],r.edge&&t[`edge${ct(r.edge)}`],t[`size${ct(r.size)}`]]}})(Rn(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Nl(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Rn(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(si()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(si()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nl((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${a2.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${a2.loading}`]:{color:"transparent"}}))),GI=mt("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),$I=A.forwardRef(function(t,r){const i=In({props:t,name:"MuiIconButton"}),{edge:l=!1,children:s,className:c,color:d="default",disabled:p=!1,disableFocusRipple:m=!1,size:b="medium",id:E,loading:T=null,loadingIndicator:y,...R}=i,x=A8(E),U=y??he.jsx(YI,{"aria-labelledby":x,color:"inherit",size:16}),D={...i,edge:l,color:d,disabled:p,disableFocusRipple:m,loading:T,loadingIndicator:U,size:b},q=qI(D);return he.jsxs(VI,{id:T?x:E,className:tt(q.root,c),centerRipple:!0,focusRipple:!m,disabled:p||T,ref:r,...R,ownerState:D,children:[typeof T=="boolean"&&he.jsx("span",{className:q.loadingWrapper,style:{display:"contents"},children:he.jsx(GI,{className:q.loadingIndicator,ownerState:D,children:T&&U})}),s]})}),XI=oi(he.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),QI=oi(he.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),KI=oi(he.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),WI=oi(he.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),ZI=oi(he.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),JI=e=>{const{variant:t,color:r,severity:i,classes:l}=e,s={root:["root",`color${ct(r||i)}`,`${t}${ct(r||i)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return On(s,MI,l)},eD=mt(TE,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ct(r.color||r.severity)}`]]}})(Rn(({theme:e})=>{const t=e.palette.mode==="light"?Ol:Il,r=e.palette.mode==="light"?Il:Ol;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(si(["light"])).map(([i])=>({props:{colorSeverity:i,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${i}Color`]:t(e.palette[i].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${i}StandardBg`]:r(e.palette[i].light,.9),[`& .${r2.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter(si(["light"])).map(([i])=>({props:{colorSeverity:i,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${i}Color`]:t(e.palette[i].light,.6),border:`1px solid ${(e.vars||e).palette[i].light}`,[`& .${r2.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter(si(["dark"])).map(([i])=>({props:{colorSeverity:i,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${i}FilledColor`],backgroundColor:e.vars.palette.Alert[`${i}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[i].dark:e.palette[i].main,color:e.palette.getContrastText(e.palette[i].main)}}}))]}})),tD=mt("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),nD=mt("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),rD=mt("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),i2={success:he.jsx(XI,{fontSize:"inherit"}),warning:he.jsx(QI,{fontSize:"inherit"}),error:he.jsx(KI,{fontSize:"inherit"}),info:he.jsx(WI,{fontSize:"inherit"})},aD=A.forwardRef(function(t,r){const i=In({props:t,name:"MuiAlert"}),{action:l,children:s,className:c,closeText:d="Close",color:p,components:m={},componentsProps:b={},icon:E,iconMapping:T=i2,onClose:y,role:R="alert",severity:x="success",slotProps:U={},slots:D={},variant:q="standard",...M}=i,P={...i,color:p,severity:x,variant:q,colorSeverity:p||x},k=JI(P),N={slots:{closeButton:m.CloseButton,closeIcon:m.CloseIcon,...D},slotProps:{...b,...U}},[Y,j]=en("root",{ref:r,shouldForwardComponentProp:!0,className:tt(k.root,c),elementType:eD,externalForwardedProps:{...N,...M},ownerState:P,additionalProps:{role:R,elevation:0}}),[G,_]=en("icon",{className:k.icon,elementType:tD,externalForwardedProps:N,ownerState:P}),[z,$]=en("message",{className:k.message,elementType:nD,externalForwardedProps:N,ownerState:P}),[Z,X]=en("action",{className:k.action,elementType:rD,externalForwardedProps:N,ownerState:P}),[te,H]=en("closeButton",{elementType:$I,externalForwardedProps:N,ownerState:P}),[Q,ie]=en("closeIcon",{elementType:ZI,externalForwardedProps:N,ownerState:P});return he.jsxs(Y,{...j,children:[E!==!1?he.jsx(G,{..._,children:E||T[x]||i2[x]}):null,he.jsx(z,{...$,children:s}),l!=null?he.jsx(Z,{...X,children:l}):null,l==null&&y?he.jsx(Z,{...X,children:he.jsx(te,{size:"small","aria-label":d,title:d,color:"inherit",onClick:y,...H,children:he.jsx(Q,{fontSize:"small",...ie})})}):null]})}),u2=(e,t)=>({info:e.custom.colors.blue,success:e.custom.colors.green,warning:e.custom.colors.orange,error:e.custom.colors.lightRed})[t],iD=Pe(aD)(({theme:e,severity:t})=>({padding:"11px 16px",borderRadius:4,borderWidth:2,borderStyle:"solid",borderColor:u2(e,t),background:"#FFF",".MuiAlert-message":{...e.typography.body2,color:e.custom.colors.darkGray2,alignSelf:"center"},"> div":{paddingTop:0,paddingBottom:0},".MuiAlert-icon":{marginRight:8,svg:{width:16,fill:u2(e,t)}},button:{padding:0,":hover":{margin:0,background:"none"}}})),uD=Pe.span({display:"none"}),lD=({visible:e=!0,severity:t="info",closable:r,children:i,className:l})=>{const[s,c]=A.useState(e),d=A.useId(),p=()=>{c(!1)};return A.useEffect(()=>{c(e)},[e]),s?A.createElement(iD,{severity:t,onClose:r?p:void 0,role:"alert","aria-describedby":d,className:l},i,A.createElement(uD,{id:d},t," message")):null},oD=Pe.div(({externalScroll:e,theme:t})=>({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 0",gap:"16px",color:t.custom.colors.white,borderRadius:"8px 8px 0 0",...e&&{position:"sticky",top:0,padding:"32px 0 26px",zIndex:2,backgroundColor:t.custom.colors.white,borderRadius:0}})),sD=Pe.div(({theme:e})=>({display:"flex",alignItems:"center",gap:"8px",color:e.custom.colors.darkGray2,img:{width:"24px",height:"24px"},svg:{fill:e.custom.colors.red,width:"24px",height:"24px"}})),cD=({askTimTitle:e,externalScroll:t,className:r})=>e?A.createElement(oD,{externalScroll:t,className:r},A.createElement(sD,null,A.createElement(Od,null),A.createElement(ci,{variant:"body1"},"Ask",A.createElement("strong",null,"TIM")," ",e))):null;var l2="vercel.ai.error",fD=Symbol.for(l2),o2,dD=class LS extends Error{constructor({name:t,message:r,cause:i}){super(r),this[o2]=!0,this.name=t,this.cause=i}static isInstance(t){return LS.hasMarker(t,l2)}static hasMarker(t,r){const i=Symbol.for(r);return t!=null&&typeof t=="object"&&i in t&&typeof t[i]=="boolean"&&t[i]===!0}};o2=fD;var iu=dD;function s2(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var c2="AI_InvalidArgumentError",f2=`vercel.ai.error.${c2}`,hD=Symbol.for(f2),d2,pD=class extends iu{constructor({message:e,cause:t,argument:r}){super({name:c2,message:e,cause:t}),this[d2]=!0,this.argument=r}static isInstance(e){return iu.hasMarker(e,f2)}};d2=hD;var h2="AI_JSONParseError",p2=`vercel.ai.error.${h2}`,mD=Symbol.for(p2),m2,g2=class extends iu{constructor({text:e,cause:t}){super({name:h2,message:`JSON parsing failed: Text: ${e}.
|
|
224
|
-
Error message: ${
|
|
225
|
-
Error message: ${s2(r)}`,cause:r}),this[y2]=!0,this.value=t}static isInstance(t){return iu.hasMarker(t,E2)}static wrap({value:t,cause:r}){return Xp.isInstance(r)&&r.value===t?r:new Xp({value:t,cause:r})}};y2=gD;var T2=bD;let ED=(e,t=21)=>(r=t)=>{let i="",l=r|0;for(;l--;)i+=e[Math.random()*e.length|0];return i};var fi={exports:{}},S2;function yD(){if(S2)return fi.exports;S2=1;const e=typeof Buffer<"u",t=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,r=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function i(d,p,m){m==null&&p!==null&&typeof p=="object"&&(m=p,p=void 0),e&&Buffer.isBuffer(d)&&(d=d.toString()),d&&d.charCodeAt(0)===65279&&(d=d.slice(1));const b=JSON.parse(d,p);if(b===null||typeof b!="object")return b;const E=m&&m.protoAction||"error",T=m&&m.constructorAction||"error";if(E==="ignore"&&T==="ignore")return b;if(E!=="ignore"&&T!=="ignore"){if(t.test(d)===!1&&r.test(d)===!1)return b}else if(E!=="ignore"&&T==="ignore"){if(t.test(d)===!1)return b}else if(r.test(d)===!1)return b;return l(b,{protoAction:E,constructorAction:T,safe:m&&m.safe})}function l(d,{protoAction:p="error",constructorAction:m="error",safe:b}={}){let E=[d];for(;E.length;){const T=E;E=[];for(const y of T){if(p!=="ignore"&&Object.prototype.hasOwnProperty.call(y,"__proto__")){if(b===!0)return null;if(p==="error")throw new SyntaxError("Object contains forbidden prototype property");delete y.__proto__}if(m!=="ignore"&&Object.prototype.hasOwnProperty.call(y,"constructor")&&Object.prototype.hasOwnProperty.call(y.constructor,"prototype")){if(b===!0)return null;if(m==="error")throw new SyntaxError("Object contains forbidden prototype property");delete y.constructor}for(const R in y){const x=y[R];x&&typeof x=="object"&&E.push(x)}}}return d}function s(d,p,m){const b=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return i(d,p,m)}finally{Error.stackTraceLimit=b}}function c(d,p){const m=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return i(d,p,{safe:!0})}catch{return null}finally{Error.stackTraceLimit=m}}return fi.exports=s,fi.exports.default=s,fi.exports.parse=s,fi.exports.safeParse=c,fi.exports.scan=l,fi.exports}var TD=yD();const SD=lr(TD);var CD=({prefix:e,size:t=16,alphabet:r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:i="-"}={})=>{const l=ED(r,t);if(e==null)return l;if(r.includes(i))throw new pD({argument:"separator",message:`The separator "${i}" must not be part of the alphabet "${r}".`});return s=>`${e}${i}${l(s)}`},p0=CD(),m0=Symbol.for("vercel.ai.validator");function AD(e){return{[m0]:!0,validate:e}}function _D(e){return typeof e=="object"&&e!==null&&m0 in e&&e[m0]===!0&&"validate"in e}function xD(e){return _D(e)?e:vD(e)}function vD(e){return AD(t=>{const r=e.safeParse(t);return r.success?{success:!0,value:r.data}:{success:!1,error:r.error}})}function RD({value:e,schema:t}){const r=xD(t);try{if(r.validate==null)return{success:!0,value:e};const i=r.validate(e);return i.success?i:{success:!1,error:T2.wrap({value:e,cause:i.error})}}catch(i){return{success:!1,error:T2.wrap({value:e,cause:i})}}}function C2({text:e,schema:t}){try{const r=SD.parse(e);if(t==null)return{success:!0,value:r,rawValue:r};const i=RD({value:r,schema:t});return i.success?{...i,rawValue:r}:i}catch(r){return{success:!1,error:g2.isInstance(r)?r:new g2({text:e,cause:r})}}}new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");var Pl={code:"0",name:"text",parse:e=>{if(typeof e!="string")throw new Error('"text" parts expect a string value.');return{type:"text",value:e}}},Ul={code:"3",name:"error",parse:e=>{if(typeof e!="string")throw new Error('"error" parts expect a string value.');return{type:"error",value:e}}},Hl={code:"4",name:"assistant_message",parse:e=>{if(e==null||typeof e!="object"||!("id"in e)||!("role"in e)||!("content"in e)||typeof e.id!="string"||typeof e.role!="string"||e.role!=="assistant"||!Array.isArray(e.content)||!e.content.every(t=>t!=null&&typeof t=="object"&&"type"in t&&t.type==="text"&&"text"in t&&t.text!=null&&typeof t.text=="object"&&"value"in t.text&&typeof t.text.value=="string"))throw new Error('"assistant_message" parts expect an object with an "id", "role", and "content" property.');return{type:"assistant_message",value:e}}},Fl={code:"5",name:"assistant_control_data",parse:e=>{if(e==null||typeof e!="object"||!("threadId"in e)||!("messageId"in e)||typeof e.threadId!="string"||typeof e.messageId!="string")throw new Error('"assistant_control_data" parts expect an object with a "threadId" and "messageId" property.');return{type:"assistant_control_data",value:{threadId:e.threadId,messageId:e.messageId}}}},zl={code:"6",name:"data_message",parse:e=>{if(e==null||typeof e!="object"||!("role"in e)||!("data"in e)||typeof e.role!="string"||e.role!=="data")throw new Error('"data_message" parts expect an object with a "role" and "data" property.');return{type:"data_message",value:e}}},ND=[Pl,Ul,Hl,Fl,zl];Pl.code+"",Ul.code+"",Hl.code+"",Fl.code+"",zl.code+"",Pl.name+"",Pl.code,Ul.name+"",Ul.code,Hl.name+"",Hl.code,Fl.name+"",Fl.code,zl.name+"",zl.code,ND.map(e=>e.code);function OD({promptTokens:e,completionTokens:t}){return{promptTokens:e,completionTokens:t,totalTokens:e+t}}function ID(e){const t=["ROOT"];let r=-1,i=null;function l(p,m,b){switch(p){case'"':{r=m,t.pop(),t.push(b),t.push("INSIDE_STRING");break}case"f":case"t":case"n":{r=m,i=m,t.pop(),t.push(b),t.push("INSIDE_LITERAL");break}case"-":{t.pop(),t.push(b),t.push("INSIDE_NUMBER");break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{r=m,t.pop(),t.push(b),t.push("INSIDE_NUMBER");break}case"{":{r=m,t.pop(),t.push(b),t.push("INSIDE_OBJECT_START");break}case"[":{r=m,t.pop(),t.push(b),t.push("INSIDE_ARRAY_START");break}}}function s(p,m){switch(p){case",":{t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{r=m,t.pop();break}}}function c(p,m){switch(p){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=m,t.pop();break}}}for(let p=0;p<e.length;p++){const m=e[p];switch(t[t.length-1]){case"ROOT":l(m,p,"FINISH");break;case"INSIDE_OBJECT_START":{switch(m){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}case"}":{r=p,t.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{switch(m){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}}break}case"INSIDE_OBJECT_KEY":{switch(m){case'"':{t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY");break}}break}case"INSIDE_OBJECT_AFTER_KEY":{switch(m){case":":{t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE");break}}break}case"INSIDE_OBJECT_BEFORE_VALUE":{l(m,p,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{s(m,p);break}case"INSIDE_STRING":{switch(m){case'"':{t.pop(),r=p;break}case"\\":{t.push("INSIDE_STRING_ESCAPE");break}default:r=p}break}case"INSIDE_ARRAY_START":{switch(m){case"]":{r=p,t.pop();break}default:{r=p,l(m,p,"INSIDE_ARRAY_AFTER_VALUE");break}}break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(m){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=p,t.pop();break}default:{r=p;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{l(m,p,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{t.pop(),r=p;break}case"INSIDE_NUMBER":{switch(m){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{r=p;break}case"e":case"E":case"-":case".":break;case",":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&c(m,p),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(m,p);break}case"}":{t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(m,p);break}case"]":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&c(m,p);break}default:{t.pop();break}}break}case"INSIDE_LITERAL":{const E=e.substring(i,p+1);!"false".startsWith(E)&&!"true".startsWith(E)&&!"null".startsWith(E)?(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?s(m,p):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&c(m,p)):r=p;break}}}let d=e.slice(0,r+1);for(let p=t.length-1;p>=0;p--)switch(t[p]){case"INSIDE_STRING":{d+='"';break}case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":{d+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{d+="]";break}case"INSIDE_LITERAL":{const b=e.substring(i,e.length);"true".startsWith(b)?d+="true".slice(b.length):"false".startsWith(b)?d+="false".slice(b.length):"null".startsWith(b)&&(d+="null".slice(b.length))}}return d}function DD(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=C2({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=C2({text:ID(e)}),t.success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}var kD={code:"0",name:"text",parse:e=>{if(typeof e!="string")throw new Error('"text" parts expect a string value.');return{type:"text",value:e}}},LD={code:"2",name:"data",parse:e=>{if(!Array.isArray(e))throw new Error('"data" parts expect an array value.');return{type:"data",value:e}}},MD={code:"3",name:"error",parse:e=>{if(typeof e!="string")throw new Error('"error" parts expect a string value.');return{type:"error",value:e}}},wD={code:"8",name:"message_annotations",parse:e=>{if(!Array.isArray(e))throw new Error('"message_annotations" parts expect an array value.');return{type:"message_annotations",value:e}}},BD={code:"9",name:"tool_call",parse:e=>{if(e==null||typeof e!="object"||!("toolCallId"in e)||typeof e.toolCallId!="string"||!("toolName"in e)||typeof e.toolName!="string"||!("args"in e)||typeof e.args!="object")throw new Error('"tool_call" parts expect an object with a "toolCallId", "toolName", and "args" property.');return{type:"tool_call",value:e}}},PD={code:"a",name:"tool_result",parse:e=>{if(e==null||typeof e!="object"||!("toolCallId"in e)||typeof e.toolCallId!="string"||!("result"in e))throw new Error('"tool_result" parts expect an object with a "toolCallId" and a "result" property.');return{type:"tool_result",value:e}}},UD={code:"b",name:"tool_call_streaming_start",parse:e=>{if(e==null||typeof e!="object"||!("toolCallId"in e)||typeof e.toolCallId!="string"||!("toolName"in e)||typeof e.toolName!="string")throw new Error('"tool_call_streaming_start" parts expect an object with a "toolCallId" and "toolName" property.');return{type:"tool_call_streaming_start",value:e}}},HD={code:"c",name:"tool_call_delta",parse:e=>{if(e==null||typeof e!="object"||!("toolCallId"in e)||typeof e.toolCallId!="string"||!("argsTextDelta"in e)||typeof e.argsTextDelta!="string")throw new Error('"tool_call_delta" parts expect an object with a "toolCallId" and "argsTextDelta" property.');return{type:"tool_call_delta",value:e}}},FD={code:"d",name:"finish_message",parse:e=>{if(e==null||typeof e!="object"||!("finishReason"in e)||typeof e.finishReason!="string")throw new Error('"finish_message" parts expect an object with a "finishReason" property.');const t={finishReason:e.finishReason};return"usage"in e&&e.usage!=null&&typeof e.usage=="object"&&"promptTokens"in e.usage&&"completionTokens"in e.usage&&(t.usage={promptTokens:typeof e.usage.promptTokens=="number"?e.usage.promptTokens:Number.NaN,completionTokens:typeof e.usage.completionTokens=="number"?e.usage.completionTokens:Number.NaN}),{type:"finish_message",value:t}}},zD={code:"e",name:"finish_step",parse:e=>{if(e==null||typeof e!="object"||!("finishReason"in e)||typeof e.finishReason!="string")throw new Error('"finish_step" parts expect an object with a "finishReason" property.');const t={finishReason:e.finishReason,isContinued:!1};return"usage"in e&&e.usage!=null&&typeof e.usage=="object"&&"promptTokens"in e.usage&&"completionTokens"in e.usage&&(t.usage={promptTokens:typeof e.usage.promptTokens=="number"?e.usage.promptTokens:Number.NaN,completionTokens:typeof e.usage.completionTokens=="number"?e.usage.completionTokens:Number.NaN}),"isContinued"in e&&typeof e.isContinued=="boolean"&&(t.isContinued=e.isContinued),{type:"finish_step",value:t}}},YD={code:"f",name:"start_step",parse:e=>{if(e==null||typeof e!="object"||!("messageId"in e)||typeof e.messageId!="string")throw new Error('"start_step" parts expect an object with an "id" property.');return{type:"start_step",value:{messageId:e.messageId}}}},jD={code:"g",name:"reasoning",parse:e=>{if(typeof e!="string")throw new Error('"reasoning" parts expect a string value.');return{type:"reasoning",value:e}}},qD={code:"h",name:"source",parse:e=>{if(e==null||typeof e!="object")throw new Error('"source" parts expect a Source object.');return{type:"source",value:e}}},VD={code:"i",name:"redacted_reasoning",parse:e=>{if(e==null||typeof e!="object"||!("data"in e)||typeof e.data!="string")throw new Error('"redacted_reasoning" parts expect an object with a "data" property.');return{type:"redacted_reasoning",value:{data:e.data}}}},GD={code:"j",name:"reasoning_signature",parse:e=>{if(e==null||typeof e!="object"||!("signature"in e)||typeof e.signature!="string")throw new Error('"reasoning_signature" parts expect an object with a "signature" property.');return{type:"reasoning_signature",value:{signature:e.signature}}}},$D={code:"k",name:"file",parse:e=>{if(e==null||typeof e!="object"||!("data"in e)||typeof e.data!="string"||!("mimeType"in e)||typeof e.mimeType!="string")throw new Error('"file" parts expect an object with a "data" and "mimeType" property.');return{type:"file",value:e}}},g0=[kD,LD,MD,wD,BD,PD,UD,HD,FD,zD,YD,jD,qD,VD,GD,$D],XD=Object.fromEntries(g0.map(e=>[e.code,e]));Object.fromEntries(g0.map(e=>[e.name,e.code]));var QD=g0.map(e=>e.code),KD=e=>{const t=e.indexOf(":");if(t===-1)throw new Error("Failed to parse stream string. No separator found.");const r=e.slice(0,t);if(!QD.includes(r))throw new Error(`Failed to parse stream string. Invalid code ${r}.`);const i=r,l=e.slice(t+1),s=JSON.parse(l);return XD[i].parse(s)},WD=10;function ZD(e,t){const r=new Uint8Array(t);let i=0;for(const l of e)r.set(l,i),i+=l.length;return e.length=0,r}async function JD({stream:e,onTextPart:t,onReasoningPart:r,onReasoningSignaturePart:i,onRedactedReasoningPart:l,onSourcePart:s,onFilePart:c,onDataPart:d,onErrorPart:p,onToolCallStreamingStartPart:m,onToolCallDeltaPart:b,onToolCallPart:E,onToolResultPart:T,onMessageAnnotationsPart:y,onFinishMessagePart:R,onFinishStepPart:x,onStartStepPart:U}){const D=e.getReader(),q=new TextDecoder,M=[];let P=0;for(;;){const{value:k}=await D.read();if(k&&(M.push(k),P+=k.length,k[k.length-1]!==WD))continue;if(M.length===0)break;const N=ZD(M,P);P=0;const Y=q.decode(N,{stream:!0}).split(`
|
|
226
|
-
`).filter(
|
|
219
|
+
`,hI=typeof E0!="string"?Pi`
|
|
220
|
+
animation: ${E0} 1.4s linear infinite;
|
|
221
|
+
`:null,pI=typeof y0!="string"?Pi`
|
|
222
|
+
animation: ${y0} 1.4s ease-in-out infinite;
|
|
223
|
+
`:null,mI=e=>{const{classes:t,variant:r,color:i,disableShrink:o}=e,s={root:["root",r,`color${st(i)}`],svg:["svg"],circle:["circle",`circle${st(r)}`,o&&"circleDisableShrink"]};return On(s,dI,t)},gI=mt("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${st(r.color)}`]]}})(Rn(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:hI||{animation:`${E0} 1.4s linear infinite`}},...Object.entries(e.palette).filter(ci()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),bI=mt("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),EI=mt("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${st(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(Rn(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:pI||{animation:`${y0} 1.4s ease-in-out infinite`}}]}))),yI=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:c=!1,size:d=40,style:h,thickness:p=3.6,value:b=0,variant:E="indeterminate",...T}=i,y={...i,color:s,disableShrink:c,size:d,thickness:p,value:b,variant:E},v=mI(y),x={},B={},O={};if(E==="determinate"){const P=2*Math.PI*((Ra-p)/2);x.strokeDasharray=P.toFixed(3),O["aria-valuenow"]=Math.round(b),x.strokeDashoffset=`${((100-b)/100*P).toFixed(3)}px`,B.transform="rotate(-90deg)"}return pe.jsx(gI,{className:tt(v.root,o),style:{width:d,height:d,...B,...h},ownerState:y,ref:r,role:"progressbar",...O,...T,children:pe.jsx(bI,{className:v.svg,ownerState:y,viewBox:`${Ra/2} ${Ra/2} ${Ra} ${Ra}`,children:pe.jsx(EI,{className:v.circle,style:x,ownerState:y,cx:Ra,cy:Ra,r:(Ra-p)/2,fill:"none",strokeWidth:p})})})});function TI(e){return _n("MuiIconButton",e)}const m2=vn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),SI=e=>{const{classes:t,disabled:r,color:i,edge:o,size:s,loading:c}=e,d={root:["root",c&&"loading",r&&"disabled",i!=="default"&&`color${st(i)}`,o&&`edge${st(o)}`,`size${st(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return On(d,TI,t)},CI=mt(c0,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${st(r.color)}`],r.edge&&t[`edge${st(r.edge)}`],t[`size${st(r.size)}`]]}})(Rn(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Io(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Rn(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(ci()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(ci()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Io((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${m2.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${m2.loading}`]:{color:"transparent"}}))),AI=mt("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),xI=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:c,color:d="default",disabled:h=!1,disableFocusRipple:p=!1,size:b="medium",id:E,loading:T=null,loadingIndicator:y,...v}=i,x=q8(E),B=y??pe.jsx(yI,{"aria-labelledby":x,color:"inherit",size:16}),O={...i,edge:o,color:d,disabled:h,disableFocusRipple:p,loading:T,loadingIndicator:B,size:b},P=SI(O);return pe.jsxs(CI,{id:T?x:E,className:tt(P.root,c),centerRipple:!0,focusRipple:!p,disabled:h||T,ref:r,...v,ownerState:O,children:[typeof T=="boolean"&&pe.jsx("span",{className:P.loadingWrapper,style:{display:"contents"},children:pe.jsx(AI,{className:P.loadingIndicator,ownerState:O,children:T&&B})}),s]})}),_I=si(pe.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),vI=si(pe.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),RI=si(pe.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),NI=si(pe.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),OI=si(pe.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),kI=e=>{const{variant:t,color:r,severity:i,classes:o}=e,s={root:["root",`color${st(r||i)}`,`${t}${st(r||i)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return On(s,fI,o)},II=mt(IE,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${st(r.color||r.severity)}`]]}})(Rn(({theme:e})=>{const t=e.palette.mode==="light"?Do:wo,r=e.palette.mode==="light"?wo:Do;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(ci(["light"])).map(([i])=>({props:{colorSeverity:i,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${i}Color`]:t(e.palette[i].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${i}StandardBg`]:r(e.palette[i].light,.9),[`& .${p2.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter(ci(["light"])).map(([i])=>({props:{colorSeverity:i,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${i}Color`]:t(e.palette[i].light,.6),border:`1px solid ${(e.vars||e).palette[i].light}`,[`& .${p2.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter(ci(["dark"])).map(([i])=>({props:{colorSeverity:i,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${i}FilledColor`],backgroundColor:e.vars.palette.Alert[`${i}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[i].dark:e.palette[i].main,color:e.palette.getContrastText(e.palette[i].main)}}}))]}})),DI=mt("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),wI=mt("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),LI=mt("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),g2={success:pe.jsx(_I,{fontSize:"inherit"}),warning:pe.jsx(vI,{fontSize:"inherit"}),error:pe.jsx(RI,{fontSize:"inherit"}),info:pe.jsx(NI,{fontSize:"inherit"})},MI=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiAlert"}),{action:o,children:s,className:c,closeText:d="Close",color:h,components:p={},componentsProps:b={},icon:E,iconMapping:T=g2,onClose:y,role:v="alert",severity:x="success",slotProps:B={},slots:O={},variant:P="standard",...L}=i,M={...i,color:h,severity:x,variant:P,colorSeverity:h||x},D=kI(M),N={slots:{closeButton:p.CloseButton,closeIcon:p.CloseIcon,...O},slotProps:{...b,...B}},[z,q]=en("root",{ref:r,shouldForwardComponentProp:!0,className:tt(D.root,c),elementType:II,externalForwardedProps:{...N,...L},ownerState:M,additionalProps:{role:v,elevation:0}}),[V,_]=en("icon",{className:D.icon,elementType:DI,externalForwardedProps:N,ownerState:M}),[j,$]=en("message",{className:D.message,elementType:wI,externalForwardedProps:N,ownerState:M}),[ee,X]=en("action",{className:D.action,elementType:LI,externalForwardedProps:N,ownerState:M}),[te,F]=en("closeButton",{elementType:xI,externalForwardedProps:N,ownerState:M}),[ie,Q]=en("closeIcon",{elementType:OI,externalForwardedProps:N,ownerState:M});return pe.jsxs(z,{...q,children:[E!==!1?pe.jsx(V,{..._,children:E||T[x]||g2[x]}):null,pe.jsx(j,{...$,children:s}),o!=null?pe.jsx(ee,{...X,children:o}):null,o==null&&y?pe.jsx(ee,{...X,children:pe.jsx(te,{size:"small","aria-label":d,title:d,color:"inherit",onClick:y,...F,children:pe.jsx(ie,{fontSize:"small",...Q})})}):null]})}),b2=(e,t)=>({info:e.custom.colors.blue,success:e.custom.colors.green,warning:e.custom.colors.orange,error:e.custom.colors.lightRed})[t],BI=He(MI)(({theme:e,severity:t})=>({padding:"11px 16px",borderRadius:4,borderWidth:2,borderStyle:"solid",borderColor:b2(e,t),background:"#FFF",".MuiAlert-message":{...e.typography.body2,color:e.custom.colors.darkGray2,alignSelf:"center"},"> div":{paddingTop:0,paddingBottom:0},".MuiAlert-icon":{marginRight:8,svg:{width:16,fill:b2(e,t)}},button:{padding:0,":hover":{margin:0,background:"none"}}})),PI=He.span({display:"none"}),UI=({visible:e=!0,severity:t="info",closable:r,children:i,className:o})=>{const[s,c]=A.useState(e),d=A.useId(),h=()=>{c(!1)};return A.useEffect(()=>{c(e)},[e]),s?A.createElement(BI,{severity:t,onClose:r?h:void 0,role:"alert","aria-describedby":d,className:o},i,A.createElement(PI,{id:d},t," message")):null},HI=He.div(({externalScroll:e,theme:t})=>({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 0",gap:"16px",color:t.custom.colors.white,borderRadius:"8px 8px 0 0",...e&&{position:"sticky",top:0,padding:"32px 0 26px",zIndex:2,backgroundColor:t.custom.colors.white,borderRadius:0}})),FI=He.div(({theme:e})=>({display:"flex",alignItems:"center",gap:"8px",color:e.custom.colors.darkGray2,img:{width:"24px",height:"24px"},svg:{fill:e.custom.colors.red,width:"24px",height:"24px"}})),zI=({askTimTitle:e,externalScroll:t,className:r})=>e?A.createElement(HI,{externalScroll:t,className:r},A.createElement(FI,null,A.createElement(Md,null),A.createElement(fi,{variant:"body1"},"Ask",A.createElement("strong",null,"TIM")," ",e))):null;var E2="vercel.ai.error",YI=Symbol.for(E2),y2,jI=class nC extends Error{constructor({name:t,message:r,cause:i}){super(r),this[y2]=!0,this.name=t,this.cause=i}static isInstance(t){return nC.hasMarker(t,E2)}static hasMarker(t,r){const i=Symbol.for(r);return t!=null&&typeof t=="object"&&i in t&&typeof t[i]=="boolean"&&t[i]===!0}};y2=YI;var ou=jI;function T2(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var S2="AI_InvalidArgumentError",C2=`vercel.ai.error.${S2}`,qI=Symbol.for(C2),A2,VI=class extends ou{constructor({message:e,cause:t,argument:r}){super({name:S2,message:e,cause:t}),this[A2]=!0,this.argument=r}static isInstance(e){return ou.hasMarker(e,C2)}};A2=qI;var x2="AI_JSONParseError",_2=`vercel.ai.error.${x2}`,GI=Symbol.for(_2),v2,R2=class extends ou{constructor({text:e,cause:t}){super({name:x2,message:`JSON parsing failed: Text: ${e}.
|
|
224
|
+
Error message: ${T2(t)}`,cause:t}),this[v2]=!0,this.text=e}static isInstance(e){return ou.hasMarker(e,_2)}};v2=GI;var N2="AI_TypeValidationError",O2=`vercel.ai.error.${N2}`,$I=Symbol.for(O2),k2,XI=class am extends ou{constructor({value:t,cause:r}){super({name:N2,message:`Type validation failed: Value: ${JSON.stringify(t)}.
|
|
225
|
+
Error message: ${T2(r)}`,cause:r}),this[k2]=!0,this.value=t}static isInstance(t){return ou.hasMarker(t,O2)}static wrap({value:t,cause:r}){return am.isInstance(r)&&r.value===t?r:new am({value:t,cause:r})}};k2=$I;var I2=XI;let QI=(e,t=21)=>(r=t)=>{let i="",o=r|0;for(;o--;)i+=e[Math.random()*e.length|0];return i};var di={exports:{}},D2;function KI(){if(D2)return di.exports;D2=1;const e=typeof Buffer<"u",t=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,r=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function i(d,h,p){p==null&&h!==null&&typeof h=="object"&&(p=h,h=void 0),e&&Buffer.isBuffer(d)&&(d=d.toString()),d&&d.charCodeAt(0)===65279&&(d=d.slice(1));const b=JSON.parse(d,h);if(b===null||typeof b!="object")return b;const E=p&&p.protoAction||"error",T=p&&p.constructorAction||"error";if(E==="ignore"&&T==="ignore")return b;if(E!=="ignore"&&T!=="ignore"){if(t.test(d)===!1&&r.test(d)===!1)return b}else if(E!=="ignore"&&T==="ignore"){if(t.test(d)===!1)return b}else if(r.test(d)===!1)return b;return o(b,{protoAction:E,constructorAction:T,safe:p&&p.safe})}function o(d,{protoAction:h="error",constructorAction:p="error",safe:b}={}){let E=[d];for(;E.length;){const T=E;E=[];for(const y of T){if(h!=="ignore"&&Object.prototype.hasOwnProperty.call(y,"__proto__")){if(b===!0)return null;if(h==="error")throw new SyntaxError("Object contains forbidden prototype property");delete y.__proto__}if(p!=="ignore"&&Object.prototype.hasOwnProperty.call(y,"constructor")&&Object.prototype.hasOwnProperty.call(y.constructor,"prototype")){if(b===!0)return null;if(p==="error")throw new SyntaxError("Object contains forbidden prototype property");delete y.constructor}for(const v in y){const x=y[v];x&&typeof x=="object"&&E.push(x)}}}return d}function s(d,h,p){const b=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return i(d,h,p)}finally{Error.stackTraceLimit=b}}function c(d,h){const p=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return i(d,h,{safe:!0})}catch{return null}finally{Error.stackTraceLimit=p}}return di.exports=s,di.exports.default=s,di.exports.parse=s,di.exports.safeParse=c,di.exports.scan=o,di.exports}var WI=KI();const ZI=or(WI);var JI=({prefix:e,size:t=16,alphabet:r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:i="-"}={})=>{const o=QI(r,t);if(e==null)return o;if(r.includes(i))throw new VI({argument:"separator",message:`The separator "${i}" must not be part of the alphabet "${r}".`});return s=>`${e}${i}${o(s)}`},T0=JI(),S0=Symbol.for("vercel.ai.validator");function eD(e){return{[S0]:!0,validate:e}}function tD(e){return typeof e=="object"&&e!==null&&S0 in e&&e[S0]===!0&&"validate"in e}function nD(e){return tD(e)?e:rD(e)}function rD(e){return eD(t=>{const r=e.safeParse(t);return r.success?{success:!0,value:r.data}:{success:!1,error:r.error}})}function aD({value:e,schema:t}){const r=nD(t);try{if(r.validate==null)return{success:!0,value:e};const i=r.validate(e);return i.success?i:{success:!1,error:I2.wrap({value:e,cause:i.error})}}catch(i){return{success:!1,error:I2.wrap({value:e,cause:i})}}}function w2({text:e,schema:t}){try{const r=ZI.parse(e);if(t==null)return{success:!0,value:r,rawValue:r};const i=aD({value:r,schema:t});return i.success?{...i,rawValue:r}:i}catch(r){return{success:!1,error:R2.isInstance(r)?r:new R2({text:e,cause:r})}}}new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");var Fo={code:"0",name:"text",parse:e=>{if(typeof e!="string")throw new Error('"text" parts expect a string value.');return{type:"text",value:e}}},zo={code:"3",name:"error",parse:e=>{if(typeof e!="string")throw new Error('"error" parts expect a string value.');return{type:"error",value:e}}},Yo={code:"4",name:"assistant_message",parse:e=>{if(e==null||typeof e!="object"||!("id"in e)||!("role"in e)||!("content"in e)||typeof e.id!="string"||typeof e.role!="string"||e.role!=="assistant"||!Array.isArray(e.content)||!e.content.every(t=>t!=null&&typeof t=="object"&&"type"in t&&t.type==="text"&&"text"in t&&t.text!=null&&typeof t.text=="object"&&"value"in t.text&&typeof t.text.value=="string"))throw new Error('"assistant_message" parts expect an object with an "id", "role", and "content" property.');return{type:"assistant_message",value:e}}},jo={code:"5",name:"assistant_control_data",parse:e=>{if(e==null||typeof e!="object"||!("threadId"in e)||!("messageId"in e)||typeof e.threadId!="string"||typeof e.messageId!="string")throw new Error('"assistant_control_data" parts expect an object with a "threadId" and "messageId" property.');return{type:"assistant_control_data",value:{threadId:e.threadId,messageId:e.messageId}}}},qo={code:"6",name:"data_message",parse:e=>{if(e==null||typeof e!="object"||!("role"in e)||!("data"in e)||typeof e.role!="string"||e.role!=="data")throw new Error('"data_message" parts expect an object with a "role" and "data" property.');return{type:"data_message",value:e}}},iD=[Fo,zo,Yo,jo,qo];Fo.code+"",zo.code+"",Yo.code+"",jo.code+"",qo.code+"",Fo.name+"",Fo.code,zo.name+"",zo.code,Yo.name+"",Yo.code,jo.name+"",jo.code,qo.name+"",qo.code,iD.map(e=>e.code);function uD({promptTokens:e,completionTokens:t}){return{promptTokens:e,completionTokens:t,totalTokens:e+t}}function oD(e){const t=["ROOT"];let r=-1,i=null;function o(h,p,b){switch(h){case'"':{r=p,t.pop(),t.push(b),t.push("INSIDE_STRING");break}case"f":case"t":case"n":{r=p,i=p,t.pop(),t.push(b),t.push("INSIDE_LITERAL");break}case"-":{t.pop(),t.push(b),t.push("INSIDE_NUMBER");break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{r=p,t.pop(),t.push(b),t.push("INSIDE_NUMBER");break}case"{":{r=p,t.pop(),t.push(b),t.push("INSIDE_OBJECT_START");break}case"[":{r=p,t.pop(),t.push(b),t.push("INSIDE_ARRAY_START");break}}}function s(h,p){switch(h){case",":{t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{r=p,t.pop();break}}}function c(h,p){switch(h){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=p,t.pop();break}}}for(let h=0;h<e.length;h++){const p=e[h];switch(t[t.length-1]){case"ROOT":o(p,h,"FINISH");break;case"INSIDE_OBJECT_START":{switch(p){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}case"}":{r=h,t.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{switch(p){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}}break}case"INSIDE_OBJECT_KEY":{switch(p){case'"':{t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY");break}}break}case"INSIDE_OBJECT_AFTER_KEY":{switch(p){case":":{t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE");break}}break}case"INSIDE_OBJECT_BEFORE_VALUE":{o(p,h,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{s(p,h);break}case"INSIDE_STRING":{switch(p){case'"':{t.pop(),r=h;break}case"\\":{t.push("INSIDE_STRING_ESCAPE");break}default:r=h}break}case"INSIDE_ARRAY_START":{switch(p){case"]":{r=h,t.pop();break}default:{r=h,o(p,h,"INSIDE_ARRAY_AFTER_VALUE");break}}break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(p){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=h,t.pop();break}default:{r=h;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{o(p,h,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{t.pop(),r=h;break}case"INSIDE_NUMBER":{switch(p){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{r=h;break}case"e":case"E":case"-":case".":break;case",":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&c(p,h),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(p,h);break}case"}":{t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(p,h);break}case"]":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&c(p,h);break}default:{t.pop();break}}break}case"INSIDE_LITERAL":{const E=e.substring(i,h+1);!"false".startsWith(E)&&!"true".startsWith(E)&&!"null".startsWith(E)?(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?s(p,h):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&c(p,h)):r=h;break}}}let d=e.slice(0,r+1);for(let h=t.length-1;h>=0;h--)switch(t[h]){case"INSIDE_STRING":{d+='"';break}case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":{d+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{d+="]";break}case"INSIDE_LITERAL":{const b=e.substring(i,e.length);"true".startsWith(b)?d+="true".slice(b.length):"false".startsWith(b)?d+="false".slice(b.length):"null".startsWith(b)&&(d+="null".slice(b.length))}}return d}function lD(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=w2({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=w2({text:oD(e)}),t.success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}var sD={code:"0",name:"text",parse:e=>{if(typeof e!="string")throw new Error('"text" parts expect a string value.');return{type:"text",value:e}}},cD={code:"2",name:"data",parse:e=>{if(!Array.isArray(e))throw new Error('"data" parts expect an array value.');return{type:"data",value:e}}},fD={code:"3",name:"error",parse:e=>{if(typeof e!="string")throw new Error('"error" parts expect a string value.');return{type:"error",value:e}}},dD={code:"8",name:"message_annotations",parse:e=>{if(!Array.isArray(e))throw new Error('"message_annotations" parts expect an array value.');return{type:"message_annotations",value:e}}},hD={code:"9",name:"tool_call",parse:e=>{if(e==null||typeof e!="object"||!("toolCallId"in e)||typeof e.toolCallId!="string"||!("toolName"in e)||typeof e.toolName!="string"||!("args"in e)||typeof e.args!="object")throw new Error('"tool_call" parts expect an object with a "toolCallId", "toolName", and "args" property.');return{type:"tool_call",value:e}}},pD={code:"a",name:"tool_result",parse:e=>{if(e==null||typeof e!="object"||!("toolCallId"in e)||typeof e.toolCallId!="string"||!("result"in e))throw new Error('"tool_result" parts expect an object with a "toolCallId" and a "result" property.');return{type:"tool_result",value:e}}},mD={code:"b",name:"tool_call_streaming_start",parse:e=>{if(e==null||typeof e!="object"||!("toolCallId"in e)||typeof e.toolCallId!="string"||!("toolName"in e)||typeof e.toolName!="string")throw new Error('"tool_call_streaming_start" parts expect an object with a "toolCallId" and "toolName" property.');return{type:"tool_call_streaming_start",value:e}}},gD={code:"c",name:"tool_call_delta",parse:e=>{if(e==null||typeof e!="object"||!("toolCallId"in e)||typeof e.toolCallId!="string"||!("argsTextDelta"in e)||typeof e.argsTextDelta!="string")throw new Error('"tool_call_delta" parts expect an object with a "toolCallId" and "argsTextDelta" property.');return{type:"tool_call_delta",value:e}}},bD={code:"d",name:"finish_message",parse:e=>{if(e==null||typeof e!="object"||!("finishReason"in e)||typeof e.finishReason!="string")throw new Error('"finish_message" parts expect an object with a "finishReason" property.');const t={finishReason:e.finishReason};return"usage"in e&&e.usage!=null&&typeof e.usage=="object"&&"promptTokens"in e.usage&&"completionTokens"in e.usage&&(t.usage={promptTokens:typeof e.usage.promptTokens=="number"?e.usage.promptTokens:Number.NaN,completionTokens:typeof e.usage.completionTokens=="number"?e.usage.completionTokens:Number.NaN}),{type:"finish_message",value:t}}},ED={code:"e",name:"finish_step",parse:e=>{if(e==null||typeof e!="object"||!("finishReason"in e)||typeof e.finishReason!="string")throw new Error('"finish_step" parts expect an object with a "finishReason" property.');const t={finishReason:e.finishReason,isContinued:!1};return"usage"in e&&e.usage!=null&&typeof e.usage=="object"&&"promptTokens"in e.usage&&"completionTokens"in e.usage&&(t.usage={promptTokens:typeof e.usage.promptTokens=="number"?e.usage.promptTokens:Number.NaN,completionTokens:typeof e.usage.completionTokens=="number"?e.usage.completionTokens:Number.NaN}),"isContinued"in e&&typeof e.isContinued=="boolean"&&(t.isContinued=e.isContinued),{type:"finish_step",value:t}}},yD={code:"f",name:"start_step",parse:e=>{if(e==null||typeof e!="object"||!("messageId"in e)||typeof e.messageId!="string")throw new Error('"start_step" parts expect an object with an "id" property.');return{type:"start_step",value:{messageId:e.messageId}}}},TD={code:"g",name:"reasoning",parse:e=>{if(typeof e!="string")throw new Error('"reasoning" parts expect a string value.');return{type:"reasoning",value:e}}},SD={code:"h",name:"source",parse:e=>{if(e==null||typeof e!="object")throw new Error('"source" parts expect a Source object.');return{type:"source",value:e}}},CD={code:"i",name:"redacted_reasoning",parse:e=>{if(e==null||typeof e!="object"||!("data"in e)||typeof e.data!="string")throw new Error('"redacted_reasoning" parts expect an object with a "data" property.');return{type:"redacted_reasoning",value:{data:e.data}}}},AD={code:"j",name:"reasoning_signature",parse:e=>{if(e==null||typeof e!="object"||!("signature"in e)||typeof e.signature!="string")throw new Error('"reasoning_signature" parts expect an object with a "signature" property.');return{type:"reasoning_signature",value:{signature:e.signature}}}},xD={code:"k",name:"file",parse:e=>{if(e==null||typeof e!="object"||!("data"in e)||typeof e.data!="string"||!("mimeType"in e)||typeof e.mimeType!="string")throw new Error('"file" parts expect an object with a "data" and "mimeType" property.');return{type:"file",value:e}}},C0=[sD,cD,fD,dD,hD,pD,mD,gD,bD,ED,yD,TD,SD,CD,AD,xD],_D=Object.fromEntries(C0.map(e=>[e.code,e]));Object.fromEntries(C0.map(e=>[e.name,e.code]));var vD=C0.map(e=>e.code),RD=e=>{const t=e.indexOf(":");if(t===-1)throw new Error("Failed to parse stream string. No separator found.");const r=e.slice(0,t);if(!vD.includes(r))throw new Error(`Failed to parse stream string. Invalid code ${r}.`);const i=r,o=e.slice(t+1),s=JSON.parse(o);return _D[i].parse(s)},ND=10;function OD(e,t){const r=new Uint8Array(t);let i=0;for(const o of e)r.set(o,i),i+=o.length;return e.length=0,r}async function kD({stream:e,onTextPart:t,onReasoningPart:r,onReasoningSignaturePart:i,onRedactedReasoningPart:o,onSourcePart:s,onFilePart:c,onDataPart:d,onErrorPart:h,onToolCallStreamingStartPart:p,onToolCallDeltaPart:b,onToolCallPart:E,onToolResultPart:T,onMessageAnnotationsPart:y,onFinishMessagePart:v,onFinishStepPart:x,onStartStepPart:B}){const O=e.getReader(),P=new TextDecoder,L=[];let M=0;for(;;){const{value:D}=await O.read();if(D&&(L.push(D),M+=D.length,D[D.length-1]!==ND))continue;if(L.length===0)break;const N=OD(L,M);M=0;const z=P.decode(N,{stream:!0}).split(`
|
|
226
|
+
`).filter(q=>q!=="").map(RD);for(const{type:q,value:V}of z)switch(q){case"text":await(t==null?void 0:t(V));break;case"reasoning":await(r==null?void 0:r(V));break;case"reasoning_signature":await(i==null?void 0:i(V));break;case"redacted_reasoning":await(o==null?void 0:o(V));break;case"file":await(c==null?void 0:c(V));break;case"source":await(s==null?void 0:s(V));break;case"data":await(d==null?void 0:d(V));break;case"error":await(h==null?void 0:h(V));break;case"message_annotations":await(y==null?void 0:y(V));break;case"tool_call_streaming_start":await(p==null?void 0:p(V));break;case"tool_call_delta":await(b==null?void 0:b(V));break;case"tool_call":await(E==null?void 0:E(V));break;case"tool_result":await(T==null?void 0:T(V));break;case"finish_message":await(v==null?void 0:v(V));break;case"finish_step":await(x==null?void 0:x(V));break;case"start_step":await(B==null?void 0:B(V));break;default:{const _=q;throw new Error(`Unknown stream part type: ${_}`)}}}}async function ID({stream:e,update:t,onToolCall:r,onFinish:i,generateId:o=T0,getCurrentDate:s=()=>new Date,lastMessage:c}){var d,h;const p=(c==null?void 0:c.role)==="assistant";let b=p?1+((h=(d=c.toolInvocations)==null?void 0:d.reduce((N,z)=>{var q;return Math.max(N,(q=z.step)!=null?q:0)},0))!=null?h:0):0;const E=p?structuredClone(c):{id:o(),createdAt:s(),role:"assistant",content:"",parts:[]};let T,y,v;function x(N,z){const q=E.parts.find(V=>V.type==="tool-invocation"&&V.toolInvocation.toolCallId===N);q!=null?q.toolInvocation=z:E.parts.push({type:"tool-invocation",toolInvocation:z})}const B=[];let O=p?c==null?void 0:c.annotations:void 0;const P={};let L={completionTokens:NaN,promptTokens:NaN,totalTokens:NaN},M="unknown";function D(){const N=[...B];O!=null&&O.length&&(E.annotations=O);const z={...structuredClone(E),revisionId:o()};t({message:z,data:N,replaceLastMessage:p})}await kD({stream:e,onTextPart(N){T==null?(T={type:"text",text:N},E.parts.push(T)):T.text+=N,E.content+=N,D()},onReasoningPart(N){var z;v==null?(v={type:"text",text:N},y!=null&&y.details.push(v)):v.text+=N,y==null?(y={type:"reasoning",reasoning:N,details:[v]},E.parts.push(y)):y.reasoning+=N,E.reasoning=((z=E.reasoning)!=null?z:"")+N,D()},onReasoningSignaturePart(N){v!=null&&(v.signature=N.signature)},onRedactedReasoningPart(N){y==null&&(y={type:"reasoning",reasoning:"",details:[]},E.parts.push(y)),y.details.push({type:"redacted",data:N.data}),v=void 0,D()},onFilePart(N){E.parts.push({type:"file",mimeType:N.mimeType,data:N.data}),D()},onSourcePart(N){E.parts.push({type:"source",source:N}),D()},onToolCallStreamingStartPart(N){E.toolInvocations==null&&(E.toolInvocations=[]),P[N.toolCallId]={text:"",step:b,toolName:N.toolName,index:E.toolInvocations.length};const z={state:"partial-call",step:b,toolCallId:N.toolCallId,toolName:N.toolName,args:void 0};E.toolInvocations.push(z),x(N.toolCallId,z),D()},onToolCallDeltaPart(N){const z=P[N.toolCallId];z.text+=N.argsTextDelta;const{value:q}=lD(z.text),V={state:"partial-call",step:z.step,toolCallId:N.toolCallId,toolName:z.toolName,args:q};E.toolInvocations[z.index]=V,x(N.toolCallId,V),D()},async onToolCallPart(N){const z={state:"call",step:b,...N};if(P[N.toolCallId]!=null?E.toolInvocations[P[N.toolCallId].index]=z:(E.toolInvocations==null&&(E.toolInvocations=[]),E.toolInvocations.push(z)),x(N.toolCallId,z),D(),r){const q=await r({toolCall:N});if(q!=null){const V={state:"result",step:b,...N,result:q};E.toolInvocations[E.toolInvocations.length-1]=V,x(N.toolCallId,V),D()}}},onToolResultPart(N){const z=E.toolInvocations;if(z==null)throw new Error("tool_result must be preceded by a tool_call");const q=z.findIndex(_=>_.toolCallId===N.toolCallId);if(q===-1)throw new Error("tool_result must be preceded by a tool_call with the same toolCallId");const V={...z[q],state:"result",...N};z[q]=V,x(N.toolCallId,V),D()},onDataPart(N){B.push(...N),D()},onMessageAnnotationsPart(N){O==null?O=[...N]:O.push(...N),D()},onFinishStepPart(N){b+=1,T=N.isContinued?T:void 0,y=void 0,v=void 0},onStartStepPart(N){p||(E.id=N.messageId),E.parts.push({type:"step-start"}),D()},onFinishMessagePart(N){M=N.finishReason,N.usage!=null&&(L=uD(N.usage))},onErrorPart(N){throw new Error(N)}}),i==null||i({message:E,finishReason:M,usage:L})}async function DD({stream:e,onTextPart:t}){const r=e.pipeThrough(new TextDecoderStream).getReader();for(;;){const{done:i,value:o}=await r.read();if(i)break;await t(o)}}async function wD({stream:e,update:t,onFinish:r,getCurrentDate:i=()=>new Date,generateId:o=T0}){const s={type:"text",text:""},c={id:o(),createdAt:i(),role:"assistant",content:"",parts:[s]};await DD({stream:e,onTextPart:d=>{c.content+=d,s.text+=d,t({message:{...c},data:[],replaceLastMessage:!1})}}),r==null||r(c,{usage:{completionTokens:NaN,promptTokens:NaN,totalTokens:NaN},finishReason:"unknown"})}var LD=()=>fetch;async function MD({api:e,body:t,streamProtocol:r="data",credentials:i,headers:o,abortController:s,restoreMessagesOnFailure:c,onResponse:d,onUpdate:h,onFinish:p,onToolCall:b,generateId:E,fetch:T=LD(),lastMessage:y,requestType:v="generate"}){var x,B,O;const L=await(v==="resume"?T(`${e}?chatId=${t.id}`,{method:"GET",headers:{"Content-Type":"application/json",...o},signal:(x=s==null?void 0:s())==null?void 0:x.signal,credentials:i}):T(e,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",...o},signal:(B=s==null?void 0:s())==null?void 0:B.signal,credentials:i})).catch(M=>{throw c(),M});if(d)try{await d(L)}catch(M){throw M}if(!L.ok)throw c(),new Error((O=await L.text())!=null?O:"Failed to fetch the chat response.");if(!L.body)throw new Error("The response body is empty.");switch(r){case"text":{await wD({stream:L.body,update:h,onFinish:p,generateId:E});return}case"data":{await ID({stream:L.body,update:h,lastMessage:y,onToolCall:b,onFinish({message:M,finishReason:D,usage:N}){p&&M!=null&&p(M,{usage:N,finishReason:D})},generateId:E});return}default:{const M=r;throw new Error(`Unknown stream protocol: ${M}`)}}}function A0(e){return e==null?void 0:e.reduce((t,r)=>{var i;return Math.max(t,(i=r.step)!=null?i:0)},0)}function L2(e){var t;return(t=e.parts)!=null?t:[...e.toolInvocations?e.toolInvocations.map(r=>({type:"tool-invocation",toolInvocation:r})):[],...e.reasoning?[{type:"reasoning",reasoning:e.reasoning,details:[{type:"text",text:e.reasoning}]}]:[],...e.content?[{type:"text",text:e.content}]:[]]}function x0(e){return e.map(t=>({...t,parts:L2(t)}))}function _0(e,t){if(e===t)return!0;if(e==null||t==null)return!1;if(typeof e!="object"&&typeof t!="object")return e===t;if(e.constructor!==t.constructor)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(Array.isArray(e)){if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!_0(e[o],t[o]))return!1;return!0}const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(const o of r)if(!i.includes(o)||!_0(e[o],t[o]))return!1;return!0}async function M2(e){if(!e)return[];if(globalThis.FileList&&e instanceof globalThis.FileList)return Promise.all(Array.from(e).map(async t=>{const{name:r,type:i}=t,o=await new Promise((s,c)=>{const d=new FileReader;d.onload=h=>{var p;s((p=h.target)==null?void 0:p.result)},d.onerror=h=>c(h),d.readAsDataURL(t)});return{name:r,contentType:i,url:o}}));if(Array.isArray(e))return e;throw new Error("Invalid attachments type")}function BD({originalMaxToolInvocationStep:e,originalMessageCount:t,maxSteps:r,messages:i}){var o;const s=i[i.length-1];return r>1&&s!=null&&(i.length>t||A0(s.toolInvocations)!==e)&&B2(s)&&((o=A0(s.toolInvocations))!=null?o:0)<r}function B2(e){if(e.role!=="assistant")return!1;const t=e.parts.reduce((i,o,s)=>o.type==="step-start"?s:i,-1),r=e.parts.slice(t+1).filter(i=>i.type==="tool-invocation");return r.length>0&&r.every(i=>"result"in i.toolInvocation)}function PD({messages:e,toolCallId:t,toolResult:r}){var i;const o=e[e.length-1],s=o.parts.find(d=>d.type==="tool-invocation"&&d.toolInvocation.toolCallId===t);if(s==null)return;const c={...s.toolInvocation,state:"result",result:r};s.toolInvocation=c,o.toolInvocations=(i=o.toolInvocations)==null?void 0:i.map(d=>d.toolCallId===t?c:d)}var v0={exports:{}},R0={};/**
|
|
227
227
|
* @license React
|
|
228
228
|
* use-sync-external-store-shim.production.js
|
|
229
229
|
*
|
|
@@ -231,4 +231,10 @@ Error message: ${s2(r)}`,cause:r}),this[y2]=!0,this.value=t}static isInstance(t)
|
|
|
231
231
|
*
|
|
232
232
|
* This source code is licensed under the MIT license found in the
|
|
233
233
|
* LICENSE file in the root directory of this source tree.
|
|
234
|
-
*/var v2;function lk(){if(v2)return S0;v2=1;var e=qo();function t(E,T){return E===T&&(E!==0||1/E===1/T)||E!==E&&T!==T}var r=typeof Object.is=="function"?Object.is:t,i=e.useState,l=e.useEffect,s=e.useLayoutEffect,c=e.useDebugValue;function d(E,T){var y=T(),R=i({inst:{value:y,getSnapshot:T}}),x=R[0].inst,U=R[1];return s(function(){x.value=y,x.getSnapshot=T,p(x)&&U({inst:x})},[E,y,T]),l(function(){return p(x)&&U({inst:x}),E(function(){p(x)&&U({inst:x})})},[E]),c(y),y}function p(E){var T=E.getSnapshot;E=E.value;try{var y=T();return!r(E,y)}catch{return!0}}function m(E,T){return T()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:d;return S0.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:b,S0}var R2;function ok(){return R2||(R2=1,T0.exports=lk()),T0.exports}var sk=ok();const N2=0,O2=1,I2=2,D2=3;var k2=Object.prototype.hasOwnProperty;function C0(e,t){var r,i;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((i=e.length)===t.length)for(;i--&&C0(e[i],t[i]););return i===-1}if(!r||typeof e=="object"){i=0;for(r in e)if(k2.call(e,r)&&++i&&!k2.call(t,r)||!(r in t)||!C0(e[r],t[r]))return!1;return Object.keys(t).length===i}}return e!==e&&t!==t}const Jr=new WeakMap,Na=()=>{},Dn=Na(),A0=Object,st=e=>e===Dn,jr=e=>typeof e=="function",Oa=(e,t)=>({...e,...t}),L2=e=>jr(e.then),_0={},$s={},x0="undefined",Yl=typeof window!=x0,v0=typeof document!=x0,ck=Yl&&"Deno"in window,fk=()=>Yl&&typeof window.requestAnimationFrame!=x0,M2=(e,t)=>{const r=Jr.get(e);return[()=>!st(t)&&e.get(t)||_0,i=>{if(!st(t)){const l=e.get(t);t in $s||($s[t]=l),r[5](t,Oa(l,i),l||_0)}},r[6],()=>!st(t)&&t in $s?$s[t]:!st(t)&&e.get(t)||_0]};let R0=!0;const dk=()=>R0,[N0,O0]=Yl&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Na,Na],hk=()=>{const e=v0&&document.visibilityState;return st(e)||e!=="hidden"},pk=e=>(v0&&document.addEventListener("visibilitychange",e),N0("focus",e),()=>{v0&&document.removeEventListener("visibilitychange",e),O0("focus",e)}),mk=e=>{const t=()=>{R0=!0,e()},r=()=>{R0=!1};return N0("online",t),N0("offline",r),()=>{O0("online",t),O0("offline",r)}},gk={isOnline:dk,isVisible:hk},bk={initFocus:pk,initReconnect:mk},w2=!Ot.useId,jl=!Yl||ck,Ek=e=>fk()?window.requestAnimationFrame(e):setTimeout(e,1),I0=jl?A.useEffect:A.useLayoutEffect,D0=typeof navigator<"u"&&navigator.connection,B2=!jl&&D0&&(["slow-2g","2g"].includes(D0.effectiveType)||D0.saveData),Xs=new WeakMap,k0=(e,t)=>A0.prototype.toString.call(e)===`[object ${t}]`;let yk=0;const L0=e=>{const t=typeof e,r=k0(e,"Date"),i=k0(e,"RegExp"),l=k0(e,"Object");let s,c;if(A0(e)===e&&!r&&!i){if(s=Xs.get(e),s)return s;if(s=++yk+"~",Xs.set(e,s),Array.isArray(e)){for(s="@",c=0;c<e.length;c++)s+=L0(e[c])+",";Xs.set(e,s)}if(l){s="#";const d=A0.keys(e).sort();for(;!st(c=d.pop());)st(e[c])||(s+=c+":"+L0(e[c])+",");Xs.set(e,s)}}else s=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return s},M0=e=>{if(jr(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?L0(e):"",[e,t]};let Tk=0;const w0=()=>++Tk;async function P2(...e){const[t,r,i,l]=e,s=Oa({populateCache:!0,throwOnError:!0},typeof l=="boolean"?{revalidate:l}:l||{});let c=s.populateCache;const d=s.rollbackOnError;let p=s.optimisticData;const m=T=>typeof d=="function"?d(T):d!==!1,b=s.throwOnError;if(jr(r)){const T=r,y=[],R=t.keys();for(const x of R)!/^\$(inf|sub)\$/.test(x)&&T(t.get(x)._k)&&y.push(x);return Promise.all(y.map(E))}return E(r);async function E(T){const[y]=M0(T);if(!y)return;const[R,x]=M2(t,y),[U,D,q,M]=Jr.get(t),P=()=>{const Z=U[y];return(jr(s.revalidate)?s.revalidate(R().data,T):s.revalidate!==!1)&&(delete q[y],delete M[y],Z&&Z[0])?Z[0](I2).then(()=>R().data):R().data};if(e.length<3)return P();let k=i,N;const Y=w0();D[y]=[Y,0];const j=!st(p),G=R(),_=G.data,z=G._c,$=st(z)?_:z;if(j&&(p=jr(p)?p($,_):p,x({data:p,_c:$})),jr(k))try{k=k($)}catch(Z){N=Z}if(k&&L2(k))if(k=await k.catch(Z=>{N=Z}),Y!==D[y][0]){if(N)throw N;return k}else N&&j&&m(N)&&(c=!0,x({data:$,_c:Dn}));if(c&&!N)if(jr(c)){const Z=c(k,$);x({data:Z,error:Dn,_c:Dn})}else x({data:k,error:Dn,_c:Dn});if(D[y][1]=w0(),Promise.resolve(P()).then(()=>{x({_c:Dn})}),N){if(b)throw N;return}return k}}const U2=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},Sk=(e,t)=>{if(!Jr.has(e)){const r=Oa(bk,t),i=Object.create(null),l=P2.bind(Dn,e);let s=Na;const c=Object.create(null),d=(b,E)=>{const T=c[b]||[];return c[b]=T,T.push(E),()=>T.splice(T.indexOf(E),1)},p=(b,E,T)=>{e.set(b,E);const y=c[b];if(y)for(const R of y)R(E,T)},m=()=>{if(!Jr.has(e)&&(Jr.set(e,[i,Object.create(null),Object.create(null),Object.create(null),l,p,d]),!jl)){const b=r.initFocus(setTimeout.bind(Dn,U2.bind(Dn,i,N2))),E=r.initReconnect(setTimeout.bind(Dn,U2.bind(Dn,i,O2)));s=()=>{b&&b(),E&&E(),Jr.delete(e)}}};return m(),[e,l,m,s]}return[e,Jr.get(e)[4]]},Ck=(e,t,r,i,l)=>{const s=r.errorRetryCount,c=l.retryCount,d=~~((Math.random()+.5)*(1<<(c<8?c:8)))*r.errorRetryInterval;!st(s)&&c>s||setTimeout(i,d,l)},Ak=C0,[H2,_k]=Sk(new Map),xk=Oa({onLoadingSlow:Na,onSuccess:Na,onError:Na,onErrorRetry:Ck,onDiscarded:Na,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:B2?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:B2?5e3:3e3,compare:Ak,isPaused:()=>!1,cache:H2,mutate:_k,fallback:{}},gk),vk=(e,t)=>{const r=Oa(e,t);if(t){const{use:i,fallback:l}=e,{use:s,fallback:c}=t;i&&s&&(r.use=i.concat(s)),l&&c&&(r.fallback=Oa(l,c))}return r},Rk=A.createContext({}),Nk="$inf$",F2=Yl&&window.__SWR_DEVTOOLS_USE__,Ok=F2?window.__SWR_DEVTOOLS_USE__:[],Ik=()=>{F2&&(window.__SWR_DEVTOOLS_REACT__=Ot)},Dk=e=>jr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],kk=()=>Oa(xk,A.useContext(Rk)),Lk=e=>(t,r,i)=>e(t,r&&((...s)=>{const[c]=M0(t),[,,,d]=Jr.get(H2);if(c.startsWith(Nk))return r(...s);const p=d[c];return st(p)?r(...s):(delete d[c],p)}),i),Mk=Ok.concat(Lk),wk=e=>function(...r){const i=kk(),[l,s,c]=Dk(r),d=vk(i,c);let p=e;const{use:m}=d,b=(m||[]).concat(Mk);for(let E=b.length;E--;)p=b[E](p);return p(l,s||d.fetcher||null,d)},Bk=(e,t,r)=>{const i=t[e]||(t[e]=[]);return i.push(r),()=>{const l=i.indexOf(r);l>=0&&(i[l]=i[i.length-1],i.pop())}};Ik();const B0=Ot.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),P0={dedupe:!0},Qs=wk((e,t,r)=>{const{cache:i,compare:l,suspense:s,fallbackData:c,revalidateOnMount:d,revalidateIfStale:p,refreshInterval:m,refreshWhenHidden:b,refreshWhenOffline:E,keepPreviousData:T}=r,[y,R,x,U]=Jr.get(i),[D,q]=M0(e),M=A.useRef(!1),P=A.useRef(!1),k=A.useRef(D),N=A.useRef(t),Y=A.useRef(r),j=()=>Y.current,G=()=>j().isVisible()&&j().isOnline(),[_,z,$,Z]=M2(i,D),X=A.useRef({}).current,te=st(c)?st(r.fallback)?Dn:r.fallback[D]:c,H=(Oe,Se)=>{for(const Fe in X){const Ve=Fe;if(Ve==="data"){if(!l(Oe[Ve],Se[Ve])&&(!st(Oe[Ve])||!l(Ne,Se[Ve])))return!1}else if(Se[Ve]!==Oe[Ve])return!1}return!0},Q=A.useMemo(()=>{const Oe=!D||!t?!1:st(d)?j().isPaused()||s?!1:p!==!1:d,Se=nt=>{const Et=Oa(nt);return delete Et._k,Oe?{isValidating:!0,isLoading:!0,...Et}:Et},Fe=_(),Ve=Z(),ke=Se(Fe),Le=Fe===Ve?ke:Se(Ve);let je=ke;return[()=>{const nt=Se(_());return H(nt,je)?(je.data=nt.data,je.isLoading=nt.isLoading,je.isValidating=nt.isValidating,je.error=nt.error,je):(je=nt,nt)},()=>Le]},[i,D]),ie=sk.useSyncExternalStore(A.useCallback(Oe=>$(D,(Se,Fe)=>{H(Fe,Se)||Oe()}),[i,D]),Q[0],Q[1]),me=!M.current,C=y[D]&&y[D].length>0,J=ie.data,fe=st(J)?te&&L2(te)?B0(te):te:J,O=ie.error,be=A.useRef(fe),Ne=T?st(J)?st(be.current)?fe:be.current:J:fe,Ee=C&&!st(O)?!1:me&&!st(d)?d:j().isPaused()?!1:s?st(fe)?!1:p:st(fe)||p,Ke=!!(D&&t&&me&&Ee),Me=st(ie.isValidating)?Ke:ie.isValidating,lt=st(ie.isLoading)?Ke:ie.isLoading,yt=A.useCallback(async Oe=>{const Se=N.current;if(!D||!Se||P.current||j().isPaused())return!1;let Fe,Ve,ke=!0;const Le=Oe||{},je=!x[D]||!Le.dedupe,nt=()=>w2?!P.current&&D===k.current&&M.current:D===k.current,Et={isValidating:!1,isLoading:!1},Ie=()=>{z(Et)},nn=()=>{const Tt=x[D];Tt&&Tt[1]===Ve&&delete x[D]},Pt={isValidating:!0};st(_().data)&&(Pt.isLoading=!0);try{if(je&&(z(Pt),r.loadingTimeout&&st(_().data)&&setTimeout(()=>{ke&&nt()&&j().onLoadingSlow(D,r)},r.loadingTimeout),x[D]=[Se(q),w0()]),[Fe,Ve]=x[D],Fe=await Fe,je&&setTimeout(nn,r.dedupingInterval),!x[D]||x[D][1]!==Ve)return je&&nt()&&j().onDiscarded(D),!1;Et.error=Dn;const Tt=R[D];if(!st(Tt)&&(Ve<=Tt[0]||Ve<=Tt[1]||Tt[1]===0))return Ie(),je&&nt()&&j().onDiscarded(D),!1;const ae=_().data;Et.data=l(ae,Fe)?ae:Fe,je&&nt()&&j().onSuccess(Fe,D,r)}catch(Tt){nn();const ae=j(),{shouldRetryOnError:de}=ae;ae.isPaused()||(Et.error=Tt,je&&nt()&&(ae.onError(Tt,D,ae),(de===!0||jr(de)&&de(Tt))&&(!j().revalidateOnFocus||!j().revalidateOnReconnect||G())&&ae.onErrorRetry(Tt,D,ae,Ce=>{const Ae=y[D];Ae&&Ae[0]&&Ae[0](D2,Ce)},{retryCount:(Le.retryCount||0)+1,dedupe:!0})))}return ke=!1,Ie(),!0},[D,i]),Re=A.useCallback((...Oe)=>P2(i,k.current,...Oe),[]);if(I0(()=>{N.current=t,Y.current=r,st(J)||(be.current=J)}),I0(()=>{if(!D)return;const Oe=yt.bind(Dn,P0);let Se=0;j().revalidateOnFocus&&(Se=Date.now()+j().focusThrottleInterval);const Ve=Bk(D,y,(ke,Le={})=>{if(ke==N2){const je=Date.now();j().revalidateOnFocus&&je>Se&&G()&&(Se=je+j().focusThrottleInterval,Oe())}else if(ke==O2)j().revalidateOnReconnect&&G()&&Oe();else{if(ke==I2)return yt();if(ke==D2)return yt(Le)}});return P.current=!1,k.current=D,M.current=!0,z({_k:q}),Ee&&(st(fe)||jl?Oe():Ek(Oe)),()=>{P.current=!0,Ve()}},[D]),I0(()=>{let Oe;function Se(){const Ve=jr(m)?m(_().data):m;Ve&&Oe!==-1&&(Oe=setTimeout(Fe,Ve))}function Fe(){!_().error&&(b||j().isVisible())&&(E||j().isOnline())?yt(P0).then(Se):Se()}return Se(),()=>{Oe&&(clearTimeout(Oe),Oe=-1)}},[m,b,E,D]),A.useDebugValue(Ne),s&&st(fe)&&D){if(!w2&&jl)throw new Error("Fallback data is required when using Suspense in SSR.");N.current=t,Y.current=r,P.current=!1;const Oe=U[D];if(!st(Oe)){const Se=Re(Oe);B0(Se)}if(st(O)){const Se=yt(P0);st(Ne)||(Se.status="fulfilled",Se.value=!0),B0(Se)}else throw O}return{mutate:Re,get data(){return X.data=!0,Ne},get error(){return X.error=!0,O},get isValidating(){return X.isValidating=!0,Me},get isLoading(){return X.isLoading=!0,lt}}});var U0,z2;function Pk(){if(z2)return U0;z2=1;function e(t,r){if(typeof t!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof t}\`.`);let i,l=0;return function(...c){clearTimeout(i);const d=Date.now(),p=d-l,m=r-p;m<=0?(l=d,t.apply(this,c)):i=setTimeout(()=>{l=Date.now(),t.apply(this,c)},m)}}return U0=e,U0}var Uk=Pk();const Hk=lr(Uk);function Y2(e,t){return t!=null?Hk(e,t):e}function Fk(e){const[t,r]=A.useState(e);return A.useEffect(()=>{y0(e,t)||r(e)},[e,t]),t}function zk({api:e="/api/chat",id:t,initialMessages:r,initialInput:i="",sendExtraMessageFields:l,onToolCall:s,experimental_prepareRequestBody:c,maxSteps:d=1,streamProtocol:p="data",onResponse:m,onFinish:b,onError:E,credentials:T,headers:y,body:R,generateId:x=p0,fetch:U,keepLastMessageOnError:D=!0,experimental_throttle:q}={}){const[M]=A.useState(x),P=t??M,k=typeof e=="string"?[e,P]:P,N=Fk(r??[]),Y=A.useMemo(()=>E0(N),[N]),{data:j,mutate:G}=Qs([k,"messages"],null,{fallbackData:Y}),_=A.useRef(j||[]);A.useEffect(()=>{_.current=j||[]},[j]);const{data:z,mutate:$}=Qs([k,"streamData"],null),Z=A.useRef(z);A.useEffect(()=>{Z.current=z},[z]);const{data:X="ready",mutate:te}=Qs([k,"status"],null),{data:H=void 0,mutate:Q}=Qs([k,"error"],null),ie=A.useRef(null),me=A.useRef({credentials:T,headers:y,body:R});A.useEffect(()=>{me.current={credentials:T,headers:y,body:R}},[T,y,R]);const C=A.useCallback(async Re=>{var We,Oe;te("submitted"),Q(void 0);const Se=E0(Re.messages),Fe=Se.length,Ve=b0((We=Se[Se.length-1])==null?void 0:We.toolInvocations);try{const Le=new AbortController;ie.current=Le;const je=Y2(G,q),nt=Y2($,q),Et=_.current;je(Se,!1);const Ie=l?Se:Se.map(({role:Pt,content:Tt,experimental_attachments:ae,data:de,annotations:Ce,toolInvocations:Ae,parts:we})=>({role:Pt,content:Tt,...ae!==void 0&&{experimental_attachments:ae},...de!==void 0&&{data:de},...Ce!==void 0&&{annotations:Ce},...Ae!==void 0&&{toolInvocations:Ae},...we!==void 0&&{parts:we}})),nn=Z.current;await ak({api:e,body:(Oe=c==null?void 0:c({id:P,messages:Se,requestData:Re.data,requestBody:Re.body}))!=null?Oe:{id:P,messages:Ie,data:Re.data,...me.current.body,...Re.body},streamProtocol:p,credentials:me.current.credentials,headers:{...me.current.headers,...Re.headers},abortController:()=>ie.current,restoreMessagesOnFailure(){D||je(Et,!1)},onResponse:m,onUpdate({message:Pt,data:Tt,replaceLastMessage:ae}){te("streaming"),je([...ae?Se.slice(0,Se.length-1):Se,Pt],!1),Tt!=null&&Tt.length&&nt([...nn??[],...Tt],!1)},onToolCall:s,onFinish:b,generateId:x,fetch:U,lastMessage:Se[Se.length-1]}),ie.current=null,te("ready")}catch(Le){if(Le.name==="AbortError")return ie.current=null,te("ready"),null;E&&Le instanceof Error&&E(Le),Q(Le),te("error")}const ke=_.current;ik({originalMaxToolInvocationStep:Ve,originalMessageCount:Fe,maxSteps:d,messages:ke})&&await C({messages:ke})},[G,te,e,me,m,b,E,Q,$,Z,p,l,c,s,d,_,ie,x,U,D,q,P]),J=A.useCallback(async(Re,{data:We,headers:Oe,body:Se,experimental_attachments:Fe=Re.experimental_attachments}={})=>{var Ve,ke;const Le=await _2(Fe),je=_.current.concat({...Re,id:(Ve=Re.id)!=null?Ve:x(),createdAt:(ke=Re.createdAt)!=null?ke:new Date,experimental_attachments:Le.length>0?Le:void 0,parts:A2(Re)});return C({messages:je,headers:Oe,body:Se,data:We})},[C,x]),fe=A.useCallback(async({data:Re,headers:We,body:Oe}={})=>{const Se=_.current;if(Se.length===0)return null;const Fe=Se[Se.length-1];return C({messages:Fe.role==="assistant"?Se.slice(0,-1):Se,headers:We,body:Oe,data:Re})},[C]),O=A.useCallback(()=>{ie.current&&(ie.current.abort(),ie.current=null)},[]),be=A.useCallback(Re=>{typeof Re=="function"&&(Re=Re(_.current));const We=E0(Re);G(We,!1),_.current=We},[G]),Ne=A.useCallback(Re=>{typeof Re=="function"&&(Re=Re(Z.current)),$(Re,!1),Z.current=Re},[$]),[Ee,Ke]=A.useState(i),Me=A.useCallback(async(Re,We={},Oe)=>{var Se;if((Se=Re==null?void 0:Re.preventDefault)==null||Se.call(Re),!Ee&&!We.allowEmptySubmit)return;Oe&&(me.current={...me.current,...Oe});const Fe=await _2(We.experimental_attachments),ke={messages:_.current.concat({id:x(),createdAt:new Date,role:"user",content:Ee,experimental_attachments:Fe.length>0?Fe:void 0,parts:[{type:"text",text:Ee}]}),headers:We.headers,body:We.body,data:We.data};C(ke),Ke("")},[Ee,x,C]),lt=Re=>{Ke(Re.target.value)},yt=A.useCallback(({toolCallId:Re,result:We})=>{const Oe=_.current;if(uk({messages:Oe,toolCallId:Re,toolResult:We}),G([...Oe.slice(0,Oe.length-1),{...Oe[Oe.length-1]}],!1),X==="submitted"||X==="streaming")return;const Se=Oe[Oe.length-1];x2(Se)&&C({messages:Oe})},[G,X,C]);return{messages:j??[],id:P,setMessages:be,data:z,setData:Ne,error:H,append:J,reload:fe,stop:O,input:Ee,setInput:Ke,handleInputChange:lt,handleSubmit:Me,isLoading:X==="submitted"||X==="streaming",status:X,addToolResult:yt}}const Yk=e=>e,jk=e=>async(t,r)=>{var c;if(typeof(r==null?void 0:r.body)!="string")return console.error("Unexpected body type."),window.fetch(t,r);const i=JSON.parse(r==null?void 0:r.body).messages,l=e.transformBody??Yk,s={...r,body:JSON.stringify(l(i)),...e.fetchOpts,headers:{...r==null?void 0:r.headers,"Content-Type":"application/json",...(c=e.fetchOpts)==null?void 0:c.headers}};return fetch(t,s)},j2=A.createContext(null),qk=({initialMessages:e,requestOpts:t,chatId:r,parseContent:i,children:l})=>{const s=A.useMemo(()=>(e==null?void 0:e.map((b,E)=>({...b,id:`initial-${E}`})))??[],[e]),c=A.useMemo(()=>jk(t),[t]),{messages:d,...p}=zk({api:t.apiUrl,streamProtocol:"text",fetch:c,onFinish:b=>{var E;t.onFinish&&(b.role==="assistant"||b.role==="user"?(E=t.onFinish)==null||E.call(t,b):console.info("Unexpected message role.",b))},initialMessages:s,id:r}),m=A.useMemo(()=>{const b=s==null?void 0:s.map(E=>E.id);return d.map(E=>{if(E.role==="assistant"&&!(b!=null&&b.includes(E.id))){const T=i?i(E.content):E.content;return{...E,content:T}}return E})},[i,d,s]);return A.createElement(j2.Provider,{key:r,value:{initialMessages:s,messages:m,...p}},l)},Vk=()=>{const e=A.useContext(j2);if(!e)throw new Error("useAiChatContext must be used within an AiChatProvider");return e},Gk=e=>e.scrollHeight-e.clientHeight-e.scrollTop,$k=e=>{e.scrollTop=e.scrollHeight},Xk=({scrollElement:e,contentElement:t,threshold:r=2})=>{A.useEffect(()=>{const i=()=>{e&&Gk(e)<r&&$k(e)};i();const l=new ResizeObserver(i);return t&&l.observe(t),()=>{l.disconnect()}},[e,t,r])},Qk=({className:e})=>A.createElement("svg",{className:e,width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A.createElement("g",{clipPath:"url(#clip0_16894_46778)"},A.createElement("path",{d:"M32.5546 5.17074C33.7099 6.67302 32.4042 7.80224 32.2498 7.94865L32.9819 8.97157C33.7621 8.23748 34.8612 6.35612 33.4291 4.49682C32.7933 3.67046 31.8246 3.32347 30.6251 3.49396C29.7868 3.6143 29.1209 3.95327 29.0928 3.96731L29.6102 4.74753C29.9974 4.57504 31.6059 3.93321 32.5546 5.16873V5.17074Z",fill:"#40464C"}),A.createElement("path",{d:"M8.63481 5.04446L9.0881 4.22412C9.06002 4.21209 8.36805 3.92728 7.52163 3.87513C6.31219 3.80292 5.37351 4.22412 4.80589 5.10062C3.52825 7.07023 4.7738 8.85532 5.61219 9.52523L6.25803 8.44616C6.09356 8.31177 4.69959 7.29086 5.73053 5.70033C6.57895 4.3926 8.23166 4.90406 8.63079 5.04446H8.63481Z",fill:"#40464C"}),A.createElement("path",{d:"M25.1577 7.25851C25.1778 7.25851 25.1978 7.25851 25.2179 7.25851C27.4382 7.29862 28.6296 8.96136 28.6296 8.96136L29.129 8.81896C29.109 8.75076 28.9144 8.12297 28.3468 7.48315C27.8133 6.88344 26.8425 6.16138 25.2399 6.1333C25.2119 6.1333 25.1858 6.1333 25.1577 6.1333C22.7168 6.1333 21.6056 8.07483 21.3589 9.11179L22.4721 9.37053C22.4941 9.28428 23.0216 7.2565 25.1577 7.2565V7.25851Z",fill:"#40464C"}),A.createElement("path",{d:"M9.90619 9.34454C9.92625 9.2583 10.4357 7.23252 12.5898 7.23252C12.6099 7.23252 12.63 7.23252 12.65 7.23252C14.8703 7.27063 15.9213 8.97549 15.9213 8.97549L16.5612 8.79498C16.5411 8.72478 16.3465 8.09899 15.7789 7.46118C15.2454 6.86147 14.2746 6.13941 12.6721 6.11133C12.646 6.11133 12.6179 6.11133 12.5898 6.11133C10.1489 6.11133 9.03772 8.05286 8.79102 9.08982L9.90619 9.34655V9.34454Z",fill:"#40464C"}),A.createElement("path",{d:"M19.6383 26.256L19.1973 26.269L19.363 31.8525L19.804 31.8394L19.6383 26.256Z",fill:"#40464C"}),A.createElement("path",{d:"M14.1281 38.5777C14.786 38.9107 16.2321 39.4201 16.2321 39.4201L16.8318 39.5906L17.4616 39.725L17.8748 39.7912C17.8748 39.7912 19.0702 39.9336 19.704 39.9336C19.7562 39.9336 19.8103 39.9336 19.8625 39.9336C20.9255 39.9236 22.7748 39.6508 22.7748 39.6508L23.2782 39.5525L24.3031 39.2837L24.6461 39.1614L26.3068 38.5015L26.5977 38.3451L27.1994 37.984L27.4842 37.7754C27.4842 37.7754 28.6114 36.9411 29.0326 36.5359C29.4137 36.1689 29.6905 35.7797 29.8931 35.3987C30.3323 35.2482 31.6862 34.7689 33.1443 34.0187C33.732 33.7821 34.7429 33.0981 34.8091 33.054C38.0985 30.8718 39.7712 28.3907 39.9718 25.6429C40.3729 20.1592 36.6684 16.9922 35.6836 16.218C35.6415 14.8 35.469 13.0871 35.0137 11.318C35.6054 10.7163 36.173 9.95213 36.4518 9.02148C36.9472 7.36275 36.881 5.67595 36.2612 4.27195C35.5733 2.70949 34.2715 1.60234 32.4945 1.06681C30.6272 0.503205 28.6515 1.0989 27.2616 1.76079C25.1215 0.767959 22.6424 0.166244 19.9989 0.0238384C16.7235 -0.152665 13.8012 0.661656 11.3843 2.11179C9.95424 1.46394 7.56945 0.781999 5.46144 1.60635C3.73251 2.28428 2.52507 3.49373 1.96347 5.10432C1.46004 6.55245 1.52823 8.23925 2.15602 9.85385C2.56519 10.9028 3.50988 11.9338 4.33022 12.6378C4.0093 14.2404 3.89297 15.7366 3.8669 16.922C2.79584 17.8306 -1.06115 21.5793 0.276664 27.3718C0.936544 30.2279 2.92421 32.6528 6.02705 34.3858C6.36201 34.5723 6.709 34.7508 7.06 34.9173L8.38778 35.503C9.49494 35.9562 10.4898 36.2852 11.0012 36.4456C11.5528 36.931 12.1645 37.4004 12.8284 37.8316L14.1281 38.5797V38.5777ZM3.45572 9.54899C1.84714 6.20345 3.8328 3.63012 6.13536 2.72955C8.15111 1.9413 10.9029 3.49974 12.0201 4.09143L11.982 3.05648C14.2104 1.73271 16.9141 0.946468 19.9427 1.10893C22.151 1.22727 24.243 1.68457 26.0922 2.43672L26.2687 3.57195C27.3338 2.89201 29.8449 1.61437 31.9168 2.24016C34.2856 2.95419 36.199 5.26678 35.136 8.82292C34.765 10.0665 33.4472 11.2378 32.8696 11.6931L33.9827 12.1544C34.5945 15.2994 34.2796 18.1856 34.1372 19.1684C33.2426 18.8495 32.0612 18.5607 30.5209 18.3962C30.4547 16.6773 30.1117 12.9106 28.3126 11.2278C27.6106 10.5719 26.7621 10.2289 25.7894 10.2129C24.8186 10.1988 23.9862 10.5137 23.3304 11.1536C22.3716 12.0902 21.5332 13.5885 21.3948 15.8369C21.3447 16.6432 21.3587 17.3813 21.3868 17.9289C20.6186 17.7945 19.7943 17.7223 18.984 17.7203L18.5929 17.7143C17.951 17.7323 17.3714 17.7845 16.8479 17.8607C16.7717 16.1979 16.3926 12.9727 14.6516 11.3662C13.9577 10.7263 13.1213 10.3954 12.1605 10.3794C11.1978 10.3653 10.3815 10.6722 9.73362 11.294C7.87432 13.0831 7.72188 17.1005 7.73592 18.4684C6.76516 18.5767 5.99095 18.7432 5.3772 18.9297C5.27691 18.0191 5.08637 15.5501 5.56975 12.7561L6.26573 12.012C5.65399 11.6028 4.09755 10.8687 3.45974 9.54297L3.45572 9.54899ZM26.4673 13.0008C24.1888 13.1432 24.3011 17.0123 24.3914 18.2197C23.8017 18.2398 23.2842 18.2678 22.8691 18.2939C22.7708 16.4948 22.8951 13.1773 24.2189 11.8856C24.6261 11.4885 25.1155 11.296 25.7152 11.296C25.7312 11.296 25.7473 11.296 25.7613 11.296C26.4091 11.306 26.9567 11.5286 27.4341 11.9759C27.9636 12.4713 28.3968 13.2415 28.7177 14.2424C28.2464 13.4702 27.5364 12.9346 26.4653 13.0008H26.4673ZM27.7931 18.2718L26.9427 18.2257C26.4553 18.2057 25.9779 18.1956 25.5146 18.1896C25.4524 17.614 25.3601 15.9893 26.3309 15.9613C27.6607 15.9232 27.8051 17.4916 27.7931 18.2718ZM14.2364 18.2718L13.386 18.2257C12.8986 18.2057 12.4213 18.1956 11.958 18.1896C11.8958 17.614 11.8035 15.9893 12.7743 15.9613C14.1041 15.9232 14.2485 17.4916 14.2364 18.2718ZM19.2628 25.34C19.7903 25.4463 21.6436 25.9257 23.3143 26.7019C23.2662 27.2675 23.1579 28.1701 22.9112 29.0807C22.5722 30.3342 21.6596 32.2256 21.3347 32.8775C21.0318 32.8915 20.5224 32.9116 20.1252 32.9176C19.5355 32.9256 18.8777 32.9397 18.5347 32.9457C18.1596 32.4242 17.0886 30.8878 16.3946 29.4296C15.9192 28.4328 15.6204 27.5302 15.4599 26.9767C16.8439 26.1082 18.9358 25.4403 19.2628 25.338V25.34ZM10.7325 18.342C10.5881 18.342 10.4416 18.342 10.2892 18.342C9.94221 18.342 9.61528 18.3481 9.30038 18.3601C9.17001 16.7094 9.21614 13.3458 10.6081 12.006C11.0193 11.6109 11.5187 11.4203 12.1325 11.4324C12.7723 11.4424 13.3118 11.659 13.7832 12.0942C14.3528 12.6197 14.8101 13.4641 15.135 14.5713C14.6757 13.6868 13.9396 13.0389 12.7683 13.1111C10.4075 13.2556 10.6462 17.3913 10.7325 18.342ZM38.8686 25.4343C38.644 30.7454 31.6521 33.1182 30.3905 33.5093C30.4065 33.07 30.3524 32.7872 30.3524 32.7872C30.3303 32.8474 28.1561 38.7622 19.8525 38.8445C19.8023 38.8445 19.7562 38.8445 19.706 38.8445C13.3118 38.8445 7.3769 32.0411 7.3769 32.0411C7.68979 32.6027 8.24939 33.4712 9.04967 34.4319C7.42905 33.9686 2.62536 32.1855 1.45201 27.097C0.475229 22.8609 2.56719 19.9125 3.88495 18.5406C3.90902 19.0942 3.94311 19.4412 3.94712 19.5114L3.95114 19.5455C3.25716 19.9446 3.1308 20.2455 3.1308 20.2455C3.16088 20.2334 6.46229 19.387 10.2792 19.4251C11.5067 19.4372 12.4614 19.4833 13.1935 19.5415C13.0089 19.8102 12.9187 20.083 12.9167 20.3417C12.9127 21.4649 15.2393 21.8902 16.5089 22.3354C17.4015 22.6483 18.1536 22.9712 18.5848 23.1678C18.5909 23.6492 18.5989 24.287 18.6009 24.7944C17.7364 25.0251 15.7488 25.6288 14.4972 26.5795L14.439 26.6317C14.445 26.6618 14.5233 27.0108 14.6958 27.5603C13.8754 27.7308 12.9067 27.8471 11.7935 27.8451C7.76801 27.8411 5.18465 26.1844 5.18465 26.1844C5.26287 26.2967 7.17633 28.9282 11.7935 28.9322C12.1786 28.9322 12.5456 28.9182 12.8986 28.8941C13.1915 29.4918 13.713 30.7133 14.4811 31.7984C15.5362 33.2866 16.9562 34.6365 19.8585 34.6365C23.7857 34.6365 25.9779 32.4202 27.1292 29.1649C27.2977 29.1649 27.4641 29.1609 27.6326 29.1549C27.9174 29.1448 28.2022 29.1268 28.4891 29.1007C32.8595 28.6996 34.5925 26.9004 34.6647 26.8222C34.6647 26.8222 30.4406 27.8291 28.3908 28.0176C26.8945 28.156 25.4203 28.0417 24.0845 27.8191C24.2209 26.9145 24.243 26.2285 24.245 26.1423L24.251 26.1343C22.6444 25.3179 20.7209 24.9048 19.8043 24.7403C19.8003 24.1386 19.7903 23.3704 19.7843 22.893C20.1513 22.7005 20.6206 22.4738 21.1461 22.2612C23.0496 21.489 24.8427 21.2624 24.8748 20.0349C24.8828 19.746 24.7645 19.4813 24.5478 19.2406C26.1785 19.2226 28.2745 19.2567 30.2441 19.4592C34.1973 19.8644 36.7025 20.767 36.7185 20.775C36.7185 20.775 36.4598 20.3297 35.5211 19.7962V19.7822C35.5351 19.6859 35.6415 18.9297 35.6776 17.7704C36.9873 18.9979 39.0291 21.5492 38.8646 25.4302L38.8686 25.4343Z",fill:"#40464C"})),A.createElement("defs",null,A.createElement("clipPath",{id:"clip0_16894_46778"},A.createElement("rect",{width:"40",height:"39.9338",fill:"white"})))),Kk=Pe.div(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",gap:"16px",padding:"114px 32px 24px",[e.breakpoints.down("md")]:{padding:"114px 16px 24px",width:"100%"},boxSizing:"border-box",position:"absolute",zIndex:1,background:"white",bottom:0,top:0,left:0,right:0})),Wk=Pe.div(({theme:e})=>({position:"relative",padding:"16px",border:`1px solid ${e.custom.colors.lightGray2}`,borderRadius:"8px","svg:first-child":{fill:e.custom.colors.red,position:"absolute",top:"-10px",left:"-10px"}})),Zk=Pe(Qk)({width:"40px",height:"40px",display:"block"}),Jk=Pe(ci)({textAlign:"center",padding:"0 40px"}),eL=Pe(e2)({borderRadius:"8px",margin:"8px 0 24px 0",flexShrink:0,"button:focus-visible":{outlineOffset:"-1px",borderRadius:"7px"}}),tL=Pe(pb)(({theme:e})=>({fill:e.custom.colors.red,"button:disabled &":{fill:e.custom.colors.silverGray}})),nL=Pe.div(({theme:e})=>({display:"flex",gap:"16px",width:"100%",[e.breakpoints.down("sm")]:{flexDirection:"column"}})),rL=Pe.button(({theme:e})=>({flex:1,display:"flex",alignItems:"center",borderRadius:"8px",border:`1px solid ${e.custom.colors.lightGray2}`,padding:"12px 16px",color:e.custom.colors.darkGray2,backgroundColor:"transparent",textAlign:"left",[e.breakpoints.down("sm")]:{padding:"12px 36px"},":hover":{cursor:"pointer",borderColor:"transparent",color:e.custom.colors.white,backgroundColor:e.custom.colors.darkGray1}})),aL=({title:e,conversationStarters:t,className:r,onPromptSubmit:i})=>{const[l,s]=A.useState(""),c=p=>{s(p.target.value)},d=p=>{p.key==="Enter"&&l?i(l):s(l)};return A.createElement(Kk,{className:r,"data-testid":"ai-chat-entry-screen"},A.createElement(Wk,null,A.createElement(Od,null),A.createElement(Zk,null)),e?A.createElement(Jk,{variant:"h4"},e):null,A.createElement(eL,{fullWidth:!0,size:"chat",onChange:c,onKeyDown:d,inputProps:{"aria-label":"Ask a question"},endAdornment:A.createElement(f0,{"aria-label":"Send",onClick:()=>i(l)},A.createElement(tL,null)),responsive:!0}),A.createElement(nL,null,t==null?void 0:t.map(({content:p},m)=>A.createElement(rL,{key:m,onClick:()=>i(p),tabIndex:0,onKeyDown:b=>{b.key==="Enter"&&i(p)}},A.createElement(ci,{variant:"body2"},p)))))},bn={root:"MitAiChat--root",title:"MitAiChat--title",entryScreenContainer:"MitAiChat--entryScreenContainer",conversationStarter:"MitAiChat--conversationStarter",chatScreenContainer:"MitAiChat--chatScreenContainer",messagesContainer:"MitAiChat--messagesContainer",messageRow:"MitAiChat--messageRow",messageRowUser:"MitAiChat--messageRowUser",messageRowAssistant:"MitAiChat--messageRowAssistant",message:"MitAiChat--message",input:"MitAiChat--input",bottomSection:"MitAiChat--bottomSection"},iL=Pe.div(),uL=Pe.div(({externalScroll:e,theme:t})=>({padding:"16px 32px 0",[t.breakpoints.down("md")]:{padding:"16px 16px 0"},boxSizing:"border-box",background:"white",position:"absolute",bottom:0,top:0,left:0,right:0,zIndex:1,...e&&{padding:"0 32px",[t.breakpoints.down("md")]:{padding:"0 16px"}}})),lL=Pe.div(({externalScroll:e})=>({width:"100%",height:e?"auto":"100%",minHeight:e?"100%":"auto",display:"flex",flexDirection:"column"})),oL=Pe(DI)(({externalScroll:e})=>({display:"flex",flexDirection:"column",flex:1,padding:"14px 0",overflow:e?"visible":"auto",gap:"16px",[`> .${bn.messageRowAssistant}:first-child`]:{marginTop:"16px"}})),q2=Pe.div({display:"flex",width:"100%",gap:"10px",[`&.${bn.messageRowUser}`]:{flexDirection:"row-reverse"},"> *":{minWidth:0},position:"relative"}),V2=Pe.div(({theme:e})=>({color:e.custom.colors.darkGray2,backgroundColor:e.custom.colors.white,...e.typography.body2,"p:first-of-type":{marginTop:0},"p:last-of-type":{marginBottom:0},"ol, ul":{paddingInlineStart:"16px",marginLeft:"6px","ol, ul":{marginLeft:0},li:{margin:"16px 0"}},a:{color:e.custom.colors.red,fontWeight:"normal"},borderRadius:"12px",[`.${bn.messageRowUser} &`]:{padding:"12px 16px",borderRadius:"8px 0px 8px 8px",backgroundColor:e.custom.colors.lightGray1}})),sL=Pe.div({alignSelf:"flex-end",alignItems:"end",display:"flex",flexDirection:"column",gap:"12px"}),cL=Pe.button(({theme:e})=>({border:`1px solid ${e.custom.colors.lightGray2}`,backgroundColor:e.custom.colors.white,padding:"8px 16px",...e.typography.body3,cursor:"pointer",boxSizing:"border-box","&:hover":{color:e.custom.colors.white,backgroundColor:e.custom.colors.silverGrayDark,borderColor:"transparent"},borderRadius:"8px"})),fL=Pe(pb)(({theme:e})=>({fill:e.custom.colors.red})),dL=Pe(E8)(({theme:e})=>({fill:e.custom.colors.red})),hL=Pe.div(({externalScroll:e,theme:t})=>({padding:"12px 0 16px",...e&&{position:"sticky",bottom:0,background:t.custom.colors.white},"button:focus-visible":{outlineOffset:"-1px",borderRadius:"7px"}})),pL=Pe(ci)(({theme:e})=>({color:e.custom.colors.silverGrayDark,marginTop:"16px",textAlign:"center"})),mL=({conversationStarters:e,askTimTitle:t,entryScreenEnabled:r=!0,entryScreenTitle:i,srLoadingMessages:l,placeholder:s="",className:c,scrollElement:d,ref:p,...m})=>{var te,H;const b=A.useRef(null),E=A.useRef(null),T=A.useRef(null),y=A.useRef(null),{messages:R,input:x,handleInputChange:U,handleSubmit:D,append:q,isLoading:M,stop:P,error:k,initialMessages:N}=Vk();Xk({scrollElement:d||E.current,contentElement:d?E.current:null,threshold:200});const[Y,j]=A.useState(r);A.useEffect(()=>{var Q,ie;Y||(ie=(Q=y.current)==null?void 0:Q.querySelector("input"))==null||ie.focus()},[Y]);const G=R.length===((N==null?void 0:N.length)||0),_=!G&&!k&&((te=R[R.length-1])==null?void 0:te.role)==="user",z=M&&((H=R[R.length-1])==null?void 0:H.role)!=="user",$=()=>{const Q=d||E.current;Q==null||Q.scrollBy({behavior:"instant",top:Q==null?void 0:Q.scrollHeight})},Z=R[R.length-1],X=!!d;return A.createElement(iL,{className:c,ref:b},Y?A.createElement(aL,{className:bn.entryScreenContainer,title:i,conversationStarters:e,onPromptSubmit:Q=>{Q.trim()!==""&&(j(!1),q({role:"user",content:Q}))}}):A.createElement(uL,{className:bn.chatScreenContainer,"data-testid":"ai-chat-screen",externalScroll:X,ref:T},A.createElement(lL,{className:Bl(c,bn.root),externalScroll:X,...m},A.createElement(cD,{askTimTitle:t,externalScroll:X,className:Bl(c,bn.title)}),A.createElement(oL,{className:bn.messagesContainer,externalScroll:X,ref:E},R.map(Q=>A.createElement(q2,{key:Q.id,"data-chat-role":Q.role,className:Bl(bn.messageRow,{[bn.messageRowUser]:Q.role==="user",[bn.messageRowAssistant]:Q.role==="assistant"})},A.createElement(V2,{className:bn.message},A.createElement(n2,{as:Q.role==="user"?"h5":"h6"},Q.role==="user"?"You said: ":"Assistant said: "),A.createElement(tg,{skipHtml:!0},Q.content)))),G?A.createElement(sL,null,e==null?void 0:e.map(Q=>A.createElement(cL,{className:bn.conversationStarter,key:Q.content,onClick:()=>{$(),q({role:"user",content:Q.content})}},Q.content))):null,_?A.createElement(q2,{className:Bl(bn.messageRow,bn.messageRowAssistant),key:"loading"},A.createElement(V2,null,A.createElement(b8,null))):null,k?A.createElement(lD,{severity:"error",closable:!0},"An unexpected error has occurred."):null),A.createElement(hL,{externalScroll:X,className:bn.bottomSection},A.createElement("form",{onSubmit:Q=>{Q.preventDefault(),M&&z?P():($(),D(Q))}},A.createElement(e2,{ref:y,fullWidth:!0,size:"chat",className:bn.input,placeholder:s,name:"message",sx:{flex:1},value:x,onChange:U,inputProps:{"aria-label":"Ask a question"},endAdornment:M?A.createElement(f0,{"aria-label":"Stop",onClick:P,disabled:!z},A.createElement(dL,null)):A.createElement(f0,{"aria-label":"Send",type:"submit",onClick:Q=>{if(x.trim()===""){Q.preventDefault();return}$(),D(Q)}},A.createElement(fL,null))})),A.createElement(pL,{variant:"body3"},"AI-generated content may be incorrect.")),A.createElement(LI,{isLoading:M,loadingMessages:l,message:(Z==null?void 0:Z.role)==="assistant"?Z==null?void 0:Z.content:""}))))},gL=({requestOpts:e,initialMessages:t,chatId:r,parseContent:i,...l})=>A.createElement(qk,{requestOpts:e,chatId:r,initialMessages:t,parseContent:i},A.createElement(mL,{...l})),G2=e=>({minWidth:"auto",padding:0,height:{small:"32px",medium:"40px",large:"48px"}[e],width:{small:"32px",medium:"40px",large:"48px"}[e],"& svg, & .MuiSvgIcon-root":{width:"1em",height:"1em",fontSize:ut({small:20,medium:24,large:32}[e])}}),ql=Pe(A.forwardRef(function(t,r){return A.createElement(BE,{ref:r,type:"button",...t})}))(({size:e=l0.size,responsive:t,theme:r})=>[G2(e),t&&{[r.breakpoints.down("sm")]:G2(LE[e])}]);ql.displayName="ActionButton";const bL=ql.withComponent(({Component:e,...t})=>A.createElement(PE,{Component:e,...t}));bL.displayName="ActionButtonLink";const EL=Pe.div``,yL=Pe.div(({theme:e})=>({display:"flex",height:300,padding:40,flexDirection:"column",justifyContent:"center",alignItems:"center",alignSelf:"stretch",borderRadius:8,border:`1px solid ${e.custom.colors.lightGray2}`,marginTop:"8px",cursor:"pointer",textAlign:"center"})),TL=Pe.div({display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",marginTop:"24px"}),SL=Pe.div(({theme:e})=>({color:e.custom.colors.silverGrayDark,...e.typography.body2})),$2=A.forwardRef(({content:e,"aria-label":t},r)=>{const[i,l]=A.useState(0);A.useEffect(()=>l(0),[e]);const s=c=>{(c.key==="Enter"||c.key===" ")&&l(i===0?1:0)};return A.createElement(yL,{ref:r,onClick:()=>l(i===0?1:0),onKeyDown:s,tabIndex:0,"aria-label":t,role:"button"},A.createElement(ci,{variant:"h5"},i===0?`Q: ${e.question}`:`Answer: ${e.answer}`))});$2.displayName="Flashcard";const CL=({flashcards:e,wasKeyboardFocus:t})=>{const[r,i]=A.useState(0),l=A.useRef(null),s=A.useRef(null),c=A.useCallback(d=>{var p;e&&(!((p=l.current)!=null&&p.contains(document.activeElement))&&t||(d.key==="ArrowRight"?i(m=>(m+1)%e.length):d.key==="ArrowLeft"&&i(m=>(m-1+e.length)%e.length)))},[e,t]);return A.useEffect(()=>{var d;(d=s.current)==null||d.focus()},[r]),A.useEffect(()=>(window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)),[c]),e!=null&&e.length?A.createElement(EL,{ref:l},A.createElement($2,{ref:s,content:e[r],"aria-label":`Flashcard ${r+1} of ${e.length}`}),A.createElement(TL,null,A.createElement(ql,{onClick:()=>i(r-1),disabled:r===0,variant:"secondary",color:"secondary",size:"small","aria-label":"Previous card"},A.createElement(m8,{"aria-hidden":!0})),A.createElement(SL,null,r+1," / ",e.length),A.createElement(ql,{onClick:()=>i(r+1),disabled:r===e.length-1,variant:"secondary",color:"secondary",size:"small","aria-label":"Next card"},A.createElement(g8,{"aria-hidden":!0})))):null},AL=Pe.div(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",gap:"4px",color:e.custom.colors.white,position:"sticky",top:0,padding:"32px 0 16px 0",zIndex:2,backgroundColor:e.custom.colors.white,borderRadius:0})),_L=Pe.div(({theme:e})=>({display:"flex",alignItems:"center",gap:"8px",color:e.custom.colors.darkGray2,img:{width:"24px",height:"24px"},svg:{fill:e.custom.colors.red,width:"24px",height:"24px",flexShrink:0},overflow:"hidden",p:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}})),xL=Pe(ql)(({theme:e})=>({backgroundColor:e.custom.colors.lightGray2,"&&:hover":{backgroundColor:e.custom.colors.red,color:e.custom.colors.white},zIndex:3,flexShrink:0})),vL=Pe(V9)(({theme:e})=>({padding:"0 0 16px",backgroundColor:e.custom.colors.white,position:"sticky",top:"88px",zIndex:2,overflow:"visible"})),H0=Pe(uI)({padding:"0",height:"calc(100% - 138px)",position:"relative"}),RL=Pe(gL)(({hasTabs:e,theme:t})=>({".MitAiChat--entryScreenContainer":{padding:e?"114px 0 24px":"168px 32px 24px",[t.breakpoints.down("md")]:{padding:e?"114px 0 24px":"168px 16px 24px"}},".MitAiChat--chatScreenContainer":{padding:e?0:"0 32px",[t.breakpoints.down("md")]:{padding:e?0:"0 16px"}},".MitAiChat--messagesContainer":{paddingTop:e?"8px":"88px"}})),NL=Pe.div(({theme:e})=>({color:e.custom.colors.darkGray2,backgroundColor:e.custom.colors.white,padding:"12px 0 100px",...e.typography.body2,"p:first-of-type":{marginTop:0},"p:last-of-type":{marginBottom:0},"ol, ul":{paddingInlineStart:"32px",li:{margin:"16px 0"}},ul:{marginInlineStart:"-16px"},a:{color:e.custom.colors.red,fontWeight:"normal"}})),OL=e=>e,IL={credentials:"include"},DL=e=>{const[t,r]=A.useState(null),[i,l]=A.useState(!1);return A.useEffect(()=>{if(!e)return;(async()=>{l(!0);try{const d=await(await fetch(e)).json();if(!d.results)throw new Error("Unexpected response");const[p]=d.results;if(!p)throw new Error("No result found");r({summary:p.summary,flashcards:p.flashcards})}catch(c){console.error("Error fetching content",c)}finally{l(!1)}})()},[e]),{response:t,loading:i}},kL=[{role:"assistant",content:"Let's try to work on this problem together. It would be great to hear how you're thinking about solving it. Can you walk me through the approach you're considering?"}],LL="What do you want to know about this video?",ML=[{content:"What are the most important concepts introduced in the video?"},{content:"What examples are used to illustrate concepts covered in the video?"},{content:"What are the key terms introduced in this video?"}],X2=({payload:e,transformBody:t,fetchOpts:r,scrollElement:i,entryScreenEnabled:l,entryScreenTitle:s,conversationStarters:c,initialMessages:d,hasTabs:p})=>e?A.createElement(RL,{chatId:e.chatId,conversationStarters:c,initialMessages:d,scrollElement:i,entryScreenEnabled:l,entryScreenTitle:s,requestOpts:{transformBody:m=>({...e.requestBody,...t==null?void 0:t(m)}),apiUrl:e.apiUrl,fetchOpts:{...IL,...r}},hasTabs:p}):null,wL=(e,t)=>[...e].sort(()=>.5-Math.random()).slice(0,t),BL=({messageOrigin:e,transformBody:t=OL,className:r,fetchOpts:i,target:l})=>{var j,G,_,z,$,Z;const[s,c]=A.useState(!1),[d,p]=A.useState(null),[m,b]=A.useState("chat"),{response:E}=DL((j=d==null?void 0:d.summary)==null?void 0:j.apiUrl),[T,y]=A.useState(!1),R=A.useRef(!1),x=()=>{R.current=!0},U=()=>{R.current||y(!0),R.current=!1},[D,q]=A.useState(null),M=X=>{X&&q(X)};A.useEffect(()=>{const X=te=>{te.origin===e&&te.data.type==="smoot-design::tutor-drawer-open"&&te.data.payload.target===l&&(c(!0),p(te.data.payload))};return window.addEventListener("message",X),()=>{window.removeEventListener("message",X)}},[e,l]),A.useEffect(()=>{var X;(X=D==null?void 0:D.scrollTo)==null||X.call(D,{top:m==="chat"?D.scrollHeight:0})},[m,D]);const P=A.useMemo(()=>{var X;return d?d.chat.conversationStarters||((X=E==null?void 0:E.flashcards)!=null&&X.length&&E.flashcards.length>=3?wL(E.flashcards,3).map(te=>({content:te.question})):ML):[]},[d,E]);if(!d)return A.createElement("div",{"data-testid":"remote-tutor-drawer-waiting"});const{blockType:k,chat:N}=d,Y=k==="video";return A.createElement(XO,{"data-testid":"remote-tutor-drawer",className:r,PaperProps:{ref:M,sx:{width:"900px",maxWidth:"100%",boxSizing:"border-box",padding:{xs:"0 16px",md:"0 32px"}}},anchor:"right",open:s,onClose:()=>c(!1),role:"dialog","aria-modal":"true"},A.createElement(AL,null,A.createElement(_L,null,d.title?A.createElement(Od,null):null,A.createElement(ci,{variant:"body1",component:"h1"},(G=d.title)!=null&&G.includes("AskTIM")?A.createElement(A.Fragment,null,"Ask",A.createElement("strong",null,"TIM"),d.title.replace("AskTIM","")):d.title)),A.createElement(xL,{variant:"text",size:"medium",onClick:()=>c(!1),"aria-label":"Close"},A.createElement(hb,null))),k==="problem"?A.createElement(X2,{payload:N,transformBody:t,fetchOpts:i,scrollElement:D,entryScreenEnabled:((_=d.chat)==null?void 0:_.entryScreenEnabled)??!1,entryScreenTitle:d.chat.entryScreenTitle,initialMessages:d.chat.initialMessages||kL,hasTabs:Y}):null,k==="video"?A.createElement(L9,{value:m},A.createElement(vL,{styleVariant:"chat",onChange:(X,te)=>b(te)},A.createElement(o0,{value:"chat",label:"Chat"}),(z=E==null?void 0:E.flashcards)!=null&&z.length?A.createElement(o0,{value:"flashcards",label:"Flashcards",onMouseDown:x,onFocus:U}):null,A.createElement(o0,{value:"summary",label:"Summary"})),A.createElement(H0,{value:"chat",keepMounted:!0},A.createElement(X2,{payload:{...N},transformBody:t,fetchOpts:i,scrollElement:D,entryScreenEnabled:(($=d.chat)==null?void 0:$.entryScreenEnabled)??!0,entryScreenTitle:d.chat.entryScreenTitle??LL,conversationStarters:P,initialMessages:d.chat.initialMessages,hasTabs:Y})),(Z=E==null?void 0:E.flashcards)!=null&&Z.length?A.createElement(H0,{value:"flashcards"},A.createElement(CL,{flashcards:E==null?void 0:E.flashcards,wasKeyboardFocus:T})):null,A.createElement(H0,{value:"summary"},A.createElement(ci,{variant:"h4",component:"h4"}),A.createElement(NL,null,A.createElement(tg,{rehypePlugins:[p8]},(E==null?void 0:E.summary)??"")))):null)},PL={defaultProps:{disableRipple:!0},styleOverrides:{root:{":focus-visible":{outline:"revert"}}}},it={mitRed:"#750014",brightRed:"#FF1423",black:"#000000",white:"#FFFFFF",darkGray2:"#212326",darkGray1:"#40464C",silverGrayDark:"#626A73",silverGray:"#8B959E",silverGrayLight:"#B8C2CC",lightGray2:"#DDE1E6",lightGray1:"#F3F4F8",navGray:"#303337",darkPink:"#750062",pink:"#FF14F0",lightPink:"#FFB3FF",darkPurple:"#3E006B",purple:"#93F",lightPurple:"#BFB3FF",darkBlue:"#002896",blue:"#1966FF",lightBlue:"#99EBFF",darkGreen:"#004D1A",green:"#00AD00",lightGreen:"#AF3",darkRed:"#83192A",red:"#A31F34",lightRed:"#D02E44",orange:"#FAB005",yellow:"#FFEB00"},UL={defaultProps:{size:"medium",color:"default",variant:"outlined",deleteIcon:A.createElement(hb,{"aria-hidden":"true"})},styleOverrides:{root:{borderRadius:"100vh",borderWidth:"1px"},deleteIcon:{"&:hover":{color:"inherit"},"&.MuiChip-deleteIconLarge":{width:"16px",height:"16px"},"&.MuiChip-deleteIconMedium":{width:"14px",height:"14px"},margin:"0 -2px 0 8px",color:"inherit"},icon:{margin:"0 8px 0 -2px",color:"inherit","&.MuiChip-iconLarge":{width:"16px",height:"16px"},"&.MuiChip-iconMedium":{width:"14px",height:"14px"}}},variants:[{props:{size:"medium"},style:({theme:e})=>({...e.typography.body3,boxSizing:"border-box",height:"24px",paddingRight:"12px",paddingLeft:"12px",".MuiChip-label":{paddingLeft:"0px",paddingRight:"0px"}})},{props:{size:"large"},style:({theme:e})=>({...e.typography.body2,height:"32px",paddingLeft:"16px",paddingRight:"16px",".MuiChip-label":{paddingLeft:"0px",paddingRight:"0px"}})},{props:{variant:"outlined"},style:{borderColor:it.silverGrayLight,color:it.darkGray1,"&.Mui-focusVisible":{backgroundColor:"transparent"},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:it.darkGray1,borderColor:it.silverGrayDark,backgroundColor:"transparent"}}},{props:{variant:"outlinedWhite"},style:{backgroundColor:"white",border:"1px solid",borderColor:it.silverGrayLight,color:it.darkGray1,"&.Mui-focusVisible":{backgroundColor:"white"},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:it.darkGray1,borderColor:it.silverGrayDark,backgroundColor:"white"}}},{props:{variant:"gray"},style:{backgroundColor:it.lightGray2,border:"none",color:it.darkGray2,"&.Mui-focusVisible":{backgroundColor:it.lightGray2},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:it.darkGray1,backgroundColor:it.silverGrayLight}}},{props:{variant:"dark"},style:{backgroundColor:it.silverGrayDark,border:"none",color:it.white,"&.Mui-focusVisible":{backgroundColor:it.silverGrayDark},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:it.darkGray1}}},{props:{variant:"darker"},style:{backgroundColor:it.darkGray2,border:`1px solid ${it.darkGray1}`,color:it.white,"&.Mui-focusVisible":{backgroundColor:it.darkGray2},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:it.black,border:`1px solid ${it.silverGray}`}}},{props:{variant:"filled"},style:{backgroundColor:it.mitRed,border:"none",color:it.white,"&.Mui-focusVisible":{backgroundColor:it.mitRed},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:it.red}}}]},HL={colors:it,dimensions:{headerHeight:"72px",headerHeightSm:"60px"}},FL={values:{xs:0,sm:600,md:900,lg:1320,xl:1536}},zL={custom:HL,palette:{primary:{main:it.mitRed,light:it.lightRed,active:it.red,contrastText:it.white},secondary:{light:it.darkGray2,active:it.silverGrayDark,main:it.black,contrastText:it.white}},shape:{borderRadius:8},spacing:8,typography:IE,breakpoints:FL,components:{MuiButtonBase:PL,MuiTypography:F9,MuiMenu:{styleOverrides:{paper:{borderRadius:"4px"}}},MuiAutocomplete:{styleOverrides:{paper:{borderRadius:"4px"},popupIndicator:{paddingRight:0,marginRight:0}}},MuiChip:UL}},Q2=e=>Bs(Un(zL,e)),YL=Q2(),jL=({children:e,theme:t=YL})=>A.createElement(H9,{theme:t},e),qL=e=>{const t=document.createElement("div");document.body.appendChild(t);const r=t.attachShadow({mode:"open"}),i=document.createElement("div");i.id="smoot-chat-drawer-root",r.append(i);const l=mm({key:"css",prepend:!0,container:r}),s=Q2({components:{MuiPopover:{defaultProps:{container:i}},MuiPopper:{defaultProps:{container:i}},MuiModal:{defaultProps:{container:i}}}});FS.createRoot(i).render(A.createElement(xC,{value:l},A.createElement(jL,{theme:s},A.createElement(BL,{...e}))))};ur.init=qL,Object.defineProperty(ur,Symbol.toStringTag,{value:"Module"})});
|
|
234
|
+
*/var P2;function UD(){if(P2)return R0;P2=1;var e=Ql();function t(E,T){return E===T&&(E!==0||1/E===1/T)||E!==E&&T!==T}var r=typeof Object.is=="function"?Object.is:t,i=e.useState,o=e.useEffect,s=e.useLayoutEffect,c=e.useDebugValue;function d(E,T){var y=T(),v=i({inst:{value:y,getSnapshot:T}}),x=v[0].inst,B=v[1];return s(function(){x.value=y,x.getSnapshot=T,h(x)&&B({inst:x})},[E,y,T]),o(function(){return h(x)&&B({inst:x}),E(function(){h(x)&&B({inst:x})})},[E]),c(y),y}function h(E){var T=E.getSnapshot;E=E.value;try{var y=T();return!r(E,y)}catch{return!0}}function p(E,T){return T()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:d;return R0.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:b,R0}var U2;function HD(){return U2||(U2=1,v0.exports=UD()),v0.exports}var FD=HD();const H2=0,F2=1,z2=2,Y2=3;var j2=Object.prototype.hasOwnProperty;function N0(e,t){var r,i;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((i=e.length)===t.length)for(;i--&&N0(e[i],t[i]););return i===-1}if(!r||typeof e=="object"){i=0;for(r in e)if(j2.call(e,r)&&++i&&!j2.call(t,r)||!(r in t)||!N0(e[r],t[r]))return!1;return Object.keys(t).length===i}}return e!==e&&t!==t}const Jr=new WeakMap,Na=()=>{},In=Na(),O0=Object,lt=e=>e===In,jr=e=>typeof e=="function",Oa=(e,t)=>({...e,...t}),q2=e=>jr(e.then),k0={},Zs={},I0="undefined",Vo=typeof window!=I0,D0=typeof document!=I0,zD=Vo&&"Deno"in window,YD=()=>Vo&&typeof window.requestAnimationFrame!=I0,V2=(e,t)=>{const r=Jr.get(e);return[()=>!lt(t)&&e.get(t)||k0,i=>{if(!lt(t)){const o=e.get(t);t in Zs||(Zs[t]=o),r[5](t,Oa(o,i),o||k0)}},r[6],()=>!lt(t)&&t in Zs?Zs[t]:!lt(t)&&e.get(t)||k0]};let w0=!0;const jD=()=>w0,[L0,M0]=Vo&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Na,Na],qD=()=>{const e=D0&&document.visibilityState;return lt(e)||e!=="hidden"},VD=e=>(D0&&document.addEventListener("visibilitychange",e),L0("focus",e),()=>{D0&&document.removeEventListener("visibilitychange",e),M0("focus",e)}),GD=e=>{const t=()=>{w0=!0,e()},r=()=>{w0=!1};return L0("online",t),L0("offline",r),()=>{M0("online",t),M0("offline",r)}},$D={isOnline:jD,isVisible:qD},XD={initFocus:VD,initReconnect:GD},G2=!St.useId,Go=!Vo||zD,QD=e=>YD()?window.requestAnimationFrame(e):setTimeout(e,1),B0=Go?A.useEffect:A.useLayoutEffect,P0=typeof navigator<"u"&&navigator.connection,$2=!Go&&P0&&(["slow-2g","2g"].includes(P0.effectiveType)||P0.saveData),Js=new WeakMap,U0=(e,t)=>O0.prototype.toString.call(e)===`[object ${t}]`;let KD=0;const H0=e=>{const t=typeof e,r=U0(e,"Date"),i=U0(e,"RegExp"),o=U0(e,"Object");let s,c;if(O0(e)===e&&!r&&!i){if(s=Js.get(e),s)return s;if(s=++KD+"~",Js.set(e,s),Array.isArray(e)){for(s="@",c=0;c<e.length;c++)s+=H0(e[c])+",";Js.set(e,s)}if(o){s="#";const d=O0.keys(e).sort();for(;!lt(c=d.pop());)lt(e[c])||(s+=c+":"+H0(e[c])+",");Js.set(e,s)}}else s=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return s},F0=e=>{if(jr(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?H0(e):"",[e,t]};let WD=0;const z0=()=>++WD;async function X2(...e){const[t,r,i,o]=e,s=Oa({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let c=s.populateCache;const d=s.rollbackOnError;let h=s.optimisticData;const p=T=>typeof d=="function"?d(T):d!==!1,b=s.throwOnError;if(jr(r)){const T=r,y=[],v=t.keys();for(const x of v)!/^\$(inf|sub)\$/.test(x)&&T(t.get(x)._k)&&y.push(x);return Promise.all(y.map(E))}return E(r);async function E(T){const[y]=F0(T);if(!y)return;const[v,x]=V2(t,y),[B,O,P,L]=Jr.get(t),M=()=>{const ee=B[y];return(jr(s.revalidate)?s.revalidate(v().data,T):s.revalidate!==!1)&&(delete P[y],delete L[y],ee&&ee[0])?ee[0](z2).then(()=>v().data):v().data};if(e.length<3)return M();let D=i,N;const z=z0();O[y]=[z,0];const q=!lt(h),V=v(),_=V.data,j=V._c,$=lt(j)?_:j;if(q&&(h=jr(h)?h($,_):h,x({data:h,_c:$})),jr(D))try{D=D($)}catch(ee){N=ee}if(D&&q2(D))if(D=await D.catch(ee=>{N=ee}),z!==O[y][0]){if(N)throw N;return D}else N&&q&&p(N)&&(c=!0,x({data:$,_c:In}));if(c&&!N)if(jr(c)){const ee=c(D,$);x({data:ee,error:In,_c:In})}else x({data:D,error:In,_c:In});if(O[y][1]=z0(),Promise.resolve(M()).then(()=>{x({_c:In})}),N){if(b)throw N;return}return D}}const Q2=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},ZD=(e,t)=>{if(!Jr.has(e)){const r=Oa(XD,t),i=Object.create(null),o=X2.bind(In,e);let s=Na;const c=Object.create(null),d=(b,E)=>{const T=c[b]||[];return c[b]=T,T.push(E),()=>T.splice(T.indexOf(E),1)},h=(b,E,T)=>{e.set(b,E);const y=c[b];if(y)for(const v of y)v(E,T)},p=()=>{if(!Jr.has(e)&&(Jr.set(e,[i,Object.create(null),Object.create(null),Object.create(null),o,h,d]),!Go)){const b=r.initFocus(setTimeout.bind(In,Q2.bind(In,i,H2))),E=r.initReconnect(setTimeout.bind(In,Q2.bind(In,i,F2)));s=()=>{b&&b(),E&&E(),Jr.delete(e)}}};return p(),[e,o,p,s]}return[e,Jr.get(e)[4]]},JD=(e,t,r,i,o)=>{const s=r.errorRetryCount,c=o.retryCount,d=~~((Math.random()+.5)*(1<<(c<8?c:8)))*r.errorRetryInterval;!lt(s)&&c>s||setTimeout(i,d,o)},ew=N0,[K2,tw]=ZD(new Map),nw=Oa({onLoadingSlow:Na,onSuccess:Na,onError:Na,onErrorRetry:JD,onDiscarded:Na,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:$2?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:$2?5e3:3e3,compare:ew,isPaused:()=>!1,cache:K2,mutate:tw,fallback:{}},$D),rw=(e,t)=>{const r=Oa(e,t);if(t){const{use:i,fallback:o}=e,{use:s,fallback:c}=t;i&&s&&(r.use=i.concat(s)),o&&c&&(r.fallback=Oa(o,c))}return r},aw=A.createContext({}),iw="$inf$",W2=Vo&&window.__SWR_DEVTOOLS_USE__,uw=W2?window.__SWR_DEVTOOLS_USE__:[],ow=()=>{W2&&(window.__SWR_DEVTOOLS_REACT__=St)},lw=e=>jr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],sw=()=>Oa(nw,A.useContext(aw)),cw=e=>(t,r,i)=>e(t,r&&((...s)=>{const[c]=F0(t),[,,,d]=Jr.get(K2);if(c.startsWith(iw))return r(...s);const h=d[c];return lt(h)?r(...s):(delete d[c],h)}),i),fw=uw.concat(cw),dw=e=>function(...r){const i=sw(),[o,s,c]=lw(r),d=rw(i,c);let h=e;const{use:p}=d,b=(p||[]).concat(fw);for(let E=b.length;E--;)h=b[E](h);return h(o,s||d.fetcher||null,d)},hw=(e,t,r)=>{const i=t[e]||(t[e]=[]);return i.push(r),()=>{const o=i.indexOf(r);o>=0&&(i[o]=i[i.length-1],i.pop())}};ow();const Y0=St.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),j0={dedupe:!0},ec=dw((e,t,r)=>{const{cache:i,compare:o,suspense:s,fallbackData:c,revalidateOnMount:d,revalidateIfStale:h,refreshInterval:p,refreshWhenHidden:b,refreshWhenOffline:E,keepPreviousData:T}=r,[y,v,x,B]=Jr.get(i),[O,P]=F0(e),L=A.useRef(!1),M=A.useRef(!1),D=A.useRef(O),N=A.useRef(t),z=A.useRef(r),q=()=>z.current,V=()=>q().isVisible()&&q().isOnline(),[_,j,$,ee]=V2(i,O),X=A.useRef({}).current,te=lt(c)?lt(r.fallback)?In:r.fallback[O]:c,F=(Oe,Ce)=>{for(const we in X){const ke=we;if(ke==="data"){if(!o(Oe[ke],Ce[ke])&&(!lt(Oe[ke])||!o(Re,Ce[ke])))return!1}else if(Ce[ke]!==Oe[ke])return!1}return!0},ie=A.useMemo(()=>{const Oe=!O||!t?!1:lt(d)?q().isPaused()||s?!1:h!==!1:d,Ce=$e=>{const ct=Oa($e);return delete ct._k,Oe?{isValidating:!0,isLoading:!0,...ct}:ct},we=_(),ke=ee(),Me=Ce(we),Fe=we===ke?Me:Ce(ke);let qe=Me;return[()=>{const $e=Ce(_());return F($e,qe)?(qe.data=$e.data,qe.isLoading=$e.isLoading,qe.isValidating=$e.isValidating,qe.error=$e.error,qe):(qe=$e,$e)},()=>Fe]},[i,O]),Q=FD.useSyncExternalStore(A.useCallback(Oe=>$(O,(Ce,we)=>{F(we,Ce)||Oe()}),[i,O]),ie[0],ie[1]),he=!L.current,C=y[O]&&y[O].length>0,Z=Q.data,fe=lt(Z)?te&&q2(te)?Y0(te):te:Z,k=Q.error,be=A.useRef(fe),Re=T?lt(Z)?lt(be.current)?fe:be.current:Z:fe,Te=C&&!lt(k)?!1:he&&!lt(d)?d:q().isPaused()?!1:s?lt(fe)?!1:h:lt(fe)||h,Xe=!!(O&&t&&he&&Te),Be=lt(Q.isValidating)?Xe:Q.isValidating,ut=lt(Q.isLoading)?Xe:Q.isLoading,Ct=A.useCallback(async Oe=>{const Ce=N.current;if(!O||!Ce||M.current||q().isPaused())return!1;let we,ke,Me=!0;const Fe=Oe||{},qe=!x[O]||!Fe.dedupe,$e=()=>G2?!M.current&&O===D.current&&L.current:O===D.current,ct={isValidating:!1,isLoading:!1},Ie=()=>{j(ct)},un=()=>{const Bt=x[O];Bt&&Bt[1]===ke&&delete x[O]},Ft={isValidating:!0};lt(_().data)&&(Ft.isLoading=!0);try{if(qe&&(j(Ft),r.loadingTimeout&<(_().data)&&setTimeout(()=>{Me&&$e()&&q().onLoadingSlow(O,r)},r.loadingTimeout),x[O]=[Ce(P),z0()]),[we,ke]=x[O],we=await we,qe&&setTimeout(un,r.dedupingInterval),!x[O]||x[O][1]!==ke)return qe&&$e()&&q().onDiscarded(O),!1;ct.error=In;const Bt=v[O];if(!lt(Bt)&&(ke<=Bt[0]||ke<=Bt[1]||Bt[1]===0))return Ie(),qe&&$e()&&q().onDiscarded(O),!1;const ae=_().data;ct.data=o(ae,we)?ae:we,qe&&$e()&&q().onSuccess(we,O,r)}catch(Bt){un();const ae=q(),{shouldRetryOnError:de}=ae;ae.isPaused()||(ct.error=Bt,qe&&$e()&&(ae.onError(Bt,O,ae),(de===!0||jr(de)&&de(Bt))&&(!q().revalidateOnFocus||!q().revalidateOnReconnect||V())&&ae.onErrorRetry(Bt,O,ae,Se=>{const Ae=y[O];Ae&&Ae[0]&&Ae[0](Y2,Se)},{retryCount:(Fe.retryCount||0)+1,dedupe:!0})))}return Me=!1,Ie(),!0},[O,i]),gt=A.useCallback((...Oe)=>X2(i,D.current,...Oe),[]);if(B0(()=>{N.current=t,z.current=r,lt(Z)||(be.current=Z)}),B0(()=>{if(!O)return;const Oe=Ct.bind(In,j0);let Ce=0;q().revalidateOnFocus&&(Ce=Date.now()+q().focusThrottleInterval);const ke=hw(O,y,(Me,Fe={})=>{if(Me==H2){const qe=Date.now();q().revalidateOnFocus&&qe>Ce&&V()&&(Ce=qe+q().focusThrottleInterval,Oe())}else if(Me==F2)q().revalidateOnReconnect&&V()&&Oe();else{if(Me==z2)return Ct();if(Me==Y2)return Ct(Fe)}});return M.current=!1,D.current=O,L.current=!0,j({_k:P}),Te&&(lt(fe)||Go?Oe():QD(Oe)),()=>{M.current=!0,ke()}},[O]),B0(()=>{let Oe;function Ce(){const ke=jr(p)?p(_().data):p;ke&&Oe!==-1&&(Oe=setTimeout(we,ke))}function we(){!_().error&&(b||q().isVisible())&&(E||q().isOnline())?Ct(j0).then(Ce):Ce()}return Ce(),()=>{Oe&&(clearTimeout(Oe),Oe=-1)}},[p,b,E,O]),A.useDebugValue(Re),s&<(fe)&&O){if(!G2&&Go)throw new Error("Fallback data is required when using Suspense in SSR.");N.current=t,z.current=r,M.current=!1;const Oe=B[O];if(!lt(Oe)){const Ce=gt(Oe);Y0(Ce)}if(lt(k)){const Ce=Ct(j0);lt(Re)||(Ce.status="fulfilled",Ce.value=!0),Y0(Ce)}else throw k}return{mutate:gt,get data(){return X.data=!0,Re},get error(){return X.error=!0,k},get isValidating(){return X.isValidating=!0,Be},get isLoading(){return X.isLoading=!0,ut}}});var q0,Z2;function pw(){if(Z2)return q0;Z2=1;function e(t,r){if(typeof t!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof t}\`.`);let i,o=0;return function(...c){clearTimeout(i);const d=Date.now(),h=d-o,p=r-h;p<=0?(o=d,t.apply(this,c)):i=setTimeout(()=>{o=Date.now(),t.apply(this,c)},p)}}return q0=e,q0}var mw=pw();const gw=or(mw);function J2(e,t){return t!=null?gw(e,t):e}function bw(e){const[t,r]=A.useState(e);return A.useEffect(()=>{_0(e,t)||r(e)},[e,t]),t}function Ew({api:e="/api/chat",id:t,initialMessages:r,initialInput:i="",sendExtraMessageFields:o,onToolCall:s,experimental_prepareRequestBody:c,maxSteps:d=1,streamProtocol:h="data",onResponse:p,onFinish:b,onError:E,credentials:T,headers:y,body:v,generateId:x=T0,fetch:B,keepLastMessageOnError:O=!0,experimental_throttle:P}={}){const[L]=A.useState(x),M=t??L,D=typeof e=="string"?[e,M]:M,N=bw(r??[]),z=A.useMemo(()=>x0(N),[N]),{data:q,mutate:V}=ec([D,"messages"],null,{fallbackData:z}),_=A.useRef(q||[]);A.useEffect(()=>{_.current=q||[]},[q]);const{data:j,mutate:$}=ec([D,"streamData"],null),ee=A.useRef(j);A.useEffect(()=>{ee.current=j},[j]);const{data:X="ready",mutate:te}=ec([D,"status"],null),{data:F=void 0,mutate:ie}=ec([D,"error"],null),Q=A.useRef(null),he=A.useRef({credentials:T,headers:y,body:v});A.useEffect(()=>{he.current={credentials:T,headers:y,body:v}},[T,y,v]);const C=A.useCallback(async(Ne,Oe="generate")=>{var Ce,we;te("submitted"),ie(void 0);const ke=x0(Ne.messages),Me=ke.length,Fe=A0((Ce=ke[ke.length-1])==null?void 0:Ce.toolInvocations);try{const $e=new AbortController;Q.current=$e;const ct=J2(V,P),Ie=J2($,P),un=_.current;ct(ke,!1);const Ft=o?ke:ke.map(({role:ae,content:de,experimental_attachments:Se,data:Ae,annotations:Pe,toolInvocations:Ve,parts:Tt})=>({role:ae,content:de,...Se!==void 0&&{experimental_attachments:Se},...Ae!==void 0&&{data:Ae},...Pe!==void 0&&{annotations:Pe},...Ve!==void 0&&{toolInvocations:Ve},...Tt!==void 0&&{parts:Tt}})),Bt=ee.current;await MD({api:e,body:(we=c==null?void 0:c({id:M,messages:ke,requestData:Ne.data,requestBody:Ne.body}))!=null?we:{id:M,messages:Ft,data:Ne.data,...he.current.body,...Ne.body},streamProtocol:h,credentials:he.current.credentials,headers:{...he.current.headers,...Ne.headers},abortController:()=>Q.current,restoreMessagesOnFailure(){O||ct(un,!1)},onResponse:p,onUpdate({message:ae,data:de,replaceLastMessage:Se}){te("streaming"),ct([...Se?ke.slice(0,ke.length-1):ke,ae],!1),de!=null&&de.length&&Ie([...Bt??[],...de],!1)},onToolCall:s,onFinish:b,generateId:x,fetch:B,lastMessage:ke[ke.length-1],requestType:Oe}),Q.current=null,te("ready")}catch($e){if($e.name==="AbortError")return Q.current=null,te("ready"),null;E&&$e instanceof Error&&E($e),ie($e),te("error")}const qe=_.current;BD({originalMaxToolInvocationStep:Fe,originalMessageCount:Me,maxSteps:d,messages:qe})&&await C({messages:qe})},[V,te,e,he,p,b,E,ie,$,ee,h,o,c,s,d,_,Q,x,B,O,P,M]),Z=A.useCallback(async(Ne,{data:Oe,headers:Ce,body:we,experimental_attachments:ke=Ne.experimental_attachments}={})=>{var Me,Fe;const qe=await M2(ke),$e=_.current.concat({...Ne,id:(Me=Ne.id)!=null?Me:x(),createdAt:(Fe=Ne.createdAt)!=null?Fe:new Date,experimental_attachments:qe.length>0?qe:void 0,parts:L2(Ne)});return C({messages:$e,headers:Ce,body:we,data:Oe})},[C,x]),fe=A.useCallback(async({data:Ne,headers:Oe,body:Ce}={})=>{const we=_.current;if(we.length===0)return null;const ke=we[we.length-1];return C({messages:ke.role==="assistant"?we.slice(0,-1):we,headers:Oe,body:Ce,data:Ne})},[C]),k=A.useCallback(()=>{Q.current&&(Q.current.abort(),Q.current=null)},[]),be=A.useCallback(async()=>{const Ne=_.current;C({messages:Ne},"resume")},[C]),Re=A.useCallback(Ne=>{typeof Ne=="function"&&(Ne=Ne(_.current));const Oe=x0(Ne);V(Oe,!1),_.current=Oe},[V]),Te=A.useCallback(Ne=>{typeof Ne=="function"&&(Ne=Ne(ee.current)),$(Ne,!1),ee.current=Ne},[$]),[Xe,Be]=A.useState(i),ut=A.useCallback(async(Ne,Oe={},Ce)=>{var we;if((we=Ne==null?void 0:Ne.preventDefault)==null||we.call(Ne),!Xe&&!Oe.allowEmptySubmit)return;Ce&&(he.current={...he.current,...Ce});const ke=await M2(Oe.experimental_attachments),Fe={messages:_.current.concat({id:x(),createdAt:new Date,role:"user",content:Xe,experimental_attachments:ke.length>0?ke:void 0,parts:[{type:"text",text:Xe}]}),headers:Oe.headers,body:Oe.body,data:Oe.data};C(Fe),Be("")},[Xe,x,C]),Ct=Ne=>{Be(Ne.target.value)},gt=A.useCallback(({toolCallId:Ne,result:Oe})=>{const Ce=_.current;if(PD({messages:Ce,toolCallId:Ne,toolResult:Oe}),V([...Ce.slice(0,Ce.length-1),{...Ce[Ce.length-1]}],!1),X==="submitted"||X==="streaming")return;const we=Ce[Ce.length-1];B2(we)&&C({messages:Ce})},[V,X,C]);return{messages:q??[],id:M,setMessages:Re,data:j,setData:Te,error:F,append:Z,reload:fe,stop:k,experimental_resume:be,input:Xe,setInput:Be,handleInputChange:Ct,handleSubmit:ut,isLoading:X==="submitted"||X==="streaming",status:X,addToolResult:gt}}const yw=e=>e,Tw=e=>async(t,r)=>{var c;if(typeof(r==null?void 0:r.body)!="string")return console.error("Unexpected body type."),window.fetch(t,r);const i=JSON.parse(r==null?void 0:r.body).messages,o=e.transformBody??yw,s={...r,body:JSON.stringify(o(i)),...e.fetchOpts,headers:{...r==null?void 0:r.headers,"Content-Type":"application/json",...(c=e.fetchOpts)==null?void 0:c.headers}};return fetch(t,s)},ey=A.createContext(null),Sw=({initialMessages:e,requestOpts:t,chatId:r,parseContent:i,children:o})=>{const s=A.useMemo(()=>(e==null?void 0:e.map((b,E)=>({...b,id:`initial-${E}`})))??[],[e]),c=A.useMemo(()=>Tw(t),[t]),{messages:d,...h}=Ew({api:t.apiUrl,streamProtocol:"text",fetch:c,onFinish:b=>{var E;t.onFinish&&(b.role==="assistant"||b.role==="user"?(E=t.onFinish)==null||E.call(t,b):console.info("Unexpected message role.",b))},initialMessages:s,id:r}),p=A.useMemo(()=>{const b=s==null?void 0:s.map(E=>E.id);return d.map(E=>{if(E.role==="assistant"&&!(b!=null&&b.includes(E.id))){const T=i?i(E.content):E.content;return{...E,content:T}}return E})},[i,d,s]);return A.createElement(ey.Provider,{key:r,value:{initialMessages:s,messages:p,...h}},o)},Cw=()=>{const e=A.useContext(ey);if(!e)throw new Error("useAiChatContext must be used within an AiChatProvider");return e},Aw=e=>e.scrollHeight-e.clientHeight-e.scrollTop,xw=e=>{e.scrollTop=e.scrollHeight},_w=({scrollElement:e,contentElement:t,threshold:r=2})=>{A.useEffect(()=>{const i=()=>{e&&Aw(e)<r&&xw(e)};i();const o=new ResizeObserver(i);return t&&o.observe(t),()=>{o.disconnect()}},[e,t,r])},ty=function(e,t,r){const i=ad(r);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(i(e.children[t],t,e))return e.children[t]},hi=function(e){if(e==null)return Nw;if(typeof e=="string")return Rw(e);if(typeof e=="object")return vw(e);if(typeof e=="function")return V0(e);throw new Error("Expected function, string, or array as `test`")};function vw(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=hi(e[r]);return V0(i);function i(...o){let s=-1;for(;++s<t.length;)if(t[s].apply(this,o))return!0;return!1}}function Rw(e){return V0(t);function t(r){return r.tagName===e}}function V0(e){return t;function t(r,i,o){return!!(Ow(r)&&e.call(this,r,typeof i=="number"?i:void 0,o||void 0))}}function Nw(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Ow(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const ny=/\n/g,ry=/[\t ]+/g,G0=hi("br"),ay=hi(Pw),kw=hi("p"),iy=hi("tr"),Iw=hi(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",Bw,Uw]),uy=hi(["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 Dw(e,t){const r=t||{},i="children"in e?e.children:[],o=uy(e),s=sy(e,{whitespace:r.whitespace||"normal"}),c=[];(e.type==="text"||e.type==="comment")&&c.push(...ly(e,{breakBefore:!0,breakAfter:!0}));let d=-1;for(;++d<i.length;)c.push(...oy(i[d],e,{whitespace:s,breakBefore:d?void 0:o,breakAfter:d<i.length-1?G0(i[d+1]):o}));const h=[];let p;for(d=-1;++d<c.length;){const b=c[d];typeof b=="number"?p!==void 0&&b>p&&(p=b):b&&(p!==void 0&&p>-1&&h.push(`
|
|
235
|
+
`.repeat(p)||" "),p=-1,h.push(b))}return h.join("")}function oy(e,t,r){return e.type==="element"?ww(e,t,r):e.type==="text"?r.whitespace==="normal"?ly(e,r):Lw(e):[]}function ww(e,t,r){const i=sy(e,r),o=e.children||[];let s=-1,c=[];if(Iw(e))return c;let d,h;for(G0(e)||iy(e)&&ty(t,e,iy)?h=`
|
|
236
|
+
`:kw(e)?(d=2,h=2):uy(e)&&(d=1,h=1);++s<o.length;)c=c.concat(oy(o[s],e,{whitespace:i,breakBefore:s?void 0:d,breakAfter:s<o.length-1?G0(o[s+1]):h}));return ay(e)&&ty(t,e,ay)&&c.push(" "),d&&c.unshift(d),h&&c.push(h),c}function ly(e,t){const r=String(e.value),i=[],o=[];let s=0;for(;s<=r.length;){ny.lastIndex=s;const h=ny.exec(r),p=h&&"index"in h?h.index:r.length;i.push(Mw(r.slice(s,p).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),s===0?t.breakBefore:!0,p===r.length?t.breakAfter:!0)),s=p+1}let c=-1,d;for(;++c<i.length;)i[c].charCodeAt(i[c].length-1)===8203||c<i.length-1&&i[c+1].charCodeAt(0)===8203?(o.push(i[c]),d=void 0):i[c]?(typeof d=="number"&&o.push(d),o.push(i[c]),d=0):(c===0||c===i.length-1)&&o.push(0);return o}function Lw(e){return[String(e.value)]}function Mw(e,t,r){const i=[];let o=0,s;for(;o<e.length;){ry.lastIndex=o;const c=ry.exec(e);s=c?c.index:e.length,!o&&!s&&c&&!t&&i.push(""),o!==s&&i.push(e.slice(o,s)),o=c?s+c[0].length:s}return o!==s&&!r&&i.push(""),i.join(" ")}function sy(e,t){if(e.type==="element"){const r=e.properties||{};switch(e.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":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function Bw(e){return!!(e.properties||{}).hidden}function Pw(e){return e.tagName==="td"||e.tagName==="th"}function Uw(e){return e.tagName==="dialog"&&!(e.properties||{}).open}const Hw={},Fw=[];function zw(e){return function(t){return function(r,i){const o=e(t||Hw);let s=!1,c=r;tg(r,"element",function(d,h){const p=Array.isArray(d.properties.className)?d.properties.className:Fw,b=p.includes("language-math"),E=p.includes("math-display"),T=p.includes("math-inline");let y=E;if(d.tagName==="head"&&(c=d),!b&&!E&&!T)return;let v=h[h.length-1],x=d;if(d.tagName==="code"&&b&&v&&v.type==="element"&&v.tagName==="pre"&&(x=v,v=h[h.length-2],y=!0),!v)return;!s&&o.register&&o.register(),s=!0;const B=Dw(x,{whitespace:"pre"});let O;try{O=o.render(B,{display:y})}catch(L){const M=L;i.message("Could not render math with mathjax",{ancestors:[...h,d],cause:M,place:d.position,ruleId:"mathjax-error",source:"rehype-mathjax"}),O=[{type:"element",tagName:"span",properties:{className:["mathjax-error"],style:"color:#cc0000",title:String(M)},children:[{type:"text",value:B}]}]}const P=v.children.indexOf(x);return v.children.splice(P,1,...O),eg}),s&&(o.styleSheet&&c.children.push(o.styleSheet()),o.unregister&&o.unregister())}}}const Yw={},jw=zw(function(e){const t=e.tex||Yw,r=t.displayMath||[["\\[","\\]"]],i=t.inlineMath||[["\\(","\\)"]];return{render(o,s){const c=(s.display?r:i)[0];return[{type:"text",value:c[0]+o+c[1]}]}}});function qw(e,t){const r=String(e);let i=r.indexOf(t),o=i,s=0,c=0;for(;i!==-1;)i===o?++s>c&&(c=s):s=1,o=i+t.length,i=r.indexOf(t,o);return c}function Vw(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:s},exit:{mathFlow:o,mathFlowFence:i,mathFlowFenceMeta:r,mathFlowValue:d,mathText:c,mathTextData:d}};function e(h){const p={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[p]}},h)}function t(){this.buffer()}function r(){const h=this.resume(),p=this.stack[this.stack.length-1];p.type,p.meta=h}function i(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function o(h){const p=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),b=this.stack[this.stack.length-1];b.type,this.exit(h),b.value=p;const E=b.data.hChildren[0];E.type,E.tagName,E.children.push({type:"text",value:p}),this.data.mathFlowInside=void 0}function s(h){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},h),this.buffer()}function c(h){const p=this.resume(),b=this.stack[this.stack.length-1];b.type,this.exit(h),b.value=p,b.data.hChildren.push({type:"text",value:p})}function d(h){this.config.enter.data.call(this,h),this.config.exit.data.call(this,h)}}function Gw(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),i.peek=o,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
|
237
|
+
`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:r,inlineMath:i}};function r(s,c,d,h){const p=s.value||"",b=d.createTracker(h),E="$".repeat(Math.max(qw(p,"$")+1,2)),T=d.enter("mathFlow");let y=b.move(E);if(s.meta){const v=d.enter("mathFlowMeta");y+=b.move(d.safe(s.meta,{after:`
|
|
238
|
+
`,before:y,encode:["$"],...b.current()})),v()}return y+=b.move(`
|
|
239
|
+
`),p&&(y+=b.move(p+`
|
|
240
|
+
`)),y+=b.move(E),T(),y}function i(s,c,d){let h=s.value||"",p=1;for(t||p++;new RegExp("(^|[^$])"+"\\$".repeat(p)+"([^$]|$)").test(h);)p++;const b="$".repeat(p);/[^ \r\n]/.test(h)&&(/^[ \r\n]/.test(h)&&/[ \r\n]$/.test(h)||/^\$|\$$/.test(h))&&(h=" "+h+" ");let E=-1;for(;++E<d.unsafe.length;){const T=d.unsafe[E];if(!T.atBreak)continue;const y=d.compilePattern(T);let v;for(;v=y.exec(h);){let x=v.index;h.codePointAt(x)===10&&h.codePointAt(x-1)===13&&x--,h=h.slice(0,x)+" "+h.slice(v.index+1)}}return b+h+b}function o(){return"$"}}const $w={tokenize:Xw,concrete:!0,name:"mathFlow"},cy={tokenize:Qw,partial:!0};function Xw(e,t,r){const i=this,o=i.events[i.events.length-1],s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0;let c=0;return d;function d(P){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),h(P)}function h(P){return P===36?(e.consume(P),c++,h):c<2?r(P):(e.exit("mathFlowFenceSequence"),yt(e,p,"whitespace")(P))}function p(P){return P===null||Le(P)?E(P):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(P))}function b(P){return P===null||Le(P)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),E(P)):P===36?r(P):(e.consume(P),b)}function E(P){return e.exit("mathFlowFence"),i.interrupt?t(P):e.attempt(cy,T,B)(P)}function T(P){return e.attempt({tokenize:O,partial:!0},B,y)(P)}function y(P){return(s?yt(e,v,"linePrefix",s+1):v)(P)}function v(P){return P===null?B(P):Le(P)?e.attempt(cy,T,B)(P):(e.enter("mathFlowValue"),x(P))}function x(P){return P===null||Le(P)?(e.exit("mathFlowValue"),v(P)):(e.consume(P),x)}function B(P){return e.exit("mathFlow"),t(P)}function O(P,L,M){let D=0;return yt(P,N,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function N(V){return P.enter("mathFlowFence"),P.enter("mathFlowFenceSequence"),z(V)}function z(V){return V===36?(D++,P.consume(V),z):D<c?M(V):(P.exit("mathFlowFenceSequence"),yt(P,q,"whitespace")(V))}function q(V){return V===null||Le(V)?(P.exit("mathFlowFence"),L(V)):M(V)}}}function Qw(e,t,r){const i=this;return o;function o(c){return c===null?t(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s)}function s(c){return i.parser.lazy[i.now().line]?r(c):t(c)}}function Kw(e){let r=(e||{}).singleDollarTextMath;return r==null&&(r=!0),{tokenize:i,resolve:Ww,previous:Zw,name:"mathText"};function i(o,s,c){let d=0,h,p;return b;function b(x){return o.enter("mathText"),o.enter("mathTextSequence"),E(x)}function E(x){return x===36?(o.consume(x),d++,E):d<2&&!r?c(x):(o.exit("mathTextSequence"),T(x))}function T(x){return x===null?c(x):x===36?(p=o.enter("mathTextSequence"),h=0,v(x)):x===32?(o.enter("space"),o.consume(x),o.exit("space"),T):Le(x)?(o.enter("lineEnding"),o.consume(x),o.exit("lineEnding"),T):(o.enter("mathTextData"),y(x))}function y(x){return x===null||x===32||x===36||Le(x)?(o.exit("mathTextData"),T(x)):(o.consume(x),y)}function v(x){return x===36?(o.consume(x),h++,v):h===d?(o.exit("mathTextSequence"),o.exit("mathText"),s(x)):(p.type="mathTextData",y(x))}}}function Ww(e){let t=e.length-4,r=3,i,o;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=r;++i<t;)if(e[i][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[r][1].type="mathTextPadding",r+=2,t-=2;break}}for(i=r-1,t++;++i<=t;)o===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(o=i):(i===t||e[i][1].type==="lineEnding")&&(e[o][1].type="mathTextData",i!==o+2&&(e[o][1].end=e[i-1][1].end,e.splice(o+2,i-o-2),t-=i-o-2,i=o+2),o=void 0);return e}function Zw(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function Jw(e){return{flow:{36:$w},text:{36:Kw(e)}}}const eL={};function tL(e){const t=this,r=e||eL,i=t.data(),o=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),c=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);o.push(Jw(r)),s.push(Vw()),c.push(Gw(r))}var $0=function(){return($0=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},$o,Xo,X0=A.createContext(void 0),fy="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/MathJax.js?config=TeX-MML-AM_CHTML",dy="https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.2/es5/tex-mml-chtml.js",nL=function(E){var t=E.config,r=E.version,r=r===void 0?3:r,i=E.src,i=i===void 0?r===2?fy:dy:i,o=E.onStartup,s=E.onLoad,h=E.asyncLoad,c=h!==void 0&&h,d=E.onError,h=E.typesettingOptions,p=E.renderMode,p=p===void 0?"post":p,b=E.hideUntilTypeset,E=E.children,y=A.useContext(X0);if((y==null?void 0:y.version)!==void 0&&(y==null?void 0:y.version)!==r)throw Error("Cannot nest MathJaxContexts with different versions. MathJaxContexts should not be nested at all but if they are, they cannot have different versions. Stick with one version of MathJax in your app and avoid using more than one MathJaxContext.");if(r===2&&Xo!==void 0||r===3&&$o!==void 0)throw Error("Cannot use MathJax versions 2 and 3 simultaneously in the same app due to how MathJax is set up in the browser; either you have multiple MathJaxContexts with different versions or you have mounted and unmounted MathJaxContexts with different versions. Please stick with one version of MathJax in your app. File an issue in the project Github page if you need this feature.");var T=A.useRef(y),y=A.useRef((y==null?void 0:y.version)||null);if(y.current===null)y.current=r;else if(y.current!==r)throw Error("Cannot change version of MathJax in a MathJaxContext after it has mounted. Reload the page with a new version when this must happen.");var v=i||(r===2?fy:dy);function x(B,O){t&&(window.MathJax=t);var P=document.createElement("script");P.type="text/javascript",P.src=v,P.async=c,P.addEventListener("load",function(){var L=window.MathJax;o&&o(L),B(L),s&&s()}),P.addEventListener("error",function(L){return O(L)}),document.getElementsByTagName("head")[0].appendChild(P)}return T.current===void 0&&(y={typesettingOptions:h,renderMode:p,hideUntilTypeset:b},r===2?$o===void 0&&(typeof window<"u"?($o=new Promise(x)).catch(function(B){if(!d)throw Error("Failed to download MathJax version 2 from '".concat(v,"' due to: ").concat(JSON.stringify(B)));d(B)}):($o=Promise.reject()).catch(function(B){})):Xo===void 0&&(typeof window<"u"?(Xo=new Promise(x)).catch(function(B){if(!d)throw Error("Failed to download MathJax version 3 from '".concat(v,"' due to: ").concat(B));d(B)}):(Xo=Promise.reject()).catch(function(B){})),T.current=$0($0({},y),r===2?{version:2,promise:$o}:{version:3,promise:Xo})),St.createElement(X0.Provider,{value:T.current},E)},ka=function(){return(ka=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},rL=function(e,t){var r={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(r[o[i]]=e[o[i]]);return r},Qo=function(e){return"Typesetting failed: ".concat(e.message!==void 0?e.message:JSON.stringify(e))},aL=function(e){function t(){var D;x==="every"&&P&&B==="post"&&y.current!==null&&(y.current.style.visibility=(D=(D=E.style)==null?void 0:D.visibility)!=null?D:"visible"),L.current||(x==="first"&&y.current!==null&&(y.current.style.visibility="visible"),o&&o(),L.current=!0),s&&s(),M.current=!1}var i=e.inline,r=i!==void 0&&i,i=e.hideUntilTypeset,o=e.onInitTypeset,s=e.onTypeset,c=e.text,d=e.dynamic,h=e.typesettingOptions,p=e.renderMode,b=e.children,E=rL(e,["inline","hideUntilTypeset","onInitTypeset","onTypeset","text","dynamic","typesettingOptions","renderMode","children"]),T=A.useRef(""),y=A.useRef(null),v=A.useContext(X0),x=i??(v==null?void 0:v.hideUntilTypeset),B=p??(v==null?void 0:v.renderMode),O=h??(v==null?void 0:v.typesettingOptions),P=d!==!1&&(d||!1),L=A.useRef(!1),M=A.useRef(!1);return!M.current&&y.current!==null&&P&&x==="every"&&B==="post"&&(y.current.style.visibility="hidden"),(typeof window<"u"?A.useLayoutEffect:A.useEffect)(function(){if((P||!L.current)&&y.current!==null){if(!v)throw Error("MathJax was not loaded, did you use the MathJax component outside of a MathJaxContext?");if(B==="pre"){if(!(typeof(D=c)=="string"&&0<D.length))throw Error(`Render mode 'pre' requires text prop to be set and non-empty, which was currently "`.concat(c,'"'));if(!h||!h.fn)throw Error("Render mode 'pre' requires 'typesettingOptions' prop with 'fn' property to be set on MathJax element or in the MathJaxContext");if(v.version===2)throw Error("Render mode 'pre' only available with MathJax 3, and version 2 is currently in use")}B!=="post"&&c===T.current||M.current||(M.current=!0,v.version===3?v.promise.then(function(N){var z;B==="pre"?(z=function(q){T.current=c,N.startup.document.clear(),N.startup.document.updateDocument(),y.current!==null&&(y.current.innerHTML=q.outerHTML),t()},h.fn.endsWith("Promise")?N.startup.promise.then(function(){return N[O.fn](c,ka(ka({},(O==null?void 0:O.options)||{}),{display:!r}))}).then(z).catch(function(q){throw t(),Error(Qo(q))}):N.startup.promise.then(function(){var q=N[O.fn](c,ka(ka({},(O==null?void 0:O.options)||{}),{display:!r}));z(q)}).catch(function(q){throw t(),Error(Qo(q))})):N.startup.promise.then(function(){return N.typesetClear([y.current]),N.typesetPromise([y.current])}).then(t).catch(function(q){throw t(),Error(Qo(q))})}).catch(function(N){throw t(),Error(Qo(N))}):v.promise.then(function(N){N.Hub.Queue(["Typeset",N.Hub,y.current]),N.Hub.Queue(t)}).catch(function(N){throw t(),Error(Qo(N))}))}var D}),St.createElement("span",ka({},E,{style:ka(ka({display:r?"inline":"block"},E.style),{visibility:x?"hidden":(e=E.style)==null?void 0:e.visibility}),ref:y}),b)};const iL=({children:e,enableMathjax:t})=>{const r=t?[tL]:void 0,i=t?[jw]:void 0,o=A.createElement(dg,{skipHtml:!0,remarkPlugins:r,rehypePlugins:i},e);return t?A.createElement(aL,null,o):o},bn={root:"MitAiChat--root",title:"MitAiChat--title",entryScreenContainer:"MitAiChat--entryScreenContainer",conversationStarter:"MitAiChat--conversationStarter",chatScreenContainer:"MitAiChat--chatScreenContainer",messagesContainer:"MitAiChat--messagesContainer",messageRow:"MitAiChat--messageRow",messageRowUser:"MitAiChat--messageRowUser",messageRowAssistant:"MitAiChat--messageRowAssistant",message:"MitAiChat--message",input:"MitAiChat--input",bottomSection:"MitAiChat--bottomSection"},uL=He.div(),oL=He.div(({externalScroll:e,theme:t})=>({padding:"16px 32px 0",[t.breakpoints.down("md")]:{padding:"16px 16px 0"},boxSizing:"border-box",background:"white",position:"absolute",bottom:0,top:0,left:0,right:0,zIndex:1,...e&&{padding:"0 32px",[t.breakpoints.down("md")]:{padding:"0 16px"}}})),lL=He.div(({externalScroll:e})=>({width:"100%",height:e?"auto":"100%",minHeight:e?"100%":"auto",display:"flex",flexDirection:"column"})),sL=He(lI)(({externalScroll:e})=>({display:"flex",flexDirection:"column",flex:1,padding:"14px 0",overflow:e?"visible":"auto",gap:"16px",[`> .${bn.messageRowAssistant}:first-child`]:{marginTop:"16px"}})),hy=He.div({display:"flex",width:"100%",gap:"10px",[`&.${bn.messageRowUser}`]:{flexDirection:"row-reverse"},"> *":{minWidth:0},position:"relative"}),py=He.div(({theme:e})=>({color:e.custom.colors.darkGray2,backgroundColor:e.custom.colors.white,...e.typography.body2,"p:first-of-type":{marginTop:0},"p:last-of-type":{marginBottom:0},"ol, ul":{paddingInlineStart:"16px",marginLeft:"6px","ol, ul":{marginLeft:0},li:{margin:"16px 0"}},a:{color:e.custom.colors.red,fontWeight:"normal"},borderRadius:"12px",[`.${bn.messageRowUser} &`]:{padding:"12px 16px",borderRadius:"8px 0px 8px 8px",backgroundColor:e.custom.colors.lightGray1}})),cL=He.div({alignSelf:"flex-end",alignItems:"end",display:"flex",flexDirection:"column",gap:"12px"}),fL=He.button(({theme:e})=>({border:`1px solid ${e.custom.colors.lightGray2}`,backgroundColor:e.custom.colors.white,padding:"8px 16px",...e.typography.body3,cursor:"pointer",boxSizing:"border-box","&:hover":{color:e.custom.colors.white,backgroundColor:e.custom.colors.silverGrayDark,borderColor:"transparent"},borderRadius:"8px"})),dL=He(_b)(({theme:e})=>({fill:e.custom.colors.red})),hL=He(H8)(({theme:e})=>({fill:e.custom.colors.red})),pL=He.div(({externalScroll:e,theme:t})=>({padding:"12px 0 16px",...e&&{position:"sticky",bottom:0,background:t.custom.colors.white},"button:focus-visible":{outlineOffset:"-1px",borderRadius:"7px"}})),mL=He(fi)(({theme:e})=>({color:e.custom.colors.silverGrayDark,marginTop:"16px",textAlign:"center"})),gL=({conversationStarters:e,askTimTitle:t,entryScreenEnabled:r=!0,entryScreenTitle:i,srLoadingMessages:o,placeholder:s="",className:c,scrollElement:d,ref:h,useMathJax:p=!1,...b})=>{var F,ie;const E=A.useRef(null),T=A.useRef(null),y=A.useRef(null),v=A.useRef(null),{messages:x,input:B,handleInputChange:O,handleSubmit:P,append:L,isLoading:M,stop:D,error:N,initialMessages:z}=Cw();_w({scrollElement:d||T.current,contentElement:d?T.current:null,threshold:200});const[q,V]=A.useState(r);A.useEffect(()=>{var Q,he;q||(he=(Q=v.current)==null?void 0:Q.querySelector("input"))==null||he.focus()},[q]);const _=x.length===((z==null?void 0:z.length)||0),j=!_&&!N&&((F=x[x.length-1])==null?void 0:F.role)==="user",$=M&&((ie=x[x.length-1])==null?void 0:ie.role)!=="user",ee=()=>{const Q=d||T.current;Q==null||Q.scrollBy({behavior:"instant",top:Q==null?void 0:Q.scrollHeight})},X=x[x.length-1],te=!!d;return A.createElement(uL,{className:c,ref:E},q?A.createElement(aI,{className:bn.entryScreenContainer,title:i,conversationStarters:e,onPromptSubmit:Q=>{Q.trim()!==""&&(V(!1),L({role:"user",content:Q}))}}):A.createElement(oL,{className:bn.chatScreenContainer,"data-testid":"ai-chat-screen",externalScroll:te,ref:y},A.createElement(lL,{className:Ho(c,bn.root),externalScroll:te,...b},A.createElement(zI,{askTimTitle:t,externalScroll:te,className:Ho(c,bn.title)}),A.createElement(sL,{className:bn.messagesContainer,externalScroll:te,ref:T},x.map((Q,he)=>{const C=he===x.length-1&&M?`isLoading-${Q.id}`:Q.id;return A.createElement(hy,{key:C,"data-chat-role":Q.role,className:Ho(bn.messageRow,{[bn.messageRowUser]:Q.role==="user",[bn.messageRowAssistant]:Q.role==="assistant"})},A.createElement(py,{className:bn.message},A.createElement(h2,{as:Q.role==="user"?"h5":"h6"},Q.role==="user"?"You said: ":"Assistant said: "),A.createElement(iL,{enableMathjax:p},Q.content)))}),_?A.createElement(cL,null,e==null?void 0:e.map(Q=>A.createElement(fL,{className:bn.conversationStarter,key:Q.content,onClick:()=>{ee(),L({role:"user",content:Q.content})}},Q.content))):null,j?A.createElement(hy,{className:Ho(bn.messageRow,bn.messageRowAssistant),key:"loading"},A.createElement(py,null,A.createElement(U8,null))):null,N?A.createElement(UI,{severity:"error",closable:!0},"An unexpected error has occurred."):null),A.createElement(pL,{externalScroll:te,className:bn.bottomSection},A.createElement("form",{onSubmit:Q=>{Q.preventDefault(),M&&$?D():(ee(),P(Q))}},A.createElement(f2,{ref:v,fullWidth:!0,size:"chat",className:bn.input,placeholder:s,name:"message",sx:{flex:1},value:B,onChange:O,inputProps:{"aria-label":"Ask a question"},endAdornment:M?A.createElement(b0,{"aria-label":"Stop",onClick:D,disabled:!$},A.createElement(hL,null)):A.createElement(b0,{"aria-label":"Send",type:"submit",onClick:Q=>{if(B.trim()===""){Q.preventDefault();return}ee(),P(Q)}},A.createElement(dL,null))})),A.createElement(mL,{variant:"body3"},"AI-generated content may be incorrect.")),A.createElement(cI,{isLoading:M,loadingMessages:o,message:(X==null?void 0:X.role)==="assistant"?X==null?void 0:X.content:""}))))},bL=({requestOpts:e,initialMessages:t,chatId:r,parseContent:i,...o})=>A.createElement(Sw,{requestOpts:e,chatId:r,initialMessages:t,parseContent:i},A.createElement(gL,{...o})),my=e=>({minWidth:"auto",padding:0,height:{small:"32px",medium:"40px",large:"48px"}[e],width:{small:"32px",medium:"40px",large:"48px"}[e],"& svg, & .MuiSvgIcon-root":{width:"1em",height:"1em",fontSize:it({small:20,medium:24,large:32}[e])}}),Ko=He(A.forwardRef(function(t,r){return A.createElement($E,{ref:r,type:"button",...t})}))(({size:e=h0.size,responsive:t,theme:r})=>[my(e),t&&{[r.breakpoints.down("sm")]:my(qE[e])}]);Ko.displayName="ActionButton";const EL=Ko.withComponent(({Component:e,...t})=>A.createElement(XE,{Component:e,...t}));EL.displayName="ActionButtonLink";const yL=He.div``,TL=He.div(({theme:e})=>({display:"flex",height:300,padding:40,flexDirection:"column",justifyContent:"center",alignItems:"center",alignSelf:"stretch",borderRadius:8,border:`1px solid ${e.custom.colors.lightGray2}`,marginTop:"8px",cursor:"pointer",textAlign:"center"})),SL=He.div({display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",marginTop:"24px"}),CL=He.div(({theme:e})=>({color:e.custom.colors.silverGrayDark,...e.typography.body2})),gy=A.forwardRef(({content:e,"aria-label":t},r)=>{const[i,o]=A.useState(0);A.useEffect(()=>o(0),[e]);const s=c=>{(c.key==="Enter"||c.key===" ")&&o(i===0?1:0)};return A.createElement(TL,{ref:r,onClick:()=>o(i===0?1:0),onKeyDown:s,tabIndex:0,"aria-label":t,role:"button"},A.createElement(fi,{variant:"h5"},i===0?`Q: ${e.question}`:`Answer: ${e.answer}`))});gy.displayName="Flashcard";const AL=({flashcards:e,wasKeyboardFocus:t})=>{const[r,i]=A.useState(0),o=A.useRef(null),s=A.useRef(null),c=A.useCallback(d=>{var h;e&&(!((h=o.current)!=null&&h.contains(document.activeElement))&&t||(d.key==="ArrowRight"?i(p=>(p+1)%e.length):d.key==="ArrowLeft"&&i(p=>(p-1+e.length)%e.length)))},[e,t]);return A.useEffect(()=>{var d;(d=s.current)==null||d.focus()},[r]),A.useEffect(()=>(window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)),[c]),e!=null&&e.length?A.createElement(yL,{ref:o},A.createElement(gy,{ref:s,content:e[r],"aria-label":`Flashcard ${r+1} of ${e.length}`}),A.createElement(SL,null,A.createElement(Ko,{onClick:()=>i(r-1),disabled:r===0,variant:"secondary",color:"secondary",size:"small","aria-label":"Previous card"},A.createElement(B8,{"aria-hidden":!0})),A.createElement(CL,null,r+1," / ",e.length),A.createElement(Ko,{onClick:()=>i(r+1),disabled:r===e.length-1,variant:"secondary",color:"secondary",size:"small","aria-label":"Next card"},A.createElement(P8,{"aria-hidden":!0})))):null},xL=He.div(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",gap:"4px",color:e.custom.colors.white,position:"sticky",top:0,padding:"32px 0 16px 0",zIndex:2,backgroundColor:e.custom.colors.white,borderRadius:0})),_L=He.div(({theme:e})=>({display:"flex",alignItems:"center",gap:"8px",color:e.custom.colors.darkGray2,img:{width:"24px",height:"24px"},svg:{fill:e.custom.colors.red,width:"24px",height:"24px",flexShrink:0},overflow:"hidden",p:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}})),vL=He(Ko)(({theme:e})=>({backgroundColor:e.custom.colors.lightGray2,"&&:hover":{backgroundColor:e.custom.colors.red,color:e.custom.colors.white},zIndex:3,flexShrink:0})),RL=He(dk)(({theme:e})=>({padding:"0 0 16px",backgroundColor:e.custom.colors.white,position:"sticky",top:"88px",zIndex:2,overflow:"visible"})),Q0=He(Rk)({padding:"0",height:"calc(100% - 138px)",position:"relative"}),NL=He(bL)(({hasTabs:e,theme:t})=>({".MitAiChat--entryScreenContainer":{padding:e?"114px 0 24px":"168px 32px 24px",[t.breakpoints.down("md")]:{padding:e?"114px 0 24px":"168px 16px 24px"}},".MitAiChat--chatScreenContainer":{padding:e?0:"0 32px",[t.breakpoints.down("md")]:{padding:e?0:"0 16px"}},".MitAiChat--messagesContainer":{paddingTop:e?"8px":"88px"}})),OL=He.div(({theme:e})=>({color:e.custom.colors.darkGray2,backgroundColor:e.custom.colors.white,padding:"12px 0 100px",...e.typography.body2,"p:first-of-type":{marginTop:0},"p:last-of-type":{marginBottom:0},"ol, ul":{paddingInlineStart:"32px",li:{margin:"16px 0"}},ul:{marginInlineStart:"-16px"},a:{color:e.custom.colors.red,fontWeight:"normal"}})),kL=e=>e,IL={credentials:"include"},DL=e=>{const[t,r]=A.useState(null),[i,o]=A.useState(!1);return A.useEffect(()=>{if(!e)return;(async()=>{o(!0);try{const d=await(await fetch(e)).json();if(!d.results)throw new Error("Unexpected response");const[h]=d.results;if(!h)throw new Error("No result found");r({summary:h.summary,flashcards:h.flashcards})}catch(c){console.error("Error fetching content",c)}finally{o(!1)}})()},[e]),{response:t,loading:i}},wL=[{role:"assistant",content:"Let's try to work on this problem together. It would be great to hear how you're thinking about solving it. Can you walk me through the approach you're considering?"}],LL="What do you want to know about this video?",ML=[{content:"What are the most important concepts introduced in the video?"},{content:"What examples are used to illustrate concepts covered in the video?"},{content:"What are the key terms introduced in this video?"}],by=({payload:e,transformBody:t,fetchOpts:r,scrollElement:i,entryScreenEnabled:o,entryScreenTitle:s,conversationStarters:c,initialMessages:d,hasTabs:h,needsMathJax:p})=>e?A.createElement(NL,{chatId:e.chatId,conversationStarters:c,initialMessages:d,scrollElement:i,entryScreenEnabled:o,entryScreenTitle:s,requestOpts:{transformBody:b=>({...e.requestBody,...t==null?void 0:t(b)}),apiUrl:e.apiUrl,fetchOpts:{...IL,...r}},hasTabs:h,useMathJax:p}):null,BL=(e,t)=>[...e].sort(()=>.5-Math.random()).slice(0,t),PL=({messageOrigin:e,transformBody:t=kL,className:r,fetchOpts:i,target:o})=>{var q,V,_,j,$,ee;const[s,c]=A.useState(!1),[d,h]=A.useState(null),[p,b]=A.useState("chat"),{response:E}=DL((q=d==null?void 0:d.summary)==null?void 0:q.apiUrl),[T,y]=A.useState(!1),v=A.useRef(!1),x=()=>{v.current=!0},B=()=>{v.current||y(!0),v.current=!1},[O,P]=A.useState(null),L=X=>{X&&P(X)};A.useEffect(()=>{const X=te=>{te.origin===e&&te.data.type==="smoot-design::tutor-drawer-open"&&te.data.payload.target===o&&(c(!0),h(te.data.payload))};return window.addEventListener("message",X),()=>{window.removeEventListener("message",X)}},[e,o]),A.useEffect(()=>{var X;(X=O==null?void 0:O.scrollTo)==null||X.call(O,{top:p==="chat"?O.scrollHeight:0})},[p,O]);const M=A.useMemo(()=>{var X;return d?d.chat.conversationStarters||((X=E==null?void 0:E.flashcards)!=null&&X.length&&E.flashcards.length>=3?BL(E.flashcards,3).map(te=>({content:te.question})):ML):[]},[d,E]);if(!d)return A.createElement("div",{"data-testid":"remote-tutor-drawer-waiting"});const{blockType:D,chat:N}=d,z=D==="video";return A.createElement(m9,{"data-testid":"remote-tutor-drawer",className:r,PaperProps:{ref:L,sx:{width:"900px",maxWidth:"100%",boxSizing:"border-box",padding:{xs:"0 16px",md:"0 32px"}}},anchor:"right",open:s,onClose:()=>c(!1),role:"dialog","aria-modal":"true"},A.createElement(xL,null,A.createElement(_L,null,d.title?A.createElement(Md,null):null,A.createElement(fi,{variant:"body1",component:"h1"},(V=d.title)!=null&&V.includes("AskTIM")?A.createElement(A.Fragment,null,"Ask",A.createElement("strong",null,"TIM"),d.title.replace("AskTIM","")):d.title)),A.createElement(vL,{variant:"text",size:"medium",onClick:()=>c(!1),"aria-label":"Close"},A.createElement(xb,null))),D==="problem"?A.createElement(by,{payload:N,transformBody:t,fetchOpts:i,scrollElement:O,entryScreenEnabled:((_=d.chat)==null?void 0:_.entryScreenEnabled)??!1,entryScreenTitle:d.chat.entryScreenTitle,initialMessages:d.chat.initialMessages||wL,hasTabs:z,needsMathJax:!0}):null,D==="video"?A.createElement(ek,{value:p},A.createElement(RL,{styleVariant:"chat",onChange:(X,te)=>b(te)},A.createElement(p0,{value:"chat",label:"Chat"}),(j=E==null?void 0:E.flashcards)!=null&&j.length?A.createElement(p0,{value:"flashcards",label:"Flashcards",onMouseDown:x,onFocus:B}):null,A.createElement(p0,{value:"summary",label:"Summary"})),A.createElement(Q0,{value:"chat",keepMounted:!0},A.createElement(by,{payload:{...N},transformBody:t,fetchOpts:i,scrollElement:O,entryScreenEnabled:(($=d.chat)==null?void 0:$.entryScreenEnabled)??!0,entryScreenTitle:d.chat.entryScreenTitle??LL,conversationStarters:M,initialMessages:d.chat.initialMessages,hasTabs:z,needsMathJax:!1})),(ee=E==null?void 0:E.flashcards)!=null&&ee.length?A.createElement(Q0,{value:"flashcards"},A.createElement(AL,{flashcards:E==null?void 0:E.flashcards,wasKeyboardFocus:T})):null,A.createElement(Q0,{value:"summary"},A.createElement(fi,{variant:"h4",component:"h4"}),A.createElement(OL,null,A.createElement(dg,{rehypePlugins:[M8]},(E==null?void 0:E.summary)??"")))):null)},UL={defaultProps:{disableRipple:!0},styleOverrides:{root:{":focus-visible":{outline:"revert"}}}},at={mitRed:"#750014",brightRed:"#FF1423",black:"#000000",white:"#FFFFFF",darkGray2:"#212326",darkGray1:"#40464C",silverGrayDark:"#626A73",silverGray:"#8B959E",silverGrayLight:"#B8C2CC",lightGray2:"#DDE1E6",lightGray1:"#F3F4F8",navGray:"#303337",darkPink:"#750062",pink:"#FF14F0",lightPink:"#FFB3FF",darkPurple:"#3E006B",purple:"#93F",lightPurple:"#BFB3FF",darkBlue:"#002896",blue:"#1966FF",lightBlue:"#99EBFF",darkGreen:"#004D1A",green:"#00AD00",lightGreen:"#AF3",darkRed:"#83192A",red:"#A31F34",lightRed:"#D02E44",orange:"#FAB005",yellow:"#FFEB00"},HL={defaultProps:{size:"medium",color:"default",variant:"outlined",deleteIcon:A.createElement(xb,{"aria-hidden":"true"})},styleOverrides:{root:{borderRadius:"100vh",borderWidth:"1px"},deleteIcon:{"&:hover":{color:"inherit"},"&.MuiChip-deleteIconLarge":{width:"16px",height:"16px"},"&.MuiChip-deleteIconMedium":{width:"14px",height:"14px"},margin:"0 -2px 0 8px",color:"inherit"},icon:{margin:"0 8px 0 -2px",color:"inherit","&.MuiChip-iconLarge":{width:"16px",height:"16px"},"&.MuiChip-iconMedium":{width:"14px",height:"14px"}}},variants:[{props:{size:"medium"},style:({theme:e})=>({...e.typography.body3,boxSizing:"border-box",height:"24px",paddingRight:"12px",paddingLeft:"12px",".MuiChip-label":{paddingLeft:"0px",paddingRight:"0px"}})},{props:{size:"large"},style:({theme:e})=>({...e.typography.body2,height:"32px",paddingLeft:"16px",paddingRight:"16px",".MuiChip-label":{paddingLeft:"0px",paddingRight:"0px"}})},{props:{variant:"outlined"},style:{borderColor:at.silverGrayLight,color:at.darkGray1,"&.Mui-focusVisible":{backgroundColor:"transparent"},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:at.darkGray1,borderColor:at.silverGrayDark,backgroundColor:"transparent"}}},{props:{variant:"outlinedWhite"},style:{backgroundColor:"white",border:"1px solid",borderColor:at.silverGrayLight,color:at.darkGray1,"&.Mui-focusVisible":{backgroundColor:"white"},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:at.darkGray1,borderColor:at.silverGrayDark,backgroundColor:"white"}}},{props:{variant:"gray"},style:{backgroundColor:at.lightGray2,border:"none",color:at.darkGray2,"&.Mui-focusVisible":{backgroundColor:at.lightGray2},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:at.darkGray1,backgroundColor:at.silverGrayLight}}},{props:{variant:"dark"},style:{backgroundColor:at.silverGrayDark,border:"none",color:at.white,"&.Mui-focusVisible":{backgroundColor:at.silverGrayDark},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:at.darkGray1}}},{props:{variant:"darker"},style:{backgroundColor:at.darkGray2,border:`1px solid ${at.darkGray1}`,color:at.white,"&.Mui-focusVisible":{backgroundColor:at.darkGray2},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:at.black,border:`1px solid ${at.silverGray}`}}},{props:{variant:"filled"},style:{backgroundColor:at.mitRed,border:"none",color:at.white,"&.Mui-focusVisible":{backgroundColor:at.mitRed},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:at.red}}}]},FL={colors:at,dimensions:{headerHeight:"72px",headerHeightSm:"60px"}},zL={values:{xs:0,sm:600,md:900,lg:1320,xl:1536}},YL={custom:FL,palette:{primary:{main:at.mitRed,light:at.lightRed,active:at.red,contrastText:at.white},secondary:{light:at.darkGray2,active:at.silverGrayDark,main:at.black,contrastText:at.white}},shape:{borderRadius:8},spacing:8,typography:zE,breakpoints:zL,components:{MuiButtonBase:UL,MuiTypography:ok,MuiMenu:{styleOverrides:{paper:{borderRadius:"4px"}}},MuiAutocomplete:{styleOverrides:{paper:{borderRadius:"4px"},popupIndicator:{paddingRight:0,marginRight:0}}},MuiChip:HL}},Ey=e=>zs(Un(YL,e)),jL=Ey(),qL=({children:e,theme:t=jL})=>A.createElement(uk,{theme:t},e),VL=e=>{const t=document.createElement("div");document.body.appendChild(t);const r=t.attachShadow({mode:"open"}),i=document.createElement("div");i.id="smoot-chat-drawer-root",r.append(i);const o=_m({key:"css",prepend:!0,container:r}),s=Ey({components:{MuiPopover:{defaultProps:{container:i}},MuiPopper:{defaultProps:{container:i}},MuiModal:{defaultProps:{container:i}}}});sC.createRoot(i).render(A.createElement(XC,{value:o},A.createElement(qL,{theme:s},A.createElement(nL,null,A.createElement(PL,{...e})),",")))};ur.init=VL,Object.defineProperty(ur,Symbol.toStringTag,{value:"Module"})});
|