@mitodl/smoot-design 6.2.2 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/bundles/remoteTutorDrawer.es.js +15538 -16045
- package/dist/bundles/remoteTutorDrawer.umd.js +79 -52
- package/dist/cjs/ai.d.ts +3 -3
- package/dist/cjs/ai.js +5 -1
- package/dist/cjs/bundles/RemoteTutorDrawer/FlashcardsScreen.js +1 -1
- package/dist/cjs/bundles/RemoteTutorDrawer/RemoteTutorDrawer.d.ts +1 -2
- package/dist/cjs/bundles/RemoteTutorDrawer/RemoteTutorDrawer.js +10 -4
- package/dist/cjs/bundles/RemoteTutorDrawer/RemoteTutorDrawer.stories.d.ts +1 -0
- package/dist/cjs/bundles/RemoteTutorDrawer/RemoteTutorDrawer.stories.js +18 -1
- package/dist/cjs/bundles/RemoteTutorDrawer/RemoteTutorDrawer.test.js +6 -0
- package/dist/cjs/components/AiChat/AiChat.d.ts +3 -3
- package/dist/cjs/components/AiChat/AiChat.js +14 -37
- package/dist/cjs/components/AiChat/AiChatContext.d.ts +26 -0
- package/dist/cjs/components/AiChat/AiChatContext.js +105 -0
- package/dist/cjs/components/AiChat/AiChatContext.stories.d.ts +14 -0
- package/dist/cjs/components/AiChat/AiChatContext.stories.js +75 -0
- package/dist/cjs/components/AiChat/types.d.ts +15 -11
- package/dist/cjs/components/AiChat/types.js +1 -1
- package/dist/cjs/components/AiChat/utils.d.ts +1 -1
- package/dist/cjs/components/AiChat/utils.js +1 -1
- package/dist/cjs/components/LinkAdapter/LinkAdapter.js +1 -1
- package/dist/cjs/components/TabButtons/TabButtonList.js +1 -1
- package/dist/esm/ai.d.ts +3 -3
- package/dist/esm/ai.js +2 -1
- package/dist/esm/bundles/RemoteTutorDrawer/FlashcardsScreen.js +1 -1
- package/dist/esm/bundles/RemoteTutorDrawer/RemoteTutorDrawer.d.ts +1 -2
- package/dist/esm/bundles/RemoteTutorDrawer/RemoteTutorDrawer.js +10 -4
- package/dist/esm/bundles/RemoteTutorDrawer/RemoteTutorDrawer.stories.d.ts +1 -0
- package/dist/esm/bundles/RemoteTutorDrawer/RemoteTutorDrawer.stories.js +17 -0
- package/dist/esm/bundles/RemoteTutorDrawer/RemoteTutorDrawer.test.js +6 -0
- package/dist/esm/components/AiChat/AiChat.d.ts +3 -3
- package/dist/esm/components/AiChat/AiChat.js +14 -38
- package/dist/esm/components/AiChat/AiChatContext.d.ts +26 -0
- package/dist/esm/components/AiChat/AiChatContext.js +101 -0
- package/dist/esm/components/AiChat/AiChatContext.stories.d.ts +14 -0
- package/dist/esm/components/AiChat/AiChatContext.stories.js +72 -0
- package/dist/esm/components/AiChat/types.d.ts +15 -11
- package/dist/esm/components/AiChat/types.js +1 -1
- package/dist/esm/components/AiChat/utils.d.ts +1 -1
- package/dist/esm/components/AiChat/utils.js +1 -1
- package/dist/esm/components/LinkAdapter/LinkAdapter.js +1 -1
- package/dist/esm/components/TabButtons/TabButtonList.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
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 Jw=Object.defineProperty;var e7=(ur,Gn,lr)=>Gn in ur?Jw(ur,Gn,{enumerable:!0,configurable:!0,writable:!0,value:lr}):ur[Gn]=lr;var jo=(ur,Gn,lr)=>e7(ur,typeof Gn!="symbol"?Gn+"":Gn,lr);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 l in i)if(l!=="default"&&!(l in e)){const s=Object.getOwnPropertyDescriptor(i,l);s&&Object.defineProperty(e,l,s.get?s:{enumerable:!0,get:()=>i[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function lr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ff={exports:{}},Qe={};/**
|
|
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 Qp;function MS(){if(Qp)return Qe;Qp=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.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(){}},R=Object.assign,x={};function U(C,J,fe){this.props=C,this.context=J,this.refs=x,this.updater=fe||y}U.prototype.isReactComponent={},U.prototype.setState=function(C,J){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,J,"setState")},U.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function D(){}D.prototype=U.prototype;function q(C,J,fe){this.props=C,this.context=J,this.refs=x,this.updater=fe||y}var M=q.prototype=new D;M.constructor=q,R(M,U.prototype),M.isPureReactComponent=!0;var P=Array.isArray,k={H:null,A:null,T:null,S:null,V:null},N=Object.prototype.hasOwnProperty;function Y(C,J,fe,O,be,Ne){return fe=Ne.ref,{$$typeof:e,type:C,key:J,ref:fe!==void 0?fe:null,props:Ne}}function j(C,J){return Y(C.type,J,void 0,void 0,void 0,C.props)}function G(C){return typeof C=="object"&&C!==null&&C.$$typeof===e}function _(C){var J={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(fe){return J[fe]})}var z=/\/+/g;function $(C,J){return typeof C=="object"&&C!==null&&C.key!=null?_(""+C.key):J.toString(36)}function Z(){}function X(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(Z,Z):(C.status="pending",C.then(function(J){C.status==="pending"&&(C.status="fulfilled",C.value=J)},function(J){C.status==="pending"&&(C.status="rejected",C.reason=J)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function te(C,J,fe,O,be){var Ne=typeof C;(Ne==="undefined"||Ne==="boolean")&&(C=null);var Ee=!1;if(C===null)Ee=!0;else switch(Ne){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(C.$$typeof){case e:case t:Ee=!0;break;case b:return Ee=C._init,te(Ee(C._payload),J,fe,O,be)}}if(Ee)return be=be(C),Ee=O===""?"."+$(C,0):O,P(be)?(fe="",Ee!=null&&(fe=Ee.replace(z,"$&/")+"/"),te(be,J,fe,"",function(lt){return lt})):be!=null&&(G(be)&&(be=j(be,fe+(be.key==null||C&&C.key===be.key?"":(""+be.key).replace(z,"$&/")+"/")+Ee)),J.push(be)),1;Ee=0;var Ke=O===""?".":O+":";if(P(C))for(var Me=0;Me<C.length;Me++)O=C[Me],Ne=Ke+$(O,Me),Ee+=te(O,J,fe,Ne,be);else if(Me=T(C),typeof Me=="function")for(C=Me.call(C),Me=0;!(O=C.next()).done;)O=O.value,Ne=Ke+$(O,Me++),Ee+=te(O,J,fe,Ne,be);else if(Ne==="object"){if(typeof C.then=="function")return te(X(C),J,fe,O,be);throw J=String(C),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.")}return Ee}function H(C,J,fe){if(C==null)return C;var O=[],be=0;return te(C,O,"","",function(Ne){return J.call(fe,Ne,be++)}),O}function Q(C){if(C._status===-1){var J=C._result;J=J(),J.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=J)}if(C._status===1)return C._result.default;throw C._result}var ie=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var J=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(J))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)};function me(){}return Qe.Children={map:H,forEach:function(C,J,fe){H(C,function(){J.apply(this,arguments)},fe)},count:function(C){var J=0;return H(C,function(){J++}),J},toArray:function(C){return H(C,function(J){return J})||[]},only:function(C){if(!G(C))throw Error("React.Children.only expected to receive a single React element child.");return C}},Qe.Component=U,Qe.Fragment=r,Qe.Profiler=l,Qe.PureComponent=q,Qe.StrictMode=i,Qe.Suspense=p,Qe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,Qe.__COMPILER_RUNTIME={__proto__:null,c:function(C){return k.H.useMemoCache(C)}},Qe.cache=function(C){return function(){return C.apply(null,arguments)}},Qe.cloneElement=function(C,J,fe){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var O=R({},C.props),be=C.key,Ne=void 0;if(J!=null)for(Ee in J.ref!==void 0&&(Ne=void 0),J.key!==void 0&&(be=""+J.key),J)!N.call(J,Ee)||Ee==="key"||Ee==="__self"||Ee==="__source"||Ee==="ref"&&J.ref===void 0||(O[Ee]=J[Ee]);var Ee=arguments.length-2;if(Ee===1)O.children=fe;else if(1<Ee){for(var Ke=Array(Ee),Me=0;Me<Ee;Me++)Ke[Me]=arguments[Me+2];O.children=Ke}return Y(C.type,be,void 0,void 0,Ne,O)},Qe.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},Qe.createElement=function(C,J,fe){var O,be={},Ne=null;if(J!=null)for(O in J.key!==void 0&&(Ne=""+J.key),J)N.call(J,O)&&O!=="key"&&O!=="__self"&&O!=="__source"&&(be[O]=J[O]);var Ee=arguments.length-2;if(Ee===1)be.children=fe;else if(1<Ee){for(var Ke=Array(Ee),Me=0;Me<Ee;Me++)Ke[Me]=arguments[Me+2];be.children=Ke}if(C&&C.defaultProps)for(O in Ee=C.defaultProps,Ee)be[O]===void 0&&(be[O]=Ee[O]);return Y(C,Ne,void 0,void 0,null,be)},Qe.createRef=function(){return{current:null}},Qe.forwardRef=function(C){return{$$typeof:d,render:C}},Qe.isValidElement=G,Qe.lazy=function(C){return{$$typeof:b,_payload:{_status:-1,_result:C},_init:Q}},Qe.memo=function(C,J){return{$$typeof:m,type:C,compare:J===void 0?null:J}},Qe.startTransition=function(C){var J=k.T,fe={};k.T=fe;try{var O=C(),be=k.S;be!==null&&be(fe,O),typeof O=="object"&&O!==null&&typeof O.then=="function"&&O.then(me,ie)}catch(Ne){ie(Ne)}finally{k.T=J}},Qe.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},Qe.use=function(C){return k.H.use(C)},Qe.useActionState=function(C,J,fe){return k.H.useActionState(C,J,fe)},Qe.useCallback=function(C,J){return k.H.useCallback(C,J)},Qe.useContext=function(C){return k.H.useContext(C)},Qe.useDebugValue=function(){},Qe.useDeferredValue=function(C,J){return k.H.useDeferredValue(C,J)},Qe.useEffect=function(C,J,fe){var O=k.H;if(typeof fe=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return O.useEffect(C,J)},Qe.useId=function(){return k.H.useId()},Qe.useImperativeHandle=function(C,J,fe){return k.H.useImperativeHandle(C,J,fe)},Qe.useInsertionEffect=function(C,J){return k.H.useInsertionEffect(C,J)},Qe.useLayoutEffect=function(C,J){return k.H.useLayoutEffect(C,J)},Qe.useMemo=function(C,J){return k.H.useMemo(C,J)},Qe.useOptimistic=function(C,J){return k.H.useOptimistic(C,J)},Qe.useReducer=function(C,J,fe){return k.H.useReducer(C,J,fe)},Qe.useRef=function(C){return k.H.useRef(C)},Qe.useState=function(C){return k.H.useState(C)},Qe.useSyncExternalStore=function(C,J,fe){return k.H.useSyncExternalStore(C,J,fe)},Qe.useTransition=function(){return k.H.useTransition()},Qe.version="19.1.0",Qe}var Kp;function qo(){return Kp||(Kp=1,ff.exports=MS()),ff.exports}var A=qo();const Ot=lr(A),df=Gn({__proto__:null,default:Ot},[A]);var hf={exports:{}},qu={},pf={exports:{}},mf={};/**
|
|
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 Wp;function wS(){return Wp||(Wp=1,function(e){function t(H,Q){var ie=H.length;H.push(Q);e:for(;0<ie;){var me=ie-1>>>1,C=H[me];if(0<l(C,Q))H[me]=Q,H[ie]=C,ie=me;else break e}}function r(H){return H.length===0?null:H[0]}function i(H){if(H.length===0)return null;var Q=H[0],ie=H.pop();if(ie!==Q){H[0]=ie;e:for(var me=0,C=H.length,J=C>>>1;me<J;){var fe=2*(me+1)-1,O=H[fe],be=fe+1,Ne=H[be];if(0>l(O,ie))be<C&&0>l(Ne,O)?(H[me]=Ne,H[be]=ie,me=be):(H[me]=O,H[fe]=ie,me=fe);else if(be<C&&0>l(Ne,ie))H[me]=Ne,H[be]=ie,me=be;else break e}}return Q}function l(H,Q){var ie=H.sortIndex-Q.sortIndex;return ie!==0?ie:H.id-Q.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 p=[],m=[],b=1,E=null,T=3,y=!1,R=!1,x=!1,U=!1,D=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function P(H){for(var Q=r(m);Q!==null;){if(Q.callback===null)i(m);else if(Q.startTime<=H)i(m),Q.sortIndex=Q.expirationTime,t(p,Q);else break;Q=r(m)}}function k(H){if(x=!1,P(H),!R)if(r(p)!==null)R=!0,N||(N=!0,$());else{var Q=r(m);Q!==null&&te(k,Q.startTime-H)}}var N=!1,Y=-1,j=5,G=-1;function _(){return U?!0:!(e.unstable_now()-G<j)}function z(){if(U=!1,N){var H=e.unstable_now();G=H;var Q=!0;try{e:{R=!1,x&&(x=!1,q(Y),Y=-1),y=!0;var ie=T;try{t:{for(P(H),E=r(p);E!==null&&!(E.expirationTime>H&&_());){var me=E.callback;if(typeof me=="function"){E.callback=null,T=E.priorityLevel;var C=me(E.expirationTime<=H);if(H=e.unstable_now(),typeof C=="function"){E.callback=C,P(H),Q=!0;break t}E===r(p)&&i(p),P(H)}else i(p);E=r(p)}if(E!==null)Q=!0;else{var J=r(m);J!==null&&te(k,J.startTime-H),Q=!1}}break e}finally{E=null,T=ie,y=!1}Q=void 0}}finally{Q?$():N=!1}}}var $;if(typeof M=="function")$=function(){M(z)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,X=Z.port2;Z.port1.onmessage=z,$=function(){X.postMessage(null)}}else $=function(){D(z,0)};function te(H,Q){Y=D(function(){H(e.unstable_now())},Q)}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(H){H.callback=null},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return T},e.unstable_next=function(H){switch(T){case 1:case 2:case 3:var Q=3;break;default:Q=T}var ie=T;T=Q;try{return H()}finally{T=ie}},e.unstable_requestPaint=function(){U=!0},e.unstable_runWithPriority=function(H,Q){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var ie=T;T=H;try{return Q()}finally{T=ie}},e.unstable_scheduleCallback=function(H,Q,ie){var me=e.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?me+ie:me):ie=me,H){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=ie+C,H={id:b++,callback:Q,priorityLevel:H,startTime:ie,expirationTime:C,sortIndex:-1},ie>me?(H.sortIndex=ie,t(m,H),r(p)===null&&H===r(m)&&(x?(q(Y),Y=-1):x=!0,te(k,ie-me))):(H.sortIndex=C,t(p,H),R||y||(R=!0,N||(N=!0,$()))),H},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(H){var Q=T;return function(){var ie=T;T=Q;try{return H.apply(this,arguments)}finally{T=ie}}}}(mf)),mf}var Zp;function BS(){return Zp||(Zp=1,pf.exports=wS()),pf.exports}var gf={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 Jp;function PS(){if(Jp)return Sn;Jp=1;var e=qo();function t(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+p+"; visit "+m+" 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},l=Symbol.for("react.portal");function s(p,m,b){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:E==null?null:""+E,children:p,containerInfo:m,implementation:b}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Sn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Sn.createPortal=function(p,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(t(299));return s(p,m,null,b)},Sn.flushSync=function(p){var m=c.T,b=i.p;try{if(c.T=null,i.p=2,p)return p()}finally{c.T=m,i.p=b,i.d.f()}},Sn.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,i.d.C(p,m))},Sn.prefetchDNS=function(p){typeof p=="string"&&i.d.D(p)},Sn.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var b=m.as,E=d(b,m.crossOrigin),T=typeof m.integrity=="string"?m.integrity:void 0,y=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?i.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:E,integrity:T,fetchPriority:y}):b==="script"&&i.d.X(p,{crossOrigin:E,integrity:T,fetchPriority:y,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Sn.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=d(m.as,m.crossOrigin);i.d.M(p,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&i.d.M(p)},Sn.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,E=d(b,m.crossOrigin);i.d.L(p,b,{crossOrigin:E,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Sn.preloadModule=function(p,m){if(typeof p=="string")if(m){var b=d(m.as,m.crossOrigin);i.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else i.d.m(p)},Sn.requestFormReset=function(p){i.d.r(p)},Sn.unstable_batchedUpdates=function(p,m){return p(m)},Sn.useFormState=function(p,m,b){return c.H.useFormState(p,m,b)},Sn.useFormStatus=function(){return c.H.useHostTransitionStatus()},Sn.version="19.1.0",Sn}var em;function tm(){if(em)return gf.exports;em=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(),gf.exports=PS(),gf.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 Wp;function q3(){if(Wp)return Wu;Wp=1;var e=V3(),t=as(),r=Kp();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)}var s=Symbol.for("react.element"),c=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),S=Symbol.for("react.consumer"),y=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),P=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function M(n){return n===null||typeof n!="object"?null:(n=I&&n[I]||n["@@iterator"],typeof n=="function"?n:null)}var j=Symbol.for("react.client.reference");function ie(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===j?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case p:return"Fragment";case d:return"Portal";case b:return"Profiler";case m:return"StrictMode";case _:return"Suspense";case L:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case y:return(n.displayName||"Context")+".Provider";case S:return(n._context.displayName||"Context")+".Consumer";case N:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case v:return a=n.displayName||null,a!==null?a:ie(n.type)||"Memo";case H:a=n._payload,n=n._init;try{return ie(n(a))}catch{}}return null}var V=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,x=Object.assign,Y,K;function W(n){if(Y===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);Y=a&&a[1]||"",K=-1<u.stack.indexOf(`
|
|
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(`
|
|
34
34
|
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
35
|
-
`+
|
|
36
|
-
`),
|
|
37
|
-
`);for(f=o=0;o<B.length&&!B[o].includes("DetermineComponentFrameRoot");)o++;for(;f<
|
|
38
|
-
`+B[o].replace(" at new "," at ");return n.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",n.displayName)),oe}while(1<=o&&0<=f);break}}}finally{
|
|
35
|
+
`+Y0+n+ey}var j0=!1;function q0(n,a){if(!n||j0)return"";j0=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={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]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=o.DetermineComponentFrameRoot(),S=h[0],v=h[1];if(S&&v){var B=S.split(`
|
|
36
|
+
`),ee=v.split(`
|
|
37
|
+
`);for(f=o=0;o<B.length&&!B[o].includes("DetermineComponentFrameRoot");)o++;for(;f<ee.length&&!ee[f].includes("DetermineComponentFrameRoot");)f++;if(o===B.length||f===ee.length)for(o=B.length-1,f=ee.length-1;1<=o&&0<=f&&B[o]!==ee[f];)f--;for(;1<=o&&0<=f;o--,f--)if(B[o]!==ee[f]){if(o!==1||f!==1)do if(o--,f--,0>f||B[o]!==ee[f]){var oe=`
|
|
38
|
+
`+B[o].replace(" at new "," at ");return n.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",n.displayName)),oe}while(1<=o&&0<=f);break}}}finally{j0=!1,Error.prepareStackTrace=u}return(u=n?n.displayName||n.name:"")?cu(u):""}function $L(n){switch(n.tag){case 26:case 27:case 5:return cu(n.type);case 16:return cu("Lazy");case 13:return cu("Suspense");case 19:return cu("SuspenseList");case 0:case 15:return q0(n.type,!1);case 11:return q0(n.type.render,!1);case 1:return q0(n.type,!0);case 31:return cu("Activity");default:return""}}function ty(n){try{var a="";do a+=$L(n),n=n.return;while(n);return a}catch(u){return`
|
|
39
39
|
Error generating stack: `+u.message+`
|
|
40
|
-
`+u.stack}}function re(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 ge(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 C(n){if(re(n)!==n)throw Error(i(188))}function J(n){var a=n.alternate;if(!a){if(a=re(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 C(f),n;if(h===o)return C(f),a;h=h.sibling}throw Error(i(188))}if(u.return!==o.return)u=f,o=h;else{for(var T=!1,R=f.child;R;){if(R===u){T=!0,u=f,o=h;break}if(R===o){T=!0,o=f,u=h;break}R=R.sibling}if(!T){for(R=h.child;R;){if(R===u){T=!0,u=h,o=f;break}if(R===o){T=!0,o=h,u=f;break}R=R.sibling}if(!T)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 Te(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=Te(n),a!==null)return a;n=n.sibling}return null}var O=Array.isArray,ue=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Re={pending:!1,data:null,method:null,action:null},Se=[],tt=-1;function Me(n){return{current:n}}function $e(n){0>tt||(n.current=Se[tt],Se[tt]=null,tt--)}function xe(n,a){tt++,Se[tt]=n.current,n.current=a}var Ge=Me(null),ve=Me(null),Oe=Me(null),Ce=Me(null);function Be(n,a){switch(xe(Oe,a),xe(ve,n),xe(Ge,null),n=a.nodeType,n){case 9:case 11:a=(a=a.documentElement)&&(a=a.namespaceURI)?g3(a):0;break;default:if(n=n===8?a.parentNode:a,a=n.tagName,n=n.namespaceURI)n=g3(n),a=b3(n,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}$e(Ge),xe(Ge,a)}function it(){$e(Ge),$e(ve),$e(Oe)}function je(n){n.memoizedState!==null&&xe(Ce,n);var a=Ge.current,u=b3(a,n.type);a!==u&&(xe(ve,n),xe(Ge,u))}function Ue(n){ve.current===n&&($e(Ge),$e(ve)),Ce.current===n&&($e(Ce),Zo._currentValue=Re)}var ct=Object.prototype.hasOwnProperty,St=e.unstable_scheduleCallback,rn=e.unstable_cancelCallback,_n=e.unstable_shouldYield,we=e.unstable_requestPaint,Xe=e.unstable_now,$t=e.unstable_getCurrentPriorityLevel,te=e.unstable_ImmediatePriority,fe=e.unstable_UserBlockingPriority,Ae=e.unstable_NormalPriority,He=e.unstable_LowPriority,nt=e.unstable_IdlePriority,Qe=e.log,vn=e.unstable_setDisableYieldValue,an=null,Ft=null;function ke(n){if(Ft&&typeof Ft.onCommitFiberRoot=="function")try{Ft.onCommitFiberRoot(an,n,void 0,(n.current.flags&128)===128)}catch{}}function _e(n){if(typeof Qe=="function"&&vn(n),Ft&&typeof Ft.setStrictMode=="function")try{Ft.setStrictMode(an,n)}catch{}}var ze=Math.clz32?Math.clz32:gr,Ke=Math.log,Ht=Math.LN2;function gr(n){return n>>>=0,n===0?32:31-(Ke(n)/Ht|0)|0}var br=128,Xr=4194304;function Qr(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: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&4194176;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 Ma(n,a){var u=n.pendingLanes;if(u===0)return 0;var o=0,f=n.suspendedLanes,h=n.pingedLanes,T=n.warmLanes;n=n.finishedLanes!==0;var R=u&134217727;return R!==0?(u=R&~f,u!==0?o=Qr(u):(h&=R,h!==0?o=Qr(h):n||(T=R&~T,T!==0&&(o=Qr(T))))):(R=u&~f,R!==0?o=Qr(R):h!==0?o=Qr(h):n||(T=u&~T,T!==0&&(o=Qr(T)))),o===0?0:a!==0&&a!==o&&(a&f)===0&&(f=o&-o,T=a&-a,f>=T||f===32&&(T&4194176)!==0)?a:o}function lo(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function kI(n,a){switch(n){case 1:case 2:case 4:case 8:return a+250;case 16:case 32:case 64: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 oy(){var n=br;return br<<=1,(br&4194176)===0&&(br=128),n}function sy(){var n=Xr;return Xr<<=1,(Xr&62914560)===0&&(Xr=4194304),n}function P0(n){for(var a=[],u=0;31>u;u++)a.push(n);return a}function oo(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function DI(n,a,u,o,f,h){var T=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,B=n.expirationTimes,z=n.hiddenUpdates;for(u=T&~u;0<u;){var oe=31-ze(u),de=1<<oe;R[oe]=0,B[oe]=-1;var Z=z[oe];if(Z!==null)for(z[oe]=null,oe=0;oe<Z.length;oe++){var le=Z[oe];le!==null&&(le.lane&=-536870913)}u&=~de}o!==0&&cy(n,o,0),h!==0&&f===0&&n.tag!==0&&(n.suspendedLanes|=h&~(T&~a))}function cy(n,a,u){n.pendingLanes|=a,n.suspendedLanes&=~a;var o=31-ze(a);n.entangledLanes|=a,n.entanglements[o]=n.entanglements[o]|1073741824|u&4194218}function fy(n,a){var u=n.entangledLanes|=a;for(n=n.entanglements;u;){var o=31-ze(u),f=1<<o;f&a|n[o]&a&&(n[o]|=a),u&=~f}}function dy(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function hy(){var n=ue.p;return n!==0?n:(n=window.event,n===void 0?32:M3(n.type))}function LI(n,a){var u=ue.p;try{return ue.p=n,a()}finally{ue.p=u}}var Ba=Math.random().toString(36).slice(2),Rn="__reactFiber$"+Ba,jn="__reactProps$"+Ba,gu="__reactContainer$"+Ba,U0="__reactEvents$"+Ba,II="__reactListeners$"+Ba,wI="__reactHandles$"+Ba,py="__reactResources$"+Ba,so="__reactMarker$"+Ba;function H0(n){delete n[Rn],delete n[jn],delete n[U0],delete n[II],delete n[wI]}function yi(n){var a=n[Rn];if(a)return a;for(var u=n.parentNode;u;){if(a=u[gu]||u[Rn]){if(u=a.alternate,a.child!==null||u!==null&&u.child!==null)for(n=T3(n);n!==null;){if(u=n[Rn])return u;n=T3(n)}return a}n=u,u=n.parentNode}return null}function bu(n){if(n=n[Rn]||n[gu]){var a=n.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return n}return null}function co(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(i(33))}function Eu(n){var a=n[py];return a||(a=n[py]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function hn(n){n[so]=!0}var my=new Set,gy={};function Ti(n,a){yu(n,a),yu(n+"Capture",a)}function yu(n,a){for(gy[n]=a,n=0;n<a.length;n++)my.add(a[n])}var la=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),MI=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]*$"),by={},Ey={};function BI(n){return ct.call(Ey,n)?!0:ct.call(by,n)?!1:MI.test(n)?Ey[n]=!0:(by[n]=!0,!1)}function hc(n,a,u){if(BI(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 pc(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 oa(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)}}function Er(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function yy(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function PI(n){var a=yy(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(T){o=""+T,h.call(this,T)}}),Object.defineProperty(n,a,{enumerable:u.enumerable}),{getValue:function(){return o},setValue:function(T){o=""+T},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function mc(n){n._valueTracker||(n._valueTracker=PI(n))}function Ty(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var u=a.getValue(),o="";return n&&(o=yy(n)?n.checked?"true":"false":n.value),n=o,n!==u?(a.setValue(n),!0):!1}function gc(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 UI=/[\n"\\]/g;function yr(n){return n.replace(UI,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function F0(n,a,u,o,f,h,T,R){n.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?n.type=T:n.removeAttribute("type"),a!=null?T==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+Er(a)):n.value!==""+Er(a)&&(n.value=""+Er(a)):T!=="submit"&&T!=="reset"||n.removeAttribute("value"),a!=null?z0(n,T,Er(a)):u!=null?z0(n,T,Er(u)):o!=null&&n.removeAttribute("value"),f==null&&h!=null&&(n.defaultChecked=!!h),f!=null&&(n.checked=f&&typeof f!="function"&&typeof f!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?n.name=""+Er(R):n.removeAttribute("name")}function Sy(n,a,u,o,f,h,T,R){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?""+Er(u):"",a=a!=null?""+Er(a):u,R||a===n.value||(n.value=a),n.defaultValue=a}o=o??f,o=typeof o!="function"&&typeof o!="symbol"&&!!o,n.checked=R?n.checked:!!o,n.defaultChecked=!!o,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(n.name=T)}function z0(n,a,u){a==="number"&&gc(n.ownerDocument)===n||n.defaultValue===""+u||(n.defaultValue=""+u)}function Tu(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=""+Er(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 Cy(n,a,u){if(a!=null&&(a=""+Er(a),a!==n.value&&(n.value=a),u==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=u!=null?""+Er(u):""}function Ay(n,a,u,o){if(a==null){if(o!=null){if(u!=null)throw Error(i(92));if(O(o)){if(1<o.length)throw Error(i(93));o=o[0]}u=o}u==null&&(u=""),a=u}u=Er(a),n.defaultValue=u,o=n.textContent,o===u&&o!==""&&o!==null&&(n.value=o)}function Su(n,a){if(a){var u=n.firstChild;if(u&&u===n.lastChild&&u.nodeType===3){u.nodeValue=a;return}}n.textContent=a}var HI=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 xy(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||HI.has(a)?a==="float"?n.cssFloat=u:n[a]=(""+u).trim():n[a]=u+"px"}function _y(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&&xy(n,f,o)}else for(var h in a)a.hasOwnProperty(h)&&xy(n,h,a[h])}function Y0(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 FI=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"]]),zI=/^[\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 bc(n){return zI.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var j0=null;function V0(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Cu=null,Au=null;function vy(n){var a=bu(n);if(a&&(n=a.stateNode)){var u=n[jn]||null;e:switch(n=a.stateNode,a.type){case"input":if(F0(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="'+yr(""+a)+'"][type="radio"]'),a=0;a<u.length;a++){var o=u[a];if(o!==n&&o.form===n.form){var f=o[jn]||null;if(!f)throw Error(i(90));F0(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&&Ty(o)}break e;case"textarea":Cy(n,u.value,u.defaultValue);break e;case"select":a=u.value,a!=null&&Tu(n,!!u.multiple,a,!1)}}}var $0=!1;function Ry(n,a,u){if($0)return n(a,u);$0=!0;try{var o=n(a);return o}finally{if($0=!1,(Cu!==null||Au!==null)&&(ef(),Cu&&(a=Cu,n=Au,Au=Cu=null,vy(a),n)))for(a=0;a<n.length;a++)vy(n[a])}}function fo(n,a){var u=n.stateNode;if(u===null)return null;var o=u[jn]||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 q0=!1;if(la)try{var ho={};Object.defineProperty(ho,"passive",{get:function(){q0=!0}}),window.addEventListener("test",ho,ho),window.removeEventListener("test",ho,ho)}catch{q0=!1}var Pa=null,G0=null,Ec=null;function Oy(){if(Ec)return Ec;var n,a=G0,u=a.length,o,f="value"in Pa?Pa.value:Pa.textContent,h=f.length;for(n=0;n<u&&a[n]===f[n];n++);var T=u-n;for(o=1;o<=T&&a[u-o]===f[h-o];o++);return Ec=f.slice(n,1<o?1-o:void 0)}function yc(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 Tc(){return!0}function Ny(){return!1}function Vn(n){function a(u,o,f,h,T){this._reactName=u,this._targetInst=f,this.type=o,this.nativeEvent=h,this.target=T,this.currentTarget=null;for(var R in n)n.hasOwnProperty(R)&&(u=n[R],this[R]=u?u(h):h[R]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?Tc:Ny,this.isPropagationStopped=Ny,this}return x(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=Tc)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Tc)},persist:function(){},isPersistent:Tc}),a}var Si={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sc=Vn(Si),po=x({},Si,{view:0,detail:0}),YI=Vn(po),X0,Q0,mo,Cc=x({},po,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:W0,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!==mo&&(mo&&n.type==="mousemove"?(X0=n.screenX-mo.screenX,Q0=n.screenY-mo.screenY):Q0=X0=0,mo=n),X0)},movementY:function(n){return"movementY"in n?n.movementY:Q0}}),ky=Vn(Cc),jI=x({},Cc,{dataTransfer:0}),VI=Vn(jI),$I=x({},po,{relatedTarget:0}),K0=Vn($I),qI=x({},Si,{animationName:0,elapsedTime:0,pseudoElement:0}),GI=Vn(qI),XI=x({},Si,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),QI=Vn(XI),KI=x({},Si,{data:0}),Dy=Vn(KI),WI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ZI={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"},JI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ew(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=JI[n])?!!a[n]:!1}function W0(){return ew}var tw=x({},po,{key:function(n){if(n.key){var a=WI[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=yc(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?ZI[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:W0,charCode:function(n){return n.type==="keypress"?yc(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?yc(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),nw=Vn(tw),rw=x({},Cc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ly=Vn(rw),aw=x({},po,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:W0}),iw=Vn(aw),uw=x({},Si,{propertyName:0,elapsedTime:0,pseudoElement:0}),lw=Vn(uw),ow=x({},Cc,{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}),sw=Vn(ow),cw=x({},Si,{newState:0,oldState:0}),fw=Vn(cw),dw=[9,13,27,32],Z0=la&&"CompositionEvent"in window,go=null;la&&"documentMode"in document&&(go=document.documentMode);var hw=la&&"TextEvent"in window&&!go,Iy=la&&(!Z0||go&&8<go&&11>=go),wy=" ",My=!1;function By(n,a){switch(n){case"keyup":return dw.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Py(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var xu=!1;function pw(n,a){switch(n){case"compositionend":return Py(a);case"keypress":return a.which!==32?null:(My=!0,wy);case"textInput":return n=a.data,n===wy&&My?null:n;default:return null}}function mw(n,a){if(xu)return n==="compositionend"||!Z0&&By(n,a)?(n=Oy(),Ec=G0=Pa=null,xu=!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 Iy&&a.locale!=="ko"?null:a.data;default:return null}}var gw={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 Uy(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!gw[n.type]:a==="textarea"}function Hy(n,a,u,o){Cu?Au?Au.push(o):Au=[o]:Cu=o,a=uf(a,"onChange"),0<a.length&&(u=new Sc("onChange","change",null,u,o),n.push({event:u,listeners:a}))}var bo=null,Eo=null;function bw(n){f3(n,0)}function Ac(n){var a=co(n);if(Ty(a))return n}function Fy(n,a){if(n==="change")return a}var zy=!1;if(la){var J0;if(la){var eh="oninput"in document;if(!eh){var Yy=document.createElement("div");Yy.setAttribute("oninput","return;"),eh=typeof Yy.oninput=="function"}J0=eh}else J0=!1;zy=J0&&(!document.documentMode||9<document.documentMode)}function jy(){bo&&(bo.detachEvent("onpropertychange",Vy),Eo=bo=null)}function Vy(n){if(n.propertyName==="value"&&Ac(Eo)){var a=[];Hy(a,Eo,n,V0(n)),Ry(bw,a)}}function Ew(n,a,u){n==="focusin"?(jy(),bo=a,Eo=u,bo.attachEvent("onpropertychange",Vy)):n==="focusout"&&jy()}function yw(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Ac(Eo)}function Tw(n,a){if(n==="click")return Ac(a)}function Sw(n,a){if(n==="input"||n==="change")return Ac(a)}function Cw(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var er=typeof Object.is=="function"?Object.is:Cw;function yo(n,a){if(er(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(!ct.call(a,f)||!er(n[f],a[f]))return!1}return!0}function $y(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function qy(n,a){var u=$y(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=$y(u)}}function Gy(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?Gy(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function Xy(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=gc(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=gc(n.document)}return a}function th(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")}function Aw(n,a){var u=Xy(a);a=n.focusedElem;var o=n.selectionRange;if(u!==a&&a&&a.ownerDocument&&Gy(a.ownerDocument.documentElement,a)){if(o!==null&&th(a)){if(n=o.start,u=o.end,u===void 0&&(u=n),"selectionStart"in a)a.selectionStart=n,a.selectionEnd=Math.min(u,a.value.length);else if(u=(n=a.ownerDocument||document)&&n.defaultView||window,u.getSelection){u=u.getSelection();var f=a.textContent.length,h=Math.min(o.start,f);o=o.end===void 0?h:Math.min(o.end,f),!u.extend&&h>o&&(f=o,o=h,h=f),f=qy(a,h);var T=qy(a,o);f&&T&&(u.rangeCount!==1||u.anchorNode!==f.node||u.anchorOffset!==f.offset||u.focusNode!==T.node||u.focusOffset!==T.offset)&&(n=n.createRange(),n.setStart(f.node,f.offset),u.removeAllRanges(),h>o?(u.addRange(n),u.extend(T.node,T.offset)):(n.setEnd(T.node,T.offset),u.addRange(n)))}}for(n=[],u=a;u=u.parentNode;)u.nodeType===1&&n.push({element:u,left:u.scrollLeft,top:u.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<n.length;a++)u=n[a],u.element.scrollLeft=u.left,u.element.scrollTop=u.top}}var xw=la&&"documentMode"in document&&11>=document.documentMode,_u=null,nh=null,To=null,rh=!1;function Qy(n,a,u){var o=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;rh||_u==null||_u!==gc(o)||(o=_u,"selectionStart"in o&&th(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}),To&&yo(To,o)||(To=o,o=uf(nh,"onSelect"),0<o.length&&(a=new Sc("onSelect","select",null,a,u),n.push({event:a,listeners:o}),a.target=_u)))}function Ci(n,a){var u={};return u[n.toLowerCase()]=a.toLowerCase(),u["Webkit"+n]="webkit"+a,u["Moz"+n]="moz"+a,u}var vu={animationend:Ci("Animation","AnimationEnd"),animationiteration:Ci("Animation","AnimationIteration"),animationstart:Ci("Animation","AnimationStart"),transitionrun:Ci("Transition","TransitionRun"),transitionstart:Ci("Transition","TransitionStart"),transitioncancel:Ci("Transition","TransitionCancel"),transitionend:Ci("Transition","TransitionEnd")},ah={},Ky={};la&&(Ky=document.createElement("div").style,"AnimationEvent"in window||(delete vu.animationend.animation,delete vu.animationiteration.animation,delete vu.animationstart.animation),"TransitionEvent"in window||delete vu.transitionend.transition);function Ai(n){if(ah[n])return ah[n];if(!vu[n])return n;var a=vu[n],u;for(u in a)if(a.hasOwnProperty(u)&&u in Ky)return ah[n]=a[u];return n}var Wy=Ai("animationend"),Zy=Ai("animationiteration"),Jy=Ai("animationstart"),_w=Ai("transitionrun"),vw=Ai("transitionstart"),Rw=Ai("transitioncancel"),eT=Ai("transitionend"),tT=new Map,nT="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 scrollEnd toggle touchMove waiting wheel".split(" ");function Dr(n,a){tT.set(n,a),Ti(a,[n])}var Tr=[],Ru=0,ih=0;function xc(){for(var n=Ru,a=ih=Ru=0;a<n;){var u=Tr[a];Tr[a++]=null;var o=Tr[a];Tr[a++]=null;var f=Tr[a];Tr[a++]=null;var h=Tr[a];if(Tr[a++]=null,o!==null&&f!==null){var T=o.pending;T===null?f.next=f:(f.next=T.next,T.next=f),o.pending=f}h!==0&&rT(u,f,h)}}function _c(n,a,u,o){Tr[Ru++]=n,Tr[Ru++]=a,Tr[Ru++]=u,Tr[Ru++]=o,ih|=o,n.lanes|=o,n=n.alternate,n!==null&&(n.lanes|=o)}function uh(n,a,u,o){return _c(n,a,u,o),vc(n)}function Ua(n,a){return _c(n,null,null,a),vc(n)}function rT(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;f&&a!==null&&n.tag===3&&(h=n.stateNode,f=31-ze(u),h=h.hiddenUpdates,n=h[f],n===null?h[f]=[a]:n.push(a),a.lane=u|536870912)}function vc(n){if(50<$o)throw $o=0,dp=null,Error(i(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var Ou={},aT=new WeakMap;function Sr(n,a){if(typeof n=="object"&&n!==null){var u=aT.get(n);return u!==void 0?u:(a={value:n,source:a,stack:se(a)},aT.set(n,a),a)}return{value:n,source:a,stack:se(a)}}var Nu=[],ku=0,Rc=null,Oc=0,Cr=[],Ar=0,xi=null,sa=1,ca="";function _i(n,a){Nu[ku++]=Oc,Nu[ku++]=Rc,Rc=n,Oc=a}function iT(n,a,u){Cr[Ar++]=sa,Cr[Ar++]=ca,Cr[Ar++]=xi,xi=n;var o=sa;n=ca;var f=32-ze(o)-1;o&=~(1<<f),u+=1;var h=32-ze(a)+f;if(30<h){var T=f-f%5;h=(o&(1<<T)-1).toString(32),o>>=T,f-=T,sa=1<<32-ze(a)+f|u<<f|o,ca=h+n}else sa=1<<h|u<<f|o,ca=n}function lh(n){n.return!==null&&(_i(n,1),iT(n,1,0))}function oh(n){for(;n===Rc;)Rc=Nu[--ku],Nu[ku]=null,Oc=Nu[--ku],Nu[ku]=null;for(;n===xi;)xi=Cr[--Ar],Cr[Ar]=null,ca=Cr[--Ar],Cr[Ar]=null,sa=Cr[--Ar],Cr[Ar]=null}var kn=null,En=null,gt=!1,Lr=null,Kr=!1,sh=Error(i(519));function vi(n){var a=Error(i(418,""));throw Ao(Sr(a,n)),sh}function uT(n){var a=n.stateNode,u=n.type,o=n.memoizedProps;switch(a[Rn]=n,a[jn]=o,u){case"dialog":ft("cancel",a),ft("close",a);break;case"iframe":case"object":case"embed":ft("load",a);break;case"video":case"audio":for(u=0;u<Go.length;u++)ft(Go[u],a);break;case"source":ft("error",a);break;case"img":case"image":case"link":ft("error",a),ft("load",a);break;case"details":ft("toggle",a);break;case"input":ft("invalid",a),Sy(a,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),mc(a);break;case"select":ft("invalid",a);break;case"textarea":ft("invalid",a),Ay(a,o.value,o.defaultValue,o.children),mc(a)}u=o.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||a.textContent===""+u||o.suppressHydrationWarning===!0||m3(a.textContent,u)?(o.popover!=null&&(ft("beforetoggle",a),ft("toggle",a)),o.onScroll!=null&&ft("scroll",a),o.onScrollEnd!=null&&ft("scrollend",a),o.onClick!=null&&(a.onclick=lf),a=!0):a=!1,a||vi(n)}function lT(n){for(kn=n.return;kn;)switch(kn.tag){case 3:case 27:Kr=!0;return;case 5:case 13:Kr=!1;return;default:kn=kn.return}}function So(n){if(n!==kn)return!1;if(!gt)return lT(n),gt=!0,!1;var a=!1,u;if((u=n.tag!==3&&n.tag!==27)&&((u=n.tag===5)&&(u=n.type,u=!(u!=="form"&&u!=="button")||Np(n.type,n.memoizedProps)),u=!u),u&&(a=!0),a&&En&&vi(n),lT(n),n.tag===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){En=wr(n.nextSibling);break e}a--}else u!=="$"&&u!=="$!"&&u!=="$?"||a++;n=n.nextSibling}En=null}}else En=kn?wr(n.stateNode.nextSibling):null;return!0}function Co(){En=kn=null,gt=!1}function Ao(n){Lr===null?Lr=[n]:Lr.push(n)}var xo=Error(i(460)),oT=Error(i(474)),ch={then:function(){}};function sT(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Nc(){}function cT(n,a,u){switch(u=n[u],u===void 0?n.push(a):u!==a&&(a.then(Nc,Nc),a=u),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,n===xo?Error(i(483)):n;default:if(typeof a.status=="string")a.then(Nc,Nc);else{if(n=wt,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,n===xo?Error(i(483)):n}throw _o=a,xo}}var _o=null;function fT(){if(_o===null)throw Error(i(459));var n=_o;return _o=null,n}var Du=null,vo=0;function kc(n){var a=vo;return vo+=1,Du===null&&(Du=[]),cT(Du,n,a)}function Ro(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function Dc(n,a){throw a.$$typeof===s?Error(i(525)):(n=Object.prototype.toString.call(a),Error(i(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function dT(n){var a=n._init;return a(n._payload)}function hT(n){function a($,F){if(n){var X=$.deletions;X===null?($.deletions=[F],$.flags|=16):X.push(F)}}function u($,F){if(!n)return null;for(;F!==null;)a($,F),F=F.sibling;return null}function o($){for(var F=new Map;$!==null;)$.key!==null?F.set($.key,$):F.set($.index,$),$=$.sibling;return F}function f($,F){return $=Ka($,F),$.index=0,$.sibling=null,$}function h($,F,X){return $.index=X,n?(X=$.alternate,X!==null?(X=X.index,X<F?($.flags|=33554434,F):X):($.flags|=33554434,F)):($.flags|=1048576,F)}function T($){return n&&$.alternate===null&&($.flags|=33554434),$}function R($,F,X,ce){return F===null||F.tag!==6?(F=ap(X,$.mode,ce),F.return=$,F):(F=f(F,X),F.return=$,F)}function B($,F,X,ce){var Ne=X.type;return Ne===p?oe($,F,X.props.children,ce,X.key):F!==null&&(F.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===H&&dT(Ne)===F.type)?(F=f(F,X.props),Ro(F,X),F.return=$,F):(F=Qc(X.type,X.key,X.props,null,$.mode,ce),Ro(F,X),F.return=$,F)}function z($,F,X,ce){return F===null||F.tag!==4||F.stateNode.containerInfo!==X.containerInfo||F.stateNode.implementation!==X.implementation?(F=ip(X,$.mode,ce),F.return=$,F):(F=f(F,X.children||[]),F.return=$,F)}function oe($,F,X,ce,Ne){return F===null||F.tag!==7?(F=Bi(X,$.mode,ce,Ne),F.return=$,F):(F=f(F,X),F.return=$,F)}function de($,F,X){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return F=ap(""+F,$.mode,X),F.return=$,F;if(typeof F=="object"&&F!==null){switch(F.$$typeof){case c:return X=Qc(F.type,F.key,F.props,null,$.mode,X),Ro(X,F),X.return=$,X;case d:return F=ip(F,$.mode,X),F.return=$,F;case H:var ce=F._init;return F=ce(F._payload),de($,F,X)}if(O(F)||M(F))return F=Bi(F,$.mode,X,null),F.return=$,F;if(typeof F.then=="function")return de($,kc(F),X);if(F.$$typeof===y)return de($,qc($,F),X);Dc($,F)}return null}function Z($,F,X,ce){var Ne=F!==null?F.key:null;if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return Ne!==null?null:R($,F,""+X,ce);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case c:return X.key===Ne?B($,F,X,ce):null;case d:return X.key===Ne?z($,F,X,ce):null;case H:return Ne=X._init,X=Ne(X._payload),Z($,F,X,ce)}if(O(X)||M(X))return Ne!==null?null:oe($,F,X,ce,null);if(typeof X.then=="function")return Z($,F,kc(X),ce);if(X.$$typeof===y)return Z($,F,qc($,X),ce);Dc($,X)}return null}function le($,F,X,ce,Ne){if(typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint")return $=$.get(X)||null,R(F,$,""+ce,Ne);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case c:return $=$.get(ce.key===null?X:ce.key)||null,B(F,$,ce,Ne);case d:return $=$.get(ce.key===null?X:ce.key)||null,z(F,$,ce,Ne);case H:var ut=ce._init;return ce=ut(ce._payload),le($,F,X,ce,Ne)}if(O(ce)||M(ce))return $=$.get(X)||null,oe(F,$,ce,Ne,null);if(typeof ce.then=="function")return le($,F,X,kc(ce),Ne);if(ce.$$typeof===y)return le($,F,X,qc(F,ce),Ne);Dc(F,ce)}return null}function Le($,F,X,ce){for(var Ne=null,ut=null,Pe=F,Ye=F=0,gn=null;Pe!==null&&Ye<X.length;Ye++){Pe.index>Ye?(gn=Pe,Pe=null):gn=Pe.sibling;var bt=Z($,Pe,X[Ye],ce);if(bt===null){Pe===null&&(Pe=gn);break}n&&Pe&&bt.alternate===null&&a($,Pe),F=h(bt,F,Ye),ut===null?Ne=bt:ut.sibling=bt,ut=bt,Pe=gn}if(Ye===X.length)return u($,Pe),gt&&_i($,Ye),Ne;if(Pe===null){for(;Ye<X.length;Ye++)Pe=de($,X[Ye],ce),Pe!==null&&(F=h(Pe,F,Ye),ut===null?Ne=Pe:ut.sibling=Pe,ut=Pe);return gt&&_i($,Ye),Ne}for(Pe=o(Pe);Ye<X.length;Ye++)gn=le(Pe,$,Ye,X[Ye],ce),gn!==null&&(n&&gn.alternate!==null&&Pe.delete(gn.key===null?Ye:gn.key),F=h(gn,F,Ye),ut===null?Ne=gn:ut.sibling=gn,ut=gn);return n&&Pe.forEach(function(ri){return a($,ri)}),gt&&_i($,Ye),Ne}function qe($,F,X,ce){if(X==null)throw Error(i(151));for(var Ne=null,ut=null,Pe=F,Ye=F=0,gn=null,bt=X.next();Pe!==null&&!bt.done;Ye++,bt=X.next()){Pe.index>Ye?(gn=Pe,Pe=null):gn=Pe.sibling;var ri=Z($,Pe,bt.value,ce);if(ri===null){Pe===null&&(Pe=gn);break}n&&Pe&&ri.alternate===null&&a($,Pe),F=h(ri,F,Ye),ut===null?Ne=ri:ut.sibling=ri,ut=ri,Pe=gn}if(bt.done)return u($,Pe),gt&&_i($,Ye),Ne;if(Pe===null){for(;!bt.done;Ye++,bt=X.next())bt=de($,bt.value,ce),bt!==null&&(F=h(bt,F,Ye),ut===null?Ne=bt:ut.sibling=bt,ut=bt);return gt&&_i($,Ye),Ne}for(Pe=o(Pe);!bt.done;Ye++,bt=X.next())bt=le(Pe,$,Ye,bt.value,ce),bt!==null&&(n&&bt.alternate!==null&&Pe.delete(bt.key===null?Ye:bt.key),F=h(bt,F,Ye),ut===null?Ne=bt:ut.sibling=bt,ut=bt);return n&&Pe.forEach(function(zM){return a($,zM)}),gt&&_i($,Ye),Ne}function Xt($,F,X,ce){if(typeof X=="object"&&X!==null&&X.type===p&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case c:e:{for(var Ne=X.key;F!==null;){if(F.key===Ne){if(Ne=X.type,Ne===p){if(F.tag===7){u($,F.sibling),ce=f(F,X.props.children),ce.return=$,$=ce;break e}}else if(F.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===H&&dT(Ne)===F.type){u($,F.sibling),ce=f(F,X.props),Ro(ce,X),ce.return=$,$=ce;break e}u($,F);break}else a($,F);F=F.sibling}X.type===p?(ce=Bi(X.props.children,$.mode,ce,X.key),ce.return=$,$=ce):(ce=Qc(X.type,X.key,X.props,null,$.mode,ce),Ro(ce,X),ce.return=$,$=ce)}return T($);case d:e:{for(Ne=X.key;F!==null;){if(F.key===Ne)if(F.tag===4&&F.stateNode.containerInfo===X.containerInfo&&F.stateNode.implementation===X.implementation){u($,F.sibling),ce=f(F,X.children||[]),ce.return=$,$=ce;break e}else{u($,F);break}else a($,F);F=F.sibling}ce=ip(X,$.mode,ce),ce.return=$,$=ce}return T($);case H:return Ne=X._init,X=Ne(X._payload),Xt($,F,X,ce)}if(O(X))return Le($,F,X,ce);if(M(X)){if(Ne=M(X),typeof Ne!="function")throw Error(i(150));return X=Ne.call(X),qe($,F,X,ce)}if(typeof X.then=="function")return Xt($,F,kc(X),ce);if(X.$$typeof===y)return Xt($,F,qc($,X),ce);Dc($,X)}return typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint"?(X=""+X,F!==null&&F.tag===6?(u($,F.sibling),ce=f(F,X),ce.return=$,$=ce):(u($,F),ce=ap(X,$.mode,ce),ce.return=$,$=ce),T($)):u($,F)}return function($,F,X,ce){try{vo=0;var Ne=Xt($,F,X,ce);return Du=null,Ne}catch(Pe){if(Pe===xo)throw Pe;var ut=Rr(29,Pe,null,$.mode);return ut.lanes=ce,ut.return=$,ut}finally{}}}var Ri=hT(!0),pT=hT(!1),Lu=Me(null),Lc=Me(0);function mT(n,a){n=Sa,xe(Lc,n),xe(Lu,a),Sa=n|a.baseLanes}function fh(){xe(Lc,Sa),xe(Lu,Lu.current)}function dh(){Sa=Lc.current,$e(Lu),$e(Lc)}var xr=Me(null),Wr=null;function Ha(n){var a=n.alternate;xe(sn,sn.current&1),xe(xr,n),Wr===null&&(a===null||Lu.current!==null||a.memoizedState!==null)&&(Wr=n)}function gT(n){if(n.tag===22){if(xe(sn,sn.current),xe(xr,n),Wr===null){var a=n.alternate;a!==null&&a.memoizedState!==null&&(Wr=n)}}else Fa()}function Fa(){xe(sn,sn.current),xe(xr,xr.current)}function fa(n){$e(xr),Wr===n&&(Wr=null),$e(sn)}var sn=Me(0);function Ic(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==="$?"||u.data==="$!"))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}var Ow=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()})}},Nw=e.unstable_scheduleCallback,kw=e.unstable_NormalPriority,cn={$$typeof:y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hh(){return{controller:new Ow,data:new Map,refCount:0}}function Oo(n){n.refCount--,n.refCount===0&&Nw(kw,function(){n.controller.abort()})}var No=null,ph=0,Iu=0,wu=null;function Dw(n,a){if(No===null){var u=No=[];ph=0,Iu=Tp(),wu={status:"pending",value:void 0,then:function(o){u.push(o)}}}return ph++,a.then(bT,bT),a}function bT(){if(--ph===0&&No!==null){wu!==null&&(wu.status="fulfilled");var n=No;No=null,Iu=0,wu=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function Lw(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 ET=V.S;V.S=function(n,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&Dw(n,a),ET!==null&&ET(n,a)};var Oi=Me(null);function mh(){var n=Oi.current;return n!==null?n:wt.pooledCache}function wc(n,a){a===null?xe(Oi,Oi.current):xe(Oi,a.pool)}function yT(){var n=mh();return n===null?null:{parent:cn._currentValue,pool:n}}var za=0,rt=null,Ct=null,un=null,Mc=!1,Mu=!1,Ni=!1,Bc=0,ko=0,Bu=null,Iw=0;function Wt(){throw Error(i(321))}function gh(n,a){if(a===null)return!1;for(var u=0;u<a.length&&u<n.length;u++)if(!er(n[u],a[u]))return!1;return!0}function bh(n,a,u,o,f,h){return za=h,rt=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,V.H=n===null||n.memoizedState===null?ki:Ya,Ni=!1,h=u(o,f),Ni=!1,Mu&&(h=ST(a,u,o,f)),TT(n),h}function TT(n){V.H=Zr;var a=Ct!==null&&Ct.next!==null;if(za=0,un=Ct=rt=null,Mc=!1,ko=0,Bu=null,a)throw Error(i(300));n===null||pn||(n=n.dependencies,n!==null&&$c(n)&&(pn=!0))}function ST(n,a,u,o){rt=n;var f=0;do{if(Mu&&(Bu=null),ko=0,Mu=!1,25<=f)throw Error(i(301));if(f+=1,un=Ct=null,n.updateQueue!=null){var h=n.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}V.H=Di,h=a(u,o)}while(Mu);return h}function ww(){var n=V.H,a=n.useState()[0];return a=typeof a.then=="function"?Do(a):a,n=n.useState()[0],(Ct!==null?Ct.memoizedState:null)!==n&&(rt.flags|=1024),a}function Eh(){var n=Bc!==0;return Bc=0,n}function yh(n,a,u){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~u}function Th(n){if(Mc){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}Mc=!1}za=0,un=Ct=rt=null,Mu=!1,ko=Bc=0,Bu=null}function $n(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return un===null?rt.memoizedState=un=n:un=un.next=n,un}function ln(){if(Ct===null){var n=rt.alternate;n=n!==null?n.memoizedState:null}else n=Ct.next;var a=un===null?rt.memoizedState:un.next;if(a!==null)un=a,Ct=n;else{if(n===null)throw rt.alternate===null?Error(i(467)):Error(i(310));Ct=n,n={memoizedState:Ct.memoizedState,baseState:Ct.baseState,baseQueue:Ct.baseQueue,queue:Ct.queue,next:null},un===null?rt.memoizedState=un=n:un=un.next=n}return un}var Pc;Pc=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function Do(n){var a=ko;return ko+=1,Bu===null&&(Bu=[]),n=cT(Bu,n,a),a=rt,(un===null?a.memoizedState:un.next)===null&&(a=a.alternate,V.H=a===null||a.memoizedState===null?ki:Ya),n}function Uc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Do(n);if(n.$$typeof===y)return On(n)}throw Error(i(438,String(n)))}function Sh(n){var a=null,u=rt.updateQueue;if(u!==null&&(a=u.memoCache),a==null){var o=rt.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=Pc(),rt.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]=P;return a.index++,u}function da(n,a){return typeof a=="function"?a(n):a}function Hc(n){var a=ln();return Ch(a,Ct,n)}function Ch(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 T=f.next;f.next=h.next,h.next=T}a.baseQueue=f=h,o.pending=null}if(h=n.baseState,f===null)n.memoizedState=h;else{a=f.next;var R=T=null,B=null,z=a,oe=!1;do{var de=z.lane&-536870913;if(de!==z.lane?(ht&de)===de:(za&de)===de){var Z=z.revertLane;if(Z===0)B!==null&&(B=B.next={lane:0,revertLane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),de===Iu&&(oe=!0);else if((za&Z)===Z){z=z.next,Z===Iu&&(oe=!0);continue}else de={lane:0,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},B===null?(R=B=de,T=h):B=B.next=de,rt.lanes|=Z,Wa|=Z;de=z.action,Ni&&u(h,de),h=z.hasEagerState?z.eagerState:u(h,de)}else Z={lane:de,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},B===null?(R=B=Z,T=h):B=B.next=Z,rt.lanes|=de,Wa|=de;z=z.next}while(z!==null&&z!==a);if(B===null?T=h:B.next=R,!er(h,n.memoizedState)&&(pn=!0,oe&&(u=wu,u!==null)))throw u;n.memoizedState=h,n.baseState=T,n.baseQueue=B,o.lastRenderedState=h}return f===null&&(o.lanes=0),[n.memoizedState,o.dispatch]}function Ah(n){var a=ln(),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 T=f=f.next;do h=n(h,T.action),T=T.next;while(T!==f);er(h,a.memoizedState)||(pn=!0),a.memoizedState=h,a.baseQueue===null&&(a.baseState=h),u.lastRenderedState=h}return[h,o]}function CT(n,a,u){var o=rt,f=ln(),h=gt;if(h){if(u===void 0)throw Error(i(407));u=u()}else u=a();var T=!er((Ct||f).memoizedState,u);if(T&&(f.memoizedState=u,pn=!0),f=f.queue,vh(_T.bind(null,o,f,n),[n]),f.getSnapshot!==a||T||un!==null&&un.memoizedState.tag&1){if(o.flags|=2048,Pu(9,xT.bind(null,o,f,u,a),{destroy:void 0},null),wt===null)throw Error(i(349));h||(za&60)!==0||AT(o,a,u)}return u}function AT(n,a,u){n.flags|=16384,n={getSnapshot:a,value:u},a=rt.updateQueue,a===null?(a=Pc(),rt.updateQueue=a,a.stores=[n]):(u=a.stores,u===null?a.stores=[n]:u.push(n))}function xT(n,a,u,o){a.value=u,a.getSnapshot=o,vT(a)&&RT(n)}function _T(n,a,u){return u(function(){vT(a)&&RT(n)})}function vT(n){var a=n.getSnapshot;n=n.value;try{var u=a();return!er(n,u)}catch{return!0}}function RT(n){var a=Ua(n,2);a!==null&&Dn(a,n,2)}function xh(n){var a=$n();if(typeof n=="function"){var u=n;if(n=u(),Ni){_e(!0);try{u()}finally{_e(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:n},a}function OT(n,a,u,o){return n.baseState=u,Ch(n,Ct,typeof o=="function"?o:da)}function Mw(n,a,u,o,f){if(Yc(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(T){h.listeners.push(T)}};V.T!==null?u(!0):h.isTransition=!1,o(h),u=a.pending,u===null?(h.next=a.pending=h,NT(a,h)):(h.next=u.next,a.pending=u.next=h)}}function NT(n,a){var u=a.action,o=a.payload,f=n.state;if(a.isTransition){var h=V.T,T={};V.T=T;try{var R=u(f,o),B=V.S;B!==null&&B(T,R),kT(n,a,R)}catch(z){_h(n,a,z)}finally{V.T=h}}else try{h=u(f,o),kT(n,a,h)}catch(z){_h(n,a,z)}}function kT(n,a,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(o){DT(n,a,o)},function(o){return _h(n,a,o)}):DT(n,a,u)}function DT(n,a,u){a.status="fulfilled",a.value=u,LT(a),n.state=u,a=n.pending,a!==null&&(u=a.next,u===a?n.pending=null:(u=u.next,a.next=u,NT(n,u)))}function _h(n,a,u){var o=n.pending;if(n.pending=null,o!==null){o=o.next;do a.status="rejected",a.reason=u,LT(a),a=a.next;while(a!==o)}n.action=null}function LT(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function IT(n,a){return a}function wT(n,a){if(gt){var u=wt.formState;if(u!==null){e:{var o=rt;if(gt){if(En){t:{for(var f=En,h=Kr;f.nodeType!==8;){if(!h){f=null;break t}if(f=wr(f.nextSibling),f===null){f=null;break t}}h=f.data,f=h==="F!"||h==="F"?f:null}if(f){En=wr(f.nextSibling),o=f.data==="F!";break e}}vi(o)}o=!1}o&&(a=u[0])}}return u=$n(),u.memoizedState=u.baseState=a,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:IT,lastRenderedState:a},u.queue=o,u=ZT.bind(null,rt,o),o.dispatch=u,o=xh(!1),h=Dh.bind(null,rt,!1,o.queue),o=$n(),f={state:a,dispatch:null,action:n,pending:null},o.queue=f,u=Mw.bind(null,rt,f,h,u),f.dispatch=u,o.memoizedState=n,[a,u,!1]}function MT(n){var a=ln();return BT(a,Ct,n)}function BT(n,a,u){a=Ch(n,a,IT)[0],n=Hc(da)[0],a=typeof a=="object"&&a!==null&&typeof a.then=="function"?Do(a):a;var o=ln(),f=o.queue,h=f.dispatch;return u!==o.memoizedState&&(rt.flags|=2048,Pu(9,Bw.bind(null,f,u),{destroy:void 0},null)),[a,h,n]}function Bw(n,a){n.action=a}function PT(n){var a=ln(),u=Ct;if(u!==null)return BT(a,u,n);ln(),a=a.memoizedState,u=ln();var o=u.queue.dispatch;return u.memoizedState=n,[a,o,!1]}function Pu(n,a,u,o){return n={tag:n,create:a,inst:u,deps:o,next:null},a=rt.updateQueue,a===null&&(a=Pc(),rt.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 UT(){return ln().memoizedState}function Fc(n,a,u,o){var f=$n();rt.flags|=n,f.memoizedState=Pu(1|a,u,{destroy:void 0},o===void 0?null:o)}function zc(n,a,u,o){var f=ln();o=o===void 0?null:o;var h=f.memoizedState.inst;Ct!==null&&o!==null&&gh(o,Ct.memoizedState.deps)?f.memoizedState=Pu(a,u,h,o):(rt.flags|=n,f.memoizedState=Pu(1|a,u,h,o))}function HT(n,a){Fc(8390656,8,n,a)}function vh(n,a){zc(2048,8,n,a)}function FT(n,a){return zc(4,2,n,a)}function zT(n,a){return zc(4,4,n,a)}function YT(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 jT(n,a,u){u=u!=null?u.concat([n]):null,zc(4,4,YT.bind(null,a,n),u)}function Rh(){}function VT(n,a){var u=ln();a=a===void 0?null:a;var o=u.memoizedState;return a!==null&&gh(a,o[1])?o[0]:(u.memoizedState=[n,a],n)}function $T(n,a){var u=ln();a=a===void 0?null:a;var o=u.memoizedState;if(a!==null&&gh(a,o[1]))return o[0];if(o=n(),Ni){_e(!0);try{n()}finally{_e(!1)}}return u.memoizedState=[o,a],o}function Oh(n,a,u){return u===void 0||(za&1073741824)!==0?n.memoizedState=a:(n.memoizedState=u,n=GS(),rt.lanes|=n,Wa|=n,u)}function qT(n,a,u,o){return er(u,a)?u:Lu.current!==null?(n=Oh(n,u,o),er(n,a)||(pn=!0),n):(za&42)===0?(pn=!0,n.memoizedState=u):(n=GS(),rt.lanes|=n,Wa|=n,a)}function GT(n,a,u,o,f){var h=ue.p;ue.p=h!==0&&8>h?h:8;var T=V.T,R={};V.T=R,Dh(n,!1,a,u);try{var B=f(),z=V.S;if(z!==null&&z(R,B),B!==null&&typeof B=="object"&&typeof B.then=="function"){var oe=Lw(B,o);Lo(n,a,oe,ar(n))}else Lo(n,a,o,ar(n))}catch(de){Lo(n,a,{then:function(){},status:"rejected",reason:de},ar())}finally{ue.p=h,V.T=T}}function Pw(){}function Nh(n,a,u,o){if(n.tag!==5)throw Error(i(476));var f=XT(n).queue;GT(n,f,a,Re,u===null?Pw:function(){return QT(n),u(o)})}function XT(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:Re,baseState:Re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:Re},next:null};var u={};return a.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:u},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function QT(n){var a=XT(n).next.queue;Lo(n,a,{},ar())}function kh(){return On(Zo)}function KT(){return ln().memoizedState}function WT(){return ln().memoizedState}function Uw(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var u=ar();n=$a(u);var o=qa(a,n,u);o!==null&&(Dn(o,a,u),Mo(o,a,u)),a={cache:hh()},n.payload=a;return}a=a.return}}function Hw(n,a,u){var o=ar();u={lane:o,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null},Yc(n)?JT(a,u):(u=uh(n,a,u,o),u!==null&&(Dn(u,n,o),eS(u,a,o)))}function ZT(n,a,u){var o=ar();Lo(n,a,u,o)}function Lo(n,a,u,o){var f={lane:o,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};if(Yc(n))JT(a,f);else{var h=n.alternate;if(n.lanes===0&&(h===null||h.lanes===0)&&(h=a.lastRenderedReducer,h!==null))try{var T=a.lastRenderedState,R=h(T,u);if(f.hasEagerState=!0,f.eagerState=R,er(R,T))return _c(n,a,f,0),wt===null&&xc(),!1}catch{}finally{}if(u=uh(n,a,f,o),u!==null)return Dn(u,n,o),eS(u,a,o),!0}return!1}function Dh(n,a,u,o){if(o={lane:2,revertLane:Tp(),action:o,hasEagerState:!1,eagerState:null,next:null},Yc(n)){if(a)throw Error(i(479))}else a=uh(n,u,o,2),a!==null&&Dn(a,n,2)}function Yc(n){var a=n.alternate;return n===rt||a!==null&&a===rt}function JT(n,a){Mu=Mc=!0;var u=n.pending;u===null?a.next=a:(a.next=u.next,u.next=a),n.pending=a}function eS(n,a,u){if((u&4194176)!==0){var o=a.lanes;o&=n.pendingLanes,u|=o,a.lanes=u,fy(n,u)}}var Zr={readContext:On,use:Uc,useCallback:Wt,useContext:Wt,useEffect:Wt,useImperativeHandle:Wt,useLayoutEffect:Wt,useInsertionEffect:Wt,useMemo:Wt,useReducer:Wt,useRef:Wt,useState:Wt,useDebugValue:Wt,useDeferredValue:Wt,useTransition:Wt,useSyncExternalStore:Wt,useId:Wt};Zr.useCacheRefresh=Wt,Zr.useMemoCache=Wt,Zr.useHostTransitionStatus=Wt,Zr.useFormState=Wt,Zr.useActionState=Wt,Zr.useOptimistic=Wt;var ki={readContext:On,use:Uc,useCallback:function(n,a){return $n().memoizedState=[n,a===void 0?null:a],n},useContext:On,useEffect:HT,useImperativeHandle:function(n,a,u){u=u!=null?u.concat([n]):null,Fc(4194308,4,YT.bind(null,a,n),u)},useLayoutEffect:function(n,a){return Fc(4194308,4,n,a)},useInsertionEffect:function(n,a){Fc(4,2,n,a)},useMemo:function(n,a){var u=$n();a=a===void 0?null:a;var o=n();if(Ni){_e(!0);try{n()}finally{_e(!1)}}return u.memoizedState=[o,a],o},useReducer:function(n,a,u){var o=$n();if(u!==void 0){var f=u(a);if(Ni){_e(!0);try{u(a)}finally{_e(!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=Hw.bind(null,rt,n),[o.memoizedState,n]},useRef:function(n){var a=$n();return n={current:n},a.memoizedState=n},useState:function(n){n=xh(n);var a=n.queue,u=ZT.bind(null,rt,a);return a.dispatch=u,[n.memoizedState,u]},useDebugValue:Rh,useDeferredValue:function(n,a){var u=$n();return Oh(u,n,a)},useTransition:function(){var n=xh(!1);return n=GT.bind(null,rt,n.queue,!0,!1),$n().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,u){var o=rt,f=$n();if(gt){if(u===void 0)throw Error(i(407));u=u()}else{if(u=a(),wt===null)throw Error(i(349));(ht&60)!==0||AT(o,a,u)}f.memoizedState=u;var h={value:u,getSnapshot:a};return f.queue=h,HT(_T.bind(null,o,h,n),[n]),o.flags|=2048,Pu(9,xT.bind(null,o,h,u,a),{destroy:void 0},null),u},useId:function(){var n=$n(),a=wt.identifierPrefix;if(gt){var u=ca,o=sa;u=(o&~(1<<32-ze(o)-1)).toString(32)+u,a=":"+a+"R"+u,u=Bc++,0<u&&(a+="H"+u.toString(32)),a+=":"}else u=Iw++,a=":"+a+"r"+u.toString(32)+":";return n.memoizedState=a},useCacheRefresh:function(){return $n().memoizedState=Uw.bind(null,rt)}};ki.useMemoCache=Sh,ki.useHostTransitionStatus=kh,ki.useFormState=wT,ki.useActionState=wT,ki.useOptimistic=function(n){var a=$n();a.memoizedState=a.baseState=n;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=u,a=Dh.bind(null,rt,!0,u),u.dispatch=a,[n,a]};var Ya={readContext:On,use:Uc,useCallback:VT,useContext:On,useEffect:vh,useImperativeHandle:jT,useInsertionEffect:FT,useLayoutEffect:zT,useMemo:$T,useReducer:Hc,useRef:UT,useState:function(){return Hc(da)},useDebugValue:Rh,useDeferredValue:function(n,a){var u=ln();return qT(u,Ct.memoizedState,n,a)},useTransition:function(){var n=Hc(da)[0],a=ln().memoizedState;return[typeof n=="boolean"?n:Do(n),a]},useSyncExternalStore:CT,useId:KT};Ya.useCacheRefresh=WT,Ya.useMemoCache=Sh,Ya.useHostTransitionStatus=kh,Ya.useFormState=MT,Ya.useActionState=MT,Ya.useOptimistic=function(n,a){var u=ln();return OT(u,Ct,n,a)};var Di={readContext:On,use:Uc,useCallback:VT,useContext:On,useEffect:vh,useImperativeHandle:jT,useInsertionEffect:FT,useLayoutEffect:zT,useMemo:$T,useReducer:Ah,useRef:UT,useState:function(){return Ah(da)},useDebugValue:Rh,useDeferredValue:function(n,a){var u=ln();return Ct===null?Oh(u,n,a):qT(u,Ct.memoizedState,n,a)},useTransition:function(){var n=Ah(da)[0],a=ln().memoizedState;return[typeof n=="boolean"?n:Do(n),a]},useSyncExternalStore:CT,useId:KT};Di.useCacheRefresh=WT,Di.useMemoCache=Sh,Di.useHostTransitionStatus=kh,Di.useFormState=PT,Di.useActionState=PT,Di.useOptimistic=function(n,a){var u=ln();return Ct!==null?OT(u,Ct,n,a):(u.baseState=n,[n,u.queue.dispatch])};function Lh(n,a,u,o){a=n.memoizedState,u=u(o,a),u=u==null?a:x({},a,u),n.memoizedState=u,n.lanes===0&&(n.updateQueue.baseState=u)}var Ih={isMounted:function(n){return(n=n._reactInternals)?re(n)===n:!1},enqueueSetState:function(n,a,u){n=n._reactInternals;var o=ar(),f=$a(o);f.payload=a,u!=null&&(f.callback=u),a=qa(n,f,o),a!==null&&(Dn(a,n,o),Mo(a,n,o))},enqueueReplaceState:function(n,a,u){n=n._reactInternals;var o=ar(),f=$a(o);f.tag=1,f.payload=a,u!=null&&(f.callback=u),a=qa(n,f,o),a!==null&&(Dn(a,n,o),Mo(a,n,o))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var u=ar(),o=$a(u);o.tag=2,a!=null&&(o.callback=a),a=qa(n,o,u),a!==null&&(Dn(a,n,u),Mo(a,n,u))}};function tS(n,a,u,o,f,h,T){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(o,h,T):a.prototype&&a.prototype.isPureReactComponent?!yo(u,o)||!yo(f,h):!0}function nS(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&&Ih.enqueueReplaceState(a,a.state,null)}function Li(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=x({},u));for(var f in n)u[f]===void 0&&(u[f]=n[f])}return u}var jc=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 rS(n){jc(n)}function aS(n){console.error(n)}function iS(n){jc(n)}function Vc(n,a){try{var u=n.onUncaughtError;u(a.value,{componentStack:a.stack})}catch(o){setTimeout(function(){throw o})}}function uS(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 wh(n,a,u){return u=$a(u),u.tag=3,u.payload={element:null},u.callback=function(){Vc(n,a)},u}function lS(n){return n=$a(n),n.tag=3,n}function oS(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(){uS(a,u,o)}}var T=u.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(n.callback=function(){uS(a,u,o),typeof f!="function"&&(Za===null?Za=new Set([this]):Za.add(this));var R=o.stack;this.componentDidCatch(o.value,{componentStack:R!==null?R:""})})}function Fw(n,a,u,o,f){if(u.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(a=u.alternate,a!==null&&wo(a,u,f,!0),u=xr.current,u!==null){switch(u.tag){case 13:return Wr===null?mp():u.alternate===null&&Gt===0&&(Gt=3),u.flags&=-257,u.flags|=65536,u.lanes=f,o===ch?u.flags|=16384:(a=u.updateQueue,a===null?u.updateQueue=new Set([o]):a.add(o),bp(n,o,f)),!1;case 22:return u.flags|=65536,o===ch?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)),bp(n,o,f)),!1}throw Error(i(435,u.tag))}return bp(n,o,f),mp(),!1}if(gt)return a=xr.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=f,o!==sh&&(n=Error(i(422),{cause:o}),Ao(Sr(n,u)))):(o!==sh&&(a=Error(i(423),{cause:o}),Ao(Sr(a,u))),n=n.current.alternate,n.flags|=65536,f&=-f,n.lanes|=f,o=Sr(o,u),f=wh(n.stateNode,o,f),Qh(n,f),Gt!==4&&(Gt=2)),!1;var h=Error(i(520),{cause:o});if(h=Sr(h,u),jo===null?jo=[h]:jo.push(h),Gt!==4&&(Gt=2),a===null)return!0;o=Sr(o,u),u=a;do{switch(u.tag){case 3:return u.flags|=65536,n=f&-f,u.lanes|=n,n=wh(u.stateNode,o,n),Qh(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"&&(Za===null||!Za.has(h))))return u.flags|=65536,f&=-f,u.lanes|=f,f=lS(f),oS(f,n,u,o),Qh(u,f),!1}u=u.return}while(u!==null);return!1}var sS=Error(i(461)),pn=!1;function yn(n,a,u,o){a.child=n===null?pT(a,null,u,o):Ri(a,n.child,u,o)}function cS(n,a,u,o,f){u=u.render;var h=a.ref;if("ref"in o){var T={};for(var R in o)R!=="ref"&&(T[R]=o[R])}else T=o;return wi(a),o=bh(n,a,u,T,h,f),R=Eh(),n!==null&&!pn?(yh(n,a,f),ha(n,a,f)):(gt&&R&&lh(a),a.flags|=1,yn(n,a,o,f),a.child)}function fS(n,a,u,o,f){if(n===null){var h=u.type;return typeof h=="function"&&!rp(h)&&h.defaultProps===void 0&&u.compare===null?(a.tag=15,a.type=h,dS(n,a,h,o,f)):(n=Qc(u.type,null,o,a,a.mode,f),n.ref=a.ref,n.return=a,a.child=n)}if(h=n.child,!jh(n,f)){var T=h.memoizedProps;if(u=u.compare,u=u!==null?u:yo,u(T,o)&&n.ref===a.ref)return ha(n,a,f)}return a.flags|=1,n=Ka(h,o),n.ref=a.ref,n.return=a,a.child=n}function dS(n,a,u,o,f){if(n!==null){var h=n.memoizedProps;if(yo(h,o)&&n.ref===a.ref)if(pn=!1,a.pendingProps=o=h,jh(n,f))(n.flags&131072)!==0&&(pn=!0);else return a.lanes=n.lanes,ha(n,a,f)}return Mh(n,a,u,o,f)}function hS(n,a,u){var o=a.pendingProps,f=o.children,h=(a.stateNode._pendingVisibility&2)!==0,T=n!==null?n.memoizedState:null;if(Io(n,a),o.mode==="hidden"||h){if((a.flags&128)!==0){if(o=T!==null?T.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 pS(n,a,o,u)}if((u&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&wc(a,T!==null?T.cachePool:null),T!==null?mT(a,T):fh(),gT(a);else return a.lanes=a.childLanes=536870912,pS(n,a,T!==null?T.baseLanes|u:u,u)}else T!==null?(wc(a,T.cachePool),mT(a,T),Fa(),a.memoizedState=null):(n!==null&&wc(a,null),fh(),Fa());return yn(n,a,f,u),a.child}function pS(n,a,u,o){var f=mh();return f=f===null?null:{parent:cn._currentValue,pool:f},a.memoizedState={baseLanes:u,cachePool:f},n!==null&&wc(a,null),fh(),gT(a),n!==null&&wo(n,a,o,!0),null}function Io(n,a){var u=a.ref;if(u===null)n!==null&&n.ref!==null&&(a.flags|=2097664);else{if(typeof u!="function"&&typeof u!="object")throw Error(i(284));(n===null||n.ref!==u)&&(a.flags|=2097664)}}function Mh(n,a,u,o,f){return wi(a),u=bh(n,a,u,o,void 0,f),o=Eh(),n!==null&&!pn?(yh(n,a,f),ha(n,a,f)):(gt&&o&&lh(a),a.flags|=1,yn(n,a,u,f),a.child)}function mS(n,a,u,o,f,h){return wi(a),a.updateQueue=null,u=ST(a,o,u,f),TT(n),o=Eh(),n!==null&&!pn?(yh(n,a,h),ha(n,a,h)):(gt&&o&&lh(a),a.flags|=1,yn(n,a,u,h),a.child)}function gS(n,a,u,o,f){if(wi(a),a.stateNode===null){var h=Ou,T=u.contextType;typeof T=="object"&&T!==null&&(h=On(T)),h=new u(o,h),a.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Ih,a.stateNode=h,h._reactInternals=a,h=a.stateNode,h.props=o,h.state=a.memoizedState,h.refs={},Gh(a),T=u.contextType,h.context=typeof T=="object"&&T!==null?On(T):Ou,h.state=a.memoizedState,T=u.getDerivedStateFromProps,typeof T=="function"&&(Lh(a,u,T,o),h.state=a.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(T=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),T!==h.state&&Ih.enqueueReplaceState(h,h.state,null),Po(a,o,h,f),Bo(),h.state=a.memoizedState),typeof h.componentDidMount=="function"&&(a.flags|=4194308),o=!0}else if(n===null){h=a.stateNode;var R=a.memoizedProps,B=Li(u,R);h.props=B;var z=h.context,oe=u.contextType;T=Ou,typeof oe=="object"&&oe!==null&&(T=On(oe));var de=u.getDerivedStateFromProps;oe=typeof de=="function"||typeof h.getSnapshotBeforeUpdate=="function",R=a.pendingProps!==R,oe||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(R||z!==T)&&nS(a,h,o,T),Va=!1;var Z=a.memoizedState;h.state=Z,Po(a,o,h,f),Bo(),z=a.memoizedState,R||Z!==z||Va?(typeof de=="function"&&(Lh(a,u,de,o),z=a.memoizedState),(B=Va||tS(a,u,B,o,Z,z,T))?(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=z),h.props=o,h.state=z,h.context=T,o=B):(typeof h.componentDidMount=="function"&&(a.flags|=4194308),o=!1)}else{h=a.stateNode,Xh(n,a),T=a.memoizedProps,oe=Li(u,T),h.props=oe,de=a.pendingProps,Z=h.context,z=u.contextType,B=Ou,typeof z=="object"&&z!==null&&(B=On(z)),R=u.getDerivedStateFromProps,(z=typeof R=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(T!==de||Z!==B)&&nS(a,h,o,B),Va=!1,Z=a.memoizedState,h.state=Z,Po(a,o,h,f),Bo();var le=a.memoizedState;T!==de||Z!==le||Va||n!==null&&n.dependencies!==null&&$c(n.dependencies)?(typeof R=="function"&&(Lh(a,u,R,o),le=a.memoizedState),(oe=Va||tS(a,u,oe,o,Z,le,B)||n!==null&&n.dependencies!==null&&$c(n.dependencies))?(z||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(o,le,B),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(o,le,B)),typeof h.componentDidUpdate=="function"&&(a.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof h.componentDidUpdate!="function"||T===n.memoizedProps&&Z===n.memoizedState||(a.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&Z===n.memoizedState||(a.flags|=1024),a.memoizedProps=o,a.memoizedState=le),h.props=o,h.state=le,h.context=B,o=oe):(typeof h.componentDidUpdate!="function"||T===n.memoizedProps&&Z===n.memoizedState||(a.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&Z===n.memoizedState||(a.flags|=1024),o=!1)}return h=o,Io(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=Ri(a,n.child,null,f),a.child=Ri(a,null,u,f)):yn(n,a,u,f),a.memoizedState=h.state,n=a.child):n=ha(n,a,f),n}function bS(n,a,u,o){return Co(),a.flags|=256,yn(n,a,u,o),a.child}var Bh={dehydrated:null,treeContext:null,retryLane:0};function Ph(n){return{baseLanes:n,cachePool:yT()}}function Uh(n,a,u){return n=n!==null?n.childLanes&~u:0,a&&(n|=Or),n}function ES(n,a,u){var o=a.pendingProps,f=!1,h=(a.flags&128)!==0,T;if((T=h)||(T=n!==null&&n.memoizedState===null?!1:(sn.current&2)!==0),T&&(f=!0,a.flags&=-129),T=(a.flags&32)!==0,a.flags&=-33,n===null){if(gt){if(f?Ha(a):Fa(),gt){var R=En,B;if(B=R){e:{for(B=R,R=Kr;B.nodeType!==8;){if(!R){R=null;break e}if(B=wr(B.nextSibling),B===null){R=null;break e}}R=B}R!==null?(a.memoizedState={dehydrated:R,treeContext:xi!==null?{id:sa,overflow:ca}:null,retryLane:536870912},B=Rr(18,null,null,0),B.stateNode=R,B.return=a,a.child=B,kn=a,En=null,B=!0):B=!1}B||vi(a)}if(R=a.memoizedState,R!==null&&(R=R.dehydrated,R!==null))return R.data==="$!"?a.lanes=16:a.lanes=536870912,null;fa(a)}return R=o.children,o=o.fallback,f?(Fa(),f=a.mode,R=Fh({mode:"hidden",children:R},f),o=Bi(o,f,u,null),R.return=a,o.return=a,R.sibling=o,a.child=R,f=a.child,f.memoizedState=Ph(u),f.childLanes=Uh(n,T,u),a.memoizedState=Bh,o):(Ha(a),Hh(a,R))}if(B=n.memoizedState,B!==null&&(R=B.dehydrated,R!==null)){if(h)a.flags&256?(Ha(a),a.flags&=-257,a=zh(n,a,u)):a.memoizedState!==null?(Fa(),a.child=n.child,a.flags|=128,a=null):(Fa(),f=o.fallback,R=a.mode,o=Fh({mode:"visible",children:o.children},R),f=Bi(f,R,u,null),f.flags|=2,o.return=a,f.return=a,o.sibling=f,a.child=o,Ri(a,n.child,null,u),o=a.child,o.memoizedState=Ph(u),o.childLanes=Uh(n,T,u),a.memoizedState=Bh,a=f);else if(Ha(a),R.data==="$!"){if(T=R.nextSibling&&R.nextSibling.dataset,T)var z=T.dgst;T=z,o=Error(i(419)),o.stack="",o.digest=T,Ao({value:o,source:null,stack:null}),a=zh(n,a,u)}else if(pn||wo(n,a,u,!1),T=(u&n.childLanes)!==0,pn||T){if(T=wt,T!==null){if(o=u&-u,(o&42)!==0)o=1;else switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:o=64;break;case 268435456:o=134217728;break;default:o=0}if(o=(o&(T.suspendedLanes|u))!==0?0:o,o!==0&&o!==B.retryLane)throw B.retryLane=o,Ua(n,o),Dn(T,n,o),sS}R.data==="$?"||mp(),a=zh(n,a,u)}else R.data==="$?"?(a.flags|=128,a.child=n.child,a=tM.bind(null,n),R._reactRetry=a,a=null):(n=B.treeContext,En=wr(R.nextSibling),kn=a,gt=!0,Lr=null,Kr=!1,n!==null&&(Cr[Ar++]=sa,Cr[Ar++]=ca,Cr[Ar++]=xi,sa=n.id,ca=n.overflow,xi=a),a=Hh(a,o.children),a.flags|=4096);return a}return f?(Fa(),f=o.fallback,R=a.mode,B=n.child,z=B.sibling,o=Ka(B,{mode:"hidden",children:o.children}),o.subtreeFlags=B.subtreeFlags&31457280,z!==null?f=Ka(z,f):(f=Bi(f,R,u,null),f.flags|=2),f.return=a,o.return=a,o.sibling=f,a.child=o,o=f,f=a.child,R=n.child.memoizedState,R===null?R=Ph(u):(B=R.cachePool,B!==null?(z=cn._currentValue,B=B.parent!==z?{parent:z,pool:z}:B):B=yT(),R={baseLanes:R.baseLanes|u,cachePool:B}),f.memoizedState=R,f.childLanes=Uh(n,T,u),a.memoizedState=Bh,o):(Ha(a),u=n.child,n=u.sibling,u=Ka(u,{mode:"visible",children:o.children}),u.return=a,u.sibling=null,n!==null&&(T=a.deletions,T===null?(a.deletions=[n],a.flags|=16):T.push(n)),a.child=u,a.memoizedState=null,u)}function Hh(n,a){return a=Fh({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function Fh(n,a){return VS(n,a,0,null)}function zh(n,a,u){return Ri(a,n.child,null,u),n=Hh(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function yS(n,a,u){n.lanes|=a;var o=n.alternate;o!==null&&(o.lanes|=a),$h(n.return,a,u)}function Yh(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 TS(n,a,u){var o=a.pendingProps,f=o.revealOrder,h=o.tail;if(yn(n,a,o.children,u),o=sn.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&&yS(n,u,a);else if(n.tag===19)yS(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(xe(sn,o),f){case"forwards":for(u=a.child,f=null;u!==null;)n=u.alternate,n!==null&&Ic(n)===null&&(f=u),u=u.sibling;u=f,u===null?(f=a.child,a.child=null):(f=u.sibling,u.sibling=null),Yh(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&&Ic(n)===null){a.child=f;break}n=f.sibling,f.sibling=u,u=f,f=n}Yh(a,!0,u,null,h);break;case"together":Yh(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function ha(n,a,u){if(n!==null&&(a.dependencies=n.dependencies),Wa|=a.lanes,(u&a.childLanes)===0)if(n!==null){if(wo(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=Ka(n,n.pendingProps),a.child=u,u.return=a;n.sibling!==null;)n=n.sibling,u=u.sibling=Ka(n,n.pendingProps),u.return=a;u.sibling=null}return a.child}function jh(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&$c(n)))}function zw(n,a,u){switch(a.tag){case 3:Be(a,a.stateNode.containerInfo),ja(a,cn,n.memoizedState.cache),Co();break;case 27:case 5:je(a);break;case 4:Be(a,a.stateNode.containerInfo);break;case 10:ja(a,a.type,a.memoizedProps.value);break;case 13:var o=a.memoizedState;if(o!==null)return o.dehydrated!==null?(Ha(a),a.flags|=128,null):(u&a.child.childLanes)!==0?ES(n,a,u):(Ha(a),n=ha(n,a,u),n!==null?n.sibling:null);Ha(a);break;case 19:var f=(n.flags&128)!==0;if(o=(u&a.childLanes)!==0,o||(wo(n,a,u,!1),o=(u&a.childLanes)!==0),f){if(o)return TS(n,a,u);a.flags|=128}if(f=a.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),xe(sn,sn.current),o)break;return null;case 22:case 23:return a.lanes=0,hS(n,a,u);case 24:ja(a,cn,n.memoizedState.cache)}return ha(n,a,u)}function SS(n,a,u){if(n!==null)if(n.memoizedProps!==a.pendingProps)pn=!0;else{if(!jh(n,u)&&(a.flags&128)===0)return pn=!1,zw(n,a,u);pn=(n.flags&131072)!==0}else pn=!1,gt&&(a.flags&1048576)!==0&&iT(a,Oc,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")rp(o)?(n=Li(o,n),a.tag=1,a=gS(null,a,o,n,u)):(a.tag=0,a=Mh(null,a,o,n,u));else{if(o!=null){if(f=o.$$typeof,f===N){a.tag=11,a=cS(null,a,o,n,u);break e}else if(f===v){a.tag=14,a=fS(null,a,o,n,u);break e}}throw a=ie(o)||o,Error(i(306,a,""))}}return a;case 0:return Mh(n,a,a.type,a.pendingProps,u);case 1:return o=a.type,f=Li(o,a.pendingProps),gS(n,a,o,f,u);case 3:e:{if(Be(a,a.stateNode.containerInfo),n===null)throw Error(i(387));var h=a.pendingProps;f=a.memoizedState,o=f.element,Xh(n,a),Po(a,h,null,u);var T=a.memoizedState;if(h=T.cache,ja(a,cn,h),h!==f.cache&&qh(a,[cn],u,!0),Bo(),h=T.element,f.isDehydrated)if(f={element:h,isDehydrated:!1,cache:T.cache},a.updateQueue.baseState=f,a.memoizedState=f,a.flags&256){a=bS(n,a,h,u);break e}else if(h!==o){o=Sr(Error(i(424)),a),Ao(o),a=bS(n,a,h,u);break e}else for(En=wr(a.stateNode.containerInfo.firstChild),kn=a,gt=!0,Lr=null,Kr=!0,u=pT(a,null,h,u),a.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(Co(),h===o){a=ha(n,a,u);break e}yn(n,a,h,u)}a=a.child}return a;case 26:return Io(n,a),n===null?(u=x3(a.type,null,a.pendingProps,null))?a.memoizedState=u:gt||(u=a.type,n=a.pendingProps,o=of(Oe.current).createElement(u),o[Rn]=a,o[jn]=n,Tn(o,u,n),hn(o),a.stateNode=o):a.memoizedState=x3(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return je(a),n===null&>&&(o=a.stateNode=S3(a.type,a.pendingProps,Oe.current),kn=a,Kr=!0,En=wr(o.firstChild)),o=a.pendingProps.children,n!==null||gt?yn(n,a,o,u):a.child=Ri(a,null,o,u),Io(n,a),a.child;case 5:return n===null&>&&((f=o=En)&&(o=bM(o,a.type,a.pendingProps,Kr),o!==null?(a.stateNode=o,kn=a,En=wr(o.firstChild),Kr=!1,f=!0):f=!1),f||vi(a)),je(a),f=a.type,h=a.pendingProps,T=n!==null?n.memoizedProps:null,o=h.children,Np(f,h)?o=null:T!==null&&Np(f,T)&&(a.flags|=32),a.memoizedState!==null&&(f=bh(n,a,ww,null,null,u),Zo._currentValue=f),Io(n,a),yn(n,a,o,u),a.child;case 6:return n===null&>&&((n=u=En)&&(u=EM(u,a.pendingProps,Kr),u!==null?(a.stateNode=u,kn=a,En=null,n=!0):n=!1),n||vi(a)),null;case 13:return ES(n,a,u);case 4:return Be(a,a.stateNode.containerInfo),o=a.pendingProps,n===null?a.child=Ri(a,null,o,u):yn(n,a,o,u),a.child;case 11:return cS(n,a,a.type,a.pendingProps,u);case 7:return yn(n,a,a.pendingProps,u),a.child;case 8:return yn(n,a,a.pendingProps.children,u),a.child;case 12:return yn(n,a,a.pendingProps.children,u),a.child;case 10:return o=a.pendingProps,ja(a,a.type,o.value),yn(n,a,o.children,u),a.child;case 9:return f=a.type._context,o=a.pendingProps.children,wi(a),f=On(f),o=o(f),a.flags|=1,yn(n,a,o,u),a.child;case 14:return fS(n,a,a.type,a.pendingProps,u);case 15:return dS(n,a,a.type,a.pendingProps,u);case 19:return TS(n,a,u);case 22:return hS(n,a,u);case 24:return wi(a),o=On(cn),n===null?(f=mh(),f===null&&(f=wt,h=hh(),f.pooledCache=h,h.refCount++,h!==null&&(f.pooledCacheLanes|=u),f=h),a.memoizedState={parent:o,cache:f},Gh(a),ja(a,cn,f)):((n.lanes&u)!==0&&(Xh(n,a),Po(a,null,null,u),Bo()),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),ja(a,cn,o)):(o=h.cache,ja(a,cn,o),o!==f.cache&&qh(a,[cn],u,!0))),yn(n,a,a.pendingProps.children,u),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}var Vh=Me(null),Ii=null,pa=null;function ja(n,a,u){xe(Vh,a._currentValue),a._currentValue=u}function ma(n){n._currentValue=Vh.current,$e(Vh)}function $h(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 qh(n,a,u,o){var f=n.child;for(f!==null&&(f.return=n);f!==null;){var h=f.dependencies;if(h!==null){var T=f.child;h=h.firstContext;e:for(;h!==null;){var R=h;h=f;for(var B=0;B<a.length;B++)if(R.context===a[B]){h.lanes|=u,R=h.alternate,R!==null&&(R.lanes|=u),$h(h.return,u,n),o||(T=null);break e}h=R.next}}else if(f.tag===18){if(T=f.return,T===null)throw Error(i(341));T.lanes|=u,h=T.alternate,h!==null&&(h.lanes|=u),$h(T,u,n),T=null}else T=f.child;if(T!==null)T.return=f;else for(T=f;T!==null;){if(T===n){T=null;break}if(f=T.sibling,f!==null){f.return=T.return,T=f;break}T=T.return}f=T}}function wo(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 T=f.alternate;if(T===null)throw Error(i(387));if(T=T.memoizedProps,T!==null){var R=f.type;er(f.pendingProps.value,T.value)||(n!==null?n.push(R):n=[R])}}else if(f===Ce.current){if(T=f.alternate,T===null)throw Error(i(387));T.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(n!==null?n.push(Zo):n=[Zo])}f=f.return}n!==null&&qh(a,n,u,o),a.flags|=262144}function $c(n){for(n=n.firstContext;n!==null;){if(!er(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function wi(n){Ii=n,pa=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function On(n){return CS(Ii,n)}function qc(n,a){return Ii===null&&wi(n),CS(n,a)}function CS(n,a){var u=a._currentValue;if(a={context:a,memoizedValue:u,next:null},pa===null){if(n===null)throw Error(i(308));pa=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else pa=pa.next=a;return u}var Va=!1;function Gh(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xh(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 $a(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function qa(n,a,u){var o=n.updateQueue;if(o===null)return null;if(o=o.shared,(Yt&2)!==0){var f=o.pending;return f===null?a.next=a:(a.next=f.next,f.next=a),o.pending=a,a=vc(n),rT(n,null,u),a}return _c(n,o,a,u),vc(n)}function Mo(n,a,u){if(a=a.updateQueue,a!==null&&(a=a.shared,(u&4194176)!==0)){var o=a.lanes;o&=n.pendingLanes,u|=o,a.lanes=u,fy(n,u)}}function Qh(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 T={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};h===null?f=h=T:h=h.next=T,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 Kh=!1;function Bo(){if(Kh){var n=wu;if(n!==null)throw n}}function Po(n,a,u,o){Kh=!1;var f=n.updateQueue;Va=!1;var h=f.firstBaseUpdate,T=f.lastBaseUpdate,R=f.shared.pending;if(R!==null){f.shared.pending=null;var B=R,z=B.next;B.next=null,T===null?h=z:T.next=z,T=B;var oe=n.alternate;oe!==null&&(oe=oe.updateQueue,R=oe.lastBaseUpdate,R!==T&&(R===null?oe.firstBaseUpdate=z:R.next=z,oe.lastBaseUpdate=B))}if(h!==null){var de=f.baseState;T=0,oe=z=B=null,R=h;do{var Z=R.lane&-536870913,le=Z!==R.lane;if(le?(ht&Z)===Z:(o&Z)===Z){Z!==0&&Z===Iu&&(Kh=!0),oe!==null&&(oe=oe.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var Le=n,qe=R;Z=a;var Xt=u;switch(qe.tag){case 1:if(Le=qe.payload,typeof Le=="function"){de=Le.call(Xt,de,Z);break e}de=Le;break e;case 3:Le.flags=Le.flags&-65537|128;case 0:if(Le=qe.payload,Z=typeof Le=="function"?Le.call(Xt,de,Z):Le,Z==null)break e;de=x({},de,Z);break e;case 2:Va=!0}}Z=R.callback,Z!==null&&(n.flags|=64,le&&(n.flags|=8192),le=f.callbacks,le===null?f.callbacks=[Z]:le.push(Z))}else le={lane:Z,tag:R.tag,payload:R.payload,callback:R.callback,next:null},oe===null?(z=oe=le,B=de):oe=oe.next=le,T|=Z;if(R=R.next,R===null){if(R=f.shared.pending,R===null)break;le=R,R=le.next,le.next=null,f.lastBaseUpdate=le,f.shared.pending=null}}while(!0);oe===null&&(B=de),f.baseState=B,f.firstBaseUpdate=z,f.lastBaseUpdate=oe,h===null&&(f.shared.lanes=0),Wa|=T,n.lanes=T,n.memoizedState=de}}function AS(n,a){if(typeof n!="function")throw Error(i(191,n));n.call(a)}function xS(n,a){var u=n.callbacks;if(u!==null)for(n.callbacks=null,n=0;n<u.length;n++)AS(u[n],a)}function Uo(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,T=u.inst;o=h(),T.destroy=o}u=u.next}while(u!==f)}}catch(R){Nt(a,a.return,R)}}function Ga(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 T=o.inst,R=T.destroy;if(R!==void 0){T.destroy=void 0,f=a;var B=u;try{R()}catch(z){Nt(f,B,z)}}}o=o.next}while(o!==h)}}catch(z){Nt(a,a.return,z)}}function _S(n){var a=n.updateQueue;if(a!==null){var u=n.stateNode;try{xS(a,u)}catch(o){Nt(n,n.return,o)}}}function vS(n,a,u){u.props=Li(n.type,n.memoizedProps),u.state=n.memoizedState;try{u.componentWillUnmount()}catch(o){Nt(n,a,o)}}function Mi(n,a){try{var u=n.ref;if(u!==null){var o=n.stateNode;switch(n.tag){case 26:case 27:case 5:var f=o;break;default:f=o}typeof u=="function"?n.refCleanup=u(f):u.current=f}}catch(h){Nt(n,a,h)}}function tr(n,a){var u=n.ref,o=n.refCleanup;if(u!==null)if(typeof o=="function")try{o()}catch(f){Nt(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){Nt(n,a,f)}else u.current=null}function RS(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){Nt(n,n.return,f)}}function OS(n,a,u){try{var o=n.stateNode;dM(o,n.type,u,a),o[jn]=a}catch(f){Nt(n,n.return,f)}}function NS(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27||n.tag===4}function Wh(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||NS(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==27&&n.tag!==18;){if(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 Zh(n,a,u){var o=n.tag;if(o===5||o===6)n=n.stateNode,a?u.nodeType===8?u.parentNode.insertBefore(n,a):u.insertBefore(n,a):(u.nodeType===8?(a=u.parentNode,a.insertBefore(n,u)):(a=u,a.appendChild(n)),u=u._reactRootContainer,u!=null||a.onclick!==null||(a.onclick=lf));else if(o!==4&&o!==27&&(n=n.child,n!==null))for(Zh(n,a,u),n=n.sibling;n!==null;)Zh(n,a,u),n=n.sibling}function Gc(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&&(n=n.child,n!==null))for(Gc(n,a,u),n=n.sibling;n!==null;)Gc(n,a,u),n=n.sibling}var ga=!1,qt=!1,Jh=!1,kS=typeof WeakSet=="function"?WeakSet:Set,mn=null,DS=!1;function Yw(n,a){if(n=n.containerInfo,Rp=pf,n=Xy(n),th(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 T=0,R=-1,B=-1,z=0,oe=0,de=n,Z=null;t:for(;;){for(var le;de!==u||f!==0&&de.nodeType!==3||(R=T+f),de!==h||o!==0&&de.nodeType!==3||(B=T+o),de.nodeType===3&&(T+=de.nodeValue.length),(le=de.firstChild)!==null;)Z=de,de=le;for(;;){if(de===n)break t;if(Z===u&&++z===f&&(R=T),Z===h&&++oe===o&&(B=T),(le=de.nextSibling)!==null)break;de=Z,Z=de.parentNode}de=le}u=R===-1||B===-1?null:{start:R,end:B}}else u=null}u=u||{start:0,end:0}}else u=null;for(Op={focusedElem:n,selectionRange:u},pf=!1,mn=a;mn!==null;)if(a=mn,n=a.child,(a.subtreeFlags&1028)!==0&&n!==null)n.return=a,mn=n;else for(;mn!==null;){switch(a=mn,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 Le=Li(u.type,f,u.elementType===u.type);n=o.getSnapshotBeforeUpdate(Le,h),o.__reactInternalSnapshotBeforeUpdate=n}catch(qe){Nt(u,u.return,qe)}}break;case 3:if((n&1024)!==0){if(n=a.stateNode.containerInfo,u=n.nodeType,u===9)Lp(n);else if(u===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Lp(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,mn=n;break}mn=a.return}return Le=DS,DS=!1,Le}function LS(n,a,u){var o=u.flags;switch(u.tag){case 0:case 11:case 15:Ea(n,u),o&4&&Uo(5,u);break;case 1:if(Ea(n,u),o&4)if(n=u.stateNode,a===null)try{n.componentDidMount()}catch(R){Nt(u,u.return,R)}else{var f=Li(u.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(f,a,n.__reactInternalSnapshotBeforeUpdate)}catch(R){Nt(u,u.return,R)}}o&64&&_S(u),o&512&&Mi(u,u.return);break;case 3:if(Ea(n,u),o&64&&(o=u.updateQueue,o!==null)){if(n=null,u.child!==null)switch(u.child.tag){case 27:case 5:n=u.child.stateNode;break;case 1:n=u.child.stateNode}try{xS(o,n)}catch(R){Nt(u,u.return,R)}}break;case 26:Ea(n,u),o&512&&Mi(u,u.return);break;case 27:case 5:Ea(n,u),a===null&&o&4&&RS(u),o&512&&Mi(u,u.return);break;case 12:Ea(n,u);break;case 13:Ea(n,u),o&4&&MS(n,u);break;case 22:if(f=u.memoizedState!==null||ga,!f){a=a!==null&&a.memoizedState!==null||qt;var h=ga,T=qt;ga=f,(qt=a)&&!T?Xa(n,u,(u.subtreeFlags&8772)!==0):Ea(n,u),ga=h,qt=T}o&512&&(u.memoizedProps.mode==="manual"?Mi(u,u.return):tr(u,u.return));break;default:Ea(n,u)}}function IS(n){var a=n.alternate;a!==null&&(n.alternate=null,IS(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&H0(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 on=null,nr=!1;function ba(n,a,u){for(u=u.child;u!==null;)wS(n,a,u),u=u.sibling}function wS(n,a,u){if(Ft&&typeof Ft.onCommitFiberUnmount=="function")try{Ft.onCommitFiberUnmount(an,u)}catch{}switch(u.tag){case 26:qt||tr(u,a),ba(n,a,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:qt||tr(u,a);var o=on,f=nr;for(on=u.stateNode,ba(n,a,u),u=u.stateNode,a=u.attributes;a.length;)u.removeAttributeNode(a[0]);H0(u),on=o,nr=f;break;case 5:qt||tr(u,a);case 6:f=on;var h=nr;if(on=null,ba(n,a,u),on=f,nr=h,on!==null)if(nr)try{n=on,o=u.stateNode,n.nodeType===8?n.parentNode.removeChild(o):n.removeChild(o)}catch(T){Nt(u,a,T)}else try{on.removeChild(u.stateNode)}catch(T){Nt(u,a,T)}break;case 18:on!==null&&(nr?(a=on,u=u.stateNode,a.nodeType===8?Dp(a.parentNode,u):a.nodeType===1&&Dp(a,u),ns(a)):Dp(on,u.stateNode));break;case 4:o=on,f=nr,on=u.stateNode.containerInfo,nr=!0,ba(n,a,u),on=o,nr=f;break;case 0:case 11:case 14:case 15:qt||Ga(2,u,a),qt||Ga(4,u,a),ba(n,a,u);break;case 1:qt||(tr(u,a),o=u.stateNode,typeof o.componentWillUnmount=="function"&&vS(u,a,o)),ba(n,a,u);break;case 21:ba(n,a,u);break;case 22:qt||tr(u,a),qt=(o=qt)||u.memoizedState!==null,ba(n,a,u),qt=o;break;default:ba(n,a,u)}}function MS(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{ns(n)}catch(u){Nt(a,a.return,u)}}function jw(n){switch(n.tag){case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new kS),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new kS),a;default:throw Error(i(435,n.tag))}}function ep(n,a){var u=jw(n);a.forEach(function(o){var f=nM.bind(null,n,o);u.has(o)||(u.add(o),o.then(f,f))})}function _r(n,a){var u=a.deletions;if(u!==null)for(var o=0;o<u.length;o++){var f=u[o],h=n,T=a,R=T;e:for(;R!==null;){switch(R.tag){case 27:case 5:on=R.stateNode,nr=!1;break e;case 3:on=R.stateNode.containerInfo,nr=!0;break e;case 4:on=R.stateNode.containerInfo,nr=!0;break e}R=R.return}if(on===null)throw Error(i(160));wS(h,T,f),on=null,nr=!1,h=f.alternate,h!==null&&(h.return=null),f.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)BS(a,n),a=a.sibling}var Ir=null;function BS(n,a){var u=n.alternate,o=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:_r(a,n),vr(n),o&4&&(Ga(3,n,n.return),Uo(3,n),Ga(5,n,n.return));break;case 1:_r(a,n),vr(n),o&512&&(qt||u===null||tr(u,u.return)),o&64&&ga&&(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=Ir;if(_r(a,n),vr(n),o&512&&(qt||u===null||tr(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[so]||h[Rn]||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[Rn]=n,hn(h),o=h;break e;case"link":var T=R3("link","href",f).get(o+(u.href||""));if(T){for(var R=0;R<T.length;R++)if(h=T[R],h.getAttribute("href")===(u.href==null?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)){T.splice(R,1);break t}}h=f.createElement(o),Tn(h,o,u),f.head.appendChild(h);break;case"meta":if(T=R3("meta","content",f).get(o+(u.content||""))){for(R=0;R<T.length;R++)if(h=T[R],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)){T.splice(R,1);break t}}h=f.createElement(o),Tn(h,o,u),f.head.appendChild(h);break;default:throw Error(i(468,o))}h[Rn]=n,hn(h),o=h}n.stateNode=o}else O3(f,n.type,n.stateNode);else n.stateNode=v3(f,o,n.memoizedProps);else h!==o?(h===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):h.count--,o===null?O3(f,n.type,n.stateNode):v3(f,o,n.memoizedProps)):o===null&&n.stateNode!==null&&OS(n,n.memoizedProps,u.memoizedProps)}break;case 27:if(o&4&&n.alternate===null){f=n.stateNode,h=n.memoizedProps;try{for(var B=f.firstChild;B;){var z=B.nextSibling,oe=B.nodeName;B[so]||oe==="HEAD"||oe==="BODY"||oe==="SCRIPT"||oe==="STYLE"||oe==="LINK"&&B.rel.toLowerCase()==="stylesheet"||f.removeChild(B),B=z}for(var de=n.type,Z=f.attributes;Z.length;)f.removeAttributeNode(Z[0]);Tn(f,de,h),f[Rn]=n,f[jn]=h}catch(Le){Nt(n,n.return,Le)}}case 5:if(_r(a,n),vr(n),o&512&&(qt||u===null||tr(u,u.return)),n.flags&32){f=n.stateNode;try{Su(f,"")}catch(Le){Nt(n,n.return,Le)}}o&4&&n.stateNode!=null&&(f=n.memoizedProps,OS(n,f,u!==null?u.memoizedProps:f)),o&1024&&(Jh=!0);break;case 6:if(_r(a,n),vr(n),o&4){if(n.stateNode===null)throw Error(i(162));o=n.memoizedProps,u=n.stateNode;try{u.nodeValue=o}catch(Le){Nt(n,n.return,Le)}}break;case 3:if(ff=null,f=Ir,Ir=sf(a.containerInfo),_r(a,n),Ir=f,vr(n),o&4&&u!==null&&u.memoizedState.isDehydrated)try{ns(a.containerInfo)}catch(Le){Nt(n,n.return,Le)}Jh&&(Jh=!1,PS(n));break;case 4:o=Ir,Ir=sf(n.stateNode.containerInfo),_r(a,n),vr(n),Ir=o;break;case 12:_r(a,n),vr(n);break;case 13:_r(a,n),vr(n),n.child.flags&8192&&n.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(sp=Xe()),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,ep(n,o)));break;case 22:if(o&512&&(qt||u===null||tr(u,u.return)),B=n.memoizedState!==null,z=u!==null&&u.memoizedState!==null,oe=ga,de=qt,ga=oe||B,qt=de||z,_r(a,n),qt=de,ga=oe,vr(n),a=n.stateNode,a._current=n,a._visibility&=-3,a._visibility|=a._pendingVisibility&2,o&8192&&(a._visibility=B?a._visibility&-2:a._visibility|1,B&&(a=ga||qt,u===null||z||a||Uu(n)),n.memoizedProps===null||n.memoizedProps.mode!=="manual"))e:for(u=null,a=n;;){if(a.tag===5||a.tag===26||a.tag===27){if(u===null){z=u=a;try{if(f=z.stateNode,B)h=f.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{T=z.stateNode,R=z.memoizedProps.style;var le=R!=null&&R.hasOwnProperty("display")?R.display:null;T.style.display=le==null||typeof le=="boolean"?"":(""+le).trim()}}catch(Le){Nt(z,z.return,Le)}}}else if(a.tag===6){if(u===null){z=a;try{z.stateNode.nodeValue=B?"":z.memoizedProps}catch(Le){Nt(z,z.return,Le)}}}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,ep(n,u))));break;case 19:_r(a,n),vr(n),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,ep(n,o)));break;case 21:break;default:_r(a,n),vr(n)}}function vr(n){var a=n.flags;if(a&2){try{if(n.tag!==27){e:{for(var u=n.return;u!==null;){if(NS(u)){var o=u;break e}u=u.return}throw Error(i(160))}switch(o.tag){case 27:var f=o.stateNode,h=Wh(n);Gc(n,h,f);break;case 5:var T=o.stateNode;o.flags&32&&(Su(T,""),o.flags&=-33);var R=Wh(n);Gc(n,R,T);break;case 3:case 4:var B=o.stateNode.containerInfo,z=Wh(n);Zh(n,z,B);break;default:throw Error(i(161))}}}catch(oe){Nt(n,n.return,oe)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function PS(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;PS(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),n=n.sibling}}function Ea(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)LS(n,a.alternate,a),a=a.sibling}function Uu(n){for(n=n.child;n!==null;){var a=n;switch(a.tag){case 0:case 11:case 14:case 15:Ga(4,a,a.return),Uu(a);break;case 1:tr(a,a.return);var u=a.stateNode;typeof u.componentWillUnmount=="function"&&vS(a,a.return,u),Uu(a);break;case 26:case 27:case 5:tr(a,a.return),Uu(a);break;case 22:tr(a,a.return),a.memoizedState===null&&Uu(a);break;default:Uu(a)}n=n.sibling}}function Xa(n,a,u){for(u=u&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var o=a.alternate,f=n,h=a,T=h.flags;switch(h.tag){case 0:case 11:case 15:Xa(f,h,u),Uo(4,h);break;case 1:if(Xa(f,h,u),o=h,f=o.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(z){Nt(o,o.return,z)}if(o=h,f=o.updateQueue,f!==null){var R=o.stateNode;try{var B=f.shared.hiddenCallbacks;if(B!==null)for(f.shared.hiddenCallbacks=null,f=0;f<B.length;f++)AS(B[f],R)}catch(z){Nt(o,o.return,z)}}u&&T&64&&_S(h),Mi(h,h.return);break;case 26:case 27:case 5:Xa(f,h,u),u&&o===null&&T&4&&RS(h),Mi(h,h.return);break;case 12:Xa(f,h,u);break;case 13:Xa(f,h,u),u&&T&4&&MS(f,h);break;case 22:h.memoizedState===null&&Xa(f,h,u),Mi(h,h.return);break;default:Xa(f,h,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&&Oo(u))}function np(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Oo(n))}function Qa(n,a,u,o){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)US(n,a,u,o),a=a.sibling}function US(n,a,u,o){var f=a.flags;switch(a.tag){case 0:case 11:case 15:Qa(n,a,u,o),f&2048&&Uo(9,a);break;case 3:Qa(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&&Oo(n)));break;case 12:if(f&2048){Qa(n,a,u,o),n=a.stateNode;try{var h=a.memoizedProps,T=h.id,R=h.onPostCommit;typeof R=="function"&&R(T,a.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(B){Nt(a,a.return,B)}}else Qa(n,a,u,o);break;case 23:break;case 22:h=a.stateNode,a.memoizedState!==null?h._visibility&4?Qa(n,a,u,o):Ho(n,a):h._visibility&4?Qa(n,a,u,o):(h._visibility|=4,Hu(n,a,u,o,(a.subtreeFlags&10256)!==0)),f&2048&&tp(a.alternate,a);break;case 24:Qa(n,a,u,o),f&2048&&np(a.alternate,a);break;default:Qa(n,a,u,o)}}function Hu(n,a,u,o,f){for(f=f&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var h=n,T=a,R=u,B=o,z=T.flags;switch(T.tag){case 0:case 11:case 15:Hu(h,T,R,B,f),Uo(8,T);break;case 23:break;case 22:var oe=T.stateNode;T.memoizedState!==null?oe._visibility&4?Hu(h,T,R,B,f):Ho(h,T):(oe._visibility|=4,Hu(h,T,R,B,f)),f&&z&2048&&tp(T.alternate,T);break;case 24:Hu(h,T,R,B,f),f&&z&2048&&np(T.alternate,T);break;default:Hu(h,T,R,B,f)}a=a.sibling}}function Ho(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:Ho(u,o),f&2048&&tp(o.alternate,o);break;case 24:Ho(u,o),f&2048&&np(o.alternate,o);break;default:Ho(u,o)}a=a.sibling}}var Fo=8192;function Fu(n){if(n.subtreeFlags&Fo)for(n=n.child;n!==null;)HS(n),n=n.sibling}function HS(n){switch(n.tag){case 26:Fu(n),n.flags&Fo&&n.memoizedState!==null&&DM(Ir,n.memoizedState,n.memoizedProps);break;case 5:Fu(n);break;case 3:case 4:var a=Ir;Ir=sf(n.stateNode.containerInfo),Fu(n),Ir=a;break;case 22:n.memoizedState===null&&(a=n.alternate,a!==null&&a.memoizedState!==null?(a=Fo,Fo=16777216,Fu(n),Fo=a):Fu(n));break;default:Fu(n)}}function FS(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 zo(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];mn=o,YS(o,n)}FS(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)zS(n),n=n.sibling}function zS(n){switch(n.tag){case 0:case 11:case 15:zo(n),n.flags&2048&&Ga(9,n,n.return);break;case 3:zo(n);break;case 12:zo(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&4&&(n.return===null||n.return.tag!==13)?(a._visibility&=-5,Xc(n)):zo(n);break;default:zo(n)}}function Xc(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];mn=o,YS(o,n)}FS(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:Ga(8,a,a.return),Xc(a);break;case 22:u=a.stateNode,u._visibility&4&&(u._visibility&=-5,Xc(a));break;default:Xc(a)}n=n.sibling}}function YS(n,a){for(;mn!==null;){var u=mn;switch(u.tag){case 0:case 11:case 15:Ga(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:Oo(u.memoizedState.cache)}if(o=u.child,o!==null)o.return=u,mn=o;else e:for(u=n;mn!==null;){o=mn;var f=o.sibling,h=o.return;if(IS(o),o===u){mn=null;break e}if(f!==null){f.return=h,mn=f;break e}mn=h}}}function Vw(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 Rr(n,a,u,o){return new Vw(n,a,u,o)}function rp(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Ka(n,a){var u=n.alternate;return u===null?(u=Rr(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&31457280,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 jS(n,a){n.flags&=31457282;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 Qc(n,a,u,o,f,h){var T=0;if(o=n,typeof n=="function")rp(n)&&(T=1);else if(typeof n=="string")T=NM(n,u,Ge.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case p:return Bi(u.children,f,h,a);case m:T=8,f|=24;break;case b:return n=Rr(12,u,a,f|2),n.elementType=b,n.lanes=h,n;case _:return n=Rr(13,u,a,f),n.elementType=_,n.lanes=h,n;case L:return n=Rr(19,u,a,f),n.elementType=L,n.lanes=h,n;case D:return VS(u,f,h,a);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case E:case y:T=10;break e;case S:T=9;break e;case N:T=11;break e;case v:T=14;break e;case H:T=16,o=null;break e}T=29,u=Error(i(130,n===null?"null":typeof n,"")),o=null}return a=Rr(T,u,a,f),a.elementType=n,a.type=o,a.lanes=h,a}function Bi(n,a,u,o){return n=Rr(7,n,o,a),n.lanes=u,n}function VS(n,a,u,o){n=Rr(22,n,o,a),n.elementType=D,n.lanes=u;var f={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var h=f._current;if(h===null)throw Error(i(456));if((f._pendingVisibility&2)===0){var T=Ua(h,2);T!==null&&(f._pendingVisibility|=2,Dn(T,h,2))}},attach:function(){var h=f._current;if(h===null)throw Error(i(456));if((f._pendingVisibility&2)!==0){var T=Ua(h,2);T!==null&&(f._pendingVisibility&=-3,Dn(T,h,2))}}};return n.stateNode=f,n}function ap(n,a,u){return n=Rr(6,n,null,a),n.lanes=u,n}function ip(n,a,u){return a=Rr(4,n.children!==null?n.children:[],n.key,a),a.lanes=u,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}function ya(n){n.flags|=4}function $S(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!N3(a)){if(a=xr.current,a!==null&&((ht&4194176)===ht?Wr!==null:(ht&62914560)!==ht&&(ht&536870912)===0||a!==Wr))throw _o=ch,oT;n.flags|=8192}}function Kc(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?sy():536870912,n.lanes|=a,Yu|=a)}function Yo(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 zt(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&31457280,o|=f.flags&31457280,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 $w(n,a,u){var o=a.pendingProps;switch(oh(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zt(a),null;case 1:return zt(a),null;case 3:return u=a.stateNode,o=null,n!==null&&(o=n.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),ma(cn),it(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(n===null||n.child===null)&&(So(a)?ya(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Lr!==null&&(hp(Lr),Lr=null))),zt(a),null;case 26:return u=a.memoizedState,n===null?(ya(a),u!==null?(zt(a),$S(a,u)):(zt(a),a.flags&=-16777217)):u?u!==n.memoizedState?(ya(a),zt(a),$S(a,u)):(zt(a),a.flags&=-16777217):(n.memoizedProps!==o&&ya(a),zt(a),a.flags&=-16777217),null;case 27:Ue(a),u=Oe.current;var f=a.type;if(n!==null&&a.stateNode!=null)n.memoizedProps!==o&&ya(a);else{if(!o){if(a.stateNode===null)throw Error(i(166));return zt(a),null}n=Ge.current,So(a)?uT(a):(n=S3(f,o,u),a.stateNode=n,ya(a))}return zt(a),null;case 5:if(Ue(a),u=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==o&&ya(a);else{if(!o){if(a.stateNode===null)throw Error(i(166));return zt(a),null}if(n=Ge.current,So(a))uT(a);else{switch(f=of(Oe.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[Rn]=a,n[jn]=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&&ya(a)}}return zt(a),a.flags&=-16777217,null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==o&&ya(a);else{if(typeof o!="string"&&a.stateNode===null)throw Error(i(166));if(n=Oe.current,So(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[Rn]=a,n=!!(n.nodeValue===u||o!==null&&o.suppressHydrationWarning===!0||m3(n.nodeValue,u)),n||vi(a)}else n=of(n).createTextNode(o),n[Rn]=a,a.stateNode=n}return zt(a),null;case 13:if(o=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(f=So(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[Rn]=a}else Co(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;zt(a),f=!1}else Lr!==null&&(hp(Lr),Lr=null),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),Kc(a,a.updateQueue),zt(a),null;case 4:return it(),n===null&&xp(a.stateNode.containerInfo),zt(a),null;case 10:return ma(a.type),zt(a),null;case 19:if($e(sn),f=a.memoizedState,f===null)return zt(a),null;if(o=(a.flags&128)!==0,h=f.rendering,h===null)if(o)Yo(f,!1);else{if(Gt!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(h=Ic(n),h!==null){for(a.flags|=128,Yo(f,!1),n=h.updateQueue,a.updateQueue=n,Kc(a,n),a.subtreeFlags=0,n=u,u=a.child;u!==null;)jS(u,n),u=u.sibling;return xe(sn,sn.current&1|2),a.child}n=n.sibling}f.tail!==null&&Xe()>Wc&&(a.flags|=128,o=!0,Yo(f,!1),a.lanes=4194304)}else{if(!o)if(n=Ic(h),n!==null){if(a.flags|=128,o=!0,n=n.updateQueue,a.updateQueue=n,Kc(a,n),Yo(f,!0),f.tail===null&&f.tailMode==="hidden"&&!h.alternate&&!gt)return zt(a),null}else 2*Xe()-f.renderingStartTime>Wc&&u!==536870912&&(a.flags|=128,o=!0,Yo(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=Xe(),a.sibling=null,n=sn.current,xe(sn,o?n&1|2:n&1),a):(zt(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&&(zt(a),a.subtreeFlags&6&&(a.flags|=8192)):zt(a),u=a.updateQueue,u!==null&&Kc(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&&$e(Oi),null;case 24:return u=null,n!==null&&(u=n.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),ma(cn),zt(a),null;case 25:return null}throw Error(i(156,a.tag))}function qw(n,a){switch(oh(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return ma(cn),it(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return Ue(a),null;case 13:if(fa(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(i(340));Co()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return $e(sn),null;case 4:return it(),null;case 10:return ma(a.type),null;case 22:case 23:return fa(a),dh(),n!==null&&$e(Oi),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return ma(cn),null;case 25:return null;default:return null}}function qS(n,a){switch(oh(a),a.tag){case 3:ma(cn),it();break;case 26:case 27:case 5:Ue(a);break;case 4:it();break;case 13:fa(a);break;case 19:$e(sn);break;case 10:ma(a.type);break;case 22:case 23:fa(a),dh(),n!==null&&$e(Oi);break;case 24:ma(cn)}}var Gw={getCacheForType:function(n){var a=On(cn),u=a.data.get(n);return u===void 0&&(u=n(),a.data.set(n,u)),u}},Xw=typeof WeakMap=="function"?WeakMap:Map,Yt=0,wt=null,lt=null,ht=0,Mt=0,rr=null,Ta=!1,zu=!1,up=!1,Sa=0,Gt=0,Wa=0,Pi=0,lp=0,Or=0,Yu=0,jo=null,Jr=null,op=!1,sp=0,Wc=1/0,Zc=null,Za=null,Jc=!1,Ui=null,Vo=0,cp=0,fp=null,$o=0,dp=null;function ar(){if((Yt&2)!==0&&ht!==0)return ht&-ht;if(V.T!==null){var n=Iu;return n!==0?n:Tp()}return hy()}function GS(){Or===0&&(Or=(ht&536870912)===0||gt?oy():536870912);var n=xr.current;return n!==null&&(n.flags|=32),Or}function Dn(n,a,u){(n===wt&&Mt===2||n.cancelPendingCommit!==null)&&(ju(n,0),Ca(n,ht,Or,!1)),oo(n,u),((Yt&2)===0||n!==wt)&&(n===wt&&((Yt&2)===0&&(Pi|=u),Gt===4&&Ca(n,ht,Or,!1)),ea(n))}function XS(n,a,u){if((Yt&6)!==0)throw Error(i(327));var o=!u&&(a&60)===0&&(a&n.expiredLanes)===0||lo(n,a),f=o?Ww(n,a):gp(n,a,!0),h=o;do{if(f===0){zu&&!o&&Ca(n,a,0,!1);break}else if(f===6)Ca(n,a,0,!Ta);else{if(u=n.current.alternate,h&&!Qw(u)){f=gp(n,a,!1),h=!1;continue}if(f===2){if(h=a,n.errorRecoveryDisabledLanes&h)var T=0;else T=n.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){a=T;e:{var R=n;f=jo;var B=R.current.memoizedState.isDehydrated;if(B&&(ju(R,T).flags|=256),T=gp(R,T,!1),T!==2){if(up&&!B){R.errorRecoveryDisabledLanes|=h,Pi|=h,f=4;break e}h=Jr,Jr=f,h!==null&&hp(h)}f=T}if(h=!1,f!==2)continue}}if(f===1){ju(n,0),Ca(n,a,0,!0);break}e:{switch(o=n,f){case 0:case 1:throw Error(i(345));case 4:if((a&4194176)===a){Ca(o,a,Or,!Ta);break e}break;case 2:Jr=null;break;case 3:case 5:break;default:throw Error(i(329))}if(o.finishedWork=u,o.finishedLanes=a,(a&62914560)===a&&(h=sp+300-Xe(),10<h)){if(Ca(o,a,Or,!Ta),Ma(o,0)!==0)break e;o.timeoutHandle=E3(QS.bind(null,o,u,Jr,Zc,op,a,Or,Pi,Yu,Ta,2,-0,0),h);break e}QS(o,u,Jr,Zc,op,a,Or,Pi,Yu,Ta,0,-0,0)}}break}while(!0);ea(n)}function hp(n){Jr===null?Jr=n:Jr.push.apply(Jr,n)}function QS(n,a,u,o,f,h,T,R,B,z,oe,de,Z){var le=a.subtreeFlags;if((le&8192||(le&16785408)===16785408)&&(Wo={stylesheets:null,count:0,unsuspend:kM},HS(a),a=LM(),a!==null)){n.cancelPendingCommit=a(n3.bind(null,n,u,o,f,T,R,B,1,de,Z)),Ca(n,h,T,!z);return}n3(n,u,o,f,T,R,B,oe,de,Z)}function Qw(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(!er(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 Ca(n,a,u,o){a&=~lp,a&=~Pi,n.suspendedLanes|=a,n.pingedLanes&=~a,o&&(n.warmLanes|=a),o=n.expirationTimes;for(var f=a;0<f;){var h=31-ze(f),T=1<<h;o[h]=-1,f&=~T}u!==0&&cy(n,u,a)}function ef(){return(Yt&6)===0?(qo(0),!1):!0}function pp(){if(lt!==null){if(Mt===0)var n=lt.return;else n=lt,pa=Ii=null,Th(n),Du=null,vo=0,n=lt;for(;n!==null;)qS(n.alternate,n),n=n.return;lt=null}}function ju(n,a){n.finishedWork=null,n.finishedLanes=0;var u=n.timeoutHandle;u!==-1&&(n.timeoutHandle=-1,pM(u)),u=n.cancelPendingCommit,u!==null&&(n.cancelPendingCommit=null,u()),pp(),wt=n,lt=u=Ka(n.current,null),ht=a,Mt=0,rr=null,Ta=!1,zu=lo(n,a),up=!1,Yu=Or=lp=Pi=Wa=Gt=0,Jr=jo=null,op=!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-ze(o),h=1<<f;a|=n[f],o&=~h}return Sa=a,xc(),u}function KS(n,a){rt=null,V.H=Zr,a===xo?(a=fT(),Mt=3):a===oT?(a=fT(),Mt=4):Mt=a===sS?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,rr=a,lt===null&&(Gt=1,Vc(n,Sr(a,n.current)))}function WS(){var n=V.H;return V.H=Zr,n===null?Zr:n}function ZS(){var n=V.A;return V.A=Gw,n}function mp(){Gt=4,Ta||(ht&4194176)!==ht&&xr.current!==null||(zu=!0),(Wa&134217727)===0&&(Pi&134217727)===0||wt===null||Ca(wt,ht,Or,!1)}function gp(n,a,u){var o=Yt;Yt|=2;var f=WS(),h=ZS();(wt!==n||ht!==a)&&(Zc=null,ju(n,a)),a=!1;var T=Gt;e:do try{if(Mt!==0&<!==null){var R=lt,B=rr;switch(Mt){case 8:pp(),T=6;break e;case 3:case 2:case 6:xr.current===null&&(a=!0);var z=Mt;if(Mt=0,rr=null,Vu(n,R,B,z),u&&zu){T=0;break e}break;default:z=Mt,Mt=0,rr=null,Vu(n,R,B,z)}}Kw(),T=Gt;break}catch(oe){KS(n,oe)}while(!0);return a&&n.shellSuspendCounter++,pa=Ii=null,Yt=o,V.H=f,V.A=h,lt===null&&(wt=null,ht=0,xc()),T}function Kw(){for(;lt!==null;)JS(lt)}function Ww(n,a){var u=Yt;Yt|=2;var o=WS(),f=ZS();wt!==n||ht!==a?(Zc=null,Wc=Xe()+500,ju(n,a)):zu=lo(n,a);e:do try{if(Mt!==0&<!==null){a=lt;var h=rr;t:switch(Mt){case 1:Mt=0,rr=null,Vu(n,a,h,1);break;case 2:if(sT(h)){Mt=0,rr=null,e3(a);break}a=function(){Mt===2&&wt===n&&(Mt=7),ea(n)},h.then(a,a);break e;case 3:Mt=7;break e;case 4:Mt=5;break e;case 7:sT(h)?(Mt=0,rr=null,e3(a)):(Mt=0,rr=null,Vu(n,a,h,7));break;case 5:var T=null;switch(lt.tag){case 26:T=lt.memoizedState;case 5:case 27:var R=lt;if(!T||N3(T)){Mt=0,rr=null;var B=R.sibling;if(B!==null)lt=B;else{var z=R.return;z!==null?(lt=z,tf(z)):lt=null}break t}}Mt=0,rr=null,Vu(n,a,h,5);break;case 6:Mt=0,rr=null,Vu(n,a,h,6);break;case 8:pp(),Gt=6;break e;default:throw Error(i(462))}}Zw();break}catch(oe){KS(n,oe)}while(!0);return pa=Ii=null,V.H=o,V.A=f,Yt=u,lt!==null?0:(wt=null,ht=0,xc(),Gt)}function Zw(){for(;lt!==null&&!_n();)JS(lt)}function JS(n){var a=SS(n.alternate,n,Sa);n.memoizedProps=n.pendingProps,a===null?tf(n):lt=a}function e3(n){var a=n,u=a.alternate;switch(a.tag){case 15:case 0:a=mS(u,a,a.pendingProps,a.type,void 0,ht);break;case 11:a=mS(u,a,a.pendingProps,a.type.render,a.ref,ht);break;case 5:Th(a);default:qS(u,a),a=lt=jS(a,Sa),a=SS(u,a,Sa)}n.memoizedProps=n.pendingProps,a===null?tf(n):lt=a}function Vu(n,a,u,o){pa=Ii=null,Th(a),Du=null,vo=0;var f=a.return;try{if(Fw(n,f,a,u,ht)){Gt=1,Vc(n,Sr(u,n.current)),lt=null;return}}catch(h){if(f!==null)throw lt=f,h;Gt=1,Vc(n,Sr(u,n.current)),lt=null;return}a.flags&32768?(gt||o===1?n=!0:zu||(ht&536870912)!==0?n=!1:(Ta=n=!0,(o===2||o===3||o===6)&&(o=xr.current,o!==null&&o.tag===13&&(o.flags|=16384))),t3(a,n)):tf(a)}function tf(n){var a=n;do{if((a.flags&32768)!==0){t3(a,Ta);return}n=a.return;var u=$w(a.alternate,a,Sa);if(u!==null){lt=u;return}if(a=a.sibling,a!==null){lt=a;return}lt=a=n}while(a!==null);Gt===0&&(Gt=5)}function t3(n,a){do{var u=qw(n.alternate,n);if(u!==null){u.flags&=32767,lt=u;return}if(u=n.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!a&&(n=n.sibling,n!==null)){lt=n;return}lt=n=u}while(n!==null);Gt=6,lt=null}function n3(n,a,u,o,f,h,T,R,B,z){var oe=V.T,de=ue.p;try{ue.p=2,V.T=null,Jw(n,a,u,o,de,f,h,T,R,B,z)}finally{V.T=oe,ue.p=de}}function Jw(n,a,u,o,f,h,T,R){do $u();while(Ui!==null);if((Yt&6)!==0)throw Error(i(327));var B=n.finishedWork;if(o=n.finishedLanes,B===null)return null;if(n.finishedWork=null,n.finishedLanes=0,B===n.current)throw Error(i(177));n.callbackNode=null,n.callbackPriority=0,n.cancelPendingCommit=null;var z=B.lanes|B.childLanes;if(z|=ih,DI(n,o,z,h,T,R),n===wt&&(lt=wt=null,ht=0),(B.subtreeFlags&10256)===0&&(B.flags&10256)===0||Jc||(Jc=!0,cp=z,fp=u,rM(Ae,function(){return $u(),null})),u=(B.flags&15990)!==0,(B.subtreeFlags&15990)!==0||u?(u=V.T,V.T=null,h=ue.p,ue.p=2,T=Yt,Yt|=4,Yw(n,B),BS(B,n),Aw(Op,n.containerInfo),pf=!!Rp,Op=Rp=null,n.current=B,LS(n,B.alternate,B),we(),Yt=T,ue.p=h,V.T=u):n.current=B,Jc?(Jc=!1,Ui=n,Vo=o):r3(n,z),z=n.pendingLanes,z===0&&(Za=null),ke(B.stateNode),ea(n),a!==null)for(f=n.onRecoverableError,B=0;B<a.length;B++)z=a[B],f(z.value,{componentStack:z.stack});return(Vo&3)!==0&&$u(),z=n.pendingLanes,(o&4194218)!==0&&(z&42)!==0?n===dp?$o++:($o=0,dp=n):$o=0,qo(0),null}function r3(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,Oo(a)))}function $u(){if(Ui!==null){var n=Ui,a=cp;cp=0;var u=dy(Vo),o=V.T,f=ue.p;try{if(ue.p=32>u?32:u,V.T=null,Ui===null)var h=!1;else{u=fp,fp=null;var T=Ui,R=Vo;if(Ui=null,Vo=0,(Yt&6)!==0)throw Error(i(331));var B=Yt;if(Yt|=4,zS(T.current),US(T,T.current,R,u),Yt=B,qo(0,!1),Ft&&typeof Ft.onPostCommitFiberRoot=="function")try{Ft.onPostCommitFiberRoot(an,T)}catch{}h=!0}return h}finally{ue.p=f,V.T=o,r3(n,a)}}return!1}function a3(n,a,u){a=Sr(u,a),a=wh(n.stateNode,a,2),n=qa(n,a,2),n!==null&&(oo(n,2),ea(n))}function Nt(n,a,u){if(n.tag===3)a3(n,n,u);else for(;a!==null;){if(a.tag===3){a3(a,n,u);break}else if(a.tag===1){var o=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Za===null||!Za.has(o))){n=Sr(u,n),u=lS(2),o=qa(a,u,2),o!==null&&(oS(u,o,a,n),oo(o,2),ea(o));break}}a=a.return}}function bp(n,a,u){var o=n.pingCache;if(o===null){o=n.pingCache=new Xw;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)||(up=!0,f.add(u),n=eM.bind(null,n,a,u),a.then(n,n))}function eM(n,a,u){var o=n.pingCache;o!==null&&o.delete(a),n.pingedLanes|=n.suspendedLanes&u,n.warmLanes&=~u,wt===n&&(ht&u)===u&&(Gt===4||Gt===3&&(ht&62914560)===ht&&300>Xe()-sp?(Yt&2)===0&&ju(n,0):lp|=u,Yu===ht&&(Yu=0)),ea(n)}function i3(n,a){a===0&&(a=sy()),n=Ua(n,a),n!==null&&(oo(n,a),ea(n))}function tM(n){var a=n.memoizedState,u=0;a!==null&&(u=a.retryLane),i3(n,u)}function nM(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),i3(n,u)}function rM(n,a){return St(n,a)}var nf=null,qu=null,Ep=!1,rf=!1,yp=!1,Hi=0;function ea(n){n!==qu&&n.next===null&&(qu===null?nf=qu=n:qu=qu.next=n),rf=!0,Ep||(Ep=!0,iM(aM))}function qo(n,a){if(!yp&&rf){yp=!0;do for(var u=!1,o=nf;o!==null;){if(n!==0){var f=o.pendingLanes;if(f===0)var h=0;else{var T=o.suspendedLanes,R=o.pingedLanes;h=(1<<31-ze(42|n)+1)-1,h&=f&~(T&~R),h=h&201326677?h&201326677|1:h?h|2:0}h!==0&&(u=!0,o3(o,h))}else h=ht,h=Ma(o,o===wt?h:0),(h&3)===0||lo(o,h)||(u=!0,o3(o,h));o=o.next}while(u);yp=!1}}function aM(){rf=Ep=!1;var n=0;Hi!==0&&(hM()&&(n=Hi),Hi=0);for(var a=Xe(),u=null,o=nf;o!==null;){var f=o.next,h=u3(o,a);h===0?(o.next=null,u===null?nf=f:u.next=f,f===null&&(qu=u)):(u=o,(n!==0||(h&3)!==0)&&(rf=!0)),o=f}qo(n)}function u3(n,a){for(var u=n.suspendedLanes,o=n.pingedLanes,f=n.expirationTimes,h=n.pendingLanes&-62914561;0<h;){var T=31-ze(h),R=1<<T,B=f[T];B===-1?((R&u)===0||(R&o)!==0)&&(f[T]=kI(R,a)):B<=a&&(n.expiredLanes|=R),h&=~R}if(a=wt,u=ht,u=Ma(n,n===a?u:0),o=n.callbackNode,u===0||n===a&&Mt===2||n.cancelPendingCommit!==null)return o!==null&&o!==null&&rn(o),n.callbackNode=null,n.callbackPriority=0;if((u&3)===0||lo(n,u)){if(a=u&-u,a===n.callbackPriority)return a;switch(o!==null&&rn(o),dy(u)){case 2:case 8:u=fe;break;case 32:u=Ae;break;case 268435456:u=nt;break;default:u=Ae}return o=l3.bind(null,n),u=St(u,o),n.callbackPriority=a,n.callbackNode=u,a}return o!==null&&o!==null&&rn(o),n.callbackPriority=2,n.callbackNode=null,2}function l3(n,a){var u=n.callbackNode;if($u()&&n.callbackNode!==u)return null;var o=ht;return o=Ma(n,n===wt?o:0),o===0?null:(XS(n,o,a),u3(n,Xe()),n.callbackNode!=null&&n.callbackNode===u?l3.bind(null,n):null)}function o3(n,a){if($u())return null;XS(n,a,!0)}function iM(n){mM(function(){(Yt&6)!==0?St(te,n):n()})}function Tp(){return Hi===0&&(Hi=oy()),Hi}function s3(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:bc(""+n)}function c3(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 uM(n,a,u,o,f){if(a==="submit"&&u&&u.stateNode===f){var h=s3((f[jn]||null).action),T=o.submitter;T&&(a=(a=T[jn]||null)?s3(a.formAction):T.getAttribute("formAction"),a!==null&&(h=a,T=null));var R=new Sc("action","action",null,o,f);n.push({event:R,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Hi!==0){var B=T?c3(f,T):new FormData(f);Nh(u,{pending:!0,data:B,method:f.method,action:h},null,B)}}else typeof h=="function"&&(R.preventDefault(),B=T?c3(f,T):new FormData(f),Nh(u,{pending:!0,data:B,method:f.method,action:h},h,B))},currentTarget:f}]})}}for(var Sp=0;Sp<nT.length;Sp++){var Cp=nT[Sp],lM=Cp.toLowerCase(),oM=Cp[0].toUpperCase()+Cp.slice(1);Dr(lM,"on"+oM)}Dr(Wy,"onAnimationEnd"),Dr(Zy,"onAnimationIteration"),Dr(Jy,"onAnimationStart"),Dr("dblclick","onDoubleClick"),Dr("focusin","onFocus"),Dr("focusout","onBlur"),Dr(_w,"onTransitionRun"),Dr(vw,"onTransitionStart"),Dr(Rw,"onTransitionCancel"),Dr(eT,"onTransitionEnd"),yu("onMouseEnter",["mouseout","mouseover"]),yu("onMouseLeave",["mouseout","mouseover"]),yu("onPointerEnter",["pointerout","pointerover"]),yu("onPointerLeave",["pointerout","pointerover"]),Ti("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ti("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ti("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ti("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ti("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ti("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Go="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(" "),sM=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Go));function f3(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 T=o.length-1;0<=T;T--){var R=o[T],B=R.instance,z=R.currentTarget;if(R=R.listener,B!==h&&f.isPropagationStopped())break e;h=R,f.currentTarget=z;try{h(f)}catch(oe){jc(oe)}f.currentTarget=null,h=B}else for(T=0;T<o.length;T++){if(R=o[T],B=R.instance,z=R.currentTarget,R=R.listener,B!==h&&f.isPropagationStopped())break e;h=R,f.currentTarget=z;try{h(f)}catch(oe){jc(oe)}f.currentTarget=null,h=B}}}}function ft(n,a){var u=a[U0];u===void 0&&(u=a[U0]=new Set);var o=n+"__bubble";u.has(o)||(d3(a,n,2,!1),u.add(o))}function Ap(n,a,u){var o=0;a&&(o|=4),d3(u,n,o,a)}var af="_reactListening"+Math.random().toString(36).slice(2);function xp(n){if(!n[af]){n[af]=!0,my.forEach(function(u){u!=="selectionchange"&&(sM.has(u)||Ap(u,!1,n),Ap(u,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[af]||(a[af]=!0,Ap("selectionchange",!1,a))}}function d3(n,a,u,o){switch(M3(a)){case 2:var f=MM;break;case 8:f=BM;break;default:f=Pp}u=f.bind(null,a,u,n),f=void 0,!q0||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 _p(n,a,u,o,f){var h=o;if((a&1)===0&&(a&2)===0&&o!==null)e:for(;;){if(o===null)return;var T=o.tag;if(T===3||T===4){var R=o.stateNode.containerInfo;if(R===f||R.nodeType===8&&R.parentNode===f)break;if(T===4)for(T=o.return;T!==null;){var B=T.tag;if((B===3||B===4)&&(B=T.stateNode.containerInfo,B===f||B.nodeType===8&&B.parentNode===f))return;T=T.return}for(;R!==null;){if(T=yi(R),T===null)return;if(B=T.tag,B===5||B===6||B===26||B===27){o=h=T;continue e}R=R.parentNode}}o=o.return}Ry(function(){var z=h,oe=V0(u),de=[];e:{var Z=tT.get(n);if(Z!==void 0){var le=Sc,Le=n;switch(n){case"keypress":if(yc(u)===0)break e;case"keydown":case"keyup":le=nw;break;case"focusin":Le="focus",le=K0;break;case"focusout":Le="blur",le=K0;break;case"beforeblur":case"afterblur":le=K0;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":le=ky;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":le=VI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":le=iw;break;case Wy:case Zy:case Jy:le=GI;break;case eT:le=lw;break;case"scroll":case"scrollend":le=YI;break;case"wheel":le=sw;break;case"copy":case"cut":case"paste":le=QI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":le=Ly;break;case"toggle":case"beforetoggle":le=fw}var qe=(a&4)!==0,Xt=!qe&&(n==="scroll"||n==="scrollend"),$=qe?Z!==null?Z+"Capture":null:Z;qe=[];for(var F=z,X;F!==null;){var ce=F;if(X=ce.stateNode,ce=ce.tag,ce!==5&&ce!==26&&ce!==27||X===null||$===null||(ce=fo(F,$),ce!=null&&qe.push(Xo(F,ce,X))),Xt)break;F=F.return}0<qe.length&&(Z=new le(Z,Le,null,u,oe),de.push({event:Z,listeners:qe}))}}if((a&7)===0){e:{if(Z=n==="mouseover"||n==="pointerover",le=n==="mouseout"||n==="pointerout",Z&&u!==j0&&(Le=u.relatedTarget||u.fromElement)&&(yi(Le)||Le[gu]))break e;if((le||Z)&&(Z=oe.window===oe?oe:(Z=oe.ownerDocument)?Z.defaultView||Z.parentWindow:window,le?(Le=u.relatedTarget||u.toElement,le=z,Le=Le?yi(Le):null,Le!==null&&(Xt=re(Le),qe=Le.tag,Le!==Xt||qe!==5&&qe!==27&&qe!==6)&&(Le=null)):(le=null,Le=z),le!==Le)){if(qe=ky,ce="onMouseLeave",$="onMouseEnter",F="mouse",(n==="pointerout"||n==="pointerover")&&(qe=Ly,ce="onPointerLeave",$="onPointerEnter",F="pointer"),Xt=le==null?Z:co(le),X=Le==null?Z:co(Le),Z=new qe(ce,F+"leave",le,u,oe),Z.target=Xt,Z.relatedTarget=X,ce=null,yi(oe)===z&&(qe=new qe($,F+"enter",Le,u,oe),qe.target=X,qe.relatedTarget=Xt,ce=qe),Xt=ce,le&&Le)t:{for(qe=le,$=Le,F=0,X=qe;X;X=Gu(X))F++;for(X=0,ce=$;ce;ce=Gu(ce))X++;for(;0<F-X;)qe=Gu(qe),F--;for(;0<X-F;)$=Gu($),X--;for(;F--;){if(qe===$||$!==null&&qe===$.alternate)break t;qe=Gu(qe),$=Gu($)}qe=null}else qe=null;le!==null&&h3(de,Z,le,qe,!1),Le!==null&&Xt!==null&&h3(de,Xt,Le,qe,!0)}}e:{if(Z=z?co(z):window,le=Z.nodeName&&Z.nodeName.toLowerCase(),le==="select"||le==="input"&&Z.type==="file")var Ne=Fy;else if(Uy(Z))if(zy)Ne=Sw;else{Ne=yw;var ut=Ew}else le=Z.nodeName,!le||le.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?z&&Y0(z.elementType)&&(Ne=Fy):Ne=Tw;if(Ne&&(Ne=Ne(n,z))){Hy(de,Ne,u,oe);break e}ut&&ut(n,Z,z),n==="focusout"&&z&&Z.type==="number"&&z.memoizedProps.value!=null&&z0(Z,"number",Z.value)}switch(ut=z?co(z):window,n){case"focusin":(Uy(ut)||ut.contentEditable==="true")&&(_u=ut,nh=z,To=null);break;case"focusout":To=nh=_u=null;break;case"mousedown":rh=!0;break;case"contextmenu":case"mouseup":case"dragend":rh=!1,Qy(de,u,oe);break;case"selectionchange":if(xw)break;case"keydown":case"keyup":Qy(de,u,oe)}var Pe;if(Z0)e:{switch(n){case"compositionstart":var Ye="onCompositionStart";break e;case"compositionend":Ye="onCompositionEnd";break e;case"compositionupdate":Ye="onCompositionUpdate";break e}Ye=void 0}else xu?By(n,u)&&(Ye="onCompositionEnd"):n==="keydown"&&u.keyCode===229&&(Ye="onCompositionStart");Ye&&(Iy&&u.locale!=="ko"&&(xu||Ye!=="onCompositionStart"?Ye==="onCompositionEnd"&&xu&&(Pe=Oy()):(Pa=oe,G0="value"in Pa?Pa.value:Pa.textContent,xu=!0)),ut=uf(z,Ye),0<ut.length&&(Ye=new Dy(Ye,n,null,u,oe),de.push({event:Ye,listeners:ut}),Pe?Ye.data=Pe:(Pe=Py(u),Pe!==null&&(Ye.data=Pe)))),(Pe=hw?pw(n,u):mw(n,u))&&(Ye=uf(z,"onBeforeInput"),0<Ye.length&&(ut=new Dy("onBeforeInput","beforeinput",null,u,oe),de.push({event:ut,listeners:Ye}),ut.data=Pe)),uM(de,n,z,u,oe)}f3(de,a)})}function Xo(n,a,u){return{instance:n,listener:a,currentTarget:u}}function uf(n,a){for(var u=a+"Capture",o=[];n!==null;){var f=n,h=f.stateNode;f=f.tag,f!==5&&f!==26&&f!==27||h===null||(f=fo(n,u),f!=null&&o.unshift(Xo(n,f,h)),f=fo(n,a),f!=null&&o.push(Xo(n,f,h))),n=n.return}return o}function Gu(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function h3(n,a,u,o,f){for(var h=a._reactName,T=[];u!==null&&u!==o;){var R=u,B=R.alternate,z=R.stateNode;if(R=R.tag,B!==null&&B===o)break;R!==5&&R!==26&&R!==27||z===null||(B=z,f?(z=fo(u,h),z!=null&&T.unshift(Xo(u,z,B))):f||(z=fo(u,h),z!=null&&T.push(Xo(u,z,B)))),u=u.return}T.length!==0&&n.push({event:a,listeners:T})}var cM=/\r\n?/g,fM=/\u0000|\uFFFD/g;function p3(n){return(typeof n=="string"?n:""+n).replace(cM,`
|
|
41
|
-
`).replace(fM,"")}function m3(n,a){return a=p3(a),p3(n)===a}function lf(){}function At(n,a,u,o,f,h){switch(u){case"children":typeof o=="string"?a==="body"||a==="textarea"&&o===""||Su(n,o):(typeof o=="number"||typeof o=="bigint")&&a!=="body"&&Su(n,""+o);break;case"className":pc(n,"class",o);break;case"tabIndex":pc(n,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":pc(n,u,o);break;case"style":_y(n,o,h);break;case"data":if(a!=="object"){pc(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=bc(""+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"&&At(n,a,"name",f.name,f,null),At(n,a,"formEncType",f.formEncType,f,null),At(n,a,"formMethod",f.formMethod,f,null),At(n,a,"formTarget",f.formTarget,f,null)):(At(n,a,"encType",f.encType,f,null),At(n,a,"method",f.method,f,null),At(n,a,"target",f.target,f,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){n.removeAttribute(u);break}o=bc(""+o),n.setAttribute(u,o);break;case"onClick":o!=null&&(n.onclick=lf);break;case"onScroll":o!=null&&ft("scroll",n);break;case"onScrollEnd":o!=null&&ft("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=bc(""+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":ft("beforetoggle",n),ft("toggle",n),hc(n,"popover",o);break;case"xlinkActuate":oa(n,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":oa(n,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":oa(n,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":oa(n,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":oa(n,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":oa(n,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":oa(n,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":oa(n,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":oa(n,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":hc(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=FI.get(u)||u,hc(n,u,o))}}function vp(n,a,u,o,f,h){switch(u){case"style":_y(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"?Su(n,o):(typeof o=="number"||typeof o=="bigint")&&Su(n,""+o);break;case"onScroll":o!=null&&ft("scroll",n);break;case"onScrollEnd":o!=null&&ft("scrollend",n);break;case"onClick":o!=null&&(n.onclick=lf);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!gy.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[jn]||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,""):hc(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":ft("error",n),ft("load",n);var o=!1,f=!1,h;for(h in u)if(u.hasOwnProperty(h)){var T=u[h];if(T!=null)switch(h){case"src":o=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:At(n,a,h,T,u,null)}}f&&At(n,a,"srcSet",u.srcSet,u,null),o&&At(n,a,"src",u.src,u,null);return;case"input":ft("invalid",n);var R=h=T=f=null,B=null,z=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":T=oe;break;case"checked":B=oe;break;case"defaultChecked":z=oe;break;case"value":h=oe;break;case"defaultValue":R=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(i(137,a));break;default:At(n,a,o,oe,u,null)}}Sy(n,h,R,B,z,T,f,!1),mc(n);return;case"select":ft("invalid",n),o=T=h=null;for(f in u)if(u.hasOwnProperty(f)&&(R=u[f],R!=null))switch(f){case"value":h=R;break;case"defaultValue":T=R;break;case"multiple":o=R;default:At(n,a,f,R,u,null)}a=h,u=T,n.multiple=!!o,a!=null?Tu(n,!!o,a,!1):u!=null&&Tu(n,!!o,u,!0);return;case"textarea":ft("invalid",n),h=f=o=null;for(T in u)if(u.hasOwnProperty(T)&&(R=u[T],R!=null))switch(T){case"value":o=R;break;case"defaultValue":f=R;break;case"children":h=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(i(91));break;default:At(n,a,T,R,u,null)}Ay(n,o,f,h),mc(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:At(n,a,B,o,u,null)}return;case"dialog":ft("cancel",n),ft("close",n);break;case"iframe":case"object":ft("load",n);break;case"video":case"audio":for(o=0;o<Go.length;o++)ft(Go[o],n);break;case"image":ft("error",n),ft("load",n);break;case"details":ft("toggle",n);break;case"embed":case"source":case"link":ft("error",n),ft("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(z in u)if(u.hasOwnProperty(z)&&(o=u[z],o!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:At(n,a,z,o,u,null)}return;default:if(Y0(a)){for(oe in u)u.hasOwnProperty(oe)&&(o=u[oe],o!==void 0&&vp(n,a,oe,o,u,void 0));return}}for(R in u)u.hasOwnProperty(R)&&(o=u[R],o!=null&&At(n,a,R,o,u,null))}function dM(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,T=null,R=null,B=null,z=null,oe=null;for(le in u){var de=u[le];if(u.hasOwnProperty(le)&&de!=null)switch(le){case"checked":break;case"value":break;case"defaultValue":B=de;default:o.hasOwnProperty(le)||At(n,a,le,null,o,de)}}for(var Z in o){var le=o[Z];if(de=u[Z],o.hasOwnProperty(Z)&&(le!=null||de!=null))switch(Z){case"type":h=le;break;case"name":f=le;break;case"checked":z=le;break;case"defaultChecked":oe=le;break;case"value":T=le;break;case"defaultValue":R=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(i(137,a));break;default:le!==de&&At(n,a,Z,le,o,de)}}F0(n,T,R,B,z,oe,h,f);return;case"select":le=T=R=Z=null;for(h in u)if(B=u[h],u.hasOwnProperty(h)&&B!=null)switch(h){case"value":break;case"multiple":le=B;default:o.hasOwnProperty(h)||At(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":Z=h;break;case"defaultValue":R=h;break;case"multiple":T=h;default:h!==B&&At(n,a,f,h,o,B)}a=R,u=T,o=le,Z!=null?Tu(n,!!u,Z,!1):!!o!=!!u&&(a!=null?Tu(n,!!u,a,!0):Tu(n,!!u,u?[]:"",!1));return;case"textarea":le=Z=null;for(R in u)if(f=u[R],u.hasOwnProperty(R)&&f!=null&&!o.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:At(n,a,R,null,o,f)}for(T in o)if(f=o[T],h=u[T],o.hasOwnProperty(T)&&(f!=null||h!=null))switch(T){case"value":Z=f;break;case"defaultValue":le=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(i(91));break;default:f!==h&&At(n,a,T,f,o,h)}Cy(n,Z,le);return;case"option":for(var Le in u)if(Z=u[Le],u.hasOwnProperty(Le)&&Z!=null&&!o.hasOwnProperty(Le))switch(Le){case"selected":n.selected=!1;break;default:At(n,a,Le,null,o,Z)}for(B in o)if(Z=o[B],le=u[B],o.hasOwnProperty(B)&&Z!==le&&(Z!=null||le!=null))switch(B){case"selected":n.selected=Z&&typeof Z!="function"&&typeof Z!="symbol";break;default:At(n,a,B,Z,o,le)}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 qe in u)Z=u[qe],u.hasOwnProperty(qe)&&Z!=null&&!o.hasOwnProperty(qe)&&At(n,a,qe,null,o,Z);for(z in o)if(Z=o[z],le=u[z],o.hasOwnProperty(z)&&Z!==le&&(Z!=null||le!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(i(137,a));break;default:At(n,a,z,Z,o,le)}return;default:if(Y0(a)){for(var Xt in u)Z=u[Xt],u.hasOwnProperty(Xt)&&Z!==void 0&&!o.hasOwnProperty(Xt)&&vp(n,a,Xt,void 0,o,Z);for(oe in o)Z=o[oe],le=u[oe],!o.hasOwnProperty(oe)||Z===le||Z===void 0&&le===void 0||vp(n,a,oe,Z,o,le);return}}for(var $ in u)Z=u[$],u.hasOwnProperty($)&&Z!=null&&!o.hasOwnProperty($)&&At(n,a,$,null,o,Z);for(de in o)Z=o[de],le=u[de],!o.hasOwnProperty(de)||Z===le||Z==null&&le==null||At(n,a,de,Z,o,le)}var Rp=null,Op=null;function of(n){return n.nodeType===9?n:n.ownerDocument}function g3(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 b3(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 Np(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 kp=null;function hM(){var n=window.event;return n&&n.type==="popstate"?n===kp?!1:(kp=n,!0):(kp=null,!1)}var E3=typeof setTimeout=="function"?setTimeout:void 0,pM=typeof clearTimeout=="function"?clearTimeout:void 0,y3=typeof Promise=="function"?Promise:void 0,mM=typeof queueMicrotask=="function"?queueMicrotask:typeof y3<"u"?function(n){return y3.resolve(null).then(n).catch(gM)}:E3;function gM(n){setTimeout(function(){throw n})}function Dp(n,a){var u=a,o=0;do{var f=u.nextSibling;if(n.removeChild(u),f&&f.nodeType===8)if(u=f.data,u==="/$"){if(o===0){n.removeChild(f),ns(a);return}o--}else u!=="$"&&u!=="$?"&&u!=="$!"||o++;u=f}while(u);ns(a)}function Lp(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":Lp(u),H0(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}n.removeChild(u)}}function bM(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[so])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?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=wr(n.nextSibling),n===null)break}return null}function EM(n,a,u){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!u||(n=wr(n.nextSibling),n===null))return null;return n}function wr(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}function T3(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 S3(n,a,u){switch(a=of(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))}}var Nr=new Map,C3=new Set;function sf(n){return typeof n.getRootNode=="function"?n.getRootNode():n.ownerDocument}var Aa=ue.d;ue.d={f:yM,r:TM,D:SM,C:CM,L:AM,m:xM,X:vM,S:_M,M:RM};function yM(){var n=Aa.f(),a=ef();return n||a}function TM(n){var a=bu(n);a!==null&&a.tag===5&&a.type==="form"?QT(a):Aa.r(n)}var Xu=typeof document>"u"?null:document;function A3(n,a,u){var o=Xu;if(o&&typeof a=="string"&&a){var f=yr(a);f='link[rel="'+n+'"][href="'+f+'"]',typeof u=="string"&&(f+='[crossorigin="'+u+'"]'),C3.has(f)||(C3.add(f),n={rel:n,crossOrigin:u,href:a},o.querySelector(f)===null&&(a=o.createElement("link"),Tn(a,"link",n),hn(a),o.head.appendChild(a)))}}function SM(n){Aa.D(n),A3("dns-prefetch",n,null)}function CM(n,a){Aa.C(n,a),A3("preconnect",n,a)}function AM(n,a,u){Aa.L(n,a,u);var o=Xu;if(o&&n&&a){var f='link[rel="preload"][as="'+yr(a)+'"]';a==="image"&&u&&u.imageSrcSet?(f+='[imagesrcset="'+yr(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(f+='[imagesizes="'+yr(u.imageSizes)+'"]')):f+='[href="'+yr(n)+'"]';var h=f;switch(a){case"style":h=Qu(n);break;case"script":h=Ku(n)}Nr.has(h)||(n=x({rel:"preload",href:a==="image"&&u&&u.imageSrcSet?void 0:n,as:a},u),Nr.set(h,n),o.querySelector(f)!==null||a==="style"&&o.querySelector(Qo(h))||a==="script"&&o.querySelector(Ko(h))||(a=o.createElement("link"),Tn(a,"link",n),hn(a),o.head.appendChild(a)))}}function xM(n,a){Aa.m(n,a);var u=Xu;if(u&&n){var o=a&&typeof a.as=="string"?a.as:"script",f='link[rel="modulepreload"][as="'+yr(o)+'"][href="'+yr(n)+'"]',h=f;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Ku(n)}if(!Nr.has(h)&&(n=x({rel:"modulepreload",href:n},a),Nr.set(h,n),u.querySelector(f)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Ko(h)))return}o=u.createElement("link"),Tn(o,"link",n),hn(o),u.head.appendChild(o)}}}function _M(n,a,u){Aa.S(n,a,u);var o=Xu;if(o&&n){var f=Eu(o).hoistableStyles,h=Qu(n);a=a||"default";var T=f.get(h);if(!T){var R={loading:0,preload:null};if(T=o.querySelector(Qo(h)))R.loading=5;else{n=x({rel:"stylesheet",href:n,"data-precedence":a},u),(u=Nr.get(h))&&Ip(n,u);var B=T=o.createElement("link");hn(B),Tn(B,"link",n),B._p=new Promise(function(z,oe){B.onload=z,B.onerror=oe}),B.addEventListener("load",function(){R.loading|=1}),B.addEventListener("error",function(){R.loading|=2}),R.loading|=4,cf(T,a,o)}T={type:"stylesheet",instance:T,count:1,state:R},f.set(h,T)}}}function vM(n,a){Aa.X(n,a);var u=Xu;if(u&&n){var o=Eu(u).hoistableScripts,f=Ku(n),h=o.get(f);h||(h=u.querySelector(Ko(f)),h||(n=x({src:n,async:!0},a),(a=Nr.get(f))&&wp(n,a),h=u.createElement("script"),hn(h),Tn(h,"link",n),u.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},o.set(f,h))}}function RM(n,a){Aa.M(n,a);var u=Xu;if(u&&n){var o=Eu(u).hoistableScripts,f=Ku(n),h=o.get(f);h||(h=u.querySelector(Ko(f)),h||(n=x({src:n,async:!0,type:"module"},a),(a=Nr.get(f))&&wp(n,a),h=u.createElement("script"),hn(h),Tn(h,"link",n),u.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},o.set(f,h))}}function x3(n,a,u,o){var f=(f=Oe.current)?sf(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=Eu(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=Qu(u.href);var h=Eu(f).hoistableStyles,T=h.get(n);if(T||(f=f.ownerDocument||f,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(n,T),(h=f.querySelector(Qo(n)))&&!h._p&&(T.instance=h,T.state.loading=5),Nr.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},Nr.set(n,u),h||OM(f,n,u,T.state))),a&&o===null)throw Error(i(528,""));return T}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=Ku(u),u=Eu(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 Qu(n){return'href="'+yr(n)+'"'}function Qo(n){return'link[rel="stylesheet"]['+n+"]"}function _3(n){return x({},n,{"data-precedence":n.precedence,precedence:null})}function OM(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),hn(a),n.head.appendChild(a))}function Ku(n){return'[src="'+yr(n)+'"]'}function Ko(n){return"script[async]"+n}function v3(n,a,u){if(a.count++,a.instance===null)switch(a.type){case"style":var o=n.querySelector('style[data-href~="'+yr(u.href)+'"]');if(o)return a.instance=o,hn(o),o;var f=x({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return o=(n.ownerDocument||n).createElement("style"),hn(o),Tn(o,"style",f),cf(o,u.precedence,n),a.instance=o;case"stylesheet":f=Qu(u.href);var h=n.querySelector(Qo(f));if(h)return a.state.loading|=4,a.instance=h,hn(h),h;o=_3(u),(f=Nr.get(f))&&Ip(o,f),h=(n.ownerDocument||n).createElement("link"),hn(h);var T=h;return T._p=new Promise(function(R,B){T.onload=R,T.onerror=B}),Tn(h,"link",o),a.state.loading|=4,cf(h,u.precedence,n),a.instance=h;case"script":return h=Ku(u.src),(f=n.querySelector(Ko(h)))?(a.instance=f,hn(f),f):(o=u,(f=Nr.get(h))&&(o=x({},u),wp(o,f)),n=n.ownerDocument||n,f=n.createElement("script"),hn(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,cf(o,u.precedence,n));return a.instance}function cf(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,T=0;T<o.length;T++){var R=o[T];if(R.dataset.precedence===a)h=R;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 Ip(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function wp(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var ff=null;function R3(n,a,u){if(ff===null){var o=new Map,f=ff=new Map;f.set(u,o)}else f=ff,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[so]||h[Rn]||n==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var T=h.getAttribute(a)||"";T=n+T;var R=o.get(T);R?R.push(h):o.set(T,[h])}}return o}function O3(n,a,u){n=n.ownerDocument||n,n.head.insertBefore(u,a==="title"?n.querySelector("head > title"):null)}function NM(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 N3(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}var Wo=null;function kM(){}function DM(n,a,u){if(Wo===null)throw Error(i(475));var o=Wo;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),h=n.querySelector(Qo(f));if(h){n=h._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(o.count++,o=df.bind(o),n.then(o,o)),a.state.loading|=4,a.instance=h,hn(h);return}h=n.ownerDocument||n,u=_3(u),(f=Nr.get(f))&&Ip(u,f),h=h.createElement("link"),hn(h);var T=h;T._p=new Promise(function(R,B){T.onload=R,T.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=df.bind(o),n.addEventListener("load",a),n.addEventListener("error",a))}}function LM(){if(Wo===null)throw Error(i(475));var n=Wo;return n.stylesheets&&n.count===0&&Mp(n,n.stylesheets),0<n.count?function(a){var u=setTimeout(function(){if(n.stylesheets&&Mp(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 df(){if(this.count--,this.count===0){if(this.stylesheets)Mp(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var hf=null;function Mp(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,hf=new Map,a.forEach(IM,n),hf=null,df.call(n))}function IM(n,a){if(!(a.state.loading&4)){var u=hf.get(n);if(u)var o=u.get(null);else{u=new Map,hf.set(n,u);for(var f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<f.length;h++){var T=f[h];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(u.set(T.dataset.precedence,T),o=T)}o&&u.set(null,o)}f=a.instance,T=f.getAttribute("data-precedence"),h=u.get(T)||o,h===o&&u.set(null,f),u.set(T,f),this.count++,o=df.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 Zo={$$typeof:y,Provider:null,Consumer:null,_currentValue:Re,_currentValue2:Re,_threadCount:0};function wM(n,a,u,o,f,h,T,R){this.tag=1,this.containerInfo=n,this.finishedWork=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=P0(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=P0(0),this.hiddenUpdates=P0(null),this.identifierPrefix=o,this.onUncaughtError=f,this.onCaughtError=h,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function k3(n,a,u,o,f,h,T,R,B,z,oe,de){return n=new wM(n,a,u,T,R,B,z,de),a=1,h===!0&&(a|=24),h=Rr(3,null,null,a),n.current=h,h.stateNode=n,a=hh(),a.refCount++,n.pooledCache=a,a.refCount++,h.memoizedState={element:o,isDehydrated:u,cache:a},Gh(h),n}function D3(n){return n?(n=Ou,n):Ou}function L3(n,a,u,o,f,h){f=D3(f),o.context===null?o.context=f:o.pendingContext=f,o=$a(a),o.payload={element:u},h=h===void 0?null:h,h!==null&&(o.callback=h),u=qa(n,o,a),u!==null&&(Dn(u,n,a),Mo(u,n,a))}function I3(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var u=n.retryLane;n.retryLane=u!==0&&u<a?u:a}}function Bp(n,a){I3(n,a),(n=n.alternate)&&I3(n,a)}function w3(n){if(n.tag===13){var a=Ua(n,67108864);a!==null&&Dn(a,n,67108864),Bp(n,67108864)}}var pf=!0;function MM(n,a,u,o){var f=V.T;V.T=null;var h=ue.p;try{ue.p=2,Pp(n,a,u,o)}finally{ue.p=h,V.T=f}}function BM(n,a,u,o){var f=V.T;V.T=null;var h=ue.p;try{ue.p=8,Pp(n,a,u,o)}finally{ue.p=h,V.T=f}}function Pp(n,a,u,o){if(pf){var f=Up(o);if(f===null)_p(n,a,o,mf,u),B3(n,o);else if(UM(f,n,a,u,o))o.stopPropagation();else if(B3(n,o),a&4&&-1<PM.indexOf(n)){for(;f!==null;){var h=bu(f);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var T=Qr(h.pendingLanes);if(T!==0){var R=h;for(R.pendingLanes|=2,R.entangledLanes|=2;T;){var B=1<<31-ze(T);R.entanglements[1]|=B,T&=~B}ea(h),(Yt&6)===0&&(Wc=Xe()+500,qo(0))}}break;case 13:R=Ua(h,2),R!==null&&Dn(R,h,2),ef(),Bp(h,2)}if(h=Up(o),h===null&&_p(n,a,o,mf,u),h===f)break;f=h}f!==null&&o.stopPropagation()}else _p(n,a,o,null,u)}}function Up(n){return n=V0(n),Hp(n)}var mf=null;function Hp(n){if(mf=null,n=yi(n),n!==null){var a=re(n);if(a===null)n=null;else{var u=a.tag;if(u===13){if(n=ge(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 mf=n,null}function M3(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($t()){case te:return 2;case fe:return 8;case Ae:case He:return 32;case nt:return 268435456;default:return 32}default:return 32}}var Fp=!1,Ja=null,ei=null,ti=null,Jo=new Map,es=new Map,ni=[],PM="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 B3(n,a){switch(n){case"focusin":case"focusout":Ja=null;break;case"dragenter":case"dragleave":ei=null;break;case"mouseover":case"mouseout":ti=null;break;case"pointerover":case"pointerout":Jo.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":es.delete(a.pointerId)}}function ts(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=bu(a),a!==null&&w3(a)),n):(n.eventSystemFlags|=o,a=n.targetContainers,f!==null&&a.indexOf(f)===-1&&a.push(f),n)}function UM(n,a,u,o,f){switch(a){case"focusin":return Ja=ts(Ja,n,a,u,o,f),!0;case"dragenter":return ei=ts(ei,n,a,u,o,f),!0;case"mouseover":return ti=ts(ti,n,a,u,o,f),!0;case"pointerover":var h=f.pointerId;return Jo.set(h,ts(Jo.get(h)||null,n,a,u,o,f)),!0;case"gotpointercapture":return h=f.pointerId,es.set(h,ts(es.get(h)||null,n,a,u,o,f)),!0}return!1}function P3(n){var a=yi(n.target);if(a!==null){var u=re(a);if(u!==null){if(a=u.tag,a===13){if(a=ge(u),a!==null){n.blockedOn=a,LI(n.priority,function(){if(u.tag===13){var o=ar(),f=Ua(u,o);f!==null&&Dn(f,u,o),Bp(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 gf(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var u=Up(n.nativeEvent);if(u===null){u=n.nativeEvent;var o=new u.constructor(u.type,u);j0=o,u.target.dispatchEvent(o),j0=null}else return a=bu(u),a!==null&&w3(a),n.blockedOn=u,!1;a.shift()}return!0}function U3(n,a,u){gf(n)&&u.delete(a)}function HM(){Fp=!1,Ja!==null&&gf(Ja)&&(Ja=null),ei!==null&&gf(ei)&&(ei=null),ti!==null&&gf(ti)&&(ti=null),Jo.forEach(U3),es.forEach(U3)}function bf(n,a){n.blockedOn===a&&(n.blockedOn=null,Fp||(Fp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,HM)))}var Ef=null;function H3(n){Ef!==n&&(Ef=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Ef===n&&(Ef=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(Hp(o||u)===null)continue;break}var h=bu(u);h!==null&&(n.splice(a,3),a-=3,Nh(h,{pending:!0,data:f,method:u.method,action:o},o,f))}}))}function ns(n){function a(B){return bf(B,n)}Ja!==null&&bf(Ja,n),ei!==null&&bf(ei,n),ti!==null&&bf(ti,n),Jo.forEach(a),es.forEach(a);for(var u=0;u<ni.length;u++){var o=ni[u];o.blockedOn===n&&(o.blockedOn=null)}for(;0<ni.length&&(u=ni[0],u.blockedOn===null);)P3(u),u.blockedOn===null&&ni.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],T=f[jn]||null;if(typeof h=="function")T||H3(u);else if(T){var R=null;if(h&&h.hasAttribute("formAction")){if(f=h,T=h[jn]||null)R=T.formAction;else if(Hp(f)!==null)continue}else R=T.action;typeof R=="function"?u[o+1]=R:(u.splice(o,3),o-=3),H3(u)}}}function zp(n){this._internalRoot=n}yf.prototype.render=zp.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(i(409));var u=a.current,o=ar();L3(u,o,n,a,null,null)},yf.prototype.unmount=zp.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;n.tag===0&&$u(),L3(n.current,2,null,n,null,null),ef(),a[gu]=null}};function yf(n){this._internalRoot=n}yf.prototype.unstable_scheduleHydration=function(n){if(n){var a=hy();n={blockedOn:null,target:n,priority:a};for(var u=0;u<ni.length&&a!==0&&a<ni[u].priority;u++);ni.splice(u,0,n),u===0&&P3(n)}};var F3=t.version;if(F3!=="19.0.0")throw Error(i(527,F3,"19.0.0"));ue.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=J(a),n=n!==null?Te(n):null,n=n===null?null:n.stateNode,n};var FM={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:V,findFiberByHostInstance:yi,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Tf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tf.isDisabled&&Tf.supportsFiber)try{an=Tf.inject(FM),Ft=Tf}catch{}}return Wu.createRoot=function(n,a){if(!l(n))throw Error(i(299));var u=!1,o="",f=rS,h=aS,T=iS,R=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&&(T=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(R=a.unstable_transitionCallbacks)),a=k3(n,1,!1,null,null,u,o,f,h,T,R,null),n[gu]=a.current,xp(n.nodeType===8?n.parentNode:n),new zp(a)},Wu.hydrateRoot=function(n,a,u){if(!l(n))throw Error(i(299));var o=!1,f="",h=rS,T=aS,R=iS,B=null,z=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&&(T=u.onCaughtError),u.onRecoverableError!==void 0&&(R=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(B=u.unstable_transitionCallbacks),u.formState!==void 0&&(z=u.formState)),a=k3(n,1,!0,a,u??null,o,f,h,T,R,B,z),a.context=D3(null),u=a.current,o=ar(),f=$a(o),f.callback=null,qa(u,f,o),a.current.lanes=o,oo(a,o),ea(a),n[gu]=a.current,xp(n),new yf(a)},Wu.version="19.0.0",Wu}var Zp;function G3(){if(Zp)return Cf.exports;Zp=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(),Cf.exports=q3(),Cf.exports}var X3=G3();function is(){return is=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},is.apply(null,arguments)}function Jp(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Q3=/^((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)-.*))$/,K3=Jp(function(e){return Q3.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function W3(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 Z3(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 em=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(Z3(this));var l=this.tags[this.tags.length-1];if(this.isSpeedy){var s=W3(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}(),pt="-ms-",xa="-moz-",De="-webkit-",tm="comm",us="rule",ls="decl",J3="@import",vf="@keyframes",eC="@layer",tC=Math.abs,Zu=String.fromCharCode,nC=Object.assign;function nm(e,t){return Bt(e,0)^45?(((t<<2^Bt(e,0))<<2^Bt(e,1))<<2^Bt(e,2))<<2^Bt(e,3):0}function rm(e){return e.trim()}function am(e,t){return(e=t.exec(e))?e[0]:e}function Ie(e,t,r){return e.replace(t,r)}function Ju(e,t){return e.indexOf(t)}function Bt(e,t){return e.charCodeAt(t)|0}function el(e,t,r){return e.slice(t,r)}function lr(e){return e.length}function Rf(e){return e.length}function os(e,t){return t.push(e),e}function im(e,t){return e.map(t).join("")}var ss=1,Fi=1,um=0,Cn=0,Zt=0,zi="";function cs(e,t,r,i,l,s,c){return{value:e,root:t,parent:r,type:i,props:l,children:s,line:ss,column:Fi,length:c,return:""}}function Mr(e,t){return nC(cs("",null,null,"",null,null,0),e,{length:-e.length},t)}function rC(){return Zt}function aC(){return Zt=Cn>0?Bt(zi,--Cn):0,Fi--,Zt===10&&(Fi=1,ss--),Zt}function Nn(){return Zt=Cn<um?Bt(zi,Cn++):0,Fi++,Zt===10&&(Fi=1,ss++),Zt}function Gn(){return Bt(zi,Cn)}function fs(){return Cn}function Yi(e,t){return el(zi,e,t)}function ai(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 Of(e){return ss=Fi=1,um=lr(zi=e),Cn=0,[]}function Nf(e){return zi="",e}function tl(e){return rm(Yi(Cn-1,kf(e===91?e+2:e===40?e+1:e)))}function iC(e){for(;(Zt=Gn())&&Zt<33;)Nn();return ai(e)>2||ai(Zt)>3?"":" "}function uC(e,t){for(;--t&&Nn()&&!(Zt<48||Zt>102||Zt>57&&Zt<65||Zt>70&&Zt<97););return Yi(e,fs()+(t<6&&Gn()==32&&Nn()==32))}function kf(e){for(;Nn();)switch(Zt){case e:return Cn;case 34:case 39:e!==34&&e!==39&&kf(Zt);break;case 40:e===41&&kf(e);break;case 92:Nn();break}return Cn}function lC(e,t){for(;Nn()&&e+Zt!==57;)if(e+Zt===84&&Gn()===47)break;return"/*"+Yi(t,Cn-1)+"*"+Zu(e===47?e:Nn())}function oC(e){for(;!ai(Gn());)Nn();return Yi(e,Cn)}function lm(e){return Nf(ds("",null,null,null,[""],e=Of(e),0,[0],e))}function ds(e,t,r,i,l,s,c,d,p){for(var m=0,b=0,E=c,S=0,y=0,N=0,_=1,L=1,v=1,H=0,D="",P=l,I=s,M=i,j=D;L;)switch(N=H,H=Nn()){case 40:if(N!=108&&Bt(j,E-1)==58){Ju(j+=Ie(tl(H),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:j+=tl(H);break;case 9:case 10:case 13:case 32:j+=iC(N);break;case 92:j+=uC(fs()-1,7);continue;case 47:switch(Gn()){case 42:case 47:os(sC(lC(Nn(),fs()),t,r),p);break;default:j+="/"}break;case 123*_:d[m++]=lr(j)*v;case 125*_:case 59:case 0:switch(H){case 0:case 125:L=0;case 59+b:v==-1&&(j=Ie(j,/\f/g,"")),y>0&&lr(j)-E&&os(y>32?sm(j+";",i,r,E-1):sm(Ie(j," ","")+";",i,r,E-2),p);break;case 59:j+=";";default:if(os(M=om(j,t,r,m,b,l,d,D,P=[],I=[],E),s),H===123)if(b===0)ds(j,t,M,M,P,s,E,d,I);else switch(S===99&&Bt(j,3)===110?100:S){case 100:case 108:case 109:case 115:ds(e,M,M,i&&os(om(e,M,M,0,0,l,d,D,l,P=[],E),I),l,I,E,d,i?P:I);break;default:ds(j,M,M,M,[""],I,0,d,I)}}m=b=y=0,_=v=1,D=j="",E=c;break;case 58:E=1+lr(j),y=N;default:if(_<1){if(H==123)--_;else if(H==125&&_++==0&&aC()==125)continue}switch(j+=Zu(H),H*_){case 38:v=b>0?1:(j+="\f",-1);break;case 44:d[m++]=(lr(j)-1)*v,v=1;break;case 64:Gn()===45&&(j+=tl(Nn())),S=Gn(),b=E=lr(D=j+=oC(fs())),H++;break;case 45:N===45&&lr(j)==2&&(_=0)}}return s}function om(e,t,r,i,l,s,c,d,p,m,b){for(var E=l-1,S=l===0?s:[""],y=Rf(S),N=0,_=0,L=0;N<i;++N)for(var v=0,H=el(e,E+1,E=tC(_=c[N])),D=e;v<y;++v)(D=rm(_>0?S[v]+" "+H:Ie(H,/&\f/g,S[v])))&&(p[L++]=D);return cs(e,t,r,l===0?us:d,p,m,b)}function sC(e,t,r){return cs(e,t,r,tm,Zu(rC()),el(e,2,-2),0)}function sm(e,t,r,i){return cs(e,t,r,ls,el(e,0,i),el(e,i+1,-1),i)}function Br(e,t){for(var r="",i=Rf(e),l=0;l<i;l++)r+=t(e[l],l,e,t)||"";return r}function cm(e,t,r,i){switch(e.type){case eC:if(e.children.length)break;case J3:case ls:return e.return=e.return||e.value;case tm:return"";case vf:return e.return=e.value+"{"+Br(e.children,i)+"}";case us:e.value=e.props.join(",")}return lr(r=Br(e.children,i))?e.return=e.value+"{"+r+"}":""}function fm(e){var t=Rf(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 dm(e){return function(t){t.root||(t=t.return)&&e(t)}}var cC=function(t,r,i){for(var l=0,s=0;l=s,s=Gn(),l===38&&s===12&&(r[i]=1),!ai(s);)Nn();return Yi(t,Cn)},fC=function(t,r){var i=-1,l=44;do switch(ai(l)){case 0:l===38&&Gn()===12&&(r[i]=1),t[i]+=cC(Cn-1,r,i);break;case 2:t[i]+=tl(l);break;case 4:if(l===44){t[++i]=Gn()===58?"&\f":"",r[i]=t[i].length;break}default:t[i]+=Zu(l)}while(l=Nn());return t},dC=function(t,r){return Nf(fC(Of(t),r))},hm=new WeakMap,hC=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=dC(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]}}},pC=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(nm(e,t)){case 5103:return De+"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 De+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return De+e+xa+e+pt+e+e;case 6828:case 4268:return De+e+pt+e+e;case 6165:return De+e+pt+"flex-"+e+e;case 5187:return De+e+Ie(e,/(\w+).+(:[^]+)/,De+"box-$1$2"+pt+"flex-$1$2")+e;case 5443:return De+e+pt+"flex-item-"+Ie(e,/flex-|-self/,"")+e;case 4675:return De+e+pt+"flex-line-pack"+Ie(e,/align-content|flex-|-self/,"")+e;case 5548:return De+e+pt+Ie(e,"shrink","negative")+e;case 5292:return De+e+pt+Ie(e,"basis","preferred-size")+e;case 6060:return De+"box-"+Ie(e,"-grow","")+De+e+pt+Ie(e,"grow","positive")+e;case 4554:return De+Ie(e,/([^-])(transform)/g,"$1"+De+"$2")+e;case 6187:return Ie(Ie(Ie(e,/(zoom-|grab)/,De+"$1"),/(image-set)/,De+"$1"),e,"")+e;case 5495:case 3959:return Ie(e,/(image-set\([^]*)/,De+"$1$`$1");case 4968:return Ie(Ie(e,/(.+:)(flex-)?(.*)/,De+"box-pack:$3"+pt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+De+e+e;case 4095:case 3583:case 4068:case 2532:return Ie(e,/(.+)-inline(.+)/,De+"$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(lr(e)-1-t>6)switch(Bt(e,t+1)){case 109:if(Bt(e,t+4)!==45)break;case 102:return Ie(e,/(.+:)(.+)-([^]+)/,"$1"+De+"$2-$3$1"+xa+(Bt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ju(e,"stretch")?pm(Ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Bt(e,t+1)!==115)break;case 6444:switch(Bt(e,lr(e)-3-(~Ju(e,"!important")&&10))){case 107:return Ie(e,":",":"+De)+e;case 101:return Ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+De+(Bt(e,14)===45?"inline-":"")+"box$3$1"+De+"$2$3$1"+pt+"$2box$3")+e}break;case 5936:switch(Bt(e,t+11)){case 114:return De+e+pt+Ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return De+e+pt+Ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return De+e+pt+Ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return De+e+pt+e+e}return e}var mC=function(t,r,i,l){if(t.length>-1&&!t.return)switch(t.type){case ls:t.return=pm(t.value,t.length);break;case vf:return Br([Mr(t,{value:Ie(t.value,"@","@"+De)})],l);case us:if(t.length)return im(t.props,function(s){switch(am(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Br([Mr(t,{props:[Ie(s,/:(read-\w+)/,":"+xa+"$1")]})],l);case"::placeholder":return Br([Mr(t,{props:[Ie(s,/:(plac\w+)/,":"+De+"input-$1")]}),Mr(t,{props:[Ie(s,/:(plac\w+)/,":"+xa+"$1")]}),Mr(t,{props:[Ie(s,/:(plac\w+)/,pt+"input-$1")]})],l)}return""})}},gC=[mC],bC=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(_){var L=_.getAttribute("data-emotion");L.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var l=t.stylisPlugins||gC,s={},c,d=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(_){for(var L=_.getAttribute("data-emotion").split(" "),v=1;v<L.length;v++)s[L[v]]=!0;d.push(_)});var p,m=[hC,pC];{var b,E=[cm,dm(function(_){b.insert(_)})],S=fm(m.concat(l,E)),y=function(L){return Br(lm(L),S)};p=function(L,v,H,D){b=H,y(L?L+"{"+v.styles+"}":v.styles),D&&(N.inserted[v.name]=!0)}}var N={key:r,sheet:new em({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 N.sheet.hydrate(d),N},Df={exports:{}},yt={};/** @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 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
|
|
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 mm;function EC(){if(mm)return yt;mm=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,S=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,N=e?Symbol.for("react.lazy"):60116,_=e?Symbol.for("react.block"):60121,L=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,H=e?Symbol.for("react.scope"):60119;function D(I){if(typeof I=="object"&&I!==null){var M=I.$$typeof;switch(M){case t:switch(I=I.type,I){case p:case m:case i:case s:case l:case E:return I;default:switch(I=I&&I.$$typeof,I){case d:case b:case N:case y:case c:return I;default:return M}}case r:return M}}}function P(I){return D(I)===m}return yt.AsyncMode=p,yt.ConcurrentMode=m,yt.ContextConsumer=d,yt.ContextProvider=c,yt.Element=t,yt.ForwardRef=b,yt.Fragment=i,yt.Lazy=N,yt.Memo=y,yt.Portal=r,yt.Profiler=s,yt.StrictMode=l,yt.Suspense=E,yt.isAsyncMode=function(I){return P(I)||D(I)===p},yt.isConcurrentMode=P,yt.isContextConsumer=function(I){return D(I)===d},yt.isContextProvider=function(I){return D(I)===c},yt.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===t},yt.isForwardRef=function(I){return D(I)===b},yt.isFragment=function(I){return D(I)===i},yt.isLazy=function(I){return D(I)===N},yt.isMemo=function(I){return D(I)===y},yt.isPortal=function(I){return D(I)===r},yt.isProfiler=function(I){return D(I)===s},yt.isStrictMode=function(I){return D(I)===l},yt.isSuspense=function(I){return D(I)===E},yt.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===i||I===m||I===s||I===l||I===E||I===S||typeof I=="object"&&I!==null&&(I.$$typeof===N||I.$$typeof===y||I.$$typeof===c||I.$$typeof===d||I.$$typeof===b||I.$$typeof===L||I.$$typeof===v||I.$$typeof===H||I.$$typeof===_)},yt.typeOf=D,yt}var gm;function yC(){return gm||(gm=1,Df.exports=EC()),Df.exports}var Lf,bm;function TC(){if(bm)return Lf;bm=1;var e=yC(),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(N){return e.isMemo(N)?l:s[N.$$typeof]||t}var d=Object.defineProperty,p=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,b=Object.getOwnPropertyDescriptor,E=Object.getPrototypeOf,S=Object.prototype;function y(N,_,L){if(typeof _!="string"){if(S){var v=E(_);v&&v!==S&&y(N,v,L)}var H=p(_);m&&(H=H.concat(m(_)));for(var D=c(N),P=c(_),I=0;I<H.length;++I){var M=H[I];if(!r[M]&&!(L&&L[M])&&!(P&&P[M])&&!(D&&D[M])){var j=b(_,M);try{d(N,M,j)}catch{}}}}return N}return Lf=y,Lf}TC();var SC=!0;function CC(e,t,r){var i="";return r.split(" ").forEach(function(l){e[l]!==void 0?t.push(e[l]+";"):l&&(i+=l+" ")}),i}var Em=function(t,r,i){var l=t.key+"-"+r.name;(i===!1||SC===!1)&&t.registered[l]===void 0&&(t.registered[l]=r.styles)},ym=function(t,r,i){Em(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 AC(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 xC={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},_C=/[A-Z]|^ms/g,vC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Tm=function(t){return t.charCodeAt(1)===45},Sm=function(t){return t!=null&&typeof t!="boolean"},If=Jp(function(e){return Tm(e)?e:e.replace(_C,"-$&").toLowerCase()}),Cm=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(vC,function(i,l,s){return Pr={name:l,styles:s,next:Pr},l})}return xC[t]!==1&&!Tm(t)&&typeof r=="number"&&r!==0?r+"px":r};function nl(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 Pr={name:l.name,styles:l.styles,next:Pr},l.name;var s=r;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)Pr={name:c.name,styles:c.styles,next:Pr},c=c.next;var d=s.styles+";";return d}return RC(e,t,r)}case"function":{if(e!==void 0){var p=Pr,m=r(e);return Pr=p,nl(e,t,m)}break}}var b=r;if(t==null)return b;var E=t[b];return E!==void 0?E:b}function RC(e,t,r){var i="";if(Array.isArray(r))for(var l=0;l<r.length;l++)i+=nl(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+=If(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+=If(s)+":"+Cm(s,c[p])+";");else{var m=nl(e,t,c);switch(s){case"animation":case"animationName":{i+=If(s)+":"+m+";";break}default:i+=s+"{"+m+"}"}}}return i}var Am=/label:\s*([^\s;{]+)\s*(;|$)/g,Pr;function hs(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="";Pr=void 0;var s=e[0];if(s==null||s.raw===void 0)i=!1,l+=nl(r,t,s);else{var c=s;l+=c[0]}for(var d=1;d<e.length;d++)if(l+=nl(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=AC(l)+m;return{name:E,styles:l,next:Pr}}var OC=function(t){return t()},xm=$p.useInsertionEffect?$p.useInsertionEffect:!1,NC=xm||OC,_m=xm||A.useLayoutEffect,vm=A.createContext(typeof HTMLElement<"u"?bC({key:"css"}):null),kC=vm.Provider,Rm=function(t){return A.forwardRef(function(r,i){var l=A.useContext(vm);return t(r,l,i)})},rl=A.createContext({}),DC=function(){return A.useContext(rl)},LC=Rm(function(e,t){var r=e.styles,i=hs([r],void 0,A.useContext(rl)),l=A.useRef();return _m(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]),_m(function(){var s=l.current,c=s[0],d=s[1];if(d){s[1]=!1;return}if(i.next!==void 0&&ym(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 ps(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return hs(t)}var wf=function(){var t=ps.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},IC=K3,wC=function(t){return t!=="theme"},Om=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?IC:wC},Nm=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},MC=function(t){var r=t.cache,i=t.serialized,l=t.isStringTag;return Em(r,i,l),NC(function(){return ym(r,i,l)}),null},BC=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=Nm(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{E.push(b[0][0]);for(var S=b.length,y=1;y<S;y++)E.push(b[y],b[0][y])}var N=Rm(function(_,L,v){var H=m&&_.as||l,D="",P=[],I=_;if(_.theme==null){I={};for(var M in _)I[M]=_[M];I.theme=A.useContext(rl)}typeof _.className=="string"?D=CC(L.registered,P,_.className):_.className!=null&&(D=_.className+" ");var j=hs(E.concat(P),L.registered,I);D+=L.key+"-"+j.name,c!==void 0&&(D+=" "+c);var ie=m&&d===void 0?Om(H):p,V={};for(var x in _)m&&x==="as"||ie(x)&&(V[x]=_[x]);return V.className=D,v&&(V.ref=v),A.createElement(A.Fragment,null,A.createElement(MC,{cache:L,serialized:j,isStringTag:typeof H=="string"}),A.createElement(H,V))});return N.displayName=s!==void 0?s:"Styled("+(typeof l=="string"?l:l.displayName||l.name||"Component")+")",N.defaultProps=t.defaultProps,N.__emotion_real=N,N.__emotion_base=l,N.__emotion_styles=E,N.__emotion_forwardProp=d,Object.defineProperty(N,"toString",{value:function(){return"."+c}}),N.withComponent=function(_,L){return e(_,is({},r,L,{shouldForwardProp:Nm(N,L,!0)})).apply(void 0,E)},N}},PC=["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"],Fe=BC.bind();PC.forEach(function(e){Fe[e]=Fe(e)});function VM(){}function $M(){}function km(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 Dm(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const UC=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,HC=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,FC={};function Lm(e,t){return(FC.jsx?HC:UC).test(e)}const zC=/[ \t\n\f\r]/g;function YC(e){return typeof e=="object"?e.type==="text"?Im(e.value):!1:Im(e)}function Im(e){return e.replace(zC,"")===""}let al=class{constructor(t,r,i){this.property=t,this.normal=r,i&&(this.space=i)}};al.prototype.property={},al.prototype.normal={},al.prototype.space=null;function wm(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 al(r,i,t)}function Mf(e){return e.toLowerCase()}let or=class{constructor(t,r){this.property=t,this.attribute=r}};or.prototype.space=null,or.prototype.boolean=!1,or.prototype.booleanish=!1,or.prototype.overloadedBoolean=!1,or.prototype.number=!1,or.prototype.commaSeparated=!1,or.prototype.spaceSeparated=!1,or.prototype.commaOrSpaceSeparated=!1,or.prototype.mustUseProperty=!1,or.prototype.defined=!1;let jC=0;const We=ii(),Jt=ii(),Mm=ii(),be=ii(),kt=ii(),ji=ii(),Xn=ii();function ii(){return 2**++jC}const Bf=Object.freeze(Object.defineProperty({__proto__:null,boolean:We,booleanish:Jt,commaOrSpaceSeparated:Xn,commaSeparated:ji,number:be,overloadedBoolean:Mm,spaceSeparated:kt},Symbol.toStringTag,{value:"Module"})),Pf=Object.keys(Bf);let Uf=class extends or{constructor(t,r,i,l){let s=-1;if(super(t,r),Bm(this,"space",l),typeof i=="number")for(;++s<Pf.length;){const c=Pf[s];Bm(this,Pf[s],(i&Bf[c])===Bf[c])}}};Uf.prototype.defined=!0;function Bm(e,t,r){r&&(e[t]=r)}const VC={}.hasOwnProperty;function Vi(e){const t={},r={};let i;for(i in e.properties)if(VC.call(e.properties,i)){const l=e.properties[i],s=new Uf(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,r[Mf(i)]=i,r[Mf(s.attribute)]=i}return new al(t,r,e.space)}const Pm=Vi({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}}),Um=Vi({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Hm(e,t){return t in e?e[t]:t}function Fm(e,t){return Hm(e,t.toLowerCase())}const zm=Vi({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Fm,properties:{xmlns:null,xmlnsXLink:null}}),Ym=Vi({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Jt,ariaAutoComplete:null,ariaBusy:Jt,ariaChecked:Jt,ariaColCount:be,ariaColIndex:be,ariaColSpan:be,ariaControls:kt,ariaCurrent:null,ariaDescribedBy:kt,ariaDetails:null,ariaDisabled:Jt,ariaDropEffect:kt,ariaErrorMessage:null,ariaExpanded:Jt,ariaFlowTo:kt,ariaGrabbed:Jt,ariaHasPopup:null,ariaHidden:Jt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:kt,ariaLevel:be,ariaLive:null,ariaModal:Jt,ariaMultiLine:Jt,ariaMultiSelectable:Jt,ariaOrientation:null,ariaOwns:kt,ariaPlaceholder:null,ariaPosInSet:be,ariaPressed:Jt,ariaReadOnly:Jt,ariaRelevant:null,ariaRequired:Jt,ariaRoleDescription:kt,ariaRowCount:be,ariaRowIndex:be,ariaRowSpan:be,ariaSelected:Jt,ariaSetSize:be,ariaSort:null,ariaValueMax:be,ariaValueMin:be,ariaValueNow:be,ariaValueText:null,role:null}}),$C=Vi({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Fm,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ji,acceptCharset:kt,accessKey:kt,action:null,allow:null,allowFullScreen:We,allowPaymentRequest:We,allowUserMedia:We,alt:null,as:null,async:We,autoCapitalize:null,autoComplete:kt,autoFocus:We,autoPlay:We,blocking:kt,capture:null,charSet:null,checked:We,cite:null,className:kt,cols:be,colSpan:null,content:null,contentEditable:Jt,controls:We,controlsList:kt,coords:be|ji,crossOrigin:null,data:null,dateTime:null,decoding:null,default:We,defer:We,dir:null,dirName:null,disabled:We,download:Mm,draggable:Jt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:We,formTarget:null,headers:kt,height:be,hidden:We,high:be,href:null,hrefLang:null,htmlFor:kt,httpEquiv:kt,id:null,imageSizes:null,imageSrcSet:null,inert:We,inputMode:null,integrity:null,is:null,isMap:We,itemId:null,itemProp:kt,itemRef:kt,itemScope:We,itemType:kt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:We,low:be,manifest:null,max:null,maxLength:be,media:null,method:null,min:null,minLength:be,multiple:We,muted:We,name:null,nonce:null,noModule:We,noValidate:We,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:We,optimum:be,pattern:null,ping:kt,placeholder:null,playsInline:We,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:We,referrerPolicy:null,rel:kt,required:We,reversed:We,rows:be,rowSpan:be,sandbox:kt,scope:null,scoped:We,seamless:We,selected:We,shadowRootClonable:We,shadowRootDelegatesFocus:We,shadowRootMode:null,shape:null,size:be,sizes:null,slot:null,span:be,spellCheck:Jt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:be,step:null,style:null,tabIndex:be,target:null,title:null,translate:null,type:null,typeMustMatch:We,useMap:null,value:Jt,width:be,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:kt,axis:null,background:null,bgColor:null,border:be,borderColor:null,bottomMargin:be,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:We,declare:We,event:null,face:null,frame:null,frameBorder:null,hSpace:be,leftMargin:be,link:null,longDesc:null,lowSrc:null,marginHeight:be,marginWidth:be,noResize:We,noHref:We,noShade:We,noWrap:We,object:null,profile:null,prompt:null,rev:null,rightMargin:be,rules:null,scheme:null,scrolling:Jt,standby:null,summary:null,text:null,topMargin:be,valueType:null,version:null,vAlign:null,vLink:null,vSpace:be,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:We,disableRemotePlayback:We,prefix:null,property:null,results:be,security:null,unselectable:null}}),qC=Vi({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:Hm,properties:{about:Xn,accentHeight:be,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:be,amplitude:be,arabicForm:null,ascent:be,attributeName:null,attributeType:null,azimuth:be,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:be,by:null,calcMode:null,capHeight:be,className:kt,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:be,diffuseConstant:be,direction:null,display:null,dur:null,divisor:be,dominantBaseline:null,download:We,dx:null,dy:null,edgeMode:null,editable:null,elevation:be,enableBackground:null,end:null,event:null,exponent:be,externalResourcesRequired:null,fill:null,fillOpacity:be,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:ji,g2:ji,glyphName:ji,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:be,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:be,horizOriginX:be,horizOriginY:be,id:null,ideographic:be,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:be,k:be,k1:be,k2:be,k3:be,k4:be,kernelMatrix:Xn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:be,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:be,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:be,overlineThickness:be,paintOrder:null,panose1:null,path:null,pathLength:be,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:kt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:be,pointsAtY:be,pointsAtZ:be,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:be,specularExponent:be,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:be,strikethroughThickness:be,string:null,stroke:null,strokeDashArray:Xn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:be,strokeOpacity:be,strokeWidth:null,style:null,surfaceScale:be,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Xn,tabIndex:be,tableValues:null,target:null,targetX:be,targetY:be,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:be,underlineThickness:be,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:be,values:null,vAlphabetic:be,vMathematical:be,vectorEffect:null,vHanging:be,vIdeographic:be,version:null,vertAdvY:be,vertOriginX:be,vertOriginY:be,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:be,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),GC=/^data[-\w.:]+$/i,jm=/-[a-z]/g,XC=/[A-Z]/g;function Vm(e,t){const r=Mf(t);let i=t,l=or;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&GC.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(jm,KC);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!jm.test(s)){let c=s.replace(XC,QC);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}l=Uf}return new l(i,t)}function QC(e){return"-"+e.toLowerCase()}function KC(e){return e.charAt(1).toUpperCase()}const WC={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"},$m=wm([Um,Pm,zm,Ym,$C],"html"),il=wm([Um,Pm,zm,Ym,qC],"svg");function qm(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Gm(e){return e.join(" ").trim()}var $i={},Hf,Xm;function ZC(){if(Xm)return Hf;Xm=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="",S="comment",y="declaration";Hf=function(_,L){if(typeof _!="string")throw new TypeError("First argument must be a string");if(!_)return[];L=L||{};var v=1,H=1;function D(W){var q=W.match(t);q&&(v+=q.length);var ee=W.lastIndexOf(p);H=~ee?W.length-ee:H+W.length}function P(){var W={line:v,column:H};return function(q){return q.position=new I(W),ie(),q}}function I(W){this.start=W,this.end={line:v,column:H},this.source=L.source}I.prototype.content=_;function M(W){var q=new Error(L.source+":"+v+":"+H+": "+W);if(q.reason=W,q.filename=L.source,q.line=v,q.column=H,q.source=_,!L.silent)throw q}function j(W){var q=W.exec(_);if(q){var ee=q[0];return D(ee),_=_.slice(ee.length),q}}function ie(){j(r)}function V(W){var q;for(W=W||[];q=x();)q!==!1&&W.push(q);return W}function x(){var W=P();if(!(m!=_.charAt(0)||b!=_.charAt(1))){for(var q=2;E!=_.charAt(q)&&(b!=_.charAt(q)||m!=_.charAt(q+1));)++q;if(q+=2,E===_.charAt(q-1))return M("End of comment missing");var ee=_.slice(2,q-2);return H+=2,D(ee),_=_.slice(q),H+=2,W({type:S,comment:ee})}}function Y(){var W=P(),q=j(i);if(q){if(x(),!j(l))return M("property missing ':'");var ee=j(s),Q=W({type:y,property:N(q[0].replace(e,E)),value:ee?N(ee[0].replace(e,E)):E});return j(c),Q}}function K(){var W=[];V(W);for(var q;q=Y();)q!==!1&&(W.push(q),V(W));return W}return ie(),K()};function N(_){return _?_.replace(d,E):E}return Hf}var Qm;function JC(){if(Qm)return $i;Qm=1;var e=$i&&$i.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty($i,"__esModule",{value:!0}),$i.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 $i}var e6=JC();const Km=ur(e6),t6=Km.default||Km,ms=Wm("end"),Ur=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 n6(e){const t=Ur(e),r=ms(e);if(t&&r)return{start:t,end:r}}function ul(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?Ff(e):""}function Ff(e){return Jm(e&&e.line)+":"+Jm(e&&e.column)}function Zm(e){return Ff(e&&e.start)+"-"+Ff(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=ul(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,r6=new Map,a6=/[A-Z]/g,i6=/-([a-z])/g,u6=new Set(["table","tbody","thead","tfoot","tr"]),l6=new Set(["td","th"]),e1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function o6(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=g6(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=m6(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"?il:$m,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 s6(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return c6(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return d6(e,t,r);if(t.type==="mdxjsEsm")return f6(e,t);if(t.type==="root")return h6(e,t,r);if(t.type==="text")return p6(e,t)}function s6(e,t,r){const i=e.schema;let l=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(l=il,e.schema=l),e.ancestors.push(t);const s=r1(e,t.tagName,!1),c=b6(e,t);let d=jf(e,t);return u6.has(t.tagName)&&(d=d.filter(function(p){return typeof p=="string"?!YC(p):!0})),n1(e,c,s,t),Yf(c,d),e.ancestors.pop(),e.schema=i,e.create(t,s,c,r)}function c6(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)}ll(e,t.position)}function f6(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ll(e,t.position)}function d6(e,t,r){const i=e.schema;let l=i;t.name==="svg"&&i.space==="html"&&(l=il,e.schema=l),e.ancestors.push(t);const s=t.name===null?e.Fragment:r1(e,t.name,!0),c=E6(e,t),d=jf(e,t);return n1(e,c,s,t),Yf(c,d),e.ancestors.pop(),e.schema=i,e.create(t,s,c,r)}function h6(e,t,r){const i={};return Yf(i,jf(e,t)),e.create(t,e.Fragment,i,r)}function p6(e,t){return t.value}function n1(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 m6(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 g6(e,t){return r;function r(i,l,s,c){const d=Array.isArray(s.children),p=Ur(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 b6(e,t){const r={};let i,l;for(l in t.properties)if(l!=="children"&&zf.call(t.properties,l)){const s=y6(e,l,t.properties[l]);if(s){const[c,d]=s;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&l6.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 E6(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 ll(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 ll(e,t.position);else s=i.value===null?!0:i.value;r[l]=s}return r}function jf(e,t){const r=[];let i=-1;const l=e.passKeys?new Map:r6;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 y6(e,t,r){const i=Vm(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?Dm(r):Gm(r)),i.property==="style"){let l=typeof r=="object"?r:T6(e,String(r));return e.stylePropertyNameCase==="css"&&(l=S6(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&i.space?WC[i.property]||i.property:i.attribute,r]}}function T6(e,t){const r={};try{t6(t,i)}catch(l){if(!e.ignoreInvalidStyle){const s=l,c=new An("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:s,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw c.file=e.filePath||void 0,c.url=e1+"#cannot-parse-style-attribute",c}}return r;function i(l,s){let c=l;c.slice(0,2)!=="--"&&(c.slice(0,4)==="-ms-"&&(c="ms-"+c.slice(4)),c=c.replace(i6,A6)),r[c]=s}}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 zf.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(i);ll(e)}function ll(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 S6(e){const t={};let r;for(r in e)zf.call(e,r)&&(t[C6(r)]=e[r]);return t}function C6(e){let t=e.replace(a6,x6);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function A6(e,t){return t.toUpperCase()}function x6(e){return"-"+e.toLowerCase()}const Vf={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 $f={exports:{}},ol={};/**
|
|
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={};/**
|
|
50
50
|
* @license React
|
|
51
51
|
* react-jsx-runtime.production.js
|
|
52
52
|
*
|
|
@@ -54,37 +54,37 @@ 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 _6(){if(a1)return ol;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 ol.Fragment=t,ol.jsx=r,ol.jsxs=r,ol}var i1;function v6(){return i1||(i1=1,$f.exports=_6()),$f.exports}var pe=v6();const R6={};function O6(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(N6(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 N6(e){return!!(e&&typeof e=="object")}const o1=document.createElement("i");function qf(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 ta(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 sr(e,t){return e.length>0?(ta(e,e.length,0,t),e):t}const s1={}.hasOwnProperty;function k6(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];L6(l[c],Array.isArray(d)?d:d?[d]:[])}}}function L6(e,t){let r=-1;const i=[];for(;++r<t.length;)(t[r].add==="after"?e:i).push(t[r]);ta(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 qi(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Hr=_a(/[A-Za-z]/),Qn=_a(/[\dA-Za-z]/),I6=_a(/[#-'*+\--9=?A-Z^-~]/);function Gf(e){return e!==null&&(e<32||e===127)}const Xf=_a(/\d/),w6=_a(/[\dA-Fa-f]/),M6=_a(/[!-/:-@[-`{-~]/);function Ve(e){return e!==null&&e<-2}function Ln(e){return e!==null&&(e<0||e===32)}function Et(e){return e===-2||e===-1||e===32}const B6=_a(new RegExp("\\p{P}|\\p{S}","u")),P6=_a(/\s/);function _a(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Gi(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 Dt(e,t,r,i){const l=i?i-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(p){return Et(p)?(e.enter(r),d(p)):t(p)}function d(p){return Et(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"),Dt(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 Ve(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(D){if(i<r.length){const P=r[i];return t.containerState=P[1],e.attempt(P[0].continuation,p,m)(D)}return m(D)}function p(D){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&H();const P=t.events.length;let I=P,M;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){M=t.events[I][1].end;break}v(i);let j=P;for(;j<t.events.length;)t.events[j][1].end=Object.assign({},M),j++;return ta(t.events,I+1,0,t.events.slice(P)),t.events.length=j,m(D)}return d(D)}function m(D){if(i===r.length){if(!l)return S(D);if(l.currentConstruct&&l.currentConstruct.concrete)return N(D);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(f1,b,E)(D)}function b(D){return l&&H(),v(i),S(D)}function E(D){return t.parser.lazy[t.now().line]=i!==r.length,c=t.now().offset,N(D)}function S(D){return t.containerState={},e.attempt(f1,y,N)(D)}function y(D){return i++,r.push([t.currentConstruct,t.containerState]),S(D)}function N(D){if(D===null){l&&H(),v(0),e.consume(D);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:s,_tokenizer:l}),_(D)}function _(D){if(D===null){L(e.exit("chunkFlow"),!0),v(0),e.consume(D);return}return Ve(D)?(e.consume(D),L(e.exit("chunkFlow")),i=0,t.interrupt=void 0,d):(e.consume(D),_)}function L(D,P){const I=t.sliceStream(D);if(P&&I.push(null),D.previous=s,s&&(s.next=D),s=D,l.defineSkip(D.start),l.write(I),t.parser.lazy[D.start.line]){let M=l.events.length;for(;M--;)if(l.events[M][1].start.offset<c&&(!l.events[M][1].end||l.events[M][1].end.offset>c))return;const j=t.events.length;let ie=j,V,x;for(;ie--;)if(t.events[ie][0]==="exit"&&t.events[ie][1].type==="chunkFlow"){if(V){x=t.events[ie][1].end;break}V=!0}for(v(i),M=j;M<t.events.length;)t.events[M][1].end=Object.assign({},x),M++;ta(t.events,ie+1,0,t.events.slice(j)),t.events.length=M}}function v(D){let P=r.length;for(;P-- >D;){const I=r[P];t.containerState=I[1],I[0].exit.call(t,e)}r.length=D}function H(){l.write([null]),s=void 0,l=void 0,t.containerState._closeFlow=void 0}}function Y6(e,t,r){return Dt(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||Ln(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 Kf={name:"attention",tokenize:V6,resolveAll:j6};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=Object.assign({},e[i][1].end),S=Object.assign({},e[r][1].start);h1(E,-p),h1(S,p),c={type:p>1?"strongSequence":"emphasisSequence",start:E,end:Object.assign({},e[i][1].end)},d={type:p>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:S},s={type:p>1?"strongText":"emphasisText",start:Object.assign({},e[i][1].end),end:Object.assign({},e[r][1].start)},l={type:p>1?"strong":"emphasis",start:Object.assign({},c.start),end:Object.assign({},d.end)},e[i][1].end=Object.assign({},c.start),e[r][1].start=Object.assign({},d.end),m=[],e[i][1].end.offset-e[i][1].start.offset&&(m=sr(m,[["enter",e[i][1],t],["exit",e[i][1],t]])),m=sr(m,[["enter",l,t],["enter",c,t],["exit",c,t],["enter",s,t]]),m=sr(m,Qf(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),m=sr(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=sr(m,[["enter",e[r][1],t],["exit",e[r][1],t]])):b=0,ta(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 V6(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),S=!l||l===2&&b||r.includes(i);return m._open=!!(s===42?E:E&&(l||!S)),m._close=!!(s===42?S:S&&(b||!E)),t(p)}}function h1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const $6={name:"autolink",tokenize:q6};function q6(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 Hr(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||Gf(y)?r(y):(e.consume(y),p)}function m(y){return y===64?(e.consume(y),b):I6(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):S(y)}function S(y){if((y===45||Qn(y))&&i++<63){const N=y===45?S:E;return e.consume(y),N}return r(y)}}const gs={tokenize:G6,partial:!0};function G6(e,t,r){return i;function i(s){return Et(s)?Dt(e,l,"linePrefix")(s):l(s)}function l(s){return s===null||Ve(s)?t(s):r(s)}}const p1={name:"blockQuote",tokenize:X6,continuation:{tokenize:Q6},exit:K6};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 Et(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 Et(c)?Dt(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 M6(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=w6,b):(e.enter("characterReferenceValue"),s=7,c=Xf,b(E))}function b(E){if(E===59&&l){const S=e.exit("characterReferenceValue");return c===Qn&&!qf(i.sliceSerialize(S))?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={tokenize:eA,partial:!0},E1={name:"codeFenced",tokenize:J6,concrete:!0};function J6(e,t,r){const i=this,l={tokenize:I,partial:!0};let s=0,c=0,d;return p;function p(M){return m(M)}function m(M){const j=i.events[i.events.length-1];return s=j&&j[1].type==="linePrefix"?j[2].sliceSerialize(j[1],!0).length:0,d=M,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),b(M)}function b(M){return M===d?(c++,e.consume(M),b):c<3?r(M):(e.exit("codeFencedFenceSequence"),Et(M)?Dt(e,E,"whitespace")(M):E(M))}function E(M){return M===null||Ve(M)?(e.exit("codeFencedFence"),i.interrupt?t(M):e.check(b1,_,P)(M)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),S(M))}function S(M){return M===null||Ve(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),E(M)):Et(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Dt(e,y,"whitespace")(M)):M===96&&M===d?r(M):(e.consume(M),S)}function y(M){return M===null||Ve(M)?E(M):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),N(M))}function N(M){return M===null||Ve(M)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),E(M)):M===96&&M===d?r(M):(e.consume(M),N)}function _(M){return e.attempt(l,P,L)(M)}function L(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),v}function v(M){return s>0&&Et(M)?Dt(e,H,"linePrefix",s+1)(M):H(M)}function H(M){return M===null||Ve(M)?e.check(b1,_,P)(M):(e.enter("codeFlowValue"),D(M))}function D(M){return M===null||Ve(M)?(e.exit("codeFlowValue"),H(M)):(e.consume(M),D)}function P(M){return e.exit("codeFenced"),t(M)}function I(M,j,ie){let V=0;return x;function x(ee){return M.enter("lineEnding"),M.consume(ee),M.exit("lineEnding"),Y}function Y(ee){return M.enter("codeFencedFence"),Et(ee)?Dt(M,K,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ee):K(ee)}function K(ee){return ee===d?(M.enter("codeFencedFenceSequence"),W(ee)):ie(ee)}function W(ee){return ee===d?(V++,M.consume(ee),W):V>=c?(M.exit("codeFencedFenceSequence"),Et(ee)?Dt(M,q,"whitespace")(ee):q(ee)):ie(ee)}function q(ee){return ee===null||Ve(ee)?(M.exit("codeFencedFence"),j(ee)):ie(ee)}}}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 Wf={name:"codeIndented",tokenize:nA},tA={tokenize:rA,partial:!0};function nA(e,t,r){const i=this;return l;function l(m){return e.enter("codeIndented"),Dt(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):Ve(m)?e.attempt(tA,c,p)(m):(e.enter("codeFlowValue"),d(m))}function d(m){return m===null||Ve(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):Ve(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):Dt(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):Ve(c)?l(c):r(c)}}const aA={name:"codeText",tokenize:lA,resolve:iA,previous:uA};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)):Ve(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||Ve(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&&sl(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),sl(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),sl(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);sl(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);sl(this.left,r.reverse())}}}function sl(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--&&(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);l&&(i[1].end=Object.assign({},b.get(l)[1].start),d=b.slice(l,r),d.unshift(i),b.splice(l,r-l+1,d))}}return ta(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=[],c=r._tokenizer||i.parser[r.contentType](r.start),d=c.events,p=[],m={};let b,E,S=-1,y=r,N=0,_=0;const L=[_];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;++S<d.length;)d[S][0]==="exit"&&d[S-1][0]==="enter"&&d[S][1].type===d[S-1][1].type&&d[S][1].start.line!==d[S][1].end.line&&(_=S+1,L.push(_),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(c.events=[],y?(y._tokenizer=void 0,y.previous=void 0):L.pop(),S=L.length;S--;){const v=d.slice(L[S],L[S+1]),H=s.pop();p.push([H,H+v.length-1]),e.splice(H,2,v)}for(p.reverse(),S=-1;++S<p.length;)m[N+p[S][0]]=N+p[S][1],N+=p[S][1]-p[S][0]-1;return m}const cA={tokenize:hA,resolve:dA},fA={tokenize:pA,partial:!0};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):Ve(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"),Dt(e,s,"linePrefix")}function s(c){if(c===null||Ve(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(v){return v===60?(e.enter(i),e.enter(l),e.enter(s),e.consume(v),e.exit(s),S):v===null||v===32||v===41||Gf(v)?r(v):(e.enter(i),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),_(v))}function S(v){return v===62?(e.enter(s),e.consume(v),e.exit(s),e.exit(l),e.exit(i),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===62?(e.exit("chunkString"),e.exit(d),S(v)):v===null||v===60||Ve(v)?r(v):(e.consume(v),v===92?N:y)}function N(v){return v===60||v===62||v===92?(e.consume(v),y):y(v)}function _(v){return!b&&(v===null||v===41||Ln(v))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(i),t(v)):b<m&&v===40?(e.consume(v),b++,_):v===41?(e.consume(v),b--,_):v===null||v===32||v===40||Gf(v)?r(v):(e.consume(v),v===92?L:_)}function L(v){return v===40||v===41||v===92?(e.consume(v),_):_(v)}}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):Ve(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||Ve(y)||d++>999?(e.exit("chunkString"),b(y)):(e.consume(y),p||(p=!Et(y)),y===92?S:E)}function S(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(S){return S===34||S===39||S===40?(e.enter(i),e.enter(l),e.consume(S),e.exit(l),c=S===40?41:S,p):r(S)}function p(S){return S===c?(e.enter(l),e.consume(S),e.exit(l),e.exit(i),t):(e.enter(s),m(S))}function m(S){return S===c?(e.exit(s),p(c)):S===null?r(S):Ve(S)?(e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),Dt(e,m,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),b(S))}function b(S){return S===c||S===null||Ve(S)?(e.exit("chunkString"),m(S)):(e.consume(S),S===92?E:b)}function E(S){return S===c||S===92?(e.consume(S),b):b(S)}}function cl(e,t){let r;return i;function i(l){return Ve(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r=!0,i):Et(l)?Dt(e,i,r?"linePrefix":"lineSuffix")(l):t(l)}}const mA={name:"definition",tokenize:bA},gA={tokenize:EA,partial:!0};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=qi(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 Ln(y)?cl(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 Et(y)?Dt(e,S,"whitespace")(y):S(y)}function S(y){return y===null||Ve(y)?(e.exit("definition"),i.parser.defined.push(l),t(y)):r(y)}}function EA(e,t,r){return i;function i(d){return Ln(d)?cl(e,l)(d):r(d)}function l(d){return C1(e,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function s(d){return Et(d)?Dt(e,c,"whitespace")(d):c(d)}function c(d){return d===null||Ve(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 Ve(s)?(e.exit("hardBreakEscape"),t(s)):r(s)}}const SA={name:"headingAtx",tokenize:AA,resolve:CA};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"},ta(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||Ln(b)?(e.exit("atxHeadingSequence"),d(b)):r(b)}function d(b){return b===35?(e.enter("atxHeadingSequence"),p(b)):b===null||Ve(b)?(e.exit("atxHeading"),t(b)):Et(b)?Dt(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||Ln(b)?(e.exit("atxHeadingText"),d(b)):(e.consume(b),m)}}const xA=["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"],_A={name:"htmlFlow",tokenize:NA,resolveTo:OA,concrete:!0},vA={tokenize:DA,partial:!0},RA={tokenize:kA,partial:!0};function OA(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 NA(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),S):O===47?(e.consume(O),s=!0,_):O===63?(e.consume(O),l=3,i.interrupt?t:C):Hr(O)?(e.consume(O),c=String.fromCharCode(O),L):r(O)}function S(O){return O===45?(e.consume(O),l=2,y):O===91?(e.consume(O),l=5,d=0,N):Hr(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 N(O){const ue="CDATA[";return O===ue.charCodeAt(d++)?(e.consume(O),d===ue.length?i.interrupt?t:K:N):r(O)}function _(O){return Hr(O)?(e.consume(O),c=String.fromCharCode(O),L):r(O)}function L(O){if(O===null||O===47||O===62||Ln(O)){const ue=O===47,Re=c.toLowerCase();return!ue&&!s&&A1.includes(Re)?(l=1,i.interrupt?t(O):K(O)):xA.includes(c.toLowerCase())?(l=6,ue?(e.consume(O),v):i.interrupt?t(O):K(O)):(l=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(O):s?H(O):D(O))}return O===45||Qn(O)?(e.consume(O),c+=String.fromCharCode(O),L):r(O)}function v(O){return O===62?(e.consume(O),i.interrupt?t:K):r(O)}function H(O){return Et(O)?(e.consume(O),H):x(O)}function D(O){return O===47?(e.consume(O),x):O===58||O===95||Hr(O)?(e.consume(O),P):Et(O)?(e.consume(O),D):x(O)}function P(O){return O===45||O===46||O===58||O===95||Qn(O)?(e.consume(O),P):I(O)}function I(O){return O===61?(e.consume(O),M):Et(O)?(e.consume(O),I):D(O)}function M(O){return O===null||O===60||O===61||O===62||O===96?r(O):O===34||O===39?(e.consume(O),p=O,j):Et(O)?(e.consume(O),M):ie(O)}function j(O){return O===p?(e.consume(O),p=null,V):O===null||Ve(O)?r(O):(e.consume(O),j)}function ie(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||Ln(O)?I(O):(e.consume(O),ie)}function V(O){return O===47||O===62||Et(O)?D(O):r(O)}function x(O){return O===62?(e.consume(O),Y):r(O)}function Y(O){return O===null||Ve(O)?K(O):Et(O)?(e.consume(O),Y):r(O)}function K(O){return O===45&&l===2?(e.consume(O),Q):O===60&&l===1?(e.consume(O),se):O===62&&l===4?(e.consume(O),J):O===63&&l===3?(e.consume(O),C):O===93&&l===5?(e.consume(O),ge):Ve(O)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(vA,Te,W)(O)):O===null||Ve(O)?(e.exit("htmlFlowData"),W(O)):(e.consume(O),K)}function W(O){return e.check(RA,q,Te)(O)}function q(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),ee}function ee(O){return O===null||Ve(O)?W(O):(e.enter("htmlFlowData"),K(O))}function Q(O){return O===45?(e.consume(O),C):K(O)}function se(O){return O===47?(e.consume(O),c="",re):K(O)}function re(O){if(O===62){const ue=c.toLowerCase();return A1.includes(ue)?(e.consume(O),J):K(O)}return Hr(O)&&c.length<8?(e.consume(O),c+=String.fromCharCode(O),re):K(O)}function ge(O){return O===93?(e.consume(O),C):K(O)}function C(O){return O===62?(e.consume(O),J):O===45&&l===2?(e.consume(O),C):K(O)}function J(O){return O===null||Ve(O)?(e.exit("htmlFlowData"),Te(O)):(e.consume(O),J)}function Te(O){return e.exit("htmlFlow"),t(O)}}function kA(e,t,r){const i=this;return l;function l(c){return Ve(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(gs,t,r)}}const LA={name:"htmlText",tokenize:IA};function IA(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),I):C===63?(e.consume(C),D):Hr(C)?(e.consume(C),ie):r(C)}function m(C){return C===45?(e.consume(C),b):C===91?(e.consume(C),s=0,N):Hr(C)?(e.consume(C),H):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),S):Ve(C)?(c=E,se(C)):(e.consume(C),E)}function S(C){return C===45?(e.consume(C),y):E(C)}function y(C){return C===62?Q(C):C===45?S(C):E(C)}function N(C){const J="CDATA[";return C===J.charCodeAt(s++)?(e.consume(C),s===J.length?_:N):r(C)}function _(C){return C===null?r(C):C===93?(e.consume(C),L):Ve(C)?(c=_,se(C)):(e.consume(C),_)}function L(C){return C===93?(e.consume(C),v):_(C)}function v(C){return C===62?Q(C):C===93?(e.consume(C),v):_(C)}function H(C){return C===null||C===62?Q(C):Ve(C)?(c=H,se(C)):(e.consume(C),H)}function D(C){return C===null?r(C):C===63?(e.consume(C),P):Ve(C)?(c=D,se(C)):(e.consume(C),D)}function P(C){return C===62?Q(C):D(C)}function I(C){return Hr(C)?(e.consume(C),M):r(C)}function M(C){return C===45||Qn(C)?(e.consume(C),M):j(C)}function j(C){return Ve(C)?(c=j,se(C)):Et(C)?(e.consume(C),j):Q(C)}function ie(C){return C===45||Qn(C)?(e.consume(C),ie):C===47||C===62||Ln(C)?V(C):r(C)}function V(C){return C===47?(e.consume(C),Q):C===58||C===95||Hr(C)?(e.consume(C),x):Ve(C)?(c=V,se(C)):Et(C)?(e.consume(C),V):Q(C)}function x(C){return C===45||C===46||C===58||C===95||Qn(C)?(e.consume(C),x):Y(C)}function Y(C){return C===61?(e.consume(C),K):Ve(C)?(c=Y,se(C)):Et(C)?(e.consume(C),Y):V(C)}function K(C){return C===null||C===60||C===61||C===62||C===96?r(C):C===34||C===39?(e.consume(C),l=C,W):Ve(C)?(c=K,se(C)):Et(C)?(e.consume(C),K):(e.consume(C),q)}function W(C){return C===l?(e.consume(C),l=void 0,ee):C===null?r(C):Ve(C)?(c=W,se(C)):(e.consume(C),W)}function q(C){return C===null||C===34||C===39||C===60||C===61||C===96?r(C):C===47||C===62||Ln(C)?V(C):(e.consume(C),q)}function ee(C){return C===47||C===62||Ln(C)?V(C):r(C)}function Q(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),t):r(C)}function se(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),re}function re(C){return Et(C)?Dt(e,ge,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):ge(C)}function ge(C){return e.enter("htmlTextData"),c(C)}}const Zf={name:"labelEnd",tokenize:HA,resolveTo:UA,resolveAll:PA},wA={tokenize:FA},MA={tokenize:zA},BA={tokenize:YA};function PA(e){let t=-1;for(;++t<e.length;){const r=e[t][1];(r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd")&&(e.splice(t+1,r.type==="labelImage"?4:2),r.type="data",t++)}return 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:Object.assign({},e[s][1].start),end:Object.assign({},e[e.length-1][1].end)},m={type:"label",start:Object.assign({},e[s][1].start),end:Object.assign({},e[c][1].end)},b={type:"labelText",start:Object.assign({},e[s+i+2][1].end),end:Object.assign({},e[c-2][1].start)};return d=[["enter",p,t],["enter",m,t]],d=sr(d,e.slice(s+1,s+i+3)),d=sr(d,[["enter",b,t]]),d=sr(d,Qf(t.parser.constructs.insideSpan.null,e.slice(s+i+4,c-3),t)),d=sr(d,[["exit",b,t],e[c-2],e[c-1],["exit",m,t]]),d=sr(d,e.slice(c+1)),d=sr(d,[["exit",p,t]]),ta(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(S){return s?s._inactive?E(S):(c=i.parser.defined.includes(qi(i.sliceSerialize({start:s.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(S),e.exit("labelMarker"),e.exit("labelEnd"),p):r(S)}function p(S){return S===40?e.attempt(wA,b,c?b:E)(S):S===91?e.attempt(MA,b,c?m:E)(S):c?b(S):E(S)}function m(S){return e.attempt(BA,b,E)(S)}function b(S){return t(S)}function E(S){return s._balanced=!0,r(S)}}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 Ln(E)?cl(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 Ln(E)?cl(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 Ln(E)?cl(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(qi(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",tokenize:VA,resolveAll:Zf.resolveAll};function VA(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 $A={name:"labelStartLink",tokenize:qA,resolveAll:Zf.resolveAll};function qA(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 Jf={name:"lineEnding",tokenize:GA};function GA(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Dt(e,t,"linePrefix")}}const bs={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||Ve(m))?(e.exit("thematicBreak"),t(m)):r(m)}function p(m){return m===l?(e.consume(m),i++,p):(e.exit("thematicBreakSequence"),Et(m)?Dt(e,d,"whitespace")(m):d(m))}}const In={name:"list",tokenize:WA,continuation:{tokenize:ZA},exit:e4},QA={tokenize:t4,partial:!0},KA={tokenize:JA,partial:!0};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 N=i.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(N==="listUnordered"?!i.containerState.marker||y===i.containerState.marker:Xf(y)){if(i.containerState.type||(i.containerState.type=N,e.enter(N,{_container:!0})),N==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(bs,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 Xf(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(gs,i.interrupt?r:b,e.attempt(QA,S,E))}function b(y){return i.containerState.initialBlankLine=!0,s++,S(y)}function E(y){return Et(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),S):r(y)}function S(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(gs,l,s);function l(d){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Dt(e,t,"listItemIndent",i.containerState.size+1)(d)}function s(d){return i.containerState.furtherBlankLines||!Et(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,Dt(e,e.attempt(In,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function JA(e,t,r){const i=this;return Dt(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 e4(e){e.exit(this.containerState.type)}function t4(e,t,r){const i=this;return Dt(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!Et(s)&&c&&c[1].type==="listItemPrefixWhitespace"?t(s):r(s)}}const x1={name:"setextUnderline",tokenize:r4,resolveTo:n4};function n4(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:Object.assign({},e[l][1].start),end:Object.assign({},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=Object.assign({},e[s][1].end)):e[i][1]=c,e.push(["exit",c,t]),e}function r4(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"),Et(m)?Dt(e,p,"lineSuffix")(m):p(m))}function p(m){return m===null||Ve(m)?(e.exit("setextHeadingLine"),t(m)):r(m)}}const a4={tokenize:i4};function i4(e){const t=this,r=e.attempt(gs,i,e.attempt(this.parser.constructs.flowInitial,l,Dt(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 u4={resolveAll:v1()},l4=_1("string"),o4=_1("text");function _1(e){return{tokenize:t,resolveAll:v1(e==="text"?s4:void 0)};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 S=-1;if(E)for(;++S<E.length;){const y=E[S];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 s4(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(d){const m={type:r===e.length||p||d<2?"lineSuffix":"hardBreakTrailing",start:{line:i.end.line,column:i.end.column-d,offset:i.end.offset-d,_index:i.start._index+s,_bufferIndex:s?c:i.start._bufferIndex+c},end:Object.assign({},i.end)};i.end=Object.assign({},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}function c4(e,t,r){let i=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const l={},s=[];let c=[],d=[];const p={consume:H,enter:D,exit:P,attempt:j(I),check:j(M),interrupt:j(M,{interrupt:!0})},m={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:y,sliceSerialize:S,now:N,defineSkip:_,write:E};let b=t.tokenize.call(m,p);return t.resolveAll&&s.push(t),m;function E(Y){return c=sr(c,Y),L(),c[c.length-1]!==null?[]:(ie(t,0),m.events=Qf(s,m.events,m),m.events)}function S(Y,K){return d4(y(Y),K)}function y(Y){return f4(c,Y)}function N(){const{line:Y,column:K,offset:W,_index:q,_bufferIndex:ee}=i;return{line:Y,column:K,offset:W,_index:q,_bufferIndex:ee}}function _(Y){l[Y.line]=Y.column,x()}function L(){let Y;for(;i._index<c.length;){const K=c[i._index];if(typeof K=="string")for(Y=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===Y&&i._bufferIndex<K.length;)v(K.charCodeAt(i._bufferIndex));else v(K)}}function v(Y){b=b(Y)}function H(Y){Ve(Y)?(i.line++,i.column=1,i.offset+=Y===-3?2:1,x()):Y!==-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=Y}function D(Y,K){const W=K||{};return W.type=Y,W.start=N(),m.events.push(["enter",W,m]),d.push(W),W}function P(Y){const K=d.pop();return K.end=N(),m.events.push(["exit",K,m]),K}function I(Y,K){ie(Y,K.from)}function M(Y,K){K.restore()}function j(Y,K){return W;function W(q,ee,Q){let se,re,ge,C;return Array.isArray(q)?Te(q):"tokenize"in q?Te([q]):J(q);function J(Se){return tt;function tt(Me){const $e=Me!==null&&Se[Me],xe=Me!==null&&Se.null,Ge=[...Array.isArray($e)?$e:$e?[$e]:[],...Array.isArray(xe)?xe:xe?[xe]:[]];return Te(Ge)(Me)}}function Te(Se){return se=Se,re=0,Se.length===0?Q:O(Se[re])}function O(Se){return tt;function tt(Me){return C=V(),ge=Se,Se.partial||(m.currentConstruct=Se),Se.name&&m.parser.constructs.disable.null.includes(Se.name)?Re():Se.tokenize.call(K?Object.assign(Object.create(m),K):m,p,ue,Re)(Me)}}function ue(Se){return Y(ge,C),ee}function Re(Se){return C.restore(),++re<se.length?O(se[re]):Q}}}function ie(Y,K){Y.resolveAll&&!s.includes(Y)&&s.push(Y),Y.resolve&&ta(m.events,K,m.events.length-K,Y.resolve(m.events.slice(K),m)),Y.resolveTo&&(m.events=Y.resolveTo(m.events,m))}function V(){const Y=N(),K=m.previous,W=m.currentConstruct,q=m.events.length,ee=Array.from(d);return{restore:Q,from:q};function Q(){i=Y,m.previous=K,m.currentConstruct=W,m.events.length=q,d=ee,x()}}function x(){i.line in l&&i.column<2&&(i.column=l[i.line],i.offset+=l[i.line]-1)}}function f4(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 d4(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 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=`
|
|
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("")}const h4=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:mA},disable:{null:[]},document:{42:In,43:In,45:In,48:In,49:In,50:In,51:In,52:In,53:In,54:In,55:In,56:In,57:In,62:p1},flow:{35:SA,42:bs,45:[x1,bs],60:_A,61:x1,95:bs,96:E1,126:E1},flowInitial:{[-2]:Wf,[-1]:Wf,32:Wf},insideSpan:{null:[Kf,u4]},string:{38:g1,92:m1},text:{[-5]:Jf,[-4]:Jf,[-3]:Jf,33:jA,38:g1,42:Kf,60:[$6,LA],91:$A,92:[yA,m1],93:Zf,95:Kf,96:aA}},Symbol.toStringTag,{value:"Module"}));function p4(e){const r=k6([h4,...(e||{}).extensions||[]]),i={defined:[],lazy:{},constructs:r,content:l(U6),document:l(F6),flow:l(a4),string:l(l4),text:l(o4)};return i;function l(s){return c;function c(d){return c4(i,s,d)}}}function m4(e){for(;!y1(e););return e}const R1=/[\0\t\n\r]/g;function g4(){let e=1,t="",r=!0,i;return l;function l(s,c,d){const p=[];let m,b,E,S,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),S=m&&m.index!==void 0?m.index:s.length,y=s.charCodeAt(S),!m){t=s.slice(E);break}if(y===10&&E===S&&i)p.push(-3),i=void 0;else switch(i&&(p.push(-5),i=void 0),E<S&&(p.push(s.slice(E,S)),e+=S-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=S+1}return d&&(i&&p.push(-5),t&&p.push(t),p.push(null)),p}}const b4=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function E4(e){return e.replace(b4,y4)}function y4(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 qf(r)||e}const O1={}.hasOwnProperty;function T4(e,t,r){return typeof t!="string"&&(r=t,t=void 0),S4(r)(m4(p4(r).document().write(g4()(e,t,!0))))}function S4(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ct),autolinkProtocol:V,autolinkEmail:V,atxHeading:s(Be),blockQuote:s(xe),characterEscape:V,characterReference:V,codeFenced:s(Ge),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(Ge,c),codeText:s(ve,c),codeTextData:V,data:V,codeFlowValue:V,definition:s(Oe),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(Ce),hardBreakEscape:s(it),hardBreakTrailing:s(it),htmlFlow:s(je,c),htmlFlowData:V,htmlText:s(je,c),htmlTextData:V,image:s(Ue),label:c,link:s(ct),listItem:s(rn),listItemValue:S,listOrdered:s(St,E),listUnordered:s(St),paragraph:s(_n),reference:O,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(Be),strong:s(we),thematicBreak:s($t)},exit:{atxHeading:p(),atxHeadingSequence:I,autolink:p(),autolinkEmail:$e,autolinkProtocol:Me,blockQuote:p(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:Re,characterReferenceMarkerNumeric:Re,characterReferenceValue:Se,characterReference:tt,codeFenced:p(L),codeFencedFence:_,codeFencedFenceInfo:y,codeFencedFenceMeta:N,codeFlowValue:x,codeIndented:p(v),codeText:p(ee),codeTextData:x,data:x,definition:p(),definitionDestinationString:P,definitionLabelString:H,definitionTitleString:D,emphasis:p(),hardBreakEscape:p(K),hardBreakTrailing:p(K),htmlFlow:p(W),htmlFlowData:x,htmlText:p(q),htmlTextData:x,image:p(se),label:ge,labelText:re,lineEnding:Y,link:p(Q),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:ue,resourceDestinationString:C,resourceTitleString:J,resource:Te,setextHeading:p(ie),setextHeadingLineSequence:j,setextHeadingText:M,strong:p(),thematicBreak:p()}};N1(t,(e||{}).mdastExtensions||[]);const r={};return i;function i(te){let fe={type:"root",children:[]};const Ae={stack:[fe],tokenStack:[],config:t,enter:d,exit:m,buffer:c,resume:b,data:r},He=[];let nt=-1;for(;++nt<te.length;)if(te[nt][1].type==="listOrdered"||te[nt][1].type==="listUnordered")if(te[nt][0]==="enter")He.push(nt);else{const Qe=He.pop();nt=l(te,Qe,nt)}for(nt=-1;++nt<te.length;){const Qe=t[te[nt][0]];O1.call(Qe,te[nt][1].type)&&Qe[te[nt][1].type].call(Object.assign({sliceSerialize:te[nt][2].sliceSerialize},Ae),te[nt][1])}if(Ae.tokenStack.length>0){const Qe=Ae.tokenStack[Ae.tokenStack.length-1];(Qe[1]||k1).call(Ae,void 0,Qe[0])}for(fe.position={start:va(te.length>0?te[0][1].start:{line:1,column:1,offset:0}),end:va(te.length>0?te[te.length-2][1].end:{line:1,column:1,offset:0})},nt=-1;++nt<t.transforms.length;)fe=t.transforms[nt](fe)||fe;return fe}function l(te,fe,Ae){let He=fe-1,nt=-1,Qe=!1,vn,an,Ft,ke;for(;++He<=Ae;){const _e=te[He];switch(_e[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{_e[0]==="enter"?nt++:nt--,ke=void 0;break}case"lineEndingBlank":{_e[0]==="enter"&&(vn&&!ke&&!nt&&!Ft&&(Ft=He),ke=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ke=void 0}if(!nt&&_e[0]==="enter"&&_e[1].type==="listItemPrefix"||nt===-1&&_e[0]==="exit"&&(_e[1].type==="listUnordered"||_e[1].type==="listOrdered")){if(vn){let ze=He;for(an=void 0;ze--;){const Ke=te[ze];if(Ke[1].type==="lineEnding"||Ke[1].type==="lineEndingBlank"){if(Ke[0]==="exit")continue;an&&(te[an][1].type="lineEndingBlank",Qe=!0),Ke[1].type="lineEnding",an=ze}else if(!(Ke[1].type==="linePrefix"||Ke[1].type==="blockQuotePrefix"||Ke[1].type==="blockQuotePrefixWhitespace"||Ke[1].type==="blockQuoteMarker"||Ke[1].type==="listItemIndent"))break}Ft&&(!an||Ft<an)&&(vn._spread=!0),vn.end=Object.assign({},an?te[an][1].start:_e[1].end),te.splice(an||He,0,["exit",vn,_e[2]]),He++,Ae++}if(_e[1].type==="listItemPrefix"){const ze={type:"listItem",_spread:!1,start:Object.assign({},_e[1].start),end:void 0};vn=ze,te.splice(He,0,["enter",ze,_e[2]]),He++,Ae++,Ft=void 0,ke=!0}}}return te[fe][1]._spread=Qe,Ae}function s(te,fe){return Ae;function Ae(He){d.call(this,te(He),He),fe&&fe.call(this,He)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(te,fe,Ae){this.stack[this.stack.length-1].children.push(te),this.stack.push(te),this.tokenStack.push([fe,Ae||void 0]),te.position={start:va(fe.start),end:void 0}}function p(te){return fe;function fe(Ae){te&&te.call(this,Ae),m.call(this,Ae)}}function m(te,fe){const Ae=this.stack.pop(),He=this.tokenStack.pop();if(He)He[0].type!==te.type&&(fe?fe.call(this,te,He[0]):(He[1]||k1).call(this,te,He[0]));else throw new Error("Cannot close `"+te.type+"` ("+ul({start:te.start,end:te.end})+"): it’s not open");Ae.position.end=va(te.end)}function b(){return O6(this.stack.pop())}function E(){this.data.expectingFirstListItemValue=!0}function S(te){if(this.data.expectingFirstListItemValue){const fe=this.stack[this.stack.length-2];fe.start=Number.parseInt(this.sliceSerialize(te),10),this.data.expectingFirstListItemValue=void 0}}function y(){const te=this.resume(),fe=this.stack[this.stack.length-1];fe.lang=te}function N(){const te=this.resume(),fe=this.stack[this.stack.length-1];fe.meta=te}function _(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function L(){const te=this.resume(),fe=this.stack[this.stack.length-1];fe.value=te.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const te=this.resume(),fe=this.stack[this.stack.length-1];fe.value=te.replace(/(\r?\n|\r)$/g,"")}function H(te){const fe=this.resume(),Ae=this.stack[this.stack.length-1];Ae.label=fe,Ae.identifier=qi(this.sliceSerialize(te)).toLowerCase()}function D(){const te=this.resume(),fe=this.stack[this.stack.length-1];fe.title=te}function P(){const te=this.resume(),fe=this.stack[this.stack.length-1];fe.url=te}function I(te){const fe=this.stack[this.stack.length-1];if(!fe.depth){const Ae=this.sliceSerialize(te).length;fe.depth=Ae}}function M(){this.data.setextHeadingSlurpLineEnding=!0}function j(te){const fe=this.stack[this.stack.length-1];fe.depth=this.sliceSerialize(te).codePointAt(0)===61?1:2}function ie(){this.data.setextHeadingSlurpLineEnding=void 0}function V(te){const Ae=this.stack[this.stack.length-1].children;let He=Ae[Ae.length-1];(!He||He.type!=="text")&&(He=Xe(),He.position={start:va(te.start),end:void 0},Ae.push(He)),this.stack.push(He)}function x(te){const fe=this.stack.pop();fe.value+=this.sliceSerialize(te),fe.position.end=va(te.end)}function Y(te){const fe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ae=fe.children[fe.children.length-1];Ae.position.end=va(te.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(fe.type)&&(V.call(this,te),x.call(this,te))}function K(){this.data.atHardBreak=!0}function W(){const te=this.resume(),fe=this.stack[this.stack.length-1];fe.value=te}function q(){const te=this.resume(),fe=this.stack[this.stack.length-1];fe.value=te}function ee(){const te=this.resume(),fe=this.stack[this.stack.length-1];fe.value=te}function Q(){const te=this.stack[this.stack.length-1];if(this.data.inReference){const fe=this.data.referenceType||"shortcut";te.type+="Reference",te.referenceType=fe,delete te.url,delete te.title}else delete te.identifier,delete te.label;this.data.referenceType=void 0}function se(){const te=this.stack[this.stack.length-1];if(this.data.inReference){const fe=this.data.referenceType||"shortcut";te.type+="Reference",te.referenceType=fe,delete te.url,delete te.title}else delete te.identifier,delete te.label;this.data.referenceType=void 0}function re(te){const fe=this.sliceSerialize(te),Ae=this.stack[this.stack.length-2];Ae.label=E4(fe),Ae.identifier=qi(fe).toLowerCase()}function ge(){const te=this.stack[this.stack.length-1],fe=this.resume(),Ae=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ae.type==="link"){const He=te.children;Ae.children=He}else Ae.alt=fe}function C(){const te=this.resume(),fe=this.stack[this.stack.length-1];fe.url=te}function J(){const te=this.resume(),fe=this.stack[this.stack.length-1];fe.title=te}function Te(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function ue(te){const fe=this.resume(),Ae=this.stack[this.stack.length-1];Ae.label=fe,Ae.identifier=qi(this.sliceSerialize(te)).toLowerCase(),this.data.referenceType="full"}function Re(te){this.data.characterReferenceType=te.type}function Se(te){const fe=this.sliceSerialize(te),Ae=this.data.characterReferenceType;let He;Ae?(He=c1(fe,Ae==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):He=qf(fe);const nt=this.stack[this.stack.length-1];nt.value+=He}function tt(te){const fe=this.stack.pop();fe.position.end=va(te.end)}function Me(te){x.call(this,te);const fe=this.stack[this.stack.length-1];fe.url=this.sliceSerialize(te)}function $e(te){x.call(this,te);const fe=this.stack[this.stack.length-1];fe.url="mailto:"+this.sliceSerialize(te)}function xe(){return{type:"blockquote",children:[]}}function Ge(){return{type:"code",lang:null,meta:null,value:""}}function ve(){return{type:"inlineCode",value:""}}function Oe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ce(){return{type:"emphasis",children:[]}}function Be(){return{type:"heading",depth:0,children:[]}}function it(){return{type:"break"}}function je(){return{type:"html",value:""}}function Ue(){return{type:"image",title:null,url:"",alt:null}}function ct(){return{type:"link",title:null,url:"",children:[]}}function St(te){return{type:"list",ordered:te.type==="listOrdered",start:null,spread:te._spread,children:[]}}function rn(te){return{type:"listItem",spread:te._spread,checked:null,children:[]}}function _n(){return{type:"paragraph",children:[]}}function we(){return{type:"strong",children:[]}}function Xe(){return{type:"text",value:""}}function $t(){return{type:"thematicBreak"}}}function va(e){return{line:e.line,column:e.column,offset:e.offset}}function N1(e,t){let r=-1;for(;++r<t.length;){const i=t[r];Array.isArray(i)?N1(e,i):C4(e,i)}}function C4(e,t){let r;for(r in t)if(O1.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 k1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ul({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ul({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ul({start:t.start,end:t.end})+") is still open")}function A4(e){const t=this;t.parser=r;function r(i){return T4(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function x4(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 _4(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 l={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function
|
|
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 v_(e,t){const r=t.value?t.value+`
|
|
61
|
+
`:"",i={};t.lang&&(i.className=["language-"+t.lang]);let l={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function R_(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function N_(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function O_(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),l=zi(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 p={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+l,id:r+"fnref-"+l+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(t,p);const m={type:"element",tagName:"sup",properties:{},children:[p]};return e.patch(t,m),e.applyData(t,m)}function I_(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 D_(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function D1(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 l=e.all(t),s=l[0];s&&s.type==="text"?s.value="["+s.value:l.unshift({type:"text",value:"["});const c=l[l.length-1];return c&&c.type==="text"?c.value+=i:l.push({type:"text",value:i}),l}function k_(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return D1(e,t);const l={src:zi(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(l.title=i.title);const s={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,s),e.applyData(t,s)}function L_(e,t){const r={src:zi(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 M_(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 w_(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return D1(e,t);const l={href:zi(i.url||"")};i.title!==null&&i.title!==void 0&&(l.title=i.title);const s={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function B_(e,t){const r={href:zi(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 P_(e,t,r){const i=e.all(t),l=r?U_(r):k1(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];(l||d!==0||b.type!=="element"||b.tagName!=="p")&&c.push({type:"text",value:`
|
|
62
62
|
`}),b.type==="element"&&b.tagName==="p"&&!l?c.push(...b.children):c.push(b)}const p=i[i.length-1];p&&(l||p.type!=="element"||p.tagName!=="p")&&c.push({type:"text",value:`
|
|
63
|
-
`});const m={type:"element",tagName:"li",properties:s,children:c};return e.patch(t,m),e.applyData(t,m)}function
|
|
63
|
+
`});const m={type:"element",tagName:"li",properties:s,children:c};return e.patch(t,m),e.applyData(t,m)}function U_(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=k1(r[i])}return t}function k1(e){const t=e.spread;return t??e.children.length>1}function H_(e,t){const r={},i=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++l<i.length;){const c=i[l];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 F_(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function z_(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function Y_(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function j_(e,t){const r=e.all(t),i=r.shift(),l=[];if(i){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],c),l.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},d=kr(t.children[1]),p=es(t.children[t.children.length-1]);d&&p&&(c.position={start:d,end:p}),l.push(c)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,s),e.applyData(t,s)}function q_(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 p=-1;const m=[];for(;++p<d;){const E=t.children[p],T={},y=c?c[p]:void 0;y&&(T.align=y);let R={type:"element",tagName:s,properties:T,children:[]};E&&(R.children=e.all(E),e.patch(E,R),R=e.applyData(E,R)),m.push(R)}const b={type:"element",tagName:"tr",properties:{},children:e.wrap(m,!0)};return e.patch(t,b),e.applyData(t,b)}function V_(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const L1=9,M1=32;function G_(e){const t=String(e),r=/\r?\n|\r/g;let i=r.exec(t),l=0;const s=[];for(;i;)s.push(w1(t.slice(l,i.index),l>0,!0),i[0]),l=i.index+i[0].length,i=r.exec(t);return s.push(w1(t.slice(l),l>0,!1)),s.join("")}function w1(e,t,r){let i=0,l=e.length;if(t){let s=e.codePointAt(i);for(;s===L1||s===M1;)i++,s=e.codePointAt(i)}if(r){let s=e.codePointAt(l-1);for(;s===L1||s===M1;)l--,s=e.codePointAt(l-1)}return l>i?e.slice(i,l):""}function $_(e,t){const r={type:"text",value:G_(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function X_(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const Q_={blockquote:__,break:x_,code:v_,delete:R_,emphasis:N_,footnoteReference:O_,heading:I_,html:D_,imageReference:k_,image:L_,inlineCode:M_,linkReference:w_,link:B_,listItem:P_,list:H_,paragraph:F_,root:z_,strong:Y_,table:j_,tableCell:V_,tableRow:q_,text:$_,thematicBreak:X_,toml:rs,yaml:rs,definition:rs,footnoteDefinition:rs};function rs(){}const B1=-1,as=0,ll=1,is=2,Qf=3,Kf=4,Wf=5,Zf=6,P1=7,U1=8,H1=typeof self=="object"?self:globalThis,K_=(e,t)=>{const r=(l,s)=>(e.set(s,l),l),i=l=>{if(e.has(l))return e.get(l);const[s,c]=t[l];switch(s){case as:case B1:return r(c,l);case ll:{const d=r([],l);for(const p of c)d.push(i(p));return d}case is:{const d=r({},l);for(const[p,m]of c)d[i(p)]=i(m);return d}case Qf:return r(new Date(c),l);case Kf:{const{source:d,flags:p}=c;return r(new RegExp(d,p),l)}case Wf:{const d=r(new Map,l);for(const[p,m]of c)d.set(i(p),i(m));return d}case Zf:{const d=r(new Set,l);for(const p of c)d.add(i(p));return d}case P1:{const{name:d,message:p}=c;return r(new H1[d](p),l)}case U1:return r(BigInt(c),l);case"BigInt":return r(Object(BigInt(c)),l);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 H1[s](c),l)};return i},F1=e=>K_(new Map,e)(0),Yi="",{toString:W_}={},{keys:Z_}=Object,ol=e=>{const t=typeof e;if(t!=="object"||!e)return[as,t];const r=W_.call(e).slice(8,-1);switch(r){case"Array":return[ll,Yi];case"Object":return[is,Yi];case"Date":return[Qf,Yi];case"RegExp":return[Kf,Yi];case"Map":return[Wf,Yi];case"Set":return[Zf,Yi];case"DataView":return[ll,r]}return r.includes("Array")?[ll,r]:r.includes("Error")?[P1,r]:[is,r]},us=([e,t])=>e===as&&(t==="function"||t==="symbol"),J_=(e,t,r,i)=>{const l=(c,d)=>{const p=i.push(c)-1;return r.set(d,p),p},s=c=>{if(r.has(c))return r.get(c);let[d,p]=ol(c);switch(d){case as:{let b=c;switch(p){case"bigint":d=U1,b=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+p);b=null;break;case"undefined":return l([B1],c)}return l([d,b],c)}case ll:{if(p){let T=c;return p==="DataView"?T=new Uint8Array(c.buffer):p==="ArrayBuffer"&&(T=new Uint8Array(c)),l([p,[...T]],c)}const b=[],E=l([d,b],c);for(const T of c)b.push(s(T));return E}case is:{if(p)switch(p){case"BigInt":return l([p,c.toString()],c);case"Boolean":case"Number":case"String":return l([p,c.valueOf()],c)}if(t&&"toJSON"in c)return s(c.toJSON());const b=[],E=l([d,b],c);for(const T of Z_(c))(e||!us(ol(c[T])))&&b.push([s(T),s(c[T])]);return E}case Qf:return l([d,c.toISOString()],c);case Kf:{const{source:b,flags:E}=c;return l([d,{source:b,flags:E}],c)}case Wf:{const b=[],E=l([d,b],c);for(const[T,y]of c)(e||!(us(ol(T))||us(ol(y))))&&b.push([s(T),s(y)]);return E}case Zf:{const b=[],E=l([d,b],c);for(const T of c)(e||!us(ol(T)))&&b.push(s(T));return E}}const{message:m}=c;return l([d,{name:p,message:m}],c)};return s},z1=(e,{json:t,lossy:r}={})=>{const i=[];return J_(!(t||r),!!t,new Map,i)(e),i},ji=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?F1(z1(e,t)):structuredClone(e):(e,t)=>F1(z1(e,t));function e4(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 t4(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function n4(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||e4,i=e.options.footnoteBackLabel||t4,l=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let p=-1;for(;++p<e.footnoteOrder.length;){const m=e.footnoteById.get(e.footnoteOrder[p]);if(!m)continue;const b=e.all(m),E=String(m.identifier).toUpperCase(),T=zi(E.toLowerCase());let y=0;const R=[],x=e.footnoteCounts.get(E);for(;x!==void 0&&++y<=x;){R.length>0&&R.push({type:"text",value:" "});let q=typeof r=="string"?r:r(p,y);typeof q=="string"&&(q={type:"text",value:q}),R.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+T+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(p,y),className:["data-footnote-backref"]},children:Array.isArray(q)?q:[q]})}const U=b[b.length-1];if(U&&U.type==="element"&&U.tagName==="p"){const q=U.children[U.children.length-1];q&&q.type==="text"?q.value+=" ":U.children.push({type:"text",value:" "}),U.children.push(...R)}else b.push(...R);const D={type:"element",tagName:"li",properties:{id:t+"fn-"+T},children:e.wrap(b,!0)};e.patch(m,D),d.push(D)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...ji(c),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
|
|
64
64
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
|
|
65
|
-
`}]}}const Y1=function(e){if(e==null)return
|
|
65
|
+
`}]}}const Y1=function(e){if(e==null)return u4;if(typeof e=="function")return ls(e);if(typeof e=="object")return Array.isArray(e)?r4(e):a4(e);if(typeof e=="string")return i4(e);throw new Error("Expected function, string, or object as test")};function r4(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Y1(e[r]);return ls(i);function i(...l){let s=-1;for(;++s<t.length;)if(t[s].apply(this,l))return!0;return!1}}function a4(e){const t=e;return ls(r);function r(i){const l=i;let s;for(s in e)if(l[s]!==t[s])return!1;return!0}}function i4(e){return ls(t);function t(r){return r&&r.type===e}}function ls(e){return t;function t(r,i,l){return!!(l4(r)&&e.call(this,r,typeof i=="number"?i:void 0,l||void 0))}}function u4(){return!0}function l4(e){return e!==null&&typeof e=="object"&&"type"in e}function d7(e){return e}const j1=[],o4=!0,q1=!1,s4="skip";function c4(e,t,r,i){let l;typeof t=="function"&&typeof r!="function"?(i=r,r=t):l=t;const s=Y1(l),c=i?-1:1;d(e,void 0,[])();function d(p,m,b){const E=p&&typeof p=="object"?p:{};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 ("+(p.type+(y?"<"+y+">":""))+")"})}return T;function T(){let y=j1,R,x,U;if((!t||s(p,m,b[b.length-1]||void 0))&&(y=f4(r(p,b)),y[0]===q1))return y;if("children"in p&&p.children){const D=p;if(D.children&&y[0]!==s4)for(x=(i?D.children.length:-1)+c,U=b.concat(D);x>-1&&x<D.children.length;){const q=D.children[x];if(R=d(q,x,U)(),R[0]===q1)return R;x=typeof R[1]=="number"?R[1]:x+c}}return y}}}function f4(e){return Array.isArray(e)?e:typeof e=="number"?[o4,e]:e==null?j1:[e]}function Jf(e,t,r,i){let l,s,c;typeof t=="function"&&typeof r!="function"?(s=void 0,c=t,l=r):(s=t,c=r,l=i),c4(e,s,d,l);function d(p,m){const b=m[m.length-1],E=b?b.children.indexOf(p):void 0;return c(p,E,b)}}const ed={}.hasOwnProperty,d4={};function h4(e,t){const r=t||d4,i=new Map,l=new Map,s=new Map,c={...Q_,...r.handlers},d={all:m,applyData:m4,definitionById:i,footnoteById:l,footnoteCounts:s,footnoteOrder:[],handlers:c,one:p,options:r,patch:p4,wrap:b4};return Jf(e,function(b){if(b.type==="definition"||b.type==="footnoteDefinition"){const E=b.type==="definition"?i:l,T=String(b.identifier).toUpperCase();E.has(T)||E.set(T,b)}}),d;function p(b,E){const T=b.type,y=d.handlers[T];if(ed.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,...U}=b,D=ji(U);return D.children=d.all(b),D}return ji(b)}return(d.options.unknownHandler||g4)(d,b,E)}function m(b){const E=[];if("children"in b){const T=b.children;let y=-1;for(;++y<T.length;){const R=d.one(T[y],b);if(R){if(y&&T[y-1].type==="break"&&(!Array.isArray(R)&&R.type==="text"&&(R.value=V1(R.value)),!Array.isArray(R)&&R.type==="element")){const x=R.children[0];x&&x.type==="text"&&(x.value=V1(x.value))}Array.isArray(R)?E.push(...R):E.push(R)}}}return E}}function p4(e,t){e.position&&(t.position=a6(e))}function m4(e,t){let r=t;if(e&&e.data){const i=e.data.hName,l=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,ji(s)),"children"in r&&r.children&&l!==null&&l!==void 0&&(r.children=l)}return r}function g4(e,t){const r=t.data||{},i="value"in t&&!(ed.call(r,"hProperties")||ed.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 b4(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 Ex(e,t){return e&&"run"in e?async function(r,i){const l=q1(r,{file:i,...t});await e.run(l,i)}:function(r,i){return q1(r,{file:i,...e||t})}}function G1(e){if(e)throw e}var ud,X1;function yx(){if(X1)return ud;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 S;for(S in m);return typeof S>"u"||e.call(m,S)},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 ud=function p(){var m,b,E,S,y,N,_=arguments[0],L=1,v=arguments.length,H=!1;for(typeof _=="boolean"&&(H=_,_=arguments[1]||{},L=2),(_==null||typeof _!="object"&&typeof _!="function")&&(_={});L<v;++L)if(m=arguments[L],m!=null)for(b in m)E=d(_,b),S=d(m,b),_!==S&&(H&&S&&(s(S)||(y=l(S)))?(y?(y=!1,N=E&&l(E)?E:[]):N=E&&s(E)?E:{},c(_,{name:b,newValue:p(H,N,S)})):typeof S<"u"&&c(_,{name:b,newValue:S}));return _},ud}var Tx=yx();const ld=ur(Tx);function od(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 Sx(){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?Cx(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 Cx(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 Fr={basename:Ax,dirname:xx,extname:_x,join:vx,sep:"/"};function Ax(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');dl(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 xx(e){if(dl(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 _x(e){dl(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 vx(...e){let t=-1,r;for(;++t<e.length;)dl(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":Rx(r)}function Rx(e){dl(e);const t=e.codePointAt(0)===47;let r=Ox(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function Ox(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 dl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Nx={cwd:kx};function kx(){return"/"}function sd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Dx(e){if(typeof e=="string")e=new URL(e);else if(!sd(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 Lx(e)}function Lx(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 cd=["history","path","basename","stem","extname","dirname"];class Q1{constructor(t){let r;t?sd(t)?r={path:t}:typeof t=="string"||Ix(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":Nx.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<cd.length;){const s=cd[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)cd.includes(l)||(this[l]=r[l])}get basename(){return typeof this.path=="string"?Fr.basename(this.path):void 0}set basename(t){dd(t,"basename"),fd(t,"basename"),this.path=Fr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Fr.dirname(this.path):void 0}set dirname(t){K1(this.basename,"dirname"),this.path=Fr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Fr.extname(this.path):void 0}set extname(t){if(fd(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=Fr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){sd(t)&&(t=Dx(t)),dd(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Fr.basename(this.path,this.extname):void 0}set stem(t){dd(t,"stem"),fd(t,"stem"),this.path=Fr.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 fd(e,t){if(e&&e.includes(Fr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Fr.sep+"`")}function dd(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 Ix(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const wx=function(e){const i=this.constructor.prototype,l=i[e],s=function(){return l.apply(s,arguments)};return Object.setPrototypeOf(s,i),s},Mx={}.hasOwnProperty;class hd extends wx{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=Sx()}copy(){const t=new hd;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?(gd("data",this.frozen),this.namespace[t]=r,this):Mx.call(this.namespace,t)&&this.namespace[t]||void 0:t?(gd("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=xs(t),i=this.parser||this.Parser;return pd("parse",i),i(String(r),r)}process(t,r){const i=this;return this.freeze(),pd("process",this.parser||this.Parser),md("process",this.compiler||this.Compiler),r?l(void 0,r):new Promise(l);function l(s,c){const d=xs(t),p=i.parse(d);i.run(p,d,function(b,E,S){if(b||!E||!S)return m(b);const y=E,N=i.stringify(y,S);Ux(N)?S.value=N:S.result=N,m(b,S)});function m(b,E){b||!E?c(b):s?s(E):r(void 0,E)}}}processSync(t){let r=!1,i;return this.freeze(),pd("processSync",this.parser||this.Parser),md("processSync",this.compiler||this.Compiler),this.process(t,l),Z1("processSync","process",r),i;function l(s,c){r=!0,G1(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=xs(r);l.run(t,p,m);function m(b,E,S){const y=E||t;b?d(b):c?c(y):i(void 0,y,S)}}}runSync(t,r){let i=!1,l;return this.run(t,r,s),Z1("runSync","run",i),l;function s(c,d){G1(c),l=d,i=!0}}stringify(t,r){this.freeze();const i=xs(r),l=this.compiler||this.Compiler;return md("stringify",l),W1(t),l(t,i)}use(t,...r){const i=this.attachers,l=this.namespace;if(gd("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=ld(!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,S=-1;for(;++E<i.length;)if(i[E][0]===m){S=E;break}if(S===-1)i.push([m,...b]);else if(b.length>0){let[y,...N]=b;const _=i[S][1];od(_)&&od(y)&&(y=ld(!0,_,y)),i[S]=[m,y,...N]}}}}const Bx=new hd().freeze();function pd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function md(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function gd(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(!od(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 xs(e){return Px(e)?e:new Q1(e)}function Px(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ux(e){return typeof e=="string"||Hx(e)}function Hx(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Fx="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",J1=[],eg={allowDangerousHtml:!0},zx=/^(https?|ircs?|mailto|xmpp)$/i,Yx=[{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=jx(e),r=Vx(e);return $x(t.runSync(t.parse(r),r),e)}function jx(e){const t=e.rehypePlugins||J1,r=e.remarkPlugins||J1,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...eg}:eg;return Bx().use(A4).use(r).use(Ex,i).use(t)}function Vx(e){const t=e.children||"",r=new Q1;return typeof t=="string"&&(r.value=t),r}function $x(e,t){const r=t.allowedElements,i=t.allowElement,l=t.components,s=t.disallowedElements,c=t.skipHtml,d=t.unwrapDisallowed,p=t.urlTransform||qx;for(const b of Yx)Object.hasOwn(t,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+Fx+b.id,void 0);return ad(e,m),o6(e,{Fragment:pe.Fragment,components:l,ignoreInvalidStyle:!0,jsx:pe.jsx,jsxs:pe.jsxs,passKeys:!0,passNode:!0});function m(b,E,S){if(b.type==="raw"&&S&&typeof E=="number")return c?S.children.splice(E,1):S.children[E]={type:"text",value:b.value},E;if(b.type==="element"){let y;for(y in Vf)if(Object.hasOwn(Vf,y)&&Object.hasOwn(b.properties,y)){const N=b.properties[y],_=Vf[y];(_===null||_.includes(b.tagName))&&(b.properties[y]=p(String(N||""),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,S)),y&&S&&typeof E=="number")return d&&b.children?S.children.splice(E,1,...b.children):S.children.splice(E,1),E}}}function qx(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||zx.test(e.slice(0,t))?e:""}let hl=class{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}};hl.prototype.normal={},hl.prototype.property={},hl.prototype.space=void 0;function ng(e,t){const r={},i={};for(const l of e)Object.assign(r,l.property),Object.assign(i,l.normal);return new hl(r,i,t)}function pl(e){return e.toLowerCase()}let wn=class{constructor(t,r){this.attribute=r,this.property=t}};wn.prototype.attribute="",wn.prototype.booleanish=!1,wn.prototype.boolean=!1,wn.prototype.commaOrSpaceSeparated=!1,wn.prototype.commaSeparated=!1,wn.prototype.defined=!1,wn.prototype.mustUseProperty=!1,wn.prototype.number=!1,wn.prototype.overloadedBoolean=!1,wn.prototype.property="",wn.prototype.spaceSeparated=!1,wn.prototype.space=void 0;let Gx=0;const Ze=ui(),en=ui(),rg=ui(),Ee=ui(),Lt=ui(),Ki=ui(),Kn=ui();function ui(){return 2**++Gx}const bd=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ze,booleanish:en,commaOrSpaceSeparated:Kn,commaSeparated:Ki,number:Ee,overloadedBoolean:rg,spaceSeparated:Lt},Symbol.toStringTag,{value:"Module"})),Ed=Object.keys(bd);let yd=class extends wn{constructor(t,r,i,l){let s=-1;if(super(t,r),ag(this,"space",l),typeof i=="number")for(;++s<Ed.length;){const c=Ed[s];ag(this,Ed[s],(i&bd[c])===bd[c])}}};yd.prototype.defined=!0;function ag(e,t,r){r&&(e[t]=r)}function Wi(e){const t={},r={};for(const[i,l]of Object.entries(e.properties)){const s=new yd(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,r[pl(i)]=i,r[pl(s.attribute)]=i}return new hl(t,r,e.space)}const ig=Wi({properties:{ariaActiveDescendant:null,ariaAtomic:en,ariaAutoComplete:null,ariaBusy:en,ariaChecked:en,ariaColCount:Ee,ariaColIndex:Ee,ariaColSpan:Ee,ariaControls:Lt,ariaCurrent:null,ariaDescribedBy:Lt,ariaDetails:null,ariaDisabled:en,ariaDropEffect:Lt,ariaErrorMessage:null,ariaExpanded:en,ariaFlowTo:Lt,ariaGrabbed:en,ariaHasPopup:null,ariaHidden:en,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Lt,ariaLevel:Ee,ariaLive:null,ariaModal:en,ariaMultiLine:en,ariaMultiSelectable:en,ariaOrientation:null,ariaOwns:Lt,ariaPlaceholder:null,ariaPosInSet:Ee,ariaPressed:en,ariaReadOnly:en,ariaRelevant:null,ariaRequired:en,ariaRoleDescription:Lt,ariaRowCount:Ee,ariaRowIndex:Ee,ariaRowSpan:Ee,ariaSelected:en,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 ug(e,t){return t in e?e[t]:t}function lg(e,t){return ug(e,t.toLowerCase())}const Xx=Wi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ki,acceptCharset:Lt,accessKey:Lt,action:null,allow:null,allowFullScreen:Ze,allowPaymentRequest:Ze,allowUserMedia:Ze,alt:null,as:null,async:Ze,autoCapitalize:null,autoComplete:Lt,autoFocus:Ze,autoPlay:Ze,blocking:Lt,capture:null,charSet:null,checked:Ze,cite:null,className:Lt,cols:Ee,colSpan:null,content:null,contentEditable:en,controls:Ze,controlsList:Lt,coords:Ee|Ki,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ze,defer:Ze,dir:null,dirName:null,disabled:Ze,download:rg,draggable:en,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ze,formTarget:null,headers:Lt,height:Ee,hidden:Ze,high:Ee,href:null,hrefLang:null,htmlFor:Lt,httpEquiv:Lt,id:null,imageSizes:null,imageSrcSet:null,inert:Ze,inputMode:null,integrity:null,is:null,isMap:Ze,itemId:null,itemProp:Lt,itemRef:Lt,itemScope:Ze,itemType:Lt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ze,low:Ee,manifest:null,max:null,maxLength:Ee,media:null,method:null,min:null,minLength:Ee,multiple:Ze,muted:Ze,name:null,nonce:null,noModule:Ze,noValidate:Ze,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:Ze,optimum:Ee,pattern:null,ping:Lt,placeholder:null,playsInline:Ze,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ze,referrerPolicy:null,rel:Lt,required:Ze,reversed:Ze,rows:Ee,rowSpan:Ee,sandbox:Lt,scope:null,scoped:Ze,seamless:Ze,selected:Ze,shadowRootClonable:Ze,shadowRootDelegatesFocus:Ze,shadowRootMode:null,shape:null,size:Ee,sizes:null,slot:null,span:Ee,spellCheck:en,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:Ze,useMap:null,value:en,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:Ze,declare:Ze,event:null,face:null,frame:null,frameBorder:null,hSpace:Ee,leftMargin:Ee,link:null,longDesc:null,lowSrc:null,marginHeight:Ee,marginWidth:Ee,noResize:Ze,noHref:Ze,noShade:Ze,noWrap:Ze,object:null,profile:null,prompt:null,rev:null,rightMargin:Ee,rules:null,scheme:null,scrolling:en,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:Ze,disableRemotePlayback:Ze,prefix:null,property:null,results:Ee,security:null,unselectable:null},space:"html",transform:lg}),Qx=Wi({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:Kn,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:Ze,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:Ki,g2:Ki,glyphName:Ki,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:Kn,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: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: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:Kn,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:Kn,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:Kn,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:ug}),og=Wi({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()}}),sg=Wi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:lg}),cg=Wi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Kx=/[A-Z]/g,fg=/-[a-z]/g,Wx=/^data[-\w.:]+$/i;function Zx(e,t){const r=pl(t);let i=t,l=wn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Wx.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(fg,e_);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!fg.test(s)){let c=s.replace(Kx,Jx);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}l=yd}return new l(i,t)}function Jx(e){return"-"+e.toLowerCase()}function e_(e){return e.charAt(1).toUpperCase()}const t_=ng([ig,Xx,og,sg,cg],"html"),n_=ng([ig,Qx,og,sg,cg],"svg"),dg=/[#.]/g;function r_(e,t){const r=e||"",i={};let l=0,s,c;for(;l<r.length;){dg.lastIndex=l;const d=dg.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 hg(e,t,r){const i=r?l_(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=r_(s,t);const m=p.tagName.toLowerCase(),b=i?i.get(m):void 0;if(p.tagName=b||m,a_(c))d.unshift(c);else for(const[E,S]of Object.entries(c))i_(e,p.properties,E,S)}for(const m of d)Td(p.children,m);return p.type==="element"&&p.tagName==="template"&&(p.content={type:"root",children:p.children},p.children=[]),p}return l}function a_(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 i_(e,t,r,i){const l=Zx(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=qm(i):l.commaSeparated?s=km(i):l.commaOrSpaceSeparated?s=qm(km(i).join(" ")):s=pg(l,l.property,i):Array.isArray(i)?s=[...i]:s=l.property==="style"?u_(i):String(i);if(Array.isArray(s)){const c=[];for(const d of s)c.push(pg(l,l.property,d));s=c}l.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[l.property]=s}}function Td(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)Td(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?Td(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function pg(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||pl(r)===pl(t)))return!0}return r}function u_(e){const t=[];for(const[r,i]of Object.entries(e))t.push([r,i].join(": "));return t.join("; ")}function l_(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const o_=["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"],s_=hg(t_,"div"),c_=hg(n_,"g",o_);class ml{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}}ml.prototype.normal={},ml.prototype.property={},ml.prototype.space=void 0;function mg(e,t){const r={},i={};for(const l of e)Object.assign(r,l.property),Object.assign(i,l.normal);return new ml(r,i,t)}function Sd(e){return e.toLowerCase()}class Mn{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 f_=0;const Je=li(),tn=li(),gg=li(),ye=li(),It=li(),Zi=li(),Wn=li();function li(){return 2**++f_}const Cd=Object.freeze(Object.defineProperty({__proto__:null,boolean:Je,booleanish:tn,commaOrSpaceSeparated:Wn,commaSeparated:Zi,number:ye,overloadedBoolean:gg,spaceSeparated:It},Symbol.toStringTag,{value:"Module"})),Ad=Object.keys(Cd);class xd extends Mn{constructor(t,r,i,l){let s=-1;if(super(t,r),bg(this,"space",l),typeof i=="number")for(;++s<Ad.length;){const c=Ad[s];bg(this,Ad[s],(i&Cd[c])===Cd[c])}}}xd.prototype.defined=!0;function bg(e,t,r){r&&(e[t]=r)}function Ji(e){const t={},r={};for(const[i,l]of Object.entries(e.properties)){const s=new xd(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,r[Sd(i)]=i,r[Sd(s.attribute)]=i}return new ml(t,r,e.space)}const Eg=Ji({properties:{ariaActiveDescendant:null,ariaAtomic:tn,ariaAutoComplete:null,ariaBusy:tn,ariaChecked:tn,ariaColCount:ye,ariaColIndex:ye,ariaColSpan:ye,ariaControls:It,ariaCurrent:null,ariaDescribedBy:It,ariaDetails:null,ariaDisabled:tn,ariaDropEffect:It,ariaErrorMessage:null,ariaExpanded:tn,ariaFlowTo:It,ariaGrabbed:tn,ariaHasPopup:null,ariaHidden:tn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:It,ariaLevel:ye,ariaLive:null,ariaModal:tn,ariaMultiLine:tn,ariaMultiSelectable:tn,ariaOrientation:null,ariaOwns:It,ariaPlaceholder:null,ariaPosInSet:ye,ariaPressed:tn,ariaReadOnly:tn,ariaRelevant:null,ariaRequired:tn,ariaRoleDescription:It,ariaRowCount:ye,ariaRowIndex:ye,ariaRowSpan:ye,ariaSelected:tn,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 yg(e,t){return t in e?e[t]:t}function Tg(e,t){return yg(e,t.toLowerCase())}const d_=Ji({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Zi,acceptCharset:It,accessKey:It,action:null,allow:null,allowFullScreen:Je,allowPaymentRequest:Je,allowUserMedia:Je,alt:null,as:null,async:Je,autoCapitalize:null,autoComplete:It,autoFocus:Je,autoPlay:Je,blocking:It,capture:null,charSet:null,checked:Je,cite:null,className:It,cols:ye,colSpan:null,content:null,contentEditable:tn,controls:Je,controlsList:It,coords:ye|Zi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Je,defer:Je,dir:null,dirName:null,disabled:Je,download:gg,draggable:tn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Je,formTarget:null,headers:It,height:ye,hidden:Je,high:ye,href:null,hrefLang:null,htmlFor:It,httpEquiv:It,id:null,imageSizes:null,imageSrcSet:null,inert:Je,inputMode:null,integrity:null,is:null,isMap:Je,itemId:null,itemProp:It,itemRef:It,itemScope:Je,itemType:It,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Je,low:ye,manifest:null,max:null,maxLength:ye,media:null,method:null,min:null,minLength:ye,multiple:Je,muted:Je,name:null,nonce:null,noModule:Je,noValidate:Je,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Je,optimum:ye,pattern:null,ping:It,placeholder:null,playsInline:Je,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Je,referrerPolicy:null,rel:It,required:Je,reversed:Je,rows:ye,rowSpan:ye,sandbox:It,scope:null,scoped:Je,seamless:Je,selected:Je,shadowRootClonable:Je,shadowRootDelegatesFocus:Je,shadowRootMode:null,shape:null,size:ye,sizes:null,slot:null,span:ye,spellCheck:tn,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:Je,useMap:null,value:tn,width:ye,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:It,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:Je,declare:Je,event:null,face:null,frame:null,frameBorder:null,hSpace:ye,leftMargin:ye,link:null,longDesc:null,lowSrc:null,marginHeight:ye,marginWidth:ye,noResize:Je,noHref:Je,noShade:Je,noWrap:Je,object:null,profile:null,prompt:null,rev:null,rightMargin:ye,rules:null,scheme:null,scrolling:tn,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:Je,disableRemotePlayback:Je,prefix:null,property:null,results:ye,security:null,unselectable:null},space:"html",transform:Tg}),h_=Ji({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:Wn,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:It,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:Je,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:Zi,g2:Zi,glyphName:Zi,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:Wn,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:It,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ye,pointsAtY:ye,pointsAtZ:ye,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Wn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Wn,rev:Wn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Wn,requiredFeatures:Wn,requiredFonts:Wn,requiredFormats:Wn,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:Wn,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:Wn,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:Wn,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:yg}),Sg=Ji({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()}}),Cg=Ji({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Tg}),Ag=Ji({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),p_=/[A-Z]/g,xg=/-[a-z]/g,m_=/^data[-\w.:]+$/i;function g_(e,t){const r=Sd(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"&&m_.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(xg,E_);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!xg.test(s)){let c=s.replace(p_,b_);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}l=xd}return new l(i,t)}function b_(e){return"-"+e.toLowerCase()}function E_(e){return e.charAt(1).toUpperCase()}const _g=mg([Eg,d_,Sg,Cg,Ag],"html"),vg=mg([Eg,h_,Sg,Cg,Ag],"svg");function y_(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=Rg(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=Rg(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 Rg(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 oi={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/"},Og={}.hasOwnProperty,T_=Object.prototype;function S_(e,t){const r=t||{};return _d({file:r.file||void 0,location:!1,schema:r.space==="svg"?vg:_g,verbose:r.verbose||!1},e)}function _d(e,t){let r;switch(t.nodeName){case"#comment":{const i=t;return r={type:"comment",value:i.data},_s(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:Ng(e,t.childNodes),data:{quirksMode:l}},e.file&&e.location){const s=String(e.file),c=y_(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"},_s(e,i,r),r}case"#text":{const i=t;return r={type:"text",value:i.value},_s(e,i,r),r}default:return r=C_(e,t),r}}function Ng(e,t){let r=-1;const i=[];for(;++r<t.length;){const l=_d(e,t[r]);i.push(l)}return i}function C_(e,t){const r=e.schema;e.schema=t.namespaceURI===oi.svg?vg:_g;let i=-1;const l={};for(;++i<t.attrs.length;){const d=t.attrs[i],p=(d.prefix?d.prefix+":":"")+d.name;Og.call(T_,p)||(l[p]=d.value)}const c=(e.schema.space==="svg"?c_:s_)(t.tagName,l,Ng(e,t.childNodes));if(_s(e,t,c),c.tagName==="template"){const d=t,p=d.sourceCodeLocation,m=p&&p.startTag&&eu(p.startTag),b=p&&p.endTag&&eu(p.endTag),E=_d(e,d.content);m&&b&&e.file&&(E.position={start:m.end,end:b.start}),c.content=E}return e.schema=r,c}function _s(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const i=A_(e,r,t.sourceCodeLocation);i&&(e.location=!0,r.position=i)}}function A_(e,t,r){const i=eu(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)Og.call(r.attrs,c)&&(s[g_(e.schema,c).property]=eu(r.attrs[c]));r.startTag;const d=eu(r.startTag),p=r.endTag?eu(r.endTag):void 0,m={opening:d};p&&(m.closing=p),m.properties=s,t.data={position:m}}}return i}function eu(e){const t=kg({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=kg({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function kg(e){return e.line&&e.column?e:void 0}const Dg={}.hasOwnProperty;function Lg(e,t){const r=t||{};function i(l,...s){let c=i.invalid;const d=i.handlers;if(l&&Dg.call(l,e)){const p=String(l[e]);c=Dg.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 x_={},__={}.hasOwnProperty,Ig=Lg("type",{handlers:{root:R_,element:L_,text:k_,comment:D_,doctype:N_}});function v_(e,t){const i=(t||x_).space;return Ig(e,i==="svg"?il:$m)}function R_(e,t){const r={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return r.childNodes=vd(e.children,r,t),tu(e,r),r}function O_(e,t){const r={nodeName:"#document-fragment",childNodes:[]};return r.childNodes=vd(e.children,r,t),tu(e,r),r}function N_(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return tu(e,t),t}function k_(e){const t={nodeName:"#text",value:e.value,parentNode:null};return tu(e,t),t}function D_(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return tu(e,t),t}function L_(e,t){const r=t;let i=r;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=il);const l=[];let s;if(e.properties){for(s in e.properties)if(s!=="children"&&__.call(e.properties,s)){const p=I_(i,s,e.properties[s]);p&&l.push(p)}}const c=i.space,d={nodeName:e.tagName,tagName:e.tagName,attrs:l,namespaceURI:oi[c],childNodes:[],parentNode:null};return d.childNodes=vd(e.children,d,i),tu(e,d),e.tagName==="template"&&e.content&&(d.content=O_(e.content,i)),d}function I_(e,t,r){const i=Vm(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?Dm(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=oi[i.space]}return l}function vd(e,t,r){let i=-1;const l=[];if(e)for(;++i<e.length;){const s=Ig(e[i],r);s.parentNode=t,l.push(s)}return l}function tu(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 w_=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],M_=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]),Pt="�";var k;(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"})(k||(k={}));const Bn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function wg(e){return e>=55296&&e<=57343}function B_(e){return e>=56320&&e<=57343}function P_(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||M_.has(e)}var ne;(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"})(ne||(ne={}));const U_=65536;class H_{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=U_,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(B_(r))return this.pos++,this._addGap(),P_(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,k.EOF;return this._err(ne.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,k.EOF;const i=this.html.charCodeAt(r);return i===k.CARRIAGE_RETURN?k.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,k.EOF;let t=this.html.charCodeAt(this.pos);return t===k.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,k.LINE_FEED):t===k.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,wg(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===k.LINE_FEED||t===k.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Mg(t)?this._err(ne.controlCharacterInInputStream):Bg(t)&&this._err(ne.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var at;(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"})(at||(at={}));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 Ug=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))),F_=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Rd;const z_=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]]),Y_=(Rd=String.fromCodePoint)!==null&&Rd!==void 0?Rd:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function j_(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=z_.get(e))!==null&&t!==void 0?t:e}var fn;(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"})(fn||(fn={}));const V_=32;var Ra;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ra||(Ra={}));function Od(e){return e>=fn.ZERO&&e<=fn.NINE}function $_(e){return e>=fn.UPPER_A&&e<=fn.UPPER_F||e>=fn.LOWER_A&&e<=fn.LOWER_F}function q_(e){return e>=fn.UPPER_A&&e<=fn.UPPER_Z||e>=fn.LOWER_A&&e<=fn.LOWER_Z||Od(e)}function G_(e){return e===fn.EQUALS||q_(e)}var dn;(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"})(dn||(dn={}));var na;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(na||(na={}));class Hg{constructor(t,r,i){this.decodeTree=t,this.emitCodePoint=r,this.errors=i,this.state=dn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=na.Strict}startEntity(t){this.decodeMode=t,this.state=dn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case dn.EntityStart:return t.charCodeAt(r)===fn.NUM?(this.state=dn.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=dn.NamedEntity,this.stateNamedEntity(t,r));case dn.NumericStart:return this.stateNumericStart(t,r);case dn.NumericDecimal:return this.stateNumericDecimal(t,r);case dn.NumericHex:return this.stateNumericHex(t,r);case dn.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|V_)===fn.LOWER_X?(this.state=dn.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=dn.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)+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(Od(l)||$_(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(Od(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===fn.SEMI)this.consumed+=1;else if(this.decodeMode===na.Strict)return 0;return this.emitCodePoint(j_(this.result),this.consumed),this.errors&&(t!==fn.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&Ra.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){const c=t.charCodeAt(r);if(this.treeIndex=X_(i,l,this.treeIndex+Math.max(1,s),c),this.treeIndex<0)return this.result===0||this.decodeMode===na.Attribute&&(s===0||G_(c))?0:this.emitNotTerminatedNamedEntity();if(l=i[this.treeIndex],s=(l&Ra.VALUE_LENGTH)>>14,s!==0){if(c===fn.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==na.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]&Ra.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]&~Ra.VALUE_LENGTH:l[t+1],i),r===3&&this.emitCodePoint(l[t+2],i),i}end(){var t;switch(this.state){case dn.NamedEntity:return this.result!==0&&(this.decodeMode!==na.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case dn.NumericDecimal:return this.emitNumericEntity(0,2);case dn.NumericHex:return this.emitNumericEntity(0,3);case dn.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case dn.EntityStart:return 0}}}function Fg(e){let t="";const r=new Hg(e,i=>t+=Y_(i));return function(l,s){let c=0,d=0;for(;(d=l.indexOf("&",d))>=0;){t+=l.slice(c,d),r.startEntity(s);const m=r.write(l,d+1);if(m<0){c=d+r.end();break}c=d+m,d=m===0?c+1:c}const p=t+l.slice(c);return t="",p}}function X_(e,t,r,i){const l=(t&Ra.BRANCH_LENGTH)>>7,s=t&Ra.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}Fg(Ug),Fg(F_);var he;(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/"})(he||(he={}));var si;(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"})(si||(si={}));var cr;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(cr||(cr={}));var G;(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"})(G||(G={}));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 Q_=new Map([[G.A,g.A],[G.ADDRESS,g.ADDRESS],[G.ANNOTATION_XML,g.ANNOTATION_XML],[G.APPLET,g.APPLET],[G.AREA,g.AREA],[G.ARTICLE,g.ARTICLE],[G.ASIDE,g.ASIDE],[G.B,g.B],[G.BASE,g.BASE],[G.BASEFONT,g.BASEFONT],[G.BGSOUND,g.BGSOUND],[G.BIG,g.BIG],[G.BLOCKQUOTE,g.BLOCKQUOTE],[G.BODY,g.BODY],[G.BR,g.BR],[G.BUTTON,g.BUTTON],[G.CAPTION,g.CAPTION],[G.CENTER,g.CENTER],[G.CODE,g.CODE],[G.COL,g.COL],[G.COLGROUP,g.COLGROUP],[G.DD,g.DD],[G.DESC,g.DESC],[G.DETAILS,g.DETAILS],[G.DIALOG,g.DIALOG],[G.DIR,g.DIR],[G.DIV,g.DIV],[G.DL,g.DL],[G.DT,g.DT],[G.EM,g.EM],[G.EMBED,g.EMBED],[G.FIELDSET,g.FIELDSET],[G.FIGCAPTION,g.FIGCAPTION],[G.FIGURE,g.FIGURE],[G.FONT,g.FONT],[G.FOOTER,g.FOOTER],[G.FOREIGN_OBJECT,g.FOREIGN_OBJECT],[G.FORM,g.FORM],[G.FRAME,g.FRAME],[G.FRAMESET,g.FRAMESET],[G.H1,g.H1],[G.H2,g.H2],[G.H3,g.H3],[G.H4,g.H4],[G.H5,g.H5],[G.H6,g.H6],[G.HEAD,g.HEAD],[G.HEADER,g.HEADER],[G.HGROUP,g.HGROUP],[G.HR,g.HR],[G.HTML,g.HTML],[G.I,g.I],[G.IMG,g.IMG],[G.IMAGE,g.IMAGE],[G.INPUT,g.INPUT],[G.IFRAME,g.IFRAME],[G.KEYGEN,g.KEYGEN],[G.LABEL,g.LABEL],[G.LI,g.LI],[G.LINK,g.LINK],[G.LISTING,g.LISTING],[G.MAIN,g.MAIN],[G.MALIGNMARK,g.MALIGNMARK],[G.MARQUEE,g.MARQUEE],[G.MATH,g.MATH],[G.MENU,g.MENU],[G.META,g.META],[G.MGLYPH,g.MGLYPH],[G.MI,g.MI],[G.MO,g.MO],[G.MN,g.MN],[G.MS,g.MS],[G.MTEXT,g.MTEXT],[G.NAV,g.NAV],[G.NOBR,g.NOBR],[G.NOFRAMES,g.NOFRAMES],[G.NOEMBED,g.NOEMBED],[G.NOSCRIPT,g.NOSCRIPT],[G.OBJECT,g.OBJECT],[G.OL,g.OL],[G.OPTGROUP,g.OPTGROUP],[G.OPTION,g.OPTION],[G.P,g.P],[G.PARAM,g.PARAM],[G.PLAINTEXT,g.PLAINTEXT],[G.PRE,g.PRE],[G.RB,g.RB],[G.RP,g.RP],[G.RT,g.RT],[G.RTC,g.RTC],[G.RUBY,g.RUBY],[G.S,g.S],[G.SCRIPT,g.SCRIPT],[G.SEARCH,g.SEARCH],[G.SECTION,g.SECTION],[G.SELECT,g.SELECT],[G.SOURCE,g.SOURCE],[G.SMALL,g.SMALL],[G.SPAN,g.SPAN],[G.STRIKE,g.STRIKE],[G.STRONG,g.STRONG],[G.STYLE,g.STYLE],[G.SUB,g.SUB],[G.SUMMARY,g.SUMMARY],[G.SUP,g.SUP],[G.TABLE,g.TABLE],[G.TBODY,g.TBODY],[G.TEMPLATE,g.TEMPLATE],[G.TEXTAREA,g.TEXTAREA],[G.TFOOT,g.TFOOT],[G.TD,g.TD],[G.TH,g.TH],[G.THEAD,g.THEAD],[G.TITLE,g.TITLE],[G.TR,g.TR],[G.TRACK,g.TRACK],[G.TT,g.TT],[G.U,g.U],[G.UL,g.UL],[G.SVG,g.SVG],[G.VAR,g.VAR],[G.WBR,g.WBR],[G.XMP,g.XMP]]);function nu(e){var t;return(t=Q_.get(e))!==null&&t!==void 0?t:g.UNKNOWN}const me=g,K_={[he.HTML]:new Set([me.ADDRESS,me.APPLET,me.AREA,me.ARTICLE,me.ASIDE,me.BASE,me.BASEFONT,me.BGSOUND,me.BLOCKQUOTE,me.BODY,me.BR,me.BUTTON,me.CAPTION,me.CENTER,me.COL,me.COLGROUP,me.DD,me.DETAILS,me.DIR,me.DIV,me.DL,me.DT,me.EMBED,me.FIELDSET,me.FIGCAPTION,me.FIGURE,me.FOOTER,me.FORM,me.FRAME,me.FRAMESET,me.H1,me.H2,me.H3,me.H4,me.H5,me.H6,me.HEAD,me.HEADER,me.HGROUP,me.HR,me.HTML,me.IFRAME,me.IMG,me.INPUT,me.LI,me.LINK,me.LISTING,me.MAIN,me.MARQUEE,me.MENU,me.META,me.NAV,me.NOEMBED,me.NOFRAMES,me.NOSCRIPT,me.OBJECT,me.OL,me.P,me.PARAM,me.PLAINTEXT,me.PRE,me.SCRIPT,me.SECTION,me.SELECT,me.SOURCE,me.STYLE,me.SUMMARY,me.TABLE,me.TBODY,me.TD,me.TEMPLATE,me.TEXTAREA,me.TFOOT,me.TH,me.THEAD,me.TITLE,me.TR,me.TRACK,me.UL,me.WBR,me.XMP]),[he.MATHML]:new Set([me.MI,me.MO,me.MN,me.MS,me.MTEXT,me.ANNOTATION_XML]),[he.SVG]:new Set([me.TITLE,me.FOREIGN_OBJECT,me.DESC]),[he.XLINK]:new Set,[he.XML]:new Set,[he.XMLNS]:new Set},Nd=new Set([me.H1,me.H2,me.H3,me.H4,me.H5,me.H6]);G.STYLE,G.SCRIPT,G.XMP,G.IFRAME,G.NOEMBED,G.NOFRAMES,G.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 Qt={DATA:w.DATA,RCDATA:w.RCDATA,RAWTEXT:w.RAWTEXT,SCRIPT_DATA:w.SCRIPT_DATA,PLAINTEXT:w.PLAINTEXT,CDATA_SECTION:w.CDATA_SECTION};function W_(e){return e>=k.DIGIT_0&&e<=k.DIGIT_9}function gl(e){return e>=k.LATIN_CAPITAL_A&&e<=k.LATIN_CAPITAL_Z}function Z_(e){return e>=k.LATIN_SMALL_A&&e<=k.LATIN_SMALL_Z}function Oa(e){return Z_(e)||gl(e)}function zg(e){return Oa(e)||W_(e)}function vs(e){return e+32}function Yg(e){return e===k.SPACE||e===k.LINE_FEED||e===k.TABULATION||e===k.FORM_FEED}function jg(e){return Yg(e)||e===k.SOLIDUS||e===k.GREATER_THAN_SIGN}function J_(e){return e===k.NULL?ne.nullCharacterReference:e>1114111?ne.characterReferenceOutsideUnicodeRange:wg(e)?ne.surrogateCharacterReference:Bg(e)?ne.noncharacterCharacterReference:Mg(e)||e===k.CARRIAGE_RETURN?ne.controlCharacterReference:null}class ev{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 H_(r),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Hg(Ug,(i,l)=>{this.preprocessor.pos=this.entityStartPos+l-1,this._flushCodePointConsumedAsCharacterReference(i)},r.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(ne.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:i=>{this._err(ne.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+i)},validateNumericCharacterReference:i=>{const l=J_(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:at.START_TAG,tagName:"",tagID:g.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:at.END_TAG,tagName:"",tagID:g.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:at.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:at.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 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(ne.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=nu(t.tagName),t.type===at.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(ne.endTagWithAttributes),t.selfClosing&&this._err(ne.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 at.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case at.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case at.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:at.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=Yg(t)?at.WHITESPACE_CHARACTER:t===k.NULL?at.NULL_CHARACTER:at.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(at.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=w.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?na.Attribute:na.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 k.LESS_THAN_SIGN:{this.state=w.TAG_OPEN;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.NULL:{this._err(ne.unexpectedNullCharacter),this._emitCodePoint(t);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case k.AMPERSAND:{this._startCharacterReference();break}case k.LESS_THAN_SIGN:{this.state=w.RCDATA_LESS_THAN_SIGN;break}case k.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(Pt);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case k.LESS_THAN_SIGN:{this.state=w.RAWTEXT_LESS_THAN_SIGN;break}case k.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(Pt);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case k.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_LESS_THAN_SIGN;break}case k.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(Pt);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case k.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(Pt);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Oa(t))this._createStartTagToken(),this.state=w.TAG_NAME,this._stateTagName(t);else switch(t){case k.EXCLAMATION_MARK:{this.state=w.MARKUP_DECLARATION_OPEN;break}case k.SOLIDUS:{this.state=w.END_TAG_OPEN;break}case k.QUESTION_MARK:{this._err(ne.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=w.BOGUS_COMMENT,this._stateBogusComment(t);break}case k.EOF:{this._err(ne.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ne.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=w.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Oa(t))this._createEndTagToken(),this.state=w.TAG_NAME,this._stateTagName(t);else switch(t){case k.GREATER_THAN_SIGN:{this._err(ne.missingEndTagName),this.state=w.DATA;break}case k.EOF:{this._err(ne.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(ne.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=w.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=w.BEFORE_ATTRIBUTE_NAME;break}case k.SOLIDUS:{this.state=w.SELF_CLOSING_START_TAG;break}case k.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentTagToken();break}case k.NULL:{this._err(ne.unexpectedNullCharacter),r.tagName+=Pt;break}case k.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(gl(t)?vs(t):t)}}_stateRcdataLessThanSign(t){t===k.SOLIDUS?this.state=w.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=w.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Oa(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 k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=w.BEFORE_ATTRIBUTE_NAME,!1;case k.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=w.SELF_CLOSING_START_TAG,!1;case k.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===k.SOLIDUS?this.state=w.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=w.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Oa(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 k.SOLIDUS:{this.state=w.SCRIPT_DATA_END_TAG_OPEN;break}case k.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){Oa(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===k.HYPHEN_MINUS?(this.state=w.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=w.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===k.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 k.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case k.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(Pt);break}case k.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case k.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case k.NULL:{this._err(ne.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_ESCAPED,this._emitChars(Pt);break}case k.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case k.HYPHEN_MINUS:{this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case k.GREATER_THAN_SIGN:{this.state=w.SCRIPT_DATA,this._emitChars(">");break}case k.NULL:{this._err(ne.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_ESCAPED,this._emitChars(Pt);break}case k.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===k.SOLIDUS?this.state=w.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Oa(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){Oa(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(Bn.SCRIPT,!1)&&jg(this.preprocessor.peek(Bn.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Bn.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 k.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case k.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(Pt);break}case k.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case k.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case k.NULL:{this._err(ne.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Pt);break}case k.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case k.HYPHEN_MINUS:{this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case k.GREATER_THAN_SIGN:{this.state=w.SCRIPT_DATA,this._emitChars(">");break}case k.NULL:{this._err(ne.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Pt);break}case k.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===k.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(Bn.SCRIPT,!1)&&jg(this.preprocessor.peek(Bn.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Bn.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 k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.SOLIDUS:case k.GREATER_THAN_SIGN:case k.EOF:{this.state=w.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case k.EQUALS_SIGN:{this._err(ne.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 k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:case k.SOLIDUS:case k.GREATER_THAN_SIGN:case k.EOF:{this._leaveAttrName(),this.state=w.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case k.EQUALS_SIGN:{this._leaveAttrName(),this.state=w.BEFORE_ATTRIBUTE_VALUE;break}case k.QUOTATION_MARK:case k.APOSTROPHE:case k.LESS_THAN_SIGN:{this._err(ne.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case k.NULL:{this._err(ne.unexpectedNullCharacter),this.currentAttr.name+=Pt;break}default:this.currentAttr.name+=String.fromCodePoint(gl(t)?vs(t):t)}}_stateAfterAttributeName(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.SOLIDUS:{this.state=w.SELF_CLOSING_START_TAG;break}case k.EQUALS_SIGN:{this.state=w.BEFORE_ATTRIBUTE_VALUE;break}case k.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentTagToken();break}case k.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=w.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.QUOTATION_MARK:{this.state=w.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this.state=w.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(ne.missingAttributeValue),this.state=w.DATA,this.emitCurrentTagToken();break}default:this.state=w.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case k.QUOTATION_MARK:{this.state=w.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.NULL:{this._err(ne.unexpectedNullCharacter),this.currentAttr.value+=Pt;break}case k.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case k.APOSTROPHE:{this.state=w.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.NULL:{this._err(ne.unexpectedNullCharacter),this.currentAttr.value+=Pt;break}case k.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this._leaveAttrValue(),this.state=w.BEFORE_ATTRIBUTE_NAME;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=w.DATA,this.emitCurrentTagToken();break}case k.NULL:{this._err(ne.unexpectedNullCharacter),this.currentAttr.value+=Pt;break}case k.QUOTATION_MARK:case k.APOSTROPHE:case k.LESS_THAN_SIGN:case k.EQUALS_SIGN:case k.GRAVE_ACCENT:{this._err(ne.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case k.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this._leaveAttrValue(),this.state=w.BEFORE_ATTRIBUTE_NAME;break}case k.SOLIDUS:{this._leaveAttrValue(),this.state=w.SELF_CLOSING_START_TAG;break}case k.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=w.DATA,this.emitCurrentTagToken();break}case k.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:this._err(ne.missingWhitespaceBetweenAttributes),this.state=w.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case k.GREATER_THAN_SIGN:{const r=this.currentToken;r.selfClosing=!0,this.state=w.DATA,this.emitCurrentTagToken();break}case k.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:this._err(ne.unexpectedSolidusInTag),this.state=w.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const r=this.currentToken;switch(t){case k.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentComment(r);break}case k.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case k.NULL:{this._err(ne.unexpectedNullCharacter),r.data+=Pt;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Bn.DASH_DASH,!0)?(this._createCommentToken(Bn.DASH_DASH.length+1),this.state=w.COMMENT_START):this._consumeSequenceIfMatch(Bn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Bn.DOCTYPE.length+1),this.state=w.DOCTYPE):this._consumeSequenceIfMatch(Bn.CDATA_START,!0)?this.inForeignNode?this.state=w.CDATA_SECTION:(this._err(ne.cdataInHtmlContent),this._createCommentToken(Bn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=w.BOGUS_COMMENT):this._ensureHibernation()||(this._err(ne.incorrectlyOpenedComment),this._createCommentToken(2),this.state=w.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case k.HYPHEN_MINUS:{this.state=w.COMMENT_START_DASH;break}case k.GREATER_THAN_SIGN:{this._err(ne.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 k.HYPHEN_MINUS:{this.state=w.COMMENT_END;break}case k.GREATER_THAN_SIGN:{this._err(ne.abruptClosingOfEmptyComment),this.state=w.DATA,this.emitCurrentComment(r);break}case k.EOF:{this._err(ne.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 k.HYPHEN_MINUS:{this.state=w.COMMENT_END_DASH;break}case k.LESS_THAN_SIGN:{r.data+="<",this.state=w.COMMENT_LESS_THAN_SIGN;break}case k.NULL:{this._err(ne.unexpectedNullCharacter),r.data+=Pt;break}case k.EOF:{this._err(ne.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const r=this.currentToken;switch(t){case k.EXCLAMATION_MARK:{r.data+="!",this.state=w.COMMENT_LESS_THAN_SIGN_BANG;break}case k.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=w.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===k.HYPHEN_MINUS?this.state=w.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=w.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===k.HYPHEN_MINUS?this.state=w.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=w.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==k.GREATER_THAN_SIGN&&t!==k.EOF&&this._err(ne.nestedComment),this.state=w.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const r=this.currentToken;switch(t){case k.HYPHEN_MINUS:{this.state=w.COMMENT_END;break}case k.EOF:{this._err(ne.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 k.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentComment(r);break}case k.EXCLAMATION_MARK:{this.state=w.COMMENT_END_BANG;break}case k.HYPHEN_MINUS:{r.data+="-";break}case k.EOF:{this._err(ne.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 k.HYPHEN_MINUS:{r.data+="--!",this.state=w.COMMENT_END_DASH;break}case k.GREATER_THAN_SIGN:{this._err(ne.incorrectlyClosedComment),this.state=w.DATA,this.emitCurrentComment(r);break}case k.EOF:{this._err(ne.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=w.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_NAME;break}case k.GREATER_THAN_SIGN:{this.state=w.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case k.EOF:{this._err(ne.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ne.missingWhitespaceBeforeDoctypeName),this.state=w.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(gl(t))this._createDoctypeToken(String.fromCharCode(vs(t))),this.state=w.DOCTYPE_NAME;else switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.NULL:{this._err(ne.unexpectedNullCharacter),this._createDoctypeToken(Pt),this.state=w.DOCTYPE_NAME;break}case k.GREATER_THAN_SIGN:{this._err(ne.missingDoctypeName),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case k.EOF:{this._err(ne.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 k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=w.AFTER_DOCTYPE_NAME;break}case k.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(r);break}case k.NULL:{this._err(ne.unexpectedNullCharacter),r.name+=Pt;break}case k.EOF:{this._err(ne.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(gl(t)?vs(t):t)}}_stateAfterDoctypeName(t){const r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(r);break}case k.EOF:{this._err(ne.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Bn.PUBLIC,!1)?this.state=w.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Bn.SYSTEM,!1)?this.state=w.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(ne.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case k.QUOTATION_MARK:{this._err(ne.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this._err(ne.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(ne.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(r);break}case k.EOF:{this._err(ne.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ne.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.QUOTATION_MARK:{r.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{r.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(ne.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(r);break}case k.EOF:{this._err(ne.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ne.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case k.QUOTATION_MARK:{this.state=w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case k.NULL:{this._err(ne.unexpectedNullCharacter),r.publicId+=Pt;break}case k.GREATER_THAN_SIGN:{this._err(ne.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case k.EOF:{this._err(ne.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 k.APOSTROPHE:{this.state=w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case k.NULL:{this._err(ne.unexpectedNullCharacter),r.publicId+=Pt;break}case k.GREATER_THAN_SIGN:{this._err(ne.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case k.EOF:{this._err(ne.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 k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=w.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case k.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(r);break}case k.QUOTATION_MARK:{this._err(ne.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this._err(ne.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.EOF:{this._err(ne.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ne.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=w.DATA;break}case k.QUOTATION_MARK:{r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.EOF:{this._err(ne.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ne.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case k.QUOTATION_MARK:{this._err(ne.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this._err(ne.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(ne.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(r);break}case k.EOF:{this._err(ne.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ne.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.QUOTATION_MARK:{r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(ne.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(r);break}case k.EOF:{this._err(ne.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ne.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case k.QUOTATION_MARK:{this.state=w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case k.NULL:{this._err(ne.unexpectedNullCharacter),r.systemId+=Pt;break}case k.GREATER_THAN_SIGN:{this._err(ne.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case k.EOF:{this._err(ne.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 k.APOSTROPHE:{this.state=w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case k.NULL:{this._err(ne.unexpectedNullCharacter),r.systemId+=Pt;break}case k.GREATER_THAN_SIGN:{this._err(ne.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case k.EOF:{this._err(ne.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 k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=w.DATA;break}case k.EOF:{this._err(ne.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ne.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const r=this.currentToken;switch(t){case k.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=w.DATA;break}case k.NULL:{this._err(ne.unexpectedNullCharacter);break}case k.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case k.RIGHT_SQUARE_BRACKET:{this.state=w.CDATA_SECTION_BRACKET;break}case k.EOF:{this._err(ne.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===k.RIGHT_SQUARE_BRACKET?this.state=w.CDATA_SECTION_END:(this._emitChars("]"),this.state=w.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case k.GREATER_THAN_SIGN:{this.state=w.DATA;break}case k.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(k.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&zg(this.preprocessor.peek(1))?w.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){zg(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===k.SEMICOLON&&this._err(ne.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const Vg=new Set([g.DD,g.DT,g.LI,g.OPTGROUP,g.OPTION,g.P,g.RB,g.RP,g.RT,g.RTC]),$g=new Set([...Vg,g.CAPTION,g.COLGROUP,g.TBODY,g.TD,g.TFOOT,g.TH,g.THEAD,g.TR]),Rs=new Set([g.APPLET,g.CAPTION,g.HTML,g.MARQUEE,g.OBJECT,g.TABLE,g.TD,g.TEMPLATE,g.TH]),tv=new Set([...Rs,g.OL,g.UL]),nv=new Set([...Rs,g.BUTTON]),qg=new Set([g.ANNOTATION_XML,g.MI,g.MN,g.MO,g.MS,g.MTEXT]),Gg=new Set([g.DESC,g.FOREIGN_OBJECT,g.TITLE]),rv=new Set([g.TR,g.TEMPLATE,g.HTML]),av=new Set([g.TBODY,g.TFOOT,g.THEAD,g.TEMPLATE,g.HTML]),iv=new Set([g.TABLE,g.TEMPLATE,g.HTML]),uv=new Set([g.TD,g.TH]);class lv{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)===he.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.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])!==he.HTML);this.shortenToLength(r<0?0:r)}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(r<0?0:r)}popUntilPopped(t,r){const i=this._indexOfTagNames(t,r);this.shortenToLength(i<0?0:i)}popUntilNumberedHeaderPopped(){this.popUntilPopped(Nd,he.HTML)}popUntilTableCellPopped(){this.popUntilPopped(uv,he.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(iv,he.HTML)}clearBackToTableBodyContext(){this.clearBackTo(av,he.HTML)}clearBackToTableRowContext(){this.clearBackTo(rv,he.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 he.HTML:{if(l===t)return!0;if(r.has(l))return!1;break}case he.SVG:{if(Gg.has(l))return!1;break}case he.MATHML:{if(qg.has(l))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Rs)}hasInListItemScope(t){return this.hasInDynamicScope(t,tv)}hasInButtonScope(t){return this.hasInDynamicScope(t,nv)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case he.HTML:{if(Nd.has(r))return!0;if(Rs.has(r))return!1;break}case he.SVG:{if(Gg.has(r))return!1;break}case he.MATHML:{if(qg.has(r))return!1;break}}}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===he.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])===he.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])===he.HTML)switch(this.tagIDs[r]){case t:return!0;case g.OPTION:case g.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;Vg.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;$g.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&$g.has(this.currentTagId);)this.pop()}}const kd=3;var zr;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(zr||(zr={}));const Xg={type:zr.Marker};class ov{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===zr.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<kd)return;const r=this.treeAdapter.getAttrList(t),i=this._getNoahArkConditionCandidates(t,r);if(i.length<kd)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>=kd&&this.entries.splice(d.idx,1))}}insertMarker(){this.entries.unshift(Xg)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:zr.Element,element:t,token:r})}insertElementAfterBookmark(t,r){const i=this.entries.indexOf(this.bookmark);this.entries.splice(i,0,{type:zr.Element,element:t,token:r})}removeEntry(t){const r=this.entries.indexOf(t);r>=0&&this.entries.splice(r,1)}clearToLastMarker(){const t=this.entries.indexOf(Xg);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const r=this.entries.find(i=>i.type===zr.Marker||this.treeAdapter.getTagName(i.element)===t);return r&&r.type===zr.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===zr.Element&&r.element===t)}}const Na={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};Na.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(Na.isTextNode(r)){r.value+=t;return}}Na.appendChild(e,Na.createTextNode(t))},insertTextBefore(e,t,r){const i=e.childNodes[e.childNodes.indexOf(r)-1];i&&Na.isTextNode(i)?i.value+=t:Na.insertBefore(e,Na.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}}},Qg="html",sv="about:legacy-compat",cv="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Kg=["+//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//"],fv=[...Kg,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],dv=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Wg=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],hv=[...Wg,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Zg(e,t){return t.some(r=>e.startsWith(r))}function pv(e){return e.name===Qg&&e.publicId===null&&(e.systemId===null||e.systemId===sv)}function mv(e){if(e.name!==Qg)return cr.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===cv)return cr.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),dv.has(r))return cr.QUIRKS;let i=t===null?fv:Kg;if(Zg(r,i))return cr.QUIRKS;if(i=t===null?Wg:hv,Zg(r,i))return cr.LIMITED_QUIRKS}return cr.NO_QUIRKS}const Jg={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},gv="definitionurl",bv="definitionURL",Ev=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])),yv=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:he.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:he.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:he.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:he.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:he.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:he.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:he.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:he.XML}],["xml:space",{prefix:"xml",name:"space",namespace:he.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:he.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:he.XMLNS}]]),Tv=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])),Sv=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 Cv(e){const t=e.tagID;return t===g.FONT&&e.attrs.some(({name:i})=>i===si.COLOR||i===si.SIZE||i===si.FACE)||Sv.has(t)}function eb(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===gv){e.attrs[t].name=bv;break}}function tb(e){for(let t=0;t<e.attrs.length;t++){const r=Ev.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function Dd(e){for(let t=0;t<e.attrs.length;t++){const r=yv.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 Av(e){const t=Tv.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=nu(e.tagName))}function xv(e,t){return t===he.MATHML&&(e===g.MI||e===g.MO||e===g.MN||e===g.MS||e===g.MTEXT)}function _v(e,t,r){if(t===he.MATHML&&e===g.ANNOTATION_XML){for(let i=0;i<r.length;i++)if(r[i].name===si.ENCODING){const l=r[i].value.toLowerCase();return l===Jg.TEXT_HTML||l===Jg.APPLICATION_XML}}return t===he.SVG&&(e===g.FOREIGN_OBJECT||e===g.DESC||e===g.TITLE)}function vv(e,t,r,i){return(!i||i===he.HTML)&&_v(e,t,r)||(!i||i===he.MATHML)&&xv(e,t)}const Rv="hidden",Ov=8,Nv=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 kv={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},nb=new Set([g.TABLE,g.TBODY,g.TFOOT,g.THEAD,g.TR]),rb={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Na,onParseError:null};class ab{constructor(t,r,i=null,l=null){this.fragmentContext=i,this.scriptHandler=l,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={...rb,...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 ev(this.options,this),this.activeFormattingElements=new ov(this.treeAdapter),this.fragmentContextID=i?nu(this.treeAdapter.getTagName(i)):g.UNKNOWN,this._setContextModes(i??this.document,this.fragmentContextID),this.openElements=new lv(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={...rb,...r};t??(t=i.treeAdapter.createElement(G.TEMPLATE,he.HTML,[]));const l=i.treeAdapter.createElement("documentmock",he.HTML,[]),s=new this(i,l,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 l;if(!this.onParseError)return;const s=(l=t.location)!==null&&l!==void 0?l:kv,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||this.treeAdapter.getNamespaceURI(t)===he.HTML;this.currentNotInHTML=!i,this.tokenizer.inForeignNode=!i&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,he.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=Qt.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)===G.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==he.HTML))switch(this.fragmentContextID){case g.TITLE:case g.TEXTAREA:{this.tokenizer.state=Qt.RCDATA;break}case g.STYLE:case g.XMP:case g.IFRAME:case g.NOEMBED:case g.NOFRAMES:case g.NOSCRIPT:{this.tokenizer.state=Qt.RAWTEXT;break}case g.SCRIPT:{this.tokenizer.state=Qt.SCRIPT_DATA;break}case g.PLAINTEXT:{this.tokenizer.state=Qt.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,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,he.HTML,[]);this._attachElementToTree(i,null),this.openElements.push(i,r)}_insertTemplate(t){const r=this.treeAdapter.createElement(t.tagName,he.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(G.HTML,he.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===at.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)===G.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===he.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===g.MGLYPH||t.tagID===g.MALIGNMARK)&&!this._isIntegrationPoint(i,r,he.HTML)}_processToken(t){switch(t.type){case at.CHARACTER:{this.onCharacter(t);break}case at.NULL_CHARACTER:{this.onNullCharacter(t);break}case at.COMMENT:{this.onComment(t);break}case at.DOCTYPE:{this.onDoctype(t);break}case at.START_TAG:{this._processStartTag(t);break}case at.END_TAG:{this.onEndTag(t);break}case at.EOF:{this.onEof(t);break}case at.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,i){const l=this.treeAdapter.getNamespaceURI(r),s=this.treeAdapter.getAttrList(r);return vv(t,l,s,i)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const r=this.activeFormattingElements.entries.findIndex(l=>l.type===zr.Marker||this.openElements.contains(l.element)),i=r<0?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=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 nb.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&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)===he.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 K_[i].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){u8(this,t);return}switch(this.insertionMode){case U.INITIAL:{bl(this,t);break}case U.BEFORE_HTML:{El(this,t);break}case U.BEFORE_HEAD:{yl(this,t);break}case U.IN_HEAD:{Tl(this,t);break}case U.IN_HEAD_NO_SCRIPT:{Sl(this,t);break}case U.AFTER_HEAD:{Cl(this,t);break}case U.IN_BODY:case U.IN_CAPTION:case U.IN_CELL:case U.IN_TEMPLATE:{ub(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:{Md(this,t);break}case U.IN_TABLE_TEXT:{pb(this,t);break}case U.IN_COLUMN_GROUP:{ks(this,t);break}case U.AFTER_BODY:{Is(this,t);break}case U.AFTER_AFTER_BODY:{ws(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){i8(this,t);return}switch(this.insertionMode){case U.INITIAL:{bl(this,t);break}case U.BEFORE_HTML:{El(this,t);break}case U.BEFORE_HEAD:{yl(this,t);break}case U.IN_HEAD:{Tl(this,t);break}case U.IN_HEAD_NO_SCRIPT:{Sl(this,t);break}case U.AFTER_HEAD:{Cl(this,t);break}case U.TEXT:{this._insertCharacters(t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{Md(this,t);break}case U.IN_COLUMN_GROUP:{ks(this,t);break}case U.AFTER_BODY:{Is(this,t);break}case U.AFTER_AFTER_BODY:{ws(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Id(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:{Id(this,t);break}case U.IN_TABLE_TEXT:{_l(this,t);break}case U.AFTER_BODY:{Pv(this,t);break}case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{Uv(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case U.INITIAL:{Hv(this,t);break}case U.BEFORE_HEAD:case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:{this._err(t,ne.misplacedDoctype);break}case U.IN_TABLE_TEXT:{_l(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,ne.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?l8(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case U.INITIAL:{bl(this,t);break}case U.BEFORE_HTML:{Fv(this,t);break}case U.BEFORE_HEAD:{Yv(this,t);break}case U.IN_HEAD:{kr(this,t);break}case U.IN_HEAD_NO_SCRIPT:{$v(this,t);break}case U.AFTER_HEAD:{Gv(this,t);break}case U.IN_BODY:{xn(this,t);break}case U.IN_TABLE:{ru(this,t);break}case U.IN_TABLE_TEXT:{_l(this,t);break}case U.IN_CAPTION:{j5(this,t);break}case U.IN_COLUMN_GROUP:{Bd(this,t);break}case U.IN_TABLE_BODY:{Ds(this,t);break}case U.IN_ROW:{Ls(this,t);break}case U.IN_CELL:{q5(this,t);break}case U.IN_SELECT:{bb(this,t);break}case U.IN_SELECT_IN_TABLE:{X5(this,t);break}case U.IN_TEMPLATE:{K5(this,t);break}case U.AFTER_BODY:{Z5(this,t);break}case U.IN_FRAMESET:{J5(this,t);break}case U.AFTER_FRAMESET:{t8(this,t);break}case U.AFTER_AFTER_BODY:{r8(this,t);break}case U.AFTER_AFTER_FRAMESET:{a8(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?o8(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case U.INITIAL:{bl(this,t);break}case U.BEFORE_HTML:{zv(this,t);break}case U.BEFORE_HEAD:{jv(this,t);break}case U.IN_HEAD:{Vv(this,t);break}case U.IN_HEAD_NO_SCRIPT:{qv(this,t);break}case U.AFTER_HEAD:{Xv(this,t);break}case U.IN_BODY:{Ns(this,t);break}case U.TEXT:{I5(this,t);break}case U.IN_TABLE:{Al(this,t);break}case U.IN_TABLE_TEXT:{_l(this,t);break}case U.IN_CAPTION:{V5(this,t);break}case U.IN_COLUMN_GROUP:{$5(this,t);break}case U.IN_TABLE_BODY:{Pd(this,t);break}case U.IN_ROW:{gb(this,t);break}case U.IN_CELL:{G5(this,t);break}case U.IN_SELECT:{Eb(this,t);break}case U.IN_SELECT_IN_TABLE:{Q5(this,t);break}case U.IN_TEMPLATE:{W5(this,t);break}case U.AFTER_BODY:{Tb(this,t);break}case U.IN_FRAMESET:{e8(this,t);break}case U.AFTER_FRAMESET:{n8(this,t);break}case U.AFTER_AFTER_BODY:{ws(this,t);break}}}onEof(t){switch(this.insertionMode){case U.INITIAL:{bl(this,t);break}case U.BEFORE_HTML:{El(this,t);break}case U.BEFORE_HEAD:{yl(this,t);break}case U.IN_HEAD:{Tl(this,t);break}case U.IN_HEAD_NO_SCRIPT:{Sl(this,t);break}case U.AFTER_HEAD:{Cl(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:{db(this,t);break}case U.TEXT:{w5(this,t);break}case U.IN_TABLE_TEXT:{_l(this,t);break}case U.IN_TEMPLATE:{yb(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:{wd(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===k.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:{ib(this,t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{Md(this,t);break}case U.IN_TABLE_TEXT:{hb(this,t);break}}}}function Dv(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):fb(e,t),r}function Lv(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(i<0?0:i),e.activeFormattingElements.removeEntry(t)),r}function Iv(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>=Nv;!d||p?(p&&e.activeFormattingElements.removeEntry(d),e.openElements.remove(c)):(c=wv(e,d),i===t&&(e.activeFormattingElements.bookmark=d),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(c,i),i=c)}return i}function wv(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 Mv(e,t,r){const i=e.treeAdapter.getTagName(t),l=nu(i);if(e._isElementCausesFosterParenting(l))e._fosterParentElement(r);else{const s=e.treeAdapter.getNamespaceURI(t);l===g.TEMPLATE&&s===he.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function Bv(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 Ld(e,t){for(let r=0;r<Ov;r++){const i=Dv(e,t);if(!i)break;const l=Lv(e,i);if(!l)break;e.activeFormattingElements.bookmark=i;const s=Iv(e,l,i.element),c=e.openElements.getCommonAncestor(i.element);e.treeAdapter.detachNode(s),c&&Mv(e,c,s),Bv(e,l,i)}}function Id(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Pv(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Uv(e,t){e._appendCommentNode(t,e.document)}function wd(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 Hv(e,t){e._setDocumentType(t);const r=t.forceQuirks?cr.QUIRKS:mv(t);pv(t)||e._err(t,ne.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=U.BEFORE_HTML}function bl(e,t){e._err(t,ne.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,cr.QUIRKS),e.insertionMode=U.BEFORE_HTML,e._processToken(t)}function Fv(e,t){t.tagID===g.HTML?(e._insertElement(t,he.HTML),e.insertionMode=U.BEFORE_HEAD):El(e,t)}function zv(e,t){const r=t.tagID;(r===g.HTML||r===g.HEAD||r===g.BODY||r===g.BR)&&El(e,t)}function El(e,t){e._insertFakeRootElement(),e.insertionMode=U.BEFORE_HEAD,e._processToken(t)}function Yv(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.HEAD:{e._insertElement(t,he.HTML),e.headElement=e.openElements.current,e.insertionMode=U.IN_HEAD;break}default:yl(e,t)}}function jv(e,t){const r=t.tagID;r===g.HEAD||r===g.BODY||r===g.HTML||r===g.BR?yl(e,t):e._err(t,ne.endTagWithoutMatchingOpenElement)}function yl(e,t){e._insertFakeElement(G.HEAD,g.HEAD),e.headElement=e.openElements.current,e.insertionMode=U.IN_HEAD,e._processToken(t)}function kr(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,he.HTML),t.ackSelfClosing=!0;break}case g.TITLE:{e._switchToTextParsing(t,Qt.RCDATA);break}case g.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Qt.RAWTEXT):(e._insertElement(t,he.HTML),e.insertionMode=U.IN_HEAD_NO_SCRIPT);break}case g.NOFRAMES:case g.STYLE:{e._switchToTextParsing(t,Qt.RAWTEXT);break}case g.SCRIPT:{e._switchToTextParsing(t,Qt.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,ne.misplacedStartTagForHeadElement);break}default:Tl(e,t)}}function Vv(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:{Tl(e,t);break}case g.TEMPLATE:{ci(e,t);break}default:e._err(t,ne.endTagWithoutMatchingOpenElement)}}function ci(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==g.TEMPLATE&&e._err(t,ne.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,ne.endTagWithoutMatchingOpenElement)}function Tl(e,t){e.openElements.pop(),e.insertionMode=U.AFTER_HEAD,e._processToken(t)}function $v(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:{kr(e,t);break}case g.NOSCRIPT:{e._err(t,ne.nestedNoscriptInHead);break}default:Sl(e,t)}}function qv(e,t){switch(t.tagID){case g.NOSCRIPT:{e.openElements.pop(),e.insertionMode=U.IN_HEAD;break}case g.BR:{Sl(e,t);break}default:e._err(t,ne.endTagWithoutMatchingOpenElement)}}function Sl(e,t){const r=t.type===at.EOF?ne.openElementsLeftAfterEof:ne.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=U.IN_HEAD,e._processToken(t)}function Gv(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.BODY:{e._insertElement(t,he.HTML),e.framesetOk=!1,e.insertionMode=U.IN_BODY;break}case g.FRAMESET:{e._insertElement(t,he.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,ne.abandonedHeadElementChild),e.openElements.push(e.headElement,g.HEAD),kr(e,t),e.openElements.remove(e.headElement);break}case g.HEAD:{e._err(t,ne.misplacedStartTagForHeadElement);break}default:Cl(e,t)}}function Xv(e,t){switch(t.tagID){case g.BODY:case g.HTML:case g.BR:{Cl(e,t);break}case g.TEMPLATE:{ci(e,t);break}default:e._err(t,ne.endTagWithoutMatchingOpenElement)}}function Cl(e,t){e._insertFakeElement(G.BODY,g.BODY),e.insertionMode=U.IN_BODY,Os(e,t)}function Os(e,t){switch(t.type){case at.CHARACTER:{ub(e,t);break}case at.WHITESPACE_CHARACTER:{ib(e,t);break}case at.COMMENT:{Id(e,t);break}case at.START_TAG:{xn(e,t);break}case at.END_TAG:{Ns(e,t);break}case at.EOF:{db(e,t);break}}}function ib(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function ub(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Qv(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Kv(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function Wv(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,he.HTML),e.insertionMode=U.IN_FRAMESET)}function Zv(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,he.HTML)}function Jv(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),Nd.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,he.HTML)}function e5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,he.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function t5(e,t){const r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,he.HTML),r||(e.formElement=e.openElements.current))}function n5(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,he.HTML)}function r5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,he.HTML),e.tokenizer.state=Qt.PLAINTEXT}function a5(e,t){e.openElements.hasInScope(g.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,he.HTML),e.framesetOk=!1}function i5(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(G.A);r&&(Ld(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,he.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function u5(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,he.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function l5(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(g.NOBR)&&(Ld(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,he.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function o5(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,he.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function s5(e,t){e.treeAdapter.getDocumentMode(e.document)!==cr.QUIRKS&&e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,he.HTML),e.framesetOk=!1,e.insertionMode=U.IN_TABLE}function lb(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,he.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function ob(e){const t=Pg(e,si.TYPE);return t!=null&&t.toLowerCase()===Rv}function c5(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,he.HTML),ob(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function f5(e,t){e._appendElement(t,he.HTML),t.ackSelfClosing=!0}function d5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._appendElement(t,he.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function h5(e,t){t.tagName=G.IMG,t.tagID=g.IMG,lb(e,t)}function p5(e,t){e._insertElement(t,he.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Qt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=U.TEXT}function m5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Qt.RAWTEXT)}function g5(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Qt.RAWTEXT)}function sb(e,t){e._switchToTextParsing(t,Qt.RAWTEXT)}function b5(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,he.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 E5(e,t){e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,he.HTML)}function y5(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,he.HTML)}function T5(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(g.RTC),e._insertElement(t,he.HTML)}function S5(e,t){e._reconstructActiveFormattingElements(),eb(t),Dd(t),t.selfClosing?e._appendElement(t,he.MATHML):e._insertElement(t,he.MATHML),t.ackSelfClosing=!0}function C5(e,t){e._reconstructActiveFormattingElements(),tb(t),Dd(t),t.selfClosing?e._appendElement(t,he.SVG):e._insertElement(t,he.SVG),t.ackSelfClosing=!0}function cb(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,he.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:{u5(e,t);break}case g.A:{i5(e,t);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{Jv(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:{Zv(e,t);break}case g.LI:case g.DD:case g.DT:{n5(e,t);break}case g.BR:case g.IMG:case g.WBR:case g.AREA:case g.EMBED:case g.KEYGEN:{lb(e,t);break}case g.HR:{d5(e,t);break}case g.RB:case g.RTC:{y5(e,t);break}case g.RT:case g.RP:{T5(e,t);break}case g.PRE:case g.LISTING:{e5(e,t);break}case g.XMP:{m5(e,t);break}case g.SVG:{C5(e,t);break}case g.HTML:{Qv(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:{kr(e,t);break}case g.BODY:{Kv(e,t);break}case g.FORM:{t5(e,t);break}case g.NOBR:{l5(e,t);break}case g.MATH:{S5(e,t);break}case g.TABLE:{s5(e,t);break}case g.INPUT:{c5(e,t);break}case g.PARAM:case g.TRACK:case g.SOURCE:{f5(e,t);break}case g.IMAGE:{h5(e,t);break}case g.BUTTON:{a5(e,t);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{o5(e,t);break}case g.IFRAME:{g5(e,t);break}case g.SELECT:{b5(e,t);break}case g.OPTION:case g.OPTGROUP:{E5(e,t);break}case g.NOEMBED:case g.NOFRAMES:{sb(e,t);break}case g.FRAMESET:{Wv(e,t);break}case g.TEXTAREA:{p5(e,t);break}case g.NOSCRIPT:{e.options.scriptingEnabled?sb(e,t):cb(e,t);break}case g.PLAINTEXT:{r5(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:cb(e,t)}}function A5(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 x5(e,t){e.openElements.hasInScope(g.BODY)&&(e.insertionMode=U.AFTER_BODY,Tb(e,t))}function _5(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function v5(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 R5(e){e.openElements.hasInButtonScope(g.P)||e._insertFakeElement(G.P,g.P),e._closePElement()}function O5(e){e.openElements.hasInListItemScope(g.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(g.LI),e.openElements.popUntilTagNamePopped(g.LI))}function N5(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function k5(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function D5(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function L5(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(G.BR,g.BR),e.openElements.pop(),e.framesetOk=!1}function fb(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 Ns(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:{Ld(e,t);break}case g.P:{R5(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:{_5(e,t);break}case g.LI:{O5(e);break}case g.DD:case g.DT:{N5(e,t);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{k5(e);break}case g.BR:{L5(e);break}case g.BODY:{A5(e,t);break}case g.HTML:{x5(e,t);break}case g.FORM:{v5(e);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{D5(e,t);break}case g.TEMPLATE:{ci(e,t);break}default:fb(e,t)}}function db(e,t){e.tmplInsertionModeStack.length>0?yb(e,t):wd(e,t)}function I5(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 w5(e,t){e._err(t,ne.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Md(e,t){if(nb.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 at.CHARACTER:{pb(e,t);break}case at.WHITESPACE_CHARACTER:{hb(e,t);break}}else xl(e,t)}function M5(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,he.HTML),e.insertionMode=U.IN_CAPTION}function B5(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,he.HTML),e.insertionMode=U.IN_COLUMN_GROUP}function P5(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(G.COLGROUP,g.COLGROUP),e.insertionMode=U.IN_COLUMN_GROUP,Bd(e,t)}function U5(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,he.HTML),e.insertionMode=U.IN_TABLE_BODY}function H5(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(G.TBODY,g.TBODY),e.insertionMode=U.IN_TABLE_BODY,Ds(e,t)}function F5(e,t){e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function z5(e,t){ob(t)?e._appendElement(t,he.HTML):xl(e,t),t.ackSelfClosing=!0}function Y5(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,he.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function ru(e,t){switch(t.tagID){case g.TD:case g.TH:case g.TR:{H5(e,t);break}case g.STYLE:case g.SCRIPT:case g.TEMPLATE:{kr(e,t);break}case g.COL:{P5(e,t);break}case g.FORM:{Y5(e,t);break}case g.TABLE:{F5(e,t);break}case g.TBODY:case g.TFOOT:case g.THEAD:{U5(e,t);break}case g.INPUT:{z5(e,t);break}case g.CAPTION:{M5(e,t);break}case g.COLGROUP:{B5(e,t);break}default:xl(e,t)}}function Al(e,t){switch(t.tagID){case g.TABLE:{e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode());break}case g.TEMPLATE:{ci(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:xl(e,t)}}function xl(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Os(e,t),e.fosterParentingEnabled=r}function hb(e,t){e.pendingCharacterTokens.push(t)}function pb(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function _l(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)xl(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const mb=new Set([g.CAPTION,g.COL,g.COLGROUP,g.TBODY,g.TD,g.TFOOT,g.TH,g.THEAD,g.TR]);function j5(e,t){const r=t.tagID;mb.has(r)?e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_TABLE,ru(e,t)):xn(e,t)}function V5(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&&Al(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:Ns(e,t)}}function Bd(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.COL:{e._appendElement(t,he.HTML),t.ackSelfClosing=!0;break}case g.TEMPLATE:{kr(e,t);break}default:ks(e,t)}}function $5(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:{ci(e,t);break}case g.COL:break;default:ks(e,t)}}function ks(e,t){e.openElements.currentTagId===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=U.IN_TABLE,e._processToken(t))}function Ds(e,t){switch(t.tagID){case g.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,he.HTML),e.insertionMode=U.IN_ROW;break}case g.TH:case g.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(G.TR,g.TR),e.insertionMode=U.IN_ROW,Ls(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,ru(e,t));break}default:ru(e,t)}}function Pd(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,Al(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:Al(e,t)}}function Ls(e,t){switch(t.tagID){case g.TH:case g.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,he.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,Ds(e,t));break}default:ru(e,t)}}function gb(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,Pd(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,Pd(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:Al(e,t)}}function q5(e,t){const r=t.tagID;mb.has(r)?(e.openElements.hasInTableScope(g.TD)||e.openElements.hasInTableScope(g.TH))&&(e._closeTableCell(),Ls(e,t)):xn(e,t)}function G5(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(),gb(e,t));break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:break;default:Ns(e,t)}}function bb(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,he.HTML);break}case g.OPTGROUP:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e.openElements.currentTagId===g.OPTGROUP&&e.openElements.pop(),e._insertElement(t,he.HTML);break}case g.HR:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e.openElements.currentTagId===g.OPTGROUP&&e.openElements.pop(),e._appendElement(t,he.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:{kr(e,t);break}}}function Eb(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:{ci(e,t);break}}}function X5(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)):bb(e,t)}function Q5(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)):Eb(e,t)}function K5(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:{kr(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,ru(e,t);break}case g.COL:{e.tmplInsertionModeStack[0]=U.IN_COLUMN_GROUP,e.insertionMode=U.IN_COLUMN_GROUP,Bd(e,t);break}case g.TR:{e.tmplInsertionModeStack[0]=U.IN_TABLE_BODY,e.insertionMode=U.IN_TABLE_BODY,Ds(e,t);break}case g.TD:case g.TH:{e.tmplInsertionModeStack[0]=U.IN_ROW,e.insertionMode=U.IN_ROW,Ls(e,t);break}default:e.tmplInsertionModeStack[0]=U.IN_BODY,e.insertionMode=U.IN_BODY,xn(e,t)}}function W5(e,t){t.tagID===g.TEMPLATE&&ci(e,t)}function yb(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):wd(e,t)}function Z5(e,t){t.tagID===g.HTML?xn(e,t):Is(e,t)}function Tb(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 Is(e,t)}function Is(e,t){e.insertionMode=U.IN_BODY,Os(e,t)}function J5(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.FRAMESET:{e._insertElement(t,he.HTML);break}case g.FRAME:{e._appendElement(t,he.HTML),t.ackSelfClosing=!0;break}case g.NOFRAMES:{kr(e,t);break}}}function e8(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 t8(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.NOFRAMES:{kr(e,t);break}}}function n8(e,t){t.tagID===g.HTML&&(e.insertionMode=U.AFTER_AFTER_FRAMESET)}function r8(e,t){t.tagID===g.HTML?xn(e,t):ws(e,t)}function ws(e,t){e.insertionMode=U.IN_BODY,Os(e,t)}function a8(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.NOFRAMES:{kr(e,t);break}}}function i8(e,t){t.chars=Pt,e._insertCharacters(t)}function u8(e,t){e._insertCharacters(t),e.framesetOk=!1}function Sb(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==he.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function l8(e,t){if(Cv(t))Sb(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(r);i===he.MATHML?eb(t):i===he.SVG&&(Av(t),tb(t)),Dd(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i),t.ackSelfClosing=!0}}function o8(e,t){if(t.tagID===g.P||t.tagID===g.BR){Sb(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)===he.HTML){e._endTagOutsideForeignContent(t);break}const l=e.treeAdapter.getTagName(i);if(l.toLowerCase()===t.tagName){t.tagName=l,e.openElements.shortenToLength(r);break}}}G.AREA,G.BASE,G.BASEFONT,G.BGSOUND,G.BR,G.COL,G.EMBED,G.FRAME,G.HR,G.IMG,G.INPUT,G.KEYGEN,G.LINK,G.META,G.PARAM,G.SOURCE,G.TRACK,G.WBR;const s8=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,c8=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Cb={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Ab(e,t){const r=T8(e),i=Lg("type",{handlers:{root:f8,element:d8,text:h8,comment:_b,doctype:p8,raw:g8},unknown:b8}),l={parser:r?new ab(Cb):ab.getFragmentParser(void 0,Cb),handle(d){i(d,l)},stitches:!1,options:t||{}};i(e,l),au(l,Ur());const s=r?l.parser.document:l.parser.getFragment(),c=S_(s,{file:l.options.file});return l.stitches&&ad(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 xb(e,t){let r=-1;if(e)for(;++r<e.length;)t.handle(e[r])}function f8(e,t){xb(e.children,t)}function d8(e,t){E8(e,t),xb(e.children,t),y8(e,t)}function h8(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const r={type:at.CHARACTER,chars:e.value,location:vl(e)};au(t,Ur(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function p8(e,t){const r={type:at.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:vl(e)};au(t,Ur(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function m8(e,t){t.stitches=!0;const r=S8(e);if("children"in e&&"children"in r){const i=Ab({type:"root",children:e.children},t.options);r.children=i.children}_b({type:"comment",value:{stitch:r}},t)}function _b(e,t){const r=e.value,i={type:at.COMMENT,data:r,location:vl(e)};au(t,Ur(e)),t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken)}function g8(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,vb(t,Ur(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(s8,"<$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 b8(e,t){const r=e;if(t.options.passThrough&&t.options.passThrough.includes(r.type))m8(r,t);else{let i="";throw c8.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 au(e,t){vb(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=Qt.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 vb(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 E8(e,t){const r=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Qt.PLAINTEXT)return;au(t,Ur(e));const i=t.parser.openElements.current;let l="namespaceURI"in i?i.namespaceURI:oi.html;l===oi.html&&r==="svg"&&(l=oi.svg);const s=v_({...e,children:[]},{space:l===oi.svg?"svg":"html"}),c={type:at.START_TAG,tagName:r,tagID:nu(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in s?s.attrs:[],location:vl(e)};t.parser.currentToken=c,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r}function y8(e,t){const r=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&w_.includes(r)||t.parser.tokenizer.state===Qt.PLAINTEXT)return;au(t,ms(e));const i={type:at.END_TAG,tagName:r,tagID:nu(r),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:vl(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),r===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Qt.RCDATA||t.parser.tokenizer.state===Qt.RAWTEXT||t.parser.tokenizer.state===Qt.SCRIPT_DATA)&&(t.parser.tokenizer.state=Qt.DATA)}function T8(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function vl(e){const t=Ur(e)||{line:void 0,column:void 0,offset:void 0},r=ms(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 S8(e){return"children"in e?Qi({...e,children:[]}):Qi(e)}function C8(e){return function(t,r){return Ab(t,{...e,file:r})}}const A8=({color:e="currentColor",size:t=24,className:r,...i})=>xt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},xt.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"})),x8=({color:e="currentColor",size:t=24,className:r,...i})=>xt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},xt.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"})),Rb=({color:e="currentColor",size:t=24,className:r,...i})=>xt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},xt.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"})),_8=({color:e="currentColor",size:t=24,className:r,...i})=>xt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},xt.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"})),Ob=({color:e="currentColor",size:t=24,className:r,...i})=>xt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},xt.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"})),v8=({color:e="currentColor",size:t=24,className:r,...i})=>xt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},xt.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"})),Ud=({color:e="currentColor",size:t=24,className:r,...i})=>xt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},xt.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 Nb(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=Nb(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function st(){for(var e,t,r=0,i="",l=arguments.length;r<l;r++)(e=arguments[r])&&(t=Nb(e))&&(i&&(i+=" "),i+=t);return i}function Zn(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 kb=A.createContext();function R8({value:e,...t}){return pe.jsx(kb.Provider,{value:e??!0,...t})}const Hd=()=>A.useContext(kb)??!1;function Yr(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 Db(e){if(!Yr(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Db(e[r])}),t}function Pn(e,t,r={clone:!0}){const i=r.clone?{...e}:e;return Yr(e)&&Yr(t)&&Object.keys(t).forEach(l=>{Yr(t[l])&&Object.prototype.hasOwnProperty.call(e,l)&&Yr(e[l])?i[l]=Pn(e[l],t[l],r):r.clone?i[l]=Yr(t[l])?Db(t[l]):t[l]:i[l]=t[l]}),i}function ka(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.`}var Fd={exports:{}},Tt={};/**
|
|
68
|
+
`}),r}function V1(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function G1(e,t){const r=h4(e,t),i=r.one(e,void 0),l=n4(r),s=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return l&&s.children.push({type:"text",value:`
|
|
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={};/**
|
|
71
71
|
* @license React
|
|
72
|
-
* react-is.production.
|
|
72
|
+
* react-is.production.js
|
|
73
73
|
*
|
|
74
|
-
* Copyright (c)
|
|
74
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
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 Lb;function O8(){if(Lb)return Tt;Lb=1;var e=Symbol.for("react.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.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),N;N=Symbol.for("react.module.reference");function _(L){if(typeof L=="object"&&L!==null){var v=L.$$typeof;switch(v){case e:switch(L=L.type,L){case r:case l:case i:case m:case b:return L;default:switch(L=L&&L.$$typeof,L){case d:case c:case p:case S:case E:case s:return L;default:return v}}case t:return v}}}return Tt.ContextConsumer=c,Tt.ContextProvider=s,Tt.Element=e,Tt.ForwardRef=p,Tt.Fragment=r,Tt.Lazy=S,Tt.Memo=E,Tt.Portal=t,Tt.Profiler=l,Tt.StrictMode=i,Tt.Suspense=m,Tt.SuspenseList=b,Tt.isAsyncMode=function(){return!1},Tt.isConcurrentMode=function(){return!1},Tt.isContextConsumer=function(L){return _(L)===c},Tt.isContextProvider=function(L){return _(L)===s},Tt.isElement=function(L){return typeof L=="object"&&L!==null&&L.$$typeof===e},Tt.isForwardRef=function(L){return _(L)===p},Tt.isFragment=function(L){return _(L)===r},Tt.isLazy=function(L){return _(L)===S},Tt.isMemo=function(L){return _(L)===E},Tt.isPortal=function(L){return _(L)===t},Tt.isProfiler=function(L){return _(L)===l},Tt.isStrictMode=function(L){return _(L)===i},Tt.isSuspense=function(L){return _(L)===m},Tt.isSuspenseList=function(L){return _(L)===b},Tt.isValidElementType=function(L){return typeof L=="string"||typeof L=="function"||L===r||L===l||L===i||L===m||L===b||L===y||typeof L=="object"&&L!==null&&(L.$$typeof===S||L.$$typeof===E||L.$$typeof===s||L.$$typeof===c||L.$$typeof===p||L.$$typeof===N||L.getModuleId!==void 0)},Tt.typeOf=_,Tt}var Ib;function N8(){return Ib||(Ib=1,Fd.exports=O8()),Fd.exports}N8();function _t(e){if(typeof e!="string")throw new Error(ka(7));return e.charAt(0).toUpperCase()+e.slice(1)}function wb(...e){return e.reduce((t,r)=>r==null?t:function(...l){t.apply(this,l),r.apply(this,l)},()=>{})}function Ms(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 Da(e){return e&&e.ownerDocument||document}function jr(e){return Da(e).defaultView||window}function zd(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const fi=typeof window<"u"?A.useLayoutEffect:A.useEffect;function ra(e){const t=A.useRef(e);return fi(()=>{t.current=e}),A.useRef((...r)=>(0,t.current)(...r)).current}function fr(...e){return A.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{zd(r,t)})},e)}const Mb={};function Bb(e,t){const r=A.useRef(Mb);return r.current===Mb&&(r.current=e(t)),r}const k8=[];function D8(e){A.useEffect(e,k8)}class Yd{constructor(){rs(this,"currentId",null);rs(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});rs(this,"disposeEffect",()=>this.clear)}static create(){return new Yd}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function L8(){const e=Bb(Yd.create).current;return D8(e.disposeEffect),e}function Pb(e){try{return e.matches(":focus-visible")}catch{}return!1}function I8(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Bs(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]=Bs(s[p],c[p])}}}else r[l]===void 0&&(r[l]=e[l])}return r}const Ub=e=>e,w8=(()=>{let e=Ub;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ub}}})(),M8={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 Un(e,t,r="Mui"){const i=M8[t];return i?`${r}-${i}`:`${w8.generate(e)}-${t}`}function Hn(e,t,r="Mui"){const i={};return t.forEach(l=>{i[l]=Un(e,l,r)}),i}function B8(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function P8(e){return typeof e=="string"}function Hb(e,t,r){return e===void 0||P8(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function Fb(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 zb(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 Yb(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:i,externalForwardedProps:l,className:s}=e;if(!t){const y=st(r==null?void 0:r.className,s,l==null?void 0:l.className,i==null?void 0:i.className),N={...r==null?void 0:r.style,...l==null?void 0:l.style,...i==null?void 0:i.style},_={...r,...l,...i};return y.length>0&&(_.className=y),Object.keys(N).length>0&&(_.style=N),{props:_,internalRef:void 0}}const c=Fb({...l,...i}),d=zb(i),p=zb(l),m=t(c),b=st(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},S={...m,...r,...p,...d};return b.length>0&&(S.className=b),Object.keys(E).length>0&&(S.style=E),{props:S,internalRef:m.ref}}function jb(e,t,r){return typeof e=="function"?e(t,r):e}function Ps(e){var E;const{elementType:t,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:l=!1,...s}=e,c=l?{}:jb(r,i),{props:d,internalRef:p}=Yb({...s,externalSlotProps:c}),m=fr(p,c==null?void 0:c.ref,(E=e.additionalProps)==null?void 0:E.ref);return Hb(t,{...d,ref:m},i)}function Us(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 U8(e){const t=Da(e);return t.body===e?jr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Rl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Vb(e){return parseInt(jr(e).getComputedStyle(e).paddingRight,10)||0}function H8(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 $b(e,t,r,i,l){const s=[t,r,...i];[].forEach.call(e.children,c=>{const d=!s.includes(c),p=!H8(c);d&&p&&Rl(c,l)})}function jd(e,t){let r=-1;return e.some((i,l)=>t(i)?(r=l,!0):!1),r}function F8(e,t){const r=[],i=e.container;if(!t.disableScrollLock){if(U8(i)){const c=I8(jr(i));r.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${Vb(i)+c}px`;const d=Da(i).querySelectorAll(".mui-fixed");[].forEach.call(d,p=>{r.push({value:p.style.paddingRight,property:"padding-right",el:p}),p.style.paddingRight=`${Vb(p)+c}px`})}let s;if(i.parentNode instanceof DocumentFragment)s=Da(i).body;else{const c=i.parentElement,d=jr(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 z8(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Y8{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&&Rl(t.modalRef,!1);const l=z8(r);$b(r,t.mount,t.modalRef,l,!0);const s=jd(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=jd(this.containers,s=>s.modals.includes(t)),l=this.containers[i];l.restore||(l.restore=F8(l,r))}remove(t,r=!0){const i=this.modals.indexOf(t);if(i===-1)return i;const l=jd(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&&Rl(t.modalRef,r),$b(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&&Rl(c.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const j8=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function V8(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 $8(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 q8(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||$8(e))}function G8(e){const t=[],r=[];return Array.from(e.querySelectorAll(j8)).forEach((i,l)=>{const s=V8(i);s===-1||!q8(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 X8(){return!0}function Q8(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:i=!1,disableRestoreFocus:l=!1,getTabbable:s=G8,isEnabled:c=X8,open:d}=e,p=A.useRef(!1),m=A.useRef(null),b=A.useRef(null),E=A.useRef(null),S=A.useRef(null),y=A.useRef(!1),N=A.useRef(null),_=fr(Us(t),N),L=A.useRef(null);A.useEffect(()=>{!d||!N.current||(y.current=!r)},[r,d]),A.useEffect(()=>{if(!d||!N.current)return;const D=Da(N.current);return N.current.contains(D.activeElement)||(N.current.hasAttribute("tabIndex")||N.current.setAttribute("tabIndex","-1"),y.current&&N.current.focus()),()=>{l||(E.current&&E.current.focus&&(p.current=!0,E.current.focus()),E.current=null)}},[d]),A.useEffect(()=>{if(!d||!N.current)return;const D=Da(N.current),P=j=>{L.current=j,!(i||!c()||j.key!=="Tab")&&D.activeElement===N.current&&j.shiftKey&&(p.current=!0,b.current&&b.current.focus())},I=()=>{var V,x;const j=N.current;if(j===null)return;if(!D.hasFocus()||!c()||p.current){p.current=!1;return}if(j.contains(D.activeElement)||i&&D.activeElement!==m.current&&D.activeElement!==b.current)return;if(D.activeElement!==S.current)S.current=null;else if(S.current!==null)return;if(!y.current)return;let ie=[];if((D.activeElement===m.current||D.activeElement===b.current)&&(ie=s(N.current)),ie.length>0){const Y=!!((V=L.current)!=null&&V.shiftKey&&((x=L.current)==null?void 0:x.key)==="Tab"),K=ie[0],W=ie[ie.length-1];typeof K!="string"&&typeof W!="string"&&(Y?W.focus():K.focus())}else j.focus()};D.addEventListener("focusin",I),D.addEventListener("keydown",P,!0);const M=setInterval(()=>{D.activeElement&&D.activeElement.tagName==="BODY"&&I()},50);return()=>{clearInterval(M),D.removeEventListener("focusin",I),D.removeEventListener("keydown",P,!0)}},[r,i,l,c,d,s]);const v=D=>{E.current===null&&(E.current=D.relatedTarget),y.current=!0,S.current=D.target;const P=t.props.onFocus;P&&P(D)},H=D=>{E.current===null&&(E.current=D.relatedTarget),y.current=!0};return pe.jsxs(A.Fragment,{children:[pe.jsx("div",{tabIndex:d?0:-1,onFocus:H,ref:m,"data-testid":"sentinelStart"}),A.cloneElement(t,{ref:_,onFocus:v}),pe.jsx("div",{tabIndex:d?0:-1,onFocus:H,ref:b,"data-testid":"sentinelEnd"})]})}var qb=Kp();const Hs=ur(qb);function K8(e){return typeof e=="function"?e():e}const W8=A.forwardRef(function(t,r){const{children:i,container:l,disablePortal:s=!1}=t,[c,d]=A.useState(null),p=fr(A.isValidElement(i)?Us(i):null,r);if(fi(()=>{s||d(K8(l)||document.body)},[l,s]),fi(()=>{if(c&&!s)return zd(r,c),()=>{zd(r,null)}},[r,c,s]),s){if(A.isValidElement(i)){const m={ref:p};return A.cloneElement(i,m)}return pe.jsx(A.Fragment,{children:i})}return pe.jsx(A.Fragment,{children:c&&qb.createPortal(i,c)})});function Ol(e,t){return t?Pn(e,t,{clone:!1}):e}function Z8(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 J8(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function eR(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 tR(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 Fs={xs:0,sm:600,md:900,lg:1200,xl:1536},Gb={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Fs[e]}px)`},nR={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Fs[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function aa(e,t,r){const i=e.theme||{};if(Array.isArray(t)){const s=i.breakpoints||Gb;return t.reduce((c,d,p)=>(c[s.up(s.keys[p])]=r(t[p]),c),{})}if(typeof t=="object"){const s=i.breakpoints||Gb;return Object.keys(t).reduce((c,d)=>{if(J8(s.keys,d)){const p=eR(i.containerQueries?i:nR,d);p&&(c[p]=r(t[d],d))}else if(Object.keys(s.values||Fs).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 rR(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((i,l)=>{const s=e.up(l);return i[s]={},i},{}))||{}}function aR(e,t){return e.reduce((r,i)=>{const l=r[i];return(!l||Object.keys(l).length===0)&&delete r[i],r},t)}function zs(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 Ys(e,t,r,i=r){let l;return typeof e=="function"?l=e(r):Array.isArray(e)?l=e[r]||i:l=zs(e,r)||i,t&&(l=t(l,i,e)),l}function Kt(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=zs(p,i)||{};return aa(c,d,E=>{let S=Ys(m,l,E);return E===S&&typeof E=="string"&&(S=Ys(m,l,`${t}${E==="default"?"":_t(E)}`,E)),r===!1?S:{[r]:S}})};return s.propTypes={},s.filterProps=[t],s}function iR(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const uR={m:"margin",p:"padding"},lR={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Xb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},oR=iR(e=>{if(e.length>2)if(Xb[e])e=Xb[e];else return[e];const[t,r]=e.split(""),i=uR[t],l=lR[r]||"";return Array.isArray(l)?l.map(s=>i+s):[i+l]}),Vd=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],$d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Vd,...$d];function Nl(e,t,r,i){const l=zs(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 qd(e){return Nl(e,"spacing",8)}function kl(e,t){return typeof t=="string"||t==null?t:e(t)}function sR(e,t){return r=>e.reduce((i,l)=>(i[l]=kl(t,r),i),{})}function cR(e,t,r,i){if(!t.includes(r))return null;const l=oR(r),s=sR(l,i),c=e[r];return aa(e,c,s)}function Qb(e,t){const r=qd(e.theme);return Object.keys(e).map(i=>cR(e,t,i,r)).reduce(Ol,{})}function jt(e){return Qb(e,Vd)}jt.propTypes={},jt.filterProps=Vd;function Vt(e){return Qb(e,$d)}Vt.propTypes={},Vt.filterProps=$d;function js(...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]?Ol(l,t[s](i)):l,{});return r.propTypes={},r.filterProps=e.reduce((i,l)=>i.concat(l.filterProps),[]),r}function dr(e){return typeof e!="number"?e:`${e}px solid`}function hr(e,t){return Kt({prop:e,themeKey:"borders",transform:t})}const fR=hr("border",dr),dR=hr("borderTop",dr),hR=hr("borderRight",dr),pR=hr("borderBottom",dr),mR=hr("borderLeft",dr),gR=hr("borderColor"),bR=hr("borderTopColor"),ER=hr("borderRightColor"),yR=hr("borderBottomColor"),TR=hr("borderLeftColor"),SR=hr("outline",dr),CR=hr("outlineColor"),Vs=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Nl(e.theme,"shape.borderRadius",4),r=i=>({borderRadius:kl(t,i)});return aa(e,e.borderRadius,r)}return null};Vs.propTypes={},Vs.filterProps=["borderRadius"],js(fR,dR,hR,pR,mR,gR,bR,ER,yR,TR,Vs,SR,CR);const $s=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Nl(e.theme,"spacing",8),r=i=>({gap:kl(t,i)});return aa(e,e.gap,r)}return null};$s.propTypes={},$s.filterProps=["gap"];const qs=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Nl(e.theme,"spacing",8),r=i=>({columnGap:kl(t,i)});return aa(e,e.columnGap,r)}return null};qs.propTypes={},qs.filterProps=["columnGap"];const Gs=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Nl(e.theme,"spacing",8),r=i=>({rowGap:kl(t,i)});return aa(e,e.rowGap,r)}return null};Gs.propTypes={},Gs.filterProps=["rowGap"];const AR=Kt({prop:"gridColumn"}),xR=Kt({prop:"gridRow"}),_R=Kt({prop:"gridAutoFlow"}),vR=Kt({prop:"gridAutoColumns"}),RR=Kt({prop:"gridAutoRows"}),OR=Kt({prop:"gridTemplateColumns"}),NR=Kt({prop:"gridTemplateRows"}),kR=Kt({prop:"gridTemplateAreas"}),DR=Kt({prop:"gridArea"});js($s,qs,Gs,AR,xR,_R,vR,RR,OR,NR,kR,DR);function iu(e,t){return t==="grey"?t:e}const LR=Kt({prop:"color",themeKey:"palette",transform:iu}),IR=Kt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:iu}),wR=Kt({prop:"backgroundColor",themeKey:"palette",transform:iu});js(LR,IR,wR);function Jn(e){return e<=1&&e!==0?`${e*100}%`:e}const MR=Kt({prop:"width",transform:Jn}),Gd=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])||Fs[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:Jn(r)}};return aa(e,e.maxWidth,t)}return null};Gd.filterProps=["maxWidth"];const BR=Kt({prop:"minWidth",transform:Jn}),PR=Kt({prop:"height",transform:Jn}),UR=Kt({prop:"maxHeight",transform:Jn}),HR=Kt({prop:"minHeight",transform:Jn});Kt({prop:"size",cssProperty:"width",transform:Jn}),Kt({prop:"size",cssProperty:"height",transform:Jn});const FR=Kt({prop:"boxSizing"});js(MR,Gd,BR,PR,UR,HR,FR);const Dl={border:{themeKey:"borders",transform:dr},borderTop:{themeKey:"borders",transform:dr},borderRight:{themeKey:"borders",transform:dr},borderBottom:{themeKey:"borders",transform:dr},borderLeft:{themeKey:"borders",transform:dr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:dr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Vs},color:{themeKey:"palette",transform:iu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:iu},backgroundColor:{themeKey:"palette",transform:iu},p:{style:Vt},pt:{style:Vt},pr:{style:Vt},pb:{style:Vt},pl:{style:Vt},px:{style:Vt},py:{style:Vt},padding:{style:Vt},paddingTop:{style:Vt},paddingRight:{style:Vt},paddingBottom:{style:Vt},paddingLeft:{style:Vt},paddingX:{style:Vt},paddingY:{style:Vt},paddingInline:{style:Vt},paddingInlineStart:{style:Vt},paddingInlineEnd:{style:Vt},paddingBlock:{style:Vt},paddingBlockStart:{style:Vt},paddingBlockEnd:{style:Vt},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:$s},rowGap:{style:Gs},columnGap:{style:qs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Jn},maxWidth:{style:Gd},minWidth:{transform:Jn},height:{transform:Jn},maxHeight:{transform:Jn},minHeight:{transform:Jn},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 zR(...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 YR(e,t){return typeof e=="function"?e(t):e}function jR(){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 S=zs(l,m)||{};return E?E(c):aa(c,i,N=>{let _=Ys(S,b,N);return N===_&&typeof N=="string"&&(_=Ys(S,b,`${r}${N==="default"?"":_t(N)}`,N)),p===!1?_:{[p]:_}})}function t(r){const{sx:i,theme:l={}}=r||{};if(!i)return null;const s=l.unstable_sxConfig??Dl;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=rR(l.breakpoints),b=Object.keys(m);let E=m;return Object.keys(p).forEach(S=>{const y=YR(p[S],l);if(y!=null)if(typeof y=="object")if(s[S])E=Ol(E,e(S,y,l,s));else{const N=aa({theme:l},y,_=>({[S]:_}));zR(N,y)?E[S]=t({sx:y,theme:l}):E=Ol(E,N)}else E=Ol(E,e(S,y,l,s))}),Z8(l,aR(b,E))}return Array.isArray(i)?i.map(c):c(i)}return t}const di=jR();di.filterProps=["sx"];const VR=e=>{var i;const t={systemProps:{},otherProps:{}},r=((i=e==null?void 0:e.theme)==null?void 0:i.unstable_sxConfig)??Dl;return Object.keys(e).forEach(l=>{r[l]?t.systemProps[l]=e[l]:t.otherProps[l]=e[l]}),t};function $R(e){const{sx:t,...r}=e,{systemProps:i,otherProps:l}=VR(r);let s;return Array.isArray(t)?s=[i,...t]:typeof t=="function"?s=(...c)=>{const d=t(...c);return Yr(d)?{...i,...d}:i}:s={...i,...t},{...l,sx:s}}function qR(e){return e==null||Object.keys(e).length===0}function Kb(e){const{styles:t,defaultTheme:r={}}=e,i=typeof t=="function"?l=>t(qR(l)?r:l):t;return pe.jsx(LC,{styles:i})}/**
|
|
79
|
-
* @mui/styled-engine v6.
|
|
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})}/**
|
|
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('${
|
|
86
|
-
${d}.removeAttribute('${
|
|
87
|
-
${d}.setAttribute('${
|
|
84
|
+
*/function zR(e,t){return Pe(e,t)}function YR(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const zb=[];function Yb(e){return zb[0]=e,Ku(zb)}const jR=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 qR(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:i=5,...l}=e,s=jR(t),c=Object.keys(s);function d(T){return`@media (min-width:${typeof t[T]=="number"?t[T]:T}${r})`}function p(T){return`@media (max-width:${(typeof t[T]=="number"?t[T]:T)-i/100}${r})`}function m(T,y){const R=c.indexOf(y);return`@media (min-width:${typeof t[T]=="number"?t[T]:T}${r}) and (max-width:${(R!==-1&&typeof t[c[R]]=="number"?t[c[R]]:y)-i/100}${r})`}function b(T){return c.indexOf(T)+1<c.length?m(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?p(c[y]):m(T,c[c.indexOf(T)+1]).replace("@media","@media not all and")}return{keys:c,values:s,up:d,down:p,between:m,only:b,not:E,unit:r,...l}}const VR={borderRadius:4};function jb(e=8,t=Bd({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 GR(e,t){var i;const r=this;if(r.vars){if(!((i=r.colorSchemes)!=null&&i[e])||typeof r.getColorSchemeSelector!="function")return{};let l=r.getColorSchemeSelector(e);return l==="&"?t:((l.includes("data-")||l.includes("."))&&(l=`*:where(${l.replace(/\s*&$/,"")}) &`),{[l]:t})}return r.palette.mode===e?t:{}}function Ud(e={},...t){const{breakpoints:r={},palette:i={},spacing:l,shape:s={},...c}=e,d=qR(r),p=jb(l);let m=Un({breakpoints:d,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:p,shape:{...VR,...s}},c);return m=Q8(m),m.applyStyles=GR,m=t.reduce((b,E)=>Un(b,E),m),m.unstable_sxConfig={...vl,...c==null?void 0:c.unstable_sxConfig},m.unstable_sx=function(E){return ai({sx:E,theme:this})},m}function $R(e){return Object.keys(e).length===0}function qb(e=null){const t=A.useContext(Mi);return!t||$R(t)?e:t}const XR=Ud();function Hd(e=XR){return qb(e)}function QR({styles:e,themeId:t,defaultTheme:r={}}){const i=Hd(r),l=typeof e=="function"?e(t&&i[t]||i):e;return he.jsx(Fb,{styles:l})}function Vb(e){const{variants:t,...r}=e,i={variants:t,style:Yb(r),isProcessed:!0};return i.style===r||t&&t.forEach(l=>{typeof l.style!="function"&&(l.style=Yb(l.style))}),i}const KR=Ud();function Fd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function WR(e){return e?(t,r)=>r[e]:null}function ZR(e,t,r){e.theme=tN(e.theme)?r:e.theme[t]||e.theme}function ks(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>ks(e,i));if(Array.isArray(r==null?void 0:r.variants)){let i;if(r.isProcessed)i=r.style;else{const{variants:l,...s}=r;i=s}return Gb(e,r.variants,[i])}return r!=null&&r.isProcessed?r.style:r}function Gb(e,t,r=[]){var l;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]&&((l=e.ownerState)==null?void 0:l[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 JR(e={}){const{themeId:t,defaultTheme:r=KR,rootShouldForwardProp:i=Fd,slotShouldForwardProp:l=Fd}=e;function s(d){ZR(d,t,r)}return(d,p={})=>{YR(d,k=>k.filter(N=>N!==ai));const{name:m,slot:b,skipVariantsResolver:E,skipSx:T,overridesResolver:y=WR(rN(b)),...R}=p,x=E!==void 0?E:b&&b!=="Root"&&b!=="root"||!1,U=T||!1;let D=Fd;b==="Root"||b==="root"?D=i:b?D=l:nN(d)&&(D=void 0);const q=zR(d,{shouldForwardProp:D,label:eN(),...R}),M=k=>{if(typeof k=="function"&&k.__emotion_real!==k)return function(Y){return ks(Y,k)};if(Pr(k)){const N=Vb(k);return N.variants?function(j){return ks(j,N)}:N.style}return k},P=(...k)=>{const N=[],Y=k.map(M),j=[];if(N.push(s),m&&y&&j.push(function($){var H,Q;const X=(Q=(H=$.theme.components)==null?void 0:H[m])==null?void 0:Q.styleOverrides;if(!X)return null;const te={};for(const ie in X)te[ie]=ks($,X[ie]);return y($,te)}),m&&!x&&j.push(function($){var te,H;const Z=$.theme,X=(H=(te=Z==null?void 0:Z.components)==null?void 0:te[m])==null?void 0:H.variants;return X?Gb($,X):null}),U||j.push(ai),Array.isArray(Y[0])){const z=Y.shift(),$=new Array(N.length).fill(""),Z=new Array(j.length).fill("");let X;X=[...$,...z,...Z],X.raw=[...$,...z.raw,...Z],N.unshift(X)}const G=[...N,...Y,...j],_=q(...G);return d.muiName&&(_.muiName=d.muiName),_};return q.withConfig&&(P.withConfig=q.withConfig),P}}function eN(e,t){return void 0}function tN(e){for(const t in e)return!1;return!0}function nN(e){return typeof e=="string"&&e.charCodeAt(0)>96}function rN(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function aN(e){const{theme:t,name:r,props:i}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?i:Ts(t.components[r].defaultProps,i)}function iN({props:e,name:t,defaultTheme:r,themeId:i}){let l=Hd(r);return l=l[i]||l,aN({theme:l,name:t,props:e})}function zd(e,t=0,r=1){return I8(e,t,r)}function uN(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,l)=>l<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(uN(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),l;if(r==="color"){if(i=i.split(" "),l=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(l))throw new Error(Aa(10,l))}else i=i.split(",");return i=i.map(s=>parseFloat(s)),{type:r,values:i,colorSpace:l}}const lN=e=>{const t=va(e);return t.values.slice(0,3).map((r,i)=>t.type.includes("hsl")&&i!==0?`${r}%`:r).join(" ")},Rl=(e,t)=>{try{return lN(e)}catch{return e}};function Ls(e){const{type:t,colorSpace:r}=e;let{values:i}=e;return t.includes("rgb")?i=i.map((l,s)=>s<3?parseInt(l,10):l):t.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),t.includes("color")?i=`${r} ${i.join(" ")}`:i=`${i.join(", ")}`,`${t}(${i})`}function $b(e){e=va(e);const{values:t}=e,r=t[0],i=t[1]/100,l=t[2]/100,s=i*Math.min(l,1-l),c=(m,b=(m+r/30)%12)=>l-s*Math.max(Math.min(b-3,9-b,1),-1);let d="rgb";const p=[Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255)];return e.type==="hsla"&&(d+="a",p.push(t[3])),Ls({type:d,values:p})}function Yd(e){e=va(e);let t=e.type==="hsl"||e.type==="hsla"?va($b(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=Yd(e),i=Yd(t);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}function Nl(e,t){return e=va(e),t=zd(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ls(e)}function Ms(e,t,r){try{return Nl(e,t)}catch{return e}}function Ol(e,t){if(e=va(e),t=zd(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 Ls(e)}function It(e,t,r){try{return Ol(e,t)}catch{return e}}function Il(e,t){if(e=va(e),t=zd(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 Ls(e)}function Dt(e,t,r){try{return Il(e,t)}catch{return e}}function sN(e,t=.15){return Yd(e)>.5?Ol(e,t):Il(e,t)}function ws(e,t,r){try{return sN(e,t)}catch{return e}}const Xb=A.createContext(null);function jd(){return A.useContext(Xb)}const cN=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function fN(e,t){return typeof t=="function"?t(e):{...e,...t}}function dN(e){const{children:t,theme:r}=e,i=jd(),l=A.useMemo(()=>{const s=i===null?{...r}:fN(i,r);return s!=null&&(s[cN]=i!==null),s},[r,i]);return he.jsx(Xb.Provider,{value:l,children:t})}const Qb=A.createContext(void 0);function hN({value:e,children:t}){return he.jsx(Qb.Provider,{value:e,children:t})}function pN(e){const{theme:t,name:r,props:i}=e;if(!t||!t.components||!t.components[r])return i;const l=t.components[r];return l.defaultProps?Ts(l.defaultProps,i):!l.styleOverrides&&!l.variants?Ts(l,i):i}function mN({props:e,name:t}){const r=A.useContext(Qb);return pN({props:e,name:t,theme:{components:r}})}const Kb={};function Wb(e,t,r,i=!1){return A.useMemo(()=>{const l=e&&t[e]||t;if(typeof r=="function"){const s=r(l),c=e?{...t,[e]:s}:s;return i?()=>c:c}return e?{...t,[e]:r}:{...t,...r}},[e,t,r,i])}function Zb(e){const{children:t,theme:r,themeId:i}=e,l=qb(Kb),s=jd()||Kb,c=Wb(i,l,r),d=Wb(i,s,r,!0),p=(i?c[i]:c).direction==="rtl";return he.jsx(dN,{theme:d,children:he.jsx(Mi.Provider,{value:c,children:he.jsx(y8,{value:p,children:he.jsx(hN,{value:i?c[i].components:c.components,children:t})})})})}const Jb={theme:void 0};function gN(e){let t,r;return function(l){let s=t;return(s===void 0||l.theme!==r)&&(Jb.theme=l.theme,s=Vb(e(Jb)),t=s,r=l.theme),s}}const qd="mode",Vd="color-scheme",bN="data-color-scheme";function EN(e){const{defaultMode:t="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:i="dark",modeStorageKey:l=qd,colorSchemeStorageKey:s=Vd,attribute:c=bN,colorSchemeNode:d="document.documentElement",nonce:p}=e||{};let m="",b=c;if(c==="class"&&(b=".%s"),c==="data"&&(b="[data-%s]"),b.startsWith(".")){const T=b.substring(1);m+=`${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||(m+=`${d}.removeAttribute('${T}'.replace('%s', light));
|
|
86
|
+
${d}.removeAttribute('${T}'.replace('%s', dark));`),m+=`
|
|
87
|
+
${d}.setAttribute('${T}'.replace('%s', colorScheme), ${y?`${y}.replace('%s', colorScheme)`:'""'});`}else m+=`${d}.setAttribute('${b}', colorScheme);`;return he.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(function() {
|
|
88
88
|
try {
|
|
89
89
|
let colorScheme = '';
|
|
90
90
|
const mode = localStorage.getItem('${l}') || '${t}';
|
|
@@ -108,14 +108,14 @@ try {
|
|
|
108
108
|
if (colorScheme) {
|
|
109
109
|
${m}
|
|
110
110
|
}
|
|
111
|
-
} catch(e){}})();`}},"mui-color-scheme-init")}function cE(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function fE(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 _O(e){return fE(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function n0(e,t){if(typeof window>"u")return;let r;try{r=localStorage.getItem(e)||void 0,r||localStorage.setItem(e,t)}catch{}return r||t}function vO(e){const{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:i,supportedColorSchemes:l=[],modeStorageKey:s=e0,colorSchemeStorageKey:c=t0,storageWindow:d=typeof window>"u"?void 0:window}=e,p=l.join(","),m=l.length>1,[b,E]=A.useState(()=>{const D=n0(s,t),P=n0(`${c}-light`,r),I=n0(`${c}-dark`,i);return{mode:D,systemMode:cE(D),lightColorScheme:P,darkColorScheme:I}}),[,S]=A.useState(!1),y=A.useRef(!1);A.useEffect(()=>{m&&S(!0),y.current=!0},[m]);const N=_O(b),_=A.useCallback(D=>{E(P=>{if(D===P.mode)return P;const I=D??t;try{localStorage.setItem(s,I)}catch{}return{...P,mode:I,systemMode:cE(I)}})},[s,t]),L=A.useCallback(D=>{D?typeof D=="string"?D&&!p.includes(D)?console.error(`\`${D}\` does not exist in \`theme.colorSchemes\`.`):E(P=>{const I={...P};return fE(P,M=>{try{localStorage.setItem(`${c}-${M}`,D)}catch{}M==="light"&&(I.lightColorScheme=D),M==="dark"&&(I.darkColorScheme=D)}),I}):E(P=>{const I={...P},M=D.light===null?r:D.light,j=D.dark===null?i:D.dark;if(M)if(!p.includes(M))console.error(`\`${M}\` does not exist in \`theme.colorSchemes\`.`);else{I.lightColorScheme=M;try{localStorage.setItem(`${c}-light`,M)}catch{}}if(j)if(!p.includes(j))console.error(`\`${j}\` does not exist in \`theme.colorSchemes\`.`);else{I.darkColorScheme=j;try{localStorage.setItem(`${c}-dark`,j)}catch{}}return I}):E(P=>{try{localStorage.setItem(`${c}-light`,r),localStorage.setItem(`${c}-dark`,i)}catch{}return{...P,lightColorScheme:r,darkColorScheme:i}})},[p,c,r,i]),v=A.useCallback(D=>{b.mode==="system"&&E(P=>{const I=D!=null&&D.matches?"dark":"light";return P.systemMode===I?P:{...P,systemMode:I}})},[b.mode]),H=A.useRef(v);return H.current=v,A.useEffect(()=>{if(typeof window.matchMedia!="function"||!m)return;const D=(...I)=>H.current(...I),P=window.matchMedia("(prefers-color-scheme: dark)");return P.addListener(D),D(P),()=>{P.removeListener(D)}},[m]),A.useEffect(()=>{if(d&&m){const D=P=>{const I=P.newValue;typeof P.key=="string"&&P.key.startsWith(c)&&(!I||p.match(I))&&(P.key.endsWith("light")&&L({light:I}),P.key.endsWith("dark")&&L({dark:I})),P.key===s&&(!I||["light","dark","system"].includes(I))&&_(I||t)};return d.addEventListener("storage",D),()=>{d.removeEventListener("storage",D)}}},[L,_,s,c,p,t,d,m]),{...b,mode:y.current||!m?b.mode:void 0,systemMode:y.current||!m?b.systemMode:void 0,colorScheme:y.current||!m?N:void 0,setMode:_,setColorScheme:L}}const RO="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function OO(e){const{themeId:t,theme:r={},modeStorageKey:i=e0,colorSchemeStorageKey:l=t0,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;function E(_){var _n,we,Xe,$t,te;const{children:L,theme:v,modeStorageKey:H=i,colorSchemeStorageKey:D=l,disableTransitionOnChange:P=s,storageWindow:I=typeof window>"u"?void 0:window,documentNode:M=typeof document>"u"?void 0:document,colorSchemeNode:j=typeof document>"u"?void 0:document.documentElement,disableNestedContext:ie=!1,disableStyleSheetGeneration:V=!1,defaultMode:x="system"}=_,Y=A.useRef(!1),K=Jd(),W=A.useContext(m),q=!!W&&!ie,ee=A.useMemo(()=>v||(typeof r=="function"?r():r),[v]),Q=ee[t],{colorSchemes:se={},components:re={},cssVarPrefix:ge,...C}=Q||ee,J=Object.keys(se).filter(fe=>!!se[fe]).join(","),Te=A.useMemo(()=>J.split(","),[J]),O=typeof c=="string"?c:c.light,ue=typeof c=="string"?c:c.dark,Re=se[O]&&se[ue]?x:((we=(_n=se[C.defaultColorScheme])==null?void 0:_n.palette)==null?void 0:we.mode)||((Xe=C.palette)==null?void 0:Xe.mode),{mode:Se,setMode:tt,systemMode:Me,lightColorScheme:$e,darkColorScheme:xe,colorScheme:Ge,setColorScheme:ve}=vO({supportedColorSchemes:Te,defaultLightColorScheme:O,defaultDarkColorScheme:ue,modeStorageKey:H,colorSchemeStorageKey:D,defaultMode:Re,storageWindow:I});let Oe=Se,Ce=Ge;q&&(Oe=W.mode,Ce=W.colorScheme);const Be=Ce||C.defaultColorScheme,it=(($t=C.generateThemeVars)==null?void 0:$t.call(C))||C.vars,je={...C,components:re,colorSchemes:se,cssVarPrefix:ge,vars:it};if(typeof je.generateSpacing=="function"&&(je.spacing=je.generateSpacing()),Be){const fe=se[Be];fe&&typeof fe=="object"&&Object.keys(fe).forEach(Ae=>{fe[Ae]&&typeof fe[Ae]=="object"?je[Ae]={...je[Ae],...fe[Ae]}:je[Ae]=fe[Ae]})}const Ue=C.colorSchemeSelector;A.useEffect(()=>{if(Ce&&j&&Ue&&Ue!=="media"){const fe=Ue;let Ae=Ue;if(fe==="class"&&(Ae=".%s"),fe==="data"&&(Ae="[data-%s]"),fe!=null&&fe.startsWith("data-")&&!fe.includes("%s")&&(Ae=`[${fe}="%s"]`),Ae.startsWith("."))j.classList.remove(...Te.map(He=>Ae.substring(1).replace("%s",He))),j.classList.add(Ae.substring(1).replace("%s",Ce));else{const He=Ae.replace("%s",Ce).match(/\[([^\]]+)\]/);if(He){const[nt,Qe]=He[1].split("=");Qe||Te.forEach(vn=>{j.removeAttribute(nt.replace(Ce,vn))}),j.setAttribute(nt,Qe?Qe.replace(/"|'/g,""):"")}else j.setAttribute(Ae,Ce)}}},[Ce,Ue,j,Te]),A.useEffect(()=>{let fe;if(P&&Y.current&&M){const Ae=M.createElement("style");Ae.appendChild(M.createTextNode(RO)),M.head.appendChild(Ae),window.getComputedStyle(M.body),fe=setTimeout(()=>{M.head.removeChild(Ae)},1)}return()=>{clearTimeout(fe)}},[Ce,P,M]),A.useEffect(()=>(Y.current=!0,()=>{Y.current=!1}),[]);const ct=A.useMemo(()=>({allColorSchemes:Te,colorScheme:Ce,darkColorScheme:xe,lightColorScheme:$e,mode:Oe,setColorScheme:ve,setMode:tt,systemMode:Me}),[Te,Ce,xe,$e,Oe,ve,tt,Me]);let St=!0;(V||C.cssVariables===!1||q&&(K==null?void 0:K.cssVarPrefix)===ge)&&(St=!1);const rn=pe.jsxs(A.Fragment,{children:[pe.jsx(oE,{themeId:Q?t:void 0,theme:d?d(je):je,children:L}),St&&pe.jsx(Kb,{styles:((te=je.generateStyleSheets)==null?void 0:te.call(je))||[]})]});return q?rn:pe.jsx(m.Provider,{value:ct,children:rn})}const S=typeof c=="string"?c:c.light,y=typeof c=="string"?c:c.dark;return{CssVarsProvider:E,useColorScheme:b,getInitColorSchemeScript:_=>xO({colorSchemeStorageKey:l,defaultLightColorScheme:S,defaultDarkColorScheme:y,modeStorageKey:i,..._})}}function NO(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 dE=(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])})},kO=(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)},DO=(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 r0(e,t){const{prefix:r,shouldSkipGeneratingVar:i}=t||{},l={},s={},c={};return kO(e,(d,p,m)=>{if((typeof p=="string"||typeof p=="number")&&(!i||!i(d,p))){const b=`--${r?`${r}-`:""}${d.join("-")}`,E=DO(d,p);Object.assign(l,{[b]:E}),dE(s,d,`var(${b})`,m),dE(c,d,`var(${b}, ${E})`,m)}},d=>d[0]==="vars"),{css:l,vars:s,varsWithDefaults:c}}function LO(e,t={}){const{getSelector:r=L,disableCssColorScheme:i,colorSchemeSelector:l}=t,{colorSchemes:s={},components:c,defaultColorScheme:d="light",...p}=e,{vars:m,css:b,varsWithDefaults:E}=r0(p,t);let S=E;const y={},{[d]:N,..._}=s;if(Object.entries(_||{}).forEach(([D,P])=>{const{vars:I,css:M,varsWithDefaults:j}=r0(P,t);S=Pn(S,j),y[D]={css:M,vars:I}}),N){const{css:D,vars:P,varsWithDefaults:I}=r0(N,t);S=Pn(S,I),y[d]={css:D,vars:P}}function L(D,P){var M,j;let I=l;if(l==="class"&&(I=".%s"),l==="data"&&(I="[data-%s]"),l!=null&&l.startsWith("data-")&&!l.includes("%s")&&(I=`[${l}="%s"]`),D){if(I==="media")return e.defaultColorScheme===D?":root":{[`@media (prefers-color-scheme: ${((j=(M=s[D])==null?void 0:M.palette)==null?void 0:j.mode)||D})`]:{":root":P}};if(I)return e.defaultColorScheme===D?`:root, ${I.replace("%s",String(D))}`:I.replace("%s",String(D))}return":root"}return{vars:S,generateThemeVars:()=>{let D={...m};return Object.entries(y).forEach(([,{vars:P}])=>{D=Pn(D,P)}),D},generateStyleSheets:()=>{var ie,V;const D=[],P=e.defaultColorScheme||"light";function I(x,Y){Object.keys(Y).length&&D.push(typeof x=="string"?{[x]:{...Y}}:x)}I(r(void 0,{...b}),b);const{[P]:M,...j}=y;if(M){const{css:x}=M,Y=(V=(ie=s[P])==null?void 0:ie.palette)==null?void 0:V.mode,K=!i&&Y?{colorScheme:Y,...x}:{...x};I(r(P,{...K}),K)}return Object.entries(j).forEach(([x,{css:Y}])=>{var q,ee;const K=(ee=(q=s[x])==null?void 0:q.palette)==null?void 0:ee.mode,W=!i&&K?{colorScheme:K,...Y}:{...Y};I(r(x,{...W}),W)}),D}}}function IO(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 Bl={black:"#000",white:"#fff"},wO={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"},uu={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},lu={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Pl={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},ou={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},su={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},cu={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function hE(){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:Bl.white,default:Bl.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 MO=hE();function pE(){return{text:{primary:Bl.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:Bl.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 mE=pE();function gE(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=Ml(e.main,l):t==="dark"&&(e.dark=wl(e.main,s)))}function BO(e="light"){return e==="dark"?{main:ou[200],light:ou[50],dark:ou[400]}:{main:ou[700],light:ou[400],dark:ou[800]}}function PO(e="light"){return e==="dark"?{main:uu[200],light:uu[50],dark:uu[400]}:{main:uu[500],light:uu[300],dark:uu[700]}}function UO(e="light"){return e==="dark"?{main:lu[500],light:lu[300],dark:lu[700]}:{main:lu[700],light:lu[400],dark:lu[800]}}function HO(e="light"){return e==="dark"?{main:su[400],light:su[300],dark:su[700]}:{main:su[700],light:su[500],dark:su[900]}}function FO(e="light"){return e==="dark"?{main:cu[400],light:cu[300],dark:cu[700]}:{main:cu[800],light:cu[500],dark:cu[900]}}function zO(e="light"){return e==="dark"?{main:Pl[400],light:Pl[300],dark:Pl[700]}:{main:"#ed6c02",light:Pl[500],dark:Pl[900]}}function a0(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:i=.2,...l}=e,s=e.primary||BO(t),c=e.secondary||PO(t),d=e.error||UO(t),p=e.info||HO(t),m=e.success||FO(t),b=e.warning||zO(t);function E(_){return pO(_,mE.text.primary)>=r?mE.text.primary:MO.text.primary}const S=({color:_,name:L,mainShade:v=500,lightShade:H=300,darkShade:D=700})=>{if(_={..._},!_.main&&_[v]&&(_.main=_[v]),!_.hasOwnProperty("main"))throw new Error(ka(11,L?` (${L})`:"",v));if(typeof _.main!="string")throw new Error(ka(12,L?` (${L})`:"",JSON.stringify(_.main)));return gE(_,"light",H,i),gE(_,"dark",D,i),_.contrastText||(_.contrastText=E(_.main)),_};let y;return t==="light"?y=hE():t==="dark"&&(y=pE()),Pn({common:{...Bl},mode:t,primary:S({color:s,name:"primary"}),secondary:S({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:S({color:d,name:"error"}),warning:S({color:b,name:"warning"}),info:S({color:p,name:"info"}),success:S({color:m,name:"success"}),grey:wO,contrastThreshold:r,getContrastText:E,augmentColor:S,tonalOffset:i,...y},l)}function YO(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 jO(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function VO(e){return Math.round(e*1e5)/1e5}const bE={textTransform:"uppercase"},EE='"Roboto", "Helvetica", "Arial", sans-serif';function yE(e,t){const{fontFamily:r=EE,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,S=i/14,y=b||(L=>`${L/p*S}rem`),N=(L,v,H,D,P)=>({fontFamily:r,fontWeight:L,fontSize:y(v),lineHeight:H,...r===EE?{letterSpacing:`${VO(D/v)}em`}:{},...P,...m}),_={h1:N(l,96,1.167,-1.5),h2:N(l,60,1.2,-.5),h3:N(s,48,1.167,0),h4:N(s,34,1.235,.25),h5:N(s,24,1.334,0),h6:N(c,20,1.6,.15),subtitle1:N(s,16,1.75,.15),subtitle2:N(c,14,1.57,.1),body1:N(s,16,1.5,.15),body2:N(s,14,1.43,.15),button:N(c,14,1.75,.4,bE),caption:N(s,12,1.66,.4),overline:N(s,12,2.66,1,bE),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Pn({htmlFontSize:p,pxToRem:y,fontFamily:r,fontSize:i,fontWeightLight:l,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:d,..._},E,{clone:!1})}const $O=.2,qO=.14,GO=.12;function Ut(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${$O})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${qO})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${GO})`].join(",")}const XO=["none",Ut(0,2,1,-1,0,1,1,0,0,1,3,0),Ut(0,3,1,-2,0,2,2,0,0,1,5,0),Ut(0,3,3,-2,0,3,4,0,0,1,8,0),Ut(0,2,4,-1,0,4,5,0,0,1,10,0),Ut(0,3,5,-1,0,5,8,0,0,1,14,0),Ut(0,3,5,-1,0,6,10,0,0,1,18,0),Ut(0,4,5,-2,0,7,10,1,0,2,16,1),Ut(0,5,5,-3,0,8,10,1,0,3,14,2),Ut(0,5,6,-3,0,9,12,1,0,3,16,2),Ut(0,6,6,-3,0,10,14,1,0,4,18,3),Ut(0,6,7,-4,0,11,15,1,0,4,20,3),Ut(0,7,8,-4,0,12,17,2,0,5,22,4),Ut(0,7,8,-4,0,13,19,2,0,5,24,4),Ut(0,7,9,-4,0,14,21,2,0,5,26,4),Ut(0,8,9,-5,0,15,22,2,0,6,28,5),Ut(0,8,10,-5,0,16,24,2,0,6,30,5),Ut(0,8,11,-5,0,17,26,2,0,6,32,5),Ut(0,9,11,-5,0,18,28,2,0,7,34,6),Ut(0,9,12,-6,0,19,29,2,0,7,36,6),Ut(0,10,13,-6,0,20,31,3,0,8,38,7),Ut(0,10,13,-6,0,21,33,3,0,8,40,7),Ut(0,10,14,-6,0,22,35,3,0,8,42,7),Ut(0,11,14,-7,0,23,36,3,0,9,44,8),Ut(0,11,15,-7,0,24,38,3,0,9,46,8)],QO={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)"},KO={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function TE(e){return`${Math.round(e)}ms`}function WO(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function ZO(e){const t={...QO,...e.easing},r={...KO,...e.duration};return{getAutoHeightDuration:WO,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:TE(c)} ${d} ${typeof p=="string"?p:TE(p)}`).join(",")},...e,easing:t,duration:r}}const JO={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function eN(e){return Yr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function SE(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];!eN(d)||c.startsWith("unstable_")?delete i[c]:Yr(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 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';
|
|
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 i0(e={},...t){const{breakpoints:r,mixins:i={},spacing:l,palette:s={},transitions:c={},typography:d={},shape:p,...m}=e;if(e.vars)throw new Error(ka(20));const b=a0(s),E=Xd(e);let S=Pn(E,{mixins:jO(E.breakpoints,i),palette:b,shadows:XO.slice(),typography:yE(b,d),transitions:ZO(c),zIndex:{...JO}});return S=Pn(S,m),S=t.reduce((y,N)=>Pn(y,N),S),S.unstable_sxConfig={...Dl,...m==null?void 0:m.unstable_sxConfig},S.unstable_sx=function(N){return di({sx:N,theme:this})},S.toRuntimeSource=SE,S}function u0(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 tN=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=u0(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function CE(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function AE(e){return e==="dark"?tN:[]}function nN(e){const{palette:t={mode:"light"},opacity:r,overlays:i,...l}=e,s=a0(t);return{palette:s,opacity:{...CE(s.mode),...r},overlays:i||AE(s.mode),...l}}function rN(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 aN=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],iN=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 aN(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 uN(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function ae(e,t,r){!e[t]&&r&&(e[t]=r)}function Ul(e){return!e||!e.startsWith("hsl")?e:rE(e)}function ia(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ll(Ul(e[t])))}function lN(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Vr=e=>{try{return e()}catch{}},oN=(e="mui")=>NO(e);function l0(e,t,r,i){if(!t)return;t=t===!0?{}:t;const l=i==="dark"?"dark":"light";if(!r){e[i]=nN({...t,palette:{mode:l,...t==null?void 0:t.palette}});return}const{palette:s,...c}=i0({...r,palette:{mode:l,...t==null?void 0:t.palette}});return e[i]={...t,palette:s,opacity:{...CE(l),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||AE(l)},c}function sN(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:i,disableCssColorScheme:l=!1,cssVarPrefix:s="mui",shouldSkipGeneratingVar:c=rN,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),S=oN(s),{[E]:y,light:N,dark:_,...L}=r,v={...L};let H=y;if((E==="dark"&&!("dark"in r)||E==="light"&&!("light"in r))&&(H=!0),!H)throw new Error(ka(21,E));const D=l0(v,H,m,E);N&&!v.light&&l0(v,N,void 0,"light"),_&&!v.dark&&l0(v,_,void 0,"dark");let P={defaultColorScheme:E,...D,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:p,getCssVar:S,colorSchemes:v,font:{...YO(D.typography),...D.font},spacing:lN(m.spacing)};Object.keys(P.colorSchemes).forEach(V=>{const x=P.colorSchemes[V].palette,Y=K=>{const W=K.split("-"),q=W[1],ee=W[2];return S(K,x[q][ee])};if(x.mode==="light"&&(ae(x.common,"background","#fff"),ae(x.common,"onBackground","#000")),x.mode==="dark"&&(ae(x.common,"background","#000"),ae(x.common,"onBackground","#fff")),uN(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){ae(x.Alert,"errorColor",vt(x.error.light,.6)),ae(x.Alert,"infoColor",vt(x.info.light,.6)),ae(x.Alert,"successColor",vt(x.success.light,.6)),ae(x.Alert,"warningColor",vt(x.warning.light,.6)),ae(x.Alert,"errorFilledBg",Y("palette-error-main")),ae(x.Alert,"infoFilledBg",Y("palette-info-main")),ae(x.Alert,"successFilledBg",Y("palette-success-main")),ae(x.Alert,"warningFilledBg",Y("palette-warning-main")),ae(x.Alert,"errorFilledColor",Vr(()=>x.getContrastText(x.error.main))),ae(x.Alert,"infoFilledColor",Vr(()=>x.getContrastText(x.info.main))),ae(x.Alert,"successFilledColor",Vr(()=>x.getContrastText(x.success.main))),ae(x.Alert,"warningFilledColor",Vr(()=>x.getContrastText(x.warning.main))),ae(x.Alert,"errorStandardBg",Rt(x.error.light,.9)),ae(x.Alert,"infoStandardBg",Rt(x.info.light,.9)),ae(x.Alert,"successStandardBg",Rt(x.success.light,.9)),ae(x.Alert,"warningStandardBg",Rt(x.warning.light,.9)),ae(x.Alert,"errorIconColor",Y("palette-error-main")),ae(x.Alert,"infoIconColor",Y("palette-info-main")),ae(x.Alert,"successIconColor",Y("palette-success-main")),ae(x.Alert,"warningIconColor",Y("palette-warning-main")),ae(x.AppBar,"defaultBg",Y("palette-grey-100")),ae(x.Avatar,"defaultBg",Y("palette-grey-400")),ae(x.Button,"inheritContainedBg",Y("palette-grey-300")),ae(x.Button,"inheritContainedHoverBg",Y("palette-grey-A100")),ae(x.Chip,"defaultBorder",Y("palette-grey-400")),ae(x.Chip,"defaultAvatarColor",Y("palette-grey-700")),ae(x.Chip,"defaultIconColor",Y("palette-grey-700")),ae(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ae(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ae(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ae(x.LinearProgress,"primaryBg",Rt(x.primary.main,.62)),ae(x.LinearProgress,"secondaryBg",Rt(x.secondary.main,.62)),ae(x.LinearProgress,"errorBg",Rt(x.error.main,.62)),ae(x.LinearProgress,"infoBg",Rt(x.info.main,.62)),ae(x.LinearProgress,"successBg",Rt(x.success.main,.62)),ae(x.LinearProgress,"warningBg",Rt(x.warning.main,.62)),ae(x.Skeleton,"bg",`rgba(${Y("palette-text-primaryChannel")} / 0.11)`),ae(x.Slider,"primaryTrack",Rt(x.primary.main,.62)),ae(x.Slider,"secondaryTrack",Rt(x.secondary.main,.62)),ae(x.Slider,"errorTrack",Rt(x.error.main,.62)),ae(x.Slider,"infoTrack",Rt(x.info.main,.62)),ae(x.Slider,"successTrack",Rt(x.success.main,.62)),ae(x.Slider,"warningTrack",Rt(x.warning.main,.62));const K=Ws(x.background.default,.8);ae(x.SnackbarContent,"bg",K),ae(x.SnackbarContent,"color",Vr(()=>x.getContrastText(K))),ae(x.SpeedDialAction,"fabHoverBg",Ws(x.background.paper,.15)),ae(x.StepConnector,"border",Y("palette-grey-400")),ae(x.StepContent,"border",Y("palette-grey-400")),ae(x.Switch,"defaultColor",Y("palette-common-white")),ae(x.Switch,"defaultDisabledColor",Y("palette-grey-100")),ae(x.Switch,"primaryDisabledColor",Rt(x.primary.main,.62)),ae(x.Switch,"secondaryDisabledColor",Rt(x.secondary.main,.62)),ae(x.Switch,"errorDisabledColor",Rt(x.error.main,.62)),ae(x.Switch,"infoDisabledColor",Rt(x.info.main,.62)),ae(x.Switch,"successDisabledColor",Rt(x.success.main,.62)),ae(x.Switch,"warningDisabledColor",Rt(x.warning.main,.62)),ae(x.TableCell,"border",Rt(Ks(x.divider,1),.88)),ae(x.Tooltip,"bg",Ks(x.grey[700],.92))}if(x.mode==="dark"){ae(x.Alert,"errorColor",Rt(x.error.light,.6)),ae(x.Alert,"infoColor",Rt(x.info.light,.6)),ae(x.Alert,"successColor",Rt(x.success.light,.6)),ae(x.Alert,"warningColor",Rt(x.warning.light,.6)),ae(x.Alert,"errorFilledBg",Y("palette-error-dark")),ae(x.Alert,"infoFilledBg",Y("palette-info-dark")),ae(x.Alert,"successFilledBg",Y("palette-success-dark")),ae(x.Alert,"warningFilledBg",Y("palette-warning-dark")),ae(x.Alert,"errorFilledColor",Vr(()=>x.getContrastText(x.error.dark))),ae(x.Alert,"infoFilledColor",Vr(()=>x.getContrastText(x.info.dark))),ae(x.Alert,"successFilledColor",Vr(()=>x.getContrastText(x.success.dark))),ae(x.Alert,"warningFilledColor",Vr(()=>x.getContrastText(x.warning.dark))),ae(x.Alert,"errorStandardBg",vt(x.error.light,.9)),ae(x.Alert,"infoStandardBg",vt(x.info.light,.9)),ae(x.Alert,"successStandardBg",vt(x.success.light,.9)),ae(x.Alert,"warningStandardBg",vt(x.warning.light,.9)),ae(x.Alert,"errorIconColor",Y("palette-error-main")),ae(x.Alert,"infoIconColor",Y("palette-info-main")),ae(x.Alert,"successIconColor",Y("palette-success-main")),ae(x.Alert,"warningIconColor",Y("palette-warning-main")),ae(x.AppBar,"defaultBg",Y("palette-grey-900")),ae(x.AppBar,"darkBg",Y("palette-background-paper")),ae(x.AppBar,"darkColor",Y("palette-text-primary")),ae(x.Avatar,"defaultBg",Y("palette-grey-600")),ae(x.Button,"inheritContainedBg",Y("palette-grey-800")),ae(x.Button,"inheritContainedHoverBg",Y("palette-grey-700")),ae(x.Chip,"defaultBorder",Y("palette-grey-700")),ae(x.Chip,"defaultAvatarColor",Y("palette-grey-300")),ae(x.Chip,"defaultIconColor",Y("palette-grey-300")),ae(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ae(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ae(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ae(x.LinearProgress,"primaryBg",vt(x.primary.main,.5)),ae(x.LinearProgress,"secondaryBg",vt(x.secondary.main,.5)),ae(x.LinearProgress,"errorBg",vt(x.error.main,.5)),ae(x.LinearProgress,"infoBg",vt(x.info.main,.5)),ae(x.LinearProgress,"successBg",vt(x.success.main,.5)),ae(x.LinearProgress,"warningBg",vt(x.warning.main,.5)),ae(x.Skeleton,"bg",`rgba(${Y("palette-text-primaryChannel")} / 0.13)`),ae(x.Slider,"primaryTrack",vt(x.primary.main,.5)),ae(x.Slider,"secondaryTrack",vt(x.secondary.main,.5)),ae(x.Slider,"errorTrack",vt(x.error.main,.5)),ae(x.Slider,"infoTrack",vt(x.info.main,.5)),ae(x.Slider,"successTrack",vt(x.success.main,.5)),ae(x.Slider,"warningTrack",vt(x.warning.main,.5));const K=Ws(x.background.default,.98);ae(x.SnackbarContent,"bg",K),ae(x.SnackbarContent,"color",Vr(()=>x.getContrastText(K))),ae(x.SpeedDialAction,"fabHoverBg",Ws(x.background.paper,.15)),ae(x.StepConnector,"border",Y("palette-grey-600")),ae(x.StepContent,"border",Y("palette-grey-600")),ae(x.Switch,"defaultColor",Y("palette-grey-300")),ae(x.Switch,"defaultDisabledColor",Y("palette-grey-600")),ae(x.Switch,"primaryDisabledColor",vt(x.primary.main,.55)),ae(x.Switch,"secondaryDisabledColor",vt(x.secondary.main,.55)),ae(x.Switch,"errorDisabledColor",vt(x.error.main,.55)),ae(x.Switch,"infoDisabledColor",vt(x.info.main,.55)),ae(x.Switch,"successDisabledColor",vt(x.success.main,.55)),ae(x.Switch,"warningDisabledColor",vt(x.warning.main,.55)),ae(x.TableCell,"border",vt(Ks(x.divider,1),.68)),ae(x.Tooltip,"bg",Ks(x.grey[700],.92))}ia(x.background,"default"),ia(x.background,"paper"),ia(x.common,"background"),ia(x.common,"onBackground"),ia(x,"divider"),Object.keys(x).forEach(K=>{const W=x[K];W&&typeof W=="object"&&(W.main&&ae(x[K],"mainChannel",Ll(Ul(W.main))),W.light&&ae(x[K],"lightChannel",Ll(Ul(W.light))),W.dark&&ae(x[K],"darkChannel",Ll(Ul(W.dark))),W.contrastText&&ae(x[K],"contrastTextChannel",Ll(Ul(W.contrastText))),K==="text"&&(ia(x[K],"primary"),ia(x[K],"secondary")),K==="action"&&(W.active&&ia(x[K],"active"),W.selected&&ia(x[K],"selected")))})}),P=t.reduce((V,x)=>Pn(V,x),P);const I={prefix:s,disableCssColorScheme:l,shouldSkipGeneratingVar:c,getSelector:iN(P)},{vars:M,generateThemeVars:j,generateStyleSheets:ie}=LO(P,I);return P.vars=M,Object.entries(P.colorSchemes[P.defaultColorScheme]).forEach(([V,x])=>{P[V]=x}),P.generateThemeVars=j,P.generateStyleSheets=ie,P.generateSpacing=function(){return Jb(m.spacing,qd(this))},P.getColorSchemeSelector=IO(d),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=c,P.unstable_sxConfig={...Dl,...m==null?void 0:m.unstable_sxConfig},P.unstable_sx=function(x){return di({sx:x,theme:this})},P.toRuntimeSource=SE,P}function xE(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:a0({...r===!0?{}:r.palette,mode:t})})}function Zs(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 i0(e,...t);let b=r;"palette"in e||m[d]&&(m[d]!==!0?b=m[d].palette:d==="dark"&&(b={mode:"dark"}));const E=i0({...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},xE(E,"dark",m.dark)),E.palette.mode==="dark"&&(E.colorSchemes.dark={...m.dark!==!0&&m.dark,palette:E.palette},xE(E,"light",m.light)),E}return!r&&!("light"in m)&&d==="light"&&(m.light=!0),sN({...c,colorSchemes:m,defaultColorScheme:d,...typeof i!="boolean"&&i},...t)}const Js=Zs(),$r="$$material";function Hl(){const e=Qd(Js);return e[$r]||e}function cN(e){return pe.jsx(tO,{...e,defaultTheme:Js,themeId:$r})}function fN(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const _E=e=>fN(e)&&e!=="classes",Ot=iO({themeId:$r,defaultTheme:Js,rootShouldForwardProp:_E});function dN(e){return function(r){return pe.jsx(cN,{styles:typeof e=="function"?i=>e({theme:i,...r}):e})}}function hN(){return $R}const Fn=CO;function zn(e){return SO(e)}function fu(e,t){const{className:r,elementType:i,ownerState:l,externalForwardedProps:s,getSlotOwnerState:c,internalForwardedProps:d,...p}=t,{component:m,slots:b={[e]:void 0},slotProps:E={[e]:void 0},...S}=s,y=b[e]||i,N=jb(E[e],l),{props:{component:_,...L},internalRef:v}=Yb({className:r,...p,externalForwardedProps:e==="root"?S:void 0,externalSlotProps:N}),H=fr(v,N==null?void 0:N.ref,t.ref),D=c?c(L):{},P={...l,...D},I=e==="root"?_||m:_,M=Hb(y,{...e==="root"&&!m&&!b[e]&&d,...e!=="root"&&!b[e]&&d,...L,...I&&{as:I},ref:H},P);return Object.keys(D).forEach(j=>{delete M[j]}),[y,M]}function vE(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.includes(i))continue;r[i]=e[i]}return r}function o0(e,t){return o0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},o0(e,t)}function RE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o0(e,t)}const OE={disabled:!1},ec=xt.createContext(null);var pN=function(t){return t.scrollTop},Fl="unmounted",hi="exited",pi="entering",du="entered",s0="exiting",qr=function(e){RE(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=hi,s.appearStatus=pi):p=du:i.unmountOnExit||i.mountOnEnter?p=Fl:p=hi,s.state={status:p},s.nextCallback=null,s}t.getDerivedStateFromProps=function(l,s){var c=l.in;return c&&s.status===Fl?{status:hi}: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!==pi&&c!==du&&(s=pi):(c===pi||c===du)&&(s=s0)}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===pi){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:Hs.findDOMNode(this);c&&pN(c)}this.performEnter(l)}else this.performExit();else this.props.unmountOnExit&&this.state.status===hi&&this.setState({status:Fl})},r.performEnter=function(l){var s=this,c=this.props.enter,d=this.context?this.context.isMounting:l,p=this.props.nodeRef?[d]:[Hs.findDOMNode(this),d],m=p[0],b=p[1],E=this.getTimeouts(),S=d?E.appear:E.enter;if(!l&&!c||OE.disabled){this.safeSetState({status:du},function(){s.props.onEntered(m)});return}this.props.onEnter(m,b),this.safeSetState({status:pi},function(){s.props.onEntering(m,b),s.onTransitionEnd(S,function(){s.safeSetState({status:du},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:Hs.findDOMNode(this);if(!s||OE.disabled){this.safeSetState({status:hi},function(){l.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:s0},function(){l.props.onExiting(d),l.onTransitionEnd(c.exit,function(){l.safeSetState({status:hi},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:Hs.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===Fl)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=vE(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return xt.createElement(ec.Provider,{value:null},typeof c=="function"?c(l,d):xt.cloneElement(xt.Children.only(c),d))},t}(xt.Component);qr.contextType=ec,qr.propTypes={};function hu(){}qr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:hu,onEntering:hu,onEntered:hu,onExit:hu,onExiting:hu,onExited:hu},qr.UNMOUNTED=Fl,qr.EXITED=hi,qr.ENTERING=pi,qr.ENTERED=du,qr.EXITING=s0;function mN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c0(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 gN(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 mi(e,t,r){return r[t]!=null?r[t]:e.props[t]}function bN(e,t){return c0(e.children,function(r){return A.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:mi(r,"appear",e),enter:mi(r,"enter",e),exit:mi(r,"exit",e)})})}function EN(e,t,r){var i=c0(e.children),l=gN(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:mi(c,"exit",e),enter:mi(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:mi(c,"exit",e),enter:mi(c,"enter",e)}))}}),l}var yN=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},TN={component:"div",childFactory:function(t){return t}},f0=function(e){RE(t,e);function t(i,l){var s;s=e.call(this,i,l)||this;var c=s.handleExited.bind(mN(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?bN(l,d):EN(l,c,d),firstRender:!1}},r.handleExited=function(l,s){var c=c0(this.props.children);l.key in c||(l.props.onExited&&l.props.onExited(s),this.mounted&&this.setState(function(d){var p=is({},d.children);return delete p[l.key],{children:p}}))},r.render=function(){var l=this.props,s=l.component,c=l.childFactory,d=vE(l,["component","childFactory"]),p=this.state.contextValue,m=yN(this.state.children).map(c);return delete d.appear,delete d.enter,delete d.exit,s===null?xt.createElement(ec.Provider,{value:p},m):xt.createElement(ec.Provider,{value:p},xt.createElement(s,d,m))},t}(xt.Component);f0.propTypes={},f0.defaultProps=TN;const NE=e=>e.scrollTop;function tc(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 SN={entering:{opacity:1},entered:{opacity:1}},CN=A.forwardRef(function(t,r){const i=Hl(),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:S,onExit:y,onExited:N,onExiting:_,style:L,timeout:v=l,TransitionComponent:H=qr,...D}=t,P=A.useRef(null),I=fr(P,Us(d),r),M=q=>ee=>{if(q){const Q=P.current;ee===void 0?q(Q):q(Q,ee)}},j=M(S),ie=M((q,ee)=>{NE(q);const Q=tc({style:L,timeout:v,easing:p},{mode:"enter"});q.style.webkitTransition=i.transitions.create("opacity",Q),q.style.transition=i.transitions.create("opacity",Q),b&&b(q,ee)}),V=M(E),x=M(_),Y=M(q=>{const ee=tc({style:L,timeout:v,easing:p},{mode:"exit"});q.style.webkitTransition=i.transitions.create("opacity",ee),q.style.transition=i.transitions.create("opacity",ee),y&&y(q)}),K=M(N),W=q=>{s&&s(P.current,q)};return pe.jsx(H,{appear:c,in:m,nodeRef:P,onEnter:ie,onEntered:V,onEntering:j,onExit:Y,onExited:K,onExiting:x,addEndListener:W,timeout:v,...D,children:(q,ee)=>A.cloneElement(d,{style:{opacity:0,visibility:q==="exited"&&!m?"hidden":void 0,...SN[q],...L,...d.props.style},ref:I,...ee})})});function AN(e){return Un("MuiBackdrop",e)}Hn("MuiBackdrop",["root","invisible"]);const xN=e=>{const{ownerState:t,...r}=e;return r},_N=e=>{const{classes:t,invisible:r}=e;return Zn({root:["root",r&&"invisible"]},AN,t)},vN=Ot("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"}}]}),RN=A.forwardRef(function(t,r){const i=zn({props:t,name:"MuiBackdrop"}),{children:l,className:s,component:c="div",invisible:d=!1,open:p,components:m={},componentsProps:b={},slotProps:E={},slots:S={},TransitionComponent:y,transitionDuration:N,..._}=i,L={...i,component:c,invisible:d},v=_N(L),H={transition:y,root:m.Root,...S},D={...b,...E},P={slots:H,slotProps:D},[I,M]=fu("root",{elementType:vN,externalForwardedProps:P,className:st(v.root,s),ownerState:L}),[j,ie]=fu("transition",{elementType:CN,externalForwardedProps:P,ownerState:L}),V=xN(ie);return pe.jsx(j,{in:p,timeout:N,..._,...V,children:pe.jsx(I,{"aria-hidden":!0,...M,classes:v,ref:r,children:l})})});function ON(e){return typeof e=="function"?e():e}function NN(e){return e?e.props.hasOwnProperty("in"):!1}const nc=new Y8;function kN(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({}),S=A.useRef(null),y=A.useRef(null),N=fr(y,b),[_,L]=A.useState(!m),v=NN(d);let H=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(H=!1);const D=()=>Da(S.current),P=()=>(E.current.modalRef=y.current,E.current.mount=S.current,E.current),I=()=>{nc.mount(P(),{disableScrollLock:i}),y.current&&(y.current.scrollTop=0)},M=ra(()=>{const ee=ON(t)||D().body;nc.add(P(),ee),y.current&&I()}),j=()=>nc.isTopModal(P()),ie=ra(ee=>{S.current=ee,ee&&(m&&j()?I():y.current&&Rl(y.current,H))}),V=A.useCallback(()=>{nc.remove(P(),H)},[H]);A.useEffect(()=>()=>{V()},[V]),A.useEffect(()=>{m?M():(!v||!l)&&V()},[m,V,v,l,M]);const x=ee=>Q=>{var se;(se=ee.onKeyDown)==null||se.call(ee,Q),!(Q.key!=="Escape"||Q.which===229||!j())&&(r||(Q.stopPropagation(),p&&p(Q,"escapeKeyDown")))},Y=ee=>Q=>{var se;(se=ee.onClick)==null||se.call(ee,Q),Q.target===Q.currentTarget&&p&&p(Q,"backdropClick")};return{getRootProps:(ee={})=>{const Q=Fb(e);delete Q.onTransitionEnter,delete Q.onTransitionExited;const se={...Q,...ee};return{role:"presentation",...se,onKeyDown:x(se),ref:N}},getBackdropProps:(ee={})=>{const Q=ee;return{"aria-hidden":!0,...Q,onClick:Y(Q),open:m}},getTransitionProps:()=>{const ee=()=>{L(!1),s&&s()},Q=()=>{L(!0),c&&c(),l&&V()};return{onEnter:wb(ee,d==null?void 0:d.props.onEnter),onExited:wb(Q,d==null?void 0:d.props.onExited)}},rootRef:N,portalRef:ie,isTopModal:j,exited:_,hasTransition:v}}function DN(e){return Un("MuiModal",e)}Hn("MuiModal",["root","hidden","backdrop"]);function LN(e){return Un("MuiSvgIcon",e)}Hn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const IN=e=>{const{color:t,fontSize:r,classes:i}=e,l={root:["root",t!=="inherit"&&`color${_t(t)}`,`fontSize${_t(r)}`]};return Zn(l,LN,i)},wN=Ot("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${_t(r.color)}`],t[`fontSize${_t(r.fontSize)}`]]}})(Fn(({theme:e})=>{var t,r,i,l,s,c,d,p,m,b,E,S,y,N;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:_=>!_.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(([,_])=>_&&_.main).map(([_])=>{var L,v;return{props:{color:_},style:{color:(v=(L=(e.vars??e).palette)==null?void 0:L[_])==null?void 0:v.main}}}),{props:{color:"action"},style:{color:(S=(E=(e.vars??e).palette)==null?void 0:E.action)==null?void 0:S.active}},{props:{color:"disabled"},style:{color:(N=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:N.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),rc=A.forwardRef(function(t,r){const i=zn({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:S="0 0 24 24",...y}=i,N=A.isValidElement(l)&&l.type==="svg",_={...i,color:c,component:d,fontSize:p,instanceFontSize:t.fontSize,inheritViewBox:b,viewBox:S,hasSvgAsChild:N},L={};b||(L.viewBox=S);const v=IN(_);return pe.jsxs(wN,{as:d,className:st(v.root,s),focusable:"false",color:m,"aria-hidden":E?void 0:!0,role:E?"img":void 0,ref:r,...L,...y,...N&&l.props,ownerState:_,children:[N?l.props.children:l,E?pe.jsx("title",{children:E}):null]})});rc&&(rc.muiName="SvgIcon");function gi(e,t){function r(i,l){return pe.jsx(rc,{"data-testid":`${t}Icon`,ref:l,...i,children:e})}return r.muiName=rc.muiName,A.memo(A.forwardRef(r))}const MN=e=>{const{open:t,exited:r,classes:i}=e;return Zn({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},DN,i)},BN=Ot("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Fn(({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"}}]}))),PN=Ot(RN,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),UN=A.forwardRef(function(t,r){const i=zn({name:"MuiModal",props:t}),{BackdropComponent:l=PN,BackdropProps:s,classes:c,className:d,closeAfterTransition:p=!1,children:m,container:b,component:E,components:S={},componentsProps:y={},disableAutoFocus:N=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:L=!1,disablePortal:v=!1,disableRestoreFocus:H=!1,disableScrollLock:D=!1,hideBackdrop:P=!1,keepMounted:I=!1,onBackdropClick:M,onClose:j,onTransitionEnter:ie,onTransitionExited:V,open:x,slotProps:Y={},slots:K={},theme:W,...q}=i,ee={...i,closeAfterTransition:p,disableAutoFocus:N,disableEnforceFocus:_,disableEscapeKeyDown:L,disablePortal:v,disableRestoreFocus:H,disableScrollLock:D,hideBackdrop:P,keepMounted:I},{getRootProps:Q,getBackdropProps:se,getTransitionProps:re,portalRef:ge,isTopModal:C,exited:J,hasTransition:Te}=kN({...ee,rootRef:r}),O={...ee,exited:J},ue=MN(O),Re={};if(m.props.tabIndex===void 0&&(Re.tabIndex="-1"),Te){const{onEnter:ve,onExited:Oe}=re();Re.onEnter=ve,Re.onExited=Oe}const Se={...q,slots:{root:S.Root,backdrop:S.Backdrop,...K},slotProps:{...y,...Y}},[tt,Me]=fu("root",{elementType:BN,externalForwardedProps:Se,getSlotProps:Q,additionalProps:{ref:r,as:E},ownerState:O,className:st(d,ue==null?void 0:ue.root,!O.open&&O.exited&&(ue==null?void 0:ue.hidden))}),[$e,xe]=fu("backdrop",{elementType:l,externalForwardedProps:Se,additionalProps:s,getSlotProps:ve=>se({...ve,onClick:Oe=>{M&&M(Oe),ve!=null&&ve.onClick&&ve.onClick(Oe)}}),className:st(s==null?void 0:s.className,ue==null?void 0:ue.backdrop),ownerState:O}),Ge=fr(s==null?void 0:s.ref,xe.ref);return!I&&!x&&(!Te||J)?null:pe.jsx(W8,{ref:ge,container:b,disablePortal:v,children:pe.jsxs(tt,{...Me,children:[!P&&l?pe.jsx($e,{...xe,ref:Ge}):null,pe.jsx(Q8,{disableEnforceFocus:_,disableAutoFocus:N,disableRestoreFocus:H,isEnabled:C,open:x,children:A.cloneElement(m,Re)})]})})});function HN(e,t,r){const i=t.getBoundingClientRect(),l=r&&r.getBoundingClientRect(),s=jr(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 FN(e){return typeof e=="function"?e():e}function ac(e,t,r){const i=FN(r),l=HN(e,t,i);l&&(t.style.webkitTransform=l,t.style.transform=l)}const zN=A.forwardRef(function(t,r){const i=Hl(),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:S,onEnter:y,onEntered:N,onEntering:_,onExit:L,onExited:v,onExiting:H,style:D,timeout:P=s,TransitionComponent:I=qr,...M}=t,j=A.useRef(null),ie=fr(Us(p),j,r),V=re=>ge=>{re&&(ge===void 0?re(j.current):re(j.current,ge))},x=V((re,ge)=>{ac(b,re,m),NE(re),y&&y(re,ge)}),Y=V((re,ge)=>{const C=tc({timeout:P,style:D,easing:E},{mode:"enter"});re.style.webkitTransition=i.transitions.create("-webkit-transform",{...C}),re.style.transition=i.transitions.create("transform",{...C}),re.style.webkitTransform="none",re.style.transform="none",_&&_(re,ge)}),K=V(N),W=V(H),q=V(re=>{const ge=tc({timeout:P,style:D,easing:E},{mode:"exit"});re.style.webkitTransition=i.transitions.create("-webkit-transform",ge),re.style.transition=i.transitions.create("transform",ge),ac(b,re,m),L&&L(re)}),ee=V(re=>{re.style.webkitTransition="",re.style.transition="",v&&v(re)}),Q=re=>{c&&c(j.current,re)},se=A.useCallback(()=>{j.current&&ac(b,j.current,m)},[b,m]);return A.useEffect(()=>{if(S||b==="down"||b==="right")return;const re=Ms(()=>{j.current&&ac(b,j.current,m)}),ge=jr(j.current);return ge.addEventListener("resize",re),()=>{re.clear(),ge.removeEventListener("resize",re)}},[b,S,m]),A.useEffect(()=>{S||se()},[S,se]),pe.jsx(I,{nodeRef:j,onEnter:x,onEntered:K,onEntering:Y,onExit:q,onExited:ee,onExiting:W,addEndListener:Q,appear:d,in:S,timeout:P,...M,children:(re,ge)=>A.cloneElement(p,{ref:ie,style:{visibility:re==="exited"&&!S?"hidden":void 0,...D,...p.props.style},...ge})})});function YN(e){return Un("MuiPaper",e)}Hn("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 jN=e=>{const{square:t,elevation:r,variant:i,classes:l}=e,s={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${r}`]};return Zn(s,YN,l)},VN=Ot("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}`]]}})(Fn(({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)"}}]}))),kE=A.forwardRef(function(t,r){var y;const i=zn({props:t,name:"MuiPaper"}),l=Hl(),{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},S=jN(E);return pe.jsx(VN,{as:c,ownerState:E,className:st(S.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(${Il("#fff",u0(d))}, ${Il("#fff",u0(d))})`}},...b.style}})});function $N(e){return Un("MuiDrawer",e)}Hn("MuiDrawer",["root","docked","paper","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]},qN=e=>{const{classes:t,anchor:r,variant:i}=e,l={root:["root"],docked:[(i==="permanent"||i==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${_t(r)}`,i!=="temporary"&&`paperAnchorDocked${_t(r)}`]};return Zn(l,$N,t)},GN=Ot(UN,{name:"MuiDrawer",slot:"Root",overridesResolver:DE})(Fn(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),LE=Ot("div",{shouldForwardProp:_E,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:DE})({flex:"0 0 auto"}),XN=Ot(kE,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${_t(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${_t(r.anchor)}`]]}})(Fn(({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}`}}]}))),IE={left:"right",right:"left",top:"down",bottom:"up"};function QN(e){return["left","right"].includes(e)}function KN({direction:e},t){return e==="rtl"&&QN(t)?IE[t]:t}const WN=A.forwardRef(function(t,r){const i=zn({props:t,name:"MuiDrawer"}),l=Hl(),s=Hd(),c={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{anchor:d="left",BackdropProps:p,children:m,className:b,elevation:E=16,hideBackdrop:S=!1,ModalProps:{BackdropProps:y,...N}={},onClose:_,open:L=!1,PaperProps:v={},SlideProps:H,TransitionComponent:D=zN,transitionDuration:P=c,variant:I="temporary",...M}=i,j=A.useRef(!1);A.useEffect(()=>{j.current=!0},[]);const ie=KN({direction:s?"rtl":"ltr"},d),x={...i,anchor:d,elevation:E,open:L,variant:I,...M},Y=qN(x),K=pe.jsx(XN,{elevation:I==="temporary"?E:0,square:!0,...v,className:st(Y.paper,v.className),ownerState:x,children:m});if(I==="permanent")return pe.jsx(LE,{className:st(Y.root,Y.docked,b),ownerState:x,ref:r,...M,children:K});const W=pe.jsx(D,{in:L,direction:IE[ie],timeout:P,appear:j.current,...H,children:K});return I==="persistent"?pe.jsx(LE,{className:st(Y.root,Y.docked,b),ownerState:x,ref:r,...M,children:W}):pe.jsx(GN,{BackdropProps:{...p,...y,transitionDuration:P},className:st(Y.root,Y.modal,b),open:L,ownerState:x,onClose:_,hideBackdrop:S,ref:r,...M,...N,children:W})});class ic{constructor(){rs(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 ic}static use(){const t=Bb(ic.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=JN(),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 ZN(){return ic.use()}function JN(){let e,t;const r=new Promise((i,l)=>{e=i,t=l});return r.resolve=e,r.reject=t,r}function e9(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),S=st(t,r.ripple,r.rippleVisible,i&&r.ripplePulsate),y={width:c,height:c,top:-(c/2)+s,left:-(c/2)+l},N=st(r.child,b&&r.childLeaving,i&&r.childPulsate);return!d&&!b&&E(!0),A.useEffect(()=>{if(!d&&p!=null){const _=setTimeout(p,m);return()=>{clearTimeout(_)}}},[p,d,m]),pe.jsx("span",{className:S,style:y,children:pe.jsx("span",{className:N})})}const pr=Hn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),d0=550,t9=80,n9=wf`
|
|
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`
|
|
119
119
|
0% {
|
|
120
120
|
transform: scale(0);
|
|
121
121
|
opacity: 0.1;
|
|
@@ -125,7 +125,7 @@ export default theme;`}function i0(e={},...t){const{breakpoints:r,mixins:i={},sp
|
|
|
125
125
|
transform: scale(1);
|
|
126
126
|
opacity: 0.3;
|
|
127
127
|
}
|
|
128
|
-
`,
|
|
128
|
+
`,e9=Wu`
|
|
129
129
|
0% {
|
|
130
130
|
opacity: 1;
|
|
131
131
|
}
|
|
@@ -133,7 +133,7 @@ export default theme;`}function i0(e={},...t){const{breakpoints:r,mixins:i={},sp
|
|
|
133
133
|
100% {
|
|
134
134
|
opacity: 0;
|
|
135
135
|
}
|
|
136
|
-
`,
|
|
136
|
+
`,t9=Wu`
|
|
137
137
|
0% {
|
|
138
138
|
transform: scale(1);
|
|
139
139
|
}
|
|
@@ -145,23 +145,23 @@ export default theme;`}function i0(e={},...t){const{breakpoints:r,mixins:i={},sp
|
|
|
145
145
|
100% {
|
|
146
146
|
transform: scale(1);
|
|
147
147
|
}
|
|
148
|
-
`,
|
|
148
|
+
`,n9=mt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),r9=mt(WO,{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: ${JO};
|
|
156
|
+
animation-duration: ${r0}ms;
|
|
157
157
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
&.${
|
|
160
|
+
&.${hr.ripplePulsate} {
|
|
161
161
|
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
& .${
|
|
164
|
+
& .${hr.child} {
|
|
165
165
|
opacity: 1;
|
|
166
166
|
display: block;
|
|
167
167
|
width: 100%;
|
|
@@ -170,33 +170,60 @@ export default theme;`}function i0(e={},...t){const{breakpoints:r,mixins:i={},sp
|
|
|
170
170
|
background-color: currentColor;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
& .${
|
|
173
|
+
& .${hr.childLeaving} {
|
|
174
174
|
opacity: 0;
|
|
175
|
-
animation-name: ${
|
|
176
|
-
animation-duration: ${
|
|
175
|
+
animation-name: ${e9};
|
|
176
|
+
animation-duration: ${r0}ms;
|
|
177
177
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
& .${
|
|
180
|
+
& .${hr.childPulsate} {
|
|
181
181
|
position: absolute;
|
|
182
182
|
/* @noflip */
|
|
183
183
|
left: 0px;
|
|
184
184
|
top: 0;
|
|
185
|
-
animation-name: ${
|
|
185
|
+
animation-name: ${t9};
|
|
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
|
-
`,l9=A.forwardRef(function(t,r){const i=zn({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 S=A.useRef(!1),y=L8(),N=A.useRef(null),_=A.useRef(null),L=A.useCallback(P=>{const{pulsate:I,rippleX:M,rippleY:j,rippleSize:ie,cb:V}=P;m(x=>[...x,pe.jsx(u9,{classes:{ripple:st(s.ripple,pr.ripple),rippleVisible:st(s.rippleVisible,pr.rippleVisible),ripplePulsate:st(s.ripplePulsate,pr.ripplePulsate),child:st(s.child,pr.child),childLeaving:st(s.childLeaving,pr.childLeaving),childPulsate:st(s.childPulsate,pr.childPulsate)},timeout:d0,pulsate:I,rippleX:M,rippleY:j,rippleSize:ie},b.current)]),b.current+=1,E.current=V},[s]),v=A.useCallback((P={},I={},M=()=>{})=>{const{pulsate:j=!1,center:ie=l||I.pulsate,fakeElement:V=!1}=I;if((P==null?void 0:P.type)==="mousedown"&&S.current){S.current=!1;return}(P==null?void 0:P.type)==="touchstart"&&(S.current=!0);const x=V?null:_.current,Y=x?x.getBoundingClientRect():{width:0,height:0,left:0,top:0};let K,W,q;if(ie||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)K=Math.round(Y.width/2),W=Math.round(Y.height/2);else{const{clientX:ee,clientY:Q}=P.touches&&P.touches.length>0?P.touches[0]:P;K=Math.round(ee-Y.left),W=Math.round(Q-Y.top)}if(ie)q=Math.sqrt((2*Y.width**2+Y.height**2)/3),q%2===0&&(q+=1);else{const ee=Math.max(Math.abs((x?x.clientWidth:0)-K),K)*2+2,Q=Math.max(Math.abs((x?x.clientHeight:0)-W),W)*2+2;q=Math.sqrt(ee**2+Q**2)}P!=null&&P.touches?N.current===null&&(N.current=()=>{L({pulsate:j,rippleX:K,rippleY:W,rippleSize:q,cb:M})},y.start(t9,()=>{N.current&&(N.current(),N.current=null)})):L({pulsate:j,rippleX:K,rippleY:W,rippleSize:q,cb:M})},[l,L,y]),H=A.useCallback(()=>{v({},{pulsate:!0})},[v]),D=A.useCallback((P,I)=>{if(y.clear(),(P==null?void 0:P.type)==="touchend"&&N.current){N.current(),N.current=null,y.start(0,()=>{D(P,I)});return}N.current=null,m(M=>M.length>0?M.slice(1):M),E.current=I},[y]);return A.useImperativeHandle(r,()=>({pulsate:H,start:v,stop:D}),[H,v,D]),pe.jsx(i9,{className:st(pr.root,s.root,c),ref:_,...d,children:pe.jsx(f0,{component:null,exit:!0,children:p})})});function o9(e){return Un("MuiButtonBase",e)}const s9=Hn("MuiButtonBase",["root","disabled","focusVisible"]),c9=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:i,classes:l}=e,c=Zn({root:["root",t&&"disabled",r&&"focusVisible"]},o9,l);return r&&i&&(c.root+=` ${i}`),c},f9=Ot("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"},[`&.${s9.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),h0=A.forwardRef(function(t,r){const i=zn({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:S=!1,focusVisibleClassName:y,LinkComponent:N="a",onBlur:_,onClick:L,onContextMenu:v,onDragLeave:H,onFocus:D,onFocusVisible:P,onKeyDown:I,onKeyUp:M,onMouseDown:j,onMouseLeave:ie,onMouseUp:V,onTouchEnd:x,onTouchMove:Y,onTouchStart:K,tabIndex:W=0,TouchRippleProps:q,touchRippleRef:ee,type:Q,...se}=i,re=A.useRef(null),ge=ZN(),C=fr(ge.ref,ee),[J,Te]=A.useState(!1);m&&J&&Te(!1),A.useImperativeHandle(l,()=>({focusVisible:()=>{Te(!0),re.current.focus()}}),[]);const O=ge.shouldMount&&!b&&!m;A.useEffect(()=>{J&&S&&!b&&ge.pulsate()},[b,S,J,ge]);function ue(we,Xe,$t=E){return ra(te=>(Xe&&Xe(te),$t||ge[we](te),!0))}const Re=ue("start",j),Se=ue("stop",v),tt=ue("stop",H),Me=ue("stop",V),$e=ue("stop",we=>{J&&we.preventDefault(),ie&&ie(we)}),xe=ue("start",K),Ge=ue("stop",x),ve=ue("stop",Y),Oe=ue("stop",we=>{Pb(we.target)||Te(!1),_&&_(we)},!1),Ce=ra(we=>{re.current||(re.current=we.currentTarget),Pb(we.target)&&(Te(!0),P&&P(we)),D&&D(we)}),Be=()=>{const we=re.current;return p&&p!=="button"&&!(we.tagName==="A"&&we.href)},it=ra(we=>{S&&!we.repeat&&J&&we.key===" "&&ge.stop(we,()=>{ge.start(we)}),we.target===we.currentTarget&&Be()&&we.key===" "&&we.preventDefault(),I&&I(we),we.target===we.currentTarget&&Be()&&we.key==="Enter"&&!m&&(we.preventDefault(),L&&L(we))}),je=ra(we=>{S&&we.key===" "&&J&&!we.defaultPrevented&&ge.stop(we,()=>{ge.pulsate(we)}),M&&M(we),L&&we.target===we.currentTarget&&Be()&&we.key===" "&&!we.defaultPrevented&&L(we)});let Ue=p;Ue==="button"&&(se.href||se.to)&&(Ue=N);const ct={};Ue==="button"?(ct.type=Q===void 0?"button":Q,ct.disabled=m):(!se.href&&!se.to&&(ct.role="button"),m&&(ct["aria-disabled"]=m));const St=fr(r,re),rn={...i,centerRipple:s,component:p,disabled:m,disableRipple:b,disableTouchRipple:E,focusRipple:S,tabIndex:W,focusVisible:J},_n=c9(rn);return pe.jsxs(f9,{as:Ue,className:st(_n.root,d),ownerState:rn,onBlur:Oe,onClick:L,onContextMenu:Se,onFocus:Ce,onKeyDown:it,onKeyUp:je,onMouseDown:Re,onMouseLeave:$e,onMouseUp:Me,onDragLeave:tt,onTouchEnd:Ge,onTouchMove:ve,onTouchStart:xe,ref:St,tabIndex:m?-1:W,type:Q,...ct,...se,children:[c,O?pe.jsx(l9,{ref:C,center:s,...q}):null]})});function d9(e){return Un("MuiTab",e)}const mr=Hn("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),h9=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${_t(r)}`,i&&"fullWidth",l&&"wrapped",d&&"selected",p&&"disabled"],icon:["iconWrapper","icon"]};return Zn(m,d9,t)},p9=Ot(h0,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${_t(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${mr.iconWrapper}`]:t.iconWrapper},{[`& .${mr.icon}`]:t.icon}]}})(Fn(({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:{[`& > .${mr.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="bottom",style:{[`& > .${mr.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="start",style:{[`& > .${mr.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="end",style:{[`& > .${mr.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${mr.selected}`]:{opacity:1},[`&.${mr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${mr.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${mr.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${mr.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${mr.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)}}]}))),m9=A.forwardRef(function(t,r){const i=zn({props:t,name:"MuiTab"}),{className:l,disabled:s=!1,disableFocusRipple:c=!1,fullWidth:d,icon:p,iconPosition:m="top",indicator:b,label:E,onChange:S,onClick:y,onFocus:N,selected:_,selectionFollowsFocus:L,textColor:v="inherit",value:H,wrapped:D=!1,...P}=i,I={...i,disabled:s,disableFocusRipple:c,selected:_,icon:!!p,iconPosition:m,label:!!E,fullWidth:d,textColor:v,wrapped:D},M=h9(I),j=p&&E&&A.isValidElement(p)?A.cloneElement(p,{className:st(M.icon,p.props.className)}):p,ie=x=>{!_&&S&&S(x,H),y&&y(x)},V=x=>{L&&!_&&S&&S(x,H),N&&N(x)};return pe.jsxs(p9,{focusRipple:!c,className:st(M.root,l),ref:r,role:"tab","aria-selected":_,disabled:s,onClick:ie,onFocus:V,ownerState:I,tabIndex:_?0:-1,...P,children:[m==="top"||m==="start"?pe.jsxs(A.Fragment,{children:[j,E]}):pe.jsxs(A.Fragment,{children:[E,j]}),b]})});function g9(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function b9(e,t,r,i={},l=()=>{}){const{ease:s=g9,duration:c=300}=i;let d=null;const p=t[e];let m=!1;const b=()=>{m=!0},E=S=>{if(m){l(new Error("Animation cancelled"));return}d===null&&(d=S);const y=Math.min(1,(S-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 E9={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function y9(e){const{onChange:t,...r}=e,i=A.useRef(),l=A.useRef(null),s=()=>{i.current=l.current.offsetHeight-l.current.clientHeight};return fi(()=>{const c=Ms(()=>{const p=i.current;s(),p!==i.current&&t(i.current)}),d=jr(l.current);return d.addEventListener("resize",c),()=>{c.clear(),d.removeEventListener("resize",c)}},[t]),A.useEffect(()=>{s(),t(i.current)},[t]),pe.jsx("div",{style:E9,ref:l,...r})}const T9=gi(pe.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),S9=gi(pe.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function C9(e){return Un("MuiTabScrollButton",e)}const A9=Hn("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),x9=e=>{const{classes:t,orientation:r,disabled:i}=e;return Zn({root:["root",r,i&&"disabled"]},C9,t)},_9=Ot(h0,{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,[`&.${A9.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),v9=A.forwardRef(function(t,r){const i=zn({props:t,name:"MuiTabScrollButton"}),{className:l,slots:s={},slotProps:c={},direction:d,orientation:p,disabled:m,...b}=i,E=Hd(),S={isRtl:E,...i},y=x9(S),N=s.StartScrollButtonIcon??T9,_=s.EndScrollButtonIcon??S9,L=Ps({elementType:N,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:S}),v=Ps({elementType:_,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:S});return pe.jsx(_9,{component:"div",className:st(y.root,l),ref:r,role:null,ownerState:S,tabIndex:null,...b,style:{...b.style,...p==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${E?-90:90}deg)`}},children:d==="left"?pe.jsx(N,{...L}):pe.jsx(_,{...v})})});function R9(e){return Un("MuiTabs",e)}const p0=Hn("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),wE=(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,uc=(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}}},O9=e=>{const{vertical:t,fixed:r,hideScrollbar:i,scrollableX:l,scrollableY:s,centered:c,scrollButtonsHideMobile:d,classes:p}=e;return Zn({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",i&&"hideScrollbar",l&&"scrollableX",s&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",c&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",d&&"scrollButtonsHideMobile"],scrollableX:[l&&"scrollableX"],hideScrollbar:[i&&"hideScrollbar"]},R9,p)},N9=Ot("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${p0.scrollButtons}`]:t.scrollButtons},{[`& .${p0.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(Fn(({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:{[`& .${p0.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),k9=Ot("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"}}]}),D9=Ot("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[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"}}]}),L9=Ot("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(Fn(({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=Ot(y9)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),BE={},w9=A.forwardRef(function(t,r){const i=zn({props:t,name:"MuiTabs"}),l=Hl(),s=Hd(),{"aria-label":c,"aria-labelledby":d,action:p,centered:m=!1,children:b,className:E,component:S="div",allowScrollButtonsMobile:y=!1,indicatorColor:N="primary",onChange:_,orientation:L="horizontal",ScrollButtonComponent:v=v9,scrollButtons:H="auto",selectionFollowsFocus:D,slots:P={},slotProps:I={},TabIndicatorProps:M={},TabScrollButtonProps:j={},textColor:ie="primary",value:V,variant:x="standard",visibleScrollbar:Y=!1,...K}=i,W=x==="scrollable",q=L==="vertical",ee=q?"scrollTop":"scrollLeft",Q=q?"top":"left",se=q?"bottom":"right",re=q?"clientHeight":"clientWidth",ge=q?"height":"width",C={...i,component:S,allowScrollButtonsMobile:y,indicatorColor:N,orientation:L,vertical:q,scrollButtons:H,textColor:ie,variant:x,visibleScrollbar:Y,fixed:!W,hideScrollbar:W&&!Y,scrollableX:W&&!q,scrollableY:W&&q,centered:m&&!W,scrollButtonsHideMobile:!y},J=O9(C),Te=Ps({elementType:P.StartScrollButtonIcon,externalSlotProps:I.startScrollButtonIcon,ownerState:C}),O=Ps({elementType:P.EndScrollButtonIcon,externalSlotProps:I.endScrollButtonIcon,ownerState:C}),[ue,Re]=A.useState(!1),[Se,tt]=A.useState(BE),[Me,$e]=A.useState(!1),[xe,Ge]=A.useState(!1),[ve,Oe]=A.useState(!1),[Ce,Be]=A.useState({overflow:"hidden",scrollbarWidth:0}),it=new Map,je=A.useRef(null),Ue=A.useRef(null),ct=()=>{const ke=je.current;let _e;if(ke){const Ke=ke.getBoundingClientRect();_e={clientWidth:ke.clientWidth,scrollLeft:ke.scrollLeft,scrollTop:ke.scrollTop,scrollWidth:ke.scrollWidth,top:Ke.top,bottom:Ke.bottom,left:Ke.left,right:Ke.right}}let ze;if(ke&&V!==!1){const Ke=Ue.current.children;if(Ke.length>0){const Ht=Ke[it.get(V)];ze=Ht?Ht.getBoundingClientRect():null}}return{tabsMeta:_e,tabMeta:ze}},St=ra(()=>{const{tabsMeta:ke,tabMeta:_e}=ct();let ze=0,Ke;q?(Ke="top",_e&&ke&&(ze=_e.top-ke.top+ke.scrollTop)):(Ke=s?"right":"left",_e&&ke&&(ze=(s?-1:1)*(_e[Ke]-ke[Ke]+ke.scrollLeft)));const Ht={[Ke]:ze,[ge]:_e?_e[ge]:0};if(typeof Se[Ke]!="number"||typeof Se[ge]!="number")tt(Ht);else{const gr=Math.abs(Se[Ke]-Ht[Ke]),br=Math.abs(Se[ge]-Ht[ge]);(gr>=1||br>=1)&&tt(Ht)}}),rn=(ke,{animation:_e=!0}={})=>{_e?b9(ee,je.current,ke,{duration:l.transitions.duration.standard}):je.current[ee]=ke},_n=ke=>{let _e=je.current[ee];q?_e+=ke:_e+=ke*(s?-1:1),rn(_e)},we=()=>{const ke=je.current[re];let _e=0;const ze=Array.from(Ue.current.children);for(let Ke=0;Ke<ze.length;Ke+=1){const Ht=ze[Ke];if(_e+Ht[re]>ke){Ke===0&&(_e=ke);break}_e+=Ht[re]}return _e},Xe=()=>{_n(-1*we())},$t=()=>{_n(we())},te=A.useCallback(ke=>{Be({overflow:null,scrollbarWidth:ke})},[]),fe=()=>{const ke={};ke.scrollbarSizeListener=W?pe.jsx(I9,{onChange:te,className:st(J.scrollableX,J.hideScrollbar)}):null;const ze=W&&(H==="auto"&&(Me||xe)||H===!0);return ke.scrollButtonStart=ze?pe.jsx(v,{slots:{StartScrollButtonIcon:P.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Te},orientation:L,direction:s?"right":"left",onClick:Xe,disabled:!Me,...j,className:st(J.scrollButtons,j.className)}):null,ke.scrollButtonEnd=ze?pe.jsx(v,{slots:{EndScrollButtonIcon:P.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:O},orientation:L,direction:s?"left":"right",onClick:$t,disabled:!xe,...j,className:st(J.scrollButtons,j.className)}):null,ke},Ae=ra(ke=>{const{tabsMeta:_e,tabMeta:ze}=ct();if(!(!ze||!_e)){if(ze[Q]<_e[Q]){const Ke=_e[ee]+(ze[Q]-_e[Q]);rn(Ke,{animation:ke})}else if(ze[se]>_e[se]){const Ke=_e[ee]+(ze[se]-_e[se]);rn(Ke,{animation:ke})}}}),He=ra(()=>{W&&H!==!1&&Oe(!ve)});A.useEffect(()=>{const ke=Ms(()=>{je.current&&St()});let _e;const ze=gr=>{gr.forEach(br=>{br.removedNodes.forEach(Xr=>{_e==null||_e.unobserve(Xr)}),br.addedNodes.forEach(Xr=>{_e==null||_e.observe(Xr)})}),ke(),He()},Ke=jr(je.current);Ke.addEventListener("resize",ke);let Ht;return typeof ResizeObserver<"u"&&(_e=new ResizeObserver(ke),Array.from(Ue.current.children).forEach(gr=>{_e.observe(gr)})),typeof MutationObserver<"u"&&(Ht=new MutationObserver(ze),Ht.observe(Ue.current,{childList:!0})),()=>{ke.clear(),Ke.removeEventListener("resize",ke),Ht==null||Ht.disconnect(),_e==null||_e.disconnect()}},[St,He]),A.useEffect(()=>{const ke=Array.from(Ue.current.children),_e=ke.length;if(typeof IntersectionObserver<"u"&&_e>0&&W&&H!==!1){const ze=ke[0],Ke=ke[_e-1],Ht={root:je.current,threshold:.99},gr=Ma=>{$e(!Ma[0].isIntersecting)},br=new IntersectionObserver(gr,Ht);br.observe(ze);const Xr=Ma=>{Ge(!Ma[0].isIntersecting)},Qr=new IntersectionObserver(Xr,Ht);return Qr.observe(Ke),()=>{br.disconnect(),Qr.disconnect()}}},[W,H,ve,b==null?void 0:b.length]),A.useEffect(()=>{Re(!0)},[]),A.useEffect(()=>{St()}),A.useEffect(()=>{Ae(BE!==Se)},[Ae,Se]),A.useImperativeHandle(p,()=>({updateIndicator:St,updateScrollButtons:He}),[St,He]);const nt=pe.jsx(L9,{...M,className:st(J.indicator,M.className),ownerState:C,style:{...Se,...M.style}});let Qe=0;const vn=A.Children.map(b,ke=>{if(!A.isValidElement(ke))return null;const _e=ke.props.value===void 0?Qe:ke.props.value;it.set(_e,Qe);const ze=_e===V;return Qe+=1,A.cloneElement(ke,{fullWidth:x==="fullWidth",indicator:ze&&!ue&&nt,selected:ze,selectionFollowsFocus:D,onChange:_,textColor:ie,value:_e,...Qe===1&&V===!1&&!ke.props.tabIndex?{tabIndex:0}:{}})}),an=ke=>{const _e=Ue.current,ze=Da(_e).activeElement;if(ze.getAttribute("role")!=="tab")return;let Ht=L==="horizontal"?"ArrowLeft":"ArrowUp",gr=L==="horizontal"?"ArrowRight":"ArrowDown";switch(L==="horizontal"&&s&&(Ht="ArrowRight",gr="ArrowLeft"),ke.key){case Ht:ke.preventDefault(),uc(_e,ze,ME);break;case gr:ke.preventDefault(),uc(_e,ze,wE);break;case"Home":ke.preventDefault(),uc(_e,null,wE);break;case"End":ke.preventDefault(),uc(_e,null,ME);break}},Ft=fe();return pe.jsxs(N9,{className:st(J.root,E),ownerState:C,ref:r,as:S,...K,children:[Ft.scrollButtonStart,Ft.scrollbarSizeListener,pe.jsxs(k9,{className:J.scroller,ownerState:C,style:{overflow:Ce.overflow,[q?`margin${s?"Left":"Right"}`:"marginBottom"]:Y?void 0:-Ce.scrollbarWidth},ref:je,children:[pe.jsx(D9,{"aria-label":c,"aria-labelledby":d,"aria-orientation":L==="vertical"?"vertical":null,className:J.flexContainer,ownerState:C,onKeyDown:an,ref:Ue,role:"tablist",children:vn}),ue&&nt]}),Ft.scrollButtonEnd]})}),PE=A.createContext(null);function M9(){const[e,t]=A.useState(null);return A.useEffect(()=>{t(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function B9(e){const{children:t,value:r}=e,i=M9(),l=A.useMemo(()=>({idPrefix:i,value:r}),[i,r]);return pe.jsx(PE.Provider,{value:l,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 P9=A.forwardRef(function(t,r){const{children:i,...l}=t,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(w9,{...l,ref:r,value:s.value,children:c})});function U9({props:e,name:t}){return fO({props:e,name:t,defaultTheme:Js,themeId:$r})}function zE({theme:e,...t}){const r=$r in e?e[$r]:void 0;return pe.jsx(oE,{...t,themeId:r?$r:void 0,theme:r||e})}const lc={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:H9}=OO({themeId:$r,theme:()=>Zs({cssVariables:!0}),colorSchemeStorageKey:lc.colorSchemeStorageKey,modeStorageKey:lc.modeStorageKey,defaultColorScheme:{light:lc.defaultLightColorScheme,dark:lc.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:yE(e.palette,e.typography)};return t.unstable_sx=function(i){return di({sx:i,theme:this})},t}}),F9=H9;function z9({theme:e,...t}){return typeof e=="function"?pe.jsx(zE,{theme:e,...t}):"colorSchemes"in($r in e?e[$r]:e)?pe.jsx(F9,{theme:e,...t}):pe.jsx(zE,{theme:e,...t})}const nn={text:{roman:400,medium:500,bold:700}},dt=e=>`${e/16}rem`,YE={fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeightLight:nn.text.roman,fontWeightRegular:nn.text.roman,fontWeightMedium:nn.text.medium,fontWeightBold:nn.text.bold,h1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.bold,fontStyle:"normal",fontSize:dt(52),lineHeight:dt(60)},h2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.bold,fontStyle:"normal",fontSize:dt(34),lineHeight:dt(40)},h3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.bold,fontStyle:"normal",fontSize:dt(28),lineHeight:dt(36)},h4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.bold,fontStyle:"normal",fontSize:dt(24),lineHeight:dt(30)},h5:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.medium,fontStyle:"normal",fontSize:dt(18),lineHeight:dt(22)},subtitle1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.medium,fontStyle:"normal",fontSize:dt(16),lineHeight:dt(20)},subtitle2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.medium,fontStyle:"normal",fontSize:dt(14),lineHeight:dt(18)},subtitle3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.medium,fontStyle:"normal",fontSize:dt(12),lineHeight:dt(16)},subtitle4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.medium,fontStyle:"normal",fontSize:dt(10),lineHeight:dt(14)},body1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.roman,fontStyle:"normal",fontSize:dt(16),lineHeight:dt(20)},body2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.roman,fontStyle:"normal",fontSize:dt(14),lineHeight:dt(18)},body3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.roman,fontStyle:"normal",fontSize:dt(12),lineHeight:dt(16)},body4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.roman,fontStyle:"normal",fontSize:dt(10),lineHeight:dt(14)},buttonLarge:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.medium,fontStyle:"normal",fontSize:dt(16),lineHeight:dt(20)},button:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.medium,fontStyle:"normal",fontSize:dt(14),lineHeight:dt(18),textTransform:"none"},buttonSmall:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.medium,fontStyle:"normal",fontSize:dt(12),lineHeight:dt(16)}},Y9={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:a7}=Zs({typography:YE,custom:{}}),j9=Fe.a({color:"inherit",textDecoration:"none"}),V9=A.forwardRef(function({Component:t,...r},i){const l=DC(),s=t??l.custom.LinkAdapter;return A.createElement(j9,{as:s,ref:i,...r})}),$9={variant:!0,size:!0,edge:!0,startIcon:!0,endIcon:!0,responsive:!0,color:!0},jE=e=>!$9[e],m0={variant:"primary",size:"medium",edge:"rounded",responsive:!1},VE={small:1,medium:1,large:2},$E={small:"small",medium:"small",large:"medium"},qE=(e,t,r)=>{const i=t?VE[e]:0;return[{boxSizing:"border-box",borderWidth:VE[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:l,color:s,responsive:c}={...m0,...e},{colors:d}=l.custom,p=r==="secondary"||r==="bordered";return ps([{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"},...qE(t,p,l),c&&{[l.breakpoints.down("sm")]:qE($E[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}}])},XE=Fe("button",{shouldForwardProp:jE})(GE),QE=Fe(V9,{shouldForwardProp:jE})(GE),KE=Fe.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:dt({small:16,medium:20,large:24}[e])}}]),WE=e=>{const{children:t,size:r=m0.size}=e;return A.createElement(A.Fragment,null,e.startIcon?A.createElement(KE,{size:r,side:"start"},e.startIcon):null,t,e.endIcon?A.createElement(KE,{size:r,side:"end"},e.endIcon):null)},ZE=A.forwardRef(({children:e,...t},r)=>A.createElement(XE,{ref:r,type:"button",...t},A.createElement(WE,{...t},e)));ZE.displayName="Button";const JE=A.forwardRef(({children:e,Component:t,...r},i)=>A.createElement(QE,{Component:t,ref:i,...r},A.createElement(WE,{...r},e)));JE.displayName="ButtonLink";const q9={variant:"scrollable",allowScrollButtonsMobile:!0,scrollButtons:"auto"},G9=Fe(({styleVariant:e,...t})=>A.createElement(P9,{...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"}}})),e2=({theme:e})=>ps({minWidth:"auto",":focus-visible":{outlineOffset:"-1px"},'&[aria-selected="true"]':{backgroundColor:e.custom.colors.white,borderColor:e.custom.colors.darkGray2}}),X9=Fe(ZE)(e2),Q9=Fe(JE)(e2),t2={variant:"tertiary",size:"small"},n2=A.forwardRef((e,t)=>{const{className:r,...i}=e;return A.createElement(X9,{...t2,...i,ref:t})});n2.displayName="TabButtonInner";const K9=A.forwardRef((e,t)=>{const{className:r,...i}=e;return A.createElement(Q9,{...t2,...i,ref:t})});K9.displayName="TabLinkInner";const g0=e=>A.createElement(m9,{...e,component:n2});function W9(e){return typeof e.main=="string"}function Z9(e,t=[]){if(!W9(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function pu(e=[]){return([,t])=>t&&Z9(t,e)}function J9(e){return Un("MuiTypography",e)}Hn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ek={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},tk=hN(),nk=e=>{const{align:t,gutterBottom:r,noWrap:i,paragraph:l,variant:s,classes:c}=e,d={root:["root",s,e.align!=="inherit"&&`align${_t(t)}`,r&&"gutterBottom",i&&"noWrap",l&&"paragraph"]};return Zn(d,J9,c)},rk=Ot("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${_t(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(Fn(({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(pu()).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${_t(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}}]}})),r2={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},bi=A.forwardRef(function(t,r){const{color:i,...l}=zn({props:t,name:"MuiTypography"}),s=!ek[i],c=tk({...l,...s&&{color:i}}),{align:d="inherit",className:p,component:m,gutterBottom:b=!1,noWrap:E=!1,paragraph:S=!1,variant:y="body1",variantMapping:N=r2,..._}=c,L={...c,align:d,color:i,className:p,component:m,gutterBottom:b,noWrap:E,paragraph:S,variant:y,variantMapping:N},v=m||(S?"p":N[y]||r2[y])||"span",H=nk(L);return pe.jsx(rk,{as:v,ref:r,className:st(H.root,p),..._,ownerState:L,style:{...d!=="inherit"&&{"--Typography-textAlign":d},..._.style}})});function ak(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 a2=e=>e,ik=(()=>{let e=a2;return{configure(t){e=t},generate(t){return e(t)},reset(){e=a2}}})(),uk={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 i2(e,t,r="Mui"){const i=uk[t];return i?`${r}-${i}`:`${ik.generate(e)}-${t}`}function lk(e,t,r="Mui"){const i={};return t.forEach(l=>{i[l]=i2(e,l,r)}),i}function ok(e){return i2("MuiTabPanel",e)}lk("MuiTabPanel",["root","hidden"]);const sk=e=>{const{classes:t,hidden:r}=e;return ak({root:["root",r&&"hidden"]},ok,t)},ck=Ot("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(3)})),fk=A.forwardRef(function(t,r){const i=U9({props:t,name:"MuiTabPanel"}),{children:l,className:s,value:c,keepMounted:d=!1,...p}=i,m={...i},b=sk(m),E=UE();if(E===null)throw new TypeError("No TabContext provided");const S=HE(E,c),y=FE(E,c);return pe.jsx(ck,{"aria-labelledby":y,className:st(b.root,s),hidden:c!==E.value,id:S,ref:r,role:"tabpanel",ownerState:m,...p,children:(d||c===E.value)&&l})});var b0={exports:{}};/*!
|
|
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:{}};/*!
|
|
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 I=D.boxSizing,M=oc(D.paddingBottom)+oc(D.paddingTop),j=oc(D.borderBottomWidth)+oc(D.borderTopWidth),ie=P.scrollHeight;P.value="x";const V=P.scrollHeight;let x=ie;s&&(x=Math.max(Number(s)*V,x)),l&&(x=Math.min(Number(l)*V,x)),x=Math.max(x,V);const Y=x+(I==="border-box"?M+j:0),K=Math.abs(x-ie)<=1;return{outerHeightStyle:Y,overflowing:K}},[l,s,t.placeholder]),_=A.useCallback(()=>{const v=N();if(mk(v))return;const H=v.outerHeightStyle,D=b.current;S.current!==H&&(S.current=H,D.style.height=`${H}px`),D.style.overflow=v.overflowing?"hidden":""},[N]);fi(()=>{const v=()=>{_()};let H;const D=Ms(v),P=b.current,I=jr(P);I.addEventListener("resize",D);let M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver(v),M.observe(P)),()=>{D.clear(),cancelAnimationFrame(H),I.removeEventListener("resize",D),M&&M.disconnect()}},[N,_]),fi(()=>{_()});const L=v=>{m||_(),i&&i(v)};return pe.jsxs(A.Fragment,{children:[pe.jsx("textarea",{value:d,onChange:L,ref:E,rows:s,style:c,...p}),pe.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...pk.shadow,...c,paddingTop:0,paddingBottom:0}})]})});function l2(e){return typeof e=="string"}function bk({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 o2=A.createContext(void 0);function Ek(){return A.useContext(o2)}function s2(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function yk(e,t=!1){return e&&(s2(e.value)&&e.value!==""||t&&s2(e.defaultValue)&&e.defaultValue!=="")}function Tk(e){return Un("MuiInputBase",e)}const E0=Hn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var c2;const Sk=(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${_t(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Ck=(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]},Ak=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:S,startAdornment:y,type:N}=e,_={root:["root",`color${_t(r)}`,i&&"disabled",l&&"error",p&&"fullWidth",c&&"focused",d&&"formControl",S&&S!=="medium"&&`size${_t(S)}`,b&&"multiline",y&&"adornedStart",s&&"adornedEnd",m&&"hiddenLabel",E&&"readOnly"],input:["input",i&&"disabled",N==="search"&&"inputTypeSearch",b&&"inputMultiline",S==="small"&&"inputSizeSmall",m&&"inputHiddenLabel",y&&"inputAdornedStart",s&&"inputAdornedEnd",E&&"readOnly"]};return Zn(_,Tk,t)},xk=Ot("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Sk})(Fn(({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",[`&.${E0.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%"}}]}))),_k=Ot("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ck})(Fn(({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] + .${E0.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},[`&.${E0.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"}}]}})),f2=dN({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),vk=A.forwardRef(function(t,r){const i=zn({props:t,name:"MuiInputBase"}),{"aria-describedby":l,autoComplete:s,autoFocus:c,className:d,color:p,components:m={},componentsProps:b={},defaultValue:E,disabled:S,disableInjectingGlobalStyles:y,endAdornment:N,error:_,fullWidth:L=!1,id:v,inputComponent:H="input",inputProps:D={},inputRef:P,margin:I,maxRows:M,minRows:j,multiline:ie=!1,name:V,onBlur:x,onChange:Y,onClick:K,onFocus:W,onKeyDown:q,onKeyUp:ee,placeholder:Q,readOnly:se,renderSuffix:re,rows:ge,size:C,slotProps:J={},slots:Te={},startAdornment:O,type:ue="text",value:Re,...Se}=i,tt=D.value!=null?D.value:Re,{current:Me}=A.useRef(tt!=null),$e=A.useRef(),xe=A.useCallback(Qe=>{},[]),Ge=fr($e,P,D.ref,xe),[ve,Oe]=A.useState(!1),Ce=Ek(),Be=bk({props:i,muiFormControl:Ce,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Be.focused=Ce?Ce.focused:ve,A.useEffect(()=>{!Ce&&S&&ve&&(Oe(!1),x&&x())},[Ce,S,ve,x]);const it=Ce&&Ce.onFilled,je=Ce&&Ce.onEmpty,Ue=A.useCallback(Qe=>{yk(Qe)?it&&it():je&&je()},[it,je]);fi(()=>{Me&&Ue({value:tt})},[tt,Ue,Me]);const ct=Qe=>{W&&W(Qe),D.onFocus&&D.onFocus(Qe),Ce&&Ce.onFocus?Ce.onFocus(Qe):Oe(!0)},St=Qe=>{x&&x(Qe),D.onBlur&&D.onBlur(Qe),Ce&&Ce.onBlur?Ce.onBlur(Qe):Oe(!1)},rn=(Qe,...vn)=>{if(!Me){const an=Qe.target||$e.current;if(an==null)throw new Error(ka(1));Ue({value:an.value})}D.onChange&&D.onChange(Qe,...vn),Y&&Y(Qe,...vn)};A.useEffect(()=>{Ue($e.current)},[]);const _n=Qe=>{$e.current&&Qe.currentTarget===Qe.target&&$e.current.focus(),K&&K(Qe)};let we=H,Xe=D;ie&&we==="input"&&(ge?Xe={type:void 0,minRows:ge,maxRows:ge,...Xe}:Xe={type:void 0,maxRows:M,minRows:j,...Xe},we=gk);const $t=Qe=>{Ue(Qe.animationName==="mui-auto-fill-cancel"?$e.current:{value:"x"})};A.useEffect(()=>{Ce&&Ce.setAdornedStart(!!O)},[Ce,O]);const te={...i,color:Be.color||"primary",disabled:Be.disabled,endAdornment:N,error:Be.error,focused:Be.focused,formControl:Ce,fullWidth:L,hiddenLabel:Be.hiddenLabel,multiline:ie,size:Be.size,startAdornment:O,type:ue},fe=Ak(te),Ae=Te.root||m.Root||xk,He=J.root||b.root||{},nt=Te.input||m.Input||_k;return Xe={...Xe,...J.input??b.input},pe.jsxs(A.Fragment,{children:[!y&&typeof f2=="function"&&(c2||(c2=pe.jsx(f2,{}))),pe.jsxs(Ae,{...He,ref:r,onClick:_n,...Se,...!l2(Ae)&&{ownerState:{...te,...He.ownerState}},className:st(fe.root,He.className,d,se&&"MuiInputBase-readOnly"),children:[O,pe.jsx(o2.Provider,{value:null,children:pe.jsx(nt,{"aria-invalid":Be.error,"aria-describedby":l,autoComplete:s,autoFocus:c,defaultValue:E,disabled:Be.disabled,id:v,onAnimationStart:$t,name:V,placeholder:Q,readOnly:se,required:Be.required,rows:ge,value:tt,onKeyDown:q,onKeyUp:ee,type:ue,...Xe,...!l2(nt)&&{as:we,ownerState:{...te,...Xe.ownerState}},ref:Ge,className:st(fe.input,Xe.className,se&&"MuiInputBase-readOnly"),onBlur:St,onChange:rn,onFocus:ct})}),N,re?re({...Be,startAdornment:O}):null]})]})}),Rk={size:"medium"},Ok={small:"small",medium:"small",large:"medium",chat:"chat",hero:"large"},d2=({size:e,theme:t,multiline:r})=>ps([(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"}}]),Nk=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"}}}),kk=Object.keys({responsive:!0}),h2=Fe(vk,{shouldForwardProp:e=>!kk.includes(e)})(({theme:e,size:t=Rk.size,multiline:r,responsive:i})=>[Nk(e),d2({size:t,theme:e,multiline:r}),i&&{[e.breakpoints.down("sm")]:d2({size:Ok[t],theme:e,multiline:r})}]),Dk=Fe.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%"})),Lk=e=>e.preventDefault(),y0=({className:e,...t})=>A.createElement(Dk,{onMouseDown:Lk,className:zl("Mit-AdornmentButton",e),...t}),Ik=({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"})))),wk=Fe.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})),Mk=Fe.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"}})),Bk=Fe(Ik)({width:"40px",height:"40px",display:"block"}),Pk=Fe(bi)({textAlign:"center",padding:"0 40px"}),Uk=Fe(h2)({borderRadius:"8px",margin:"8px 0 24px 0",flexShrink:0,"button:focus-visible":{outlineOffset:"-1px",borderRadius:"7px"}}),Hk=Fe(Ob)(({theme:e})=>({fill:e.custom.colors.red,"button:disabled &":{fill:e.custom.colors.silverGray}})),Fk=Fe.div(({theme:e})=>({display:"flex",gap:"16px",width:"100%",[e.breakpoints.down("sm")]:{flexDirection:"column"}})),zk=Fe.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}})),Yk=({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(wk,{className:r,"data-testid":"ai-chat-entry-screen"},A.createElement(Mk,null,A.createElement(Ud,null),A.createElement(Bk,null)),e?A.createElement(Pk,{variant:"h4"},e):null,A.createElement(Uk,{fullWidth:!0,size:"chat",onChange:c,onKeyDown:d,inputProps:{"aria-label":"Ask a question"},endAdornment:A.createElement(y0,{"aria-label":"Send",onClick:()=>i(l)},A.createElement(Hk,null)),responsive:!0}),A.createElement(Fk,null,t==null?void 0:t.map(({content:p},m)=>A.createElement(zk,{key:m,onClick:()=>i(p),tabIndex:0,onKeyDown:b=>{b.key==="Enter"&&i(p)}},A.createElement(bi,{variant:"body2"},p)))))},jk=(...e)=>t=>{e.forEach(r=>{typeof r=="function"?r(t):r&&(r.current=t)})},p2=e=>e.scrollHeight-e.clientHeight-e.scrollTop,Vk=e=>{e.scrollTop=e.scrollHeight},$k=Fe.div({overflow:"auto"}),qk=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=p2(s.current)<r,d(t))},[t,r]),A.useLayoutEffect(()=>{if(!s.current)return;const m=p2(s.current)<r;p.current&&!m&&(Vk(s.current),p.current=null)},[c,r]),A.createElement($k,{className:i,ref:jk(s,l)},c)}),m2=Fe.span({clipPath:"inset(100%)",clip:"rect(1px, 1px, 1px, 1px)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),Gk={loadingMessages:[{delay:1500,text:"Loading"},{delay:4e3,text:"Still loading"}]},Xk=({message:e,isLoading:t,loadingMessages:r=Gk.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(m2,{"aria-atomic":"true","aria-live":"polite"},t?s:e)};function Qk(e){return Un("MuiAlert",e)}const g2=Hn("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 Kk(e){return Un("MuiIconButton",e)}const Wk=Hn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Zk=e=>{const{classes:t,disabled:r,color:i,edge:l,size:s}=e,c={root:["root",r&&"disabled",i!=="default"&&`color${_t(i)}`,l&&`edge${_t(l)}`,`size${_t(s)}`]};return Zn(c,Kk,t)},Jk=Ot(h0,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${_t(r.color)}`],r.edge&&t[`edge${_t(r.edge)}`],t[`size${_t(r.size)}`]]}})(Fn(({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})`:Il(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}}]})),Fn(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(pu()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(pu()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Il((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)}}],[`&.${Wk.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),eD=A.forwardRef(function(t,r){const i=zn({props:t,name:"MuiIconButton"}),{edge:l=!1,children:s,className:c,color:d="default",disabled:p=!1,disableFocusRipple:m=!1,size:b="medium",...E}=i,S={...i,edge:l,color:d,disabled:p,disableFocusRipple:m,size:b},y=Zk(S);return pe.jsx(Jk,{className:st(y.root,c),centerRipple:!0,focusRipple:!m,disabled:p,ref:r,...E,ownerState:S,children:s})}),tD=gi(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"),nD=gi(pe.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),rD=gi(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"),aD=gi(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"),iD=gi(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"),uD=e=>{const{variant:t,color:r,severity:i,classes:l}=e,s={root:["root",`color${_t(r||i)}`,`${t}${_t(r||i)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Zn(s,Qk,l)},lD=Ot(kE,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${_t(r.color||r.severity)}`]]}})(Fn(({theme:e})=>{const t=e.palette.mode==="light"?wl:Ml,r=e.palette.mode==="light"?Ml:wl;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(pu(["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),[`& .${g2.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter(pu(["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}`,[`& .${g2.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter(pu(["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)}}}))]}})),oD=Ot("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),sD=Ot("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),b2=Ot("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),E2={success:pe.jsx(tD,{fontSize:"inherit"}),warning:pe.jsx(nD,{fontSize:"inherit"}),error:pe.jsx(rD,{fontSize:"inherit"}),info:pe.jsx(aD,{fontSize:"inherit"})},cD=A.forwardRef(function(t,r){const i=zn({props:t,name:"MuiAlert"}),{action:l,children:s,className:c,closeText:d="Close",color:p,components:m={},componentsProps:b={},icon:E,iconMapping:S=E2,onClose:y,role:N="alert",severity:_="success",slotProps:L={},slots:v={},variant:H="standard",...D}=i,P={...i,color:p,severity:_,variant:H,colorSeverity:p||_},I=uD(P),M={slots:{closeButton:m.CloseButton,closeIcon:m.CloseIcon,...v},slotProps:{...b,...L}},[j,ie]=fu("closeButton",{elementType:eD,externalForwardedProps:M,ownerState:P}),[V,x]=fu("closeIcon",{elementType:iD,externalForwardedProps:M,ownerState:P});return pe.jsxs(lD,{role:N,elevation:0,ownerState:P,className:st(I.root,c),ref:r,...D,children:[E!==!1?pe.jsx(oD,{ownerState:P,className:I.icon,children:E||S[_]||E2[_]}):null,pe.jsx(sD,{ownerState:P,className:I.message,children:s}),l!=null?pe.jsx(b2,{ownerState:P,className:I.action,children:l}):null,l==null&&y?pe.jsx(b2,{ownerState:P,className:I.action,children:pe.jsx(j,{size:"small","aria-label":d,title:d,color:"inherit",onClick:y,...ie,children:pe.jsx(V,{fontSize:"small",...x})})}):null]})}),y2=(e,t)=>({info:e.custom.colors.blue,success:e.custom.colors.green,warning:e.custom.colors.orange,error:e.custom.colors.lightRed})[t],fD=Fe(cD)(({theme:e,severity:t})=>({padding:"11px 16px",borderRadius:4,borderWidth:2,borderStyle:"solid",borderColor:y2(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:y2(e,t)}},button:{padding:0,":hover":{margin:0,background:"none"}}})),dD=Fe.span({display:"none"}),hD=({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(fD,{severity:t,onClose:r?p:void 0,role:"alert","aria-describedby":d,className:l},i,A.createElement(dD,{id:d},t," message")):null},pD=Fe.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}})),mD=Fe.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"}})),gD=({askTimTitle:e,externalScroll:t,className:r})=>e?A.createElement(pD,{externalScroll:t,className:r},A.createElement(mD,null,A.createElement(Ud,null),A.createElement(bi,{variant:"body1"},"Ask",A.createElement("strong",null,"TIM")," ",e))):null;var T2="vercel.ai.error",bD=Symbol.for(T2),S2,ED=class z3 extends Error{constructor({name:t,message:r,cause:i}){super(r),this[S2]=!0,this.name=t,this.cause=i}static isInstance(t){return z3.hasMarker(t,T2)}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}};S2=bD;var mu=ED;function C2(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var A2="AI_InvalidArgumentError",x2=`vercel.ai.error.${A2}`,yD=Symbol.for(x2),_2,TD=class extends mu{constructor({message:e,cause:t,argument:r}){super({name:A2,message:e,cause:t}),this[_2]=!0,this.argument=r}static isInstance(e){return mu.hasMarker(e,x2)}};_2=yD;var v2="AI_JSONParseError",R2=`vercel.ai.error.${v2}`,SD=Symbol.for(R2),O2,N2=class extends mu{constructor({text:e,cause:t}){super({name:v2,message:`JSON parsing failed: Text: ${e}.
|
|
197
|
-
|
|
198
|
-
Error message: ${C2(r)}`,cause:r}),this[L2]=!0,this.value=t}static isInstance(t){return mu.hasMarker(t,D2)}static wrap({value:t,cause:r}){return Yp.isInstance(r)&&r.value===t?r:new Yp({value:t,cause:r})}};L2=CD;var I2=AD;let xD=(e,t=21)=>(r=t)=>{let i="",l=r;for(;l--;)i+=e[Math.random()*e.length|0];return i};var Ei={exports:{}},w2;function _D(){if(w2)return Ei.exports;w2=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",S=m&&m.constructorAction||"error";if(E==="ignore"&&S==="ignore")return b;if(E!=="ignore"&&S!=="ignore"){if(t.test(d)===!1&&r.test(d)===!1)return b}else if(E!=="ignore"&&S==="ignore"){if(t.test(d)===!1)return b}else if(r.test(d)===!1)return b;return l(b,{protoAction:E,constructorAction:S,safe:m&&m.safe})}function l(d,{protoAction:p="error",constructorAction:m="error",safe:b}={}){let E=[d];for(;E.length;){const S=E;E=[];for(const y of S){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 N in y){const _=y[N];_&&typeof _=="object"&&E.push(_)}}}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 Ei.exports=s,Ei.exports.default=s,Ei.exports.parse=s,Ei.exports.safeParse=c,Ei.exports.scan=l,Ei.exports}var vD=_D();const RD=ur(vD);var OD=({prefix:e,size:t=16,alphabet:r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:i="-"}={})=>{const l=xD(r,t);if(e==null)return l;if(r.includes(i))throw new TD({argument:"separator",message:`The separator "${i}" must not be part of the alphabet "${r}".`});return s=>`${e}${i}${l(s)}`},M2=OD(),T0=Symbol.for("vercel.ai.validator");function ND(e){return{[T0]:!0,validate:e}}function kD(e){return typeof e=="object"&&e!==null&&T0 in e&&e[T0]===!0&&"validate"in e}function DD(e){return kD(e)?e:LD(e)}function LD(e){return ND(t=>{const r=e.safeParse(t);return r.success?{success:!0,value:r.data}:{success:!1,error:r.error}})}function ID({value:e,schema:t}){const r=DD(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 B2({text:e,schema:t}){try{const r=RD.parse(e);return t==null?{success:!0,value:r}:ID({value:r,schema:t})}catch(r){return{success:!1,error:N2.isInstance(r)?r:new N2({text:e,cause:r})}}}var Yl={code:"0",name:"text",parse:e=>{if(typeof e!="string")throw new Error('"text" parts expect a string value.');return{type:"text",value:e}}},jl={code:"3",name:"error",parse:e=>{if(typeof e!="string")throw new Error('"error" parts expect a string value.');return{type:"error",value:e}}},Vl={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}}},$l={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}}}},ql={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}}},wD=[Yl,jl,Vl,$l,ql];Yl.code+"",jl.code+"",Vl.code+"",$l.code+"",ql.code+"",Yl.name+"",Yl.code,jl.name+"",jl.code,Vl.name+"",Vl.code,$l.name+"",$l.code,ql.name+"",ql.code,wD.map(e=>e.code);function MD(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 BD(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=B2({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=B2({text:MD(e)}),t.success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}var Gl={code:"0",name:"text",parse:e=>{if(typeof e!="string")throw new Error('"text" parts expect a string value.');return{type:"text",value:e}}},Xl={code:"2",name:"data",parse:e=>{if(!Array.isArray(e))throw new Error('"data" parts expect an array value.');return{type:"data",value:e}}},Ql={code:"3",name:"error",parse:e=>{if(typeof e!="string")throw new Error('"error" parts expect a string value.');return{type:"error",value:e}}},Kl={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}}},Wl={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}}},Zl={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}}},Jl={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}}},eo={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}}},to={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}}},no={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}}},PD=[Gl,Xl,Ql,Kl,Wl,Zl,Jl,eo,to,no],UD={[Gl.code]:Gl,[Xl.code]:Xl,[Ql.code]:Ql,[Kl.code]:Kl,[Wl.code]:Wl,[Zl.code]:Zl,[Jl.code]:Jl,[eo.code]:eo,[to.code]:to,[no.code]:no};Gl.name+"",Gl.code,Xl.name+"",Xl.code,Ql.name+"",Ql.code,Kl.name+"",Kl.code,Wl.name+"",Wl.code,Zl.name+"",Zl.code,Jl.name+"",Jl.code,eo.name+"",eo.code,to.name+"",to.code,no.name+"",no.code;var HD=PD.map(e=>e.code),FD=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(!HD.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 UD[i].parse(s)},zD=10;function YD(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,onDataPart:r,onErrorPart:i,onToolCallStreamingStartPart:l,onToolCallDeltaPart:s,onToolCallPart:c,onToolResultPart:d,onMessageAnnotationsPart:p,onFinishMessagePart:m,onFinishStepPart:b}){const E=e.getReader(),S=new TextDecoder,y=[];let N=0;for(;;){const{value:_}=await E.read();if(_&&(y.push(_),N+=_.length,_[_.length-1]!==zD))continue;if(y.length===0)break;const L=YD(y,N);N=0;const v=S.decode(L,{stream:!0}).split(`
|
|
199
|
-
|
|
195
|
+
*/var GE;function lI(){return GE||(GE=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",c=0;c<arguments.length;c++){var d=arguments[c];d&&(s=l(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=l(c,d));return c}function l(s,c){return c?s?s+" "+c:s+c:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(s0)),s0.exports}var oI=lI();const Bl=lr(oI);function Gs(e){return parseInt(e,10)||0}const sI={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function cI(e){for(const t in e)return!1;return!0}function $E(e){return cI(e)||e.outerHeightStyle===0&&!e.overflowing}const fI=A.forwardRef(function(t,r){const{onChange:i,maxRows:l,minRows:s=1,style:c,value:d,...p}=t,{current:m}=A.useRef(d!=null),b=A.useRef(null),E=xr(r,b),T=A.useRef(null),y=A.useRef(null),R=A.useCallback(()=>{const M=b.current,P=y.current;if(!M||!P)return;const N=Ur(M).getComputedStyle(M);if(N.width==="0px")return{outerHeightStyle:0,overflowing:!1};P.style.width=N.width,P.value=M.value||t.placeholder||"x",P.value.slice(-1)===`
|
|
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`
|
|
197
|
+
0% {
|
|
198
|
+
transform: rotate(0deg);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
100% {
|
|
202
|
+
transform: rotate(360deg);
|
|
203
|
+
}
|
|
204
|
+
`,h0=Wu`
|
|
205
|
+
0% {
|
|
206
|
+
stroke-dasharray: 1px, 200px;
|
|
207
|
+
stroke-dashoffset: 0;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
50% {
|
|
211
|
+
stroke-dasharray: 100px, 200px;
|
|
212
|
+
stroke-dashoffset: -15px;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
100% {
|
|
216
|
+
stroke-dasharray: 1px, 200px;
|
|
217
|
+
stroke-dashoffset: -126px;
|
|
218
|
+
}
|
|
219
|
+
`,BI=typeof d0!="string"?wi`
|
|
220
|
+
animation: ${d0} 1.4s linear infinite;
|
|
221
|
+
`:null,PI=typeof h0!="string"?wi`
|
|
222
|
+
animation: ${h0} 1.4s ease-in-out infinite;
|
|
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: ${s2(t)}`,cause:t}),this[m2]=!0,this.text=e}static isInstance(e){return iu.hasMarker(e,p2)}};m2=mD;var b2="AI_TypeValidationError",E2=`vercel.ai.error.${b2}`,gD=Symbol.for(E2),y2,bD=class Xp extends iu{constructor({value:t,cause:r}){super({name:b2,message:`Type validation failed: Value: ${JSON.stringify(t)}.
|
|
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(j=>j!=="").map(KD);for(const{type:j,value:G}of Y)switch(j){case"text":await(t==null?void 0:t(G));break;case"reasoning":await(r==null?void 0:r(G));break;case"reasoning_signature":await(i==null?void 0:i(G));break;case"redacted_reasoning":await(l==null?void 0:l(G));break;case"file":await(c==null?void 0:c(G));break;case"source":await(s==null?void 0:s(G));break;case"data":await(d==null?void 0:d(G));break;case"error":await(p==null?void 0:p(G));break;case"message_annotations":await(y==null?void 0:y(G));break;case"tool_call_streaming_start":await(m==null?void 0:m(G));break;case"tool_call_delta":await(b==null?void 0:b(G));break;case"tool_call":await(E==null?void 0:E(G));break;case"tool_result":await(T==null?void 0:T(G));break;case"finish_message":await(R==null?void 0:R(G));break;case"finish_step":await(x==null?void 0:x(G));break;case"start_step":await(U==null?void 0:U(G));break;default:{const _=j;throw new Error(`Unknown stream part type: ${_}`)}}}}async function ek({stream:e,update:t,onToolCall:r,onFinish:i,generateId:l=p0,getCurrentDate:s=()=>new Date,lastMessage:c}){var d,p;const m=(c==null?void 0:c.role)==="assistant";let b=m?1+((p=(d=c.toolInvocations)==null?void 0:d.reduce((N,Y)=>{var j;return Math.max(N,(j=Y.step)!=null?j:0)},0))!=null?p:0):0;const E=m?structuredClone(c):{id:l(),createdAt:s(),role:"assistant",content:"",parts:[]};let T,y,R;function x(N,Y){const j=E.parts.find(G=>G.type==="tool-invocation"&&G.toolInvocation.toolCallId===N);j!=null?j.toolInvocation=Y:E.parts.push({type:"tool-invocation",toolInvocation:Y})}const U=[];let D=m?c==null?void 0:c.annotations:void 0;const q={};let M={completionTokens:NaN,promptTokens:NaN,totalTokens:NaN},P="unknown";function k(){const N=[...U];D!=null&&D.length&&(E.annotations=D);const Y={...structuredClone(E),revisionId:l()};t({message:Y,data:N,replaceLastMessage:m})}await JD({stream:e,onTextPart(N){T==null?(T={type:"text",text:N},E.parts.push(T)):T.text+=N,E.content+=N,k()},onReasoningPart(N){var Y;R==null?(R={type:"text",text:N},y!=null&&y.details.push(R)):R.text+=N,y==null?(y={type:"reasoning",reasoning:N,details:[R]},E.parts.push(y)):y.reasoning+=N,E.reasoning=((Y=E.reasoning)!=null?Y:"")+N,k()},onReasoningSignaturePart(N){R!=null&&(R.signature=N.signature)},onRedactedReasoningPart(N){y==null&&(y={type:"reasoning",reasoning:"",details:[]},E.parts.push(y)),y.details.push({type:"redacted",data:N.data}),R=void 0,k()},onFilePart(N){E.parts.push({type:"file",mimeType:N.mimeType,data:N.data}),k()},onSourcePart(N){E.parts.push({type:"source",source:N}),k()},onToolCallStreamingStartPart(N){E.toolInvocations==null&&(E.toolInvocations=[]),q[N.toolCallId]={text:"",step:b,toolName:N.toolName,index:E.toolInvocations.length};const Y={state:"partial-call",step:b,toolCallId:N.toolCallId,toolName:N.toolName,args:void 0};E.toolInvocations.push(Y),x(N.toolCallId,Y),k()},onToolCallDeltaPart(N){const Y=q[N.toolCallId];Y.text+=N.argsTextDelta;const{value:j}=DD(Y.text),G={state:"partial-call",step:Y.step,toolCallId:N.toolCallId,toolName:Y.toolName,args:j};E.toolInvocations[Y.index]=G,x(N.toolCallId,G),k()},async onToolCallPart(N){const Y={state:"call",step:b,...N};if(q[N.toolCallId]!=null?E.toolInvocations[q[N.toolCallId].index]=Y:(E.toolInvocations==null&&(E.toolInvocations=[]),E.toolInvocations.push(Y)),x(N.toolCallId,Y),k(),r){const j=await r({toolCall:N});if(j!=null){const G={state:"result",step:b,...N,result:j};E.toolInvocations[E.toolInvocations.length-1]=G,x(N.toolCallId,G),k()}}},onToolResultPart(N){const Y=E.toolInvocations;if(Y==null)throw new Error("tool_result must be preceded by a tool_call");const j=Y.findIndex(_=>_.toolCallId===N.toolCallId);if(j===-1)throw new Error("tool_result must be preceded by a tool_call with the same toolCallId");const G={...Y[j],state:"result",...N};Y[j]=G,x(N.toolCallId,G),k()},onDataPart(N){U.push(...N),k()},onMessageAnnotationsPart(N){D==null?D=[...N]:D.push(...N),k()},onFinishStepPart(N){b+=1,T=N.isContinued?T:void 0,y=void 0,R=void 0},onStartStepPart(N){m||(E.id=N.messageId),E.parts.push({type:"step-start"}),k()},onFinishMessagePart(N){P=N.finishReason,N.usage!=null&&(M=OD(N.usage))},onErrorPart(N){throw new Error(N)}}),i==null||i({message:E,finishReason:P,usage:M})}async function tk({stream:e,onTextPart:t}){const r=e.pipeThrough(new TextDecoderStream).getReader();for(;;){const{done:i,value:l}=await r.read();if(i)break;await t(l)}}async function nk({stream:e,update:t,onFinish:r,getCurrentDate:i=()=>new Date,generateId:l=p0}){const s={type:"text",text:""},c={id:l(),createdAt:i(),role:"assistant",content:"",parts:[s]};await tk({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 rk=()=>fetch;async function ak({api:e,body:t,streamProtocol:r="data",credentials:i,headers:l,abortController:s,restoreMessagesOnFailure:c,onResponse:d,onUpdate:p,onFinish:m,onToolCall:b,generateId:E,fetch:T=rk(),lastMessage:y}){var R,x;const U=await T(e,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",...l},signal:(R=s==null?void 0:s())==null?void 0:R.signal,credentials:i}).catch(D=>{throw c(),D});if(d)try{await d(U)}catch(D){throw D}if(!U.ok)throw c(),new Error((x=await U.text())!=null?x:"Failed to fetch the chat response.");if(!U.body)throw new Error("The response body is empty.");switch(r){case"text":{await nk({stream:U.body,update:p,onFinish:m,generateId:E});return}case"data":{await ek({stream:U.body,update:p,lastMessage:y,onToolCall:b,onFinish({message:D,finishReason:q,usage:M}){m&&D!=null&&m(D,{usage:M,finishReason:q})},generateId:E});return}default:{const D=r;throw new Error(`Unknown stream protocol: ${D}`)}}}function b0(e){return e==null?void 0:e.reduce((t,r)=>{var i;return Math.max(t,(i=r.step)!=null?i:0)},0)}function A2(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 E0(e){return e.map(t=>({...t,parts:A2(t)}))}function y0(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 l=0;l<e.length;l++)if(!y0(e[l],t[l]))return!1;return!0}const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(const l of r)if(!i.includes(l)||!y0(e[l],t[l]))return!1;return!0}async function _2(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,l=await new Promise((s,c)=>{const d=new FileReader;d.onload=p=>{var m;s((m=p.target)==null?void 0:m.result)},d.onerror=p=>c(p),d.readAsDataURL(t)});return{name:r,contentType:i,url:l}}));if(Array.isArray(e))return e;throw new Error("Invalid attachments type")}function ik({originalMaxToolInvocationStep:e,originalMessageCount:t,maxSteps:r,messages:i}){var l;const s=i[i.length-1];return r>1&&s!=null&&(i.length>t||b0(s.toolInvocations)!==e)&&x2(s)&&((l=b0(s.toolInvocations))!=null?l:0)<r}function x2(e){if(e.role!=="assistant")return!1;const t=e.parts.reduce((i,l,s)=>l.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 uk({messages:e,toolCallId:t,toolResult:r}){var i;const l=e[e.length-1],s=l.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,l.toolInvocations=(i=l.toolInvocations)==null?void 0:i.map(d=>d.toolCallId===t?c:d)}var T0={exports:{}},S0={};/**
|
|
200
227
|
* @license React
|
|
201
228
|
* use-sync-external-store-shim.production.js
|
|
202
229
|
*
|
|
@@ -204,4 +231,4 @@ Error message: ${C2(r)}`,cause:r}),this[L2]=!0,this.value=t}static isInstance(t)
|
|
|
204
231
|
*
|
|
205
232
|
* This source code is licensed under the MIT license found in the
|
|
206
233
|
* LICENSE file in the root directory of this source tree.
|
|
207
|
-
*/var U2;function QD(){if(U2)return C0;U2=1;var e=as();function t(E,S){return E===S&&(E!==0||1/E===1/S)||E!==E&&S!==S}var r=typeof Object.is=="function"?Object.is:t,i=e.useState,l=e.useEffect,s=e.useLayoutEffect,c=e.useDebugValue;function d(E,S){var y=S(),N=i({inst:{value:y,getSnapshot:S}}),_=N[0].inst,L=N[1];return s(function(){_.value=y,_.getSnapshot=S,p(_)&&L({inst:_})},[E,y,S]),l(function(){return p(_)&&L({inst:_}),E(function(){p(_)&&L({inst:_})})},[E]),c(y),y}function p(E){var S=E.getSnapshot;E=E.value;try{var y=S();return!r(E,y)}catch{return!0}}function m(E,S){return S()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:d;return C0.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:b,C0}var H2;function KD(){return H2||(H2=1,S0.exports=QD()),S0.exports}var WD=KD();const Ia=()=>{},Yn=Ia(),A0=Object,mt=e=>e===Yn,Gr=e=>typeof e=="function",wa=(e,t)=>({...e,...t}),ZD=e=>Gr(e.then),sc=new WeakMap;let JD=0;const ro=e=>{const t=typeof e,r=e&&e.constructor,i=r==Date;let l,s;if(A0(e)===e&&!i&&r!=RegExp){if(l=sc.get(e),l)return l;if(l=++JD+"~",sc.set(e,l),r==Array){for(l="@",s=0;s<e.length;s++)l+=ro(e[s])+",";sc.set(e,l)}if(r==A0){l="#";const c=A0.keys(e).sort();for(;!mt(s=c.pop());)mt(e[s])||(l+=s+":"+ro(e[s])+",");sc.set(e,l)}}else l=i?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return l},ua=new WeakMap,x0={},cc={},_0="undefined",fc=typeof window!=_0,v0=typeof document!=_0,eL=()=>fc&&typeof window.requestAnimationFrame!=_0,F2=(e,t)=>{const r=ua.get(e);return[()=>!mt(t)&&e.get(t)||x0,i=>{if(!mt(t)){const l=e.get(t);t in cc||(cc[t]=l),r[5](t,wa(l,i),l||x0)}},r[6],()=>!mt(t)&&t in cc?cc[t]:!mt(t)&&e.get(t)||x0]};let R0=!0;const tL=()=>R0,[O0,N0]=fc&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Ia,Ia],nL=()=>{const e=v0&&document.visibilityState;return mt(e)||e!=="hidden"},rL=e=>(v0&&document.addEventListener("visibilitychange",e),O0("focus",e),()=>{v0&&document.removeEventListener("visibilitychange",e),N0("focus",e)}),aL=e=>{const t=()=>{R0=!0,e()},r=()=>{R0=!1};return O0("online",t),O0("offline",r),()=>{N0("online",t),N0("offline",r)}},iL={isOnline:tL,isVisible:nL},uL={initFocus:rL,initReconnect:aL},z2=!xt.useId,ao=!fc||"Deno"in window,lL=e=>eL()?window.requestAnimationFrame(e):setTimeout(e,1),k0=ao?A.useEffect:A.useLayoutEffect,D0=typeof navigator<"u"&&navigator.connection,Y2=!ao&&D0&&(["slow-2g","2g"].includes(D0.effectiveType)||D0.saveData),L0=e=>{if(Gr(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?ro(e):"",[e,t]};let oL=0;const I0=()=>++oL,j2=0,V2=1,$2=2;var io={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:j2,MUTATE_EVENT:$2,RECONNECT_EVENT:V2};async function q2(...e){const[t,r,i,l]=e,s=wa({populateCache:!0,throwOnError:!0},typeof l=="boolean"?{revalidate:l}:l||{});let c=s.populateCache;const d=s.rollbackOnError;let p=s.optimisticData;const m=S=>typeof d=="function"?d(S):d!==!1,b=s.throwOnError;if(Gr(r)){const S=r,y=[],N=t.keys();for(const _ of N)!/^\$(inf|sub)\$/.test(_)&&S(t.get(_)._k)&&y.push(_);return Promise.all(y.map(E))}return E(r);async function E(S){const[y]=L0(S);if(!y)return;const[N,_]=F2(t,y),[L,v,H,D]=ua.get(t),P=()=>{const W=L[y];return(Gr(s.revalidate)?s.revalidate(N().data,S):s.revalidate!==!1)&&(delete H[y],delete D[y],W&&W[0])?W[0]($2).then(()=>N().data):N().data};if(e.length<3)return P();let I=i,M;const j=I0();v[y]=[j,0];const ie=!mt(p),V=N(),x=V.data,Y=V._c,K=mt(Y)?x:Y;if(ie&&(p=Gr(p)?p(K,x):p,_({data:p,_c:K})),Gr(I))try{I=I(K)}catch(W){M=W}if(I&&ZD(I))if(I=await I.catch(W=>{M=W}),j!==v[y][0]){if(M)throw M;return I}else M&&ie&&m(M)&&(c=!0,_({data:K,_c:Yn}));if(c&&!M)if(Gr(c)){const W=c(I,K);_({data:W,error:Yn,_c:Yn})}else _({data:I,error:Yn,_c:Yn});if(v[y][1]=I0(),Promise.resolve(P()).then(()=>{_({_c:Yn})}),M){if(b)throw M;return}return I}}const G2=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},sL=(e,t)=>{if(!ua.has(e)){const r=wa(uL,t),i={},l=q2.bind(Yn,e);let s=Ia;const c={},d=(b,E)=>{const S=c[b]||[];return c[b]=S,S.push(E),()=>S.splice(S.indexOf(E),1)},p=(b,E,S)=>{e.set(b,E);const y=c[b];if(y)for(const N of y)N(E,S)},m=()=>{if(!ua.has(e)&&(ua.set(e,[i,{},{},{},l,p,d]),!ao)){const b=r.initFocus(setTimeout.bind(Yn,G2.bind(Yn,i,j2))),E=r.initReconnect(setTimeout.bind(Yn,G2.bind(Yn,i,V2)));s=()=>{b&&b(),E&&E(),ua.delete(e)}}};return m(),[e,l,m,s]}return[e,ua.get(e)[4]]},cL=(e,t,r,i,l)=>{const s=r.errorRetryCount,c=l.retryCount,d=~~((Math.random()+.5)*(1<<(c<8?c:8)))*r.errorRetryInterval;!mt(s)&&c>s||setTimeout(i,d,l)},fL=(e,t)=>ro(e)==ro(t),[X2,dL]=sL(new Map),hL=wa({onLoadingSlow:Ia,onSuccess:Ia,onError:Ia,onErrorRetry:cL,onDiscarded:Ia,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Y2?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Y2?5e3:3e3,compare:fL,isPaused:()=>!1,cache:X2,mutate:dL,fallback:{}},iL),pL=(e,t)=>{const r=wa(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=wa(l,c))}return r},mL=A.createContext({}),gL="$inf$",Q2=fc&&window.__SWR_DEVTOOLS_USE__,bL=Q2?window.__SWR_DEVTOOLS_USE__:[],EL=()=>{Q2&&(window.__SWR_DEVTOOLS_REACT__=xt)},yL=e=>Gr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],TL=()=>wa(hL,A.useContext(mL)),SL=e=>(t,r,i)=>e(t,r&&((...s)=>{const[c]=L0(t),[,,,d]=ua.get(X2);if(c.startsWith(gL))return r(...s);const p=d[c];return mt(p)?r(...s):(delete d[c],p)}),i),CL=bL.concat(SL),AL=e=>function(...r){const i=TL(),[l,s,c]=yL(r),d=pL(i,c);let p=e;const{use:m}=d,b=(m||[]).concat(CL);for(let E=b.length;E--;)p=b[E](p);return p(l,s||d.fetcher||null,d)},xL=(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())}};EL();const K2=xt.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),w0={dedupe:!0},dc=AL((e,t,r)=>{const{cache:i,compare:l,suspense:s,fallbackData:c,revalidateOnMount:d,revalidateIfStale:p,refreshInterval:m,refreshWhenHidden:b,refreshWhenOffline:E,keepPreviousData:S}=r,[y,N,_,L]=ua.get(i),[v,H]=L0(e),D=A.useRef(!1),P=A.useRef(!1),I=A.useRef(v),M=A.useRef(t),j=A.useRef(r),ie=()=>j.current,V=()=>ie().isVisible()&&ie().isOnline(),[x,Y,K,W]=F2(i,v),q=A.useRef({}).current,ee=mt(c)?r.fallback[v]:c,Q=(ve,Oe)=>{for(const Ce in q){const Be=Ce;if(Be==="data"){if(!l(ve[Be],Oe[Be])&&(!mt(ve[Be])||!l(Re,Oe[Be])))return!1}else if(Oe[Be]!==ve[Be])return!1}return!0},se=A.useMemo(()=>{const ve=!v||!t?!1:mt(d)?ie().isPaused()||s?!1:mt(p)?!0:p:d,Oe=ct=>{const St=wa(ct);return delete St._k,ve?{isValidating:!0,isLoading:!0,...St}:St},Ce=x(),Be=W(),it=Oe(Ce),je=Ce===Be?it:Oe(Be);let Ue=it;return[()=>{const ct=Oe(x());return Q(ct,Ue)?(Ue.data=ct.data,Ue.isLoading=ct.isLoading,Ue.isValidating=ct.isValidating,Ue.error=ct.error,Ue):(Ue=ct,ct)},()=>je]},[i,v]),re=WD.useSyncExternalStore(A.useCallback(ve=>K(v,(Oe,Ce)=>{Q(Ce,Oe)||ve()}),[i,v]),se[0],se[1]),ge=!D.current,C=y[v]&&y[v].length>0,J=re.data,Te=mt(J)?ee:J,O=re.error,ue=A.useRef(Te),Re=S?mt(J)?ue.current:J:Te,Se=C&&!mt(O)?!1:ge&&!mt(d)?d:ie().isPaused()?!1:s?mt(Te)?!1:p:mt(Te)||p,tt=!!(v&&t&&ge&&Se),Me=mt(re.isValidating)?tt:re.isValidating,$e=mt(re.isLoading)?tt:re.isLoading,xe=A.useCallback(async ve=>{const Oe=M.current;if(!v||!Oe||P.current||ie().isPaused())return!1;let Ce,Be,it=!0;const je=ve||{},Ue=!_[v]||!je.dedupe,ct=()=>z2?!P.current&&v===I.current&&D.current:v===I.current,St={isValidating:!1,isLoading:!1},rn=()=>{Y(St)},_n=()=>{const Xe=_[v];Xe&&Xe[1]===Be&&delete _[v]},we={isValidating:!0};mt(x().data)&&(we.isLoading=!0);try{if(Ue&&(Y(we),r.loadingTimeout&&mt(x().data)&&setTimeout(()=>{it&&ct()&&ie().onLoadingSlow(v,r)},r.loadingTimeout),_[v]=[Oe(H),I0()]),[Ce,Be]=_[v],Ce=await Ce,Ue&&setTimeout(_n,r.dedupingInterval),!_[v]||_[v][1]!==Be)return Ue&&ct()&&ie().onDiscarded(v),!1;St.error=Yn;const Xe=N[v];if(!mt(Xe)&&(Be<=Xe[0]||Be<=Xe[1]||Xe[1]===0))return rn(),Ue&&ct()&&ie().onDiscarded(v),!1;const $t=x().data;St.data=l($t,Ce)?$t:Ce,Ue&&ct()&&ie().onSuccess(Ce,v,r)}catch(Xe){_n();const $t=ie(),{shouldRetryOnError:te}=$t;$t.isPaused()||(St.error=Xe,Ue&&ct()&&($t.onError(Xe,v,$t),(te===!0||Gr(te)&&te(Xe))&&(!ie().revalidateOnFocus||!ie().revalidateOnReconnect||V())&&$t.onErrorRetry(Xe,v,$t,fe=>{const Ae=y[v];Ae&&Ae[0]&&Ae[0](io.ERROR_REVALIDATE_EVENT,fe)},{retryCount:(je.retryCount||0)+1,dedupe:!0})))}return it=!1,rn(),!0},[v,i]),Ge=A.useCallback((...ve)=>q2(i,I.current,...ve),[]);if(k0(()=>{M.current=t,j.current=r,mt(J)||(ue.current=J)}),k0(()=>{if(!v)return;const ve=xe.bind(Yn,w0);let Oe=0;const Be=xL(v,y,(it,je={})=>{if(it==io.FOCUS_EVENT){const Ue=Date.now();ie().revalidateOnFocus&&Ue>Oe&&V()&&(Oe=Ue+ie().focusThrottleInterval,ve())}else if(it==io.RECONNECT_EVENT)ie().revalidateOnReconnect&&V()&&ve();else{if(it==io.MUTATE_EVENT)return xe();if(it==io.ERROR_REVALIDATE_EVENT)return xe(je)}});return P.current=!1,I.current=v,D.current=!0,Y({_k:H}),Se&&(mt(Te)||ao?ve():lL(ve)),()=>{P.current=!0,Be()}},[v]),k0(()=>{let ve;function Oe(){const Be=Gr(m)?m(x().data):m;Be&&ve!==-1&&(ve=setTimeout(Ce,Be))}function Ce(){!x().error&&(b||ie().isVisible())&&(E||ie().isOnline())?xe(w0).then(Oe):Oe()}return Oe(),()=>{ve&&(clearTimeout(ve),ve=-1)}},[m,b,E,v]),A.useDebugValue(Re),s&&mt(Te)&&v){if(!z2&&ao)throw new Error("Fallback data is required when using suspense in SSR.");M.current=t,j.current=r,P.current=!1;const ve=L[v];if(!mt(ve)){const Oe=Ge(ve);K2(Oe)}if(mt(O)){const Oe=xe(w0);mt(Re)||(Oe.status="fulfilled",Oe.value=!0),K2(Oe)}else throw O}return{mutate:Ge,get data(){return q.data=!0,Re},get error(){return q.error=!0,O},get isValidating(){return q.isValidating=!0,Me},get isLoading(){return q.isLoading=!0,$e}}});var M0,W2;function _L(){if(W2)return M0;W2=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 M0=e,M0}var vL=_L();const RL=ur(vL);function Z2(e,t){return t!=null?RL(e,t):e}var OL=async(e,t,r,i,l,s,c,d,p,m,b,E,S,y,N,_,L)=>{var v;const H=c.current;r(t.messages,!1);const D=y?t.messages:t.messages.map(({role:I,content:M,experimental_attachments:j,data:ie,annotations:V,toolInvocations:x})=>({role:I,content:M,...j!==void 0&&{experimental_attachments:j},...ie!==void 0&&{data:ie},...V!==void 0&&{annotations:V},...x!==void 0&&{toolInvocations:x}})),P=l.current;return await XD({api:e,body:(v=N==null?void 0:N({messages:t.messages,requestData:t.data,requestBody:t.body}))!=null?v:{messages:D,data:t.data,...s.current.body,...t.body},streamProtocol:m,credentials:s.current.credentials,headers:{...s.current.headers,...t.headers},abortController:()=>d.current,restoreMessagesOnFailure(){L||r(H,!1)},onResponse:E,onUpdate(I,M){r([...t.messages,...I],!1),M!=null&&M.length&&i([...P??[],...M],!1)},onToolCall:S,onFinish:b,generateId:p,fetch:_})};function NL({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:S,headers:y,body:N,generateId:_=M2,fetch:L,keepLastMessageOnError:v=!0,experimental_throttle:H}={}){const D=A.useId(),P=t??D,I=typeof e=="string"?[e,P]:P,[M]=A.useState([]),{data:j,mutate:ie}=dc([I,"messages"],null,{fallbackData:r??M}),V=A.useRef(j||[]);A.useEffect(()=>{V.current=j||[]},[j]);const{data:x,mutate:Y}=dc([I,"streamData"],null),K=A.useRef(x);A.useEffect(()=>{K.current=x},[x]);const{data:W=!1,mutate:q}=dc([I,"loading"],null),{data:ee=void 0,mutate:Q}=dc([I,"error"],null),se=A.useRef(null),re=A.useRef({credentials:S,headers:y,body:N});A.useEffect(()=>{re.current={credentials:S,headers:y,body:N}},[S,y,N]);const ge=A.useCallback(async xe=>{const Ge=V.current.length;try{q(!0),Q(void 0);const Ce=new AbortController;se.current=Ce,await OL(e,xe,Z2(ie,H),Z2(Y,H),K,re,V,se,_,p,b,m,s,l,c,L,v),se.current=null}catch(Ce){if(Ce.name==="AbortError")return se.current=null,null;E&&Ce instanceof Error&&E(Ce),Q(Ce)}finally{q(!1)}const ve=V.current,Oe=ve[ve.length-1];ve.length>Ge&&Oe!=null&&d>1&&J2(Oe)&&kL(ve)<d&&await ge({messages:ve})},[ie,q,e,re,m,b,E,Q,Y,K,p,l,c,s,d,V,se,_,L,v,H]),C=A.useCallback(async(xe,{data:Ge,headers:ve,body:Oe,experimental_attachments:Ce}={})=>{var Be,it;const je=await P2(Ce),Ue=V.current.concat({...xe,id:(Be=xe.id)!=null?Be:_(),createdAt:(it=xe.createdAt)!=null?it:new Date,experimental_attachments:je.length>0?je:void 0});return ge({messages:Ue,headers:ve,body:Oe,data:Ge})},[ge,_]),J=A.useCallback(async({data:xe,headers:Ge,body:ve}={})=>{const Oe=V.current;if(Oe.length===0)return null;const Ce=Oe[Oe.length-1];return ge({messages:Ce.role==="assistant"?Oe.slice(0,-1):Oe,headers:Ge,body:ve,data:xe})},[ge]),Te=A.useCallback(()=>{se.current&&(se.current.abort(),se.current=null)},[]),O=A.useCallback(xe=>{typeof xe=="function"&&(xe=xe(V.current)),ie(xe,!1),V.current=xe},[ie]),ue=A.useCallback(xe=>{typeof xe=="function"&&(xe=xe(K.current)),Y(xe,!1),K.current=xe},[Y]),[Re,Se]=A.useState(i),tt=A.useCallback(async(xe,Ge={},ve)=>{var Oe;if((Oe=xe==null?void 0:xe.preventDefault)==null||Oe.call(xe),!Re&&!Ge.allowEmptySubmit)return;ve&&(re.current={...re.current,...ve});const Ce=await P2(Ge.experimental_attachments),it={messages:!Re&&!Ce.length&&Ge.allowEmptySubmit?V.current:V.current.concat({id:_(),createdAt:new Date,role:"user",content:Re,experimental_attachments:Ce.length>0?Ce:void 0}),headers:Ge.headers,body:Ge.body,data:Ge.data};ge(it),Se("")},[Re,_,ge]);return{messages:j||[],setMessages:O,data:x,setData:ue,error:ee,append:C,reload:J,stop:Te,input:Re,setInput:Se,handleInputChange:xe=>{Se(xe.target.value)},handleSubmit:tt,isLoading:W,addToolResult:({toolCallId:xe,result:Ge})=>{const ve=V.current.map((Ce,Be,it)=>Be===it.length-1&&Ce.role==="assistant"&&Ce.toolInvocations?{...Ce,toolInvocations:Ce.toolInvocations.map(je=>je.toolCallId===xe?{...je,result:Ge,state:"result"}:je)}:Ce);ie(ve,!1);const Oe=ve[ve.length-1];J2(Oe)&&ge({messages:ve})}}}function J2(e){return e.role==="assistant"&&e.toolInvocations&&e.toolInvocations.length>0&&e.toolInvocations.every(t=>"result"in t)}function kL(e){let t=0;for(let r=e.length-1;r>=0&&e[r].role==="assistant";r--)t++;return t}var DL=NL;const LL=e=>e,IL=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??LL,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)},wL=(e,t)=>{const r=A.useMemo(()=>IL(e),[e]);return DL({api:e.apiUrl,streamProtocol:"text",fetch:r,onFinish:i=>{var l;e.onFinish&&(i.role==="assistant"||i.role==="user"?(l=e.onFinish)==null||l.call(e,i):console.info("Unexpected message role.",i))},...t})},ML=e=>e.scrollHeight-e.clientHeight-e.scrollTop,BL=e=>{e.scrollTop=e.scrollHeight},PL=({scrollElement:e,contentElement:t,threshold:r=2})=>{A.useEffect(()=>{const i=()=>{e&&ML(e)<r&&BL(e)};i();const l=new ResizeObserver(i);return t&&l.observe(t),()=>{l.disconnect()}},[e,t,r])},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=Fe.div(),HL=Fe.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"}}})),FL=Fe.div(({externalScroll:e})=>({width:"100%",height:e?"auto":"100%",minHeight:e?"100%":"auto",display:"flex",flexDirection:"column"})),zL=Fe(qk)(({externalScroll:e})=>({display:"flex",flexDirection:"column",flex:1,padding:"14px 0",overflow:e?"visible":"auto",gap:"16px",[`> .${bn.messageRowAssistant}:first-child`]:{marginTop:"16px"}})),ey=Fe.div({display:"flex",width:"100%",gap:"10px",[`&.${bn.messageRowUser}`]:{flexDirection:"row-reverse"},"> *":{minWidth:0},position:"relative"}),ty=Fe.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}})),YL=Fe.div({alignSelf:"flex-end",alignItems:"end",display:"flex",flexDirection:"column",gap:"12px"}),jL=Fe.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"})),VL=Fe(Ob)(({theme:e})=>({fill:e.custom.colors.red})),$L=Fe(v8)(({theme:e})=>({fill:e.custom.colors.red})),qL=Fe.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"}})),GL=Fe(bi)(({theme:e})=>({color:e.custom.colors.silverGrayDark,marginTop:"16px",textAlign:"center"})),XL=({entryScreenTitle:e,entryScreenEnabled:t=!0,conversationStarters:r,initialMessages:i,askTimTitle:l,requestOpts:s,parseContent:c,srLoadingMessages:d,placeholder:p="",className:m,scrollElement:b,chatId:E,ref:S,...y})=>{var J,Te;const N=A.useRef(null),_=A.useRef(null),[L,v]=A.useState(t),H=A.useRef(null),[D,P]=A.useState(),I=A.useRef(null),{messages:M,input:j,handleInputChange:ie,handleSubmit:V,append:x,isLoading:Y,stop:K,error:W}=wL(s,{initialMessages:D,id:E});PL({scrollElement:b||_.current,contentElement:b?_.current:null,threshold:200}),A.useEffect(()=>{if(i){const O=Math.random().toString().slice(2);P(i.map((ue,Re)=>({...ue,id:`initial-${O}-${Re}`})))}},[i]),A.useEffect(()=>{var O,ue;L||(ue=(O=I.current)==null?void 0:O.querySelector("input"))==null||ue.focus()},[L]);const q=A.useMemo(()=>{const O=D==null?void 0:D.map(ue=>ue.id);return M.map(ue=>{if(ue.role==="assistant"&&!(O!=null&&O.includes(ue.id))){const Re=c?c(ue.content):ue.content;return{...ue,content:Re}}return ue})},[c,M,D]),ee=q.length===((D==null?void 0:D.length)||0),Q=!ee&&!W&&((J=q[q.length-1])==null?void 0:J.role)==="user",se=Y&&((Te=q[q.length-1])==null?void 0:Te.role)!=="user",re=()=>{const O=b||_.current;O==null||O.scrollBy({behavior:"instant",top:O==null?void 0:O.scrollHeight})},ge=q[q.length-1],C=!!b;return A.createElement(UL,{className:m,ref:N,key:E},L?A.createElement(Yk,{className:bn.entryScreenContainer,title:e,conversationStarters:r,onPromptSubmit:O=>{O.trim()!==""&&(v(!1),x({role:"user",content:O}))}}):A.createElement(HL,{className:bn.chatScreenContainer,"data-testid":"ai-chat-screen",externalScroll:C,ref:H},A.createElement(FL,{className:zl(m,bn.root),externalScroll:C,...y},A.createElement(gD,{askTimTitle:l,externalScroll:C,className:zl(m,bn.title)}),A.createElement(zL,{className:bn.messagesContainer,externalScroll:C,ref:_},q.map(O=>A.createElement(ey,{key:O.id,"data-chat-role":O.role,className:zl(bn.messageRow,{[bn.messageRowUser]:O.role==="user",[bn.messageRowAssistant]:O.role==="assistant"})},A.createElement(ty,{className:bn.message},A.createElement(m2,{as:O.role==="user"?"h5":"h6"},O.role==="user"?"You said: ":"Assistant said: "),A.createElement(tg,{skipHtml:!0},O.content)))),ee?A.createElement(YL,null,r==null?void 0:r.map(O=>A.createElement(jL,{className:bn.conversationStarter,key:O.content,onClick:()=>{re(),x({role:"user",content:O.content})}},O.content))):null,Q?A.createElement(ey,{className:zl(bn.messageRow,bn.messageRowAssistant),key:"loading"},A.createElement(ty,null,A.createElement(_8,null))):null,W?A.createElement(hD,{severity:"error",closable:!0},"An unexpected error has occurred."):null),A.createElement(qL,{externalScroll:C,className:bn.bottomSection},A.createElement("form",{onSubmit:O=>{O.preventDefault(),Y&&se?K():(re(),V(O))}},A.createElement(h2,{ref:I,fullWidth:!0,size:"chat",className:bn.input,placeholder:p,name:"message",sx:{flex:1},value:j,onChange:ie,inputProps:{"aria-label":"Ask a question"},endAdornment:Y?A.createElement(y0,{"aria-label":"Stop",onClick:K,disabled:!se},A.createElement($L,null)):A.createElement(y0,{"aria-label":"Send",type:"submit",onClick:O=>{if(j.trim()===""){O.preventDefault();return}re(),V(O)}},A.createElement(VL,null))})),A.createElement(GL,{variant:"body3"},"AI-generated content may be incorrect.")),A.createElement(Xk,{isLoading:Y,loadingMessages:d,message:(ge==null?void 0:ge.role)==="assistant"?ge==null?void 0:ge.content:""}))))},ny=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:dt({small:20,medium:24,large:32}[e])}}),uo=Fe(A.forwardRef(function(t,r){return A.createElement(XE,{ref:r,type:"button",...t})}))(({size:e=m0.size,responsive:t,theme:r})=>[ny(e),t&&{[r.breakpoints.down("sm")]:ny($E[e])}]);uo.displayName="ActionButton";const QL=uo.withComponent(({Component:e,...t})=>A.createElement(QE,{Component:e,...t}));QL.displayName="ActionButtonLink";const KL=Fe.div``,WL=Fe.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"})),ZL=Fe.div({display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",marginTop:"24px"}),JL=Fe.div(({theme:e})=>({color:e.custom.colors.silverGrayDark,...e.typography.body2})),ry=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(WL,{ref:r,onClick:()=>l(i===0?1:0),onKeyDown:s,tabIndex:0,"aria-label":t},A.createElement(bi,{variant:"h5"},i===0?`Q: ${e.question}`:`Answer: ${e.answer}`))});ry.displayName="Flashcard";const eI=({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(KL,{ref:l},A.createElement(ry,{ref:s,content:e[r],"aria-label":`Flashcard ${r+1} of ${e.length}`}),A.createElement(ZL,null,A.createElement(uo,{onClick:()=>i(r-1),disabled:r===0,variant:"secondary",color:"secondary",size:"small","aria-label":"Previous card"},A.createElement(A8,{"aria-hidden":!0})),A.createElement(JL,null,r+1," / ",e.length),A.createElement(uo,{onClick:()=>i(r+1),disabled:r===e.length-1,variant:"secondary",color:"secondary",size:"small","aria-label":"Next card"},A.createElement(x8,{"aria-hidden":!0})))):null},tI=Fe.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})),nI=Fe.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"}})),rI=Fe(uo)(({theme:e})=>({backgroundColor:e.custom.colors.lightGray2,"&&:hover":{backgroundColor:e.custom.colors.red,color:e.custom.colors.white},zIndex:3,flexShrink:0})),aI=Fe(G9)(({theme:e})=>({padding:"0 0 16px",backgroundColor:e.custom.colors.white,position:"sticky",top:"88px",zIndex:2,overflow:"visible"})),B0=Fe(fk)({padding:"0",height:"calc(100% - 138px)",position:"relative"}),iI=Fe(XL)(({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"}})),uI=Fe.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"}})),lI=e=>e,oI={credentials:"include"},sI=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}},cI="What do you want to know about this video?",fI=[{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?"}],ay=({payload:e,transformBody:t,fetchOpts:r,scrollElement:i,entryScreenEnabled:l,entryScreenTitle:s,conversationStarters:c,hasTabs:d})=>e?A.createElement(iI,{chatId:e.chatId,conversationStarters:c,initialMessages:e.initialMessages,scrollElement:i,entryScreenEnabled:l,entryScreenTitle:s,requestOpts:{transformBody:p=>({...e.requestBody,...t==null?void 0:t(p)}),apiUrl:e.apiUrl,fetchOpts:{...oI,...r}},hasTabs:d}):null,dI=(e,t)=>[...e].sort(()=>.5-Math.random()).slice(0,t),hI=({messageOrigin:e,transformBody:t=lI,className:r,fetchOpts:i,target:l})=>{var ie,V,x,Y,K,W;const[s,c]=A.useState(!1),[d,p]=A.useState(null),[m,b]=A.useState("chat"),{response:E}=sI((ie=d==null?void 0:d.summary)==null?void 0:ie.apiUrl),[S,y]=A.useState(!1),N=A.useRef(!1),_=()=>{N.current=!0},L=()=>{N.current||y(!0),N.current=!1},[v,H]=A.useState(null),D=q=>{q&&H(q)};A.useEffect(()=>{const q=ee=>{ee.origin===e&&ee.data.type==="smoot-design::tutor-drawer-open"&&ee.data.payload.target===l&&(c(!0),p(ee.data.payload))};return window.addEventListener("message",q),()=>{window.removeEventListener("message",q)}},[e,l]),A.useEffect(()=>{var q;(q=v==null?void 0:v.scrollTo)==null||q.call(v,{top:m==="chat"?v.scrollHeight:0})},[m,v]);const P=A.useMemo(()=>{var q;return d?d.chat.conversationStarters||((q=E==null?void 0:E.flashcards)!=null&&q.length&&E.flashcards.length>=3?dI(E.flashcards,3).map(ee=>({content:ee.question})):fI):[]},[d,E]);if(!d)return A.createElement("div",{"data-testid":"remote-tutor-drawer-waiting"});const{blockType:I,chat:M}=d,j=I==="video";return A.createElement(WN,{"data-testid":"remote-tutor-drawer",className:r,PaperProps:{ref:D,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(tI,null,A.createElement(nI,null,d.title?A.createElement(Ud,null):null,A.createElement(bi,{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(rI,{variant:"text",size:"medium",onClick:()=>c(!1),"aria-label":"Close"},A.createElement(Rb,null))),I==="problem"?A.createElement(ay,{payload:M,transformBody:t,fetchOpts:i,scrollElement:v,entryScreenEnabled:((x=d.chat)==null?void 0:x.entryScreenEnabled)??!1,entryScreenTitle:d.chat.entryScreenTitle,hasTabs:j}):null,I==="video"?A.createElement(B9,{value:m},A.createElement(aI,{styleVariant:"chat",onChange:(q,ee)=>b(ee)},A.createElement(g0,{value:"chat",label:"Chat"}),(Y=E==null?void 0:E.flashcards)!=null&&Y.length?A.createElement(g0,{value:"flashcards",label:"Flashcards",onMouseDown:_,onFocus:L}):null,A.createElement(g0,{value:"summary",label:"Summary"})),A.createElement(B0,{value:"chat",keepMounted:!0},A.createElement(ay,{payload:{...M},transformBody:t,fetchOpts:i,scrollElement:v,entryScreenEnabled:((K=d.chat)==null?void 0:K.entryScreenEnabled)??!0,entryScreenTitle:d.chat.entryScreenTitle??cI,conversationStarters:P,hasTabs:j})),(W=E==null?void 0:E.flashcards)!=null&&W.length?A.createElement(B0,{value:"flashcards"},A.createElement(eI,{flashcards:E==null?void 0:E.flashcards,wasKeyboardFocus:S})):null,A.createElement(B0,{value:"summary"},A.createElement(bi,{variant:"h4",component:"h4"}),A.createElement(uI,null,A.createElement(tg,{rehypePlugins:[C8]},(E==null?void 0:E.summary)??"")))):null)},pI={defaultProps:{disableRipple:!0},styleOverrides:{root:{":focus-visible":{outline:"revert"}}}},ot={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"},mI={defaultProps:{size:"medium",color:"default",variant:"outlined",deleteIcon:A.createElement(Rb,{"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:ot.silverGrayLight,color:ot.darkGray1,"&.Mui-focusVisible":{backgroundColor:"transparent"},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:ot.darkGray1,borderColor:ot.silverGrayDark,backgroundColor:"transparent"}}},{props:{variant:"outlinedWhite"},style:{backgroundColor:"white",border:"1px solid",borderColor:ot.silverGrayLight,color:ot.darkGray1,"&.Mui-focusVisible":{backgroundColor:"white"},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:ot.darkGray1,borderColor:ot.silverGrayDark,backgroundColor:"white"}}},{props:{variant:"gray"},style:{backgroundColor:ot.lightGray2,border:"none",color:ot.darkGray2,"&.Mui-focusVisible":{backgroundColor:ot.lightGray2},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:ot.darkGray1,backgroundColor:ot.silverGrayLight}}},{props:{variant:"dark"},style:{backgroundColor:ot.silverGrayDark,border:"none",color:ot.white,"&.Mui-focusVisible":{backgroundColor:ot.silverGrayDark},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:ot.darkGray1}}},{props:{variant:"darker"},style:{backgroundColor:ot.darkGray2,border:`1px solid ${ot.darkGray1}`,color:ot.white,"&.Mui-focusVisible":{backgroundColor:ot.darkGray2},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:ot.black,border:`1px solid ${ot.silverGray}`}}},{props:{variant:"filled"},style:{backgroundColor:ot.mitRed,border:"none",color:ot.white,"&.Mui-focusVisible":{backgroundColor:ot.mitRed},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:ot.red}}}]},gI={colors:ot,dimensions:{headerHeight:"72px",headerHeightSm:"60px"}},bI={values:{xs:0,sm:600,md:900,lg:1320,xl:1536}},EI={custom:gI,palette:{primary:{main:ot.mitRed,light:ot.lightRed,active:ot.red,contrastText:ot.white},secondary:{light:ot.darkGray2,active:ot.silverGrayDark,main:ot.black,contrastText:ot.white}},shape:{borderRadius:8},spacing:8,typography:YE,breakpoints:bI,components:{MuiButtonBase:pI,MuiTypography:Y9,MuiMenu:{styleOverrides:{paper:{borderRadius:"4px"}}},MuiAutocomplete:{styleOverrides:{paper:{borderRadius:"4px"},popupIndicator:{paddingRight:0,marginRight:0}}},MuiChip:mI}},iy=e=>Zs(Pn(EI,e)),yI=iy(),TI=({children:e,theme:t=yI})=>A.createElement(z9,{theme:t},e);var SI=function(t,r,i){for(var l=0,s=0;l=s,s=Gn(),l===38&&s===12&&(r[i]=1),!ai(s);)Nn();return Yi(t,Cn)},CI=function(t,r){var i=-1,l=44;do switch(ai(l)){case 0:l===38&&Gn()===12&&(r[i]=1),t[i]+=SI(Cn-1,r,i);break;case 2:t[i]+=tl(l);break;case 4:if(l===44){t[++i]=Gn()===58?"&\f":"",r[i]=t[i].length;break}default:t[i]+=Zu(l)}while(l=Nn());return t},AI=function(t,r){return Nf(CI(Of(t),r))},uy=new WeakMap,xI=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&&!uy.get(i))&&!l){uy.set(t,!0);for(var s=[],c=AI(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]}}},_I=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function ly(e,t){switch(nm(e,t)){case 5103:return De+"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 De+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return De+e+xa+e+pt+e+e;case 6828:case 4268:return De+e+pt+e+e;case 6165:return De+e+pt+"flex-"+e+e;case 5187:return De+e+Ie(e,/(\w+).+(:[^]+)/,De+"box-$1$2"+pt+"flex-$1$2")+e;case 5443:return De+e+pt+"flex-item-"+Ie(e,/flex-|-self/,"")+e;case 4675:return De+e+pt+"flex-line-pack"+Ie(e,/align-content|flex-|-self/,"")+e;case 5548:return De+e+pt+Ie(e,"shrink","negative")+e;case 5292:return De+e+pt+Ie(e,"basis","preferred-size")+e;case 6060:return De+"box-"+Ie(e,"-grow","")+De+e+pt+Ie(e,"grow","positive")+e;case 4554:return De+Ie(e,/([^-])(transform)/g,"$1"+De+"$2")+e;case 6187:return Ie(Ie(Ie(e,/(zoom-|grab)/,De+"$1"),/(image-set)/,De+"$1"),e,"")+e;case 5495:case 3959:return Ie(e,/(image-set\([^]*)/,De+"$1$`$1");case 4968:return Ie(Ie(e,/(.+:)(flex-)?(.*)/,De+"box-pack:$3"+pt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+De+e+e;case 4095:case 3583:case 4068:case 2532:return Ie(e,/(.+)-inline(.+)/,De+"$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(lr(e)-1-t>6)switch(Bt(e,t+1)){case 109:if(Bt(e,t+4)!==45)break;case 102:return Ie(e,/(.+:)(.+)-([^]+)/,"$1"+De+"$2-$3$1"+xa+(Bt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ju(e,"stretch")?ly(Ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Bt(e,t+1)!==115)break;case 6444:switch(Bt(e,lr(e)-3-(~Ju(e,"!important")&&10))){case 107:return Ie(e,":",":"+De)+e;case 101:return Ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+De+(Bt(e,14)===45?"inline-":"")+"box$3$1"+De+"$2$3$1"+pt+"$2box$3")+e}break;case 5936:switch(Bt(e,t+11)){case 114:return De+e+pt+Ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return De+e+pt+Ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return De+e+pt+Ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return De+e+pt+e+e}return e}var vI=function(t,r,i,l){if(t.length>-1&&!t.return)switch(t.type){case ls:t.return=ly(t.value,t.length);break;case vf:return Br([Mr(t,{value:Ie(t.value,"@","@"+De)})],l);case us:if(t.length)return im(t.props,function(s){switch(am(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Br([Mr(t,{props:[Ie(s,/:(read-\w+)/,":"+xa+"$1")]})],l);case"::placeholder":return Br([Mr(t,{props:[Ie(s,/:(plac\w+)/,":"+De+"input-$1")]}),Mr(t,{props:[Ie(s,/:(plac\w+)/,":"+xa+"$1")]}),Mr(t,{props:[Ie(s,/:(plac\w+)/,pt+"input-$1")]})],l)}return""})}},RI=[vI],OI=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(_){var L=_.getAttribute("data-emotion");L.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var l=t.stylisPlugins||RI,s={},c,d=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(_){for(var L=_.getAttribute("data-emotion").split(" "),v=1;v<L.length;v++)s[L[v]]=!0;d.push(_)});var p,m=[xI,_I];{var b,E=[cm,dm(function(_){b.insert(_)})],S=fm(m.concat(l,E)),y=function(L){return Br(lm(L),S)};p=function(L,v,H,D){b=H,y(L?L+"{"+v.styles+"}":v.styles),D&&(N.inserted[v.name]=!0)}}var N={key:r,sheet:new em({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 N.sheet.hydrate(d),N};const NI=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=OI({key:"css",prepend:!0,container:r}),s=iy({components:{MuiPopover:{defaultProps:{container:i}},MuiPopper:{defaultProps:{container:i}},MuiModal:{defaultProps:{container:i}}}});X3.createRoot(i).render(A.createElement(kC,{value:l},A.createElement(TI,{theme:s},A.createElement(hI,{...e}))))};ir.init=NI,Object.defineProperty(ir,Symbol.toStringTag,{value:"Module"})});
|
|
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"})});
|